mIRC Home    About    Download    Register    News    Help

Print Thread
#44707 29/08/03 01:54 AM
Joined: Feb 2003
Posts: 106
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Feb 2003
Posts: 106
the usual syntax to give several pp ops is
mode # +ooo $$1 $2 $3
however, i seem to recall seeing a different way wherein you could op many ppl using somethin like
mode # +o $1-
does anybody know the code?
thanks


-
Just because it never happened doesn't mean it isn't true.
#44708 29/08/03 03:21 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
mind providing an example? How would you use it. All i can think of is something similar to a mass op, if that;s what you are referring.


-KingTomato
#44709 29/08/03 03:32 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
alias op {
tokenize 32 $1-
mode # + $+ $str(o,$0) $1-
}
/op nick1 nick2 nick3 nick4 etc etc
sorry if thats not what you meant, but thats how i saw it :tongue:


new username: tidy_trax
#44710 29/08/03 03:39 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
The problem with ur scripts pheonix is that you dont failsafe them. What if they enter [edit]10[/edit] names, but $modespl can only support 4? Now you have 6 unchanged modes...

Code:
alias op {
  var %n = 1, %chan = $1
  if (!$2) {
    /echo -s Insufficient Parameters: /op <channel> <nick1>[,<nick2>,...]
    return
  }
  while ($gettok($2-, %n, 32)) {
    var %nicks = %nicks $ifmatch
    if ($numtok(%nicks, 32) == $modespl) {
      /mode %chan $+(+,$str(o,$modespl)) %nicks
      /unset %nicks
    }
    /inc %n
  }
  if (%nicks) /mode %chan $+(+,$str(o,$modespl)) %nicks
}


Thats a lil more failsafe

/op #channel KingTomato Pheonix Codemastr Blah Blah2

on a server with $modespl = 3 would be:

/mode #channel +ooo KingTomato Pheonix Codemastr
/mode #channel +ooo Blah Blah2

EDIT: "enter 0 names" means "enter 10 names"


-KingTomato
#44711 29/08/03 03:43 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
hmm, ill start to test my code on multi-servers, now i just stick to 1 server which allows a maximum of 60 at any 1 time :tongue:


new username: tidy_trax
#44712 29/08/03 04:59 PM
Joined: Dec 2002
Posts: 124
B
Vogon poet
Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124
??? chat allows 27 nicks with one /mode cmd.

Since that is the Network you're going to use it on. =P

#44713 29/08/03 05:23 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
nope, i only go on msn with webchat, i cant give u the server because it would be spamming.


new username: tidy_trax
#44714 29/08/03 05:33 PM
Joined: Dec 2002
Posts: 124
B
Vogon poet
Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124
Alright. laugh

#44715 30/08/03 12:50 PM
Joined: Aug 2003
Posts: 2
I
itr Offline
Bowl of petunias
Offline
Bowl of petunias
I
Joined: Aug 2003
Posts: 2
i believe you're reffering to in a popup you can do - op:/mode # +o $*


Link Copied to Clipboard