I would suggest using this bind:
bind pubm - "#scrim *#*?" check:advertise
a) you save code b) you don't ban trailing # hit by accident. c) you wil probably spare some resources ^-^
and clean the if to ![isop $nick $chan].
![isbotnick $nick] is redudant, IRC doesnt echo your own PRIVMSGs!
Well I was just trying todo as that script does exactly. Check if nick is not opped and nick is not botnick is basic. By the way, the trigger is not "#scrim #*", its just "*#*" if you see clearly. The script should only work on the channel #scrim.
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee) PS: Guys, I don't accept script helps or requests personally anymore.
==================================
awyeah wrote:Well I was just trying todo as that script does exactly. Check if nick is not opped and nick is not botnick is basic. By the way, the trigger is not "#scrim #*", its just "*#*" if you see clearly. The script should only work on the channel #scrim.
It is "#scrim #*". If you don't belive me, check tcl-commands.doc:
Description: just like MSGM, except it's triggered by things said
on a channel instead of things /msg'd to the bot. The mask is
matched against the channel name followed by the text and can
contain wildcards. Also, if a line triggers a PUB bind, it will not
trigger a PUBM bind.
And if you want pubm to work on all channels, mask should look like this "% #*"