| View previous topic :: View next topic |
| Author |
Message |
cryolithic Voice
Joined: 26 Sep 2008 Posts: 2
|
Posted: Fri Sep 26, 2008 3:03 am Post subject: pubm binding question |
|
|
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? |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Sep 26, 2008 7:40 am Post subject: |
|
|
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: | | bind pubm - "% *?*" qot_random |
_________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
cryolithic Voice
Joined: 26 Sep 2008 Posts: 2
|
Posted: Fri Sep 26, 2008 10:44 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Sun Sep 28, 2008 12:57 am Post subject: |
|
|
try this:
| Code: | | bind pubm - "% *\?*" qot_random |
|
|
| Back to top |
|
 |
|