I have written a tcl script and after that I loaded it to the bot it has lag. This happens only sometimes as you can see below:
[06:25:37] -> [MyBot] PING
[06:25:38] <MyBot> [06:31] CTCP PING: 1070598337 from mynick (identd@host)
PING reply from MyBot is 2 secs
[06:25:41] -> [MyBot] PING
[06:25:42] <MyBot> [06:31] CTCP PING: 1070598341 from mynick (identd@host)
PING reply from MyBot is 1 secs
[06:25:48] -> [MyBot] PING
[06:25:49] <MyBot> [06:31] CTCP PING: 1070598348 from mynick (identd@host)
PING reply from MyBot is 60 secs
[06:28:02] -> [MyBot] PING
[06:28:04] <MyBot> [06:33] CTCP PING: 1070598482 from mynick (identd@host)
PING reply from MyBot is 4 secs
(see also the time for my irc client).
Two days ago my bot had 5+ minutes lag.
Is there any common mistake, which could make the bot to have such a lag?? Does this happen because I use putquick command? What else would be wrong?
P.S. This happens both in my 2 eggdrops and in all users (my irc client is ok)
P.S.2. Both eggdrops "echoes" that I have pinged them after 1-2 sec, but both of them replys to me after 1+ min (sometimes)
P.S.3. This doesn't happen only in ctcps but in msgs and other types too.
P.S.4. I'm not 100% sure that my tcl has an error.
The default ctcp replies use the help queue, so they're the last thing sent out. In other words this "lag" doesn't mean your bot is lagged, but that it's got alot of other stuff to send to the server before your ctcp ping reply is sent
Either change the way your scripts do output or make your own ctcp ping reply that use 'putquick' (with the '-next' option?) to ensure it's sent as fast as possible.