mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 03:03:12 +02:00
irc: add support of UHNAMES (capability "userhost-in-names") (task #9353)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
WeeChat ChangeLog
|
||||
=================
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
v0.4.1-dev, 2013-04-21
|
||||
v0.4.1-dev, 2013-04-23
|
||||
|
||||
|
||||
This document lists all changes for each version.
|
||||
@@ -50,6 +50,7 @@ Version 0.4.1 (under dev!)
|
||||
list with arguments inside), guile >= 2.0 is now required (bug #38350)
|
||||
* guile: fix crash on calls to callbacks during load of script (bug #38343)
|
||||
* guile: fix compilation with guile 2.0
|
||||
* irc: add support of UHNAMES (capability "userhost-in-names") (task #9353)
|
||||
* irc: add tag "irc_nick_back" for messages displayed in private buffer when a
|
||||
nick is back on server (task #12576)
|
||||
* irc: fix crash on command "/allchan /close"
|
||||
|
||||
@@ -454,7 +454,7 @@
|
||||
** Werte: 0 .. 1000000 (Standardwert: `25`)
|
||||
|
||||
* [[option_irc.server_default.capabilities]] *irc.server_default.capabilities*
|
||||
** Beschreibung: `durch Kommata getrennte Liste von erweiterten Client Fähigkeiten ("client capabilities"), welche vom Server angeboten und genutzt werden sollen (Beispiel: "multi-prefix,extended-join")`
|
||||
** Beschreibung: `comma-separated list of client capabilities to enable for server if they are available; capabilities supported by WeeChat are: multi-prefix, userhost-in-names (example: "multi-prefix,userhost-in-names")`
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette (Standardwert: `""`)
|
||||
|
||||
|
||||
@@ -454,7 +454,7 @@
|
||||
** values: 0 .. 1000000 (default value: `25`)
|
||||
|
||||
* [[option_irc.server_default.capabilities]] *irc.server_default.capabilities*
|
||||
** description: `comma-separated list of client capabilities to enable for server if they are available (example: "multi-prefix,extended-join")`
|
||||
** description: `comma-separated list of client capabilities to enable for server if they are available; capabilities supported by WeeChat are: multi-prefix, userhost-in-names (example: "multi-prefix,userhost-in-names")`
|
||||
** type: string
|
||||
** values: any string (default value: `""`)
|
||||
|
||||
|
||||
@@ -454,7 +454,7 @@
|
||||
** valeurs: 0 .. 1000000 (valeur par défaut: `25`)
|
||||
|
||||
* [[option_irc.server_default.capabilities]] *irc.server_default.capabilities*
|
||||
** description: `liste séparée par des virgules de capacités client ("client capabilities") à activer sur le serveur si elles sont disponibles (exemple: "multi-prefix,extended-join")`
|
||||
** description: `liste séparée par des virgules de capacités client ("client capabilities") à activer sur le serveur si elles sont disponibles; les capacités supportées par WeeChat sont: multi-prefix, userhost-in-names (exemple: "multi-prefix,userhost-in-names")`
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne (valeur par défaut: `""`)
|
||||
|
||||
|
||||
@@ -454,7 +454,7 @@
|
||||
** valori: 0 .. 1000000 (valore predefinito: `25`)
|
||||
|
||||
* [[option_irc.server_default.capabilities]] *irc.server_default.capabilities*
|
||||
** descrizione: `elenco separato da virgole delle capacità del client ("client capabilities") da abilitare per il server se disponibili (esempio: "multi-prefix,extended-join")`
|
||||
** descrizione: `comma-separated list of client capabilities to enable for server if they are available; capabilities supported by WeeChat are: multi-prefix, userhost-in-names (example: "multi-prefix,userhost-in-names")`
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa (valore predefinito: `""`)
|
||||
|
||||
|
||||
@@ -454,7 +454,7 @@
|
||||
** 値: 0 .. 1000000 (デフォルト値: `25`)
|
||||
|
||||
* [[option_irc.server_default.capabilities]] *irc.server_default.capabilities*
|
||||
** 説明: `サーバで利用可能ならば有効化する、クライアントの機能のコンマ区切りリスト (例: "multi-prefix,extended-join")`
|
||||
** 説明: `comma-separated list of client capabilities to enable for server if they are available; capabilities supported by WeeChat are: multi-prefix, userhost-in-names (example: "multi-prefix,userhost-in-names")`
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列 (デフォルト値: `""`)
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.1-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-03-25 09:00+0100\n"
|
||||
"POT-Creation-Date: 2013-04-23 21:20+0200\n"
|
||||
"PO-Revision-Date: 2013-03-16 17:49+0100\n"
|
||||
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -5729,7 +5729,8 @@ msgstr "heslo pro server"
|
||||
#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
|
||||
msgid ""
|
||||
"comma-separated list of client capabilities to enable for server if they are "
|
||||
"available (example: \"multi-prefix,extended-join\")"
|
||||
"available; capabilities supported by WeeChat are: multi-prefix, userhost-in-"
|
||||
"names (example: \"multi-prefix,userhost-in-names\")"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.1-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-04-16 19:56+0200\n"
|
||||
"POT-Creation-Date: 2013-04-23 21:20+0200\n"
|
||||
"PO-Revision-Date: 2013-04-16 20:07+0200\n"
|
||||
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
|
||||
"Language-Team: German <weechatter@arcor.de>\n"
|
||||
@@ -6274,9 +6274,11 @@ msgid "password for server"
|
||||
msgstr "Passwort für den Server"
|
||||
|
||||
#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"comma-separated list of client capabilities to enable for server if they are "
|
||||
"available (example: \"multi-prefix,extended-join\")"
|
||||
"available; capabilities supported by WeeChat are: multi-prefix, userhost-in-"
|
||||
"names (example: \"multi-prefix,userhost-in-names\")"
|
||||
msgstr ""
|
||||
"durch Kommata getrennte Liste von erweiterten Client Fähigkeiten (\"client "
|
||||
"capabilities\"), welche vom Server angeboten und genutzt werden sollen "
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.1-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-03-25 09:00+0100\n"
|
||||
"POT-Creation-Date: 2013-04-23 21:20+0200\n"
|
||||
"PO-Revision-Date: 2013-03-17 08:20+0100\n"
|
||||
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -5937,9 +5937,11 @@ msgid "password for server"
|
||||
msgstr "contraseña del servidor"
|
||||
|
||||
#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"comma-separated list of client capabilities to enable for server if they are "
|
||||
"available (example: \"multi-prefix,extended-join\")"
|
||||
"available; capabilities supported by WeeChat are: multi-prefix, userhost-in-"
|
||||
"names (example: \"multi-prefix,userhost-in-names\")"
|
||||
msgstr ""
|
||||
"lista separada por comas de capabilidades del cliente (\"client capabilities"
|
||||
"\") para habilitar en el servidor si están disponibles (ejemplo: \"multi-"
|
||||
|
||||
@@ -21,8 +21,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.1-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-03-25 09:00+0100\n"
|
||||
"PO-Revision-Date: 2013-03-25 09:01+0100\n"
|
||||
"POT-Creation-Date: 2013-04-23 21:20+0200\n"
|
||||
"PO-Revision-Date: 2013-04-23 21:21+0200\n"
|
||||
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: fr\n"
|
||||
@@ -6112,11 +6112,13 @@ msgstr "mot de passe pour le serveur"
|
||||
#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
|
||||
msgid ""
|
||||
"comma-separated list of client capabilities to enable for server if they are "
|
||||
"available (example: \"multi-prefix,extended-join\")"
|
||||
"available; capabilities supported by WeeChat are: multi-prefix, userhost-in-"
|
||||
"names (example: \"multi-prefix,userhost-in-names\")"
|
||||
msgstr ""
|
||||
"liste séparée par des virgules de capacités client (\"client capabilities\") "
|
||||
"à activer sur le serveur si elles sont disponibles (exemple: \"multi-prefix,"
|
||||
"extended-join\")"
|
||||
"à activer sur le serveur si elles sont disponibles; les capacités supportées "
|
||||
"par WeeChat sont: multi-prefix, userhost-in-names (exemple: \"multi-prefix,"
|
||||
"userhost-in-names\")"
|
||||
|
||||
msgid ""
|
||||
"mechanism for SASL authentication: \"plain\" for plain text password, \"dh-"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.1-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-03-25 09:00+0100\n"
|
||||
"POT-Creation-Date: 2013-04-23 21:20+0200\n"
|
||||
"PO-Revision-Date: 2013-03-16 17:50+0100\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -5294,7 +5294,8 @@ msgstr "jelszó az IRC szerveren"
|
||||
#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
|
||||
msgid ""
|
||||
"comma-separated list of client capabilities to enable for server if they are "
|
||||
"available (example: \"multi-prefix,extended-join\")"
|
||||
"available; capabilities supported by WeeChat are: multi-prefix, userhost-in-"
|
||||
"names (example: \"multi-prefix,userhost-in-names\")"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.1-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-03-25 09:00+0100\n"
|
||||
"POT-Creation-Date: 2013-04-23 21:20+0200\n"
|
||||
"PO-Revision-Date: 2013-03-17 08:20+0100\n"
|
||||
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -5945,9 +5945,11 @@ msgid "password for server"
|
||||
msgstr "password per il server"
|
||||
|
||||
#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"comma-separated list of client capabilities to enable for server if they are "
|
||||
"available (example: \"multi-prefix,extended-join\")"
|
||||
"available; capabilities supported by WeeChat are: multi-prefix, userhost-in-"
|
||||
"names (example: \"multi-prefix,userhost-in-names\")"
|
||||
msgstr ""
|
||||
"elenco separato da virgole delle capacità del client (\"client capabilities"
|
||||
"\") da abilitare per il server se disponibili (esempio: \"multi-prefix,"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.1-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-03-25 09:00+0100\n"
|
||||
"POT-Creation-Date: 2013-04-23 21:20+0200\n"
|
||||
"PO-Revision-Date: 2013-03-17 08:20+0100\n"
|
||||
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
|
||||
"Language-Team: Japanese <https://github.com/l/WeeChat>\n"
|
||||
@@ -5908,9 +5908,11 @@ msgid "password for server"
|
||||
msgstr "サーバのパスワード"
|
||||
|
||||
#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"comma-separated list of client capabilities to enable for server if they are "
|
||||
"available (example: \"multi-prefix,extended-join\")"
|
||||
"available; capabilities supported by WeeChat are: multi-prefix, userhost-in-"
|
||||
"names (example: \"multi-prefix,userhost-in-names\")"
|
||||
msgstr ""
|
||||
"サーバで利用可能ならば有効化する、クライアントの機能のコンマ区切りリスト "
|
||||
"(例: \"multi-prefix,extended-join\")"
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.1-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-03-25 09:00+0100\n"
|
||||
"POT-Creation-Date: 2013-04-23 21:20+0200\n"
|
||||
"PO-Revision-Date: 2013-03-17 08:20+0100\n"
|
||||
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -6022,9 +6022,11 @@ msgid "password for server"
|
||||
msgstr "hasło dla serwera"
|
||||
|
||||
#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"comma-separated list of client capabilities to enable for server if they are "
|
||||
"available (example: \"multi-prefix,extended-join\")"
|
||||
"available; capabilities supported by WeeChat are: multi-prefix, userhost-in-"
|
||||
"names (example: \"multi-prefix,userhost-in-names\")"
|
||||
msgstr ""
|
||||
"oddzielona przecinkami lista opcji włączanych dla serwera, jeśli są dostępne "
|
||||
"(na przykład \"multi-prefix,extended-join\")"
|
||||
|
||||
+3
-2
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.1-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-03-25 09:00+0100\n"
|
||||
"POT-Creation-Date: 2013-04-23 21:20+0200\n"
|
||||
"PO-Revision-Date: 2013-03-17 08:20+0100\n"
|
||||
"Last-Translator: Sergio Durigan Junior <sergiosdj@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -5470,7 +5470,8 @@ msgstr "senha para o servidor"
|
||||
#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
|
||||
msgid ""
|
||||
"comma-separated list of client capabilities to enable for server if they are "
|
||||
"available (example: \"multi-prefix,extended-join\")"
|
||||
"available; capabilities supported by WeeChat are: multi-prefix, userhost-in-"
|
||||
"names (example: \"multi-prefix,userhost-in-names\")"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.1-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-03-25 09:00+0100\n"
|
||||
"POT-Creation-Date: 2013-04-23 21:20+0200\n"
|
||||
"PO-Revision-Date: 2013-03-16 17:50+0100\n"
|
||||
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -5318,7 +5318,8 @@ msgstr "пароль, используемый при подключении к
|
||||
#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
|
||||
msgid ""
|
||||
"comma-separated list of client capabilities to enable for server if they are "
|
||||
"available (example: \"multi-prefix,extended-join\")"
|
||||
"available; capabilities supported by WeeChat are: multi-prefix, userhost-in-"
|
||||
"names (example: \"multi-prefix,userhost-in-names\")"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
||||
+3
-2
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.1-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-03-25 09:00+0100\n"
|
||||
"POT-Creation-Date: 2013-04-23 21:20+0200\n"
|
||||
"PO-Revision-Date: 2013-02-14 18:20+0100\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -4610,7 +4610,8 @@ msgstr ""
|
||||
#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
|
||||
msgid ""
|
||||
"comma-separated list of client capabilities to enable for server if they are "
|
||||
"available (example: \"multi-prefix,extended-join\")"
|
||||
"available; capabilities supported by WeeChat are: multi-prefix, userhost-in-"
|
||||
"names (example: \"multi-prefix,userhost-in-names\")"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
||||
@@ -1562,8 +1562,9 @@ irc_config_server_new_option (struct t_config_file *config_file,
|
||||
option_name, "string",
|
||||
/* TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po) */
|
||||
N_("comma-separated list of client capabilities to enable for "
|
||||
"server if they are available (example: "
|
||||
"\"multi-prefix,extended-join\")"),
|
||||
"server if they are available; capabilities supported by "
|
||||
"WeeChat are: multi-prefix, userhost-in-names (example: "
|
||||
"\"multi-prefix,userhost-in-names\")"),
|
||||
NULL, 0, 0,
|
||||
default_value, value,
|
||||
null_value_allowed,
|
||||
|
||||
@@ -606,15 +606,22 @@ irc_nick_nicklist_set_color_all ()
|
||||
|
||||
struct t_irc_nick *
|
||||
irc_nick_new (struct t_irc_server *server, struct t_irc_channel *channel,
|
||||
const char *nickname, const char *prefixes, int away)
|
||||
const char *nickname, const char *host, const char *prefixes,
|
||||
int away)
|
||||
{
|
||||
struct t_irc_nick *new_nick, *ptr_nick;
|
||||
int length;
|
||||
|
||||
if (!nickname || !nickname[0])
|
||||
return NULL;
|
||||
|
||||
/* nick already exists on this channel? */
|
||||
ptr_nick = irc_nick_search (server, channel, nickname);
|
||||
if (ptr_nick)
|
||||
{
|
||||
/* save away status from existing nick (before removing it) */
|
||||
away = ptr_nick->away;
|
||||
|
||||
/* remove old nick from nicklist */
|
||||
irc_nick_nicklist_remove (server, channel, ptr_nick);
|
||||
|
||||
@@ -634,7 +641,7 @@ irc_nick_new (struct t_irc_server *server, struct t_irc_channel *channel,
|
||||
|
||||
/* initialize new nick */
|
||||
new_nick->name = strdup (nickname);
|
||||
new_nick->host = NULL;
|
||||
new_nick->host = (host) ? strdup (host) : NULL;
|
||||
length = strlen (irc_server_get_prefix_chars (server));
|
||||
new_nick->prefixes = malloc (length + 1);
|
||||
if (new_nick->prefixes)
|
||||
|
||||
@@ -62,6 +62,7 @@ extern void irc_nick_nicklist_set_color_all ();
|
||||
extern struct t_irc_nick *irc_nick_new (struct t_irc_server *server,
|
||||
struct t_irc_channel *channel,
|
||||
const char *nickname,
|
||||
const char *host,
|
||||
const char *prefixes,
|
||||
int away);
|
||||
extern void irc_nick_change (struct t_irc_server *server,
|
||||
|
||||
@@ -566,9 +566,7 @@ IRC_PROTOCOL_CALLBACK(join)
|
||||
}
|
||||
|
||||
/* add nick in channel */
|
||||
ptr_nick = irc_nick_new (server, ptr_channel, nick, NULL, 0);
|
||||
if (ptr_nick)
|
||||
ptr_nick->host = strdup (address);
|
||||
ptr_nick = irc_nick_new (server, ptr_channel, nick, address, NULL, 0);
|
||||
|
||||
if (!ignored)
|
||||
{
|
||||
@@ -3802,9 +3800,8 @@ IRC_PROTOCOL_CALLBACK(353)
|
||||
{
|
||||
char *pos_channel, *pos_nick, *pos_nick_orig, *pos_host, *nickname;
|
||||
char *prefixes, *str_nicks;
|
||||
int args, i, away, length;
|
||||
int args, i, length;
|
||||
struct t_irc_channel *ptr_channel;
|
||||
struct t_irc_nick *ptr_nick;
|
||||
|
||||
IRC_PROTOCOL_MIN_ARGS(5);
|
||||
|
||||
@@ -3857,7 +3854,10 @@ IRC_PROTOCOL_CALLBACK(353)
|
||||
/* extract nick from host */
|
||||
pos_host = strchr (pos_nick, '!');
|
||||
if (pos_host)
|
||||
{
|
||||
nickname = weechat_strndup (pos_nick, pos_host - pos_nick);
|
||||
pos_host++;
|
||||
}
|
||||
else
|
||||
nickname = strdup (pos_nick);
|
||||
|
||||
@@ -3866,10 +3866,8 @@ IRC_PROTOCOL_CALLBACK(353)
|
||||
{
|
||||
if (ptr_channel && ptr_channel->nicks)
|
||||
{
|
||||
ptr_nick = irc_nick_search (server, ptr_channel, nickname);
|
||||
away = (ptr_nick && ptr_nick->away) ? 1 : 0;
|
||||
if (!irc_nick_new (server, ptr_channel, nickname, prefixes,
|
||||
away))
|
||||
if (!irc_nick_new (server, ptr_channel, nickname, pos_host,
|
||||
prefixes, 0))
|
||||
{
|
||||
weechat_printf (server->buffer,
|
||||
_("%s%s: cannot create nick \"%s\" "
|
||||
|
||||
@@ -540,14 +540,11 @@ irc_upgrade_read_cb (void *data,
|
||||
ptr_nick = irc_nick_new (irc_upgrade_current_server,
|
||||
irc_upgrade_current_channel,
|
||||
weechat_infolist_string (infolist, "name"),
|
||||
weechat_infolist_string (infolist, "host"),
|
||||
weechat_infolist_string (infolist, "prefixes"),
|
||||
weechat_infolist_integer (infolist, "away"));
|
||||
if (ptr_nick)
|
||||
{
|
||||
str = weechat_infolist_string (infolist, "host");
|
||||
if (str)
|
||||
ptr_nick->host = strdup (str);
|
||||
|
||||
/*
|
||||
* "flags" is not any more in this infolist (since
|
||||
* WeeChat 0.3.4), but we read it to keep compatibility
|
||||
|
||||
Reference in New Issue
Block a user