mIRC Home    About    Download    Register    News    Help

Print Thread
#231244 09/04/11 09:09 PM
Joined: Apr 2011
Posts: 2
1
Bowl of petunias
OP Offline
Bowl of petunias
1
Joined: Apr 2011
Posts: 2
I'm an op on a channel, and have someone who isn't an op, yet keeps asking and manages to persuade other people to give him op on the channel. To stop this, I've tried to come up with a script to just kick him whenever he gets op, but with the ease of changing nicks (he's already figured out that i've only managed to get it so it blocks him based on nicks), I've tried to change it to based off his address, with this being as close as I can get it
Code:
on *:op:#: { 
  set %opnick $mask($address,2)
  if (%opnick == will fill this in later) { 
    cs kick $chan $opnick 
  } 
}

however, i'm running into 2 issues; first of all, the $address command returns the address of whoever does the op, not the person being opped, and secondly, though minor, for some reason it's not returning the right mask for it for some reason. do have the %opnick as where to set it on the variable page, so no issues there, just I don't know how to manage to have it checked with his address.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Replace $mask($address,2) with $address($opnick,2)

Verify that you want mask 2 to fill the variable. See /help $mask for details and other options.

Joined: Apr 2011
Posts: 2
1
Bowl of petunias
OP Offline
Bowl of petunias
1
Joined: Apr 2011
Posts: 2
thanks, worked like a charm


Link Copied to Clipboard