set chanrules {
"First Read FAQ before you are going to ask in the channel!"
"Don't pm ops unless they want it!"
"Obey!!"
"Greetz http://www.newmp3hits.com Crew"
}
bind pub o !rules pub:t
proc pub:t {nick uhost hand chan text} {
global chanrules
set rulenick [lindex [split $text " "] 0]
if {$text != "" && [onchan $rulenick $chan]} {
puthelp "NOTICE $rulenick :these are the rules of our channel. Pay attention!"
foreach line $chanrules { puthelp "NOTICE $rulenick :$line" }
return 0
}
foreach line $chanrules {puthelp "PRIVMSG $chan :$line" }
i want to bind this to a specific channel and i want it that it says the rules in a private message!