mIRC Home    About    Download    Register    News    Help

Print Thread
#139228 12/01/06 03:10 PM
Joined: Jan 2006
Posts: 5
T
Time Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Jan 2006
Posts: 5
I've noticed in some ircii clients, or maybe it was irssi that they display <*@nick> where the * denotes that the nick is /oper'ed. How would this be achieved in the background (ie with no /who stuff in status) with an mIRC script?

Thanks.

#139229 12/01/06 06:18 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
hold down the ALT key, type the o key
scroll down to IRC, click IRC to select it
second item on the left is what you want

#139230 12/01/06 07:00 PM
Joined: Jan 2006
Posts: 5
T
Time Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Jan 2006
Posts: 5
No, that only shows @ and + channel specific mode prefixes (or & and ~ on unreal ircd). The * is something beyond that.

#139231 12/01/06 07:07 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
by "op'ered" then, you mean an o-line...
and you want to do this without a /who or /whois
is this right?

#139232 12/01/06 07:19 PM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
It's not really possible without some kind of /who or /whois
unless the IRC Server supports some other non-standard way of telling who is and who is not an IRC operator.

Should be simple enough to hide the who reply from your status window.
Unsure if you meant not see the /who reply, or not use /who

I threw some messy code together anyway.
Not really tested.

Code:
alias GetHaltWhoVar { return $+(%,$1,$chr(44),$2,$chr(44),haltwho) }

; Might sendQ off when /who ing really large channels. 
; Can raise and lower this as you see fit.
alias GetNoWhoChanSizeThreshold { return 600 }

raw 366:*:{
  echo -s $1-
  echo -a $chan($2).ial
  if ($chan($2).ial == $false) &amp;&amp; ($nick($2,0) &lt; $GetNoWhoChanSizeThreshold) { 
    who $2
    set $GetHaltWhoVar($cid,$2) 1 
  }
}

raw 352:*:{
  if ((* isin $7) &amp;&amp; ($ial($6))) .ialmark $6 oper
  if ($var($gethaltwhovar($cid,$2))) halt
}
raw 315:*:{ 
  if ($var($gethaltwhovar($cid,$2))) {
    unset $GetHaltWhoVar($cid,$2) 
    halt
  }
}

alias ShortPnick {
  ; (channel, nick)
  var %s = $nick($$1, $$2).pnick
  var %oper = $iif($ial($2).mark == oper,*,$null)
  if ($left(%s,1) == $left($2,1)) return $+(%oper,$2)
  else return $+(%oper,$left(%s,1),$2)
}

on ^*:text:*:#:{
  ;need to add echo flags
  echo -t # &lt; $+ $ShortPnick(#,$nick) $+ &gt; $1-
  halt
}


Needs some work, like adding the flags to the echo to get the highlight working again, I can't remember them all.
You might want action messages to flag up they're an oper too. Sure you can manage to look that one up for yourself.

Can add an on input one too, but could check your own usermodes for that, not the ial mark.

Might want to remember that if an oper does /mode theirnick -oO you'd still think they were an oper, at least until you did /names #channel or /who #channel again.

#139233 12/01/06 08:55 PM
Joined: Jan 2006
Posts: 5
T
Time Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Jan 2006
Posts: 5
I should've clarified, I wanted to hide the /who info heh. Sorry about that, I know it requires it just wanted to make it "invisible" as it were.

I think the best echo flags are:
echo -lmt # < $+ $ShortPnick(#,$nick) $+ > $1-
just to expand on that little bit.

Either way: thank you very much Hitchhiker, that's very grand of you.

#139234 14/01/06 06:23 PM
Joined: Apr 2004
Posts: 218
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
As said before I believe this would not be possible without some extra script things (/who, /ircops, /whois, etc.)
Only way would be the IRCd shows * in channel messages indicating it is an IRCOp.


Live to Dream & Dream for Life

Link Copied to Clipboard