Disabling Default Modules

If your UnrealIRCd is up and running but you have a question about it, then use this forum.
(NOT for installation or connecting issues! Use the other forum instead.)

Moderator: Supporters

Locked
acidvegas
Posts: 8
Joined: Sat Feb 04, 2017 12:58 am
Location: Olympia, Greece
Contact:

Disabling Default Modules

Post by acidvegas »

Wondering if there is any reason I couldnt disable the following modules:
loadmodule "m_away";
loadmodule "m_ison";
loadmodule "m_links";
loadmodule "m_lusers";
loadmodule "m_map";
loadmodule "m_pass";
loadmodule "m_userhost";
loadmodule "m_watch";
loadmodule "m_trace";
loadmodule "m_tsctl";
loadmodule "m_unsqline";
loadmodule "chanmodes/noinvite";
loadmodule "chanmodes/noknock";

these are all features I dont use on my ircd and would like disabled.

I disabled whowas, invite, and rules and it worked fine.
Eme
Posts: 4
Joined: Sat Dec 08, 2018 9:00 pm

Re: Disabling Default Modules

Post by Eme »

Possibly they can not be disabled because they depend on others and some are necessary to fulfill the requirements of the protocol.
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Disabling Default Modules

Post by Syzop »

The file conf/modules.default.conf contains a number of sections, the first one is:

Code: Select all

// User commands (MINIMAL)
// These provide just the minimal set of IRC commands that are
// required by RFC1459 along with WATCH and MAP.
Some of the commands you mention are in this first section. I would not recommend disabling these as they provide the minimal/RFC1459 functionality. In particular it's very unusual not to have the basic commands PASS, LUSERS, ISON and USERHOST. Running without these can easily cause issues at clients and/or the server.

Many commands from the other sections (but be sure to read the section headers) could be disabled depending on what kind of server you run and if it's a single server or multi server network. So, yeah, go ahead and disable stuff you don't need in those other sections. UnrealIRCd 4 gives you that ability. And test it of course :)

Also, in general and not specifically towards you, when disabling commands I regularly hear someone say "I don't need this" when they actually don't know what they are doing. For example, I've heard people considering not loading m_nick, thinking this would only affect nick changes.... :roll:
Locked