]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_ircv3 Fix AWAY being sent on join to the joining user if it has away-notify enabled...
authorAttila Molnar <attilamolnar@hush.com>
Fri, 12 Feb 2016 17:20:07 +0000 (18:20 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Fri, 12 Feb 2016 17:20:07 +0000 (18:20 +0100)
src/modules/m_ircv3.cpp

index da42d823d2678a63712a4a05ba3de3416a882cd8..b7dd0e81bbfcd1e50a00f9f5aa198ec27804d0e2 100644 (file)
@@ -222,7 +222,7 @@ class ModuleIRCv3 : public Module
                {
                        // Send the away notify line if the current member is local, has the away-notify cap and isn't excepted
                        User* member = IS_LOCAL(it->first);
-                       if ((member) && (cap_awaynotify.ext.get(member)) && (last_excepts.find(member) == last_excepts.end()))
+                       if ((member) && (cap_awaynotify.ext.get(member)) && (last_excepts.find(member) == last_excepts.end()) && (it->second != memb))
                        {
                                member->Write(line);
                        }