summaryrefslogtreecommitdiff
path: root/src/modes/umode_n.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-29 16:36:10 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-29 16:36:10 +0000
commitf610b723f0b45cf7e4f478f0676ed97c3a23d78c (patch)
tree9013d54abc35c1e7d533e5a2f8603f2607477389 /src/modes/umode_n.cpp
parent5db3290d939509015167b7fdfba5073285051560 (diff)
Move umode_n to umode_s, second half of last commit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10075 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modes/umode_n.cpp')
-rw-r--r--src/modes/umode_n.cpp53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/modes/umode_n.cpp b/src/modes/umode_n.cpp
deleted file mode 100644
index 878de8097..000000000
--- a/src/modes/umode_n.cpp
+++ /dev/null
@@ -1,53 +0,0 @@
-/* +------------------------------------+
- * | Inspire Internet Relay Chat Daemon |
- * +------------------------------------+
- *
- * InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
- *
- * This program is free but copyrighted software; see
- * the file COPYING for details.
- *
- * ---------------------------------------------------
- */
-
-#include "inspircd.h"
-#include "mode.h"
-#include "channels.h"
-#include "users.h"
-#include "modes/umode_n.h"
-
-ModeUserServerNoticeMask::ModeUserServerNoticeMask(InspIRCd* Instance) : ModeHandler(Instance, 's', 1, 0, false, MODETYPE_USER, true)
-{
-}
-
-ModeAction ModeUserServerNoticeMask::OnModeChange(User* source, User* dest, Channel*, std::string &parameter, bool adding, bool servermode)
-{
- /* Only opers can change other users modes */
- if ((source != dest) && (!IS_OPER(source)))
- return MODEACTION_DENY;
-
- /* Set the array fields */
- if (adding)
- {
- /* Fix for bug #310 reported by Smartys */
- if (!dest->modes[UM_SNOMASK])
- dest->snomasks.reset();
-
- parameter = dest->ProcessNoticeMasks(parameter.c_str());
- dest->modes[UM_SNOMASK] = true;
- return MODEACTION_ALLOW;
- }
- else
- {
- if (dest->modes[UM_SNOMASK] != false)
- {
- dest->modes[UM_SNOMASK] = false;
- return MODEACTION_ALLOW;
- }
- }
-
- /* Allow the change */
- return MODEACTION_DENY;
-}
-