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.

Prob in Noticeban tcl

Old posts that have not been replied to for several years.
Locked
s
suchwani
Voice
Posts: 11
Joined: Thu Sep 05, 2002 8:49 am
Location: pakistan

Prob in Noticeban tcl

Post by suchwani »

i m using noticeban tcl by pulse. there r some error in dat tcl. like when anyone deop by chanserv . then bot ban the service host.
-ChanServ:#- <nick> has deopped <nick>
* ChanServ sets mode: -o <nick>
* <bot> sets mode: +b *!*@dal.net
in netsplit sometime server send notice in channel that flood protection activited for <chan>
then bot banned the host *!*@*
twisted.ma.us.dal.net:#- flood protection activited for <chan>
* <bot> sets mode: +b *!*@*
i added services ip in bot +f flag but it wont work
can anyone fix it dat bot don't detect notice by chanserv and by any server.

bind NOTC - * NoticeBan

Code: Select all

proc NoticeBan {nick uhost handle text dest} {
global botnick 
if {![validchan $dest]} { return 0 } 
if {[matchattr $nick mo|mo $dest] || [isop $nick $dest] || [isvoice $nick $dest] || [matchattr $nick o|o $dest]} {return 0} 
if {([isbotnick $nick]) || ([string tolower $nick] == "ChanServ")} {return 0} 
set banmask "*!*@[lindex [split $uhost @] 1]"
putquick "KICK $dest $nick :Don't use channel notice, \002only\002 channel ops(@)/voices(+) can use it."
putquick "MODE $dest +b $banmask"
return 1
}
Suchwani
t
tainted
Master
Posts: 239
Joined: Sun May 12, 2002 8:00 pm
Location: chicago
Contact:

Post by tainted »

Adding a check to see if the user that sent the notice is actually in the channel first might help.
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

Also a bit strange:

Code: Select all

[string tolower $nick] == "ChanServ"
N
Nexus6
Op
Posts: 114
Joined: Mon Sep 02, 2002 4:41 am
Location: Tuchola, Poland

Post by Nexus6 »

seems like a very old version ;)

Code: Select all

 ([string tolower $nick] == "ChanServ")} 
change it to ([string tolower $nick] == "chanserv")} 
but even old NoticeBan.tcl didn't set *!*@* ban when server noticed channel as far as I recall checking if user is on channel is in NoticeBan1.1.tcl you can get it at
http://cord.nu/~pulse/stuff/tcl/NoticeBan1.1.zip
s
suchwani
Voice
Posts: 11
Joined: Thu Sep 05, 2002 8:49 am
Location: pakistan

Post by suchwani »

its working now thanks for help :P
Suchwani
Locked