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.

ban on channel notice

Old posts that have not been replied to for several years.
Locked
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

Can anyone write a small script (or point me to one) that bans a user with the following mask *!*@host when they send a channel notice.
I know it's easy but for some reason I am unable to make it work!
Thx


<font size=-1>[ This Message was edited by: z_one on 2002-04-10 10:11 ]</font>
M
Mordred

Post by Mordred »

this should work..


set channels "#chan1 #chan2"

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 dickhead bites the dust.." 60
}
}
}

<font size=-1>[ This Message was edited by: Mordred on 2002-04-12 03:35 ]</font>
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

Thx Mordered, I'll try it out and sorry for being late to reply. I was a bit busy :smile:

z_one
n
n3v3r

Post by n3v3r »

Please I use this tcl script,it's possible set the ban after 3 notice?tnx
Locked