mIRC Home    About    Download    Register    News    Help

Print Thread
#61003 18/11/03 10:30 PM
Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
I'm checking if the person who joined is on my auto op list...
Code:
if ($address($nick,3) isaop #) halt

If she is on my auto op list, I will allow her to get op, else I will deop her...

I can do basically everything in this script but I'm having trouble with the hostmasks, some people are added as *!*foo@*.bar.com (3) and some people are added as *!*@foo.bar.com (2)

How can I check in my IF statement if the address in all types is in my auto op list, because my IF statement only checks type 3.


__________________________
Curiosity killed the cat.
#61004 18/11/03 11:04 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Use $fulladdress (available in events) or $address(nick,5).

If you have *line*!*@* in your aop list, the condition "online!user@host isaop #" returns true.

#61005 18/11/03 11:12 PM
Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
Like this?
Code:
if ($fulladdress isaop #) {


__________________________
Curiosity killed the cat.
#61006 18/11/03 11:23 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
yes

#61007 18/11/03 11:27 PM
Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
Code:
on 1:OP:#:{
  if ($fulladdress isaop #) halt

What does it display? $opnick full address, or $nick full address?


__________________________
Curiosity killed the cat.
#61008 18/11/03 11:28 PM
Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
Ah, I will use $address($opnick,5) smile

Thanks Online.


__________________________
Curiosity killed the cat.

Link Copied to Clipboard