mirror of
https://github.com/znc/znc.git
synced 2026-07-05 01:11:53 +02:00
Don't show message about missing motd by default.
To enable it, load missingmotd module. Fix #202
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* 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")
|
||||
|
||||
@@ -473,8 +473,6 @@ void CIRCNetwork::ClientConnected(CClient *pClient) {
|
||||
for (uIdx = 0; uIdx < uSize; uIdx++) {
|
||||
pClient->PutClient(m_MotdBuffer.GetLine(uIdx, *pClient, msParams));
|
||||
}
|
||||
} else {
|
||||
pClient->PutClient(":irc.znc.in 422 :MOTD Cache is missing");
|
||||
}
|
||||
|
||||
if (GetIRCSock() != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user