if I write something now, I get this error in Partyline:
whats wrong with my script?Tcl Error [forward]: Invalid Command name "(the nick I have)"
and is there a better way to check if someone is online than "onchan" ?
Code: Select all
bind msgm - * forward
set owner "Nimos"
set ownerchan "#nimos"
proc forward {nick host hand text} {
global lastnick owner ownerchan
if {![$nick == $owner]} {
if {[onchan $owner $ownerchan]} {
puthelp "PRIVMSG $owner :$nick $text"
set lastnick "$nick"
}
} else {
puthelp "PRIVMSG $lastnick :$text"
}
}