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.
Old posts that have not been replied to for several years.
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Wed Mar 06, 2002 5:20 am
I tried to bind a ban that maches my eggdrop but I din't have no success. Any sugestion to make this "match" stuff? I tried some tricks but nothing good..
(
Btw.. Is there a tcl that when eggy get's: deoped/kicked/banned to report this stuff to an other channel? I made the deop and kick part and I got to make this ban part wit a little help on the match part.
Thx!
egghead
Master
Posts: 481 Joined: Mon Oct 29, 2001 8:00 pm
Contact:
Post
by egghead » Mon Mar 18, 2002 11:31 am
Caesar, perhaps you already figured it out...
The variable "botname" contains the nick!user@host that the server sees. String match the banmask against this botname...
Code: Select all
bind mode - * bindbanbot
proc bindbanbot { nick uhost hand chan args } {
global botname
# fix above and below 1.3.23
set modechange [join $args]
if {[scan $modechange "+b %s" banmask] != 1} { return }
# ban matches "botname"?
if {[string match $banmask $botname]} {
putlog "$nick ($hand) banned me on $chan (+b $banmask)"
}
}
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Mon Mar 18, 2002 2:05 pm
Hi, yes, I figured this out about a few days ago. Thx anyway. See than .next post and tell me if you see something wrong in it. Thx again!
If there r no mistakes or something I'll put it on the Tcl download area.