1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 15:53:12 +02:00

irc: do not allow command /query with a channel name (closes #459)

This commit is contained in:
Sébastien Helleu
2015-07-09 20:35:27 +02:00
parent b2f0cc30ff
commit cc774d099b
14 changed files with 77 additions and 13 deletions
+1
View File
@@ -45,6 +45,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
* api: fix type of value returned by function strcasestr
* fifo: fix send error on Cygwin when something is received in the pipe
(closes #436)
* irc: do not allow command /query with a channel name (closes #459)
* irc: decode/encode only text in IRC messages and not the headers
(bug #29886, closes #218, closes #451)
* irc: fix crash with commands /allchan, /allpv and /allserv if the executed
+5 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-06-30 07:49+0200\n"
"POT-Creation-Date: 2015-07-09 20:32+0200\n"
"PO-Revision-Date: 2015-03-21 08:41+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5281,6 +5281,10 @@ msgstr "%s: přidána notifikace pro %s%s"
msgid "%s%s: notification not found"
msgstr "%s%s: notifikace nenalezena"
#, fuzzy, c-format
msgid "%s%s: \"%s\" command can not be executed with a channel name (\"%s\")"
msgstr "%s%s: \"%s\" příkaz může být spuštěn pouze v bufferu kanálu"
#, c-format
msgid "%s%s: cannot create new private buffer \"%s\""
msgstr "%s%s: nemohu vytvořít nový soukromý buffer\"%s\""
+5 -1
View File
@@ -24,7 +24,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-06-30 07:49+0200\n"
"POT-Creation-Date: 2015-07-09 20:32+0200\n"
"PO-Revision-Date: 2015-06-30 21:30+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <>\n"
@@ -6231,6 +6231,10 @@ msgstr "%s: Benachrichtigung für %s%s%s gelöscht"
msgid "%s%s: notification not found"
msgstr "%s%s: Benachrichtigung nicht gefunden"
#, fuzzy, c-format
msgid "%s%s: \"%s\" command can not be executed with a channel name (\"%s\")"
msgstr "%s%s: Der Befehl \"%s\" kann nur im Channel-Buffer ausgeführt werden"
#, c-format
msgid "%s%s: cannot create new private buffer \"%s\""
msgstr "%s%s: ein neuer privater Buffer \"%s\" kann nicht erstellt werden"
+5 -1
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-06-30 07:49+0200\n"
"POT-Creation-Date: 2015-07-09 20:32+0200\n"
"PO-Revision-Date: 2015-03-21 08:41+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5507,6 +5507,10 @@ msgstr "%s: notificación para %s%s agregada"
msgid "%s%s: notification not found"
msgstr "%s%s: notificación no encontrada"
#, fuzzy, c-format
msgid "%s%s: \"%s\" command can not be executed with a channel name (\"%s\")"
msgstr "%s%s: el comando \"%s\" solo puede ser ejecutado en un canal"
#, c-format
msgid "%s%s: cannot create new private buffer \"%s\""
msgstr "%s%s: no es posible crear la conversación privada \"%s\""
+8 -2
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-06-30 07:49+0200\n"
"PO-Revision-Date: 2015-06-30 07:50+0200\n"
"POT-Creation-Date: 2015-07-09 20:32+0200\n"
"PO-Revision-Date: 2015-07-09 20:34+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -6095,6 +6095,12 @@ msgstr "%s : notification supprimée pour %s%s%s"
msgid "%s%s: notification not found"
msgstr "%s%s : notification non trouvée"
#, c-format
msgid "%s%s: \"%s\" command can not be executed with a channel name (\"%s\")"
msgstr ""
"%s%s : la commande \"%s\" ne peut pas être exécutée avec un nom de canal "
"(\"%s\")"
#, c-format
msgid "%s%s: cannot create new private buffer \"%s\""
msgstr "%s%s : impossible de créer le tampon privé \"%s\""
+5 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-06-30 07:49+0200\n"
"POT-Creation-Date: 2015-07-09 20:32+0200\n"
"PO-Revision-Date: 2015-03-21 08:41+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4846,6 +4846,10 @@ msgstr "%s IP-cím nem található\n"
msgid "%s%s: notification not found"
msgstr "aláírás nem található"
#, fuzzy, c-format
msgid "%s%s: \"%s\" command can not be executed with a channel name (\"%s\")"
msgstr "%s \"%s\" parancs csak a szobaablakban futtatható\n"
#, fuzzy, c-format
msgid "%s%s: cannot create new private buffer \"%s\""
msgstr "%s nem sikerült új privát ablakot nyitni \"%s\"\n"
+6 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-06-30 07:49+0200\n"
"POT-Creation-Date: 2015-07-09 20:32+0200\n"
"PO-Revision-Date: 2015-03-21 08:41+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5657,6 +5657,11 @@ msgstr "%s: notifica aggiunta per %s%s"
msgid "%s%s: notification not found"
msgstr "%s%s: notifica non trovata"
#, fuzzy, c-format
msgid "%s%s: \"%s\" command can not be executed with a channel name (\"%s\")"
msgstr ""
"%s%s: il comando \"%s\" può essere eseguito solamente sul buffer del canale"
#, c-format
msgid "%s%s: cannot create new private buffer \"%s\""
msgstr "%s%s: impossibile creare il nuovo buffer privato \"%s\""
+5 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-06-30 07:49+0200\n"
"POT-Creation-Date: 2015-07-09 20:32+0200\n"
"PO-Revision-Date: 2015-06-21 22:54+0900\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/translation_ja>\n"
@@ -5823,6 +5823,10 @@ msgstr "%s: %s%s%s の通知を削除"
msgid "%s%s: notification not found"
msgstr "%s%s: 通知が見つかりません"
#, fuzzy, c-format
msgid "%s%s: \"%s\" command can not be executed with a channel name (\"%s\")"
msgstr "%s%s: \"%s\" コマンドはチャンネルバッファ内でのみ実行可能"
#, c-format
msgid "%s%s: cannot create new private buffer \"%s\""
msgstr "%s%s: 新しいプライベートバッファ \"%s\" の作成に失敗"
+5 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-06-30 07:49+0200\n"
"POT-Creation-Date: 2015-07-09 20:32+0200\n"
"PO-Revision-Date: 2015-05-09 14:00+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5955,6 +5955,10 @@ msgstr "%s: powiadomienie usunięte dla %s%s%s"
msgid "%s%s: notification not found"
msgstr "%s%s: nie znaleziono powiadomienia"
#, fuzzy, c-format
msgid "%s%s: \"%s\" command can not be executed with a channel name (\"%s\")"
msgstr "%s%s: komenda \"%s\" może być tylko wykonana w buforze kanału"
#, c-format
msgid "%s%s: cannot create new private buffer \"%s\""
msgstr "%s%s: nie można utworzyć nowego bufora prywatnego \"%s\""
+5 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-06-30 07:49+0200\n"
"POT-Creation-Date: 2015-07-09 20:32+0200\n"
"PO-Revision-Date: 2015-03-21 08:41+0100\n"
"Last-Translator: Eduardo Elias <camponez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -5436,6 +5436,10 @@ msgstr "%s: desconectado do cliente %s%s%s (%s.%s)"
msgid "%s%s: notification not found"
msgstr ""
#, fuzzy, c-format
msgid "%s%s: \"%s\" command can not be executed with a channel name (\"%s\")"
msgstr "%s%s: não foi possível criar novo canal \"%s\""
#, c-format
msgid "%s%s: cannot create new private buffer \"%s\""
msgstr ""
+5 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-06-30 07:49+0200\n"
"POT-Creation-Date: 2015-07-09 20:32+0200\n"
"PO-Revision-Date: 2015-03-21 08:41+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4881,6 +4881,10 @@ msgstr "%s IP адрес не найден\n"
msgid "%s%s: notification not found"
msgstr "подпись не найдена"
#, fuzzy, c-format
msgid "%s%s: \"%s\" command can not be executed with a channel name (\"%s\")"
msgstr "%s \"%s\" команда может быть выполнена только в буфере канала\n"
#, fuzzy, c-format
msgid "%s%s: cannot create new private buffer \"%s\""
msgstr "%s невозможно создать новый буфер привата \"%s\"\n"
+5 -1
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-06-30 07:49+0200\n"
"POT-Creation-Date: 2015-07-09 20:32+0200\n"
"PO-Revision-Date: 2015-03-10 21:33+0100\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4431,6 +4431,10 @@ msgstr ""
msgid "%s%s: notification not found"
msgstr ""
#, c-format
msgid "%s%s: \"%s\" command can not be executed with a channel name (\"%s\")"
msgstr ""
#, c-format
msgid "%s%s: cannot create new private buffer \"%s\""
msgstr ""
+5 -1
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2015-06-30 07:49+0200\n"
"POT-Creation-Date: 2015-07-09 20:32+0200\n"
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4423,6 +4423,10 @@ msgstr ""
msgid "%s%s: notification not found"
msgstr ""
#, c-format
msgid "%s%s: \"%s\" command can not be executed with a channel name (\"%s\")"
msgstr ""
#, c-format
msgid "%s%s: cannot create new private buffer \"%s\""
msgstr ""
+12
View File
@@ -3866,6 +3866,18 @@ irc_command_query (void *data, struct t_gui_buffer *buffer, int argc,
for (i = 0; i < num_nicks; i++)
{
/* ensure the name is not a channel name */
if (irc_channel_is_channel (ptr_server, nicks[i]))
{
weechat_printf (
ptr_server->buffer,
_("%s%s: \"%s\" command can not be executed with a "
"channel name (\"%s\")"),
weechat_prefix ("error"), IRC_PLUGIN_NAME, "query",
nicks[i]);
continue;
}
/* create private window if not already opened */
ptr_channel = irc_channel_search (ptr_server, nicks[i]);
if (!ptr_channel)