A bot (egg 1.6.13 / tcl 8.3.4) should message $msg to EVERY chan he is in.
I currently use that way:
foreach c [channels] {
if {[strlwr $c] != [strlwr $basechan]} {
puthelp "PRIVMSG $c :$msg"
}
But it looks like that sometimes not every chan gets that messages. Is puthelp here the best way? How do I can get sure that every chan gets messages? Please help .
means if the channel doesnt match the channels in $basechan it will send the message to it, that means it will only send the message to the channels which are not in $basechan.
If you want it to send to all channels then remove that code.
I just wanted to know which would be the best choice. putserv or puthelp?
puthelp <text> [options]
Description: sends text to the server, like 'putserv', but it uses a
different queue intended for sending messages to channels or people.
putserv <text> [options]
Description: sends text to the server, like '.dump' (intended for direct
server commands); output is queued so that the bot won't flood itself
off the server.
Options:
-next: push messages to the front of the queue
-normal: no effect
Returns: nothing
Module: server
means if the channel doesnt match the channels in $basechan it will send the message to it, that means it will only send the message to the channels which are not in $basechan.
this means: it will send the message to all channels except from $basechan. this is no list search or sth. maybe this is what you meant, but i wanted to make it clear.
means if the channel doesnt match the channels in $basechan it will send the message to it, that means it will only send the message to the channels which are not in $basechan.
this means: it will send the message to all channels except from $basechan. this is no list search or sth. maybe this is what you meant, but i wanted to make it clear.
Yeah I know - its ok - I wanted that. I shouldnt posted that line here makes ppl to confused .
Well I found the problem.
It seems to be a server-side floodprotection. So on many chans the bot can't paste the msg. (Only a few get the msg).
My question know how can I mass msg these chans with an intervall like - 10 secs - then next chan - 10 secs - next chan - 10 secs - next chan. Can anyone give me an example code?? (with foreach channel)
I would use puthelp for such informativ things, this lets important things that were send via putserv go first. Addionally I didn't really test if putserv queue will share with pushmode and putkick queue, so best let it wait.
If I use puthelp/putserv both wont work 100%, still some channels didnt get the message. I have to use this utimer method (interval about 10secs for each channel) but I dont know how to do it with a foreach function . Can someone help me there?