| View previous topic :: View next topic |
| Author |
Message |
Viperb0y Voice
Joined: 06 Aug 2008 Posts: 3
|
Posted: Wed Aug 06, 2008 9:19 am Post subject: All of the Commands only for +v and above users. |
|
|
Hi,
currently I'm using this script on my Eggdrop:
http://paste.tclhelp.net/?id=kv
I use the +f flag to see if the Users are allowed to to the !smut things etc. But I don't want to add every user to the userlist.. too much work .
Is there a way to only allow the commands to +v and above users? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Aug 06, 2008 2:34 pm Post subject: |
|
|
You can add a check for +v in each proc (and remove the flags from the binds).
| Code: | if {[isvoice $nick $chan]} {
# $nick has +v on $chan
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Viperb0y Voice
Joined: 06 Aug 2008 Posts: 3
|
Posted: Wed Aug 06, 2008 5:36 pm Post subject: |
|
|
Hi,
so i have to put your code in every proc? Hm.. okay but a lot of work
P.S. If a user has +o.. is he includen in "isvoice"? |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Aug 06, 2008 9:18 pm Post subject: |
|
|
| Viperb0y wrote: | | P.S. If a user has +o.. is he includen in "isvoice"? |
Obviously not.
| Quote: | isop <nickname> [channel]
Returns: 1 if someone by the specified nickname is on the channel (or
any channel if no channel name is specified) and has ops; 0 otherwise
Module: irc |
_________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
Viperb0y Voice
Joined: 06 Aug 2008 Posts: 3
|
Posted: Thu Aug 07, 2008 7:12 am Post subject: |
|
|
Hi,
okay.. but another Problem.
The network also has Users with a % and ! prefix.. what is with them? I also want them to use the bot. |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Aug 07, 2008 12:04 pm Post subject: |
|
|
See the opchars config-setting in newer eggies:
| eggdrop.conf wrote: | # Some IRC servers are using some non-standard op-like channel prefixes/modes.
# Define them here so the bot can recognize them. Just "@" should be fine for
# most networks. Un-comment the second line for some UnrealIRCds.
set opchars "@"
#set opchars "@&~"
|
_________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|