changeset 1429:865a6ead3258

[gaim-migrate @ 1439] i'm a moron committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 26 Jan 2001 23:33:17 +0000
parents 00b3d02a2168
children b4de935f820f
files src/plugins.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins.c	Fri Jan 26 02:02:36 2001 +0000
+++ b/src/plugins.c	Fri Jan 26 23:33:17 2001 +0000
@@ -715,11 +715,12 @@
 				}
 				break;
 
-				/* char *, int */
+				/* struct gaim_connection *, char *, int */
 			case event_warned:
 				{
-					void (*function)(char *, int, void *) = g->function;
-					(*function)(arg1, (int)arg2, g->data);
+					void (*function)(struct gaim_connection *, char *, int,
+							void *) = g->function;
+					(*function)(arg1, arg2, (int)arg3, g->data);
 				}
 				break;
 
@@ -806,7 +807,8 @@
 		g_snprintf(buf, sizeof buf, "\"%s\" %s", (char *)arg2, *(char **)arg3);
 		break;
 	case event_warned:
-		g_snprintf(buf, sizeof buf, "\"%s\" %d", (char *)arg1, (int)arg2);
+		g_snprintf(buf, sizeof buf, "\"%s\" \"%s\" %d",
+			   ((struct gaim_connection *)arg1)->username, (char *)arg2, (int)arg3);
 		break;
 	case event_error:
 		g_snprintf(buf, sizeof buf, "%d", (int)arg1);