mIRC Home    About    Download    Register    News    Help

Page 1 of 2 1 2 >
Topic Options
#22772 - 06/05/03 09:07 PM Control the Number Of Oped Users
Krafo Offline
Pikka bird

Registered: 10/12/02
Posts: 18
Loc: Malta
Hello people, I would like to know if i can do something like a remote or alias.. so that there's a limit on the number of oped users on my channel. I mean for example i want to have only 4 users oped on my channel, and if a fifth user try to get op, i will automatically deop him, and /notice him that there is the limit full... can someone help him please? Thankx a lot in advance for your help. smile

Top
#22773 - 06/05/03 09:19 PM Re: Control the Number Of Oped Users
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
The following would mean if there is more than or equal to 10 owners on your channel then it will deop them and also make sure their deowner prot wont take affect(unless its l337)grin
if you would like to change the number from 10 change >= 10 to >= (number here)
code:
on ^*OWNER:#:{
var %owner $nick(#,0,q)
if ($opnick != $me) && (%owner >= 10) {
access # clear owner
mode # -q $opnick
prop # ownerkey $r(0,999) $+ $r(a,z) $+ $r(A,Z) $+ $me
msg # sorry $opnick too many ops
}
}


Edited by pheonix (06/05/03 09:24 PM)
_________________________
new username: tidy_trax

Top
#22774 - 06/05/03 09:19 PM Re: Control the Number Of Oped Users
Watchdog Offline
Hoopy frood

Registered: 09/12/02
Posts: 2984
Loc: Hill End, NSW, Australia
Code:
ON !*:OP:#: {
  if ($nick(#,0,o) > 4) {
    mode # -o $opnick
    notice $opnick The hosting limit has been reached. Please wait for someone to deop first.
  }
}
This should do the trick. If the other user has deop protection running there will be the mutha of all mode wars though. :tongue:

Phoenix: He wanted to check on OP level not OWNER and you forgot a colon on line one.
_________________________
Induced IRC
irc.induced.net

Top
#22775 - 06/05/03 09:26 PM Re: Control the Number Of Oped Users
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
colon confused??
_________________________
new username: tidy_trax

Top
#22776 - 06/05/03 09:27 PM Re: Control the Number Of Oped Users
Watchdog Offline
Hoopy frood

Registered: 09/12/02
Posts: 2984
Loc: Hill End, NSW, Australia
One of these ---> :
_________________________
Induced IRC
irc.induced.net

Top
#22777 - 06/05/03 09:37 PM Re: Control the Number Of Oped Users
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
fine just to make it better have both grin
code:
on ^*:OWNER:#:{
var %owner $nick(#,0,q)
if ($me isowner $chan) && ($opnick != $me) && (%owner > 4) {
access # clear owner
mode # -q $opnick
prop # ownerkey $r(0,999) $+ $r(a,z) $+ $r(A,Z) $+ $me
msg # sorry $opnick owner limit was reached
}
else {
HALT
}
}



code:
on ^*:OP:#:{
var %host $nick(#,0,o)
if ($me isowner $chan) && ($opnick != $me) && (%host >= 4) {
access # clear host
mode # -o $opnick
prop # ownerkey $r(0,999) $+ $r(a,z) $r(A,Z) $+ $me
}
elseif ($me isop $chan) && ($opnick != $me) && (%host >= 4) {
access # clear host
access # clear grant
mode # -o $opnick
}
else {
HALT
}
}


Happy now watchdog smirk


Edited by pheonix (06/05/03 09:39 PM)
_________________________
new username: tidy_trax

Top
#22778 - 06/05/03 10:16 PM Re: Control the Number Of Oped Users
Krafo Offline
Pikka bird

Registered: 10/12/02
Posts: 18
Loc: Malta
Cool guys, thankx a lot both of you. So... can i put those two remotes in my remotes? or i have to put just one of them? Thankx a lot... i will try them, and give you the results tomorrow cool

Top
#22779 - 06/05/03 10:19 PM Re: Control the Number Of Oped Users
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
the second 1 that i posted all goes in 1 remote file


Edited by pheonix (06/05/03 10:20 PM)
_________________________
new username: tidy_trax

Top
#22780 - 06/05/03 10:23 PM Re: Control the Number Of Oped Users
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
your turn to help me lol
how do ya get the pic next to your name blush?
_________________________
new username: tidy_trax

Top
#22781 - 06/05/03 11:05 PM Re: Control the Number Of Oped Users
Jesper Offline
Babel fish

Registered: 31/01/03
Posts: 96
Loc: Denmark
pheonix click on me scroll to URL to your picture (80x80 max pixels, may be smaller) (.gif, .jpg, .png accepted) type the full url to your picture in the editbox below smile
_________________________
Enigma Rising Tide Forums

Top
#22782 - 06/05/03 11:16 PM Re: Control the Number Of Oped Users
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922
By the way, phoenix, please shorten your "location" information. It increases the size of the whole table, and wastes screen space. Thanks.

Top
#22783 - 06/05/03 11:43 PM Re: Control the Number Of Oped Users
Othello Offline
Fjord artisan

Registered: 09/12/02
Posts: 417
Question? If there are already 4 ops in the channel and your the 5th op will the script deop you when you get oped? grin
_________________________


Intelligence: It's better to ask a stupid question, then to prove it by not asking....

Top
#22784 - 06/05/03 11:44 PM Re: Control the Number Of Oped Users
Online Offline
Hoopy frood

Registered: 09/12/02
Posts: 1922
Watchdog's script should do.

Top
#22785 - 07/05/03 12:10 PM Re: Control the Number Of Oped Users
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
my script wont deop/deowner you but watchdogs will smirk
_________________________
new username: tidy_trax

Top
#22786 - 07/05/03 08:31 PM Re: Control the Number Of Oped Users
Krafo Offline
Pikka bird

Registered: 10/12/02
Posts: 18
Loc: Malta
Hey mates, thankx a lot for your help i tried the following remote you gave me:

on ^*:OP:#:{
var %host $nick(#,0,o)
if ($me isowner $chan) && ($opnick != $me) && (%host >= 4) {
access # clear host
mode # -o $opnick
prop # ownerkey $r(0,999) $+ $r(a,z) $r(A,Z) $+ $me
}
elseif ($me isop $chan) && ($opnick != $me) && (%host >= 4) {
access # clear host
access # clear grant
mode # -o $opnick
notice # sorry $opnick owner limit was reached

}
else {
HALT
}
}

I just pasted it into my remotes section. Actually it worked, but there seems to be something wrong... for example... i oped someone because we were only 2 users oped... but i soon automatically deop him... look:

* Krafo sets mode: +o Noflood
* Krafo sets mode: -o Noflood

and also on my status window i get the following error:

ACCESS Unknown command

Can you tell me if there's something i can do please? Thankx a lot in advance for you help smirk

Btw... have you asked my help on how i uploaded my avatar? If yes... simple i just uploaded the small pic on the web... and then just pasted the url were it asked for it http://members.lycos.co.uk/krafo/krafo.JPG hehe... thankx... hope ur able to help me. Thankx all of you mates.


Top
#22787 - 07/05/03 08:41 PM Re: Control the Number Of Oped Users
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
on ^*:OP:#:{
var %host $nick(#,0,o)
if ($me isowner $chan) && ($opnick != $me) && (%host >= 4) {
access # clear host
mode # -o $opnick
prop # ownerkey $r(0,999) $+ $r(a,z) $+ $r(A,Z) $+ $me
}
elseif ($me isop $chan) && ($opnick != $me) && (%host >= 4) {
access # clear host
access # clear grant
mode # -o $opnick
notice # sorry $opnick owner limit was reached

}
else {
HALT
}
}

try this
_________________________
new username: tidy_trax

Top
#22788 - 07/05/03 08:52 PM Re: Control the Number Of Oped Users
_D3m0n_ Offline
Hoopy frood

Registered: 11/12/02
Posts: 1527
Loc: Florida,USA
ok pheonix STOP posting uve confused this person and not helped them at all ..... dont u understand ur not helping ppl ... ur an ignorant fool please STOP your helping of ppl
_________________________
D3m0nnet.com

Top
#22789 - 07/05/03 08:57 PM Re: Control the Number Of Oped Users
MonoSex Offline
Fjord artisan

Registered: 09/12/02
Posts: 395
Loc: Ireland
Quote:
ACCESS Unknown command


I think he's not using MSN, so your "props" and "accesses" are useless.
Please, stop pasting code if you don't know what it does.

Top
#22790 - 08/05/03 06:41 PM Re: Control the Number Of Oped Users
Krafo Offline
Pikka bird

Registered: 10/12/02
Posts: 18
Loc: Malta
pheonix....the last code you gave me to try which means the following one:

on ^*:OP:#:{
var %host $nick(#,0,o)
if ($me isowner $chan) && ($opnick != $me) && (%host >= 4) {
access # clear host
mode # -o $opnick
prop # ownerkey $r(0,999) $+ $r(a,z) $+ $r(A,Z) $+ $me
}
elseif ($me isop $chan) && ($opnick != $me) && (%host >= 4) {
access # clear host
access # clear grant
mode # -o $opnick
notice # sorry $opnick owner limit was reached

}
else {
HALT
}
}

still have the problem, that when i op someone... even if we are in only 2 oped users i automatically deop him/her. You have any other ideas mate? Btw i am using mIRC not msn grin i would like if someone else would try to help me too smirk thankx again for trying to help me...

Top
#22791 - 08/05/03 06:57 PM Re: Control the Number Of Oped Users
Nimue Offline
Hoopy frood

Registered: 08/12/02
Posts: 699
Loc: Sunshine, Oz.
Code:
on @!*:op:#:{
  if $nick(#,0,o) > 4 && $opnick != $me {
    mode # -o $opnick
    notice $opnick Sorry but there are enough ops right now.
  }
}

Top
Page 1 of 2 1 2 >