diff src/protocols/toc/toc.c @ 2231:8c4ff1a368bd

[gaim-migrate @ 2241] blue:~/gaim/app/src/protocols $ ./gtk icq: 0 irc: 0 jabber: 52 msn: 0 napster: 0 oscar: 7 toc: 17 yahoo: 0 zephyr: 1 committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 07 Sep 2001 08:09:22 +0000
parents cff4fbe01c7b
children 14e8978f86bb
line wrap: on
line diff
--- a/src/protocols/toc/toc.c	Fri Sep 07 07:30:28 2001 +0000
+++ b/src/protocols/toc/toc.c	Fri Sep 07 08:09:22 2001 +0000
@@ -738,7 +738,7 @@
 	return "TOC";
 }
 
-static int toc_send_im(struct gaim_connection *gc, char *name, char *message, int away)
+static int toc_send_im(struct gaim_connection *gc, char *name, char *message, int flags)
 {
 	char buf[BUF_LEN * 2];
 	char *tmp = g_malloc(strlen(message) * 2);
@@ -750,7 +750,7 @@
 		return -E2BIG;
 	}
 	g_snprintf(buf, MSG_LEN - 8, "toc_send_im %s \"%s\"%s", normalize(name),
-		   tmp, ((away) ? " auto" : ""));
+		   tmp, ((flags & IM_FLAG_AWAY) ? " auto" : ""));
 	sflap_send(gc, buf, -1, TYPE_DATA);
 	
 	g_free(tmp);