summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlinuxdaemon <linuxdaemon@users.noreply.github.com>2019-01-23 02:40:25 -0600
committerPeter Powell <petpow@saberuk.com>2019-01-23 08:40:25 +0000
commit5394adf41ff609f7f97af529774fcb616fe072b2 (patch)
tree8b18134e58f1e8cd236e6c32de61613c53960e52
parent965c81baee0fb6f46aa788f45742d558f50c8b15 (diff)
Fix away broadcast logic (#1561)
-rw-r--r--src/modules/m_spanningtree/away.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/away.cpp b/src/modules/m_spanningtree/away.cpp
index 13972589b..62300580f 100644
--- a/src/modules/m_spanningtree/away.cpp
+++ b/src/modules/m_spanningtree/away.cpp
@@ -47,6 +47,6 @@ CmdResult CommandAway::HandleRemote(::RemoteUser* u, Params& params)
CommandAway::Builder::Builder(User* user)
: CmdBuilder(user, "AWAY")
{
- if (user->awaymsg.empty())
+ if (!user->awaymsg.empty())
push_int(user->awaytime).push_last(user->awaymsg);
}