2
* Copyright (C) 2004-2009 See the AUTHORS file for details.
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 2 as published
6
* by the Free Software Foundation.
11
class CPreventIdMsgMod : public CModule {
13
MODCONSTRUCTOR(CPreventIdMsgMod) {}
15
virtual EModRet OnUserRaw(CString& sLine) {
16
if (sLine.Token(0).AsLower() == "capab") {
17
if (sLine.AsLower().find("identify-msg") != CString::npos
18
|| sLine.AsLower().find("identify-ctcp") != CString::npos)
25
MODULEDEFS(CPreventIdMsgMod, "Prevent client from sending IDENTIFY-MSG to server")