mIRC Homepage
Posted By: stonez set +q on certain nick(s) - 21/11/14 07:08 AM
Good day fellow members,
I am having difficulty getting a simple script to work properly. Basically what I need is: When a specific OP joins the channel I need to automatically set +q on that OP.

My script for now is as follow:


on ^*:join:#: {
if ( $nick isop $chan || $me isop $chan ) {
/mode $chan +q $nick
else { HALT }
}
}
Posted By: westor Re: set +q on certain nick(s) - 21/11/14 07:14 AM
Try use this code (NOT TESTED):

Code:
ON !*:KICK:#: { .timer[CHECK_ $+ $knick $+ _ $+ $chan $+ _JOIN] off }
ON !*:JOIN:#: { .timer[CHECK_ $+ $nick $+ _ $+ $chan $+ _JOIN] 1 3 check_join $nick $chan }
ON !*:PART:#: { .timer[CHECK_ $+ $nick $+ _ $+ $chan $+ _JOIN] off }
ON !*:QUIT: { .timer[CHECK_ $+ $nick $+ _ $+ $chan $+ _JOIN] }

alias check_join {
  if (!$1-) { return }
  if ($me !ison $2) { return }
  if ($me !isop $2) { return }
  if ($1 !ison $2) { return }
  if ($1 !isop $2) { return }
  .mode $2 +q $1
}
Posted By: stonez Re: set +q on certain nick(s) - 21/11/14 07:21 AM
Hehe that seems to work just fine smile

Thank you VERY much!
© mIRC Discussion Forums