mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2005
Posts: 449
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Hi,

I'm the registered owner of a channel, so I automatically get owner status when I join it. I want to write a remote to set mode -q when I get owner status. I wrote this and thought it would be easy, but it's not working.. Any ideas?

on 1:SERVERMODE:#Blake: {
if ($nick = Blake) { msg chanserv deowner #Blake Blake }
}

I want it to take owner status away when I join, but I want to be able to give it to myself and keep it if I want.

Last edited by bwr30060; 06/09/05 08:42 AM.
Joined: Apr 2005
Posts: 1,009
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
on 1:JOIN:#Blake: {


IceCapped
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Hi again Blake.

There's an undocumented Event that may be of some use to you..

On Owner

Code:
on *:Owner:#: { 
  if ($opnick == $me) {    
    mode $chan -q $me
  }
}


-Andy

Joined: Apr 2005
Posts: 1,009
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
why is it hidden from public ?


IceCapped
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
It was added at some point I have no idea when or why it was taken out. There's many more undocumented events, $identifiers and such. smile

-Andy

Joined: Aug 2005
Posts: 39
B
Ameglian cow
Offline
Ameglian cow
B
Joined: Aug 2005
Posts: 39
where is the whole list?

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I can't seem to find a help file with anything undocumented but it there is quite a few. Do a search on here for "undocumented" maybe in Bug Reports. Also, look in versios.txt to see whats been deleted and removed from 1995-2004.

Edit: It seems here will most likely help you with an updated help file.

-Andy

Joined: May 2005
Posts: 449
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Nice!....That works. Knew it was going to be simple. Thanks, Andy.

One more question...Is there a way to do this so I can still have it take owner status away when I join, but let me use chanserv to give it to myself later if I want?

Last edited by bwr30060; 06/09/05 01:10 PM.
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I know nothing about Owner/Deowner or any IRCx stuff to be totally honest with you. I don't know any IRCx servers to test this on either bu try..

Code:
On me:*:Join:#: { set -u5 %owner.chan $chan }
On *:Owner:#: {   
  if (($opnick == $me) && (%owner.chan)) { mode $chan -q $me }
}



This sets a var for 5 seconds when you join a channel, deowner's you. If the var isn't set you'll stay an owner, 5 seconds should give it enough time to do it's thing. smile

-Andy

Joined: May 2005
Posts: 449
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
Thanks, that works.


Link Copied to Clipboard