mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2003
Posts: 19
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Jun 2003
Posts: 19
I like to check if there is a certain $Nick or $address present in the channel's user list second I like to also check if there are any OPS available in the room and send them (OPS) a private msg. How can I do that

Thanks

sahmed01

Joined: Dec 2003
Posts: 261
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 261
Hi. I don't know what exactly you want to do... what did you mean when you said OPS avaible? To check if some nick is in nicklist you can use this peace of code:
Code:
alias nickcheck {
  if $1 == $null { echo -a Usage: /nickcheck <nick> | return }
  var %i = 1
  :scan
  if $nick(#,%i) == $null goto end
  if $nick(#,%i) == $1 { echo -a Nick $1 is in nicklist. | return }
  inc %i | goto scan
  :end
  echo -a Nick $1 NOT found.
}

You can use $address like this $address($nick(#,%i), 2).

Note: Not tested! but shoud work. smirk


velicha dusha moja Gospoda

Link Copied to Clipboard