Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
2392:9965c0bbdb7c | 2393:a7ecfd3f7714 |
---|---|
1317 static void irc_set_away(struct gaim_connection *gc, char *state, char *msg) | 1317 static void irc_set_away(struct gaim_connection *gc, char *state, char *msg) |
1318 { | 1318 { |
1319 struct irc_data *idata = gc->proto_data; | 1319 struct irc_data *idata = gc->proto_data; |
1320 char buf[IRC_BUF_LEN]; | 1320 char buf[IRC_BUF_LEN]; |
1321 | 1321 |
1322 if (msg) | 1322 if (gc->away) |
1323 g_free(gc->away); | |
1324 gc->away = NULL; | |
1325 | |
1326 if (msg) { | |
1323 g_snprintf(buf, sizeof(buf), "AWAY :%s\r\n", msg); | 1327 g_snprintf(buf, sizeof(buf), "AWAY :%s\r\n", msg); |
1324 else | 1328 gc->away = g_strdup(msg); |
1329 } else | |
1325 g_snprintf(buf, sizeof(buf), "AWAY\r\n"); | 1330 g_snprintf(buf, sizeof(buf), "AWAY\r\n"); |
1326 irc_write(idata->fd, buf, strlen(buf)); | 1331 irc_write(idata->fd, buf, strlen(buf)); |
1327 } | 1332 } |
1328 | 1333 |
1329 static char **irc_list_icon(int uc) | 1334 static char **irc_list_icon(int uc) |