From 7ea5e1fd4c9c48a244aebc41bafcf5a6abfd81e6 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Wed, 6 Jul 2011 00:52:18 +0700 Subject: [PATCH] Remove fixfreenode module. Old CAPAB method doesn't work with freenode now, and new CAP method is handled by CAP support in the core. --- modules/fixfreenode.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 modules/fixfreenode.cpp diff --git a/modules/fixfreenode.cpp b/modules/fixfreenode.cpp deleted file mode 100644 index f737c495..00000000 --- a/modules/fixfreenode.cpp +++ /dev/null @@ -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(CModInfo& Info) { - Info.SetWikiPage("fixfreenode"); -} - -MODULEDEFS(CPreventIdMsgMod, "Prevent client from sending IDENTIFY-MSG to server")