Update of /cvsroot/gaim/gaim/src/protocols/irc
In directory usw-pr-cvs1:/tmp/cvs-serv30217/src/protocols/irc
Modified Files:
irc.c
Log Message:
i18n fixes from paco-paco and msw, /topic fix from kingant. get the i18n fixes
into gtk1-stable and i'm done for the night.
Index: irc.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/irc/irc.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- irc.c 29 Aug 2002 01:47:14 -0000 1.81
+++ irc.c 14 Sep 2002 03:17:05 -0000 1.82
@@ -1592,11 +1592,14 @@
irc_write(id->fd, buf, strlen(buf));
} else if (!g_strcasecmp(pdibuf, "TOPIC")) {
if (!*word_eol[2]) {
- g_free(what);
- return -EINVAL;
+ struct conversation *c;
+ c = irc_find_chat(gc, who);
+ g_snprintf(buf, sizeof(buf), _("Topic for %s is %s"), who, c->topic ? c->topic : "(no topic set)");
+ write_to_conv(c, buf, WFLAG_SYSTEM | WFLAG_NOLOG, NULL, time(NULL), -1);
+ } else {
+ g_snprintf(buf, sizeof(buf), "TOPIC %s :%s\r\n", who, word_eol[2]);
+ irc_write(id->fd, buf, strlen(buf));
}
- g_snprintf(buf, sizeof(buf), "TOPIC %s :%s\r\n", who, word_eol[2]);
- irc_write(id->fd, buf, strlen(buf));
} else if (!g_strcasecmp(pdibuf, "NICK")) {
if (!*word_eol[2]) {
g_free(what);
|