From 54f3d3f31e59774db9987a804bc867fc0d87e4a6 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 2 Nov 2008 19:46:09 +0000 Subject: Remove +s when no snomasks are set.. bug found (indirectly) by jackmcbarn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10793 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/umode_s.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modes') diff --git a/src/modes/umode_s.cpp b/src/modes/umode_s.cpp index 93bc60cac..0f1764a7e 100644 --- a/src/modes/umode_s.cpp +++ b/src/modes/umode_s.cpp @@ -30,8 +30,8 @@ ModeAction ModeUserServerNoticeMask::OnModeChange(User* source, User* dest, Chan if (!dest->modes[UM_SNOMASK]) dest->snomasks.reset(); - parameter = dest->ProcessNoticeMasks(parameter.c_str()); dest->modes[UM_SNOMASK] = true; + parameter = dest->ProcessNoticeMasks(parameter.c_str()); return MODEACTION_ALLOW; } else -- cgit v1.2.3