mIRC Home    About    Download    Register    News    Help

Print Thread
#65988 30/12/03 02:33 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
Code:
 on *:op:#:{ 
  if ($me == $opnick) {
    if $nick == X { halt }
    if $chan == $active { halt }
    if %away.system == on { halt }
    else { 
      if  [color:red] im on the network [/color]  { echo.green $nick gave you op in $chan }
      else { echo.green $nick gave you op in $chan ( $+ $lower($network) $+ ) }
    }
  }
} 

#65989 30/12/03 02:38 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
if ($network == MyNetwork)

I'm not really sure what you mean

Code:
on *:OP:#: {
  if (($opnick != $me) || ($nick == X) || (# == $active) || (%away.system == on)) return
  if ($network == MyNetwork) echo.green $nick gave you op in #
  else echo.green $nick gave you op in # ( $+ $lower($network) $+ )
}

Last edited by EVH; 30/12/03 02:46 PM.
#65990 30/12/03 02:44 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
If I'm on the network there I got the op, reply the echo line without ( $+ $network $+ ) in the ending. Else return the echo line with the ( $+ $network $+ ) in the ending. grin

#65991 30/12/03 02:50 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
Well for that you could use if ($cid == $activecid)

Code:
on *:OP:#: {
  if (($opnick != $me) || ($nick == X) || (# == $active) || (%away.system == on)) return
  if ($cid == $activecid) echo.green $nick gave you op in #
  else echo.green $nick gave you op in # ( $+ $lower($network) $+ )
}

Last edited by EVH; 30/12/03 02:50 PM.
#65992 30/12/03 02:58 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
thanks!!! smile worked good as hell.. smirk

#65993 30/12/03 03:00 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
My pleasure smile


Link Copied to Clipboard