summaryrefslogtreecommitdiff
path: root/plugins/StatusPlugins
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-22 12:33:13 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-22 12:33:13 +0000
commit159b565b390687258ee65a3b66596e118752063c (patch)
tree91105378fcb9e030ba4a7f6572c4ea307cb8c8d6 /plugins/StatusPlugins
parent7f4d529b59698d7eb2403bd1f9088a5aa7fa9080 (diff)
replace strcmp to mir_strcmp
git-svn-id: http://svn.miranda-ng.org/main/trunk@13752 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins')
-rw-r--r--plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp2
-rw-r--r--plugins/StatusPlugins/KeepStatus/keepstatus.cpp16
-rw-r--r--plugins/StatusPlugins/StartupStatus/profiles.cpp2
-rw-r--r--plugins/StatusPlugins/StartupStatus/startupstatus.cpp6
-rw-r--r--plugins/StatusPlugins/commonstatus.cpp2
5 files changed, 14 insertions, 14 deletions
diff --git a/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp b/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp
index 5e08e14a20..761c3913f3 100644
--- a/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp
+++ b/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.cpp
@@ -173,7 +173,7 @@ static int ProcessProtoAck(WPARAM wParam, LPARAM lParam)
for (int i = 0; i < autoAwaySettings.getCount(); i++) {
TAAAProtoSetting &p = autoAwaySettings[i];
log_debugA("chk: %s", p.szName);
- if (!strcmp(p.szName, ack->szModule)) {
+ if (!mir_strcmp(p.szName, ack->szModule)) {
log_debugA("ack->szModule: %s p.statusChanged: %d", ack->szModule, p.statusChanged);
if (!p.statusChanged)
p.mStatus = TRUE;
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;
}
diff --git a/plugins/StatusPlugins/StartupStatus/profiles.cpp b/plugins/StatusPlugins/StartupStatus/profiles.cpp
index 7814703f23..4bbe88a28d 100644
--- a/plugins/StatusPlugins/StartupStatus/profiles.cpp
+++ b/plugins/StatusPlugins/StartupStatus/profiles.cpp
@@ -189,7 +189,7 @@ TCHAR *GetStatusMessage(int profile, char *szProto)
DBVARIANT dbv;
for ( int i=0; i < pceCount; i++ ) {
- if ( (pce[i].profile == profile) && (!strcmp(pce[i].szProto, szProto))) {
+ if ( (pce[i].profile == profile) && (!mir_strcmp(pce[i].szProto, szProto))) {
mir_snprintf(dbSetting, SIZEOF(dbSetting), "%d_%s_%s", profile, szProto, SETTING_PROFILE_STSMSG);
if (!db_get_ts(NULL, MODULENAME, dbSetting, &dbv)) { // reload from db
pce[i].msg = ( TCHAR* )realloc(pce[i].msg, sizeof(TCHAR)*(mir_tstrlen(dbv.ptszVal)+1));
diff --git a/plugins/StatusPlugins/StartupStatus/startupstatus.cpp b/plugins/StatusPlugins/StartupStatus/startupstatus.cpp
index 845c8c30b2..aa2bba706e 100644
--- a/plugins/StatusPlugins/StartupStatus/startupstatus.cpp
+++ b/plugins/StatusPlugins/StartupStatus/startupstatus.cpp
@@ -214,7 +214,7 @@ static int ProcessProtoAck(WPARAM wParam, LPARAM lParam)
return 0;
for (int i = 0; i < startupSettings.getCount(); i++) {
- if (!strcmp(ack->szModule, startupSettings[i].szName)) {
+ if (!mir_strcmp(ack->szModule, startupSettings[i].szName)) {
startupSettings[i].szName = "";
log_debugA("StartupStatus: %s overridden by ME_PROTO_ACK, status will not be set", ack->szModule);
}
@@ -238,7 +238,7 @@ static int StatusChange(WPARAM wParam, LPARAM lParam)
}
else {
for (int i = 0; i < startupSettings.getCount(); i++) {
- if (!strcmp(startupSettings[i].szName, szProto)) {
+ if (!mir_strcmp(startupSettings[i].szName, szProto)) {
startupSettings[i].szName = "";
log_debugA("StartupStatus: %s overridden by ME_CLIST_STATUSMODECHANGE, status will not be set", szProto);
}
@@ -264,7 +264,7 @@ static int CSStatusChangeEx(WPARAM wParam, LPARAM lParam)
if (ps[i]->szName == NULL || startupSettings[j].szName == NULL)
continue;
- if (!strcmp(ps[i]->szName, startupSettings[j].szName)) {
+ if (!mir_strcmp(ps[i]->szName, startupSettings[j].szName)) {
log_debugA("StartupStatus: %s overridden by MS_CS_SETSTATUSEX, status will not be set", ps[i]->szName);
// use a hack to disable this proto
startupSettings[j].szName = "";
diff --git a/plugins/StatusPlugins/commonstatus.cpp b/plugins/StatusPlugins/commonstatus.cpp
index 1ff0f978de..2f4786f33b 100644
--- a/plugins/StatusPlugins/commonstatus.cpp
+++ b/plugins/StatusPlugins/commonstatus.cpp
@@ -143,7 +143,7 @@ static int equalsGlobalStatus(PROTOCOLSETTINGEX **ps)
pstatus = 0;
for (j = 0; j < protoList->getCount(); j++)
- if (!strcmp(protos[i]->szModuleName, ps[j]->szName))
+ if (!mir_strcmp(protos[i]->szModuleName, ps[j]->szName))
pstatus = GetActualStatus(ps[j]);
if (pstatus == 0)