summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-11-26 13:38:20 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-11-26 13:38:20 +0100
commit74d53f48fc5b12bdd43e76af42f7fbf8cce89a9a (patch)
tree089daa6f10dd8c14f70e2315eb7bee4a21281460
parentc290d09c454324614a93039364fe62a7b7b75cbb (diff)
m_services_account Handle FORMAT_INTERNAL when unserializing the accountname
Skip sending the numeric and firing the OnAccountChange event
-rw-r--r--src/modules/m_services_account.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp
index a11b05ca3..48ab511f0 100644
--- a/src/modules/m_services_account.cpp
+++ b/src/modules/m_services_account.cpp
@@ -118,6 +118,11 @@ class AccountExtItemImpl : public AccountExtItem
User* user = static_cast<User*>(container);
StringExtItem::unserialize(format, container, value);
+
+ // If we are being reloaded then don't send the numeric or run the event
+ if (format == FORMAT_INTERNAL)
+ return;
+
if (!value.empty())
{
// Logged in