summaryrefslogtreecommitdiff
path: root/metacontacts
diff options
context:
space:
mode:
Diffstat (limited to 'metacontacts')
-rw-r--r--metacontacts/meta_services.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/metacontacts/meta_services.c b/metacontacts/meta_services.c
index 4980df9..4c81afc 100644
--- a/metacontacts/meta_services.c
+++ b/metacontacts/meta_services.c
@@ -639,7 +639,7 @@ int Meta_HandleACK(WPARAM wParam, LPARAM lParam)
return 0;
}
- // change the hContact in the avatar info struct, if it's the avatar we're using - else drop it
+ // change the hContact in the avatar info struct, if it's the avatar we're using - else drop it
if(ack->type == ACKTYPE_AVATAR) {
if(ack->result == ACKRESULT_SUCCESS || ack->result == ACKRESULT_FAILED || ack->result == ACKRESULT_STATUS) {
HANDLE most_online;
@@ -1737,8 +1737,6 @@ int Meta_GetAwayMsg(WPARAM wParam, LPARAM lParam) {
else
{
HANDLE most_online;
- //DBEVENTINFO dbei;
- char szServiceName[100];
most_online = Meta_GetMostOnlineSupporting(ccs->hContact, PFLAGNUM_1, PF1_MODEMSGRECV);
@@ -1753,11 +1751,7 @@ int Meta_GetAwayMsg(WPARAM wParam, LPARAM lParam) {
ccs->hContact = most_online;
//Meta_SetNick(proto);
- _snprintf(szServiceName, sizeof(szServiceName), "%s%s", proto, PSS_GETAWAYMSG);
- if (ServiceExists(szServiceName)) {
- strncpy(szServiceName, PSS_GETAWAYMSG, sizeof(szServiceName));
- return (int)(CallContactService(ccs->hContact, szServiceName, ccs->wParam, ccs->lParam));
- }
+ return (int)(CallContactService(ccs->hContact, PSS_GETAWAYMSG, ccs->wParam, ccs->lParam));
}
return 0; // fail
}