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 

How can I make the bot check if someone is halfop?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Fill
Halfop


Joined: 18 Jan 2009
Posts: 80

PostPosted: Wed Feb 11, 2009 5:46 pm    Post subject: How can I make the bot check if someone is halfop? Reply with quote

OK guys, I need your help *again* Razz

I'm making a script for those who are +v +h +a and +q, so I'm using these conditions

if { ([isvoice $nick $chan]) || ([isop $nick $chan]) } { procedure }

I tried "ishop $nick $chan", but it doesn't work. How can I have an "if" for halfops? I have already set the opchars in my *.conf file to ~&@% (halfop is %), but isop is still NOT working with halfops.

What do you suggest me?

Thanks in advance,
Fill.
Back to top
View user's profile Send private message
Fill
Halfop


Joined: 18 Jan 2009
Posts: 80

PostPosted: Wed Feb 11, 2009 6:24 pm    Post subject: Reply with quote

Hi again,

I don't need help anymore, I discovered the right command. For those who were used to *.mrc language (which used the command "if $nick ishop"), I'll put here the equivalent in TCL:

Code:

if { ([ishalfop $nick $chan]) == 1 } { procedure }


See ya Wink
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 -> Scripting Help 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