proc pub_lol_broadcast {nick host hand chan arg} {
set arg [charfilter $arg]
global lol botnick
if {![check $hand $nick $host]} {
if {$lol(silent) == 1 || [checksilent $hand]} {return 0}
puthelp "NOTICE $nick :You need to be identified to use this function. Type .identhelp in the partyline for more info. : \002/msg $botnick id <password>\002 or \002/msg $botnick silent <password>\002 to no more receive this warning."
return 0
}
if {[llength $arg] < 1} {
puthelp "NOTICE $nick :\002Usage:\002 [string trim $lol(cmdchar)]broadcast <text>"
return 0
}
foreach c [channels] {
if {[matchattr $hand o|o $c] && [strlwr $c] != [strlwr $chan]} {
puthelp "PRIVMSG $c :\00314\[\003\002$nick\002\00314\]\003 $arg"
}
}
}
in the chanfile are 70 or more chans but the bot is only in 5 channels because netbots And I want all bots display msgs in the channel but wehen they msg all channels they get exxesflood.