| View previous topic :: View next topic |
| Author |
Message |
octatone Voice
Joined: 15 Jul 2010 Posts: 3
|
Posted: Thu Jul 15, 2010 1:32 pm Post subject: simple bind and user flags question |
|
|
I could find a list of lettered flags, but I'm editing a script that has flags like the following:
| Code: | bind pub -|o !example do_something
bind pub -|- !example2 do_something2 |
Can someone kindly explain what the "-" flag means and what the "|" is doing here? Is it just a catch all to disable the bind?
Thanks in advance! |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Jul 15, 2010 1:42 pm Post subject: |
|
|
The dash (-) means you don't need any flag at all to match.
The pipe (|) means "OR", and is used to separate the global flags from the channel-specific flags. You could also use the ampersand (&) as "AND" to require both global and channel-specific flags. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
octatone Voice
Joined: 15 Jul 2010 Posts: 3
|
Posted: Thu Jul 15, 2010 1:55 pm Post subject: |
|
|
which side of the pipe is channel and which side is global? and does one supersede the other?
(i just want to make sure I understand 100% before I go and editing operator commands attached to binds) |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Jul 15, 2010 2:13 pm Post subject: |
|
|
First one maches against the global flags, second against channel-specific flags. If you use the OR-separator, having one of them matching is enough; if you use the AND-operator on the other hand, you'll have to match them all. _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
octatone Voice
Joined: 15 Jul 2010 Posts: 3
|
Posted: Thu Jul 15, 2010 2:23 pm Post subject: |
|
|
Thanks so much for your help  |
|
| Back to top |
|
 |
|