From 653d62ddc0518912cf2e3c71f6ff0625617895c6 Mon Sep 17 00:00:00 2001 From: dz Date: Sat, 10 Jan 2009 17:20:34 +0000 Subject: Fix bug #665 reported by Ankit, m_services_account.so was denying its own mode change on nick change. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10958 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_services_account.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp index ceba3a7bd..ebe1b1220 100644 --- a/src/modules/m_services_account.cpp +++ b/src/modules/m_services_account.cpp @@ -54,9 +54,9 @@ class User_r : public ModeHandler public: User_r(InspIRCd* Instance) : ModeHandler(Instance, 'r', 0, 0, false, MODETYPE_USER, false) { } - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool) + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode) { - if (IS_REMOTE(source) || ServerInstance->ULine(source->nick.c_str()) || ServerInstance->ULine(source->server)) + if (servermode || IS_REMOTE(source) || ServerInstance->ULine(source->nick.c_str()) || ServerInstance->ULine(source->server)) { if ((adding && !dest->IsModeSet('r')) || (!adding && dest->IsModeSet('r'))) { -- cgit v1.2.3