mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 05:46:38 +02:00
irc: add support of UTF8MAPPING, add support of optional server in info "irc_is_nick" (closes #1528)
This commit is contained in:
@@ -3096,7 +3096,7 @@ IRC_PROTOCOL_CALLBACK(001)
|
||||
IRC_PROTOCOL_CALLBACK(005)
|
||||
{
|
||||
char *pos, *pos2, *pos_start, *error, *isupport2;
|
||||
int length_isupport, length, casemapping;
|
||||
int length_isupport, length, casemapping, utf8mapping;
|
||||
long value;
|
||||
|
||||
IRC_PROTOCOL_MIN_ARGS(4);
|
||||
@@ -3181,6 +3181,21 @@ IRC_PROTOCOL_CALLBACK(005)
|
||||
pos2[0] = ' ';
|
||||
}
|
||||
|
||||
/* save utf8mapping */
|
||||
pos = strstr (argv_eol[3], "UTF8MAPPING=");
|
||||
if (pos)
|
||||
{
|
||||
pos += 12;
|
||||
pos2 = strchr (pos, ' ');
|
||||
if (pos2)
|
||||
pos2[0] = '\0';
|
||||
utf8mapping = irc_server_search_utf8mapping (pos);
|
||||
if (utf8mapping >= 0)
|
||||
server->utf8mapping = utf8mapping;
|
||||
if (pos2)
|
||||
pos2[0] = ' ';
|
||||
}
|
||||
|
||||
/* save chantypes */
|
||||
pos = strstr (argv_eol[3], "CHANTYPES=");
|
||||
if (pos)
|
||||
|
||||
Reference in New Issue
Block a user