Mercurial > pidgin
comparison src/plugins.c @ 2102:899c22dcee42
[gaim-migrate @ 2112]
I haven't actually tested that it works, but theoretically it does.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Wed, 01 Aug 2001 20:31:53 +0000 |
| parents | b66aca8e8dce |
| children | 0b81421021fd |
comparison
equal
deleted
inserted
replaced
| 2101:dd3aa315519d | 2102:899c22dcee42 |
|---|---|
| 723 sprintf(buf, "event_set_info"); | 723 sprintf(buf, "event_set_info"); |
| 724 break; | 724 break; |
| 725 case event_draw_menu: | 725 case event_draw_menu: |
| 726 sprintf(buf, "event_draw_menu"); | 726 sprintf(buf, "event_draw_menu"); |
| 727 break; | 727 break; |
| 728 case event_im_displayed: | |
| 729 sprintf(buf, "event_im_displayed"); | |
| 730 break; | |
| 728 default: | 731 default: |
| 729 sprintf(buf, "event_unknown"); | 732 sprintf(buf, "event_unknown"); |
| 730 break; | 733 break; |
| 731 } | 734 } |
| 732 return buf; | 735 return buf; |
| 775 } | 778 } |
| 776 break; | 779 break; |
| 777 | 780 |
| 778 /* struct gaim_connection *, char *, char ** */ | 781 /* struct gaim_connection *, char *, char ** */ |
| 779 case event_im_send: | 782 case event_im_send: |
| 783 case event_im_displayed: | |
| 780 case event_chat_send: | 784 case event_chat_send: |
| 781 { | 785 { |
| 782 void (*function)(struct gaim_connection *, char *, char **, | 786 void (*function)(struct gaim_connection *, char *, char **, |
| 783 void *) = g->function; | 787 void *) = g->function; |
| 784 (*function)(arg1, arg2, arg3, g->data); | 788 (*function)(arg1, arg2, arg3, g->data); |
| 951 g_snprintf(buf, sizeof buf, "\"%s\"", (char *)arg1); | 955 g_snprintf(buf, sizeof buf, "\"%s\"", (char *)arg1); |
| 952 break; | 956 break; |
| 953 case event_draw_menu: | 957 case event_draw_menu: |
| 954 g_snprintf(buf, sizeof buf, "\"%s\"", (char *)arg2); | 958 g_snprintf(buf, sizeof buf, "\"%s\"", (char *)arg2); |
| 955 break; | 959 break; |
| 960 case event_im_displayed: | |
| 961 g_snprintf(buf, sizeof buf, "\"%s\" \"%s\" %s", | |
| 962 ((struct gaim_connection *)arg1)->username, (char *)arg2, | |
| 963 (char *)arg3 ? (char *)arg3 : "(null)"); | |
| 964 break; | |
| 956 default: | 965 default: |
| 957 break; | 966 break; |
| 958 } | 967 } |
| 959 tmp = event_name(event); | 968 tmp = event_name(event); |
| 960 debug_printf("%s: %s\n", tmp, buf); | 969 debug_printf("%s: %s\n", tmp, buf); |
