Hello,
The PUB binding does not support wildcard characters such as *. For this, you'll have to use the PUBM binding instead.
Keep in mind though, that the syntax for PUBM is slightly different to PUB;
The mask is matched against "#channel text", so you'll probably want to use something like this:
Also, if the command (raffle, in this case) returns 1, the message will not be logged.
Finally, if you've enabled exclusive bindings, this will prevent any PUB binds matching the text-line from actually triggering.
As for responding with the input-text, this is available in the last parameter passed to the function;
Code: Select all
proc raffle {nick host handle channel text} {
puthelp "PRIVMSG $channel :$text"
}