summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-02-12 18:20:07 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-02-12 18:20:07 +0100
commitbbd8815115acc7e463daa0f7bcd156cb3e51e6d5 (patch)
tree0e5ab60bd4b5d69c8c7a71c881d78f6f8bdedec1 /src
parent9d81896b74fda1d2cd40723dcec33bf75f843038 (diff)
m_ircv3 Fix AWAY being sent on join to the joining user if it has away-notify enabled and is away
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_ircv3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_ircv3.cpp b/src/modules/m_ircv3.cpp
index da42d823d..b7dd0e81b 100644
--- a/src/modules/m_ircv3.cpp
+++ b/src/modules/m_ircv3.cpp
@@ -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);
}