Files
znc/modules/missingmotd.cpp
Alexey Sokolov 2370567f9c Don't show message about missing motd by default.
To enable it, load missingmotd module.
Fix #202
2012-08-09 22:58:20 +07:00

22 lines
527 B
C++

/*
* Copyright (C) 2004-2012 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");
}
};
USERMODULEDEFS(CMissingMotd, "Sends 422 to clients when they login")