| View previous topic :: View next topic |
| Author |
Message |
cvanmeer Halfop
Joined: 02 Dec 2003 Posts: 40 Location: The Netherlands
|
Posted: Mon Jan 24, 2011 5:51 pm Post subject: inverted flags? |
|
|
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 |
|
 |
thommey Halfop
Joined: 01 Apr 2008 Posts: 73
|
Posted: Tue Jan 25, 2011 12:05 am Post subject: |
|
|
| 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 |
|
 |
|
|
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
|
|