mIRC Home    About    Download    Register    News    Help

Print Thread
#197289 01/04/08 03:51 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
Code:
raw 352:*:{ echo -a $6 is $3 $+ @ $+ $4 * $9- | halt }
raw 315:*:{ echo -a - | halt }


How to add - in the start? And if no opers if found: echo No IRC Operators found.

Example:

What ever text
-
Q is TheQBot@CServe.quakenet.org * The Q Bot
S is TheSBot@spamscan.quakenet.org * SpamScan v2.07
-
Still some text

Joined: Apr 2008
Posts: 2
J
Bowl of petunias
Offline
Bowl of petunias
J
Joined: Apr 2008
Posts: 2
Hey,

You would want to wait for the END /WHOIS raw and set a variable or such to check if the user was an IRC Op or not. And do as you wish with if functions.

Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
This is the /who # o command.

It works nice now, but I just want to add - in the start. There is all ready one in the end.

Joined: Dec 2004
Posts: 66
B
Babel fish
Offline
Babel fish
B
Joined: Dec 2004
Posts: 66
To use do:
/Who.Oper
while in the channel.

Code:
alias Who.Oper {
  if ($window($active).type != channel) return
  set -u120 %Who.Oper.Channel $active
  set -u120 %Who.Oper.Count 0
  who %Who.Oper.Channel o
}

raw 352:*:{
  if ($2 != %Who.Oper.Channel) return
  inc %Who.Oper.Count
  if (%Who.Oper.Count == 1) echo -a -
  echo -a $6 is $3 $+ @ $+ $4 * $9-
  halt
}

raw 315:*:{
  if ($2 != %Who.Oper.Channel) return
  if (!%Who.Oper.Count) {
    echo -a -
    echo -a No IRC Operators found in %Who.Oper.Channel
  }
  echo -a -
  unset %Who.Oper.*
  halt
}

Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
Thank you! wink


Link Copied to Clipboard