From 74d53f48fc5b12bdd43e76af42f7fbf8cce89a9a Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 26 Nov 2015 13:38:20 +0100 Subject: m_services_account Handle FORMAT_INTERNAL when unserializing the accountname Skip sending the numeric and firing the OnAccountChange event --- src/modules/m_services_account.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modules') 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(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 -- cgit v1.2.3