From 4a4c0886cc7108578c1d7dc55a7a6a562a9459b9 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 15 Dec 2010 12:18:20 -0500 Subject: [PATCH] Bug #1212 - Fixed some bad logic in /os exception preventing valid exceptions from being added --- docs/Changes | 1 + modules/core/os_session.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Changes b/docs/Changes index 5e08d5f6a..bbfcbed17 100644 --- a/docs/Changes +++ b/docs/Changes @@ -7,6 +7,7 @@ A Ability for users with registrations pending to drop their registrations with A Added support for Plexus 3 A Readded in support for /cs op/deop/etc to op/deop you in all channels F Changed the GHOST command to not allow ghosting unidentified users if the RECOVER command exists +F Some failed logic in /operserv exception that prevents proper exceptions from being added Anope Version 1.9.3 -------------------- diff --git a/modules/core/os_session.cpp b/modules/core/os_session.cpp index bde023aaa..8b2cb53af 100644 --- a/modules/core/os_session.cpp +++ b/modules/core/os_session.cpp @@ -256,7 +256,7 @@ class CommandOSException : public Command } else { - if (mask.find('!') == Anope::string::npos || mask.find('@') == Anope::string::npos) + if (mask.find('!') != Anope::string::npos || mask.find('@') != Anope::string::npos) { source.Reply(OPER_EXCEPTION_INVALID_HOSTMASK); return MOD_CONT;