Code: Select all
bind pub - !host pub:gethost
proc pub:gethost {nick uh hand chan arg} {
if {![validuser $hand]} { return }
set proc $hand
if {([set nnick [lindex [split $arg] 0]] != "") && ([matchattr $hand "o|o" $chan])} {
set proc $nnick
}
if {![validuser $proc]} {
puthelp "PRIVMSG $chan :$nick - there is no such user "${proc}""
}
puthelp "PRIVMSG $chan :HOSTS for $proc : [string trimright [join [getuser $proc HOSTS] ", "] ", "]"
}
Code: Select all
bind pub - !host pub:gethost
proc pub:gethost {nick uh hand chan arg} {
set proc $nick
if {([set nnick [lindex [split $arg] 0]] != "") && ([matchattr $hand "o|o" $chan])} {
set proc $nnick
}
if {![onchan $proc $chan]} {
puthelp "PRIVMSG $chan :I can't get info on "${proc}" - he isn;t on channel"
return
}
puthelp "PRIVMSG $chan :The the hostmask for "${proc}" is [maskhost [getchanhost $proc $chan]]"
}
Code: Select all
bind msg - !host pub:gethost
proc priv:gethost {nick uh hand arg} {
if {[set chan [lindex [split $arg] 1]] == ""} {
puthelp "PRIVMSG $nick :You need to state a channel "!host <nick> <channel>""
return
}
if {![validchan $chan]} {
puthelp "PRIVMSG $nick :I am not on that channel, try another"
return
}
set proc $nick
if {([set nnick [lindex [split $arg] 0]] != "") && ([matchattr $hand "o|o" $chan])} {
set proc $nnick
}
if {![onchan $proc $chan]} {
puthelp "PRIVMSG $nick :I can't get info on "${proc}" - he isn;t on channel"
return
}
puthelp "PRIVMSG $nick :The the hostmask for "${proc}" is [maskhost [getchanhost $proc $chan]]"
}
Code: Select all
bind msg - !host priv:gethost
proc priv:gethost {nick uh hand arg} {
if {[set chan [lindex [split $arg] 1]] == ""} {
puthelp "PRIVMSG $nick :You need to state a channel "!host <nick> <channel>""
return
}
if {![validchan $chan]} {
puthelp "PRIVMSG $nick :I am not on that channel, try another"
return
}
set proc $nick
if {([set nnick [lindex [split $arg] 0]] != "") && ([matchattr $hand "o|o" $chan])} {
set proc $nnick
}
if {![onchan $proc $chan]} {
puthelp "PRIVMSG $nick :I can't get info on "${proc}" - he isn;t on channel"
return
}
puthelp "PRIVMSG $nick :The the hostmask for "${proc}" is [maskhost [getchanhost $proc $chan]]"
}
Code: Select all
bind msg - !host priv:gethost
proc priv:gethost {nick uh hand arg} {
if {[set chan [lindex [split $arg] 1]] == ""} {
puthelp "PRIVMSG $nick :You need to state a channel "!host <nick> <channel>""
return
}
if {![validchan $chan]} {
puthelp "PRIVMSG $nick :I am not on that channel, try another"
return
}
set proc $nick
if {([set nnick [lindex [split $arg] 0]] != "") && ([matchattr $hand "o|o" $chan])} {
set proc $nnick
}
if {![onchan $proc $chan]} {
puthelp "PRIVMSG $nick :I can't get info on "${proc}" - he isn;t on channel"
return
}
puthelp "PRIVMSG $nick :The the hostmask for "${proc}" is [getchanhost $proc $chan]"
}