From b9e99da4dafd836e995970216835cefe3716a01a Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 29 Aug 2006 18:26:55 +0000 Subject: Snomask support cometh! and it leave a sticky white mess all over the floor :( git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5062 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/umode_n.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/modes') diff --git a/src/modes/umode_n.cpp b/src/modes/umode_n.cpp index e3370fa56..7bb8dbbf0 100644 --- a/src/modes/umode_n.cpp +++ b/src/modes/umode_n.cpp @@ -15,12 +15,18 @@ ModeAction ModeUserServerNoticeMask::OnModeChange(userrec* source, userrec* dest return MODEACTION_DENY; /* Set the bitfields */ - if (dest->modes[UM_SERVERNOTICE] != adding) + if (adding) { - dest->modes[UM_SERVERNOTICE] = adding; + parameter = dest->ProcessNoticeMasks(parameter.c_str()); + return MODEACTION_ALLOW; + } + else if (dest->modes[UM_SNOMASK] != false) + { + dest->modes[UM_SNOMASK] = false; return MODEACTION_ALLOW; } /* Allow the change */ return MODEACTION_DENY; } + -- cgit v1.2.3