Page 1 of 1

Oper Block problem

Posted: Tue Jun 08, 2004 4:57 pm
by Karaken
Whenever i try to /oper myself, i get the No- O-Lines For Your Host error.
Not only that, I can't use /stats o, /rehash or any other administrave command. It just says that i do not have the proper IRC Operator Privleges.

Code: Select all

oper Karaken { 
     class clients; 
     from { 
        userhost *@*; 
     }; 
     password "PaSsWoRd"; 
     flags 
     { 
       global;
       netadmin;
       can_override;
       get_host;
     };  
 }; 
Is there anything wrong with my code perchance?

Posted: Tue Jun 08, 2004 5:58 pm
by Syzop
The block you pasted looks ok.
Did you rehash? Or if you are just setting up a server, why not just restart. Then you can also check if it gives any errors or warnings.
Also, both username and password are case sensitive, so you should do '/oper Karaken passwordhere'.
If that still doesn't work... You could temporary remove the stats restrictions by removing the set::oper-only-stats line in your conf, then you can check '/stats o'... If it then doesn't show up there's something wrong in your conf ;p.

Posted: Wed Jun 09, 2004 12:40 am
by w00t
Wait, I had this problem. I solved it by changing:

Code: Select all

from { 
        userhost *@*; 
     }; 
to

Code: Select all

from { 
        userhost *@*.*; 
     }; 
See if that helps

Posted: Wed Jun 09, 2004 1:32 am
by jewles
hmm, not sure what the real difference is?? maybe w0tt you could explain it?

How *@* looks for anything differently then *@*.*? All the statement seems to say is accept all idents at any host... to accept all idents at any host to any host

Posted: Wed Jun 09, 2004 1:49 am
by w00t
jeweles, I have no idea why it worked. It just did :P
I havent exactly had a look at how opering works in the source. (yet :P)

Posted: Wed Jun 09, 2004 2:46 am
by Syzop
*@* is ok.

People just like to think (which is logical) that after they changed something and it worked it must be that, however from time to time it happens that the change was totally unrelated and it got 'fixed' by ANOTHER event they didn't think.
I see this all the time... like if internet or a network connection goes down, and they type all kinds of commands, then after doing that stuff for a while it comes up again... "hey I fixed it", but in reality it was totally unrelated and was just because a certain period of time passed (isp/server up again) or anything else... Ah well, there are lots and lots of other examples ;).

Posted: Wed Jun 09, 2004 1:38 pm
by AngryWolf
Yeah, and people also like to think the DOS-like *.* mask is wider than *. However UnrealIRCd doesn't work like that. Here * substitutes zero or more occurrences of any kind of characters (including the dot and @ as well). Hence, for example, a simple * is also a completely valid user@host mask that matches every user@hosts, like *@*.

Posted: Wed Jun 09, 2004 11:13 pm
by w00t
@Syzop:
I'm serious. I hadnt changed anything else, rehashed, and it mystically worked. This was my "olines bug" that I reported a while back, and which noone could duplicate.

@AngryWolf:
I couldnt think of another way to fix it, so I played. Finally did that, and it worked.

Posted: Wed Jun 09, 2004 11:47 pm
by jewles
syzop I agree (why I noted that)