Like
Code: Select all
bind pub - !blah blah:blah
bind msg - blah blah:blah
proc blah:blah {nick host hand chan text} {
putserv "PRIVMSG $chan :blah"
}
Thanks in advanced
Code: Select all
bind pub - !blah blah:blah
bind msg - blah blah:blah
proc blah:blah {nick host hand chan text} {
putserv "PRIVMSG $chan :blah"
}
Code: Select all
bind pub - !blah pub:blah
bind msg - !blah blah
proc pub:blah {nick uhost handle chan text} {
blah $nick $uhost $handle $text
}
proc blah {nick uhost handle text} {
putserv "PRIVMSG $nick :hello"
}Code: Select all
bind pub - !blah blah
bind msg - !blah msg:blah
proc blah {nick uhost handle chan text} {
putserv "PRIVMSG $chan :$text"
}
proc msg:blah {nick uhost handle text} {
set chan [join [lindex [split $text] 0]]
# check that $chan is really a channel or exit
set msg [join [lrange [split $text] 1 end]]
blah $nick $uhost $handle $chan $msg
}ComputerTech wrote: ...
but somehow remove the variable "text" in the proc when using bind msg?