Changeset f3ca350 for protocols/msn/sb.c
- Timestamp:
- 2015-03-15T14:41:47Z (10 years ago)
- Children:
- fa8c775
- Parents:
- 2dd23da
- git-author:
- dequis <dx@…> (24-01-15 20:20:42)
- git-committer:
- dequis <dx@…> (15-03-15 14:41:47)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/sb.c
r2dd23da rf3ca350 29 29 #include "md5.h" 30 30 #include "soap.h" 31 #include "invitation.h"32 31 33 32 static gboolean msn_sb_callback(gpointer data, gint source, b_input_condition cond); … … 182 181 } else if (strcmp(text, SB_KEEPALIVE_MESSAGE) == 0) { 183 182 buf = g_strdup(MSN_SB_KEEPALIVE_HEADERS); 184 i = strlen(buf);185 } else if (strncmp(text, MSN_INVITE_HEADERS, sizeof(MSN_INVITE_HEADERS) - 1) == 0) {186 buf = g_strdup(text);187 183 i = strlen(buf); 188 184 } else { … … 664 660 } 665 661 } 666 #if 0667 // Disable MSN ft support for now.668 else if (g_strncasecmp(ct, "text/x-msmsgsinvite", 19) == 0) {669 char *command = get_rfc822_header(body, "Invitation-Command:", blen);670 char *cookie = get_rfc822_header(body, "Invitation-Cookie:", blen);671 unsigned int icookie;672 673 g_free(ct);674 675 /* Every invite should have both a Command and Cookie header */676 if (!command || !cookie) {677 g_free(command);678 g_free(cookie);679 imcb_log(ic, "Warning: No command or cookie from %s", sb->who);680 return 1;681 }682 683 icookie = strtoul(cookie, NULL, 10);684 g_free(cookie);685 686 if (g_strncasecmp(command, "INVITE", 6) == 0) {687 msn_invitation_invite(sb, cmd[1], icookie, body, blen);688 } else if (g_strncasecmp(command, "ACCEPT", 6) == 0) {689 msn_invitation_accept(sb, cmd[1], icookie, body, blen);690 } else if (g_strncasecmp(command, "CANCEL", 6) == 0) {691 msn_invitation_cancel(sb, cmd[1], icookie, body, blen);692 } else {693 imcb_log(ic, "Warning: Received invalid invitation with "694 "command %s from %s", command, sb->who);695 }696 697 g_free(command);698 }699 #endif700 662 else if (g_strncasecmp(ct, "application/x-msnmsgrp2p", 24) == 0) { 701 663 /* Not currently implemented. Don't warn about it since
Note: See TracChangeset
for help on using the changeset viewer.