Page 1 of 1

Problems with opers...

Posted: Sat May 01, 2004 1:17 pm
by MAX-k
Hello,

I've recently downloaded UnrealIRCD...
And i can't add any opers!
Here is my code:

Code: Select all

oper MAX-k {
        class           clients;
        password "pass";
from {
         userhost (*@*);
         };
        flags
        {
                netadmin;
                global;
        };
};
Can you tell me what's wrong in my code?
Tanks.

PS: I'm so beginner in irc servers.. so pls, be nice! :)
PS2: Sorry for my bad English...

Posted: Sat May 01, 2004 1:38 pm
by katsklaw
it doesn't follow the syntax used in the oper block.

Code: Select all

 oper login { 
     class clients; 
     from { 
        userhost ident@host;
     }; 
     password "PaSsWoRd";
     flags
     { 
       flags here*;
     };
     OR
     flags "old type flags, like OAaRD";
 };


Change it to this:

Posted: Mon May 03, 2004 6:15 pm
by _MiF_

Code: Select all

oper MAX-k { 
        class           clients; 
        password "pass"; 
from { 
         userhost *@*; 
         }; 
        flags 
        { 
                netadmin; 
                global; 
        }; 
};

Posted: Tue May 04, 2004 6:35 am
by Ron2K
That still doesn't follow the proper syntax! I don't know whether that will work, but here's what should be used (just to be on the safe side):

Code: Select all

oper MAX-k { 
     class clients; 
     from { 
        userhost *@*; 
     }; 
     password "pass"; 
     flags 
     { 
       netadmin; 
       global:
     }; 
 }; 
Just swap the userhost and password around and you're complying with the correct syntax.

Posted: Tue May 04, 2004 8:04 pm
by katsklaw
Uhm .. mine has to be correct .. I took if directly from my working O:Line (omitting real info of course).

Posted: Wed May 05, 2004 3:01 am
by codemastr
With only maybe 2 exceptions, the order of the directives inside a config block is completely irrelevant.

Posted: Wed May 05, 2004 6:02 am
by Ron2K
Oh, ok.

*Ron remembers that for future reference...*