/*
* InspIRCd -- Internet Relay Chat Daemon
*
- * Copyright (C) 2013, 2018-2019 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2013, 2018-2020 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012-2013, 2016 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org>
CommandOpermotd(Module* Creator) : Command(Creator,"OPERMOTD", 0, 1)
{
- flags_needed = 'o'; syntax = "[<servername>]";
+ flags_needed = 'o';
+ syntax = "[<servername>]";
}
CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE
Version GetVersion() CXX11_OVERRIDE
{
- return Version("Shows a message to opers after oper-up and adds the OPERMOTD command", VF_VENDOR | VF_OPTCOMMON);
+ return Version("Adds the /OPERMOTD command which adds a special message of the day for server operators.", VF_VENDOR | VF_OPTCOMMON);
}
void OnOper(User* user, const std::string &opertype) CXX11_OVERRIDE
try
{
- FileReader reader(conf->getString("file", "opermotd"));
+ FileReader reader(conf->getString("file", "opermotd", 1));
cmd.opermotd = reader.GetVector();
InspIRCd::ProcessColors(cmd.opermotd);
}