mIRC Home    About    Download    Register    News    Help

Print Thread
#272503 15/03/24 08:52 PM
Joined: May 2014
Posts: 4
V
Self-satisfied door
OP Offline
Self-satisfied door
V
Joined: May 2014
Posts: 4
From help file:

ison nickname v1 is on channel v2

isop nickname v1 is an op on channel v2
+o
ishop nickname v1 is a halfop on channel v2
+h
isvoice nickname v1 has a voice on channel v2
+v
isreg nickname v1 is a normal nick on channel v2
normal nick

what about ! and ~ users? how are they identified in msl? I'm try to check if the user is ! or ~ but there is nothing in docs to explain these two levels.
I am trying to auto voice users who are not managed by nickserv(typically known users set to ! or ~) in a channel of +m (moderated). Unknown/new users are set to +v after 5 minutes in the channel.
sample:
if ($1 isreg $2) && ($1 !isvoice $2) && ($1 !isop $2) && ($1 !ishop $2) {
.timer $+ $2 $+ . $+ $1 1 300 /mode $2 +v $1
}


Assistance is appreciated.


Awesome games and info in irc.abjects.net #420 (where stoners hang out)
VectorOne #272504 15/03/24 10:57 PM
Joined: Jul 2006
Posts: 4,172
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,172
You can use if ($nick($chan,nick,!)) { and if ($nick($chan,nick,~)) { to test if a nick has such prefix mode.

mIRC has support for (at least) owner mode from unrealircd (+q mode), if that's your case (but you could try otherwise) you can use the isowner operator.
However there's no support for 'admin' (+a mode), so you would have to use $nick() there.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard