USERLEN chats must <= 10?

For the old 4.x series

Moderators: Gottem, Supporters

Post Reply
taobataoma
Posts: 14
Joined: Mon Dec 21, 2015 6:43 am

USERLEN chats must <= 10?

Post by taobataoma » Fri Jan 08, 2016 2:24 am

the USERLEN is too short in my network, how can i redefine the length in my custom module?

Syzop
UnrealIRCd head coder
Posts: 1927
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: USERLEN chats must <= 10?

Post by Syzop » Sun Jan 10, 2016 7:32 pm

Such a change is not possible via module.

But in include/struct.h you can change this line:
#define USERLEN 10
Don't set it ridiculously high though (>30).

Then recompile: make && make install

taobataoma
Posts: 14
Joined: Mon Dec 21, 2015 6:43 am

Re: USERLEN chats must <= 10?

Post by taobataoma » Mon Jan 11, 2016 8:19 am

can i set it to 50?

thx

Syzop
UnrealIRCd head coder
Posts: 1927
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: USERLEN chats must <= 10?

Post by Syzop » Wed Jan 13, 2016 1:01 pm

Changing the USERLEN has many implications. Just to name one example which you probably don't realize: if your username is 40 characters longer it means the maximum size of your message to a person or channel becomes 40 characters shorter. This is due to the way that IRC works.

As said previously, I wouldn't set it higher than 30.

taobataoma
Posts: 14
Joined: Mon Dec 21, 2015 6:43 am

Re: USERLEN chats must <= 10?

Post by taobataoma » Thu Jan 14, 2016 7:36 am

ok,thx,i already set it at 30.

Post Reply