
Tcl error [pub_topic]: invalid command name "botisown"
Tcl error [pub_qup]: invalid command name "botisown"
what me can do on it ?

Swoony wrote:when me type .qup or .topic get me this in pline :![]()
Tcl error [pub_topic]: invalid command name "botisown"
Tcl error [pub_qup]: invalid command name "botisown"
what me can do on it ?
Code: Select all
if {[botisop $channel] == 1 || [botison $channel] == 1} {
Code: Select all
## public cmd topic -- start
proc pub_topic {nick uhost hand channel rest} {
global X botnick
if {[matchattr $hand Q] == 0} {
puthelp "NOTICE $nick :$X This command requires you to authenticate yourself. Please /msg $botnick auth <password>"
return 0
}
if {$rest!=""} {
if {[botisop $channel]} {
putserv "TOPIC $channel :$rest"
putlog "$X <<$nick>> !$hand! topic $rest"
}
if {![botisop $channel]} {
puthelp "NOTICE $nick :$X I am not opped" }
}
}
if {$rest==""} {
puthelp "NOTICE $nick :$X Usage: topic <topic>"
}
}
## public cmd topic -- stop