Mercurial > pidgin
comparison src/conversation.c @ 391:be408b41c172
[gaim-migrate @ 401]
Plugins got updated.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 12 Jun 2000 11:30:05 +0000 |
parents | 5e16d37b48bf |
children | a330017b3aa4 |
comparison
equal
deleted
inserted
replaced
390:0890c6250e7e | 391:be408b41c172 |
---|---|
471 #ifdef GAIM_PLUGINS | 471 #ifdef GAIM_PLUGINS |
472 { | 472 { |
473 GList *ca = callbacks; | 473 GList *ca = callbacks; |
474 struct gaim_callback *g; | 474 struct gaim_callback *g; |
475 void (*function)(char *, char **, void *); | 475 void (*function)(char *, char **, void *); |
476 char *buffy = g_strdup(buf); | |
476 while (ca) { | 477 while (ca) { |
477 g = (struct gaim_callback *)(ca->data); | 478 g = (struct gaim_callback *)(ca->data); |
478 if (g->event == event_im_send && g->function != NULL) { | 479 if (g->event == event_im_send && g->function != NULL) { |
479 function = g->function; | 480 function = g->function; |
480 (*function)(c->name, &buf, g->data); | 481 (*function)(c->name, &buffy, g->data); |
481 } | 482 } |
482 ca = ca->next; | 483 ca = ca->next; |
483 } | 484 } |
484 if (buf == NULL) { | 485 if (!buffy) { |
485 g_free(buf2); | 486 g_free(buf2); |
486 return; | 487 return; |
487 } | 488 } |
489 g_snprintf(buf, BUF_LONG, "%s", buffy); | |
490 g_free(buffy); | |
488 } | 491 } |
489 #endif | 492 #endif |
490 | 493 |
491 write_to_conv(c, buf, WFLAG_SEND); | 494 write_to_conv(c, buf, WFLAG_SEND); |
492 | 495 |