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 

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

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Viperb0y
Voice


Joined: 06 Aug 2008
Posts: 3

PostPosted: Wed Aug 06, 2008 9:19 am    Post subject: All of the Commands only for +v and above users. Reply with quote

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 Sad.

Is there a way to only allow the commands to +v and above users?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Aug 06, 2008 2:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Viperb0y
Voice


Joined: 06 Aug 2008
Posts: 3

PostPosted: Wed Aug 06, 2008 5:36 pm    Post subject: Reply with quote

Hi,

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

P.S. If a user has +o.. is he includen in "isvoice"?
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Aug 06, 2008 9:18 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Viperb0y
Voice


Joined: 06 Aug 2008
Posts: 3

PostPosted: Thu Aug 07, 2008 7:12 am    Post subject: Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Aug 07, 2008 12:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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