mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Control the Number Of Oped Users #22772 06/05/03 08:07 PM
Joined: Dec 2002
Posts: 18
Krafo Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Dec 2002
Posts: 18
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

Re: Control the Number Of Oped Users #22773 06/05/03 08:19 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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
}
}

Last edited by pheonix; 06/05/03 08:24 PM.

new username: tidy_trax
Re: Control the Number Of Oped Users #22774 06/05/03 08:19 PM
Joined: Dec 2002
Posts: 2,984
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,984
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
Re: Control the Number Of Oped Users #22775 06/05/03 08:26 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
colon confused??


new username: tidy_trax
Re: Control the Number Of Oped Users #22776 06/05/03 08:27 PM
Joined: Dec 2002
Posts: 2,984
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,984
One of these ---> :


Induced IRC
irc.induced.net
Re: Control the Number Of Oped Users #22777 06/05/03 08:37 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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

Last edited by pheonix; 06/05/03 08:39 PM.

new username: tidy_trax
Re: Control the Number Of Oped Users #22778 06/05/03 09:16 PM
Joined: Dec 2002
Posts: 18
Krafo Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Dec 2002
Posts: 18
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

Re: Control the Number Of Oped Users #22779 06/05/03 09:19 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
the second 1 that i posted all goes in 1 remote file

Last edited by pheonix; 06/05/03 09:20 PM.

new username: tidy_trax
Re: Control the Number Of Oped Users #22780 06/05/03 09:23 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
your turn to help me lol
how do ya get the pic next to your name blush?


new username: tidy_trax
Re: Control the Number Of Oped Users #22781 06/05/03 10:05 PM
Joined: Jan 2003
Posts: 96
J
Jesper Offline
Babel fish
Offline
Babel fish
J
Joined: Jan 2003
Posts: 96
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

Re: Control the Number Of Oped Users #22782 06/05/03 10:16 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
By the way, phoenix, please shorten your "location" information. It increases the size of the whole table, and wastes screen space. Thanks.

Re: Control the Number Of Oped Users #22783 06/05/03 10:43 PM
Joined: Dec 2002
Posts: 417
O
Othello Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
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....
Re: Control the Number Of Oped Users #22784 06/05/03 10:44 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Watchdog's script should do.

Re: Control the Number Of Oped Users #22785 07/05/03 11:10 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
my script wont deop/deowner you but watchdogs will smirk


new username: tidy_trax
Re: Control the Number Of Oped Users #22786 07/05/03 07:31 PM
Joined: Dec 2002
Posts: 18
Krafo Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Dec 2002
Posts: 18
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.


Re: Control the Number Of Oped Users #22787 07/05/03 07:41 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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
Re: Control the Number Of Oped Users #22788 07/05/03 07:52 PM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
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
Re: Control the Number Of Oped Users #22789 07/05/03 07:57 PM
Joined: Dec 2002
Posts: 395
M
MonoSex Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
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.

Re: Control the Number Of Oped Users #22790 08/05/03 05:41 PM
Joined: Dec 2002
Posts: 18
Krafo Offline OP
Pikka bird
OP Offline
Pikka bird
Joined: Dec 2002
Posts: 18
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...

Re: Control the Number Of Oped Users #22791 08/05/03 05:57 PM
Joined: Dec 2002
Posts: 699
N
Nimue Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Code:
on @!*:op:#:{
  if $nick(#,0,o) > 4 && $opnick != $me {
    mode # -o $opnick
    notice $opnick Sorry but there are enough ops right now.
  }
}

Page 1 of 2 1 2