summaryrefslogtreecommitdiff
path: root/plugins/StatusPlugins/KeepStatus/keepstatus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/StatusPlugins/KeepStatus/keepstatus.cpp')
-rw-r--r--plugins/StatusPlugins/KeepStatus/keepstatus.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/StatusPlugins/KeepStatus/keepstatus.cpp b/plugins/StatusPlugins/KeepStatus/keepstatus.cpp
index a65e36e22a..80f8ce95fd 100644
--- a/plugins/StatusPlugins/KeepStatus/keepstatus.cpp
+++ b/plugins/StatusPlugins/KeepStatus/keepstatus.cpp
@@ -282,7 +282,7 @@ static int StatusChange(WPARAM wParam, LPARAM lParam)
else {
for (int i = 0; i < connectionSettings.getCount(); i++) {
TConnectionSettings& cs = connectionSettings[i];
- if (GetStatus(cs) != ID_STATUS_DISABLED && !strcmp(cs.szName, szProto))
+ if (GetStatus(cs) != ID_STATUS_DISABLED && !mir_strcmp(cs.szName, szProto))
AssignStatus(&cs, wParam, 0, cs.szMsg);
}
}
@@ -304,7 +304,7 @@ static int CSStatusChange(WPARAM wParam, LPARAM)
if ((protoSettings[i]->szName == NULL) || (connectionSettings[j].szName == NULL))
continue;
- if (!strcmp(protoSettings[i]->szName, connectionSettings[j].szName))
+ if (!mir_strcmp(protoSettings[i]->szName, connectionSettings[j].szName))
if (GetStatus(connectionSettings[j]) != ID_STATUS_DISABLED)
AssignStatus(&connectionSettings[j], protoSettings[i]->status, protoSettings[i]->lastStatus, connectionSettings[j].szMsg);
}
@@ -327,7 +327,7 @@ static int CSStatusChangeEx(WPARAM wParam, LPARAM)
for (int j = 0; j < connectionSettings.getCount(); j++) {
if ((protoSettings[i]->szName == NULL) || (connectionSettings[j].szName == NULL))
continue;
- if (!strcmp(protoSettings[i]->szName, connectionSettings[j].szName)) {
+ if (!mir_strcmp(protoSettings[i]->szName, connectionSettings[j].szName)) {
if (GetStatus(connectionSettings[j]) != ID_STATUS_DISABLED)
AssignStatus(&connectionSettings[j], protoSettings[i]->status, protoSettings[i]->lastStatus, protoSettings[i]->szMsg);
}
@@ -527,7 +527,7 @@ static int ProcessProtoAck(WPARAM, LPARAM lParam)
if (ack->type == ACKTYPE_STATUS && ack->result == ACKRESULT_SUCCESS) {
for (int i = 0; i < connectionSettings.getCount(); i++) {
TConnectionSettings& cs = connectionSettings[i];
- if (!strcmp(cs.szName, ack->szModule))
+ if (!mir_strcmp(cs.szName, ack->szModule))
cs.lastStatusAckTime = GetTickCount();
}
StartTimer(IDT_PROCESSACK, 0, FALSE);
@@ -538,7 +538,7 @@ static int ProcessProtoAck(WPARAM, LPARAM lParam)
if (ack->lParam == LOGINERR_OTHERLOCATION) {
for (int i = 0; i < connectionSettings.getCount(); i++) {
TConnectionSettings& cs = connectionSettings[i];
- if (!strcmp(ack->szModule, cs.szName)) {
+ if (!mir_strcmp(ack->szModule, cs.szName)) {
AssignStatus(&cs, ID_STATUS_OFFLINE, 0, NULL);
if (db_get_b(NULL, MODULENAME, SETTING_CNCOTHERLOC, 0)) {
StopTimer(IDT_PROCESSACK);
@@ -561,7 +561,7 @@ static int ProcessProtoAck(WPARAM, LPARAM lParam)
log_infoA("KeepStatus: cancel on login error (%s)", ack->szModule);
for (int i = 0; i < connectionSettings.getCount(); i++) {
TConnectionSettings& cs = connectionSettings[i];
- if (!strcmp(ack->szModule, cs.szName))
+ if (!mir_strcmp(ack->szModule, cs.szName))
AssignStatus(&cs, ID_STATUS_OFFLINE, 0, NULL);
}
ProcessPopup(KS_CONN_STATE_LOGINERROR, (LPARAM)ack->szModule);
@@ -1058,7 +1058,7 @@ INT_PTR EnableProtocolService(WPARAM wParam, LPARAM lParam)
int ret = -2;
for (int i = 0; i < connectionSettings.getCount(); i++) {
TConnectionSettings& cs = connectionSettings[i];
- if (!strcmp(szProto, cs.szName)) {
+ if (!mir_strcmp(szProto, cs.szName)) {
if (wParam) {
if (GetStatus(cs) == ID_STATUS_DISABLED)
AssignStatus(&cs, CallProtoService(cs.szName, PS_GETSTATUS, 0, 0), 0, NULL);
@@ -1083,7 +1083,7 @@ INT_PTR IsProtocolEnabledService(WPARAM, LPARAM lParam)
for (int i = 0; i < connectionSettings.getCount(); i++) {
TConnectionSettings& cs = connectionSettings[i];
- if (!strcmp(szProto, cs.szName))
+ if (!mir_strcmp(szProto, cs.szName))
return GetStatus(cs) != ID_STATUS_DISABLED;
}