specific motd for each access address to the server

These are old archives. They are kept for historic purposes only.
Post Reply
dragonslore
Posts: 3
Joined: Sat Nov 06, 2004 12:45 am
Location: France

specific motd for each access address to the server

Post by dragonslore »

Hello,

I'm a french people and I work with Unreal 3.2.1.

I host 1 Unrealirc server and I would like to display a specific welcome message for each access address to the server.

if you use irc.mydomain1.com address you will have the following welcome message "Welcome on mydomain1"

if you use irc.mydomain2.com address you will have the following welcome message "Welcome on mydomain2"

...

After many search on the internet, I didn't find anything to reply to my question.

Thank you very much for your help,
Pierre-Manu
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Post by katsklaw »

the doc/example.conf contains a perfect example of how to do this. The example is even for French :)

Code: Select all

tld {
	mask *@*.fr;
	motd "ircd.motd.fr";
	rules "ircd.rules.fr";
};
Please read *ALL* supporting docs! Also there is an international forum if you require help in your native language.
dragonslore
Posts: 3
Joined: Sat Nov 06, 2004 12:45 am
Location: France

Post by dragonslore »

Thanks for your quick answer :)

I'm not sure you understood me...

The example you gave to me is the one I tried.
It redirects the user on the motd after testing his Hostname but not the access URL used in the IRC Client.

Maybe I did a mistake, what is syntax of the mask if I want to test "irc.nightwish.fr" ?

I have tried the following exemple yet, please correct me if I'm wrong.

Code: Select all

tld { 
   mask irc.nightwish.fr; 
   motd "ircd.motd.fr"; 
   rules "ircd.rules.fr"; 
};
Another big thank to you for all,
Pierre-Manu
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

Don't know if I understand you correctly...

You have 1 Server.
This Server is reachable under irc.somedomain.com, irc.someotherhost.com etc?

And now you want to check if a user is connecting to irc.somedomain.com or irc.someotherhost.com and display a different motd?


Well then you're out of luck - there's no such feature. :(
The Users connecting are not sending the host they are connecting to to the IRCd... IRC is not HTTP...

The TLD Block won't help you much there - it's something completely different...
dragonslore
Posts: 3
Joined: Sat Nov 06, 2004 12:45 am
Location: France

Post by dragonslore »

You understand me perfecly.

Sad to know that there is no solution...

Thank you for all
Pierre-Manu
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Post by katsklaw »

oh I see what you was getting at now :) .. sorry I was assuming that by saying "welcome message" you was meaning MOTD. Sorry if I confused you.
Post Reply