## Write the Channel to Which the Command Will Be Valid Here..
set admin_chan "#DJ"
## We don't touch anything else. I'll take care of the rest. ;)
bind pub - .kickradyo kickradyo:msg
proc kickradyo:msg {n u h c a} {
global botnick admin_chan
set kickradyo:msg [lindex $a ]
if {[onchan $n $admin_chan]==1} {
putserv "PRIVMSG operserv : kickradyo $kickradyo:msg"
}
if {[onchan $n $admin_chan]==0} {
putserv "MODE $c +b $n"
putserv "KICK $c $n You are not authorized to use this command!"
putserv "PRIVMSG $admin_chan 5$n 2.kickradyo 14tried to use the command!"
}
}
putlog "Forbidden.tcl made by Xadd1"
error
[00:38:17] Tcl error [kickradyo:msg]: can't read "kickradyo": no such variable
I simply said that when the error occures, you MUST type .set errorInfo in party-line to have a detailled report about the error, and probably the exact line where the error is.
.tcl set kickradyo:msg "I'm a test"
Tcl: I'm a test
.tcl putlog $kickradyo:msg
Tcl error: can't read "kickradyo": no such variable
.tcl putlog ${kickradyo:msg}
[10:46:24] I'm a test