This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

onjoin notice script

Old posts that have not been replied to for several years.
Locked
A
AW

Post by AW »

hi, actually i have picked this script from this forum, its work great Except its kick other bots and Ops as well, since we are using netbots tcl, so everytime flooders try to flood, other bots send a chn notice that cos of flood chn has been moderated...etc,
i will apprecite it if someone can help me to fix this problem that it shouldn't kick ops, other chn bots.
thanks
regards
AW

set channels ""

bind notc - "*" notice

proc notice {nick host hand text dest} {
global channels botnick
foreach chan $channels {
if {$chan == $dest} {
set x [split $host @]
newchanban $chan *!*@[lindex $x 1] $botnick "Another noticing sickoo bites the dust.." 60
}
}
}
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

If you don't want it to kick ops, just add this line inside the loop - right after the "foreach..."
if {[onchan $nick $chan] && [isop $nick $chan]} { continue }
I hope this helps

<font size=-1>[ This Message was edited by: z_one on 2002-05-17 02:26 ]</font>
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

if {[validuser [nick2hand $nick $chan]] || [isop $nick $chan]} { continue }

Try this to protect the users.
A
AW

Post by AW »

Thanks guys for the help.
is it possible if we can make this script to kick after 2 notices???
thanks
Locked