summaryrefslogtreecommitdiff
path: root/plugins/MyDetails/src/services.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-16 17:11:02 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-16 17:11:02 +0000
commitbb4a25ee1fb590c3fc84177d3c9518add8ac0c58 (patch)
tree5a1ada25953df7d73df6e4d434e2a94dc2a345fc /plugins/MyDetails/src/services.cpp
parent7a514de5df654c9fe1d26c889f4317b5650f84ec (diff)
cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@13623 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MyDetails/src/services.cpp')
-rw-r--r--plugins/MyDetails/src/services.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/MyDetails/src/services.cpp b/plugins/MyDetails/src/services.cpp
index 2c68022b63..b9ec1cb21e 100644
--- a/plugins/MyDetails/src/services.cpp
+++ b/plugins/MyDetails/src/services.cpp
@@ -52,14 +52,14 @@ static INT_PTR CALLBACK DlgProcSetNickname(HWND hwndDlg, UINT msg, WPARAM wParam
bool foundDefNick = true;
for (int i = 1; foundDefNick && i < protocols->GetSize(); i++) {
- if (_tcsicmp(protocols->Get(i)->nickname, nick) != 0) {
+ if (mir_tstrcmpi(protocols->Get(i)->nickname, nick) != 0) {
foundDefNick = false;
break;
}
}
if (foundDefNick)
- if (_tcsicmp(protocols->default_nick, nick) != 0)
+ if (mir_tstrcmpi(protocols->default_nick, nick) != 0)
mir_tstrcpy(protocols->default_nick, nick);
}
@@ -130,7 +130,7 @@ INT_PTR PluginCommand_SetMyNicknameUI(WPARAM, LPARAM lParam)
if (proto != NULL) {
int i;
for (i = 0; i < protocols->GetSize(); i++) {
- if (_stricmp(protocols->Get(i)->name, proto) == 0) {
+ if (mir_strcmpi(protocols->Get(i)->name, proto) == 0) {
proto_num = i;
break;
}
@@ -164,7 +164,7 @@ INT_PTR PluginCommand_SetMyNickname(WPARAM wParam, LPARAM lParam)
char *proto = (char *)wParam;
if (proto != NULL) {
for (int i = 0; i < protocols->GetSize(); i++) {
- if (_stricmp(protocols->Get(i)->name, proto) == 0) {
+ if (mir_strcmpi(protocols->Get(i)->name, proto) == 0) {
if (!protocols->Get(i)->CanSetNick())
return -2;
@@ -212,7 +212,7 @@ INT_PTR PluginCommand_SetMyAvatarUI(WPARAM, LPARAM lParam)
if (proto != NULL) {
int i;
for (i = 0; i < protocols->GetSize(); i++) {
- if (_stricmp(protocols->Get(i)->name, proto) == 0) {
+ if (mir_strcmpi(protocols->Get(i)->name, proto) == 0) {
proto_num = i;
break;
}
@@ -238,7 +238,7 @@ INT_PTR PluginCommand_SetMyAvatar(WPARAM wParam, LPARAM lParam)
char *proto = (char *)wParam;
if (proto != NULL) {
for (int i = 0; i < protocols->GetSize(); i++) {
- if (_stricmp(protocols->Get(i)->name, proto) == 0) {
+ if (mir_strcmpi(protocols->Get(i)->name, proto) == 0) {
if (!protocols->Get(i)->CanSetAvatar())
return -2;
@@ -268,7 +268,7 @@ INT_PTR PluginCommand_GetMyAvatar(WPARAM wParam, LPARAM lParam)
}
for (int i = 0; i < protocols->GetSize(); i++) {
- if (_stricmp(protocols->Get(i)->name, proto) == 0) {
+ if (mir_strcmpi(protocols->Get(i)->name, proto) == 0) {
if (!protocols->Get(i)->CanGetAvatar())
return -2;
@@ -403,14 +403,14 @@ INT_PTR PluginCommand_SetMyStatusMessageUI(WPARAM wParam, LPARAM lParam)
int proto_num = -1;
Protocol *proto = NULL;
- if (status != 0 && (status < ID_STATUS_OFFLINE || status > ID_STATUS_OUTTOLUNCH))
+ if (status != 0 && (status < ID_STATUS_OFFLINE || status > ID_STATUS_OUTTOLUNCH))
return -10;
if (proto_name != NULL) {
for (int i = 0; i < protocols->GetSize(); i++) {
proto = protocols->Get(i);
- if (_stricmp(proto->name, proto_name) == 0) {
+ if (mir_strcmpi(proto->name, proto_name) == 0) {
proto_num = i;
break;
}
@@ -425,10 +425,10 @@ INT_PTR PluginCommand_SetMyStatusMessageUI(WPARAM wParam, LPARAM lParam)
else if (ServiceExists(MS_SIMPLESTATUSMSG_CHANGESTATUSMSG)) {
if (status != 0)
CallService(MS_SIMPLESTATUSMSG_CHANGESTATUSMSG, status, (LPARAM)proto_name);
- else if (proto != 0)
- CallService(MS_SIMPLESTATUSMSG_CHANGESTATUSMSG, proto->status, (LPARAM)proto_name);
+ else if (proto != 0)
+ CallService(MS_SIMPLESTATUSMSG_CHANGESTATUSMSG, proto->status, (LPARAM)proto_name);
else
- CallService(MS_SIMPLESTATUSMSG_CHANGESTATUSMSG, protocols->GetGlobalStatus(), NULL);
+ CallService(MS_SIMPLESTATUSMSG_CHANGESTATUSMSG, protocols->GetGlobalStatus(), NULL);
return 0;
}