View previous topic :: View next topic |
Author |
Message |
romain Voice
Joined: 16 Oct 2005 Posts: 12
|
Posted: Sun Oct 16, 2005 2:49 am Post subject: rehash command |
|
|
Hello,
I've this script
Code: | 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.."
}
}
restart
} |
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  |
|
Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Oct 16, 2005 6:50 am Post subject: |
|
|
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). _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Sun Oct 16, 2005 7:18 pm Post subject: |
|
|
does your network support op-notice or multi-target privmsg? else just take 1sec and incr it with each op by 1 . _________________ 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... |
|
Back to top |
|
 |
spock Master
Joined: 12 Dec 2002 Posts: 319
|
Posted: Tue Oct 18, 2005 1:47 pm Post subject: |
|
|
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 _________________ photon? |
|
Back to top |
|
 |
|