egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

rehash command

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
romain
Voice


Joined: 16 Oct 2005
Posts: 12

PostPosted: Sun Oct 16, 2005 2:49 am    Post subject: rehash command Reply with quote

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 Embarassed
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Oct 16, 2005 6:50 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Oct 16, 2005 7:18 pm    Post subject: Reply with quote

does your network support op-notice or multi-target privmsg? else just take 1sec and incr it with each op by 1 Very Happy.
_________________
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
View user's profile Send private message MSN Messenger
spock
Master


Joined: 12 Dec 2002
Posts: 319

PostPosted: Tue Oct 18, 2005 1:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber