Code: Select all
proc per_say { nick host hand args } {
if { [string match "#*" $args] } {
puthelp "PRIVMSG [lindex $args 1] :[join [lrange $args 2 end]]"
} else {
puthelp "PRIVMSG [lindex $args 0] :[join [lrange $args 1 end]]"
}
}
a) .say [#channel] <text> ..... this is a pub cmd and [#channel] is optional. If it isn't mentioned, then the proc is executed in the channel where the cmd was run.
OR
b) /msg bot say <#channel> <text> ..... this is a msg cmd and <#channel> is required.
Basically, it's not working, at all. I think I've got multiple problems wrong with it since when I add a "Text" to the output, it just shows "Text" when messaging a channel. (Yeah, I suck at explaining).
Anyway, any help/ideas/suggestions would be greatly appreciated.
Thanks,
scr0llwheel