Fix a use-before-initialisation in core_info.

Signed-off-by: GermanAizek <GermanAizek@yandex.ru>
This commit is contained in:
Herman 2021-07-17 20:51:26 +03:00 committed by GitHub
parent 805dbd4def
commit 899899ea11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,9 +48,9 @@ class CoreModInfo : public Module
CommandMotd cmdmotd;
CommandServList cmdservlist;
CommandTime cmdtime;
ISupportManager isupport;
CommandVersion cmdversion;
Numeric::Numeric numeric004;
ISupportManager isupport;
/** Returns a list of user or channel mode characters.
@ -97,9 +97,9 @@ class CoreModInfo : public Module
, cmdmotd(this)
, cmdservlist(this)
, cmdtime(this)
, isupport(this)
, cmdversion(this, isupport)
, numeric004(RPL_MYINFO)
, isupport(this)
{
numeric004.push(ServerInstance->Config->ServerName);
numeric004.push(INSPIRCD_BRANCH);