summaryrefslogtreecommitdiff
path: root/plugins/SeenPlugin
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-20 12:20:08 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-20 12:20:08 +0300
commitb2b87ef6045f6634c3151233b18d2186f77277bf (patch)
tree44de9ab393b61eea3beb331c3349343289f9a675 /plugins/SeenPlugin
parent864601c41faeec6dea78baf6c14f15c3ba164486 (diff)
code cleaning
Diffstat (limited to 'plugins/SeenPlugin')
-rw-r--r--plugins/SeenPlugin/src/history.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SeenPlugin/src/history.cpp b/plugins/SeenPlugin/src/history.cpp
index 03ed948e9a..70134fffbd 100644
--- a/plugins/SeenPlugin/src/history.cpp
+++ b/plugins/SeenPlugin/src/history.cpp
@@ -50,8 +50,8 @@ void HistoryWrite(MCONTACT hContact)
if (historyLast >= historyMax)
historyLast = historyMax - 1;
- ptrW str(g_plugin.getWStringA("HistoryStamp"));
- g_plugin.setWString(hContact, BuildSetting(historyLast), ParseString(str ? str : DEFAULT_HISTORYSTAMP, hContact));
+ ptrW str(g_plugin.getWStringA("HistoryStamp", DEFAULT_HISTORYSTAMP));
+ g_plugin.setWString(hContact, BuildSetting(historyLast), ParseString(str, hContact));
historyLast = (historyLast + 1) % historyMax;
g_plugin.setWord(hContact, "HistoryLast", historyLast);