Code: Select all
if {[string match "*@friend.com" $c]} {
yes it matches, so your commands go here
}
Code: Select all
bind pubm - "*#*" pubm:test:bind
proc pubm:test:bind {nick uh hand chan arg} {
if {[string match "*#mychan*" $arg]} { return }
continue with script here
}
Code: Select all
bind pubm - "*#*" pubm:test:bind
proc pubm:test:bind {nick uh hand chan arg} {
if {[string match "*#mychan*" $arg]} {
putserv "PRIVMSG $chan :Something.."
}
}