changeset 676:9c49d2456773

[gaim-migrate @ 686] shit, i goofed committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 14 Aug 2000 19:44:43 +0000
parents b77c039c9d3d
children 05f6f7dabb7e
files src/dialogs.c src/toc.c
diffstat 2 files changed, 14 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Mon Aug 14 16:58:32 2000 +0000
+++ b/src/dialogs.c	Mon Aug 14 19:44:43 2000 +0000
@@ -1721,26 +1721,26 @@
 
         if (d) {
 		GList *d = deny;
+		char *n = g_strdup(normalize(name));
 		while (d) {
-			char *n = g_strdup(normalize(name));
 			if (!strcmp(n, normalize(d->data)))
 				break;
 			d = d->next;
-			g_free(n);
 		}
+		g_free(n);
 		if (!d) {
 	                deny = g_list_append(deny, name);
         	        serv_add_deny(name);
 		}
         } else {
 		GList *d = permit;
+		char *n = g_strdup(normalize(name));
 		while (d) {
-			char *n = g_strdup(normalize(name));
 			if (!strcmp(n, normalize(d->data)))
 				break;
 			d = d->next;
-			g_free(n);
 		}
+		g_free(n);
 		if (!d) {
 			permit = g_list_append(permit, name);
 			serv_add_permit(name);
--- a/src/toc.c	Mon Aug 14 16:58:32 2000 +0000
+++ b/src/toc.c	Mon Aug 14 19:44:43 2000 +0000
@@ -899,29 +899,31 @@
 			how_many++;
 			bud = g_list_append(bud, c+2);
         } else if (*c == 'p') {
-	    GList *d = deny;
+	    GList *d = permit;
+	    char *n;
             name = g_malloc(strlen(c+2) + 2);
             g_snprintf(name, strlen(c+2) + 1, "%s", c+2);
+	    n = g_strdup(normalize(name));
 	    while (d) {
-	        char *n = g_strdup(normalize(name));
-	    	if (!strcmp(n, normalize(d->data)))
+	    	if (!strcasecmp(n, normalize(d->data)))
 			break;
 		d = d->next;
-		g_free(n);
 	    }
+	    g_free(n);
 	    if (!d)
 	            permit = g_list_append(permit, name);
         } else if (*c == 'd') {
-	    GList *d = permit;
+	    GList *d = deny;
+	    char *n;
             name = g_malloc(strlen(c+2) + 2);
             g_snprintf(name, strlen(c+2) + 1, "%s", c+2);
+	    n = g_strdup(normalize(name));
 	    while (d) {
-	        char *n = g_strdup(normalize(name));
-	    	if (!strcmp(n, normalize(d->data)))
+	    	if (!strcasecmp(n, normalize(d->data)))
 			break;
 		d = d->next;
-		g_free(n);
 	    }
+	    g_free(n);
 	    if (!d)
 		    deny = g_list_append(deny, name);
         } else if (*c == 'm') {