Oper Block problem

These are old archives. They are kept for historic purposes only.
Post Reply
Karaken

Oper Block problem

Post 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?
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post 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.
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post 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
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Post 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
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post 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)
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

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

Post 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 *@*.
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post 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.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Post by jewles »

syzop I agree (why I noted that)
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
Post Reply