From 380ad4bb0199906bf0db6c148e3b3f0750a52ad7 Mon Sep 17 00:00:00 2001 From: peavey Date: Sat, 28 Jul 2007 18:04:07 +0000 Subject: 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 --- src/modules/m_services.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3