summaryrefslogtreecommitdiff
path: root/plugins/GmailNotifier/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/GmailNotifier/src')
-rw-r--r--plugins/GmailNotifier/src/check.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/GmailNotifier/src/check.cpp b/plugins/GmailNotifier/src/check.cpp
index 88cafca600..ace11e7801 100644
--- a/plugins/GmailNotifier/src/check.cpp
+++ b/plugins/GmailNotifier/src/check.cpp
@@ -48,9 +48,7 @@ void CheckMailInbox(Account *curAcc)
curAcc->IsChecking = true;
- ptrA szNick(db_get_sa(curAcc->hContact, "CList", "MyHandle"));
- if (szNick == nullptr)
- szNick = mir_strdup(curAcc->name);
+ ptrA szNick(db_get_sa(curAcc->hContact, "CList", "MyHandle", curAcc->name));
char *tail = strstr(szNick, " [");
if (tail) *tail = 0;