Mercurial > pidgin
comparison src/server.c @ 2106:efb39c151cf7
[gaim-migrate @ 2116]
i had reason for this being here.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Thu, 02 Aug 2001 01:12:41 +0000 |
| parents | 0b81421021fd |
| children | f3a162033356 |
comparison
equal
deleted
inserted
replaced
| 2105:ff225036d434 | 2106:efb39c151cf7 |
|---|---|
| 394 int plugin_return; | 394 int plugin_return; |
| 395 | 395 |
| 396 struct conversation *cnv; | 396 struct conversation *cnv; |
| 397 int new_conv = 0; | 397 int new_conv = 0; |
| 398 | 398 |
| 399 /* plugin stuff. we pass a char ** but we don't want to pass what's been given us | |
| 400 * by the prpls. so we create temp holders and pass those instead. it's basically | |
| 401 * just to avoid segfaults. */ | |
| 402 buffy = g_strdup(message); | |
| 403 angel = g_strdup(name); | |
| 404 plugin_return = plugin_event(event_im_recv, gc, &angel, &buffy, 0); | |
| 405 | |
| 406 if (!buffy || !angel || plugin_return) { | |
| 407 if (buffy) | |
| 408 g_free(buffy); | |
| 409 if (angel) | |
| 410 g_free(angel); | |
| 411 return; | |
| 412 } | |
| 413 name = angel; | |
| 414 message = buffy; | |
| 415 | |
| 416 /* we should update the conversation window buttons and menu, if it exists. */ | 399 /* we should update the conversation window buttons and menu, if it exists. */ |
| 417 cnv = find_conversation(name); | 400 cnv = find_conversation(name); |
| 418 if (cnv) | 401 if (cnv) |
| 419 set_convo_gc(cnv, gc); | 402 set_convo_gc(cnv, gc); |
| 420 /* we do the new_conv check here in case any plugins decide to create it */ | 403 /* we do the new_conv check here in case any plugins decide to create it */ |
| 421 else | 404 else |
| 422 new_conv = 1; | 405 new_conv = 1; |
| 406 | |
| 407 /* plugin stuff. we pass a char ** but we don't want to pass what's been given us | |
| 408 * by the prpls. so we create temp holders and pass those instead. it's basically | |
| 409 * just to avoid segfaults. */ | |
| 410 buffy = g_strdup(message); | |
| 411 angel = g_strdup(name); | |
| 412 plugin_return = plugin_event(event_im_recv, gc, &angel, &buffy, 0); | |
| 413 | |
| 414 if (!buffy || !angel || plugin_return) { | |
| 415 if (buffy) | |
| 416 g_free(buffy); | |
| 417 if (angel) | |
| 418 g_free(angel); | |
| 419 return; | |
| 420 } | |
| 421 name = angel; | |
| 422 message = buffy; | |
| 423 | 423 |
| 424 /* TiK, using TOC, sends an automated message in order to get your away message. Now, | 424 /* TiK, using TOC, sends an automated message in order to get your away message. Now, |
| 425 * this is one of the biggest hacks I think I've seen. But, in order to be nice to | 425 * this is one of the biggest hacks I think I've seen. But, in order to be nice to |
| 426 * TiK, we're going to give users the option to ignore it. */ | 426 * TiK, we're going to give users the option to ignore it. */ |
| 427 if ((general_options & OPT_GEN_TIK_HACK) && gc->away && strlen(gc->away) && | 427 if ((general_options & OPT_GEN_TIK_HACK) && gc->away && strlen(gc->away) && |
