mIRC Homepage
Posted By: 19wrestler90 kick on op script - 09/04/11 09:09 PM
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.
Posted By: RusselB Re: kick on op script - 09/04/11 09:33 PM
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.
Posted By: 19wrestler90 Re: kick on op script - 09/04/11 09:43 PM
thanks, worked like a charm
© mIRC Discussion Forums