[gaim-migrate @ 2435]

Thu, 04 Oct 2001 00:05:18 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Thu, 04 Oct 2001 00:05:18 +0000
changeset 2422
c4b3c0927c57
parent 2421
009ae3cf0e83
child 2423
6b44470f40f5

[gaim-migrate @ 2435]
pass gc->away in events.

src/module.c file | annotate | diff | comparison | revisions
--- a/src/module.c	Wed Oct 03 20:36:33 2001 +0000
+++ b/src/module.c	Thu Oct 04 00:05:18 2001 +0000
@@ -430,9 +430,12 @@
 	switch (event) {
 	case event_signon:
 	case event_signoff:
+		g_snprintf(buf, sizeof buf, "%lu", (unsigned long)arg1);
+		break;
 	case event_away:
-	case event_back:
-		g_snprintf(buf, sizeof buf, "%lu", (unsigned long)arg1);
+		g_snprintf(buf, sizeof buf, "%lu %s", (unsigned long)arg1,
+				((struct gaim_connection *)arg1)->away ?
+					((struct gaim_connection *)arg1)->away : "");
 		break;
 	case event_im_recv:
 		g_snprintf(buf, sizeof buf, "%lu \"%s\" %s", (unsigned long)arg1,

mercurial