mIRC Homepage
Posted By: BritishGent Regulate Chan Ops - 12/11/06 09:59 AM
Hi there all. Smile

I have just downloaded the DB54 bot, and what a fine bot it is..... Very Happy

I am asking here as i believe this is a mIRC scripting issue and not a DB54 issue although I have posted in there forum also smile

I have set it up in my registered channel on irc.icq.net and set most up what i require of it.

What i am posting about is regarding regulating op's in channel.

What would i need to programme into bot to regulate chanop's to no more than 2 at any time including the bot ?

Thanks in advance
Posted By: HaleyJ Re: Regulate Chan Ops - 12/11/06 11:48 AM
maybe something like this

Code:
 ON !@*:OP:#: {
  if $nick($chan,0,o) >= 2 {
    mode $chan -o $opnick
  }
}
Posted By: HaleyJ Re: Regulate Chan Ops - 12/11/06 11:52 AM
bit more error free
Code:
 ON !@*:OP:#: {
  if ($opnick != $me) {
    if $nick($chan,0,o) >= 2 {
      mode $chan -o $opnick
    }
  }
}
Posted By: Zonk Re: Regulate Chan Ops - 12/11/06 06:20 PM
That would limit it to you being the only op cuz it triggers if the number of ops >= 2 (you + someone else) AFTER the op event...

change it to > 2 and youre fine =)
Posted By: Riamus2 Re: Regulate Chan Ops - 12/11/06 06:21 PM
That will result in 3 if the bot is opped when 2 are already opped. smile

As long as the bot stays opped, it works fine.
Posted By: RusselB Re: Regulate Chan Ops - 12/11/06 07:46 PM
And the bot must be opped, since the @ character in the OP event would prevent the script from working if the bot isn't opped.
Posted By: BritishGent Re: Regulate Chan Ops - 12/11/06 10:06 PM
thank you for help, i have set it to 3 and it seems to limit ops to 2

How do i stop it from opping and de-opping myself as i do not wish to be included in the regulation ??

as it seems to throw the room into chaos when i log on and keeps opping and de-opping everyone.

I am the room owner if that helps.

This is what it does if I enter the room with 2 op's already present:

Code:
[22:18] * ^Silent_Runner^ (fliptop@767A0662.42BC928F.6D71A7A.IP) has left #Simons-Forums (cycling)
[22:18] * ^Silent_Runner^ (fliptop@767A0662.42BC928F.6D71A7A.IP) has joined #Simons-Forums
[22:18] * ChanServ sets mode: +q ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ^Merlin sets mode: +v ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^
[22:18] * ^Merlin sets mode: -o ^Silent_Runner^
[22:18] * ChanServ sets mode: +o ^Silent_Runner^


and i do not wish this to happen, i wish it to over look me as i am the room owner.
Posted By: JesusPaid4U Re: Regulate Chan Ops - 13/11/06 01:19 AM
/nickserv set autoop off (services will not automatically op your nick)
this doesnt work on all networks but worth a try
Posted By: HaleyJ Re: Regulate Chan Ops - 13/11/06 08:57 AM
Code:
ON !@*:OP:#: {
  if ($opnick != $me) && !$istok(%chanops,$opnick,32) {
    if $nick($chan,0,o) >= 2 {
      mode $chan -o $opnick
    }
  }
}  


didnt have time to test this.

put a variable in your vars tab called %chanops and put all your excepts there

i.e

%chanops nick1 nick2 nick 3

if it dosent work let me know and i will have another look at it later.
Posted By: BritishGent Re: Regulate Chan Ops - 13/11/06 02:16 PM
Quote:
Code:
ON !@*:OP:#: {
  if ($opnick != $me) && !$istok(%chanops,$opnick,32) {
    if $nick($chan,0,o) >= 2 {
      mode $chan -o $opnick
    }
  }
}  


didnt have time to test this.

put a variable in your vars tab called %chanops and put all your excepts there

i.e

%chanops nick1 nick2 nick 3

if it dosent work let me know and i will have another look at it later.


Thank you I will give this a go and let you know as soon as i am able to test it. smile
Posted By: BritishGent Re: Regulate Chan Ops - 13/11/06 04:17 PM
Quote:
Code:
ON !@*:OP:#: {
  if ($opnick != $me) && !$istok(%chanops,$opnick,32) {
    if $nick($chan,0,o) >= 2 {
      mode $chan -o $opnick
    }
  }
}  


didnt have time to test this.

put a variable in your vars tab called %chanops and put all your excepts there

i.e

%chanops nick1 nick2 nick 3

if it dosent work let me know and i will have another look at it later.


It seems to work fine, thank you so much for your help and assistance.....

i'de give you cyber hugs but hardly know you... lol
© mIRC Discussion Forums