Page 1 of 2
MOTD
Posted: Thu Nov 11, 2004 5:38 am
by SNewman
Hi. I just spent about an hour getting my UnrealIRCD up. And now, I can't even get MOTD working! I have a MOTD file in the same directory that UnrealIRCD is installed in.......is that right? Am I just supposed to type the message in that file? Put it in brackets? A little help please.
Posted: Thu Nov 11, 2004 7:44 am
by Ron2K
Did you remember to rehash?
Posted: Thu Nov 11, 2004 3:18 pm
by SNewman
No....but is there any particular formatting for the MOTD file? Or do I just type the message?
Posted: Thu Nov 11, 2004 4:58 pm
by AngryWolf
Just type the message. MOTD files are simple plain text files that are displayed to users as they are, with the exception that mIRC color codes and other usual formattings are supported.
Posted: Thu Nov 11, 2004 8:04 pm
by jewles
simply rehashing won't work. You need to rehash -motd.
Posted: Thu Nov 11, 2004 8:05 pm
by SNewman
Thanks to all comments. How would I re-hash the MOTD file? Or whatever I gotta do. I'm runnin this on Windows.
Posted: Thu Nov 11, 2004 8:28 pm
by AngryWolf
jewles wrote:simply rehashing won't work. You need to rehash -motd.
Let me correct you. I'll show you how a simple /rehash reloads the MOTD:
1. No MOTD file, after UnrealIRCd startup and connecting as a client, I get the following message:
422 MOTD File is missing
2. After creating ircd.motd and /rehash'ing:
372 - ! TEST !
3. After modifying the contents of ircd.motd and doing a /rehash again:
372 - ! TEST ! <Changed>
Probably you are talking about an old behaviour, but newer Unreal versions (including Unreal3.2.2) reload the MOTD & Rules just fine. Of course,
/rehash -motd can still be used to reload only those two files.
Posted: Thu Nov 11, 2004 8:55 pm
by katsklaw
Of course, /rehash -motd can still be used to reload only those two files.
Then why not use /rehash -motd when that is all you wish to reload?
Posted: Thu Nov 11, 2004 9:40 pm
by SNewman
Thanks again for all your help. I can't seem to be able to give my self the permissions I need to rehash though heh. Here is the code I am using:
Code: Select all
oper SNewman {
class clients;
from {
userhost *@*;
};
flags
{
r,O,A;
};
};
Any ideas?[/code]
Posted: Fri Nov 12, 2004 3:26 am
by aquanight
SNewman wrote:Thanks again for all your help. I can't seem to be able to give my self the permissions I need to rehash though heh. Here is the code I am using:
Code: Select all
oper SNewman {
class clients;
from {
userhost *@*;
};
flags
{
r,O,A;
};
};
Any ideas?[/code]
You can't mix the old flags with the new format. Try using admin; (note that that's all you need)

.
Posted: Fri Nov 12, 2004 3:56 am
by katsklaw
doc/example.conf says you can still use the old flags. At least the Win32 version does. Would that be inaccurate and need to be removed? (Taken from Win32 - Unreal3.2.2)
Code: Select all
/*
* NEW: oper {}
* OLD: O:Line
* Defines an IRC Operator
* IRC operators are there to keep sanity to the server and usually keep it
* maintained and connected to the network.
* The syntax is as follows:
* oper (login) {
* class (class to put them in, if different from I, moves them to new
* class);
* from {
* userhost (ident@host);
* userhost (ident@host);
* };
* flags
* {
* (flags here*);
* };
* OR
* flags "old type flags, like OAaRD";
* };
*/
Posted: Fri Nov 12, 2004 2:03 pm
by Latinus
So...
This :
Becomes this :
isn't it ?
edit :
or this ?
Posted: Fri Nov 12, 2004 4:27 pm
by katsklaw
Code: Select all
flags "old type flags, like OAaRD";
Which one of you questions most resembles the example?
Posted: Fri Nov 12, 2004 6:00 pm
by Latinus
katsklaw wrote:Code: Select all
flags "old type flags, like OAaRD";
Which one of you questions most resembles the example?
The last I think... I don't use "old style" flags...
Posted: Fri Nov 12, 2004 8:39 pm
by SNewman
Thanks to all again. I'll try all of your suggestions.
EDIT: Still not working

I wish there were a simpler way of doing this MOTD....