Files
znc/modules/missingmotd.cpp
2013-05-09 13:41:19 +02:00

28 lines
652 B
C++

/*
* Copyright (C) 2004-2013 See the AUTHORS file for details.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#include <znc/Modules.h>
class CMissingMotd : public CModule {
public:
MODCONSTRUCTOR(CMissingMotd) {}
virtual void OnClientLogin() {
PutUser(":irc.znc.in 422 :MOTD File is missing");
}
};
template<> void TModInfo<CMissingMotd>(CModInfo& Info)
{
Info.SetWikiPage("missingmotd");
Info.SetHasArgs(false);
}
USERMODULEDEFS(CMissingMotd, "Sends 422 to clients when they login")