summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_mam.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_mam.cpp')
-rw-r--r--protocols/JabberG/src/jabber_mam.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_mam.cpp b/protocols/JabberG/src/jabber_mam.cpp
index 9d5ba27b64..7e9c1acb4b 100644
--- a/protocols/JabberG/src/jabber_mam.cpp
+++ b/protocols/JabberG/src/jabber_mam.cpp
@@ -51,6 +51,9 @@ void CJabberProto::OnIqResultMamInfo(const TiXmlElement *iqNode, CJabberIqInfo *
void CJabberProto::MamSetMode(int iNewMode)
{
+ if (!m_bEnableMam)
+ return;
+
const char *szMode;
switch (iNewMode) {
case 0: szMode = "never"; break;
@@ -135,7 +138,7 @@ void CJabberProto::OnIqResultRsm(const TiXmlElement *iqNode, CJabberIqInfo *pInf
INT_PTR __cdecl CJabberProto::OnMenuLoadHistory(WPARAM hContact, LPARAM)
{
- if (hContact == 0)
+ if (hContact == 0 || !m_bEnableMam)
return 0;
// wipe out old history first