Does anyone have a script which can either message a channel or person depending on the variable used? For example !say #channel TEST would message #channel with TEST, and !say person TEST would private message "person" with the word test.
I wouldn't imagine this would be to hard. This script would only be able to be used from 1 channel, which is private, so regardless of flags would have access to the command.
bind pub - !say say
proc say {nick host hand chan text} {
if {$chan!="#yourchan"} {return}
set who [lindex $text 0]
set msgtext [lrange $text 1 end]
putserv "privmsg $who :$msgtext"
}
why don't u use party line command then from the party line u can make the bot msg an channel that isn't mode +n or if the bot is on the channel.. also u will be able to send a msg from the partyline to any user you like.