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. If the proc returns 1, Eggdrop will not log
the message that triggered this bind. PUBM binds are processed
before PUB binds. If the exclusive-binds setting is enabled,
PUB binds will not be trigged by text that a PUBM bind has
already handled.
Add a trailing * to the mask, as it's matched against the whole message.
Or rather, it matches against "<channel> <text>" and the pattern must match the whole string.
'*' matches anything (any number of characters including 0 characters). So when you set a mask like "*word" it will match any line which ends with "word". If you set a mask like "word*" then it will match any line which starts with "word". By now, you probably know that "*word*" matches any line containing "word" (whether at the start, end, or in between).
nml375 wrote:Add a trailing * to the mask, as it's matched against the whole message.
Or rather, it matches against "<channel> <text>" and the pattern must match the whole string.
Try nml375's suggestion and add an extra trailing * in the mask (i.e. "* <text>" or "% <text>").
hm... scritp seems to work now, but ive got another strange problem now:
For that I have to tell you the situation:
OK: There is a gameserver, and its chat is echoed by a Bot into an IRC channel. The users can talk to the gameserver with !say.
I need to use Channel Commands from the gameserver, without minimizing or ending the game.
The Problem:
The Bot is not seeing the Channelbot!
I used .whois, the last seen was the 25.04.08
I readded the Bot, and now the eggrop says: Seen: Never!
The Name of the echo Bot is longer than 9 letters...I dont have a compiler on my shell, so i cant change the maximum... But the Bot has seen the Echo Bot before, so i think it is not a Name Problem...
Examples of masks:
Given you'd like to match anything starting with "word", use "% word*"
To match anything containing "word", use "*word*"
To match string starting with word1 and ending with word2, use "% word1*word2"
And so on...
Long nicknames should'nt be a problem, only time you'd need to recompile your eggrop is if you'd like to use handles longer than 9 characters (think of htem as usernames within eggdrop). Use the .channel command from dcc-chat to see a channel-members listing from your eggdrop's point of view - usually helps identifying issues with someone not being properly identified.