diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-28 18:04:07 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-28 18:04:07 +0000 |
commit | 380ad4bb0199906bf0db6c148e3b3f0750a52ad7 (patch) | |
tree | a1e01d6352ffc3aba8c42e6e89b906809de300e9 /src/modules | |
parent | afcf8ad536781b07bdabc1c8f4bc4c2f4ba6c3de (diff) |
Do not take away mode r for nickchanges that only changes the case.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7602 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_services.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp index 22b5dfcb5..af4616793 100644 --- a/src/modules/m_services.cpp +++ b/src/modules/m_services.cpp @@ -209,7 +209,7 @@ class ModuleServices : public Module virtual void OnUserPostNick(userrec* user, const std::string &oldnick) { /* On nickchange, if they have +r, remove it */ - if (user->IsModeSet('r')) + if (user->IsModeSet('r') && !(irc::string(user->nick) == oldnick)) { const char* modechange[2]; modechange[0] = user->nick; |