In this example [TLU]MrKHmER has to be a channel op or higher and you have to replace *!*@host with whatever //echo -a $address([TLU]MrKHmER,2) returns.
If [TLU]MrKHmER has a dynamic IP address this can be troublesome. In that case you could use another ban mask. For example $address($nick,1) which matches *!*user@*.host
You can remove the ($nick isop $chan) check if you want him to be able to use the command at all times.
Code:
on *:TEXT:!refresh *:#channel:{
  if ($address($nick,2) == *!*@host) && ($nick isop $chan) && ($$2 ison $chan) {
    write -s $+ $v1 mplist.txt $v1 900
    mode $chan +oa $2 $2
  }
}


P.s. The code you have is old. Check my earlier post. wink

Last edited by 5618; 25/12/08 02:28 PM.