* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
class ModuleOpermotd : public Module
{
CommandOpermotd* mycommand;
+ bool onoper;
public:
void LoadOperMOTD()
opermotd = NULL;
}
opermotd = new FileReader(ServerInstance, filename);
+ onoper = conf->ReadFlag("opermotd","onoper","yes",0);
delete conf;
}
virtual void OnOper(User* user, const std::string &opertype)
{
- ShowOperMOTD(user);
+ if (onoper)
+ ShowOperMOTD(user);
}
- virtual void OnRehash(User* user, const std::string ¶meter)
+ virtual void OnRehash(User* user)
{
LoadOperMOTD();
}