| 1 /** |
1 /** |
| 2 * @file cmdproc.c MSN command processor functions |
2 * @file cmdproc.c MSN command processor functions |
| 3 * |
3 * |
| 4 * gaim |
4 * purple |
| 5 * |
5 * |
| 6 * Gaim is the legal property of its developers, whose names are too numerous |
6 * Purple is the legal property of its developers, whose names are too numerous |
| 7 * to list here. Please refer to the COPYRIGHT file distributed with this |
7 * to list here. Please refer to the COPYRIGHT file distributed with this |
| 8 * source distribution. |
8 * source distribution. |
| 9 * |
9 * |
| 10 * This program is free software; you can redistribute it and/or modify |
10 * This program is free software; you can redistribute it and/or modify |
| 11 * it under the terms of the GNU General Public License as published by |
11 * it under the terms of the GNU General Public License as published by |
| 92 if ((show[len - 1] == '\n') && (show[len - 2] == '\r')) |
92 if ((show[len - 1] == '\n') && (show[len - 2] == '\r')) |
| 93 { |
93 { |
| 94 show[len - 2] = '\0'; |
94 show[len - 2] = '\0'; |
| 95 } |
95 } |
| 96 |
96 |
| 97 gaim_debug_misc("msn", "%c: %s %03d: %s\n", tmp, |
97 purple_debug_misc("msn", "%c: %s %03d: %s\n", tmp, |
| 98 names[servconn->type], servconn->num, show); |
98 names[servconn->type], servconn->num, show); |
| 99 |
99 |
| 100 g_free(show); |
100 g_free(show); |
| 101 } |
101 } |
| 102 |
102 |
| 228 { |
228 { |
| 229 MsnMsgTypeCb cb; |
229 MsnMsgTypeCb cb; |
| 230 |
230 |
| 231 if (msn_message_get_content_type(msg) == NULL) |
231 if (msn_message_get_content_type(msg) == NULL) |
| 232 { |
232 { |
| 233 gaim_debug_misc("msn", "failed to find message content\n"); |
233 purple_debug_misc("msn", "failed to find message content\n"); |
| 234 return; |
234 return; |
| 235 } |
235 } |
| 236 |
236 |
| 237 cb = g_hash_table_lookup(cmdproc->cbs_table->msgs, |
237 cb = g_hash_table_lookup(cmdproc->cbs_table->msgs, |
| 238 msn_message_get_content_type(msg)); |
238 msn_message_get_content_type(msg)); |
| 239 |
239 |
| 240 if (cb == NULL) |
240 if (cb == NULL) |
| 241 { |
241 { |
| 242 gaim_debug_warning("msn", "Unhandled content-type '%s'\n", |
242 purple_debug_warning("msn", "Unhandled content-type '%s'\n", |
| 243 msn_message_get_content_type(msg)); |
243 msn_message_get_content_type(msg)); |
| 244 |
244 |
| 245 return; |
245 return; |
| 246 } |
246 } |
| 247 |
247 |