From 8b6ee5eab7bf6a0337a09da78b5924b346cce2d6 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Wed, 10 Dec 2008 09:58:43 +0000 Subject: Fixed reading status messages git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@432 4f64403b-2f21-0410-a795-97e2b3489a10 --- metacontacts/meta_services.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'metacontacts/meta_services.c') 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 } -- cgit v1.2.3