diff options
author | dz <dz@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-10 17:20:34 +0000 |
---|---|---|
committer | dz <dz@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-10 17:20:34 +0000 |
commit | 653d62ddc0518912cf2e3c71f6ff0625617895c6 (patch) | |
tree | abc01a8ef920009aa6fe4151186da5b69190f1f1 /src/modules | |
parent | 84af5345c10e05b9ae20774943a4cb6a2cdac38d (diff) |
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
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_services_account.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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'))) { |