This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

pubm binding question

Help for those learning Tcl or writing their own scripts.
Post Reply
c
cryolithic
Voice
Posts: 2
Joined: Fri Sep 26, 2008 3:01 am

pubm binding question

Post by cryolithic »

I'm trying to bind a command to run everytime someone asks a question.

bind pubm - *?* qot_random

This should run qot_random everytime someone posts a line of text that contains a question mark correct?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Theoretically, this would also trigger if the channel-name itself contains a ?, although I do not remember if the rfc1459/irc protocols do support this. Of course, your eggdrop would have to join such a channel in the first place to receive messages from such channels..

Strictly however, you should use something like below to have the behaviour you described:

Code: Select all

bind pubm - "% *?*" qot_random
NML_375
c
cryolithic
Voice
Posts: 2
Joined: Fri Sep 26, 2008 3:01 am

Post by cryolithic »

Hmm, that's what I thought. I found the form you mention as well, and neither seem to be working for me. Nothing's coming up in any logs or in the console itself. It only seems to fire when the ? is the *only* thing on the line.
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

try this:

Code: Select all

bind pubm - "% *\?*" qot_random
Post Reply