This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
-
DarkJFMan
- Halfop
- Posts: 85
- Joined: Mon Dec 15, 2003 3:19 pm
Post
by DarkJFMan »
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]"
}
}
1.what i'm trying to do there if i'm on chan X and i do `say Hello it PRIVMSG X hello
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"