# HG changeset patch # User Rob Flynn # Date 977189353 0 # Node ID e973ef7a8a87ecbb411f8713a51d7d83086dde29 # Parent 59f08eb64017ebbdcef811defef183b08c472ba1 [gaim-migrate @ 1311] The IRC plugin works again (when joining channels). Thanks for breaking it for me, bro :-D committer: Tailor Script diff -r 59f08eb64017 -r e973ef7a8a87 plugins/irc.c --- 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);