mIRC Home    About    Download    Register    News    Help

Topic Options
#164430 - 12/11/06 09:59 AM Regulate Chan Ops
BritishGent Offline
Babel fish

Registered: 06/10/06
Posts: 82
Loc: Grimsby, Lincolnshire, UK
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
_________________________
Never ASSUME!!!

As it often makes and ASS out of U and ME!!

Top
#164431 - 12/11/06 11:48 AM Re: Regulate Chan Ops
HaleyJ Offline
Fjord artisan

Registered: 01/07/06
Posts: 242
Loc: London the city i love
maybe something like this

Code:
 ON !@*:OP:#: {
  if $nick($chan,0,o) >= 2 {
    mode $chan -o $opnick
  }
}
_________________________
Newbie

Top
#164432 - 12/11/06 11:52 AM Re: Regulate Chan Ops
HaleyJ Offline
Fjord artisan

Registered: 01/07/06
Posts: 242
Loc: London the city i love
bit more error free
Code:
 ON !@*:OP:#: {
  if ($opnick != $me) {
    if $nick($chan,0,o) >= 2 {
      mode $chan -o $opnick
    }
  }
}
_________________________
Newbie

Top
#164433 - 12/11/06 06:20 PM Re: Regulate Chan Ops
Zonk Offline
Babel fish

Registered: 27/01/03
Posts: 53
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 =)

Top
#164434 - 12/11/06 06:21 PM Re: Regulate Chan Ops
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
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.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#164435 - 12/11/06 07:46 PM Re: Regulate Chan Ops
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
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.

Top
#164436 - 12/11/06 10:06 PM Re: Regulate Chan Ops
BritishGent Offline
Babel fish

Registered: 06/10/06
Posts: 82
Loc: Grimsby, Lincolnshire, UK
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.


Edited by BritishGent (12/11/06 10:22 PM)
_________________________
Never ASSUME!!!

As it often makes and ASS out of U and ME!!

Top
#164437 - 13/11/06 01:19 AM Re: Regulate Chan Ops
JesusPaid4U Offline
Pikka bird

Registered: 23/03/06
Posts: 15
/nickserv set autoop off (services will not automatically op your nick)
this doesnt work on all networks but worth a try

Top
#164438 - 13/11/06 08:57 AM Re: Regulate Chan Ops
HaleyJ Offline
Fjord artisan

Registered: 01/07/06
Posts: 242
Loc: London the city i love
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.
_________________________
Newbie

Top
#164439 - 13/11/06 02:16 PM Re: Regulate Chan Ops
BritishGent Offline
Babel fish

Registered: 06/10/06
Posts: 82
Loc: Grimsby, Lincolnshire, UK
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
_________________________
Never ASSUME!!!

As it often makes and ASS out of U and ME!!

Top
#164440 - 13/11/06 04:17 PM Re: Regulate Chan Ops
BritishGent Offline
Babel fish

Registered: 06/10/06
Posts: 82
Loc: Grimsby, Lincolnshire, UK
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
_________________________
Never ASSUME!!!

As it often makes and ASS out of U and ME!!

Top