Page 1 of 1

Channel restriction based on connected server?!

Posted: Tue Jun 12, 2007 10:23 pm
by atdheu78
How can i restrict joining to an channel based on the server the user is connected on.

Example:

2 servers are linked.

irc1.bla.net
irc2.bla.net

On channel #bla are only users from irc1-bla.net allowd. But on channel #blub are users from both servers allowd.

How could i implement it?

Thanx for help!

Posted: Tue Jun 12, 2007 10:39 pm
by Stealth
Why would you want this?

Re: Channel restriction based on connected server?!

Posted: Sat Aug 25, 2007 2:37 pm
by atdheu78
hello,

because of this problem:

I want to link my server with the server of a fried. But i dont want that the users of the friends server join my channel! How could i do this?

best regards

Re: Channel restriction based on connected server?!

Posted: Sat Aug 25, 2007 8:17 pm
by Stealth
If you make it so only a certain server could join your channel, what's to keep users from the other server from switching servers to be able to join?

Other than that, a few suggestions:
+i and +I
+b and +e
Services "restricted channel" setting (ie: only people with access can join)
A bot to check each users server when they join

Re: Channel restriction based on connected server?!

Posted: Sun Aug 26, 2007 5:56 pm
by Oyarsa
on other ircds this is done with local channels &channel instead of #channel. but local channels arent supported in unreal at this time ... dont think they will be either ... not much use for them

Re: Channel restriction based on connected server?!

Posted: Mon Aug 27, 2007 6:58 pm
by SNU
hmm local channel wouldn't be bad.
I think of the main server where only my opers are able to join so the operchannel could be local there and it would give me a better feeling .D

Re: Channel restriction based on connected server?!

Posted: Mon Aug 27, 2007 7:03 pm
by SpaceDoG
Set the channel to restricted/invite only. Give your users access to chanserv's invite command then when they connect they can just do /chanserv invite #channel. Unreal does not have a local channels feature at present.

Re: Channel restriction based on connected server?!

Posted: Wed Aug 29, 2007 3:16 am
by Shining Phoenix
I prefer restricted and +R, so that when someone on the access list tries to join, they don't get banned if they haven't identified yet and don't need to use /cs invite.

Re: Channel restriction based on connected server?!

Posted: Wed Aug 29, 2007 1:23 pm
by SpaceDoG
Shining Phoenix the only downfall with doing it that way is that everyone who is registered with ChanServ can join the room.

Re: Channel restriction based on connected server?!

Posted: Wed Aug 29, 2007 3:47 pm
by Jobe
SpaceDoG wrote:Shining Phoenix the only downfall with doing it that way is that everyone who is registered with ChanServ can join the room.
And as he said "restricted AND +R" they would get kick/banned immediatly.

Re: Channel restriction based on connected server?!

Posted: Wed Aug 29, 2007 9:32 pm
by Smithsonian
Uses +b on the hidden host prefix?

Re: Channel restriction based on connected server?!

Posted: Thu Aug 30, 2007 4:04 am
by Jobe
Smithsonian wrote:Uses +b on the hidden host prefix?
Scenario:
Channel on server A has ban on the hidden host prefix for server B
Server B doesnt have +x as a restricted user mode
User on server B tries to join channel on server A
User on server B sets mode -x
User on server B's host is no longer prefixed
User on server B can now join

Also not to mention I think the prefix needs to be the same net-wide. The cloak keys definatly do however.

Re: Channel restriction based on connected server?!

Posted: Tue Sep 04, 2007 6:21 am
by NaBiL
Hello Everybody & atdheu78.

Your wish is possible via the deny and allow channel. Let me explain :)

1. You have two servers as you stated namely : irc1.bla.net and irc2.bla.net and u wish that

2.
On channel #bla are only users from irc1-bla.net allowd. But on channel #blub are users from both servers allowd.
To do this go to the unrealircd.conf of the second server that you doesn't want users to enter #bla and put this code

Code: Select all

deny channel {
    channel "#bla";
    reason "Channel not allowed from this server !!! ";
};
And for the channel #blub, it may be accessible by both servers :)

Note:- I have registered myself here just to answer this question :) because i can see u didnt get a good response.

NaBiL
(If have questions about how to implement it, u may private message me :D)

Re: Channel restriction based on connected server?!

Posted: Tue Sep 04, 2007 8:29 am
by Jobe
The problem as I read it was that he wants to have his server stop users on the OTHER server joining his channel, a deny channel would require the cooperation of the other server's admin. If the other admin refuses then deny channel is then ruled out.

Although, im not sure if the author of this thread still reads it but there is one method which is still included in Unreal as a feature but may not be forever.

User a channel name with the format #CHANNEL:SERVER.MASK eg: #test:alpha.domain.tld can only be joined by users connected to alpha.domain.tld.