mIRC Home    About    Download    Register    News    Help

Print Thread
#118077 22/04/05 12:51 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I'm looking for a way to keep chanserv from opping me in a particular room if I'm not using my main nick...I've tried several different ideas that have occured to me, but in all cases, my alternate nick is opped by chanserv. Both my main and alternate nicks are registered and grouped using the nickserv group command.

#118078 22/04/05 01:12 AM
Joined: Feb 2005
Posts: 194
A
Vogon poet
Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
Well, I dont know your chanserv. I also know that you are a pretty good scripter, so im sure this already occured to you, but you could use this. It will only deop you, not keep chanserv from oping you.

Code:
on *:OP:#room: {
  if ($nick == Chanserv) && ($opnick == $me) && ($me != %main.nick) { mode # -o $me }
}
Then just use: //set %main.nick <main nick>. Im sure you knew this. Oh well. smirk

Last edited by alhammer; 22/04/05 01:17 AM.

"God sometimes puts us in the dark for us to see the light"
#118079 22/04/05 02:08 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
not sure as I have not tried this, but wouldnt /mode -r $me work if done before entering the channel?

#118080 22/04/05 06:00 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I don't know what that mode would do...I can't find it in the documentation

#118081 22/04/05 06:10 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
with the exception of using $mnick in place of the %main.nick variable, yes I did give that a try. Figured there was no sense in setting a variable, when there's an identifier with the information in it already.

#118082 22/04/05 06:37 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
(depending on the IRCD) when you identify your mode to the server is +r
to see the modes set on the server type in the status window /mode (your nick)

but I just tried this on sandnet and it didn't unset my registered/identified setting on the server.... frown

#118083 22/04/05 01:14 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
It has been some time since I've done anything with chanserv, but if you deop yourself through chanserv, won't it store that until you rejoin the channel?


Invision Support
#Invision on irc.irchighway.net
#118084 23/04/05 12:27 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Probably Rimus2, however, I'm not leaving the channel, just changing my nick. In any case, everyone, I managed to get coding that works.
In remotes
Code:
 on *:nick:{
  if ($newnick != $mnick) &amp;&amp; ($me isop #channel) { .mode #channel -o $me }
}
 


Link Copied to Clipboard