mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
relay: add option relay.look.raw_messages_max_length (issue #2122)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
### Added
|
||||
|
||||
- relay: add infos "relay_api_version" and "relay_api_version_number"
|
||||
- relay: add option relay.look.raw_messages_max_length ([#2122](https://github.com/weechat/weechat/issues/2122))
|
||||
|
||||
### Fixed
|
||||
|
||||
|
||||
@@ -502,6 +502,7 @@ WeeChat "core" is located in following directories:
|
||||
| relay/ | Root of unit tests for Relay plugin.
|
||||
| test-relay-auth.cpp | Tests: clients authentication.
|
||||
| test-relay-http.cpp | Tests: HTTP functions for Relay plugin.
|
||||
| test-relay-raw.cpp | Tests: raw messages functions for Relay plugin.
|
||||
| test-relay-remote.cpp | Tests: remote functions for Relay plugin.
|
||||
| test-relay-websocket.cpp | Tests: websocket functions for Relay plugin.
|
||||
| api/ | Root of unit tests for Relay "api" protocol.
|
||||
|
||||
@@ -504,6 +504,7 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
|
||||
| relay/ | Racine des tests unitaires pour l'extension Relay.
|
||||
| test-relay-auth.cpp | Tests : authentification des clients.
|
||||
| test-relay-http.cpp | Tests : fonctions HTTP pour l'extension Relay.
|
||||
| test-relay-raw.cpp | Tests : fonctions sur les messages bruts pour l'extension Relay.
|
||||
| test-relay-remote.cpp | Tests : fonctions remote pour l'extension Relay.
|
||||
| test-relay-websocket.cpp | Tests : fonctions websocket pour l'extension Relay.
|
||||
| api/ | Racine des tests unitaires pour le protocole relay "api".
|
||||
|
||||
@@ -612,6 +612,8 @@ WeeChat "core" は以下のディレクトリに配置されています:
|
||||
// TRANSLATION MISSING
|
||||
| test-relay-http.cpp | Tests: HTTP functions for Relay plugin.
|
||||
// TRANSLATION MISSING
|
||||
| test-relay-raw.cpp | Tests: raw messages functions for Relay plugin.
|
||||
// TRANSLATION MISSING
|
||||
| test-relay-remote.cpp | Tests: remote functions for Relay plugin.
|
||||
// TRANSLATION MISSING
|
||||
| test-relay-websocket.cpp | Tests: websocket functions for Relay plugin.
|
||||
|
||||
@@ -505,6 +505,8 @@ WeeChat „језгро” се налази у следећим директо
|
||||
| relay/ | Корен unit тестова за Релеј додатак.
|
||||
| test-relay-auth.cpp | Тестови: аутентификација клијената.
|
||||
| test-relay-http.cpp | Тестови: HTTP функције за Релеј додатак.
|
||||
// TRANSLATION MISSING
|
||||
| test-relay-raw.cpp | Tests: raw messages functions for Relay plugin.
|
||||
| test-relay-remote.cpp | Тестови: удаљене функције за Релеј додатак.
|
||||
| test-relay-websocket.cpp | Тестови: websocket функције за Релеј додатак.
|
||||
| api/ | Корен unit тестова за Релеј „api” протокол.
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-05-27 21:44+0200\n"
|
||||
"POT-Creation-Date: 2024-05-29 23:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14429,6 +14429,14 @@ msgid ""
|
||||
"\"weechat\", \"api\""
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"maximum length (in number of chars) of a raw message displayed (0 = display "
|
||||
"whole message); the beginning and end of message is always displayed with at "
|
||||
"the middle: \" (...) \"; for example if the value is 8 and the raw message "
|
||||
"is \"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: \"abcd "
|
||||
"(...) wxyz\""
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for client description"
|
||||
msgstr "barva textu pro zvýrazněný prefix"
|
||||
|
||||
@@ -26,7 +26,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-05-27 21:44+0200\n"
|
||||
"POT-Creation-Date: 2024-05-29 23:01+0200\n"
|
||||
"PO-Revision-Date: 2024-05-27 22:19+0200\n"
|
||||
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
|
||||
"Language-Team: German <kde-i18n-de@kde.org>\n"
|
||||
@@ -2108,11 +2108,11 @@ msgstr ""
|
||||
"undOperatoren (+, -, *, /, //, %, **)"
|
||||
|
||||
msgid ""
|
||||
" - ${random:min,max}: a random integer number between \"min\" and "
|
||||
"\"max\" (inclusive)"
|
||||
" - ${random:min,max}: a random integer number between \"min\" and \"max\" "
|
||||
"(inclusive)"
|
||||
msgstr ""
|
||||
" - ${random:min,max}: eine zufällige ganze Zahl zwischen \"min\" "
|
||||
"und\"max\" (einschließlich)"
|
||||
" - ${random:min,max}: eine zufällige ganze Zahl zwischen \"min\" und\"max\" "
|
||||
"(einschließlich)"
|
||||
|
||||
msgid " - ${translate:string}: the translated string"
|
||||
msgstr " - ${translate:string}: die übersetzte Zeichenkette"
|
||||
@@ -3043,8 +3043,8 @@ msgid ""
|
||||
" raw[chat(xxx)]: chat area for buffer with name \"xxx\" (full name "
|
||||
"including plugin)"
|
||||
msgstr ""
|
||||
" raw[chat(xxx)]: Chatbereich für einen Buffer mit dem Namen "
|
||||
"\"xxx\" (vollständiger Name, mit Erweiterung)"
|
||||
" raw[chat(xxx)]: Chatbereich für einen Buffer mit dem Namen \"xxx\" "
|
||||
"(vollständiger Name, mit Erweiterung)"
|
||||
|
||||
msgid " raw[bar(*)]: any bar"
|
||||
msgstr " raw[bar(*)]: beliebige Bar"
|
||||
@@ -4984,8 +4984,8 @@ msgstr ""
|
||||
"\"-yes\" ausgeführt werden (siehe /help quit)"
|
||||
|
||||
msgid ""
|
||||
"if set, /upgrade command must be confirmed with extra argument \"-"
|
||||
"yes\" (see /help upgrade)"
|
||||
"if set, /upgrade command must be confirmed with extra argument \"-yes\" "
|
||||
"(see /help upgrade)"
|
||||
msgstr ""
|
||||
"ist diese Einstellung aktiviert, muss der \"/upgrade\" Befehl mit dem "
|
||||
"Argument \"-yes\" ausgeführt werden (siehe /help upgrade)"
|
||||
@@ -5041,10 +5041,10 @@ msgid ""
|
||||
"weechat.color.emphasized* are used"
|
||||
msgstr ""
|
||||
"Attribute um Textpassagen hervorzuheben: Das setzen von ein- oder mehreren "
|
||||
"Attributen ist möglich (\"%\" für blinkenden Text, \".\" zum "
|
||||
"\"dimmen\" (halbe Helligkeit),\"*\" für fett, \"!\" für invertiert, \"/\" "
|
||||
"für kursiv, \"_\" für unterstrichen); wenn die Zeichenkette leer ist, werden "
|
||||
"die Farben genutzt die durch weechat.color.emphasized* definiert sind"
|
||||
"Attributen ist möglich (\"%\" für blinkenden Text, \".\" zum \"dimmen\" "
|
||||
"(halbe Helligkeit),\"*\" für fett, \"!\" für invertiert, \"/\" für kursiv, "
|
||||
"\"_\" für unterstrichen); wenn die Zeichenkette leer ist, werden die Farben "
|
||||
"genutzt die durch weechat.color.emphasized* definiert sind"
|
||||
|
||||
msgid ""
|
||||
"comma separated list of words to highlight; case insensitive comparison (use "
|
||||
@@ -7017,24 +7017,24 @@ msgstr ""
|
||||
"Bedingungen um eine Infobar anzuzeigen. Eine einfache Bedingung: \"active\", "
|
||||
"\"inactive\", \"nicklist\" (Fenster muss aktiv/inaktiv sein oder der Buffer "
|
||||
"enthält eine Benutzerliste), oder man nutzt einen Ausdruck mit Bedingungen "
|
||||
"(siehe /help eval). Beispiele: \"${nicklist} && ${info:term_width} > "
|
||||
"100\" (lokale Variablen für den Ausdruck sind ${active}, ${inactive} und "
|
||||
"(siehe /help eval). Beispiele: \"${nicklist} && ${info:term_width} > 100\" "
|
||||
"(lokale Variablen für den Ausdruck sind ${active}, ${inactive} und "
|
||||
"${nicklist})"
|
||||
|
||||
msgid "bar position (bottom, top, left, right)"
|
||||
msgstr "Position der Infobar (unten, oben, links, rechts)"
|
||||
|
||||
msgid ""
|
||||
"bar filling direction (\"horizontal\" (from left to right) or "
|
||||
"\"vertical\" (from top to bottom)) when bar position is top or bottom"
|
||||
"bar filling direction (\"horizontal\" (from left to right) or \"vertical\" "
|
||||
"(from top to bottom)) when bar position is top or bottom"
|
||||
msgstr ""
|
||||
"Darstellung innerhalb der Infobar, falls die Infobar oben/unten angezeigt "
|
||||
"wird (\"horizontal\" (von links nach rechts) oder \"vertikal\" (von oben "
|
||||
"nach unten))"
|
||||
|
||||
msgid ""
|
||||
"bar filling direction (\"horizontal\" (from left to right) or "
|
||||
"\"vertical\" (from top to bottom)) when bar position is left or right"
|
||||
"bar filling direction (\"horizontal\" (from left to right) or \"vertical\" "
|
||||
"(from top to bottom)) when bar position is left or right"
|
||||
msgstr ""
|
||||
"Darstellung innerhalb der Infobar, falls die Infobar links/rechts angezeigt "
|
||||
"wird (\"horizontal\" (von links nach rechts) oder \"vertikal\" (von oben "
|
||||
@@ -7074,9 +7074,9 @@ msgid "separator line between bar and other bars/windows"
|
||||
msgstr "Trennzeichen zwischen verschieden Infobars und Fenstern"
|
||||
|
||||
msgid ""
|
||||
"items of bar, they can be separated by comma (space between items) or \"+"
|
||||
"\" (glued items); special syntax \"@buffer:item\" can be used to force "
|
||||
"buffer used when displaying the bar item"
|
||||
"items of bar, they can be separated by comma (space between items) or \"+\" "
|
||||
"(glued items); special syntax \"@buffer:item\" can be used to force buffer "
|
||||
"used when displaying the bar item"
|
||||
msgstr ""
|
||||
"Items einer Bar können entweder durch Kommata (\",\") voneinander getrennt "
|
||||
"(setzt ein Leerzeichen zwischen die Items), oder durch ein \"+\" Zeichen "
|
||||
@@ -8820,8 +8820,8 @@ msgid " - ${description}: option description (translated)"
|
||||
msgstr " - ${description}: Beschreibung der Option (übersetzt)"
|
||||
|
||||
msgid ""
|
||||
" - ${description2}: option description (translated), \"(no "
|
||||
"description)\" (translated) if there's no description"
|
||||
" - ${description2}: option description (translated), \"(no description)\" "
|
||||
"(translated) if there's no description"
|
||||
msgstr ""
|
||||
" - ${description2}: Beschreibung der Option (übersetzt), \"(keine "
|
||||
"Beschreibung)\" (übersetzt) falls keine Beschreibung vorhanden"
|
||||
@@ -9512,8 +9512,8 @@ msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: if you want to add a standard server, use the command \"/server "
|
||||
"add\" (see /help server); if you really want to add a temporary server (NOT "
|
||||
"%s%s: if you want to add a standard server, use the command \"/server add\" "
|
||||
"(see /help server); if you really want to add a temporary server (NOT "
|
||||
"SAVED), turn on the option irc.look.temporary_servers"
|
||||
msgstr ""
|
||||
"%s%s: falls ein Standardserver erstellt werden soll, muss der Befehl \"/"
|
||||
@@ -12676,8 +12676,8 @@ msgid ""
|
||||
"interval between two checks for notify with IRC command \"whois\" (in "
|
||||
"minutes)"
|
||||
msgstr ""
|
||||
"Intervall zwischen zwei notify Überprüfungen mit dem IRC Befehl "
|
||||
"\"whois\" (in Minuten)"
|
||||
"Intervall zwischen zwei notify Überprüfungen mit dem IRC Befehl \"whois\" "
|
||||
"(in Minuten)"
|
||||
|
||||
msgid ""
|
||||
"cause SASL authentication failure when SASL is requested but unavailable on "
|
||||
@@ -15025,19 +15025,19 @@ msgstr "%s%s: Interpreter kann nicht freigeben werden"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: too few arguments received from client %s%s%s for resource "
|
||||
"\"%s\" (received: %d arguments, expected: at least %d)"
|
||||
"%s%s: too few arguments received from client %s%s%s for resource \"%s\" "
|
||||
"(received: %d arguments, expected: at least %d)"
|
||||
msgstr ""
|
||||
"%s%s: Zu wenige Argumente von Client %s%s%s für die Ressource \"%s\" "
|
||||
"erhalten (Empfangen: %d Argumente, mindestens erwartet: %d)"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: too many arguments received from client %s%s%s for resource "
|
||||
"\"%s\" (received: %d arguments, expected: at most %d)"
|
||||
"%s%s: too many arguments received from client %s%s%s for resource \"%s\" "
|
||||
"(received: %d arguments, expected: at most %d)"
|
||||
msgstr ""
|
||||
"%s%s: Zu viele Argumente von Client erhalten %s%s%s für die Ressource "
|
||||
"\"%s\" (Empfangen: %d Argumente, höchstens erwartet: %d)"
|
||||
"%s%s: Zu viele Argumente von Client erhalten %s%s%s für die Ressource \"%s\" "
|
||||
"(Empfangen: %d Argumente, höchstens erwartet: %d)"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: failed to execute route \"%s %s\" for client %s%s%s"
|
||||
@@ -15807,6 +15807,14 @@ msgstr ""
|
||||
"Verbindung zum Relay herstellen oder trennen (durch Kommas getrennte Liste); "
|
||||
"erlaubte Protokolle: \"irc\", \"weechat\", \"api\""
|
||||
|
||||
msgid ""
|
||||
"maximum length (in number of chars) of a raw message displayed (0 = display "
|
||||
"whole message); the beginning and end of message is always displayed with at "
|
||||
"the middle: \" (...) \"; for example if the value is 8 and the raw message "
|
||||
"is \"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: \"abcd "
|
||||
"(...) wxyz\""
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for client description"
|
||||
msgstr "Textfarbe für Client-Beschreibung"
|
||||
|
||||
@@ -16136,8 +16144,8 @@ msgid ""
|
||||
"%s%s: error: file with TLS certificate/key is not readable: \"%s\" (option "
|
||||
"relay.network.tls_cert_key)"
|
||||
msgstr ""
|
||||
"%s%s: Fehler: Datei mit TLS Zertifikat/Schlüssel ist nicht lesbar: "
|
||||
"\"%s\" (Option relay.network.tls_cert_key)"
|
||||
"%s%s: Fehler: Datei mit TLS Zertifikat/Schlüssel ist nicht lesbar: \"%s\" "
|
||||
"(Option relay.network.tls_cert_key)"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to initialize priority for TLS"
|
||||
@@ -16281,8 +16289,8 @@ msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: too few arguments received from client %s%s%s for command "
|
||||
"\"%s\" (received: %d arguments, expected: at least %d)"
|
||||
"%s%s: too few arguments received from client %s%s%s for command \"%s\" "
|
||||
"(received: %d arguments, expected: at least %d)"
|
||||
msgstr ""
|
||||
"%s%s: Zu wenige Argumente von Client %s%s%s für den Befehl \"%s\" erhalten "
|
||||
"(Empfangen: %d Argumente, mindestens Erwartet: %d)"
|
||||
@@ -17451,22 +17459,22 @@ msgstr "verwaltet Trigger, das Schweizer Armeemesser für WeeChat"
|
||||
#. TRANSLATORS: only text between angle brackets (eg: "<name>") must be translated
|
||||
msgid ""
|
||||
"list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace "
|
||||
"<name> <hook> "
|
||||
"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<return_code>\" [\"<post_action>\"]]]]]] "
|
||||
"|| addinput [<hook>] || input|output|recreate <name> || set <name> <option> "
|
||||
"<value> || rename|copy <name> <new_name> || enable|disable|toggle [<name>|"
|
||||
"<mask> [<name>|<mask>...]] || restart <name>|<mask> [<name>|<mask>...] || "
|
||||
"show <name> || del <name>|<mask> [<name>|<mask>...] || restore <name>|<mask> "
|
||||
"[<name>|<mask>...] || default -yes || monitor [<filter>]"
|
||||
"<name> <hook> [\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" "
|
||||
"[\"<return_code>\" [\"<post_action>\"]]]]]] || addinput [<hook>] || input|"
|
||||
"output|recreate <name> || set <name> <option> <value> || rename|copy <name> "
|
||||
"<new_name> || enable|disable|toggle [<name>|<mask> [<name>|<mask>...]] || "
|
||||
"restart <name>|<mask> [<name>|<mask>...] || show <name> || del <name>|<mask> "
|
||||
"[<name>|<mask>...] || restore <name>|<mask> [<name>|<mask>...] || default -"
|
||||
"yes || monitor [<filter>]"
|
||||
msgstr ""
|
||||
"list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace "
|
||||
"<name> <hook> "
|
||||
"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<return_code>\" [\"<post_action>\"]]]]]] "
|
||||
"|| addinput [<hook>] || input|output|recreate <name> || set <name> <option> "
|
||||
"<value> || rename|copy <name> <new_name> || enable|disable|toggle [<name>|"
|
||||
"<mask> [<name>|<mask>...]] || restart <name>|<mask> [<name>|<mask>...] || "
|
||||
"show <name> || del <name>|<mask> [<name>|<mask>...] || restore <name>|<mask> "
|
||||
"[<name>|<mask>...] || default -yes || monitor [<filter>]"
|
||||
"<name> <hook> [\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" "
|
||||
"[\"<return_code>\" [\"<post_action>\"]]]]]] || addinput [<hook>] || input|"
|
||||
"output|recreate <name> || set <name> <option> <value> || rename|copy <name> "
|
||||
"<new_name> || enable|disable|toggle [<name>|<mask> [<name>|<mask>...]] || "
|
||||
"restart <name>|<mask> [<name>|<mask>...] || show <name> || del <name>|<mask> "
|
||||
"[<name>|<mask>...] || restore <name>|<mask> [<name>|<mask>...] || default -"
|
||||
"yes || monitor [<filter>]"
|
||||
|
||||
msgid "raw[list]: list triggers (without argument, this list is displayed)"
|
||||
msgstr ""
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-05-27 21:44+0200\n"
|
||||
"POT-Creation-Date: 2024-05-29 23:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14746,6 +14746,14 @@ msgid ""
|
||||
"\"weechat\", \"api\""
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"maximum length (in number of chars) of a raw message displayed (0 = display "
|
||||
"whole message); the beginning and end of message is always displayed with at "
|
||||
"the middle: \" (...) \"; for example if the value is 8 and the raw message "
|
||||
"is \"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: \"abcd "
|
||||
"(...) wxyz\""
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for client description"
|
||||
msgstr "color del texto para la descripción del cliente"
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-05-27 21:44+0200\n"
|
||||
"PO-Revision-Date: 2024-05-27 21:45+0200\n"
|
||||
"POT-Creation-Date: 2024-05-29 23:01+0200\n"
|
||||
"PO-Revision-Date: 2024-05-29 23:02+0200\n"
|
||||
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: fr\n"
|
||||
@@ -15502,6 +15502,19 @@ msgstr ""
|
||||
"relai qui utilisent un de ces protocoles (liste séparée par des virfules) ; "
|
||||
"protocoles autorisés : \"irc\", \"weechat\", \"api\""
|
||||
|
||||
msgid ""
|
||||
"maximum length (in number of chars) of a raw message displayed (0 = display "
|
||||
"whole message); the beginning and end of message is always displayed with at "
|
||||
"the middle: \" (...) \"; for example if the value is 8 and the raw message "
|
||||
"is \"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: \"abcd "
|
||||
"(...) wxyz\""
|
||||
msgstr ""
|
||||
"longueur maximale (en nombre de caractères) d'un message brut affiché (0 = "
|
||||
"afficher le message entier) ; le début et la fin du message est toujours "
|
||||
"affichée avec au milieu : \" (...) \" ; par exemple si la valeur est 8 et "
|
||||
"le message brut est \"abcdefghijklmnopqrstuvwxyz\", alors le message affiché "
|
||||
"est : \"abcd (...) wxyz\""
|
||||
|
||||
msgid "text color for client description"
|
||||
msgstr "couleur du texte pour la description du client"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-05-27 21:44+0200\n"
|
||||
"POT-Creation-Date: 2024-05-29 23:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -13805,6 +13805,14 @@ msgid ""
|
||||
"\"weechat\", \"api\""
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"maximum length (in number of chars) of a raw message displayed (0 = display "
|
||||
"whole message); the beginning and end of message is always displayed with at "
|
||||
"the middle: \" (...) \"; for example if the value is 8 and the raw message "
|
||||
"is \"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: \"abcd "
|
||||
"(...) wxyz\""
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for client description"
|
||||
msgstr "információs pult határolóinak színe"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-05-27 21:44+0200\n"
|
||||
"POT-Creation-Date: 2024-05-29 23:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14784,6 +14784,14 @@ msgid ""
|
||||
"\"weechat\", \"api\""
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"maximum length (in number of chars) of a raw message displayed (0 = display "
|
||||
"whole message); the beginning and end of message is always displayed with at "
|
||||
"the middle: \" (...) \"; for example if the value is 8 and the raw message "
|
||||
"is \"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: \"abcd "
|
||||
"(...) wxyz\""
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for client description"
|
||||
msgstr "colore del testo per la descrizione del client"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-05-27 21:44+0200\n"
|
||||
"POT-Creation-Date: 2024-05-29 23:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
|
||||
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
|
||||
@@ -15221,6 +15221,14 @@ msgid ""
|
||||
"\"weechat\", \"api\""
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"maximum length (in number of chars) of a raw message displayed (0 = display "
|
||||
"whole message); the beginning and end of message is always displayed with at "
|
||||
"the middle: \" (...) \"; for example if the value is 8 and the raw message "
|
||||
"is \"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: \"abcd "
|
||||
"(...) wxyz\""
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for client description"
|
||||
msgstr "クライアント説明用のテキスト色"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-05-27 21:44+0200\n"
|
||||
"POT-Creation-Date: 2024-05-29 23:01+0200\n"
|
||||
"PO-Revision-Date: 2024-05-25 13:34+0200\n"
|
||||
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -15083,6 +15083,14 @@ msgstr ""
|
||||
"używających jednego z tych protokołów (lista oddzielona przecinkami); "
|
||||
"dozwolone protokoły: „irc”, „weechat”, „api”"
|
||||
|
||||
msgid ""
|
||||
"maximum length (in number of chars) of a raw message displayed (0 = display "
|
||||
"whole message); the beginning and end of message is always displayed with at "
|
||||
"the middle: \" (...) \"; for example if the value is 8 and the raw message "
|
||||
"is \"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: \"abcd "
|
||||
"(...) wxyz\""
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for client description"
|
||||
msgstr "kolor tekstu dla opisu klienta"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-05-27 21:44+0200\n"
|
||||
"POT-Creation-Date: 2024-05-29 23:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
|
||||
"Language-Team: Portuguese <>\n"
|
||||
@@ -15133,6 +15133,14 @@ msgid ""
|
||||
"\"weechat\", \"api\""
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"maximum length (in number of chars) of a raw message displayed (0 = display "
|
||||
"whole message); the beginning and end of message is always displayed with at "
|
||||
"the middle: \" (...) \"; for example if the value is 8 and the raw message "
|
||||
"is \"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: \"abcd "
|
||||
"(...) wxyz\""
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for client description"
|
||||
msgstr "cor do texto da descrição do cliente"
|
||||
|
||||
|
||||
+9
-1
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-05-27 21:44+0200\n"
|
||||
"POT-Creation-Date: 2024-05-29 23:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -14256,6 +14256,14 @@ msgid ""
|
||||
"\"weechat\", \"api\""
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"maximum length (in number of chars) of a raw message displayed (0 = display "
|
||||
"whole message); the beginning and end of message is always displayed with at "
|
||||
"the middle: \" (...) \"; for example if the value is 8 and the raw message "
|
||||
"is \"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: \"abcd "
|
||||
"(...) wxyz\""
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for client description"
|
||||
msgstr "cor do texto para delimitadores de tempo"
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-05-27 21:44+0200\n"
|
||||
"POT-Creation-Date: 2024-05-29 23:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -13859,6 +13859,14 @@ msgid ""
|
||||
"\"weechat\", \"api\""
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"maximum length (in number of chars) of a raw message displayed (0 = display "
|
||||
"whole message); the beginning and end of message is always displayed with at "
|
||||
"the middle: \" (...) \"; for example if the value is 8 and the raw message "
|
||||
"is \"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: \"abcd "
|
||||
"(...) wxyz\""
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for client description"
|
||||
msgstr "цвет разделителей информационной панели"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-05-27 21:44+0200\n"
|
||||
"POT-Creation-Date: 2024-05-29 23:01+0200\n"
|
||||
"PO-Revision-Date: 2024-05-07 14:00+0400\n"
|
||||
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -15071,6 +15071,14 @@ msgstr ""
|
||||
"користећи један од следећих протокола (листа раздвојена запетама); дозвољени "
|
||||
"протоколи: „irc”, „weechat”, „api”"
|
||||
|
||||
msgid ""
|
||||
"maximum length (in number of chars) of a raw message displayed (0 = display "
|
||||
"whole message); the beginning and end of message is always displayed with at "
|
||||
"the middle: \" (...) \"; for example if the value is 8 and the raw message "
|
||||
"is \"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: \"abcd "
|
||||
"(...) wxyz\""
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for client description"
|
||||
msgstr "боја текста за опис клијента"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-05-27 21:44+0200\n"
|
||||
"POT-Creation-Date: 2024-05-29 23:01+0200\n"
|
||||
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
|
||||
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -15394,6 +15394,14 @@ msgid ""
|
||||
"\"weechat\", \"api\""
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"maximum length (in number of chars) of a raw message displayed (0 = display "
|
||||
"whole message); the beginning and end of message is always displayed with at "
|
||||
"the middle: \" (...) \"; for example if the value is 8 and the raw message "
|
||||
"is \"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: \"abcd "
|
||||
"(...) wxyz\""
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for client description"
|
||||
msgstr "istemci açıklaması için metin rengi"
|
||||
|
||||
|
||||
+9
-1
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2024-05-27 21:44+0200\n"
|
||||
"POT-Creation-Date: 2024-05-29 23:01+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"
|
||||
@@ -12636,6 +12636,14 @@ msgid ""
|
||||
"\"weechat\", \"api\""
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"maximum length (in number of chars) of a raw message displayed (0 = display "
|
||||
"whole message); the beginning and end of message is always displayed with at "
|
||||
"the middle: \" (...) \"; for example if the value is 8 and the raw message "
|
||||
"is \"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: \"abcd "
|
||||
"(...) wxyz\""
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for client description"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -59,6 +59,7 @@ struct t_config_section *relay_config_section_remote = NULL;
|
||||
struct t_config_option *relay_config_look_auto_open_buffer = NULL;
|
||||
struct t_config_option *relay_config_look_display_clients = NULL;
|
||||
struct t_config_option *relay_config_look_raw_messages = NULL;
|
||||
struct t_config_option *relay_config_look_raw_messages_max_length = NULL;
|
||||
|
||||
/* relay config, color section */
|
||||
|
||||
@@ -1455,6 +1456,17 @@ relay_config_init ()
|
||||
"buffer)"),
|
||||
NULL, 0, 65535, "256", NULL, 0,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
relay_config_look_raw_messages_max_length = weechat_config_new_option (
|
||||
relay_config_file, relay_config_section_look,
|
||||
"raw_messages_max_length", "integer",
|
||||
N_("maximum length (in number of chars) of a raw message displayed "
|
||||
"(0 = display whole message); the beginning and end of message "
|
||||
"is always displayed with at the middle: \" (...) \"; "
|
||||
"for example if the value is 8 and the raw message is "
|
||||
"\"abcdefghijklmnopqrstuvwxyz\", then the raw message displayed is: "
|
||||
"\"abcd (...) wxyz\""),
|
||||
NULL, 0, INT_MAX, "4096", NULL, 0,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
/* section color */
|
||||
|
||||
@@ -34,6 +34,7 @@ extern struct t_config_section *relay_config_section_path;
|
||||
|
||||
extern struct t_config_option *relay_config_look_auto_open_buffer;
|
||||
extern struct t_config_option *relay_config_look_raw_messages;
|
||||
extern struct t_config_option *relay_config_look_raw_messages_max_length;
|
||||
|
||||
extern struct t_config_option *relay_config_color_client;
|
||||
extern struct t_config_option *relay_config_color_status[];
|
||||
|
||||
@@ -293,6 +293,72 @@ relay_raw_convert_text_message (const char *data)
|
||||
return buf2;
|
||||
}
|
||||
|
||||
/*
|
||||
* Cuts a raw message in the middle using max_length: half of max length is
|
||||
* displayed at beginning, then " (...) " then half of max length at the end.
|
||||
*
|
||||
* Note: result must be freed after use.
|
||||
*/
|
||||
|
||||
char *
|
||||
relay_raw_message_cut (const char *data, int max_length)
|
||||
{
|
||||
int length, chars_start, chars_end, count;
|
||||
const char *ptr_end;
|
||||
char **result;
|
||||
|
||||
if (!data || (max_length < 0))
|
||||
return NULL;
|
||||
|
||||
if (max_length == 0)
|
||||
return strdup (data);
|
||||
|
||||
length = weechat_utf8_strlen (data);
|
||||
if (length <= max_length)
|
||||
return strdup (data);
|
||||
|
||||
chars_end = max_length / 2;
|
||||
chars_start = max_length - chars_end;
|
||||
|
||||
result = weechat_string_dyn_alloc (max_length);
|
||||
if (!result)
|
||||
return NULL;
|
||||
|
||||
if (chars_start > 0)
|
||||
{
|
||||
ptr_end = weechat_utf8_add_offset (data, chars_start);
|
||||
if (!ptr_end)
|
||||
{
|
||||
weechat_string_dyn_free (result, 1);
|
||||
return NULL;
|
||||
}
|
||||
weechat_string_dyn_concat (result, data, ptr_end - data);
|
||||
}
|
||||
if (*result[0])
|
||||
weechat_string_dyn_concat (result, " ", -1);
|
||||
weechat_string_dyn_concat (result, "(...)", -1);
|
||||
if (chars_end > 0)
|
||||
{
|
||||
ptr_end = data + strlen (data);
|
||||
count = 0;
|
||||
while (count < chars_end)
|
||||
{
|
||||
ptr_end = weechat_utf8_prev_char (data, ptr_end);
|
||||
if (!ptr_end)
|
||||
{
|
||||
weechat_string_dyn_free (result, 1);
|
||||
return NULL;
|
||||
}
|
||||
count++;
|
||||
}
|
||||
if (*result[0])
|
||||
weechat_string_dyn_concat (result, " ", -1);
|
||||
weechat_string_dyn_concat (result, ptr_end, -1);
|
||||
}
|
||||
|
||||
return weechat_string_dyn_free (result, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds a new raw message to list.
|
||||
*/
|
||||
@@ -303,8 +369,9 @@ relay_raw_message_add (enum t_relay_msg_type msg_type,
|
||||
const char *peer_id,
|
||||
const char *data, int data_size)
|
||||
{
|
||||
char *raw_data, *buf, prefix[1024], prefix_arrow[16];
|
||||
int length;
|
||||
char *raw_data, *raw_data_cut, *buf, prefix[1024], prefix_arrow[16];
|
||||
const char *ptr_raw_data;
|
||||
int max_length;
|
||||
struct t_relay_raw_message *new_raw_message;
|
||||
struct timeval tv_now;
|
||||
|
||||
@@ -350,15 +417,18 @@ relay_raw_message_add (enum t_relay_msg_type msg_type,
|
||||
(peer_id && peer_id[0]) ? peer_id : "");
|
||||
}
|
||||
|
||||
length = strlen (relay_msg_type_string[msg_type]) + strlen (raw_data) + 1;
|
||||
buf = malloc (length);
|
||||
if (buf)
|
||||
raw_data_cut = NULL;
|
||||
ptr_raw_data = raw_data;
|
||||
max_length = weechat_config_integer (relay_config_look_raw_messages_max_length);
|
||||
if (max_length > 0)
|
||||
{
|
||||
snprintf (buf, length, "%s%s",
|
||||
relay_msg_type_string[msg_type],
|
||||
raw_data);
|
||||
raw_data_cut = relay_raw_message_cut (raw_data, max_length);
|
||||
ptr_raw_data = raw_data_cut;
|
||||
}
|
||||
|
||||
weechat_asprintf (&buf, "%s%s",
|
||||
relay_msg_type_string[msg_type],
|
||||
(ptr_raw_data) ? ptr_raw_data : "");
|
||||
free (raw_data_cut);
|
||||
gettimeofday (&tv_now, NULL);
|
||||
new_raw_message = relay_raw_message_add_to_list (
|
||||
tv_now.tv_sec,
|
||||
|
||||
@@ -159,6 +159,7 @@ if (ENABLE_RELAY)
|
||||
list(APPEND LIB_WEECHAT_UNIT_TESTS_PLUGINS_SRC
|
||||
unit/plugins/relay/test-relay-auth.cpp
|
||||
unit/plugins/relay/test-relay-http.cpp
|
||||
unit/plugins/relay/test-relay-raw.cpp
|
||||
unit/plugins/relay/test-relay-remote.cpp
|
||||
unit/plugins/relay/test-relay-websocket.cpp
|
||||
unit/plugins/relay/irc/test-relay-irc.cpp
|
||||
|
||||
@@ -0,0 +1,190 @@
|
||||
/*
|
||||
* test-relay-raw.cpp - test raw messages functions
|
||||
*
|
||||
* Copyright (C) 2024 Sébastien Helleu <flashcode@flashtux.org>
|
||||
*
|
||||
* This file is part of WeeChat, the extensible chat client.
|
||||
*
|
||||
* WeeChat is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* WeeChat is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "CppUTest/TestHarness.h"
|
||||
|
||||
#include "tests/tests.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <string.h>
|
||||
#include "src/plugins/relay/relay.h"
|
||||
#include "src/plugins/relay/relay-raw.h"
|
||||
|
||||
char *relay_raw_message_cut (const char *data, int max_length);
|
||||
}
|
||||
|
||||
|
||||
TEST_GROUP(RelayRaw)
|
||||
{
|
||||
};
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_raw_message_print
|
||||
*/
|
||||
|
||||
TEST(RelayRaw, MessagePrint)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_raw_open
|
||||
*/
|
||||
|
||||
TEST(RelayRaw, Open)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_raw_message_free
|
||||
*/
|
||||
|
||||
TEST(RelayRaw, MessageFree)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_raw_message_free_all
|
||||
*/
|
||||
|
||||
TEST(RelayRaw, MessageFreeAll)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_raw_message_remove_old
|
||||
*/
|
||||
|
||||
TEST(RelayRaw, MessageRemoveOld)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_raw_message_add_to_list
|
||||
*/
|
||||
|
||||
TEST(RelayRaw, MessageAddToList)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_raw_convert_binary_message
|
||||
*/
|
||||
|
||||
TEST(RelayRaw, ConvertBinaryMessage)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_raw_convert_text_message
|
||||
*/
|
||||
|
||||
TEST(RelayRaw, ConvertTextMessage)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_raw_message_cut
|
||||
*/
|
||||
|
||||
TEST(RelayRaw, MessageCut)
|
||||
{
|
||||
char *str;
|
||||
|
||||
POINTERS_EQUAL(NULL, relay_raw_message_cut (NULL, -1));
|
||||
POINTERS_EQUAL(NULL, relay_raw_message_cut (NULL, 0));
|
||||
POINTERS_EQUAL(NULL, relay_raw_message_cut ("test", -1));
|
||||
|
||||
WEE_TEST_STR("", relay_raw_message_cut ("", 0));
|
||||
WEE_TEST_STR("this is a test", relay_raw_message_cut ("this is a test", 0));
|
||||
WEE_TEST_STR("t (...)", relay_raw_message_cut ("this is a test", 1));
|
||||
WEE_TEST_STR("t (...) t", relay_raw_message_cut ("this is a test", 2));
|
||||
WEE_TEST_STR("th (...) t", relay_raw_message_cut ("this is a test", 3));
|
||||
WEE_TEST_STR("th (...) st", relay_raw_message_cut ("this is a test", 4));
|
||||
WEE_TEST_STR("thi (...) st", relay_raw_message_cut ("this is a test", 5));
|
||||
WEE_TEST_STR("thi (...) est", relay_raw_message_cut ("this is a test", 6));
|
||||
WEE_TEST_STR("this (...) est", relay_raw_message_cut ("this is a test", 7));
|
||||
WEE_TEST_STR("this (...) test", relay_raw_message_cut ("this is a test", 8));
|
||||
WEE_TEST_STR("this (...) test", relay_raw_message_cut ("this is a test", 9));
|
||||
WEE_TEST_STR("this (...) test", relay_raw_message_cut ("this is a test", 10));
|
||||
WEE_TEST_STR("this i (...) test", relay_raw_message_cut ("this is a test", 11));
|
||||
WEE_TEST_STR("this i (...) a test", relay_raw_message_cut ("this is a test", 12));
|
||||
WEE_TEST_STR("this is (...) a test", relay_raw_message_cut ("this is a test", 13));
|
||||
WEE_TEST_STR("this is a test", relay_raw_message_cut ("this is a test", 14));
|
||||
WEE_TEST_STR("this is a test", relay_raw_message_cut ("this is a test", 15));
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_raw_message_add
|
||||
*/
|
||||
|
||||
TEST(RelayRaw, MessageAdd)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_raw_print_client
|
||||
*/
|
||||
|
||||
TEST(RelayRaw, PrintClient)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_raw_print_remote
|
||||
*/
|
||||
|
||||
TEST(RelayRaw, PrintRemote)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* relay_raw_add_to_infolist
|
||||
*/
|
||||
|
||||
TEST(RelayRaw, AddToInfolist)
|
||||
{
|
||||
/* TODO: write tests */
|
||||
}
|
||||
Reference in New Issue
Block a user