mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
ZNC-Extra no more.
Few the most useless modules are just removed, the others are moved to standard modules.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* 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 CBlockMotd : public CModule {
|
||||
public:
|
||||
MODCONSTRUCTOR(CBlockMotd) {
|
||||
}
|
||||
|
||||
virtual ~CBlockMotd() {
|
||||
}
|
||||
|
||||
virtual EModRet OnRaw(CString &sLine) {
|
||||
const CString sCmd = sLine.Token(1);
|
||||
|
||||
if (sCmd == "375" /* begin of MOTD */
|
||||
|| sCmd == "372" /* MOTD */)
|
||||
return HALT;
|
||||
if (sCmd == "376" /* End of MOTD */) {
|
||||
sLine = sLine.Token(0) + " 422 " +
|
||||
sLine.Token(2) + " :MOTD blocked by ZNC";
|
||||
}
|
||||
return CONTINUE;
|
||||
}
|
||||
};
|
||||
|
||||
USERMODULEDEFS(CBlockMotd, "Block the MOTD from IRC so it's not sent to your client(s).")
|
||||
Reference in New Issue
Block a user