diff src/plugins.c @ 2104:0b81421021fd

[gaim-migrate @ 2114] heh. i confused myself. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 01 Aug 2001 22:06:17 +0000
parents 899c22dcee42
children af59d854de29
line wrap: on
line diff
--- a/src/plugins.c	Wed Aug 01 21:24:42 2001 +0000
+++ b/src/plugins.c	Wed Aug 01 22:06:17 2001 +0000
@@ -725,8 +725,11 @@
 	case event_draw_menu:
 		sprintf(buf, "event_draw_menu");
 		break;
-	case event_im_displayed:
-		sprintf(buf, "event_im_displayed");
+	case event_im_displayed_sent:
+		sprintf(buf, "event_im_displayed_sent");
+		break;
+	case event_im_displayed_rcvd:
+		sprintf(buf, "event_im_displayed_rcvd");
 		break;
 	default:
 		sprintf(buf, "event_unknown");
@@ -780,7 +783,7 @@
 
 				/* struct gaim_connection *, char *, char ** */
 			case event_im_send:
-			case event_im_displayed:
+			case event_im_displayed_sent:
 			case event_chat_send:
 				{
 					void (*function)(struct gaim_connection *, char *, char **,
@@ -829,6 +832,7 @@
 			case event_chat_buddy_leave:
 			case event_away:
 			case event_back:
+			case event_im_displayed_rcvd:
 				{
 					void (*function)(struct gaim_connection *, char *, char *,
 							  void *) = g->function;
@@ -957,7 +961,12 @@
 	case event_draw_menu:
 		g_snprintf(buf, sizeof buf, "\"%s\"", (char *)arg2);
 		break;
-	case event_im_displayed:
+	case event_im_displayed_sent:
+		g_snprintf(buf, sizeof buf, "\"%s\" \"%s\" %s",
+			   ((struct gaim_connection *)arg1)->username, (char *)arg2,
+			   *(char **)arg3 ? *(char **)arg3 : "(null)");
+		break;
+	case event_im_displayed_rcvd:
 		g_snprintf(buf, sizeof buf, "\"%s\" \"%s\" %s",
 			   ((struct gaim_connection *)arg1)->username, (char *)arg2,
 			   (char *)arg3 ? (char *)arg3 : "(null)");