Eggheads: maskhost not enough...
Dia|V|onD
forgotten_box at yahoo.com
Tue Nov 16 21:14:45 CST 1999
Hiyas... I have a bot on Chatnet and I noticed that after the bot set a ban
and kicked the user out they could rejoin the channel even though the ban
was on the channel's list also. Using this - [maskhost "
blahblah at blah.blah.blah " returns "*!blahblah@*.blah.blah" and with this
banmask on the channel's list a person can rejoin the channel. If the
banmask is set to "*!*blahblah@*.blah.blah" they can not. (note the xtra
wildcard * after !)
I fixed it using a short procedure to call:
proc get_banmask {host} {
if {[string match "~*" $host]} {
set host [string range $host 1 end]
}
set banmask "*!*[lindex [split $host @] 0]@[lindex [split [maskhost
$host] @] 1]"
return $banmask
}
Hope this helps someone...
Dia|V|onD
diamond at legend.kirenet.com
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
More information about the Eggheads
mailing list