plugins/irc.c

changeset 1301
43cab22c323c
parent 1288
cf2e4986d032
child 1304
f2345f41691e
--- a/plugins/irc.c	Tue Dec 19 01:16:46 2000 +0000
+++ b/plugins/irc.c	Tue Dec 19 01:29:13 2000 +0000
@@ -339,6 +339,7 @@
 	struct conversation *b = NULL;
 
 	while (bc) {
+		int x;
 		b = (struct conversation *)bc->data;
 
 		if (g_strcasecmp(name, b->name) == 0) {
@@ -376,6 +377,7 @@
 	} while (buf[i++] != '\n');
 
 	buf[--i] = '\0';
+	g_strchomp(buf);
 	g_print("%s\n", buf);
 
 	/* Check for errors */
@@ -574,6 +576,8 @@
 
 		strcpy(u_channel, buf + i);
 
+		g_strchomp(u_channel);
+
 		/* Looks like we're going to join the channel for real 
 		 * now.  Let's create a valid channel structure and add 
 		 * it to our list.  Let's make sure that
@@ -582,6 +586,7 @@
 		channel = find_channel_by_name(gc, u_channel);
 
 		if (!channel) {
+
 			chat_id++;
 
 			channel = g_new0(struct irc_channel, 1);

mercurial