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.

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

Help for those learning Tcl or writing their own scripts.
Post Reply
F
Fill
Halfop
Posts: 80
Joined: Sun Jan 18, 2009 6:08 pm

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

Post by Fill »

OK guys, I need your help *again* :P

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.
F
Fill
Halfop
Posts: 80
Joined: Sun Jan 18, 2009 6:08 pm

Post by Fill »

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: Select all

if { ([ishalfop $nick $chan]) == 1 } { procedure }
See ya :wink:
Post Reply