summaryrefslogtreecommitdiff
path: root/metacontacts/meta_services.c
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2008-12-10 09:58:43 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2008-12-10 09:58:43 +0000
commit8b6ee5eab7bf6a0337a09da78b5924b346cce2d6 (patch)
tree66f5727ed1e7cc4852d8f7ae5c1ad31ffc6db4a7 /metacontacts/meta_services.c
parent359489e28eb9d1f12db88ef580eb7d2b94bfeb3c (diff)
Fixed reading status messages
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@432 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'metacontacts/meta_services.c')
-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
}