This is the new home of the community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.

For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

rehash command

Old posts that have not been replied to for several years.
Posts: 12
Joined: Sun Oct 16, 2005 1:51 am

rehash command

Post by romain »


I've this script

Code: Select all

bind pub n|n !restart  pub:restart 
proc pub:restart { nick uhost handle chan arg } { 
   foreach user [chanlist $chan] { 
      if {[isop $user $chan]} { 
         putquick "notice $user:blabla.." 
But egg restart before all ops receive the notice.With a timer it's possible but timer varies with the ops number.It's possible to make the script who works some is the ops number??

Sorry for my bad english :oops:
User avatar
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon

Post by Sir_Fz »

You simply need to figure out what's the most suitable timer to use (i.e. how much time does the bot need to send the notice to all ops).
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

does your network support op-notice or multi-target privmsg? else just take 1sec and incr it with each op by 1 :D.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

rename putquick to stop other scripts from using it in the last few seconds before restart, clear mode queue (see "clearqueue mode" in tcl-commands.doc), and dont restart until "queuesize mode" is sufficiently small

edit: and you would obviously do your notice stuff right after clearing the queue