Page 1 of 1

specific motd for each access address to the server

Posted: Sat Nov 06, 2004 12:52 am
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,

Posted: Sat Nov 06, 2004 3:07 am
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.

Posted: Sat Nov 06, 2004 8:42 am
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,

Posted: Sat Nov 06, 2004 10:02 am
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...

Posted: Sat Nov 06, 2004 10:10 am
by dragonslore
You understand me perfecly.

Sad to know that there is no solution...

Thank you for all

Posted: Sat Nov 06, 2004 3:31 pm
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.