summaryrefslogtreecommitdiff
path: root/protocols/YAMN/src/proto/pop3/pop3comm.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-12-12 18:47:54 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-12-12 18:47:54 +0300
commit4f08da9b494ead16c6cf47d4734d41f32a505f59 (patch)
tree1f48ac68dea16e5b7a9376b1a860d21feaa6e890 /protocols/YAMN/src/proto/pop3/pop3comm.cpp
parent2c5e5c31121144b1326e09fbd680b4258f42328d (diff)
fixes #3259 (YAMN: выводить настроенную учётку вместо пустой)
Diffstat (limited to 'protocols/YAMN/src/proto/pop3/pop3comm.cpp')
-rw-r--r--protocols/YAMN/src/proto/pop3/pop3comm.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/YAMN/src/proto/pop3/pop3comm.cpp b/protocols/YAMN/src/proto/pop3/pop3comm.cpp
index 46acb25c4a..cd513f6a70 100644
--- a/protocols/YAMN/src/proto/pop3/pop3comm.cpp
+++ b/protocols/YAMN/src/proto/pop3/pop3comm.cpp
@@ -269,12 +269,10 @@ LBL_Error:
break;
}
- CAccount *Finder;
- DBVARIANT dbv;
-
- for (Finder = POP3Plugin->FirstAccount; Finder != nullptr; Finder = Finder->Next) {
+ for (CAccount *Finder = POP3Plugin->FirstAccount; Finder != nullptr; Finder = Finder->Next) {
Finder->hContact = NULL;
for (auto &hContact : Contacts(YAMN_DBMODULE)) {
+ DBVARIANT dbv;
if (!g_plugin.getString(hContact, "Id", &dbv)) {
if (mir_strcmp(dbv.pszVal, Finder->Name) == 0) {
Finder->hContact = hContact;
@@ -296,7 +294,7 @@ LBL_Error:
Proto_AddToContact(Finder->hContact, YAMN_DBMODULE);
g_plugin.setString(Finder->hContact, "Id", Finder->Name);
g_plugin.setString(Finder->hContact, "Nick", Finder->Name);
- g_plugin.setWord(Finder->hContact, "Status", YAMN_STATUS);
+ g_plugin.setWord(Finder->hContact, "Status", ID_STATUS_OFFLINE);
}
}