mIRC Home    About    Download    Register    News    Help

Print Thread
#162235 15/10/06 10:43 PM
Joined: Oct 2006
Posts: 68
B
BuTLeR Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 68
Code:
on 1000:TEXT:`deluser*:#:{
  if ($2 !ison $ulevel) {
    .ruser $2 3
    .msg $chan User Deleted $2 $+ .  
    halt
  }
  else msg $chan $nick is not on my userlist
}


ok thats all wrong aint it crazy


At Your Service.
#162236 15/10/06 11:22 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Well, not all wrong, however the usage of ison is incorrect. You would use that to see if a person was on a specific channel.
Also, there's no need for the if statement, in relation to using the /ruser command. If you use /ruser and the nick isn't there, then nothing happens. Presuming you want that comparison so that the Not on my userlist message comes up, use this.

Code:
 on 1000:text:`deluser*:#:{
if $ulist($address($2,3)) {
.ruser $2 3
.msg $chan $nick deleted $2 from my user list
}
else {
.msg $chan $2 is not on my user list
}
}
 

#162237 15/10/06 11:27 PM
Joined: Oct 2006
Posts: 68
B
BuTLeR Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 68
thanks RusselB much help


At Your Service.

Link Copied to Clipboard