#include "inspircd.h"
-/* $ModDesc: Provides support for unreal-style channel mode +C */
+/* $ModDesc: Provides channel mode +C to block CTCPs */
class NoCTCP : public SimpleChannelModeHandler
{
virtual Version GetVersion()
{
- return Version("Provides support for unreal-style channel mode +C", VF_VENDOR);
+ return Version("Provides channel mode +C to block CTCPs", VF_VENDOR);
}
virtual ModResult OnUserPreMessage(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
if (!c->IsModeSet('C'))
return MOD_RES_PASSTHRU;
- if ((text.empty()) || (text[0] != '\001') || (strncmp(text.c_str(),"\1ACTION ",8)))
+ if ((text.empty()) || (text[0] != '\001') || (!strncmp(text.c_str(),"\1ACTION ",8)))
return MOD_RES_PASSTHRU;
ModResult res = ServerInstance->OnCheckExemption(user,c,"noctcp");