mIRC Home    About    Download    Register    News    Help

Print Thread
#266977 14/03/20 11:15 PM
Joined: Mar 2019
Posts: 1
R
Reader Offline OP
Mostly harmless
OP Offline
Mostly harmless
R
Joined: Mar 2019
Posts: 1
Hi

I wrote a script like this:

on *:op:#: {
if ($opnick == $me) /splay op.mp3
}

Sound is playing when the operator gives it later, but it does not play when he enters the channel and becomes an operator, so i wrote the following code but it doesn't work:

on me:*:join:#:{
if ($me isop $chan) /splay op.mp3
}

I would be happy if you help me
Have a nice day

Joined: Jul 2014
Posts: 308
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jul 2014
Posts: 308
Only with this small code, it works both ways. When you join a channel and receive OP and when someone gives you OP status.
Code
on *:op:#: {
  if ($opnick == $me) { .splay op.mp3 }
}


TECO
irc.PTirc.org (Co-Admin)

Link Copied to Clipboard