1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 05:16:38 +02:00

Fixed topic charset, now using channel charset if defined (bug #19386)

This commit is contained in:
Sebastien Helleu
2007-03-25 14:13:21 +00:00
parent 17989f8d71
commit cd3f62d37e
4 changed files with 36 additions and 4 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2007-03-23
ChangeLog - 2007-03-25
Version 0.2.4 (under dev!):
* fixed topic charset, now using channel charset if defined (bug #19386)
* renamed log file for DCC chat (now <server>.dcc.<nick>.weechatlog)
* fixed crash when closing a pv if a DCC chat is open on same nick
(bug #19147)
+16 -1
View File
@@ -192,7 +192,7 @@ void
weechat_charset_parse_irc_msg (char *message, char **nick, char **command,
char **channel, char **pos_args)
{
char *pos, *pos2, *pos3, *pos_tmp;
char *pos, *pos2, *pos3, *pos4, *pos_tmp;
*nick = NULL;
*command = NULL;
@@ -258,6 +258,21 @@ weechat_charset_parse_irc_msg (char *message, char **nick, char **command,
else
*nick = strdup (pos2);
}
if (pos3)
{
pos3++;
while (pos3[0] == ' ')
pos3++;
if ((pos3[0] == '#') || (pos3[0] == '&')
|| (pos3[0] == '+') || (pos3[0] == '!'))
{
pos4 = strchr (pos3, ' ');
if (pos4)
*channel = weechat_charset_strndup (pos3, pos4 - pos3);
else
*channel = strdup (pos3);
}
}
}
}
}
+2 -1
View File
@@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2007-03-23
ChangeLog - 2007-03-25
Version 0.2.4 (under dev!):
* fixed topic charset, now using channel charset if defined (bug #19386)
* renamed log file for DCC chat (now <server>.dcc.<nick>.weechatlog)
* fixed crash when closing a pv if a DCC chat is open on same nick
(bug #19147)
+16 -1
View File
@@ -192,7 +192,7 @@ void
weechat_charset_parse_irc_msg (char *message, char **nick, char **command,
char **channel, char **pos_args)
{
char *pos, *pos2, *pos3, *pos_tmp;
char *pos, *pos2, *pos3, *pos4, *pos_tmp;
*nick = NULL;
*command = NULL;
@@ -258,6 +258,21 @@ weechat_charset_parse_irc_msg (char *message, char **nick, char **command,
else
*nick = strdup (pos2);
}
if (pos3)
{
pos3++;
while (pos3[0] == ' ')
pos3++;
if ((pos3[0] == '#') || (pos3[0] == '&')
|| (pos3[0] == '+') || (pos3[0] == '!'))
{
pos4 = strchr (pos3, ' ');
if (pos4)
*channel = weechat_charset_strndup (pos3, pos4 - pos3);
else
*channel = strdup (pos3);
}
}
}
}
}