mIRC Home    About    Download    Register    News    Help

Print Thread
#249255 21/11/14 07:08 AM
Joined: Nov 2014
Posts: 4
S
stonez Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Nov 2014
Posts: 4
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 }
}
}

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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
}


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Nov 2014
Posts: 4
S
stonez Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Nov 2014
Posts: 4
Hehe that seems to work just fine smile

Thank you VERY much!


Link Copied to Clipboard