mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 30
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Apr 2003
Posts: 30
Sorry for being a nucense, How could I go about performing an action to all users in one class, Ops, or Voices for example? For example sending a message to only the Ops or Voices? Any info is greatley appreciated smile

Joined: Apr 2003
Posts: 30
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Apr 2003
Posts: 30
okies, it struck me to look on the net for scripts which may already have such a function, i stumbbled across one, here's the code if anyone's interested.

/set %num $nick($chan,0,o)
:begin | if (%num == 0) { goto finish }
else { /set %nick $nick($chan,%num,o)

if (%nick == $me) { goto skip }
else {
/mode $chan -o+b %nick
/Kick $chan %nick
}
:skip
dec %num 1
goto begin
:finish
/unset %num
/unset %nick

Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
that looks pretty much a part of takeover script


Code:
//if ( khaled isgod ) echo yes | else echo no
Joined: Apr 2003
Posts: 30
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Apr 2003
Posts: 30
It was, like I said, I found the code, i figured a "takeover" script would use such a function, so I searched for one, found one, and took the required code for what I needed our of that smile

Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well mIRC already has a /omsg command which sends to all ops on a channel, but also, many servers have "receiver prefixes", like

/msg @#somechan this only goes to ops!
/msg +#somechan this only goes to voices!
/msg @+#somechan this goes to ops and voices!

Not all networks support this however, so it is best to try and see.

Joined: Apr 2003
Posts: 30
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Apr 2003
Posts: 30
DOH! - Thanks I didn't realise there was such a feature smile


Link Copied to Clipboard