egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

simple bind and user flags question

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
octatone
Voice


Joined: 15 Jul 2010
Posts: 3

PostPosted: Thu Jul 15, 2010 1:32 pm    Post subject: simple bind and user flags question Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Jul 15, 2010 1:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
octatone
Voice


Joined: 15 Jul 2010
Posts: 3

PostPosted: Thu Jul 15, 2010 1:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Jul 15, 2010 2:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
octatone
Voice


Joined: 15 Jul 2010
Posts: 3

PostPosted: Thu Jul 15, 2010 2:23 pm    Post subject: Reply with quote

Thanks so much for your help Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber