| View previous topic :: View next topic |
| Author |
Message |
topdawg_b Voice
Joined: 07 Dec 2008 Posts: 32
|
Posted: Fri Dec 19, 2008 9:29 am Post subject: mask to nick? |
|
|
Ive been looking through commands and tcl's and I just can't find what I am looking for.
I am looking for a command that will find the nick of someone banned.
when the mode bind is triggered the victim variable is a mask. I want to have the bot message the channel
putserv "privmsg #channel :$nick tried to ban (nick of person being banned)"
how can I make the bot determine the nick of the person being banned? |
|
| Back to top |
|
 |
DarkRaptor Voice

Joined: 15 Apr 2006 Posts: 36 Location: Trois-Rivières, Qc
|
Posted: Fri Dec 19, 2008 1:28 pm Post subject: |
|
|
| Code: |
bind MODE - +b whoisbanned
proc whoisbanned { nick host hand chan mode target } {
set bannednick ""
foreach user [chanlist $chan] {
if {[string match $target $user![getchanhost $user]]} {
append bannednick "$user "
}
}
putserv "privmsg $chan :$nick tried to ban $bannednick"
}
|
not tested _________________ DarkRaptor @ irc.undernet.org |
|
| Back to top |
|
 |
|