mIRC Home    About    Download    Register    News    Help

Print Thread
#164430 12/11/06 09:59 AM
Joined: Oct 2006
Posts: 82
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
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!!
#164431 12/11/06 11:48 AM
Joined: Jul 2006
Posts: 242
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
maybe something like this

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


Newbie
#164432 12/11/06 11:52 AM
Joined: Jul 2006
Posts: 242
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
bit more error free
Code:
 ON !@*:OP:#: {
  if ($opnick != $me) {
    if $nick($chan,0,o) >= 2 {
      mode $chan -o $opnick
    }
  }
}


Newbie
#164433 12/11/06 06:20 PM
Joined: Jan 2003
Posts: 53
Z
Babel fish
Offline
Babel fish
Z
Joined: Jan 2003
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 =)

#164434 12/11/06 06:21 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
#164435 12/11/06 07:46 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

#164436 12/11/06 10:06 PM
Joined: Oct 2006
Posts: 82
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
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.

Last edited by BritishGent; 12/11/06 10:22 PM.

Never ASSUME!!!

As it often makes and ASS out of U and ME!!
#164437 13/11/06 01:19 AM
Joined: Mar 2006
Posts: 15
J
Pikka bird
Offline
Pikka bird
J
Joined: Mar 2006
Posts: 15
/nickserv set autoop off (services will not automatically op your nick)
this doesnt work on all networks but worth a try

#164438 13/11/06 08:57 AM
Joined: Jul 2006
Posts: 242
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
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
#164439 13/11/06 02:16 PM
Joined: Oct 2006
Posts: 82
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
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!!
#164440 13/11/06 04:17 PM
Joined: Oct 2006
Posts: 82
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
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!!

Link Copied to Clipboard