summaryrefslogtreecommitdiff
path: root/plugins/Spamotron/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Spamotron/src/utils.cpp')
-rw-r--r--plugins/Spamotron/src/utils.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Spamotron/src/utils.cpp b/plugins/Spamotron/src/utils.cpp
index be49f90879..6ae1ca6d84 100644
--- a/plugins/Spamotron/src/utils.cpp
+++ b/plugins/Spamotron/src/utils.cpp
@@ -464,12 +464,12 @@ int LogToSystemHistory(char *message, char *origmessage)
DBEVENTINFO dbei = {};
dbei.timestamp = time(&tm);
- dbei.szModule = PLUGIN_NAME;
+ dbei.szModule = MODULENAME;
dbei.pBlob = (PBYTE)msg;
if (origmessage)
- dbei.cbBlob = (1 + mir_snprintf(msg, "%s: %s%s %s: %s", PLUGIN_NAME, message, DOT(message), Translate("Their message was"), origmessage));
+ dbei.cbBlob = (1 + mir_snprintf(msg, "%s: %s%s %s: %s", MODULENAME, message, DOT(message), Translate("Their message was"), origmessage));
else
- dbei.cbBlob = (1 + mir_snprintf(msg, "%s: %s%s", PLUGIN_NAME, message, DOT(message)));
+ dbei.cbBlob = (1 + mir_snprintf(msg, "%s: %s%s", MODULENAME, message, DOT(message)));
dbei.eventType = EVENTTYPE_MESSAGE;
dbei.flags = DBEF_READ;
db_event_add(NULL, &dbei);
@@ -485,7 +485,7 @@ void MarkUnread(MCONTACT hContact)
if (hContact == NULL)
return;
- if (db_get(hContact, PLUGIN_NAME, "LastMsgEvents", &_dbv) == 0) {
+ if (db_get(hContact, MODULENAME, "LastMsgEvents", &_dbv) == 0) {
pos = _dbv.pbVal;
while (pos - _dbv.pbVal < _dbv.cpbVal) {
DBEVENTINFO _dbei = {};
@@ -505,6 +505,6 @@ void MarkUnread(MCONTACT hContact)
db_event_add(hContact,&_dbei);
}
db_free(&_dbv);
- db_unset(hContact, PLUGIN_NAME, "LastMsgEvents");
+ db_unset(hContact, MODULENAME, "LastMsgEvents");
}
}