summaryrefslogtreecommitdiff
path: root/doc/en/weechat_scripting.en.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/en/weechat_scripting.en.adoc')
-rw-r--r--doc/en/weechat_scripting.en.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/en/weechat_scripting.en.adoc b/doc/en/weechat_scripting.en.adoc
index 34b26fe96..71a593ef1 100644
--- a/doc/en/weechat_scripting.en.adoc
+++ b/doc/en/weechat_scripting.en.adoc
@@ -212,11 +212,11 @@ Functions are called with `+weechat_xxx(arg1, arg2, ...);+`.
All WeeChat scripts must "register" themselves to WeeChat, and this must be
first WeeChat function called in script.
-Prototype:
+Prototype (Python):
[source,python]
----
-weechat.register(name, author, version, license, description, shutdown_function, charset)
+def register(name: str, author: str, version: str, license: str, description: str, shutdown_function: str, charset: str) -> int: ...
----
Arguments: