+ if (opermotd.empty())
+ {
+ if (show_missing)
+ user->WriteRemoteNumeric(ERR_NOOPERMOTD, "OPERMOTD file is missing.");
+ return;
+ }
+
+ user->WriteRemoteNumeric(RPL_OMOTDSTART, "Server operators message of the day");
+
+ for (file_cache::const_iterator i = opermotd.begin(); i != opermotd.end(); ++i)
+ {
+ user->WriteRemoteNumeric(RPL_OMOTD, InspIRCd::Format("- %s", i->c_str()));
+ }
+
+ user->WriteRemoteNumeric(RPL_ENDOFOMOTD, "End of OPERMOTD");