diff src/dialogs.c @ 2791:8f6365332a05

[gaim-migrate @ 2804] i hate this shit. i should just stop hacking gaim. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 26 Nov 2001 20:39:54 +0000
parents 501de8a3b09f
children 35046c134b8b
line wrap: on
line diff
--- a/src/dialogs.c	Mon Nov 26 20:15:59 2001 +0000
+++ b/src/dialogs.c	Mon Nov 26 20:39:54 2001 +0000
@@ -1772,7 +1772,13 @@
 	return NULL;
 }
 
-void g_show_info_text(struct gaim_connection *gc, char *who, gboolean away, char *info, ...)
+/* if away is 0, show regardless and try to get away message
+ *            1, don't show if regular info isn't shown
+ *            2, show regardless but don't try to get away message
+ *
+ * i wish this were my client. if i were i wouldn't have to deal with this shit.
+ */
+void g_show_info_text(struct gaim_connection *gc, char *who, int away, char *info, ...)
 {
 	GtkWidget *ok;
 	GtkWidget *label;
@@ -1784,7 +1790,7 @@
 	va_list ap;
 
 	struct info_dlg *b = find_info_dlg(gc, who);
-	if (!b && away)
+	if (!b && (away == 1))
 		return;
 	if (!b) {
 		b = g_new0(struct info_dlg, 1);