Illegal operation class client and server using default.

These are old archives. They are kept for historic purposes only.
Post Reply
Techmonkey
Posts: 2
Joined: Fri Nov 15, 2013 12:52 am

Illegal operation class client and server using default.

Post by Techmonkey »

Hello,

I hate to ask a stupid question, but I'm stumped. I recently retired my old UIRCd 3.2 server to build a new one. I'm sort of stumped with this error I'm getting because everything _looks_ correct as far as I can tell.

The error:

* unrealircd.conf:28: illegal oper::class, unknown class 'clients' using default of class 'default'
* unrealircd.conf:55: illegal link::class, unknown class 'servers' using default of class 'default'

However, I have both class and servers defined. Originally I typed my own in, but wound up copy/pasting from the Unreal documentation. From my Unrealircd.conf:

class clients {
pingfreq 90;
maxclients 500;
sendq 100000;
recvq 8000;
};

class servers {
pingfreq 90;
maxclients 10; /* Max servers we can have linked at a time */
sendq 1000000;
connfreq 100; /* How many seconds between each connection attempt */
};

Oh, and the lines that are calling for the undefined terms: Clients

oper Me {
class clients;
from {
userhost [email protected];
};
password "MyPassword";
flags
{
netadmin;
can_zline;
can_gzline;
can_gkline;
global;
};
};

For the servers:

#This is the services link block

link host.mydomain.com
{

username *;
hostname 127.0.0.1;
bind-ip *;
port ****; (Custom port number)
hub *;
password-connect "MyPass";
password-receive "MyPass";
class servers;
};





I'm not finding much else discussed aside from "you have to have those terms defined.", which it seems I do. Any help appreciated. This is 3.2.10.1.

TM
CrazyCat
Posts: 215
Joined: Thu Apr 28, 2005 1:05 pm
Location: France
Contact:

Re: Illegal operation class client and server using default.

Post by CrazyCat »

Stupid question, but are your erroreous blocks declared after the class blocks ?
Techmonkey
Posts: 2
Joined: Fri Nov 15, 2013 12:52 am

Re: Illegal operation class client and server using default.

Post by Techmonkey »

Thanks for the reply. The block order I currently have is:

me
admin
oper
services link
ulines
BAN
vHost
network settings
server settings
#Do not edit anything below this line unless...
Various includes
class clients
class server
log
various alias entries

I can post the full config if that helps. I'll hit the documentation again to verify if the class/server define is correctly placed. Thanks.
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: Illegal operation class client and server using default.

Post by katsklaw »

You have a syntax error on or before line 27.
CrazyCat
Posts: 215
Joined: Thu Apr 28, 2005 1:05 pm
Location: France
Contact:

Re: Illegal operation class client and server using default.

Post by CrazyCat »

Try having the oper and link block after the classes block.

You're error message is "unknown class 'clients' using default of class 'default'". So it means the clients class is not declared when you try tou use it. If you have a look in the example.conf file, you'll see that classes are declared before any use of them.
Post Reply