diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-29 16:28:37 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-29 16:28:37 +0000 |
commit | 5db3290d939509015167b7fdfba5073285051560 (patch) | |
tree | 5a3afea4313d9549a26f32b5fe7980dc2e973831 /src/modes/umode_n.cpp | |
parent | 16f8c2df7e9f1e35466d8102a05893fb41f2f404 (diff) |
After discussions and thought, move umode +n to +s. This increases cross-ircd compat (both charybdis and unreal use +s for snomasks, others might in the future). This also decreases complexity for new users, and removes the redundancy. This means that just +s +cC for example will be required to view connects. (files to be renamed in next commit to not confuse svn).
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10074 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modes/umode_n.cpp')
-rw-r--r-- | src/modes/umode_n.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/modes/umode_n.cpp b/src/modes/umode_n.cpp index ee3fe09b3..878de8097 100644 --- a/src/modes/umode_n.cpp +++ b/src/modes/umode_n.cpp @@ -17,7 +17,7 @@ #include "users.h" #include "modes/umode_n.h" -ModeUserServerNoticeMask::ModeUserServerNoticeMask(InspIRCd* Instance) : ModeHandler(Instance, 'n', 1, 0, false, MODETYPE_USER, true) +ModeUserServerNoticeMask::ModeUserServerNoticeMask(InspIRCd* Instance) : ModeHandler(Instance, 's', 1, 0, false, MODETYPE_USER, true) { } @@ -36,13 +36,6 @@ ModeAction ModeUserServerNoticeMask::OnModeChange(User* source, User* dest, Chan parameter = dest->ProcessNoticeMasks(parameter.c_str()); dest->modes[UM_SNOMASK] = true; - if (!dest->modes[UM_SERVERNOTICE]) - { - std::vector<std::string> newmodes; - newmodes.push_back(dest->nick); - newmodes.push_back("+s"); - ServerInstance->Modes->Process(newmodes, source, true); - } return MODEACTION_ALLOW; } else |