plugins/raw.c

changeset 6822
4adcde13ad17
parent 6647
fc3661a34b11
child 7746
d7cdf0d60f5d
equal deleted inserted replaced
6821:127b7898c1d6 6822:4adcde13ad17
39 39
40 gc = gaim_account_get_connection(account); 40 gc = gaim_account_get_connection(account);
41 41
42 txt = gtk_entry_get_text(entry); 42 txt = gtk_entry_get_text(entry);
43 43
44 gaim_debug_misc("raw", "prpl num = %d\n", gaim_account_get_protocol(account));
44 switch (gaim_account_get_protocol(account)) { 45 switch (gaim_account_get_protocol(account)) {
45 case GAIM_PROTO_TOC: 46 case GAIM_PROTO_TOC:
46 { 47 {
47 int *a = (int *)gc->proto_data; 48 int *a = (int *)gc->proto_data;
48 unsigned short seqno = htons(a[1]++ & 0xffff); 49 unsigned short seqno = htons(a[1]++ & 0xffff);
74 case GAIM_PROTO_JABBER: 75 case GAIM_PROTO_JABBER:
75 jab_send_raw(*(jconn *)gc->proto_data, txt); 76 jab_send_raw(*(jconn *)gc->proto_data, txt);
76 break; 77 break;
77 78
78 default: 79 default:
80 gaim_debug_error("raw", "Unknown protocol ID %d\n",
81 gaim_account_get_protocol(account));
79 break; 82 break;
80 } 83 }
81 84
82 gtk_entry_set_text(entry, ""); 85 gtk_entry_set_text(entry, "");
83 } 86 }

mercurial