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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Viperb0y
Voice
Posts: 3 Joined: Wed Aug 06, 2008 9:11 am
Post
by Viperb0y » Wed Aug 06, 2008 9:19 am
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?
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Wed Aug 06, 2008 2:34 pm
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
}
Viperb0y
Voice
Posts: 3 Joined: Wed Aug 06, 2008 9:11 am
Post
by Viperb0y » Wed Aug 06, 2008 5:36 pm
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"?
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Wed Aug 06, 2008 9:18 pm
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
Viperb0y
Voice
Posts: 3 Joined: Wed Aug 06, 2008 9:11 am
Post
by Viperb0y » Thu Aug 07, 2008 7:12 am
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.
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Thu Aug 07, 2008 12:04 pm
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