From bbd8815115acc7e463daa0f7bcd156cb3e51e6d5 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 12 Feb 2016 18:20:07 +0100 Subject: m_ircv3 Fix AWAY being sent on join to the joining user if it has away-notify enabled and is away --- src/modules/m_ircv3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') 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); } -- cgit v1.2.3