Mercurial > pidgin
comparison src/server.c @ 1339:6b31e7948b05
[gaim-migrate @ 1349]
Fixed a segfault with "Ignore conversations while away"
committer: Tailor Script <tailor@pidgin.im>
| author | Rob Flynn <gaim@robflynn.com> |
|---|---|
| date | Thu, 21 Dec 2000 01:07:18 +0000 |
| parents | f3303fc05572 |
| children | 1526caa87138 |
comparison
equal
deleted
inserted
replaced
| 1338:2e046be5e44a | 1339:6b31e7948b05 |
|---|---|
| 307 int new_conv = 0; | 307 int new_conv = 0; |
| 308 | 308 |
| 309 char *buffy = g_strdup(message); | 309 char *buffy = g_strdup(message); |
| 310 char *angel = g_strdup(name); | 310 char *angel = g_strdup(name); |
| 311 int plugin_return = plugin_event(event_im_recv, gc, &angel, &buffy, 0); | 311 int plugin_return = plugin_event(event_im_recv, gc, &angel, &buffy, 0); |
| 312 | |
| 312 if (!buffy || !angel || plugin_return) { | 313 if (!buffy || !angel || plugin_return) { |
| 313 if (buffy) | 314 if (buffy) |
| 314 g_free(buffy); | 315 g_free(buffy); |
| 315 if (angel) | 316 if (angel) |
| 316 g_free(angel); | 317 g_free(angel); |
| 342 if (!(general_options & OPT_GEN_DISCARD_WHEN_AWAY)) { | 343 if (!(general_options & OPT_GEN_DISCARD_WHEN_AWAY)) { |
| 343 if (cnv == NULL) { | 344 if (cnv == NULL) { |
| 344 new_conv = 1; | 345 new_conv = 1; |
| 345 cnv = new_conversation(name); | 346 cnv = new_conversation(name); |
| 346 } | 347 } |
| 348 } | |
| 349 else { | |
| 350 return; | |
| 347 } | 351 } |
| 348 if (cnv != NULL) { | 352 if (cnv != NULL) { |
| 349 play_sound(RECEIVE); | 353 play_sound(RECEIVE); |
| 350 write_to_conv(cnv, message, away | WFLAG_RECV, NULL); | 354 write_to_conv(cnv, message, away | WFLAG_RECV, NULL); |
| 351 } | 355 } |
