changeset 2453:b72143059ad4

[gaim-migrate @ 2466] this was stupid committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 08 Oct 2001 21:25:28 +0000
parents 824e1afefdd3
children 64e20158271e
files src/protocols/toc/toc.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/toc/toc.c	Mon Oct 08 20:37:32 2001 +0000
+++ b/src/protocols/toc/toc.c	Mon Oct 08 21:25:28 2001 +0000
@@ -379,7 +379,7 @@
 	g_show_info_text(url_text, NULL);
 }
 
-static char *show_error_message(char *d)
+static char *show_error_message()
 {
 	int no = atoi(strtok(NULL, ":"));
 	char *w = strtok(NULL, ":");
@@ -528,8 +528,7 @@
 				     buf + sizeof(struct sflap_hdr));
 			if (!g_strncasecmp(buf + sizeof(struct sflap_hdr), "ERROR", 5)) {
 				strtok(buf + sizeof(struct sflap_hdr), ":");
-				hide_login_progress(gc, show_error_message(buf +
-							sizeof(struct sflap_hdr)));
+				hide_login_progress(gc, show_error_message());
 			} else
 				hide_login_progress(gc, _("Authentication Failed"));
 			signoff(gc);
@@ -656,8 +655,7 @@
 
 		serv_got_update(gc, c, logged, evil, signon, time_idle, type, 0);
 	} else if (!strcasecmp(c, "ERROR")) {
-		c = strtok(NULL, ":");
-		show_error_message(c);
+		do_error_dialog(show_error_message(), "TOC Error");
 	} else if (!strcasecmp(c, "EVILED")) {
 		int lev;
 		char *name;