Code: Select all
bind pub - `say pub:privmsg
proc pub:privmsg {nick uhost hand chan arg} {
global owner
set msgchan [lindex $arg 0]
if {$nick != $owner} {
putserv "PRIVMSG $chan :You don't have access"
}
if {$msgchan == ""} {
putserv "PRVMSG $chan :[join $arg]"
} else {
putserv "PRIVMSG $msgchan :[join $arg]"
}
}2.and if i'm on channel X and i do `say #Y hello it PRIVMSG Y hello
the problem with mine it's doing the first step, and in step 2 when i do `say #X hello it's doing PRIVMSG "#x hello"