summaryrefslogtreecommitdiff
path: root/doc/de
diff options
context:
space:
mode:
Diffstat (limited to 'doc/de')
-rw-r--r--doc/de/autogen/plugin_api/infos_hashtable.asciidoc2
-rw-r--r--doc/de/weechat_scripting.de.asciidoc70
-rw-r--r--doc/de/weechat_user.de.asciidoc4
3 files changed, 68 insertions, 8 deletions
diff --git a/doc/de/autogen/plugin_api/infos_hashtable.asciidoc b/doc/de/autogen/plugin_api/infos_hashtable.asciidoc
index 97f6aa408..f0374c2f2 100644
--- a/doc/de/autogen/plugin_api/infos_hashtable.asciidoc
+++ b/doc/de/autogen/plugin_api/infos_hashtable.asciidoc
@@ -6,7 +6,7 @@
|===
| Erweiterung | Name | Beschreibung | Hashtable (Eingabe) | Hashtable (Ausgabe)
-| irc | irc_message_parse | Parse eine IRC Nachricht | "message": IRC Nachricht, "server": Servername (optional) | "tags": Tags, "message_without_tags": Nachrichten ohne Tags, "nick": Nick, "host": Host, "command": Befehl, "channel": Channel, "arguments": Argumente (schließt Channel ein)
+| irc | irc_message_parse | Parse eine IRC Nachricht | "message": IRC Nachricht, "server": Servername (optional) | "tags": tags, "message_without_tags": message without the tags, "nick": nick, "host": host, "command": command, "channel": channel, "arguments": arguments (includes channel), "text": text (for example user message), "pos_text": index of text in message ("-1" if no text found)
| irc | irc_message_split | dient zum Aufteilen einer überlangen IRC Nachricht (in maximal 512 Bytes große Nachrichten) | "message": IRC Nachricht, "server": Servername (optional) | "msg1" ... "msgN": Nachrichten die versendet werden sollen (ohne abschließendes "\r\n"), "args1" ... "argsN": Argumente für Nachrichten, "count": Anzahl der Nachrichten
diff --git a/doc/de/weechat_scripting.de.asciidoc b/doc/de/weechat_scripting.de.asciidoc
index 7b191e6f7..dae199a7c 100644
--- a/doc/de/weechat_scripting.de.asciidoc
+++ b/doc/de/weechat_scripting.de.asciidoc
@@ -918,16 +918,72 @@ Eine fehlerhafte Nachricht kann WeeChat zum Absturz bringen oder andere ernsthaf
_Neu seit Version 0.3.4._
-Man kann IRC Nachrichten mittels einer info_hashtable mit dem Namen "irc_message_parse" parsen.
+Man kann IRC Nachrichten mittels einer info_hashtable mit dem Namen
+"irc_message_parse" parsen.
+
+// TRANSLATION MISSING
+The result is a hashtable with following keys
+(the example values are built with this message:
+`@time=2015-06-27T16:40:35.000Z :nick!user@host PRIVMSG #weechat :hello!`):
+
+[width="100%",cols="1,^2,10,8",options="header"]
+|===
+| Key | WeeChat version | Description | Example
+
+| tags | ≥ 0.4.0 |
+ The tags in message (can be empty) |
+ `time=2015-06-27T16:40:35.000Z`
+
+| message_without_tags | ≥ 0.4.0 |
+ The message without the tags (the same as message if there are no tags) |
+ `:nick!user@host PRIVMSG #weechat :hello!`
+
+| nick | ≥ 0.3.4 |
+ The origin nick |
+ `nick`
+
+| host | ≥ 0.3.4 |
+ The origin host (includes the nick) |
+ `nick!user@host`
+
+| command | ≥ 0.3.4 |
+ The command ('PRIVMSG', 'NOTICE', ...) |
+ `PRIVMSG`
+
+| channel | ≥ 0.3.4 |
+ The target channel |
+ `#weechat`
+
+| arguments | ≥ 0.3.4 |
+ The command arguments (includes the channel) |
+ `#weechat :hello!`
+
+| text | ≥ 1.3 |
+ The text (for example user message) |
+ `hello!`
+
+| pos_text | ≥ 1.3 |
+ The index of text in message ("-1" if text was not found) |
+ `65`
+|===
[source,python]
----
-dict = weechat.info_get_hashtable("irc_message_parse",
- {"message": ":nick!user@host PRIVMSG #weechat :message here"})
-weechat.prnt("", "dict: %s" % dict)
-
-# output:
-# dict: {'nick': 'nick', 'host': 'nick!user@host', 'command': 'PRIVMSG', 'arguments': '#weechat :message here', 'channel': '#weechat'}
+dict = weechat.info_get_hashtable(
+ "irc_message_parse",
+ {"message": "@time=2015-06-27T16:40:35.000Z :nick!user@host PRIVMSG #weechat :hello!"})
+
+# dict == {
+# "tags": "time=2015-06-27T16:40:35.000Z",
+# "message_without_tags": ":nick!user@host PRIVMSG #weechat :hello!",
+# "nick": "nick",
+# "host": "nick!user@host",
+# "command": "PRIVMSG",
+# "channel": "#weechat",
+# "arguments": "#weechat :hello!",
+# "text": "hello!",
+# "pos_text": "65",
+# }
----
[[infos]]
diff --git a/doc/de/weechat_user.de.asciidoc b/doc/de/weechat_user.de.asciidoc
index de3b81674..423ea7edf 100644
--- a/doc/de/weechat_user.de.asciidoc
+++ b/doc/de/weechat_user.de.asciidoc
@@ -3320,6 +3320,10 @@ und die Daten in einer Hashtable gesichert:
| command | string | IRC Befehl (Beispiel: "PRIVMSG", "NOTICE", ...)
| channel | string | IRC Channel
| arguments | string | Argumente des Befehls (Beinhaltet Wert von 'channel')
+// TRANSLATION MISSING
+| text | string | Text (for example user message)
+// TRANSLATION MISSING
+| pos_text | string | The index of text in message ("-1" if text was not found)
|===
// TRANSLATION MISSING