mIRC Home    About    Download    Register    News    Help

Print Thread
#87823 22/06/04 07:05 PM
Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
Hi all i need help with the following please

Code:
ON *:OP:# {
  if !$dialog(opx) { dialog -m opx opx }
  [color:red]msg # $snick has been opped[/color]
}
dialog opx {
  title "User Opped"
  size -1 -1 167 67
  option dbu
  button "OK", 1, 3 58 50 20, ok
  text "User has Opped in channel", 2, 2 4 165 20, center
  box "", 3, 1 0 168 80
  icon 4, 150 62 16 16,  mirc.ico, 0
  icon 5, 70 26 74 39,  xxx\7.jpg, 0
}


The bit in red above is supposed to be a message that would msg the channel i am in saying a nick has been opped
For example i OP NiceGuy, i want to get in my channel

[19:58] <@ShadowDemon> NiceGuy has been opped

instead i am getting

[19:57] <@ShadowDemon> has been opped
In other words it is not msg teh channel with the nick who got opped

how can i do this please ?
All i want is to visually see i have opped somebody with the dialog popup box and send a message to the rest of channel
perhaps warning everybody that a new OP is in channel and to be nice and no flooding etc.

Thanks
ShadowDemon
mIRC V6.15


Never argue with an idiot...they'll drag you down to their level and beat you up with experience
#87824 22/06/04 07:09 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
use $opnick not $snick

Eamonn.

Last edited by Coolkill; 22/06/04 07:19 PM.
#87825 22/06/04 07:16 PM
Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
Thanks fast answer, but now it is saying

[20:14] * ShadowDemon sets mode: +o NiceGuy
[20:14] <@ShadowDemon> ShadowDemon has been opped

confused frown

ShadowDemon
mIRC V6.15


Never argue with an idiot...they'll drag you down to their level and beat you up with experience
#87826 22/06/04 07:18 PM
Joined: Mar 2004
Posts: 26
Ameglian cow
Offline
Ameglian cow
Joined: Mar 2004
Posts: 26
The user getting opped is $opnick - $nick is the user doing the opping.


Unknown error. (A)bort, (R)etry, (I)nfluence with large hammer?
#87827 22/06/04 07:19 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
that should have been $opnick sorry.. $nick refers to the person who did the op'ing.

and fyi, $snick refers to a nickname that is selected, i.e. in the nicklist.

#87828 22/06/04 07:23 PM
Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
Thanks for that help, i didnt know that, i have been re-reading the updated mirc help file, was sure what i was looking for

ShadowDemon


Never argue with an idiot...they'll drag you down to their level and beat you up with experience
#87829 22/06/04 07:25 PM
Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
Hi, maybe i got confused about the nicklist thing, i did try reading my popup code for the nicklist and assumed
it was $snick, as i was reading one of my old opping scripts.

Thanks for your help too

ShadowDemon


Never argue with an idiot...they'll drag you down to their level and beat you up with experience

Link Copied to Clipboard