| View previous topic :: View next topic |
| Author |
Message |
fredvil Voice
Joined: 01 Dec 2005 Posts: 21
|
Posted: Wed Dec 07, 2005 7:51 am Post subject: public command with auth |
|
|
pls help me with toolz.tcl from archive.. the public command for kick and ban not working. below is the part of the script:
| Code: |
# Kicks someone off the channel
# Usage: !kick <nick> <reason>
# Ex: !kick Joe You suck!
proc pub:kick {nick uhost hand chan args} {
if {(![auth:check $hand]) && (![isop $nick $chan])} {return 0}
set args [split [cleanarg $args]]
if {[llength $args] < 2} {
notice $nick "Usage: !kick <nick> <reason>"
return 0
}
if {$hand == "*"} {return 0}
if {([isop $hand $chan]) || ([matchattr $hand "|o" $chan]) || ([matchattr $hand "o"])} {
set who [lindex $args 0]
set reason [lrange $args 1 end]
putserv "KICK $chan $who :$reason"
putcmdlog "<<$nick>> !$hand! kick $args"
} else {
notice $nick "You can't do that!"
}
}
|
here is the respond of the bot on the DCC window... but the bot is not responding on the public command
<<clarck>> !bukyo! kick \{bukyo bye\} |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Dec 07, 2005 11:55 am Post subject: |
|
|
According to this code, your handle should be the same name as your nickname and you should be oped. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|