mIRC Home    About    Download    Register    News    Help

Print Thread
deop all script #146376 03/04/06 11:12 PM
Joined: Apr 2006
Posts: 43
D
Dave4989 Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Apr 2006
Posts: 43
I was wondering if there was anyone who knew of a script that can deop everyone in channel without
/mode $chan -ooooo nick nick nick etc.

Re: deop all script #146377 03/04/06 11:17 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Not possible on any network that I'm aware of.

Re: deop all script #146378 03/04/06 11:58 PM
Joined: May 2005
Posts: 449
bwr30060 Offline
Fjord artisan
Offline
Fjord artisan
Joined: May 2005
Posts: 449
What about looping through every user in the channel and deopping them if they're an op?

Forgive me, I've been writing in VB too much lately and don't trust myself to write this correctly. The content in the code tags is NOT valid mIRC code, it's mostly pseudo-code.
Code:
x = 1
While (x <= $nick(#,0,o)) {
  mode # -o $nick(#,x,o)
inc x
}


I put the disclaimer because I'm not sure if it works, and it's been a long time since I've done mIRC scripting.

Last edited by bwr30060; 03/04/06 11:59 PM.
Re: deop all script #146379 04/04/06 12:08 AM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Code:
alias mdeop {
  if (!$1) echo -ac info * Syntax: /mdeop <#chan> <exempt nicks>
  elseif ($1 !ischan) echo -ac info * You're not on $+($1,.)
  elseif ($me !isop $1) echo -ac info * You're not opped on $+($1,.)
  else {
    var %i = 1
    while ($nick($1,%i,o)) {
      var %n = $v1
      if ((%n != $me) && (!$istok($2-,%n,32))) {
        var %m = %m %n
        if ($numtok(%m,32) == $modespl) {
          .timer 1 0 mode $1 $+(-,$str(o,$v1)) %m
          var %m
        }
      }
      inc %i
    }
    if (%m) mode $1 $+(-,$str(o,$numtok($v1,32))) %m
  }
}


alias mdeop {
if (!$1) echo -ac info * Syntax: /mdeop <#chan> <exempt nicks>
elseif ($1 !ischan) echo -ac info * You're not on $+($1,.)
elseif ($me !isop $1) echo -ac info * You're not opped on $+($1,.)
else {
var %i = 1
while ($nick($1,%i,o)) {
var %n = $v1
if ((%n != $me) && (!$istok($2-,%n,32))) {
var %m = %m %n
if ($numtok(%m,32) == $modespl) {
.timer 1 0 mode $1 $+(-,$str(o,$v1)) %m
var %m
}
}
inc %i
}
if (%m) mode $1 $+(-,$str(o,$numtok($v1,32))) %m
}
}

Last edited by mIRCManiac; 04/04/06 12:18 AM.
Re: deop all script #146380 04/04/06 01:51 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I got the impression from the original post that the poster was looking for a way to do it without using /mode <channel> -o <nick> Since they state in the original that they don't want to use /mode -ooo <nick> <nick> <nick>

Although, I suppose that could mean that they just don't want to use the mutliple switch option that is available.

Re: deop all script #146381 04/04/06 01:58 AM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Maybe they want to be able to take over a channel without triggering the server protections or alerting any IRCOps.

-genius_at_work

Re: deop all script #146382 04/04/06 03:30 AM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Quote:
without using /mode <channel> -o <nick>


Well really all he has to type is /mdeop <#chan>
If he wants to exempt some nicks he can add those.

Quote:
Maybe they want to be able to take over a channel without triggering the server protections or alerting any IRCOps.

-genius_at_work


Not my concern.

~ Edit ~

He should change this line (line 6)
var %i = 1

to this
var %i = 1,%m

in case there is a global variable named %m .. too late to edit.

Last edited by mIRCManiac; 04/04/06 03:44 AM.
Re: deop all script #146383 04/04/06 05:02 AM
Joined: Feb 2005
Posts: 185
S
Skeletor Offline
Vogon poet
Offline
Vogon poet
S
Joined: Feb 2005
Posts: 185
Quote:
Maybe they want to be able to take over a channel without triggering the server protections or alerting any IRCOps.

-genius_at_work


Why is that a bad thing? confused


sub-zero.homeip.net:6667

Re: deop all script #146384 04/04/06 07:34 AM
Joined: Jun 2003
Posts: 5,024
M
Mentality Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Is that a serious question?

Taking over channels is lame/irritating, and therefore... a bad thing smile

Regards,


Mentality/Chris
Re: deop all script #146385 04/04/06 09:18 AM
Joined: Apr 2006
Posts: 14
O
oneline Offline
Pikka bird
Offline
Pikka bird
O
Joined: Apr 2006
Posts: 14
you mean a script to use chanserv or something to mass deop everyone instead of the normal /mode in a script?