ircnet / ircd

17 stars 6 forks source link

Split servers/users in M-Line #4

Closed patrick-irc closed 1 month ago

patrick-irc commented 1 month ago
######################################################################

confsplit - SS/SU values in ircd.conf

######################################################################

This patch adds split-servers and split-users to ircd.conf to change
values without recompiling the ircd.

Two new MANDATORY fields have been added to the M-line after the SID:

 M:<Server NAME>:<YOUR Internet IP#>:<Geographic Location>:<Port>
  :<SID>:<SS>:<SU>:

These values will be applied on server startup and on /REHASH.
Note that they will still respect the minimum limits set in
config.h defines SPLIT_SERVERS and SPLIT_USERS.

example:

 M:irc.example.net:127.0.0.1:Example server:6667:0PNX:10:10000:

 Will set the split-servers (SS) current value to 10 servers minimum
 and split-users (SU) current value to 10000 users minimum, then do
 a check for split-mode.

######################################################################