| View previous topic :: View next topic |
| Author |
Message |
Fill Halfop
Joined: 18 Jan 2009 Posts: 80
|
Posted: Wed Feb 11, 2009 5:46 pm Post subject: How can I make the bot check if someone is halfop? |
|
|
OK guys, I need your help *again*
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 |
|
 |
Fill Halfop
Joined: 18 Jan 2009 Posts: 80
|
Posted: Wed Feb 11, 2009 6:24 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
|