Mercurial > pidgin.yaz
diff src/protocols/irc/irc.c @ 2393:a7ecfd3f7714
[gaim-migrate @ 2406]
Arkadiusz Miskiewicz\'s Gadu-Gadu plugin. I was able to figure out enough polish to be able to download Gadu-Gadu, create an account, and test the plugin. Imagine my shock when I got my info and it said I was a woman. Whoops.
Also splitting plugins.c so that non-gtk stuff is in modules.c. gaim-core is almost ready for protocol implantaion.
Also fixing an IRC bug.
Also patiently waiting for anoncvs_gaim's lock in /cvsroot/gaim/gaim/pixmaps
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 29 Sep 2001 23:06:30 +0000 |
parents | 569ae9f2bb89 |
children | 579f8d4347ad |
line wrap: on
line diff
--- a/src/protocols/irc/irc.c Sat Sep 29 02:08:00 2001 +0000 +++ b/src/protocols/irc/irc.c Sat Sep 29 23:06:30 2001 +0000 @@ -1319,9 +1319,14 @@ struct irc_data *idata = gc->proto_data; char buf[IRC_BUF_LEN]; - if (msg) + if (gc->away) + g_free(gc->away); + gc->away = NULL; + + if (msg) { g_snprintf(buf, sizeof(buf), "AWAY :%s\r\n", msg); - else + gc->away = g_strdup(msg); + } else g_snprintf(buf, sizeof(buf), "AWAY\r\n"); irc_write(idata->fd, buf, strlen(buf)); }