mirror of
https://github.com/znc/znc.git
synced 2026-05-02 11:32:29 +02:00
Remove fixfreenode module.
Old CAPAB method doesn't work with freenode now, and new CAP method is handled by CAP support in the core.
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2011 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 "Modules.h"
|
||||
|
||||
class CPreventIdMsgMod : public CModule {
|
||||
public:
|
||||
MODCONSTRUCTOR(CPreventIdMsgMod) {}
|
||||
|
||||
virtual EModRet OnUserRaw(CString& sLine) {
|
||||
if (sLine.Token(0).AsLower() == "capab") {
|
||||
if (sLine.AsLower().find("identify-msg") != CString::npos
|
||||
|| sLine.AsLower().find("identify-ctcp") != CString::npos)
|
||||
return HALTCORE;
|
||||
}
|
||||
return CONTINUE;
|
||||
}
|
||||
};
|
||||
|
||||
template<> void TModInfo<CPreventIdMsgMod>(CModInfo& Info) {
|
||||
Info.SetWikiPage("fixfreenode");
|
||||
}
|
||||
|
||||
MODULEDEFS(CPreventIdMsgMod, "Prevent client from sending IDENTIFY-MSG to server")
|
||||
Reference in New Issue
Block a user