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 

inverted flags?

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


Joined: 02 Dec 2003
Posts: 40
Location: The Netherlands

PostPosted: Mon Jan 24, 2011 5:51 pm    Post subject: inverted flags? Reply with quote

Hello everyone,

I am in need of assistance....I want to build a script that will message every user on join...the only catch is...the op's must not be msg'd

so in stead of doing a
bind join - * procname

I would need something like an inverted flag like
bind join -o * procname

is that possible somehow? I've tried to use the [isop] command, but that doesn't work too well with a 'bind join'

in a nutshell: msg a user onjoin, but not if he/she's an op.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
thommey
Halfop


Joined: 01 Apr 2008
Posts: 73

PostPosted: Tue Jan 25, 2011 12:05 am    Post subject: Reply with quote

How do you know, on join, if a person is an op? Is your Eggdrop the only bot responsible for handing out those op rights? If it is, then you can just bind join - * and check in the proc (if {[matchattr $hand o|o $chan]} { return 0 } at the beginning to prevent execution of the rest of it). In case your bot is not the only bot giving access rights, it can't know if someone is to become an op within a few seconds after the join (join is before op), so you could initiate a timer to msg them and cancel it when they receive op (bind mode).
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