mIRC Home    About    Download    Register    News    Help

Print Thread
#164876 18/11/06 12:11 AM
Joined: Oct 2006
Posts: 82
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
hi there folks.

How would i get my room bot to ignore me on this op regulate script:

Code:
ON !@*:OP:#: {
  if ($opnick != $me) && !$istok(%chanops,$opnick,32) {
    if $nick($chan,0,o) >= 3 {
      mode $chan -o $opnick
    }
  }
}


as it works fine but when i enter my channel it de-ops me and re-ops me all the time thus causing a problem

thanks in advance


Never ASSUME!!!

As it often makes and ASS out of U and ME!!
Joined: Jul 2006
Posts: 242
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
Code:
ON !@*:OP:#: {
  if  !$istok(%chanops,$opnick,32) {
    if $nick($chan,0,o) >= 3 {
      mode $chan -o $opnick
    }
  }
}

  


put your nick in the %chanops variable


Newbie
Joined: Oct 2006
Posts: 82
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
Quote:
Code:
ON !@*:OP:#: {
  if  !$istok(%chanops,$opnick,32) {
    if $nick($chan,0,o) >= 3 {
      mode $chan -o $opnick
    }
  }
}

  


put your nick in the %chanops variable


i put my nick in the variable tab, is that what you mean ?


Never ASSUME!!!

As it often makes and ASS out of U and ME!!
Joined: Jan 2003
Posts: 53
Z
Babel fish
Offline
Babel fish
Z
Joined: Jan 2003
Posts: 53
/set %chanops yournick someoneelse thirdnick

like that

Joined: Oct 2006
Posts: 82
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
Originally Posted By: BritishGent
Quote:
Code:
ON !@*:OP:#: {
  if  !$istok(%chanops,$opnick,32) {
    if $nick($chan,0,o) >= 3 {
      mode $chan -o $opnick
    }
  }
}

  


put your nick in the %chanops variable


Is there anyway i can alter this script to work along the chanserv enforce option so that the bot does the de-op command via chanserv ?

Thanks

i put my nick in the variable tab, is that what you mean ?


Never ASSUME!!!

As it often makes and ASS out of U and ME!!
Joined: Dec 2006
Posts: 80
Babel fish
Offline
Babel fish
Joined: Dec 2006
Posts: 80
Yes, you would want to put your name, or whoever you want to be safe from the bot's de-opping, behind the variable %chanops on your variable tab.

Then if you want your bot to de-op the $opnick, instead of the command /mode $chan -o $opnick, you can use /msg ChanServ deop $chan $opnick

Your bot will message the server to deop $opnick.

These ChanServ features usually require nickname registration. Make sure your bot's name is registered, if that is the case.


Scripto ---- Life is about the relationships. The correct code being: $replace($them,$you,$me)
Joined: Oct 2006
Posts: 82
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
thanks for the response but that doesn't seem to work alongside chanserv enforce option.


Never ASSUME!!!

As it often makes and ASS out of U and ME!!
Joined: Dec 2006
Posts: 80
Babel fish
Offline
Babel fish
Joined: Dec 2006
Posts: 80
Yes, that is true, if you have the ENFORCE option set ON, then you might start an op or de-op "argument" between your bot and the server.

One or the other (bot command or server ENFORCE setting) needs to have priority on the channel.

The Ircd is designed with those features to compensate for users who might not be as inclined to use a bot, to still have some limited control over their channel.


Scripto ---- Life is about the relationships. The correct code being: $replace($them,$you,$me)
Joined: Oct 2006
Posts: 82
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
I have another question regarding this script:

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


Is it possible to alter it so any one who ops up in the channel other than named in the variables will automatically be de-opped ?

Thank You


Never ASSUME!!!

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

Link Copied to Clipboard