Always prepend 'away :' to *all* away messages, not just the autoaway message.

Consequence of *not* doing this - The following command will unexpectedly cause
ZNC to disconnect from your IRC server:
 /query *away away quit

Thanks to Jim Ramsay <i.am@jimramsay.com> for finding this and providing a patch.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1672 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-12-02 18:16:19 +00:00
parent 5a08b7b7d6
commit 540f867f9b
+2 -2
View File
@@ -309,8 +309,8 @@ public:
sTime.Trim();
}
if (m_sReason.empty())
m_sReason = "away :Auto Away at " + sTime;
PutIRC(m_sReason);
m_sReason = "Auto Away at " + sTime;
PutIRC("AWAY :" + m_sReason);
m_bIsAway = true;
}
}