diff options
author | dequis <dx@dxzone.com.ar> | 2015-05-13 05:05:01 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-05-13 05:05:01 -0300 |
commit | 99fe03055377745e7d549f63379ff99e65b04018 (patch) | |
tree | 80faf282387fdc8dcb27eff6af7bc2e45c612982 /protocols/msn/msn.c | |
parent | a7336698d6fa7b561ac56166eef3ec07adcbee41 (diff) |
msn: Implement sending typing notifications
Also remove some old unused debug stuff
Diffstat (limited to 'protocols/msn/msn.c')
-rw-r--r-- | protocols/msn/msn.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c index 7d0805a7..4acff23a 100644 --- a/protocols/msn/msn.c +++ b/protocols/msn/msn.c @@ -143,16 +143,8 @@ static void msn_logout(struct im_connection *ic) static int msn_buddy_msg(struct im_connection *ic, char *who, char *message, int away) { struct bee_user *bu = bee_user_by_handle(ic->bee, ic, who); - -#ifdef DEBUG - if (strcmp(who, "raw") == 0) { - msn_ns_write(ic, -1, "%s\r\n", message); - return 0; - } -#endif - - msn_ns_sendmessage(ic, bu, message); - return(0); + msn_ns_send_message(ic, bu, message); + return 0; } static GList *msn_away_states(struct im_connection *ic) @@ -276,7 +268,7 @@ static int msn_send_typing(struct im_connection *ic, char *who, int typing) if (!(bu->flags & BEE_USER_ONLINE)) { return 0; } else if (typing & OPT_TYPING) { - return(msn_buddy_msg(ic, who, TYPING_NOTIFICATION_MESSAGE, 0)); + return msn_ns_send_typing(ic, bu); } else { return 1; } |