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.

bind +b?

Old posts that have not been replied to for several years.
Locked
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.. :eek:(

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!
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

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)"

   }
}
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
Locked