Mercurial > pidgin
changeset 1301:e973ef7a8a87
[gaim-migrate @ 1311]
The IRC plugin works again (when joining channels).
Thanks for breaking it for me, bro :-D
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Tue, 19 Dec 2000 01:29:13 +0000 |
parents | 59f08eb64017 |
children | 4c5c2fcb83cd |
files | plugins/irc.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);