MOTD

These are old archives. They are kept for historic purposes only.
SNewman
Posts: 5
Joined: Thu Nov 11, 2004 5:35 am

MOTD

Post 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.
Ron2K

Post by Ron2K »

Did you remember to rehash?
SNewman
Posts: 5
Joined: Thu Nov 11, 2004 5:35 am

Post by SNewman »

No....but is there any particular formatting for the MOTD file? Or do I just type the message?
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post 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.
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Post by jewles »

simply rehashing won't work. You need to rehash -motd.
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
SNewman
Posts: 5
Joined: Thu Nov 11, 2004 5:35 am

Post 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.
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post 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.
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Post 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?
SNewman
Posts: 5
Joined: Thu Nov 11, 2004 5:35 am

Post 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]
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post 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) :P .
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Post 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";
 * };
 */
Latinus
Posts: 7
Joined: Wed Jun 16, 2004 8:47 am
Location: Europe
Contact:

Post by Latinus »

So...

This :

Code: Select all

     flags
     {
       r,O,A;
     };
Becomes this :

Code: Select all

     flags
     {
       rOA;
     };
isn't it ?


edit :
or this ?

Code: Select all

flags "rOA";
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Post by katsklaw »

Code: Select all

flags "old type flags, like OAaRD";
Which one of you questions most resembles the example?
Latinus
Posts: 7
Joined: Wed Jun 16, 2004 8:47 am
Location: Europe
Contact:

Post 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...
SNewman
Posts: 5
Joined: Thu Nov 11, 2004 5:35 am

Post 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....
Post Reply