This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

All of the Commands only for +v and above users.

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
V
Viperb0y
Voice
Posts: 3
Joined: Wed Aug 06, 2008 9:11 am

All of the Commands only for +v and above users.

Post by Viperb0y »

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?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

You can add a check for +v in each proc (and remove the flags from the binds).

Code: Select all

if {[isvoice $nick $chan]} {
# $nick has +v on $chan
}
V
Viperb0y
Voice
Posts: 3
Joined: Wed Aug 06, 2008 9:11 am

Post by Viperb0y »

Hi,

so i have to put your code in every proc? Hm.. okay but a lot of work :D

P.S. If a user has +o.. is he includen in "isvoice"?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Viperb0y wrote:P.S. If a user has +o.. is he includen in "isvoice"?
Obviously not.
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
V
Viperb0y
Voice
Posts: 3
Joined: Wed Aug 06, 2008 9:11 am

Post by Viperb0y »

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.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
Post Reply