mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 18:25:41 +02:00
core: add new plugin "script" (scripts manager, replacing scripts weeget.py and script.pl)
This commit is contained in:
+24
-25
@@ -63,31 +63,30 @@ ELSE(DEFINED INCLUDEDIR)
|
||||
SET(INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include/${PROJECT_NAME})
|
||||
ENDIF(DEFINED INCLUDEDIR)
|
||||
|
||||
OPTION(ENABLE_NCURSES "Enable Ncurses interface" ON)
|
||||
OPTION(ENABLE_GTK "Enable GTK interface" OFF)
|
||||
OPTION(ENABLE_NLS "Enable Native Language Support" ON)
|
||||
OPTION(ENABLE_GCRYPT "Enable libgcrypt support" ON)
|
||||
OPTION(ENABLE_GNUTLS "Enable SSLv3/TLS support" ON)
|
||||
OPTION(ENABLE_LARGEFILE "Enable Large File Support" ON)
|
||||
OPTION(ENABLE_ZLIB "Enable Zlib support" ON)
|
||||
OPTION(ENABLE_ALIAS "Enable Alias plugin" ON)
|
||||
OPTION(ENABLE_ASPELL "Enable Aspell plugin" ON)
|
||||
OPTION(ENABLE_CHARSET "Enable Charset plugin" ON)
|
||||
OPTION(ENABLE_DEMO "Enable Demo plugin" OFF)
|
||||
OPTION(ENABLE_FIFO "Enable FIFO plugin" ON)
|
||||
OPTION(ENABLE_IRC "Enable IRC plugin" ON)
|
||||
OPTION(ENABLE_LOGGER "Enable Logger plugin" ON)
|
||||
OPTION(ENABLE_RELAY "Enable Relay plugin" ON)
|
||||
OPTION(ENABLE_RMODIFIER "Enable Rmodifier plugin" ON)
|
||||
OPTION(ENABLE_SCRIPTS "Enable script plugins" ON)
|
||||
OPTION(ENABLE_PERL "Enable Perl scripting language" ON)
|
||||
OPTION(ENABLE_PYTHON "Enable Python scripting language" ON)
|
||||
OPTION(ENABLE_RUBY "Enable Ruby scripting language" ON)
|
||||
OPTION(ENABLE_LUA "Enable Lua scripting language" ON)
|
||||
OPTION(ENABLE_TCL "Enable Tcl scripting language" ON)
|
||||
OPTION(ENABLE_GUILE "Enable Scheme (guile) scripting language" ON)
|
||||
OPTION(ENABLE_XFER "Enable Xfer plugin" ON)
|
||||
OPTION(ENABLE_DOC "Enable Documentation" ON)
|
||||
OPTION(ENABLE_NCURSES "Enable Ncurses interface" ON)
|
||||
OPTION(ENABLE_GTK "Enable GTK interface" OFF)
|
||||
OPTION(ENABLE_NLS "Enable Native Language Support" ON)
|
||||
OPTION(ENABLE_GNUTLS "Enable SSLv3/TLS support" ON)
|
||||
OPTION(ENABLE_LARGEFILE "Enable Large File Support" ON)
|
||||
OPTION(ENABLE_ALIAS "Enable Alias plugin" ON)
|
||||
OPTION(ENABLE_ASPELL "Enable Aspell plugin" ON)
|
||||
OPTION(ENABLE_CHARSET "Enable Charset plugin" ON)
|
||||
OPTION(ENABLE_DEMO "Enable Demo plugin" OFF)
|
||||
OPTION(ENABLE_FIFO "Enable FIFO plugin" ON)
|
||||
OPTION(ENABLE_IRC "Enable IRC plugin" ON)
|
||||
OPTION(ENABLE_LOGGER "Enable Logger plugin" ON)
|
||||
OPTION(ENABLE_RELAY "Enable Relay plugin" ON)
|
||||
OPTION(ENABLE_RMODIFIER "Enable Rmodifier plugin" ON)
|
||||
OPTION(ENABLE_SCRIPT "Enable Script plugin (scripts manager)" ON)
|
||||
OPTION(ENABLE_SCRIPTS "Enable script plugins (perl, python, ...)" ON)
|
||||
OPTION(ENABLE_PERL "Enable Perl scripting language" ON)
|
||||
OPTION(ENABLE_PYTHON "Enable Python scripting language" ON)
|
||||
OPTION(ENABLE_RUBY "Enable Ruby scripting language" ON)
|
||||
OPTION(ENABLE_LUA "Enable Lua scripting language" ON)
|
||||
OPTION(ENABLE_TCL "Enable Tcl scripting language" ON)
|
||||
OPTION(ENABLE_GUILE "Enable Scheme (guile) scripting language" ON)
|
||||
OPTION(ENABLE_XFER "Enable Xfer plugin" ON)
|
||||
OPTION(ENABLE_DOC "Enable Documentation" ON)
|
||||
|
||||
IF(NOT DEFINED WEECHAT_HOME OR "${WEECHAT_HOME}" STREQUAL "")
|
||||
SET(WEECHAT_HOME "~/.weechat")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
WeeChat ChangeLog
|
||||
=================
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
v0.3.9-dev, 2012-08-08
|
||||
v0.3.9-dev, 2012-08-14
|
||||
|
||||
|
||||
Version 0.3.9 (under dev!)
|
||||
@@ -73,6 +73,8 @@ Version 0.3.9 (under dev!)
|
||||
* relay: fix freeze when writing on relay socket (use non-blocking sockets in
|
||||
relay for irc and weechat protocols) (bug #36655)
|
||||
* ruby: detect ruby version 1.9.3 in cmake and autotools
|
||||
* script: new plugin "script" (scripts manager, replacing scripts weeget.py and
|
||||
script.pl)
|
||||
* scripts: add signals for scripts loaded/unloaded/installed/removed
|
||||
* scripts: add hdata with list of scripts for each language
|
||||
* scripts: fix deletion of configuration files when script is unloaded
|
||||
|
||||
+40
-55
File diff suppressed because it is too large
Load Diff
@@ -56,6 +56,12 @@
|
||||
|
||||
| ruby | ruby_script | Liste der Skripten
|
||||
|
||||
| script | script_files | files in script directories
|
||||
|
||||
| script | script_scripts | list of scripts in repository
|
||||
|
||||
| script | script_scripts_installed | list of scripts installed (from repository)
|
||||
|
||||
| tcl | tcl_script | Liste der Skripten
|
||||
|
||||
| weechat | bars_names | Namen der Infobars
|
||||
|
||||
@@ -257,6 +257,33 @@
|
||||
'last_script' +
|
||||
'scripts'
|
||||
|
||||
| script | script_script | scripts from repository |
|
||||
'name' (string) +
|
||||
'name_with_extension' (string) +
|
||||
'language' (integer) +
|
||||
'author' (string) +
|
||||
'mail' (string) +
|
||||
'version' (string) +
|
||||
'license' (string) +
|
||||
'description' (string) +
|
||||
'tags' (string) +
|
||||
'requirements' (string) +
|
||||
'min_weechat' (string) +
|
||||
'max_weechat' (string) +
|
||||
'md5sum' (string) +
|
||||
'url' (string) +
|
||||
'popularity' (integer) +
|
||||
'date_added' (time) +
|
||||
'date_updated' (time) +
|
||||
'status' (integer) +
|
||||
'version_loaded' (string) +
|
||||
'displayed' (integer) +
|
||||
'install_order' (integer) +
|
||||
'prev_script' (pointer, hdata: 'script_script') +
|
||||
'next_script' (pointer, hdata: 'script_script') |
|
||||
'last_repo_script' +
|
||||
'repo_scripts'
|
||||
|
||||
| tcl | tcl_script | Liste der Skripten |
|
||||
'filename' (string) +
|
||||
'interpreter' (pointer) +
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
|
||||
| ruby | ruby_script | Liste der Skripten | Skript Pointer (optional) | Name des Skriptes (darf mit einem "*" als Platzhalter beginnen oder enden) (optional)
|
||||
|
||||
| script | script_script | Liste der Skripten | Skript Pointer (optional) | script name with extension (can start or end with "*" as wildcard) (optional)
|
||||
|
||||
| tcl | tcl_script | Liste der Skripten | Skript Pointer (optional) | Name des Skriptes (darf mit einem "*" als Platzhalter beginnen oder enden) (optional)
|
||||
|
||||
| weechat | bar | Auflistung der Bars | Bar Pointer (optional) | Bar Name (darf mit einem "*" als Platzhalter beginnen oder enden) (optional)
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
[[command_script_script]]
|
||||
[command]*`script`* WeeChat scripts manager::
|
||||
........................................
|
||||
/script list
|
||||
show <script>
|
||||
load|unload <script> [<script>...]
|
||||
install|remove|hold <script> [<script>...]
|
||||
upgrade
|
||||
update
|
||||
|
||||
list: list loaded scripts (all languages)
|
||||
show: show detailed info about a script
|
||||
load: load script(s)
|
||||
unload: unload script(s)
|
||||
install: install/upgrade script(s)
|
||||
remove: remove script(s)
|
||||
hold: hold/unhold script(s) (a script held will not be upgraded any more and cannot be removed)
|
||||
upgrade: upgrade all installed scripts which are obsolete (new version available)
|
||||
update: update local scripts cache
|
||||
|
||||
Without argument, this command opens a buffer with list of scripts.
|
||||
|
||||
On script buffer, the possible status for each script are:
|
||||
* i H r N
|
||||
| | | | |
|
||||
| | | | obsolete (new version available)
|
||||
| | | running (loaded)
|
||||
| | held
|
||||
| installed
|
||||
popular script
|
||||
|
||||
Keys on script buffer:
|
||||
alt+i install script
|
||||
alt+r remove script
|
||||
alt+l load script
|
||||
alt+u unload script
|
||||
alt+h (un)hold script
|
||||
|
||||
Input allowed on script buffer:
|
||||
q close buffer
|
||||
r refresh buffer
|
||||
s:x,y sort buffer using keys x and y (see /help script.look.sort)
|
||||
s: reset sort (use default sort)
|
||||
word(s) filter scripts: search word(s) in scripts (description, tags, ...)
|
||||
* remove filter
|
||||
........................................
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -241,21 +241,12 @@ erhältlich (z.B. weechat-plugins).
|
||||
Erweiterungen werden -sofern welche gefunden worden sind- automatisch geladen (Bitte beachte
|
||||
die Dokumentation zum Laden/Entladen von Erweiterungen oder Skripten).
|
||||
|
||||
Einige Erweiterungen ermöglichen die Verwendung von Skripten in WeeChat (unterstützte
|
||||
Sprachen sind Perl, Python, Ruby, Lua und TCL). Diese Erweiterungen müssen mit dem
|
||||
Befehl `/plugin` geladen werden und verfügen ihrerseits über Befehle wie z.B.
|
||||
`/perl` um Perl-Skripten zu laden.
|
||||
Viele externe Skripten (der Mitarbeitenden) sind für WeeChat verfügbar, siehe:
|
||||
http://www.weechat.org/scripts
|
||||
|
||||
Viele externe Erweiterungen/Skripten (der Mitarbeitenden) sind für WeeChat verfügbar,
|
||||
siehe: http://www.weechat.org/scripts
|
||||
|
||||
Der einfachste Weg um Skripten zu installieren ist die Verwendung von 'weeget.py':
|
||||
|
||||
. `mkdir -p ~/.weechat/python/autoload`
|
||||
. `cd ~/.weechat/python/autoload`
|
||||
. `wget http://weechat.org/files/scripts/weeget.py`
|
||||
. laden des Skript: `/python autoload`
|
||||
. Liste der Skripten: `/weeget list` (Hilfe mit: `/help weeget`)
|
||||
// TRANSLATION MISSING
|
||||
You can manage scripts in WeeChat with command `/script` (see `/help script`
|
||||
for more info).
|
||||
|
||||
|
||||
[[more_doc]]
|
||||
|
||||
+46
-26
@@ -91,13 +91,14 @@ welche Pakete optional genutzt werden können.
|
||||
| cmake | | *ja* | zum kompilieren (autotools ist möglich. cmake wird aber empfohlen)
|
||||
| libncursesw5-dev ^(2)^ | | *ja* | ncurses Oberfläche
|
||||
| libcurl4-gnutls-dev | | *ja* | URL Transfer
|
||||
| gettext | | | Internationalisierung (Übersetzung der Mitteilungen; Hauptsprache ist englisch)
|
||||
| libgcrypt11-dev | | | SASL Authentifikation am IRC Server mittels DH-BLOWFISH Methode
|
||||
// TRANSLATION MISSING
|
||||
| zlib1g-dev | | *ja* | compression of packets in relay plugin (weechat protocol), script plugin
|
||||
// TRANSLATION MISSING
|
||||
| libgcrypt11-dev | | *ja* | SASL Authentifikation am IRC Server mittels DH-BLOWFISH Methode, script plugin
|
||||
// TRANSLATION MISSING
|
||||
| libgnutls-dev | ≥ 2.2.0 | | SSL Verbindung zu einem IRC Server, support of SSL in relay plugin
|
||||
| gettext | | | Internationalisierung (Übersetzung der Mitteilungen; Hauptsprache ist englisch)
|
||||
| ca-certificates | | | Zertifikate für SSL Verbindungen
|
||||
// TRANSLATION MISSING
|
||||
| zlib1g-dev | | | compression of packets in relay plugin (weechat protocol)
|
||||
| libaspell-dev | | | aspell Erweiterung
|
||||
| python-dev | ≥ 2.5 ^(3)^ | | python Erweiterung
|
||||
| libperl-dev | | | perl Erweiterung
|
||||
@@ -776,29 +777,32 @@ Tasten für "mouse"-Kontext
|
||||
|
||||
Diese Tasten werden im Kontext "mouse" verwendet, wenn eine Mausfunktion genutzt worden ist.
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[width="100%",cols="^.^3,^.^3,^.^3,.^10,.^8l",options="header"]
|
||||
|========================================
|
||||
| Maustaste | Mausgeste | Bereich | Beschreibung | Befehl
|
||||
| ◾◽◽ | - | Chat | wechselt zum Fenster | /window ${_window_number}
|
||||
| ◾◽◽ | links | Chat | zum vorherigen Buffer springen | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | rechts | Chat | zum nächsten Buffer springen | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | links(lang) | Chat | Switch to first buffer | /window ${_window_number};/buffer 1
|
||||
| ◾◽◽ | rechts(lang) | Chat | wechselt zum letzten Buffer | /window ${_window_number};/input jump_last_buffer
|
||||
| Mausrad ⇑ | - | Chat | einige Zeilen im Verlaufsspeicher des Buffer nach oben blättern | /window scroll_up -window ${_window_number}
|
||||
| Mausrad ⇓ | - | Chat | einige Zeilen im Verlaufsspeicher des Buffer nach unten blättern | /window scroll_down -window ${_window_number}
|
||||
| ◾◽◽ | hoch | Nickliste | Nickliste um eine Seite nach oben blättern | /bar scroll nicklist ${_window_number} -100%
|
||||
| ◾◽◽ | runter | Nickliste | Nickliste um eine Seite nach unten blättern | /bar scroll nicklist ${_window_number} +100%
|
||||
| ◾◽◽ | hoch(lang) | Nickliste | springt zum Anfang der Nickliste | /bar scroll nicklist ${_window_number} b
|
||||
| ◾◽◽ | runter(lang) | Nickliste | springt zum Ende der Nickliste | /bar scroll nicklist ${_window_number} e
|
||||
| ◾◽◽ | - | Nickliste | öffnet privaten Chat mit Nick | /window ${_window_number};/query ${nick}
|
||||
| ◽◽◾ | - | Nickliste | führt einen whois für Nick aus | /window ${_window_number};/whois ${nick}
|
||||
| ◾◽◽ | links | Nickliste | kickt Nick | /window ${_window_number};/kick ${nick}
|
||||
| ◾◽◽ | links(lang) | Nickliste | kickt und verbannt Nick | /window ${_window_number};/kickban ${nick}
|
||||
| ◽◽◾ | links | Nickliste | verbannt Nick | /window ${_window_number};/ban ${nick}
|
||||
| ◽◽◾ | - | Input | fängt ein Mausereignis und fügt dieses in die Befehlszeile ein | /input grab_mouse_area
|
||||
| Mausrad ⇑ | - | jede Bar | blättert Bar um 10% nach oben | /bar scroll ${_bar_name} ${_window_number} -20%
|
||||
| Mausrad ⇓ | - | jede Bar | blättert Bar um 10% nach unten | /bar scroll ${_bar_name} ${_window_number} +20%
|
||||
| ◽◾◽ | - | überall | aktiviert den Cursor-Modus an dieser Position | /cursor go ${_x},${_y}
|
||||
| Maustaste | Mausgeste | Bereich | Beschreibung | Befehl
|
||||
| ◾◽◽ | - | Chat | wechselt zum Fenster | /window ${_window_number}
|
||||
| ◾◽◽ | links | Chat | zum vorherigen Buffer springen | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | rechts | Chat | zum nächsten Buffer springen | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | links(lang) | Chat | Switch to first buffer | /window ${_window_number};/buffer 1
|
||||
| ◾◽◽ | rechts(lang) | Chat | wechselt zum letzten Buffer | /window ${_window_number};/input jump_last_buffer
|
||||
| Mausrad ⇑ | - | Chat | einige Zeilen im Verlaufsspeicher des Buffer nach oben blättern | /window scroll_up -window ${_window_number}
|
||||
| Mausrad ⇓ | - | Chat | einige Zeilen im Verlaufsspeicher des Buffer nach unten blättern | /window scroll_down -window ${_window_number}
|
||||
| Mausrad ⇑ | - | chat (script buffer) | Move 5 lines up in script buffer | /script up 5
|
||||
| Mausrad ⇓ | - | chat (script buffer) | Move 5 lines down in script buffer | /script down 5
|
||||
| ◾◽◽ | hoch | Nickliste | Nickliste um eine Seite nach oben blättern | /bar scroll nicklist ${_window_number} -100%
|
||||
| ◾◽◽ | runter | Nickliste | Nickliste um eine Seite nach unten blättern | /bar scroll nicklist ${_window_number} +100%
|
||||
| ◾◽◽ | hoch(lang) | Nickliste | springt zum Anfang der Nickliste | /bar scroll nicklist ${_window_number} b
|
||||
| ◾◽◽ | runter(lang) | Nickliste | springt zum Ende der Nickliste | /bar scroll nicklist ${_window_number} e
|
||||
| ◾◽◽ | - | Nickliste | öffnet privaten Chat mit Nick | /window ${_window_number};/query ${nick}
|
||||
| ◽◽◾ | - | Nickliste | führt einen whois für Nick aus | /window ${_window_number};/whois ${nick}
|
||||
| ◾◽◽ | links | Nickliste | kickt Nick | /window ${_window_number};/kick ${nick}
|
||||
| ◾◽◽ | links(lang) | Nickliste | kickt und verbannt Nick | /window ${_window_number};/kickban ${nick}
|
||||
| ◽◽◾ | links | Nickliste | verbannt Nick | /window ${_window_number};/ban ${nick}
|
||||
| ◽◽◾ | - | Input | fängt ein Mausereignis und fügt dieses in die Befehlszeile ein | /input grab_mouse_area
|
||||
| Mausrad ⇑ | - | jede Bar | blättert Bar um 10% nach oben | /bar scroll ${_bar_name} ${_window_number} -20%
|
||||
| Mausrad ⇓ | - | jede Bar | blättert Bar um 10% nach unten | /bar scroll ${_bar_name} ${_window_number} +20%
|
||||
| ◽◾◽ | - | überall | aktiviert den Cursor-Modus an dieser Position | /cursor go ${_x},${_y}
|
||||
|========================================
|
||||
|
||||
[[mouse]]
|
||||
@@ -2200,10 +2204,26 @@ WeeChat unterstützt sechs Skript-Erweiterungen: Python, Perl, Ruby, Lua, Tcl un
|
||||
Diese Erweiterungen können für die jeweilige Sprache die Skripten laden, ausführen und
|
||||
entfernen.
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Another plugin called "script" is a scripts manager and is used to load/unload
|
||||
scripts of any language, and install/remove scripts of WeeChat scripts
|
||||
repository, which are visible at this URL: http://www.weechat.org/scripts
|
||||
|
||||
Sollten Sie Interesse daran haben wie man Skripten für WeeChat erstellt dann lesen Sie
|
||||
bitte die 'WeeChat Scripting Guide'.
|
||||
|
||||
Skripten für WeeChat finden Sie auf: http://www.weechat.org/scripts
|
||||
// TRANSLATION MISSING
|
||||
[[script_options]]
|
||||
Script options (script.conf)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
include::autogen/user/script_options.txt[]
|
||||
|
||||
[[script_commands]]
|
||||
Script Befehle
|
||||
^^^^^^^^^^^^^^
|
||||
|
||||
include::autogen/user/script_commands.txt[]
|
||||
|
||||
[[python_commands]]
|
||||
Python Befehle
|
||||
|
||||
@@ -88,6 +88,7 @@ plugin_list = { 'weechat' : 'co',
|
||||
'logger' : 'co',
|
||||
'relay' : 'co',
|
||||
'rmodifier': 'co',
|
||||
'script' : 'co',
|
||||
'perl' : '',
|
||||
'python' : '',
|
||||
'ruby' : '',
|
||||
|
||||
@@ -56,6 +56,12 @@
|
||||
|
||||
| ruby | ruby_script | list of scripts
|
||||
|
||||
| script | script_files | files in script directories
|
||||
|
||||
| script | script_scripts | list of scripts in repository
|
||||
|
||||
| script | script_scripts_installed | list of scripts installed (from repository)
|
||||
|
||||
| tcl | tcl_script | list of scripts
|
||||
|
||||
| weechat | bars_names | names of bars
|
||||
|
||||
@@ -257,6 +257,33 @@
|
||||
'last_script' +
|
||||
'scripts'
|
||||
|
||||
| script | script_script | scripts from repository |
|
||||
'name' (string) +
|
||||
'name_with_extension' (string) +
|
||||
'language' (integer) +
|
||||
'author' (string) +
|
||||
'mail' (string) +
|
||||
'version' (string) +
|
||||
'license' (string) +
|
||||
'description' (string) +
|
||||
'tags' (string) +
|
||||
'requirements' (string) +
|
||||
'min_weechat' (string) +
|
||||
'max_weechat' (string) +
|
||||
'md5sum' (string) +
|
||||
'url' (string) +
|
||||
'popularity' (integer) +
|
||||
'date_added' (time) +
|
||||
'date_updated' (time) +
|
||||
'status' (integer) +
|
||||
'version_loaded' (string) +
|
||||
'displayed' (integer) +
|
||||
'install_order' (integer) +
|
||||
'prev_script' (pointer, hdata: 'script_script') +
|
||||
'next_script' (pointer, hdata: 'script_script') |
|
||||
'last_repo_script' +
|
||||
'repo_scripts'
|
||||
|
||||
| tcl | tcl_script | list of scripts |
|
||||
'filename' (string) +
|
||||
'interpreter' (pointer) +
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
|
||||
| ruby | ruby_script | list of scripts | script pointer (optional) | script name (can start or end with "*" as wildcard) (optional)
|
||||
|
||||
| script | script_script | list of scripts | script pointer (optional) | script name with extension (can start or end with "*" as wildcard) (optional)
|
||||
|
||||
| tcl | tcl_script | list of scripts | script pointer (optional) | script name (can start or end with "*" as wildcard) (optional)
|
||||
|
||||
| weechat | bar | list of bars | bar pointer (optional) | bar name (can start or end with "*" as wildcard) (optional)
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
[[command_script_script]]
|
||||
[command]*`script`* WeeChat scripts manager::
|
||||
........................................
|
||||
/script list
|
||||
show <script>
|
||||
load|unload <script> [<script>...]
|
||||
install|remove|hold <script> [<script>...]
|
||||
upgrade
|
||||
update
|
||||
|
||||
list: list loaded scripts (all languages)
|
||||
show: show detailed info about a script
|
||||
load: load script(s)
|
||||
unload: unload script(s)
|
||||
install: install/upgrade script(s)
|
||||
remove: remove script(s)
|
||||
hold: hold/unhold script(s) (a script held will not be upgraded any more and cannot be removed)
|
||||
upgrade: upgrade all installed scripts which are obsolete (new version available)
|
||||
update: update local scripts cache
|
||||
|
||||
Without argument, this command opens a buffer with list of scripts.
|
||||
|
||||
On script buffer, the possible status for each script are:
|
||||
* i H r N
|
||||
| | | | |
|
||||
| | | | obsolete (new version available)
|
||||
| | | running (loaded)
|
||||
| | held
|
||||
| installed
|
||||
popular script
|
||||
|
||||
Keys on script buffer:
|
||||
alt+i install script
|
||||
alt+r remove script
|
||||
alt+l load script
|
||||
alt+u unload script
|
||||
alt+h (un)hold script
|
||||
|
||||
Input allowed on script buffer:
|
||||
q close buffer
|
||||
r refresh buffer
|
||||
s:x,y sort buffer using keys x and y (see /help script.look.sort)
|
||||
s: reset sort (use default sort)
|
||||
word(s) filter scripts: search word(s) in scripts (description, tags, ...)
|
||||
* remove filter
|
||||
........................................
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -222,20 +222,11 @@ On some distros like Debian, plugins are available via a separate package
|
||||
Plugins are automatically loaded when found (please look at the WeeChat
|
||||
documentation to load/unload plugins or scripts).
|
||||
|
||||
Some plugins let you use scripts in WeeChat (in many languages like Perl,
|
||||
Python, Ruby, Lua and Tcl). These plugins must be loaded with the `/plugin`
|
||||
command and they provide commands like `/perl`, used to load scripts.
|
||||
Many external scripts (from contributors) are available for WeeChat:
|
||||
http://www.weechat.org/scripts
|
||||
|
||||
Many external plugins/scripts (from contributors) are available for
|
||||
WeeChat: http://www.weechat.org/scripts
|
||||
|
||||
Easiest way to install scripts is to use script 'weeget.py':
|
||||
|
||||
. `mkdir -p ~/.weechat/python/autoload`
|
||||
. `cd ~/.weechat/python/autoload`
|
||||
. `wget http://weechat.org/files/scripts/weeget.py`
|
||||
. load script: `/python autoload`
|
||||
. scripts list: `/weeget list` (for help: `/help weeget`)
|
||||
You can manage scripts in WeeChat with command `/script` (see `/help script`
|
||||
for more info).
|
||||
|
||||
|
||||
[[more_doc]]
|
||||
|
||||
+41
-25
@@ -91,11 +91,11 @@ compile WeeChat.
|
||||
| cmake | | *yes* | build (autotools still possible, but cmake is recommended)
|
||||
| libncursesw5-dev ^(2)^ | | *yes* | ncurses interface
|
||||
| libcurl4-gnutls-dev | | *yes* | URL transfer
|
||||
| gettext | | | internationalization (translation of messages; base language is english)
|
||||
| libgcrypt11-dev | | | SASL authentication with IRC server using DH-BLOWFISH mechanism
|
||||
| zlib1g-dev | | *yes* | compression of packets in relay plugin (weechat protocol), script plugin
|
||||
| libgcrypt11-dev | | *yes* | SASL authentication with IRC server using DH-BLOWFISH mechanism, script plugin
|
||||
| libgnutls-dev | ≥ 2.2.0 | | SSL connection to IRC server, support of SSL in relay plugin
|
||||
| gettext | | | internationalization (translation of messages; base language is english)
|
||||
| ca-certificates | | | certificates for SSL connections
|
||||
| zlib1g-dev | | | compression of packets in relay plugin (weechat protocol)
|
||||
| libaspell-dev | | | aspell plugin
|
||||
| python-dev | ≥ 2.5 ^(3)^ | | python plugin
|
||||
| libperl-dev | | | perl plugin
|
||||
@@ -770,27 +770,29 @@ These keys are used in context "mouse", namely when a mouse event occurs.
|
||||
|
||||
[width="100%",cols="^.^3,^.^3,^.^3,.^10,.^8l",options="header"]
|
||||
|========================================
|
||||
| Button | Gesture | Area | Description | Command
|
||||
| ◾◽◽ | - | chat | Switch to window | /window ${_window_number}
|
||||
| ◾◽◽ | left | chat | Switch to previous buffer | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | right | chat | Switch to next buffer | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | left (long) | chat | Switch to first buffer | /window ${_window_number};/buffer 1
|
||||
| ◾◽◽ | right (long) | chat | Switch to last buffer | /window ${_window_number};/input jump_last_buffer
|
||||
| wheel ⇑ | - | chat | Scroll up a few lines in buffer history | /window scroll_up -window ${_window_number}
|
||||
| wheel ⇓ | - | chat | Scroll down a few lines in buffer history | /window scroll_down -window ${_window_number}
|
||||
| ◾◽◽ | up | nicklist | Scroll up one page in nicklist | /bar scroll nicklist ${_window_number} -100%
|
||||
| ◾◽◽ | down | nicklist | Scroll down one page in nicklist | /bar scroll nicklist ${_window_number} +100%
|
||||
| ◾◽◽ | up (long) | nicklist | Go to the beginning of nicklist | /bar scroll nicklist ${_window_number} b
|
||||
| ◾◽◽ | down (long) | nicklist | Go to the end of nicklist | /bar scroll nicklist ${_window_number} e
|
||||
| ◾◽◽ | - | nicklist | Open query with nick | /window ${_window_number};/query ${nick}
|
||||
| ◽◽◾ | - | nicklist | Do a whois on nick | /window ${_window_number};/whois ${nick}
|
||||
| ◾◽◽ | left | nicklist | Kick nick | /window ${_window_number};/kick ${nick}
|
||||
| ◾◽◽ | left (long) | nicklist | Kick and ban nick | /window ${_window_number};/kickban ${nick}
|
||||
| ◽◽◾ | left | nicklist | Ban nick | /window ${_window_number};/ban ${nick}
|
||||
| ◽◽◾ | - | input | Grab a mouse event and insert its code in command line | /input grab_mouse_area
|
||||
| wheel ⇑ | - | any bar | Scroll bar by -10% | /bar scroll ${_bar_name} ${_window_number} -20%
|
||||
| wheel ⇓ | - | any bar | Scroll bar by +10% | /bar scroll ${_bar_name} ${_window_number} +20%
|
||||
| ◽◾◽ | - | anywhere | Start cursor mode at this point | /cursor go ${_x},${_y}
|
||||
| Button | Gesture | Area | Description | Command
|
||||
| ◾◽◽ | - | chat | Switch to window | /window ${_window_number}
|
||||
| ◾◽◽ | left | chat | Switch to previous buffer | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | right | chat | Switch to next buffer | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | left (long) | chat | Switch to first buffer | /window ${_window_number};/buffer 1
|
||||
| ◾◽◽ | right (long) | chat | Switch to last buffer | /window ${_window_number};/input jump_last_buffer
|
||||
| wheel ⇑ | - | chat | Scroll up a few lines in buffer history | /window scroll_up -window ${_window_number}
|
||||
| wheel ⇓ | - | chat | Scroll down a few lines in buffer history | /window scroll_down -window ${_window_number}
|
||||
| wheel ⇑ | - | chat (script buffer) | Move 5 lines up in script buffer | /script up 5
|
||||
| wheel ⇓ | - | chat (script buffer) | Move 5 lines down in script buffer | /script down 5
|
||||
| ◾◽◽ | up | nicklist | Scroll up one page in nicklist | /bar scroll nicklist ${_window_number} -100%
|
||||
| ◾◽◽ | down | nicklist | Scroll down one page in nicklist | /bar scroll nicklist ${_window_number} +100%
|
||||
| ◾◽◽ | up (long) | nicklist | Go to the beginning of nicklist | /bar scroll nicklist ${_window_number} b
|
||||
| ◾◽◽ | down (long) | nicklist | Go to the end of nicklist | /bar scroll nicklist ${_window_number} e
|
||||
| ◾◽◽ | - | nicklist | Open query with nick | /window ${_window_number};/query ${nick}
|
||||
| ◽◽◾ | - | nicklist | Do a whois on nick | /window ${_window_number};/whois ${nick}
|
||||
| ◾◽◽ | left | nicklist | Kick nick | /window ${_window_number};/kick ${nick}
|
||||
| ◾◽◽ | left (long) | nicklist | Kick and ban nick | /window ${_window_number};/kickban ${nick}
|
||||
| ◽◽◾ | left | nicklist | Ban nick | /window ${_window_number};/ban ${nick}
|
||||
| ◽◽◾ | - | input | Grab a mouse event and insert its code in command line | /input grab_mouse_area
|
||||
| wheel ⇑ | - | any bar | Scroll bar by -10% | /bar scroll ${_bar_name} ${_window_number} -20%
|
||||
| wheel ⇓ | - | any bar | Scroll bar by +10% | /bar scroll ${_bar_name} ${_window_number} +20%
|
||||
| ◽◾◽ | - | anywhere | Start cursor mode at this point | /cursor go ${_x},${_y}
|
||||
|========================================
|
||||
|
||||
[[mouse]]
|
||||
@@ -2158,10 +2160,24 @@ WeeChat provides 6 scripting plugins: Python, Perl, Ruby, Lua, Tcl and Guile
|
||||
(scheme).
|
||||
These plugins can load, execute and unload scripts for these languages.
|
||||
|
||||
Another plugin called "script" is a scripts manager and is used to load/unload
|
||||
scripts of any language, and install/remove scripts of WeeChat scripts
|
||||
repository, which are visible at this URL: http://www.weechat.org/scripts
|
||||
|
||||
For more information about how to write scripts, or WeeChat API for
|
||||
scripts, please read 'WeeChat Scripting Guide'.
|
||||
|
||||
You can find some scripts for WeeChat here: http://www.weechat.org/scripts
|
||||
[[script_options]]
|
||||
Script options (script.conf)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
include::autogen/user/script_options.txt[]
|
||||
|
||||
[[script_commands]]
|
||||
Script commands
|
||||
^^^^^^^^^^^^^^^
|
||||
|
||||
include::autogen/user/script_commands.txt[]
|
||||
|
||||
[[python_commands]]
|
||||
Python commands
|
||||
|
||||
@@ -240,22 +240,12 @@ Los plugins se cargan de manera automática cuando son encontrados por WeeChat
|
||||
(por favor, refierase a la documentación de WeeChat para ver como cargar/descargar
|
||||
plugins y scripts).
|
||||
|
||||
Algunos plugins, permiten usar scripts en WeeChat (en muchos lenguajes
|
||||
como Perl, Python, Ruby, Lua y Tcl). Estos plugins deben ser cargados con
|
||||
el comando `/plugin` los mismos proveen comandos como `/perl`, usados
|
||||
para cargar scripts en este lenguaje.
|
||||
Muchos scripts externos (de contribuidores) están disponibles para WeeChat en:
|
||||
http://www.weechat.org/scripts
|
||||
|
||||
Muchos plugins/scripts externos (de contribuidores) están disponibles
|
||||
para WeeChat en: http://www.weechat.org/scripts
|
||||
|
||||
Una manera fácil de instalar scripts es usar un script llamado
|
||||
'weeget.py'
|
||||
|
||||
. `mkdir -p ~/.weechat/python/autoload`
|
||||
. `cd ~/.weechat/python/autoload`
|
||||
. `wget http://weechat.org/files/scripts/weeget.py`
|
||||
. carga script: `/python autoload`
|
||||
. lista los scripts: `/weeget list` (ayuda: `/help weeget`)
|
||||
// TRANSLATION MISSING
|
||||
You can manage scripts in WeeChat with command `/script` (see `/help script`
|
||||
for more info).
|
||||
|
||||
|
||||
[[more_doc]]
|
||||
|
||||
@@ -56,6 +56,12 @@
|
||||
|
||||
| ruby | ruby_script | liste des scripts
|
||||
|
||||
| script | script_files | fichiers dans les répertoires de script
|
||||
|
||||
| script | script_scripts | liste des scripts du repository
|
||||
|
||||
| script | script_scripts_installed | liste des scripts installés (du repository)
|
||||
|
||||
| tcl | tcl_script | liste des scripts
|
||||
|
||||
| weechat | bars_names | noms des barres
|
||||
|
||||
@@ -257,6 +257,33 @@
|
||||
'last_script' +
|
||||
'scripts'
|
||||
|
||||
| script | script_script | scripts du repository |
|
||||
'name' (string) +
|
||||
'name_with_extension' (string) +
|
||||
'language' (integer) +
|
||||
'author' (string) +
|
||||
'mail' (string) +
|
||||
'version' (string) +
|
||||
'license' (string) +
|
||||
'description' (string) +
|
||||
'tags' (string) +
|
||||
'requirements' (string) +
|
||||
'min_weechat' (string) +
|
||||
'max_weechat' (string) +
|
||||
'md5sum' (string) +
|
||||
'url' (string) +
|
||||
'popularity' (integer) +
|
||||
'date_added' (time) +
|
||||
'date_updated' (time) +
|
||||
'status' (integer) +
|
||||
'version_loaded' (string) +
|
||||
'displayed' (integer) +
|
||||
'install_order' (integer) +
|
||||
'prev_script' (pointer, hdata: 'script_script') +
|
||||
'next_script' (pointer, hdata: 'script_script') |
|
||||
'last_repo_script' +
|
||||
'repo_scripts'
|
||||
|
||||
| tcl | tcl_script | liste des scripts |
|
||||
'filename' (string) +
|
||||
'interpreter' (pointer) +
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
|
||||
| ruby | ruby_script | liste des scripts | pointeur vers le script (optionnel) | nom de script (peut démarrer ou se terminer par "*" comme joker) (optionnel)
|
||||
|
||||
| script | script_script | liste des scripts | pointeur vers le script (optionnel) | nom du script avec extension (peut démarrer ou se terminer par "*" comme joker) (optionnel)
|
||||
|
||||
| tcl | tcl_script | liste des scripts | pointeur vers le script (optionnel) | nom de script (peut démarrer ou se terminer par "*" comme joker) (optionnel)
|
||||
|
||||
| weechat | bar | liste des barres | pointeur vers la barre (optionnel) | nom de barre (peut démarrer ou se terminer par "*" comme joker) (optionnel)
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
[[command_script_script]]
|
||||
[command]*`script`* Gestionnaire de scripts WeeChat::
|
||||
........................................
|
||||
/script list
|
||||
show <script>
|
||||
load|unload <script> [<script>...]
|
||||
install|remove|hold <script> [<script>...]
|
||||
upgrade
|
||||
update
|
||||
|
||||
list: lister les scripts chargés (tous les langages)
|
||||
show: afficher des infos détaillées sur le script
|
||||
load: charger un ou plusieurs scripts
|
||||
unload: décharger un ou plusieurs scripts
|
||||
install: installer/mettre à jour un ou plusieurs scripts
|
||||
remove: supprimer un ou plusieurs scripts
|
||||
hold: figer/défiger un ou plusieurs scripts (un script figé ne sera plus mis à jour et ne peut pas être supprimé)
|
||||
upgrade: mettre à jour les scripts obsolètes (avec nouvelle version disponible)
|
||||
update: mettre à jour le cache local des scripts
|
||||
|
||||
Sans paramètre, cette commande ouvre un tampon avec la liste des scripts.
|
||||
|
||||
Sur le tampon des scripts, les statuts pour chaque script sont :
|
||||
* i H r N
|
||||
| | | | |
|
||||
| | | | obsolète (nouvelle version disponible)
|
||||
| | | chargé
|
||||
| | figé
|
||||
| installé
|
||||
script populaire
|
||||
|
||||
Les touches sur le tampon des scripts :
|
||||
alt+i installer le script
|
||||
alt+r supprimer le script
|
||||
alt+l charger le script
|
||||
alt+u décharger le script
|
||||
alt+h (dé)figer le script
|
||||
|
||||
Entrée autorisée sur le tampon des scripts :
|
||||
q fermer le tampon
|
||||
r rafraîchir le tampon
|
||||
s:x,y trier le tampon en utilisant les clés x et y (voir /help script.look.sort)
|
||||
s: réinitialiser le tri (utiliser le tri par défaut)
|
||||
word(s) filtrer les scripts: recherche du/des mot(s) dans les scripts (description, étiquettes, ...)
|
||||
* supprimer le filtre
|
||||
........................................
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -234,22 +234,11 @@ Les extensions sont automatiquement chargées lorsqu'elles sont trouvées
|
||||
(merci de regarder la documentation WeeChat pour charger/décharger des
|
||||
extensions ou des scripts).
|
||||
|
||||
Des extensions permettent d'utiliser des scripts dans WeeChat (dans
|
||||
différent langages comme Perl, Python, Ruby, Lua et Tcl). Ces extensions
|
||||
doivent être chargées avec la commande `/plugin` et elles fournissent des
|
||||
commandes telles que `/perl`, utilisées pour charger les scripts.
|
||||
De nombreux scripts externes (de contributeurs) sont disponibles pour WeeChat :
|
||||
http://www.weechat.org/scripts
|
||||
|
||||
Plusieurs extensions/scripts (de contributeurs) sont disponibles pour
|
||||
WeeChat : http://www.weechat.org/scripts
|
||||
|
||||
La manière la plus simple pour installer des scripts consiste à utiliser le
|
||||
script 'weeget.py' :
|
||||
|
||||
. `mkdir -p ~/.weechat/python/autoload`
|
||||
. `cd ~/.weechat/python/autoload`
|
||||
. `wget http://weechat.org/files/scripts/weeget.py`
|
||||
. chargez le script : `/python autoload`
|
||||
. liste des scripts : `/weeget list` (pour l'aide: `/help weeget`)
|
||||
Vous pouvez gérer les scripts dans WeeChat avec la commande `/script` (voir
|
||||
`/help script` pour plus d'info).
|
||||
|
||||
|
||||
[[more_doc]]
|
||||
|
||||
+42
-27
@@ -93,12 +93,11 @@ compiler WeeChat.
|
||||
| cmake | | *oui* | construction (autotools toujours possible, mais cmake est recommandé)
|
||||
| libncursesw5-dev ^(2)^ | | *oui* | interface ncurses
|
||||
| libcurl4-gnutls-dev | | *oui* | transfert d'URL
|
||||
| gettext | | | internationalisation (traduction des messages; la langue de base est l'anglais)
|
||||
| libgcrypt11-dev | | | authentification SASL avec le serveur IRC, en utilisant le mécanisme DH-BLOWFISH
|
||||
| zlib1g-dev | | *oui* | compression des paquets dans l'extension relay (protocole weechat), extension script
|
||||
| libgcrypt11-dev | | *oui* | authentification SASL avec le serveur IRC, en utilisant le mécanisme DH-BLOWFISH, extension script
|
||||
| libgnutls-dev | ≥ 2.2.0 | | connexion SSL au serveur IRC, support SSL dans l'extension relay
|
||||
| gettext | | | internationalisation (traduction des messages; la langue de base est l'anglais)
|
||||
| ca-certificates | | | certificats pour les connexions SSL
|
||||
// TRANSLATION MISSING
|
||||
| zlib1g-dev | | | compression des paquets dans l'extension relay (protocole weechat)
|
||||
| libaspell-dev | | | extension aspell
|
||||
| python-dev | ≥ 2.5 ^(3)^ | | extension python
|
||||
| libperl-dev | | | extension perl
|
||||
@@ -786,27 +785,29 @@ Ces touches sont utilisées dans le contexte "mouse", c'est-à-dire lorsqu'un
|
||||
|
||||
[width="100%",cols="^.^3,^.^3,^.^3,.^10,.^8l",options="header"]
|
||||
|========================================
|
||||
| Bouton | Geste | Zone | Description | Commande
|
||||
| ◾◽◽ | - | chat | Aller à la fenêtre | /window ${_window_number}
|
||||
| ◾◽◽ | left | chat | Aller au tampon précédent | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | right | chat | Aller au tampon suivant | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | left (long) | chat | Aller au premier tampon | /window ${_window_number};/buffer 1
|
||||
| ◾◽◽ | right (long) | chat | Aller au dernier tampon | /window ${_window_number};/input jump_last_buffer
|
||||
| roulette ⇑ | - | chat | Monter de quelques lignes dans l'historique du tampon | /window scroll_up -window ${_window_number}
|
||||
| roulette ⇓ | - | chat | Descendre de quelques lignes dans l'historique du tampon | /window scroll_down -window ${_window_number}
|
||||
| ◾◽◽ | up | liste des pseudos | Monter d'une page dans la liste des pseudos | /bar scroll nicklist ${_window_number} -100%
|
||||
| ◾◽◽ | down | liste des pseudos | Descendre d'une page dans la liste des pseudos | /bar scroll nicklist ${_window_number} +100%
|
||||
| ◾◽◽ | up (long) | liste des pseudos | Aller au début de la liste des pseudos | /bar scroll nicklist ${_window_number} b
|
||||
| ◾◽◽ | down (long) | liste des pseudos | Aller à la fin de la liste des pseudos | /bar scroll nicklist ${_window_number} e
|
||||
| ◾◽◽ | - | liste des pseudos | Ouvrir une discussion avec le pseudo | /window ${_window_number};/query ${nick}
|
||||
| ◽◽◾ | - | liste des pseudos | Effectuer un whois sur le pseudo | /window ${_window_number};/whois ${nick}
|
||||
| ◾◽◽ | left | liste des pseudos | Retirer par la force le pseudo | /window ${_window_number};/kick ${nick}
|
||||
| ◾◽◽ | left (long) | liste des pseudos | Retirer par la force et bannir le pseudo | /window ${_window_number};/kickban ${nick}
|
||||
| ◽◽◾ | left | liste des pseudos | Bannir le pseudo | /window ${_window_number};/ban ${nick}
|
||||
| ◽◽◾ | - | ligne de commande | Capturer un évènement de la souris et insérer son code sur la ligne de commande | /input grab_mouse_area
|
||||
| roulette ⇑ | - | toute barre | Faire défiler la barre de -10% | /bar scroll ${_bar_name} ${_window_number} -20%
|
||||
| roulette ⇓ | - | toute barre | Faire défiler la barre de +10% | /bar scroll ${_bar_name} ${_window_number} +20%
|
||||
| ◽◾◽ | - | n'importe où | Démarrer le mode curseur ("cursor") à ce point | /cursor go ${_x},${_y}
|
||||
| Bouton | Geste | Zone | Description | Commande
|
||||
| ◾◽◽ | - | chat | Aller à la fenêtre | /window ${_window_number}
|
||||
| ◾◽◽ | left | chat | Aller au tampon précédent | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | right | chat | Aller au tampon suivant | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | left (long) | chat | Aller au premier tampon | /window ${_window_number};/buffer 1
|
||||
| ◾◽◽ | right (long) | chat | Aller au dernier tampon | /window ${_window_number};/input jump_last_buffer
|
||||
| roulette ⇑ | - | chat | Monter de quelques lignes dans l'historique du tampon | /window scroll_up -window ${_window_number}
|
||||
| roulette ⇓ | - | chat | Descendre de quelques lignes dans l'historique du tampon | /window scroll_down -window ${_window_number}
|
||||
| roulette ⇑ | - | chat (tampon script) | Monter de 5 lignes dans le tampon script | /script up 5
|
||||
| roulette ⇓ | - | chat (tampon script) | Descendre de 5 lignes dans le tampon script | /script down 5
|
||||
| ◾◽◽ | up | liste des pseudos | Monter d'une page dans la liste des pseudos | /bar scroll nicklist ${_window_number} -100%
|
||||
| ◾◽◽ | down | liste des pseudos | Descendre d'une page dans la liste des pseudos | /bar scroll nicklist ${_window_number} +100%
|
||||
| ◾◽◽ | up (long) | liste des pseudos | Aller au début de la liste des pseudos | /bar scroll nicklist ${_window_number} b
|
||||
| ◾◽◽ | down (long) | liste des pseudos | Aller à la fin de la liste des pseudos | /bar scroll nicklist ${_window_number} e
|
||||
| ◾◽◽ | - | liste des pseudos | Ouvrir une discussion avec le pseudo | /window ${_window_number};/query ${nick}
|
||||
| ◽◽◾ | - | liste des pseudos | Effectuer un whois sur le pseudo | /window ${_window_number};/whois ${nick}
|
||||
| ◾◽◽ | left | liste des pseudos | Retirer par la force le pseudo | /window ${_window_number};/kick ${nick}
|
||||
| ◾◽◽ | left (long) | liste des pseudos | Retirer par la force et bannir le pseudo | /window ${_window_number};/kickban ${nick}
|
||||
| ◽◽◾ | left | liste des pseudos | Bannir le pseudo | /window ${_window_number};/ban ${nick}
|
||||
| ◽◽◾ | - | ligne de commande | Capturer un évènement de la souris et insérer son code sur la ligne de commande | /input grab_mouse_area
|
||||
| roulette ⇑ | - | toute barre | Faire défiler la barre de -10% | /bar scroll ${_bar_name} ${_window_number} -20%
|
||||
| roulette ⇓ | - | toute barre | Faire défiler la barre de +10% | /bar scroll ${_bar_name} ${_window_number} +20%
|
||||
| ◽◾◽ | - | n'importe où | Démarrer le mode curseur ("cursor") à ce point | /cursor go ${_x},${_y}
|
||||
|========================================
|
||||
|
||||
[[mouse]]
|
||||
@@ -2222,11 +2223,25 @@ Guile (scheme).
|
||||
Ces extensions peuvent charger, exécuter et décharger des scripts pour ces
|
||||
langages.
|
||||
|
||||
Une autre extension appelée "script" est un gestionnaire de scripts et est
|
||||
utilisé pour charger/décharger des scripts pour n'importe quel langage, et
|
||||
installer/supprimer des scripts du repository WeeChat, qui sont visibles à cette
|
||||
URL: http://www.weechat.org/scripts
|
||||
|
||||
Pour plus d'informations sur comment écrire des scripts, ou sur l'API
|
||||
WeeChat pour les scripts, merci de lire le 'Le Guide pour Scripts WeeChat'.
|
||||
|
||||
Vous pouvez trouver des scripts pour WeeChat ici :
|
||||
http://www.weechat.org/scripts
|
||||
[[script_options]]
|
||||
Options Script (script.conf)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
include::autogen/user/script_options.txt[]
|
||||
|
||||
[[script_commands]]
|
||||
Commandes Script
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
include::autogen/user/script_commands.txt[]
|
||||
|
||||
[[python_commands]]
|
||||
Commandes Python
|
||||
|
||||
@@ -56,6 +56,12 @@
|
||||
|
||||
| ruby | ruby_script | elenco degli script
|
||||
|
||||
| script | script_files | files in script directories
|
||||
|
||||
| script | script_scripts | list of scripts in repository
|
||||
|
||||
| script | script_scripts_installed | list of scripts installed (from repository)
|
||||
|
||||
| tcl | tcl_script | elenco degli script
|
||||
|
||||
| weechat | bars_names | nomi delle barre
|
||||
|
||||
@@ -257,6 +257,33 @@
|
||||
'last_script' +
|
||||
'scripts'
|
||||
|
||||
| script | script_script | scripts from repository |
|
||||
'name' (string) +
|
||||
'name_with_extension' (string) +
|
||||
'language' (integer) +
|
||||
'author' (string) +
|
||||
'mail' (string) +
|
||||
'version' (string) +
|
||||
'license' (string) +
|
||||
'description' (string) +
|
||||
'tags' (string) +
|
||||
'requirements' (string) +
|
||||
'min_weechat' (string) +
|
||||
'max_weechat' (string) +
|
||||
'md5sum' (string) +
|
||||
'url' (string) +
|
||||
'popularity' (integer) +
|
||||
'date_added' (time) +
|
||||
'date_updated' (time) +
|
||||
'status' (integer) +
|
||||
'version_loaded' (string) +
|
||||
'displayed' (integer) +
|
||||
'install_order' (integer) +
|
||||
'prev_script' (pointer, hdata: 'script_script') +
|
||||
'next_script' (pointer, hdata: 'script_script') |
|
||||
'last_repo_script' +
|
||||
'repo_scripts'
|
||||
|
||||
| tcl | tcl_script | elenco degli script |
|
||||
'filename' (string) +
|
||||
'interpreter' (pointer) +
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
|
||||
| ruby | ruby_script | elenco degli script | puntatore allo script (opzionale) | nome script (può iniziare o terminare con "*" come carattere jolly) (opzionale)
|
||||
|
||||
| script | script_script | elenco degli script | puntatore allo script (opzionale) | script name with extension (can start or end with "*" as wildcard) (optional)
|
||||
|
||||
| tcl | tcl_script | elenco degli script | puntatore allo script (opzionale) | nome script (può iniziare o terminare con "*" come carattere jolly) (opzionale)
|
||||
|
||||
| weechat | bar | elenco delle barre | puntatore alla barra (opzionale) | nome barra (può iniziare o terminare con "*" come carattere jolly (opzionale)
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
[[command_script_script]]
|
||||
[command]*`script`* WeeChat scripts manager::
|
||||
........................................
|
||||
/script list
|
||||
show <script>
|
||||
load|unload <script> [<script>...]
|
||||
install|remove|hold <script> [<script>...]
|
||||
upgrade
|
||||
update
|
||||
|
||||
list: list loaded scripts (all languages)
|
||||
show: show detailed info about a script
|
||||
load: load script(s)
|
||||
unload: unload script(s)
|
||||
install: install/upgrade script(s)
|
||||
remove: remove script(s)
|
||||
hold: hold/unhold script(s) (a script held will not be upgraded any more and cannot be removed)
|
||||
upgrade: upgrade all installed scripts which are obsolete (new version available)
|
||||
update: update local scripts cache
|
||||
|
||||
Without argument, this command opens a buffer with list of scripts.
|
||||
|
||||
On script buffer, the possible status for each script are:
|
||||
* i H r N
|
||||
| | | | |
|
||||
| | | | obsolete (new version available)
|
||||
| | | running (loaded)
|
||||
| | held
|
||||
| installed
|
||||
popular script
|
||||
|
||||
Keys on script buffer:
|
||||
alt+i install script
|
||||
alt+r remove script
|
||||
alt+l load script
|
||||
alt+u unload script
|
||||
alt+h (un)hold script
|
||||
|
||||
Input allowed on script buffer:
|
||||
q close buffer
|
||||
r refresh buffer
|
||||
s:x,y sort buffer using keys x and y (see /help script.look.sort)
|
||||
s: reset sort (use default sort)
|
||||
word(s) filter scripts: search word(s) in scripts (description, tags, ...)
|
||||
* remove filter
|
||||
........................................
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -236,21 +236,12 @@ I plugin vengono caricati automaticamente quando trovati
|
||||
(per favore consultare la documentazione per caricare/scaricare plugin
|
||||
o script).
|
||||
|
||||
Alcuni plugin consentono di usare gli script in WeeChat (in molti linguaggi
|
||||
come Perl, Python, Ruby, Lua e Tcl). Questi plugin devono essere
|
||||
caricati con il comando `/plugin` e forniscono comandi come `/perl`,
|
||||
utilizzati per caricare gli script.
|
||||
Sono disponibili molti script esterni (dai contributori) per WeeChat:
|
||||
http://www.weechat.org/scripts
|
||||
|
||||
Sono disponibili molti plugin/script esterni (dai contributori) per
|
||||
WeeChat: http://www.weechat.org/scripts
|
||||
|
||||
Il modo più facile per installare gli script è utilizzare 'weeget.py':
|
||||
|
||||
. `mkdir -p ~/.weechat/python/autoload`
|
||||
. `cd ~/.weechat/python/autoload`
|
||||
. `wget http://weechat.org/files/scripts/weeget.py`
|
||||
. caricare lo script: `/python autoload`
|
||||
. elenco degli script: `/weeget list` (per aiuto: `/help weeget`)
|
||||
// TRANSLATION MISSING
|
||||
You can manage scripts in WeeChat with command `/script` (see `/help script`
|
||||
for more info).
|
||||
|
||||
|
||||
[[more_doc]]
|
||||
|
||||
+46
-26
@@ -95,13 +95,14 @@ compilare WeeChat.
|
||||
| cmake | | *sì* | compilazione (ancora possibile con autotools, ma si raccomanda cmake)
|
||||
| libncursesw5-dev ^(2)^ | | *sì* | interfaccia ncurses
|
||||
| libcurl4-gnutls-dev | | *sì* | trasferimento URL
|
||||
| gettext | | | internazionalizzazione (traduzione dei messaggi; la lingua base è l'inglese)
|
||||
| libgcrypt11-dev | | | autenticazione SASL per i server IRC che utilizzano il meccanismo DH-BLOWFISH
|
||||
// TRANSLATION MISSING
|
||||
| zlib1g-dev | | *sì* | compression of packets in relay plugin (weechat protocol), script plugin
|
||||
// TRANSLATION MISSING
|
||||
| libgcrypt11-dev | | *sì* | autenticazione SASL per i server IRC che utilizzano il meccanismo DH-BLOWFISH, script plugin
|
||||
// TRANSLATION MISSING
|
||||
| libgnutls-dev | ≥ 2.2.0 | | connessione SSL al server IRC, support of SSL in relay plugin
|
||||
| gettext | | | internazionalizzazione (traduzione dei messaggi; la lingua base è l'inglese)
|
||||
| ca-certificates | | | certificati per le connessioni SSL
|
||||
// TRANSLATION MISSING
|
||||
| zlib1g-dev | | | compression of packets in relay plugin (weechat protocol)
|
||||
| libaspell-dev | | | plugin aspell
|
||||
| python-dev | ≥ 2.5 ^(3)^ | | plugin python
|
||||
| libperl-dev | | | plugin perl
|
||||
@@ -785,29 +786,32 @@ Tasti per il contesto "mouse"
|
||||
Questi tasti sono usati nel contesto "mouse", ovvero quando si verifica un
|
||||
evento del mouse.
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[width="100%",cols="^.^3,^.^3,^.^3,.^10,.^8l",options="header"]
|
||||
|========================================
|
||||
| Tasto | Azione | Zona | Descrizione | Comando
|
||||
| ◾◽◽ | - | chat | Passa alla finestra | /window ${_window_number}
|
||||
| ◾◽◽ | sinistra | chat | Passa al buffer precedente | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | destra | chat | Passa al buffer successivo | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | sinistra (lungo) | chat | Switch to first buffer | /window ${_window_number};/buffer 1
|
||||
| ◾◽◽ | destra (lungo) | chat | Passa all'ultimo buffer | /window ${_window_number};/input jump_last_buffer
|
||||
| rotella ⇑ | - | chat | Scorre di qualche riga in alto nella cronologia del buffer | /window scroll_up -window ${_window_number}
|
||||
| rotella ⇓ | - | chat | Scorre di qualche riga in basso nella cronologia del buffer | /window scroll_down -window ${_window_number}
|
||||
| ◾◽◽ | su | lista nick | Scorre di una pagina in alto nella lista nick | /bar scroll nicklist ${_window_number} -100%
|
||||
| ◾◽◽ | giù | lista nick | Scorre di una pagina in basso nella lista nick | /bar scroll nicklist ${_window_number} +100%
|
||||
| ◾◽◽ | up (lungo) | lista nick | Sposta all'inizio della lista nick | /bar scroll nicklist ${_window_number} b
|
||||
| ◾◽◽ | giù (lungo) | lista nick | Sposta alla fine della lista nick | /bar scroll nicklist ${_window_number} e
|
||||
| ◾◽◽ | - | lista nick | Apre una query con un nick | /window ${_window_number};/query ${nick}
|
||||
| ◽◽◾ | - | lista nick | Effettua un whois su un nick | /window ${_window_number};/whois ${nick}
|
||||
| ◾◽◽ | sinistra | lista nick | Kick di un nick | /window ${_window_number};/kick ${nick}
|
||||
| ◾◽◽ | sinistra (lungo) | lista nick | Kick e ban di un nick | /window ${_window_number};/kickban ${nick}
|
||||
| ◽◽◾ | sinistra | lista nick | Ban di un nick | /window ${_window_number};/ban ${nick}
|
||||
| ◽◽◾ | - | input | Cattura un evento del mouse e inserisce il codice nella riga di comando | /input grab_mouse_area
|
||||
| rotella ⇑ | - | ogni barra | Scorre la barra del -10% | /bar scroll ${_bar_name} ${_window_number} -20%
|
||||
| rotella ⇓ | - | ogni barra | Scorre la barra del +10% | /bar scroll ${_bar_name} ${_window_number} +20%
|
||||
| ◽◾◽ | - | ovunque | Avvia la modalità cursore in questo punto | /cursor go ${_x},${_y}
|
||||
| Tasto | Azione | Zona | Descrizione | Comando
|
||||
| ◾◽◽ | - | chat | Passa alla finestra | /window ${_window_number}
|
||||
| ◾◽◽ | sinistra | chat | Passa al buffer precedente | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | destra | chat | Passa al buffer successivo | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | sinistra (lungo) | chat | Switch to first buffer | /window ${_window_number};/buffer 1
|
||||
| ◾◽◽ | destra (lungo) | chat | Passa all'ultimo buffer | /window ${_window_number};/input jump_last_buffer
|
||||
| rotella ⇑ | - | chat | Scorre di qualche riga in alto nella cronologia del buffer | /window scroll_up -window ${_window_number}
|
||||
| rotella ⇓ | - | chat | Scorre di qualche riga in basso nella cronologia del buffer | /window scroll_down -window ${_window_number}
|
||||
| rotella ⇑ | - | chat (script buffer) | Move 5 lines up in script buffer | /script up 5
|
||||
| rotella ⇓ | - | chat (script buffer) | Move 5 lines down in script buffer | /script down 5
|
||||
| ◾◽◽ | su | lista nick | Scorre di una pagina in alto nella lista nick | /bar scroll nicklist ${_window_number} -100%
|
||||
| ◾◽◽ | giù | lista nick | Scorre di una pagina in basso nella lista nick | /bar scroll nicklist ${_window_number} +100%
|
||||
| ◾◽◽ | up (lungo) | lista nick | Sposta all'inizio della lista nick | /bar scroll nicklist ${_window_number} b
|
||||
| ◾◽◽ | giù (lungo) | lista nick | Sposta alla fine della lista nick | /bar scroll nicklist ${_window_number} e
|
||||
| ◾◽◽ | - | lista nick | Apre una query con un nick | /window ${_window_number};/query ${nick}
|
||||
| ◽◽◾ | - | lista nick | Effettua un whois su un nick | /window ${_window_number};/whois ${nick}
|
||||
| ◾◽◽ | sinistra | lista nick | Kick di un nick | /window ${_window_number};/kick ${nick}
|
||||
| ◾◽◽ | sinistra (lungo) | lista nick | Kick e ban di un nick | /window ${_window_number};/kickban ${nick}
|
||||
| ◽◽◾ | sinistra | lista nick | Ban di un nick | /window ${_window_number};/ban ${nick}
|
||||
| ◽◽◾ | - | input | Cattura un evento del mouse e inserisce il codice nella riga di comando | /input grab_mouse_area
|
||||
| rotella ⇑ | - | ogni barra | Scorre la barra del -10% | /bar scroll ${_bar_name} ${_window_number} -20%
|
||||
| rotella ⇓ | - | ogni barra | Scorre la barra del +10% | /bar scroll ${_bar_name} ${_window_number} +20%
|
||||
| ◽◾◽ | - | ovunque | Avvia la modalità cursore in questo punto | /cursor go ${_x},${_y}
|
||||
|========================================
|
||||
|
||||
[[mouse]]
|
||||
@@ -2210,10 +2214,26 @@ WeeChat fornisce 6 plugin per lo scripting: Python, Perl, Ruby, Lua, Tcl, Guile
|
||||
Questi plugin possono caricare, eseguire e scaricare gli script per questi
|
||||
linguaggi.
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Another plugin called "script" is a scripts manager and is used to load/unload
|
||||
scripts of any language, and install/remove scripts of WeeChat scripts
|
||||
repository, which are visible at this URL: http://www.weechat.org/scripts
|
||||
|
||||
Per maggiori informazioni su come scrivere gli script, o le API WeeChat
|
||||
per gli script, consultare la 'Guida allo Scripting di WeeChat'.
|
||||
|
||||
È possibile trovare alcuni script qui: http://www.weechat.org/scripts
|
||||
// TRANSLATION MISSING
|
||||
[[script_options]]
|
||||
Script options (script.conf)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
include::autogen/user/script_options.txt[]
|
||||
|
||||
[[script_commands]]
|
||||
Comandi Script
|
||||
^^^^^^^^^^^^^^
|
||||
|
||||
include::autogen/user/script_commands.txt[]
|
||||
|
||||
[[python_commands]]
|
||||
Comandi Python
|
||||
|
||||
@@ -56,6 +56,12 @@
|
||||
|
||||
| ruby | ruby_script | スクリプトのリスト
|
||||
|
||||
| script | script_files | files in script directories
|
||||
|
||||
| script | script_scripts | list of scripts in repository
|
||||
|
||||
| script | script_scripts_installed | list of scripts installed (from repository)
|
||||
|
||||
| tcl | tcl_script | スクリプトのリスト
|
||||
|
||||
| weechat | bars_names | バーの名前
|
||||
|
||||
@@ -257,6 +257,33 @@
|
||||
'last_script' +
|
||||
'scripts'
|
||||
|
||||
| script | script_script | scripts from repository |
|
||||
'name' (string) +
|
||||
'name_with_extension' (string) +
|
||||
'language' (integer) +
|
||||
'author' (string) +
|
||||
'mail' (string) +
|
||||
'version' (string) +
|
||||
'license' (string) +
|
||||
'description' (string) +
|
||||
'tags' (string) +
|
||||
'requirements' (string) +
|
||||
'min_weechat' (string) +
|
||||
'max_weechat' (string) +
|
||||
'md5sum' (string) +
|
||||
'url' (string) +
|
||||
'popularity' (integer) +
|
||||
'date_added' (time) +
|
||||
'date_updated' (time) +
|
||||
'status' (integer) +
|
||||
'version_loaded' (string) +
|
||||
'displayed' (integer) +
|
||||
'install_order' (integer) +
|
||||
'prev_script' (pointer, hdata: 'script_script') +
|
||||
'next_script' (pointer, hdata: 'script_script') |
|
||||
'last_repo_script' +
|
||||
'repo_scripts'
|
||||
|
||||
| tcl | tcl_script | スクリプトのリスト |
|
||||
'filename' (string) +
|
||||
'interpreter' (pointer) +
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
|
||||
| ruby | ruby_script | スクリプトのリスト | スクリプトポインタ (オプション) | スクリプト名 (ワイルドカードとして "*" で始めるか終われる) (オプション)
|
||||
|
||||
| script | script_script | スクリプトのリスト | スクリプトポインタ (オプション) | script name with extension (can start or end with "*" as wildcard) (optional)
|
||||
|
||||
| tcl | tcl_script | スクリプトのリスト | スクリプトポインタ (オプション) | スクリプト名 (ワイルドカードとして "*" で始めるか終われる) (オプション)
|
||||
|
||||
| weechat | bar | バーのリスト | バーポインタ (オプション) | バー名 (ワイルドカードとして "*" で始めるか終われる) (オプション)
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
[[command_script_script]]
|
||||
[command]*`script`* WeeChat scripts manager::
|
||||
........................................
|
||||
/script list
|
||||
show <script>
|
||||
load|unload <script> [<script>...]
|
||||
install|remove|hold <script> [<script>...]
|
||||
upgrade
|
||||
update
|
||||
|
||||
list: list loaded scripts (all languages)
|
||||
show: show detailed info about a script
|
||||
load: load script(s)
|
||||
unload: unload script(s)
|
||||
install: install/upgrade script(s)
|
||||
remove: remove script(s)
|
||||
hold: hold/unhold script(s) (a script held will not be upgraded any more and cannot be removed)
|
||||
upgrade: upgrade all installed scripts which are obsolete (new version available)
|
||||
update: update local scripts cache
|
||||
|
||||
Without argument, this command opens a buffer with list of scripts.
|
||||
|
||||
On script buffer, the possible status for each script are:
|
||||
* i H r N
|
||||
| | | | |
|
||||
| | | | obsolete (new version available)
|
||||
| | | running (loaded)
|
||||
| | held
|
||||
| installed
|
||||
popular script
|
||||
|
||||
Keys on script buffer:
|
||||
alt+i install script
|
||||
alt+r remove script
|
||||
alt+l load script
|
||||
alt+u unload script
|
||||
alt+h (un)hold script
|
||||
|
||||
Input allowed on script buffer:
|
||||
q close buffer
|
||||
r refresh buffer
|
||||
s:x,y sort buffer using keys x and y (see /help script.look.sort)
|
||||
s: reset sort (use default sort)
|
||||
word(s) filter scripts: search word(s) in scripts (description, tags, ...)
|
||||
* remove filter
|
||||
........................................
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -218,20 +218,13 @@ Debianのようにいくつかのディストリビューションでは、プ
|
||||
見つかったプラグインは自動的に読み込まれます(プラグイン/スクリプトの読み込み
|
||||
有効/無効はWeeChatのドキュメントを参照してください)。
|
||||
|
||||
いくつかのプラグインによって、WeeChatでスクリプト(Perl、Python、Ruby、Lua、Tclなど多くの
|
||||
言語)を使うことができるようになります。これらのプラグインは `/plugin`
|
||||
コマンドで読み込む必要があり、 `/perl` のようなコマンドが提供されます。
|
||||
// TRANSLATION MISSING
|
||||
Many external scripts (from contributors) are available for WeeChat:
|
||||
http://www.weechat.org/scripts
|
||||
|
||||
WeeChatには(ユーザから提供された)多くの外部プラグイン/スクリプトが用意
|
||||
されています: http://www.weechat.org/scripts
|
||||
|
||||
スクリプト 'weeget.py' をインストールする簡単な方法:
|
||||
|
||||
. `mkdir -p ~/.weechat/python/autoload`
|
||||
. `cd ~/.weechat/python/autoload`
|
||||
. `wget http://weechat.org/files/scripts/weeget.py`
|
||||
. スクリプトを読み込む: `/python autoload`
|
||||
. 一覧機能を使う: `/weeget list` (ヘルプ: `/help weeget`)
|
||||
// TRANSLATION MISSING
|
||||
You can manage scripts in WeeChat with command `/script` (see `/help script`
|
||||
for more info).
|
||||
|
||||
|
||||
[[more_doc]]
|
||||
|
||||
+45
-25
@@ -83,11 +83,13 @@ WeeChat は cmake または autotools を使ってコンパイルできます (c
|
||||
| cmake | | *yes* | ビルド (autotools でも可能ですが、cmake を推奨します)
|
||||
| libncursesw5-dev ^(2)^ | | *yes* | ncurses インターフェイス
|
||||
| libcurl4-gnutls-dev | | *yes* | URL 転送
|
||||
| gettext | | | 国際化 (メッセージの翻訳; ベース言語は英語です)
|
||||
| libgcrypt11-dev | | | DH-BLOWFISH メカニズムを用いた IRC サーバ用の SASL 認証
|
||||
// TRANSLATION MISSING
|
||||
| zlib1g-dev | | *yes* | relay プラグインでパケットを圧縮 (weechat プロトコル), script plugin
|
||||
// TRANSLATION MISSING
|
||||
| libgcrypt11-dev | | *yes* | DH-BLOWFISH メカニズムを用いた IRC サーバ用の SASL 認証, script plugin
|
||||
| libgnutls-dev | ≥ 2.2.0 | | IRC サーバへの SSL 接続
|
||||
| gettext | | | 国際化 (メッセージの翻訳; ベース言語は英語です)
|
||||
| ca-certificates | | | SSL 接続に必要な証明書、relay プラグインで SSL サポート
|
||||
| zlib1g-dev | | | relay プラグインでパケットを圧縮 (weechat プロトコル)
|
||||
| libaspell-dev | | | aspell プラグイン
|
||||
| python-dev | ≥ 2.5 ^(3)^ | | python プラグイン
|
||||
| libperl-dev | | | perl プラグイン
|
||||
@@ -741,29 +743,32 @@ irc サーバ "freenode" に含まれる全てのバッファに対して設定
|
||||
|
||||
以下のキーは "マウス" モード (マウスイベントが発生したとき) でのみ有効です。
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[width="100%",cols="^.^3,^.^3,^.^3,.^10,.^8l",options="header"]
|
||||
|========================================
|
||||
| ボタン | ジェスチャー | エリア | 説明 | コマンド
|
||||
| ◾◽◽ | - | チャット | ウィンドウに移動 | /window ${_window_number}
|
||||
| ◾◽◽ | 左 | チャット | 前のバッファに移動 | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | 右 | チャット | 次のバッファに移動 | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | 左 (長く) | チャット | 最初のバッファに移動 | /window ${_window_number};/buffer 1
|
||||
| ◾◽◽ | 右 (長く) | チャット | 最後のバッファに移動 | /window ${_window_number};/input jump_last_buffer
|
||||
| ホイール ⇑ | - | チャット | バッファ履歴を上方向にスクロール | /window scroll_up -window ${_window_number}
|
||||
| ホイール ⇓ | - | チャット | バッファ履歴を下方向にスクロール | /window scroll_down -window ${_window_number}
|
||||
| ◾◽◽ | 上 | ニックネームリスト | ニックネームリストを 1 ページ分上方向にスクロール | /bar scroll nicklist ${_window_number} -100%
|
||||
| ◾◽◽ | 下 | ニックネームリスト | ニックネームリストを 1 ページ分下方向にスクロール | /bar scroll nicklist ${_window_number} +100%
|
||||
| ◾◽◽ | 上 (長く) | ニックネームリスト | ニックネームリストの最初に移動 | /bar scroll nicklist ${_window_number} b
|
||||
| ◾◽◽ | 下 (長く) | ニックネームリスト | ニックネームリストの最後に移動 | /bar scroll nicklist ${_window_number} e
|
||||
| ◾◽◽ | - | ニックネームリスト | ニックネームに対するクエリを開く | /window ${_window_number};/query ${nick}
|
||||
| ◽◽◾ | - | ニックネームリスト | ニックネームに対する whois を行う | /window ${_window_number};/whois ${nick}
|
||||
| ◾◽◽ | 左 | ニックネームリスト | ニックネームをキックする | /window ${_window_number};/kick ${nick}
|
||||
| ◾◽◽ | 左 (長く) | ニックネームリスト | ニックネームをキックとバンする | /window ${_window_number};/kickban ${nick}
|
||||
| ◽◽◾ | 左 | ニックネームリスト | ニックネームをバンする | /window ${_window_number};/ban ${nick}
|
||||
| ◽◽◾ | - | 入力 | マウスイベントを奪ってコマンドラインにコードを入力 | /input grab_mouse_area
|
||||
| ホイール ⇑ | - | 任意のバー | バーを -10% スクロール | /bar scroll ${_bar_name} ${_window_number} -20%
|
||||
| ホイール ⇓ | - | 任意のバー | バーを +10% スクロール | /bar scroll ${_bar_name} ${_window_number} +20%
|
||||
| ◽◾◽ | - | 任意の場所 | この場所でカーソルモードを開始 | /cursor go ${_x},${_y}
|
||||
| ボタン | ジェスチャー | エリア | 説明 | コマンド
|
||||
| ◾◽◽ | - | チャット | ウィンドウに移動 | /window ${_window_number}
|
||||
| ◾◽◽ | 左 | チャット | 前のバッファに移動 | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | 右 | チャット | 次のバッファに移動 | /window ${_window_number};/buffer +1
|
||||
| ◾◽◽ | 左 (長く) | チャット | 最初のバッファに移動 | /window ${_window_number};/buffer 1
|
||||
| ◾◽◽ | 右 (長く) | チャット | 最後のバッファに移動 | /window ${_window_number};/input jump_last_buffer
|
||||
| ホイール ⇑ | - | チャット | バッファ履歴を上方向にスクロール | /window scroll_up -window ${_window_number}
|
||||
| ホイール ⇓ | - | チャット | バッファ履歴を下方向にスクロール | /window scroll_down -window ${_window_number}
|
||||
| ホイール ⇑ | - | chat (script buffer) | Move 5 lines up in script buffer | /script up 5
|
||||
| ホイール ⇓ | - | chat (script buffer) | Move 5 lines down in script buffer | /script down 5
|
||||
| ◾◽◽ | 上 | ニックネームリスト | ニックネームリストを 1 ページ分上方向にスクロール | /bar scroll nicklist ${_window_number} -100%
|
||||
| ◾◽◽ | 下 | ニックネームリスト | ニックネームリストを 1 ページ分下方向にスクロール | /bar scroll nicklist ${_window_number} +100%
|
||||
| ◾◽◽ | 上 (長く) | ニックネームリスト | ニックネームリストの最初に移動 | /bar scroll nicklist ${_window_number} b
|
||||
| ◾◽◽ | 下 (長く) | ニックネームリスト | ニックネームリストの最後に移動 | /bar scroll nicklist ${_window_number} e
|
||||
| ◾◽◽ | - | ニックネームリスト | ニックネームに対するクエリを開く | /window ${_window_number};/query ${nick}
|
||||
| ◽◽◾ | - | ニックネームリスト | ニックネームに対する whois を行う | /window ${_window_number};/whois ${nick}
|
||||
| ◾◽◽ | 左 | ニックネームリスト | ニックネームをキックする | /window ${_window_number};/kick ${nick}
|
||||
| ◾◽◽ | 左 (長く) | ニックネームリスト | ニックネームをキックとバンする | /window ${_window_number};/kickban ${nick}
|
||||
| ◽◽◾ | 左 | ニックネームリスト | ニックネームをバンする | /window ${_window_number};/ban ${nick}
|
||||
| ◽◽◾ | - | 入力 | マウスイベントを奪ってコマンドラインにコードを入力 | /input grab_mouse_area
|
||||
| ホイール ⇑ | - | 任意のバー | バーを -10% スクロール | /bar scroll ${_bar_name} ${_window_number} -20%
|
||||
| ホイール ⇓ | - | 任意のバー | バーを +10% スクロール | /bar scroll ${_bar_name} ${_window_number} +20%
|
||||
| ◽◾◽ | - | 任意の場所 | この場所でカーソルモードを開始 | /cursor go ${_x},${_y}
|
||||
|========================================
|
||||
|
||||
[[mouse]]
|
||||
@@ -2074,10 +2079,25 @@ WeeChat は 6 種類のスクリプトプラグインを備えています: Pyth
|
||||
(scheme)。
|
||||
これらのプラグインでそれぞれの言語で書かれたスクリプトのロード、実行、アンロードができます。
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Another plugin called "script" is a scripts manager and is used to load/unload
|
||||
scripts of any language, and install/remove scripts of WeeChat scripts
|
||||
repository, which are visible at this URL: http://www.weechat.org/scripts
|
||||
|
||||
スクリプトの書き方やスクリプト用の WeeChat API についての詳しい情報は、
|
||||
'WeeChat スクリプト製作ガイド' を参照してください。
|
||||
|
||||
WeeChat 用のスクリプトは以下のページから入手できます: http://www.weechat.org/scripts
|
||||
// TRANSLATION MISSING
|
||||
[[script_options]]
|
||||
Script options (script.conf)
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
include::autogen/user/script_options.txt[]
|
||||
|
||||
[[script_commands]]
|
||||
==== Script コマンド ====
|
||||
|
||||
include::autogen/user/script_commands.txt[]
|
||||
|
||||
[[python_commands]]
|
||||
==== Python コマンド ====
|
||||
|
||||
@@ -222,20 +222,12 @@ Wtyczki są automatycznie ładowane, kiedy zostaną wykryte (proszę spojrzeć d
|
||||
dokumentacji WeeChat, aby się dowiedzieć jak ładować/wyładowywać wtyczki lub
|
||||
skrypty).
|
||||
|
||||
Niektóre wtyczki pozwalają na używanie skryptów w WeeChat (w wielu językach jak Perl,
|
||||
Python, Ruby, Lua oraz Tcl). Te wtyczki muszą być załadowane za pomocą komendy
|
||||
`/plugin`, dostarczają one komendy jak `/perl`, używane do ładowania skryptów.
|
||||
Wiele zewnętrznych skryptów (od społeczności) jest dostępnych dla WeeChat:
|
||||
http://www.weechat.org/scripts
|
||||
|
||||
Wiele zewnętrznych wtyczek/skryptów (od społeczności) jest dostępnych dla
|
||||
WeeChat: http://www.weechat.org/scripts
|
||||
|
||||
Najprostszym sposobem na instalowanie skryptów jest użycie skryptu 'weeget.py':
|
||||
|
||||
. `mkdir -p ~/.weechat/python/autoload`
|
||||
. `cd ~/.weechat/python/autoload`
|
||||
. `wget http://weechat.org/files/scripts/weeget.py`
|
||||
. załaduj skrypt: `/python autoload`
|
||||
. lista skryptów: `/weeget list` (dla pomocy: `/help weeget`)
|
||||
// TRANSLATION MISSING
|
||||
You can manage scripts in WeeChat with command `/script` (see `/help script`
|
||||
for more info).
|
||||
|
||||
|
||||
[[more_doc]]
|
||||
|
||||
@@ -221,20 +221,12 @@ WeeChat использует стандартные значения для вс
|
||||
Плагины автоматические загружаются если они найдены (пожалуйста,
|
||||
посмотрите документацию о load/unload плагинов или скиптов)
|
||||
|
||||
Некоторые плагины, позволяют использовать скрипты на других языках
|
||||
(Perl, Python, Lua, Ruby, Tcl). Эти плагины должны быть загружены командой
|
||||
`/plugin`. Они добавляют такие команды как `/perl` для загрузки скриптов.
|
||||
Много пользовательских плагинов доступно для WeeChat:
|
||||
http://www.weechat.org/scripts
|
||||
|
||||
Много пользовательских скриптов/плагинов доступно для
|
||||
WeeChat: http://www.weechat.org/scripts
|
||||
|
||||
Простейший путь для установки скриптов - исползовать скрипт 'weeget.py':
|
||||
|
||||
. `mkdir -p ~/.weechat/python/autoload`
|
||||
. `cd ~/.weechat/python/autoload`
|
||||
. `wget http://weechat.org/files/scripts/weeget.py`
|
||||
. подгрузить скрипт в Weechat: `/python autoload`
|
||||
. скачайте список скриптов: `/weeget list` (for help: `/help weeget`)
|
||||
// TRANSLATION MISSING
|
||||
You can manage scripts in WeeChat with command `/script` (see `/help script`
|
||||
for more info).
|
||||
|
||||
|
||||
[[more_doc]]
|
||||
|
||||
+30
-14
@@ -111,6 +111,10 @@
|
||||
./src/plugins/fifo/fifo.h
|
||||
./src/plugins/fifo/fifo-info.c
|
||||
./src/plugins/fifo/fifo-info.h
|
||||
./src/plugins/guile/weechat-guile-api.c
|
||||
./src/plugins/guile/weechat-guile-api.h
|
||||
./src/plugins/guile/weechat-guile.c
|
||||
./src/plugins/guile/weechat-guile.h
|
||||
./src/plugins/irc/irc-bar-item.c
|
||||
./src/plugins/irc/irc-bar-item.h
|
||||
./src/plugins/irc/irc-buffer.c
|
||||
@@ -169,6 +173,10 @@
|
||||
./src/plugins/logger/logger-info.h
|
||||
./src/plugins/logger/logger-tail.c
|
||||
./src/plugins/logger/logger-tail.h
|
||||
./src/plugins/lua/weechat-lua-api.c
|
||||
./src/plugins/lua/weechat-lua-api.h
|
||||
./src/plugins/lua/weechat-lua.c
|
||||
./src/plugins/lua/weechat-lua.h
|
||||
./src/plugins/plugin-api.c
|
||||
./src/plugins/plugin-api.h
|
||||
./src/plugins/plugin.c
|
||||
@@ -217,18 +225,16 @@
|
||||
./src/plugins/rmodifier/rmodifier.h
|
||||
./src/plugins/rmodifier/rmodifier-info.c
|
||||
./src/plugins/rmodifier/rmodifier-info.h
|
||||
./src/plugins/guile/weechat-guile-api.c
|
||||
./src/plugins/guile/weechat-guile-api.h
|
||||
./src/plugins/guile/weechat-guile.c
|
||||
./src/plugins/guile/weechat-guile.h
|
||||
./src/plugins/lua/weechat-lua-api.c
|
||||
./src/plugins/lua/weechat-lua-api.h
|
||||
./src/plugins/lua/weechat-lua.c
|
||||
./src/plugins/lua/weechat-lua.h
|
||||
./src/plugins/perl/weechat-perl-api.c
|
||||
./src/plugins/perl/weechat-perl-api.h
|
||||
./src/plugins/perl/weechat-perl.c
|
||||
./src/plugins/perl/weechat-perl.h
|
||||
./src/plugins/plugin-script.c
|
||||
./src/plugins/plugin-script.h
|
||||
./src/plugins/plugin-script-api.c
|
||||
./src/plugins/plugin-script-api.h
|
||||
./src/plugins/plugin-script-callback.c
|
||||
./src/plugins/plugin-script-callback.h
|
||||
./src/plugins/python/weechat-python-api.c
|
||||
./src/plugins/python/weechat-python-api.h
|
||||
./src/plugins/python/weechat-python.c
|
||||
@@ -237,12 +243,22 @@
|
||||
./src/plugins/ruby/weechat-ruby-api.h
|
||||
./src/plugins/ruby/weechat-ruby.c
|
||||
./src/plugins/ruby/weechat-ruby.h
|
||||
./src/plugins/plugin-script-api.c
|
||||
./src/plugins/plugin-script-api.h
|
||||
./src/plugins/plugin-script.c
|
||||
./src/plugins/plugin-script-callback.c
|
||||
./src/plugins/plugin-script-callback.h
|
||||
./src/plugins/plugin-script.h
|
||||
./src/plugins/script/script.c
|
||||
./src/plugins/script/script.h
|
||||
./src/plugins/script/script-action.c
|
||||
./src/plugins/script/script-action.h
|
||||
./src/plugins/script/script-buffer.c
|
||||
./src/plugins/script/script-buffer.h
|
||||
./src/plugins/script/script-command.c
|
||||
./src/plugins/script/script-command.h
|
||||
./src/plugins/script/script-completion.c
|
||||
./src/plugins/script/script-completion.h
|
||||
./src/plugins/script/script-config.c
|
||||
./src/plugins/script/script-config.h
|
||||
./src/plugins/script/script-info.c
|
||||
./src/plugins/script/script-info.h
|
||||
./src/plugins/script/script-repo.c
|
||||
./src/plugins/script/script-repo.h
|
||||
./src/plugins/tcl/weechat-tcl-api.c
|
||||
./src/plugins/tcl/weechat-tcl-api.h
|
||||
./src/plugins/tcl/weechat-tcl.c
|
||||
|
||||
+408
-70
File diff suppressed because it is too large
Load Diff
+22
-6
@@ -230,6 +230,12 @@ SET(WEECHAT_SOURCES
|
||||
./src/plugins/perl/weechat-perl-api.h
|
||||
./src/plugins/perl/weechat-perl.c
|
||||
./src/plugins/perl/weechat-perl.h
|
||||
./src/plugins/plugin-script.c
|
||||
./src/plugins/plugin-script.h
|
||||
./src/plugins/plugin-script-api.c
|
||||
./src/plugins/plugin-script-api.h
|
||||
./src/plugins/plugin-script-callback.c
|
||||
./src/plugins/plugin-script-callback.h
|
||||
./src/plugins/python/weechat-python-api.c
|
||||
./src/plugins/python/weechat-python-api.h
|
||||
./src/plugins/python/weechat-python.c
|
||||
@@ -238,12 +244,22 @@ SET(WEECHAT_SOURCES
|
||||
./src/plugins/ruby/weechat-ruby-api.h
|
||||
./src/plugins/ruby/weechat-ruby.c
|
||||
./src/plugins/ruby/weechat-ruby.h
|
||||
./src/plugins/plugin-script-api.c
|
||||
./src/plugins/plugin-script-api.h
|
||||
./src/plugins/plugin-script.c
|
||||
./src/plugins/plugin-script-callback.c
|
||||
./src/plugins/plugin-script-callback.h
|
||||
./src/plugins/plugin-script.h
|
||||
./src/plugins/script/script.c
|
||||
./src/plugins/script/script.h
|
||||
./src/plugins/script/script-action.c
|
||||
./src/plugins/script/script-action.h
|
||||
./src/plugins/script/script-buffer.c
|
||||
./src/plugins/script/script-buffer.h
|
||||
./src/plugins/script/script-command.c
|
||||
./src/plugins/script/script-command.h
|
||||
./src/plugins/script/script-completion.c
|
||||
./src/plugins/script/script-completion.h
|
||||
./src/plugins/script/script-config.c
|
||||
./src/plugins/script/script-config.h
|
||||
./src/plugins/script/script-info.c
|
||||
./src/plugins/script/script-info.h
|
||||
./src/plugins/script/script-repo.c
|
||||
./src/plugins/script/script-repo.h
|
||||
./src/plugins/tcl/weechat-tcl-api.c
|
||||
./src/plugins/tcl/weechat-tcl-api.h
|
||||
./src/plugins/tcl/weechat-tcl.c
|
||||
|
||||
+370
-67
File diff suppressed because it is too large
Load Diff
+5
-13
@@ -90,13 +90,9 @@ IF(ENABLE_NLS)
|
||||
ENDIF(ENABLE_NLS)
|
||||
|
||||
# Check for libgcrypt
|
||||
IF(ENABLE_GCRYPT)
|
||||
FIND_PACKAGE(Gcrypt)
|
||||
IF(GCRYPT_FOUND)
|
||||
ADD_DEFINITIONS(-DHAVE_GCRYPT)
|
||||
LIST(APPEND EXTRA_LIBS "${GCRYPT_LDFLAGS}")
|
||||
ENDIF(GCRYPT_FOUND)
|
||||
ENDIF(ENABLE_GCRYPT)
|
||||
FIND_PACKAGE(Gcrypt REQUIRED)
|
||||
ADD_DEFINITIONS(-DHAVE_GCRYPT)
|
||||
LIST(APPEND EXTRA_LIBS "${GCRYPT_LDFLAGS}")
|
||||
|
||||
# Check for GnuTLS
|
||||
IF(ENABLE_GNUTLS)
|
||||
@@ -112,12 +108,8 @@ IF(ENABLE_GNUTLS)
|
||||
ENDIF(ENABLE_GNUTLS)
|
||||
|
||||
# Check for zlib
|
||||
IF(ENABLE_ZLIB)
|
||||
FIND_PACKAGE(ZLIB)
|
||||
IF(ZLIB_FOUND)
|
||||
ADD_DEFINITIONS(-DHAVE_ZLIB)
|
||||
ENDIF(ZLIB_FOUND)
|
||||
ENDIF(ENABLE_ZLIB)
|
||||
FIND_PACKAGE(ZLIB REQUIRED)
|
||||
ADD_DEFINITIONS(-DHAVE_ZLIB)
|
||||
|
||||
# Check for iconv
|
||||
FIND_PACKAGE(Iconv)
|
||||
|
||||
@@ -37,15 +37,12 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#include <errno.h>
|
||||
#include <gcrypt.h>
|
||||
|
||||
#ifdef HAVE_GNUTLS
|
||||
#include <gnutls/gnutls.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GCRYPT
|
||||
#include <gcrypt.h>
|
||||
#endif
|
||||
|
||||
#include "weechat.h"
|
||||
#include "wee-network.h"
|
||||
#include "wee-hook.h"
|
||||
@@ -121,14 +118,12 @@ network_init ()
|
||||
}
|
||||
#endif /* HAVE_GNUTLS */
|
||||
|
||||
#ifdef HAVE_GCRYPT
|
||||
if (!weechat_no_gcrypt)
|
||||
{
|
||||
gcry_check_version (GCRYPT_VERSION);
|
||||
gcry_control (GCRYCTL_DISABLE_SECMEM, 0);
|
||||
gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
|
||||
}
|
||||
#endif /* HAVE_GCRYPT */
|
||||
|
||||
network_init_ok = 1;
|
||||
}
|
||||
|
||||
@@ -266,6 +266,8 @@ gui_key_default_bindings (int context)
|
||||
BIND("@chat:button1-gesture-right-long", "/window ${_window_number};/input jump_last_buffer");
|
||||
BIND("@chat:wheelup", "/window scroll_up -window ${_window_number}");
|
||||
BIND("@chat:wheeldown", "/window scroll_down -window ${_window_number}");
|
||||
BIND("@chat(script.scripts):wheelup", "/script up 5");
|
||||
BIND("@chat(script.scripts):wheeldown", "/script down 5");
|
||||
/* mouse events on nicklist */
|
||||
BIND("@bar(nicklist):button1-gesture-up", "/bar scroll nicklist ${_window_number} -100%");
|
||||
BIND("@bar(nicklist):button1-gesture-down", "/bar scroll nicklist ${_window_number} +100%");
|
||||
|
||||
@@ -82,6 +82,10 @@ IF(ENABLE_RMODIFIER)
|
||||
ADD_SUBDIRECTORY( rmodifier )
|
||||
ENDIF(ENABLE_RMODIFIER)
|
||||
|
||||
IF(ENABLE_SCRIPT)
|
||||
ADD_SUBDIRECTORY( script )
|
||||
ENDIF(ENABLE_SCRIPT)
|
||||
|
||||
IF(ENABLE_XFER)
|
||||
ADD_SUBDIRECTORY( xfer )
|
||||
ENDIF(ENABLE_XFER)
|
||||
|
||||
@@ -75,6 +75,10 @@ if PLUGIN_RMODIFIER
|
||||
rmodifier_dir = rmodifier
|
||||
endif
|
||||
|
||||
if PLUGIN_SCRIPT
|
||||
script_dir = script
|
||||
endif
|
||||
|
||||
if PLUGIN_XFER
|
||||
xfer_dir = xfer
|
||||
endif
|
||||
@@ -104,7 +108,7 @@ guile_dir = guile
|
||||
endif
|
||||
|
||||
SUBDIRS = . $(alias_dir) $(aspell_dir) $(charset_dir) $(demo_dir) $(fifo_dir) \
|
||||
$(irc_dir) $(logger_dir) $(relay_dir) $(rmodifier_dir) \
|
||||
$(irc_dir) $(logger_dir) $(relay_dir) $(rmodifier_dir) $(script_dir) \
|
||||
$(xfer_dir) $(perl_dir) $(python_dir) $(ruby_dir) $(lua_dir) \
|
||||
$(tcl_dir) $(guile_dir)
|
||||
|
||||
|
||||
@@ -52,9 +52,7 @@ IF(GNUTLS_FOUND)
|
||||
LIST(APPEND LINK_LIBS ${GNUTLS_LIBRARY})
|
||||
ENDIF(GNUTLS_FOUND)
|
||||
|
||||
IF(GCRYPT_FOUND)
|
||||
LIST(APPEND LINK_LIBS gcrypt)
|
||||
ENDIF(GCRYPT_FOUND)
|
||||
LIST(APPEND LINK_LIBS gcrypt)
|
||||
|
||||
TARGET_LINK_LIBRARIES(irc ${LINK_LIBS})
|
||||
|
||||
|
||||
@@ -331,19 +331,8 @@ IRC_PROTOCOL_CALLBACK(cap)
|
||||
IRC_SERVER_OPTION_SASL_MECHANISM))
|
||||
{
|
||||
case IRC_SASL_MECHANISM_DH_BLOWFISH:
|
||||
#ifdef HAVE_GCRYPT
|
||||
irc_server_sendf (server, 0, NULL,
|
||||
"AUTHENTICATE DH-BLOWFISH");
|
||||
#else
|
||||
weechat_printf (server->buffer,
|
||||
_("%s%s: cannot authenticate with SASL "
|
||||
"and mechanism DH-BLOWFISH because "
|
||||
"WeeChat was not built with "
|
||||
"libgcrypt support"),
|
||||
weechat_prefix ("error"),
|
||||
IRC_PLUGIN_NAME);
|
||||
irc_server_sendf (server, 0, NULL, "CAP END");
|
||||
#endif
|
||||
break;
|
||||
case IRC_SASL_MECHANISM_EXTERNAL:
|
||||
irc_server_sendf (server, 0, NULL,
|
||||
|
||||
@@ -26,10 +26,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#ifdef HAVE_GCRYPT
|
||||
#include <gcrypt.h>
|
||||
#endif
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
@@ -91,7 +88,6 @@ irc_sasl_mechanism_dh_blowfish (const char *data_base64,
|
||||
const char *sasl_username,
|
||||
const char *sasl_password)
|
||||
{
|
||||
#ifdef HAVE_GCRYPT
|
||||
char *data, *answer, *ptr_answer, *answer_base64;
|
||||
unsigned char *ptr_data, *secret_bin, *public_bin;
|
||||
unsigned char *password_clear, *password_crypted;
|
||||
@@ -245,12 +241,4 @@ end:
|
||||
gcry_mpi_release (secret_mpi);
|
||||
|
||||
return answer_base64;
|
||||
#else
|
||||
/* make C compiler happy */
|
||||
(void) data_base64;
|
||||
(void) sasl_username;
|
||||
(void) sasl_password;
|
||||
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -37,9 +37,7 @@ SET_TARGET_PROPERTIES(relay PROPERTIES PREFIX "")
|
||||
|
||||
SET (LINK_LIBS)
|
||||
|
||||
IF(ZLIB_FOUND)
|
||||
LIST(APPEND LINK_LIBS ${ZLIB_LIBRARY})
|
||||
ENDIF(ZLIB_FOUND)
|
||||
LIST(APPEND LINK_LIBS ${ZLIB_LIBRARY})
|
||||
|
||||
IF(GNUTLS_FOUND)
|
||||
INCLUDE_DIRECTORIES(${GNUTLS_INCLUDE_PATH})
|
||||
|
||||
@@ -30,10 +30,7 @@
|
||||
#include <sys/time.h>
|
||||
#include <errno.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#ifdef HAVE_ZLIB
|
||||
#include <zlib.h>
|
||||
#endif
|
||||
|
||||
#include "../../weechat-plugin.h"
|
||||
#include "../relay.h"
|
||||
@@ -964,7 +961,6 @@ relay_weechat_msg_send (struct t_relay_client *client,
|
||||
{
|
||||
uint32_t size32;
|
||||
char compression;
|
||||
#ifdef HAVE_ZLIB
|
||||
int rc;
|
||||
Bytef *dest;
|
||||
uLongf dest_size;
|
||||
@@ -1009,7 +1005,8 @@ relay_weechat_msg_send (struct t_relay_client *client,
|
||||
free (dest);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* compression with zlib failed (or not asked), send uncompressed message */
|
||||
|
||||
/* set size and compression flag */
|
||||
size32 = htonl ((uint32_t)msg->data_size);
|
||||
|
||||
@@ -201,11 +201,7 @@ relay_weechat_alloc (struct t_relay_client *client)
|
||||
if (client->protocol_data)
|
||||
{
|
||||
RELAY_WEECHAT_DATA(client, password_ok) = (password && password[0]) ? 0 : 1;
|
||||
#ifdef HAVE_ZLIB
|
||||
RELAY_WEECHAT_DATA(client, compression) = 1;
|
||||
#else
|
||||
RELAY_WEECHAT_DATA(client, compression) = 0;
|
||||
#endif
|
||||
RELAY_WEECHAT_DATA(client, buffers_sync) =
|
||||
weechat_hashtable_new (16,
|
||||
WEECHAT_HASHTABLE_STRING,
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
#
|
||||
# Copyright (C) 2003-2012 Sebastien 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/>.
|
||||
#
|
||||
|
||||
ADD_LIBRARY(script MODULE
|
||||
script.c script.h
|
||||
script-action.c script-action.h
|
||||
script-buffer.c script-buffer.h
|
||||
script-command.c script-command.h
|
||||
script-completion.c script-completion.h
|
||||
script-config.c script-config.h
|
||||
script-info.c script-info.h
|
||||
script-repo.c script-repo.h)
|
||||
SET_TARGET_PROPERTIES(script PROPERTIES PREFIX "")
|
||||
|
||||
SET (LINK_LIBS)
|
||||
|
||||
IF(ZLIB_FOUND)
|
||||
LIST(APPEND LINK_LIBS ${ZLIB_LIBRARY})
|
||||
ENDIF(ZLIB_FOUND)
|
||||
|
||||
IF(GCRYPT_FOUND)
|
||||
LIST(APPEND LINK_LIBS gcrypt)
|
||||
ENDIF(GCRYPT_FOUND)
|
||||
|
||||
TARGET_LINK_LIBRARIES(script ${LINK_LIBS})
|
||||
|
||||
INSTALL(TARGETS script LIBRARY DESTINATION ${LIBDIR}/plugins)
|
||||
@@ -0,0 +1,46 @@
|
||||
#
|
||||
# Copyright (C) 2003-2012 Sebastien 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/>.
|
||||
#
|
||||
|
||||
INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\" $(ZLIB_CFLAGS) $(GCRYPT_CFLAGS)
|
||||
|
||||
libdir = ${weechat_libdir}/plugins
|
||||
|
||||
lib_LTLIBRARIES = script.la
|
||||
|
||||
script_la_SOURCES = script.c \
|
||||
script.h \
|
||||
script-action.c \
|
||||
script-action.h \
|
||||
script-buffer.c \
|
||||
script-buffer.h \
|
||||
script-command.c \
|
||||
script-command.h \
|
||||
script-completion.c \
|
||||
script-completion.h \
|
||||
script-config.c \
|
||||
script-config.h \
|
||||
script-info.c \
|
||||
script-info.h \
|
||||
script-repo.c \
|
||||
script-repo.h
|
||||
|
||||
script_la_LDFLAGS = -module
|
||||
script_la_LIBADD = $(SCRIPT_LFLAGS) $(ZLIB_LFLAGS) $(GCRYPT_LFLAGS)
|
||||
|
||||
EXTRA_DIST = CMakeLists.txt
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 Sebastien 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/>.
|
||||
*/
|
||||
|
||||
#ifndef __WEECHAT_SCRIPT_ACTION_H
|
||||
#define __WEECHAT_SCRIPT_ACTION_H 1
|
||||
|
||||
extern char *script_actions;
|
||||
|
||||
extern int script_action_run ();
|
||||
extern void script_action_schedule (const char *action, int need_repository,
|
||||
int quiet);
|
||||
|
||||
#endif /* __WEECHAT_SCRIPT_ACTION_H */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 Sebastien 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/>.
|
||||
*/
|
||||
|
||||
#ifndef __WEECHAT_SCRIPT_BUFFER_H
|
||||
#define __WEECHAT_SCRIPT_BUFFER_H 1
|
||||
|
||||
#define SCRIPT_BUFFER_NAME "scripts"
|
||||
|
||||
struct t_repo_script;
|
||||
|
||||
extern struct t_gui_buffer *script_buffer;
|
||||
extern int script_buffer_selected_line;
|
||||
extern struct t_repo_script *script_buffer_detail_script;
|
||||
|
||||
extern void script_buffer_refresh (int clear);
|
||||
extern void script_buffer_set_current_line (int line);
|
||||
extern void script_buffer_show_detail_script (struct t_repo_script *script);
|
||||
extern void script_buffer_check_line_outside_window ();
|
||||
extern int script_buffer_window_scrolled_cb (void *data, const char *signal,
|
||||
const char *type_data,
|
||||
void *signal_data);
|
||||
extern int script_buffer_input_cb (void *data, struct t_gui_buffer *buffer,
|
||||
const char *input_data);
|
||||
extern int script_buffer_close_cb (void *data, struct t_gui_buffer *buffer);
|
||||
extern void script_buffer_set_callbacks ();
|
||||
extern void script_buffer_open ();
|
||||
|
||||
#endif /* __WEECHAT_SCRIPT_BUFFER_H */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 Sebastien 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/>.
|
||||
*/
|
||||
|
||||
#ifndef __WEECHAT_SCRIPT_COMMAND_H
|
||||
#define __WEECHAT_SCRIPT_COMMAND_H 1
|
||||
|
||||
extern void script_command_init ();
|
||||
|
||||
#endif /* __WEECHAT_SCRIPT_COMMAND_H */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 Sebastien 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/>.
|
||||
*/
|
||||
|
||||
#ifndef __WEECHAT_SCRIPT_COMPLETION_H
|
||||
#define __WEECHAT_SCRIPT_COMPLETION_H 1
|
||||
|
||||
extern void script_completion_init ();
|
||||
|
||||
#endif /* __WEECHAT_SCRIPT_COMPLETION_H */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 Sebastien 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/>.
|
||||
*/
|
||||
|
||||
#ifndef __WEECHAT_SCRIPT_CONFIG_H
|
||||
#define __WEECHAT_SCRIPT_CONFIG_H 1
|
||||
|
||||
#define SCRIPT_CONFIG_NAME "script"
|
||||
|
||||
struct t_repo_script;
|
||||
|
||||
extern struct t_config_option *script_config_look_columns;
|
||||
extern struct t_config_option *script_config_look_sort;
|
||||
|
||||
extern struct t_config_option *script_config_color_status_popular;
|
||||
extern struct t_config_option *script_config_color_status_installed;
|
||||
extern struct t_config_option *script_config_color_status_held;
|
||||
extern struct t_config_option *script_config_color_status_running;
|
||||
extern struct t_config_option *script_config_color_status_obsolete;
|
||||
extern struct t_config_option *script_config_color_status_unknown;
|
||||
extern struct t_config_option *script_config_color_text;
|
||||
extern struct t_config_option *script_config_color_text_date;
|
||||
extern struct t_config_option *script_config_color_text_delimiters;
|
||||
extern struct t_config_option *script_config_color_text_description;
|
||||
extern struct t_config_option *script_config_color_text_extension;
|
||||
extern struct t_config_option *script_config_color_text_name;
|
||||
extern struct t_config_option *script_config_color_text_tags;
|
||||
extern struct t_config_option *script_config_color_text_version;
|
||||
extern struct t_config_option *script_config_color_text_version_loaded;
|
||||
extern struct t_config_option *script_config_color_text_bg;
|
||||
extern struct t_config_option *script_config_color_text_selected;
|
||||
extern struct t_config_option *script_config_color_text_date_selected;
|
||||
extern struct t_config_option *script_config_color_text_description_selected;
|
||||
extern struct t_config_option *script_config_color_text_extension_selected;
|
||||
extern struct t_config_option *script_config_color_text_name_selected;
|
||||
extern struct t_config_option *script_config_color_text_tags_selected;
|
||||
extern struct t_config_option *script_config_color_text_version_selected;
|
||||
extern struct t_config_option *script_config_color_text_version_loaded_selected;
|
||||
extern struct t_config_option *script_config_color_text_bg_selected;
|
||||
|
||||
extern struct t_config_option *script_config_scripts_cache_expire;
|
||||
extern struct t_config_option *script_config_scripts_dir;
|
||||
extern struct t_config_option *script_config_scripts_hold;
|
||||
extern struct t_config_option *script_config_scripts_url;
|
||||
|
||||
extern char *script_config_get_dir ();
|
||||
extern char *script_config_get_xml_filename ();
|
||||
extern char *script_config_get_script_download_filename (struct t_repo_script *script);
|
||||
extern void script_config_hold (const char *name_with_extension);
|
||||
extern void script_config_unhold (const char *name_with_extension);
|
||||
extern int script_config_init ();
|
||||
extern int script_config_read ();
|
||||
extern int script_config_write ();
|
||||
extern void script_config_free ();
|
||||
|
||||
#endif /* __WEECHAT_SCRIPT_CONFIG_H */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 Sebastien 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/>.
|
||||
*/
|
||||
|
||||
#ifndef __WEECHAT_SCRIPT_INFO_H
|
||||
#define __WEECHAT_SCRIPT_INFO_H 1
|
||||
|
||||
extern void script_info_init ();
|
||||
|
||||
#endif /* __WEECHAT_SCRIPT_INFO_H */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 Sebastien 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/>.
|
||||
*/
|
||||
|
||||
#ifndef __WEECHAT_SCRIPT_REPO_H
|
||||
#define __WEECHAT_SCRIPT_REPO_H 1
|
||||
|
||||
/* status for script */
|
||||
#define SCRIPT_STATUS_INSTALLED 1
|
||||
#define SCRIPT_STATUS_HELD 2
|
||||
#define SCRIPT_STATUS_RUNNING 4
|
||||
#define SCRIPT_STATUS_NEW_VERSION 8
|
||||
|
||||
struct t_repo_script
|
||||
{
|
||||
char *name; /* script name */
|
||||
char *name_with_extension; /* script name with extension */
|
||||
int language; /* language index */
|
||||
char *author; /* author */
|
||||
char *mail; /* author's mail */
|
||||
char *version; /* plugin version */
|
||||
char *license; /* license */
|
||||
char *description; /* description */
|
||||
char *tags; /* comma-separated list of tags */
|
||||
char *requirements; /* requirements */
|
||||
char *min_weechat; /* min WeeChat version */
|
||||
char *max_weechat; /* max WeeChat version */
|
||||
char *md5sum; /* md5sum of script content */
|
||||
char *url; /* URL to download script */
|
||||
int popularity; /* >0 for popular scripts only */
|
||||
time_t date_added; /* date added */
|
||||
time_t date_updated; /* date updated */
|
||||
int status; /* installed/running/new version */
|
||||
char *version_loaded; /* version of script loaded */
|
||||
int displayed; /* script displayed? */
|
||||
int install_order; /* order for install script (if >0)*/
|
||||
struct t_repo_script *prev_script; /* link to previous script */
|
||||
struct t_repo_script *next_script; /* link to next script */
|
||||
};
|
||||
|
||||
extern struct t_repo_script *repo_scripts;
|
||||
extern struct t_repo_script *last_repo_script;
|
||||
extern int script_repo_count, script_repo_count_displayed;
|
||||
struct t_hashtable *script_repo_max_length_field;
|
||||
extern char *script_repo_filter;
|
||||
|
||||
extern int script_repo_script_valid (struct t_repo_script *script);
|
||||
extern struct t_repo_script *script_repo_search_displayed_by_number (int number);
|
||||
extern struct t_repo_script *script_repo_search_by_name (const char *name);
|
||||
extern struct t_repo_script *script_repo_search_by_name_ext (const char *name_with_extension);
|
||||
extern const char *script_repo_get_status_for_display (struct t_repo_script *script,
|
||||
const char *list,
|
||||
int collapse);
|
||||
extern void script_repo_remove_all ();
|
||||
extern void script_repo_update_status (struct t_repo_script *script);
|
||||
extern void script_repo_update_status_all ();
|
||||
extern int script_repo_file_exists ();
|
||||
extern int script_repo_file_is_uptodate ();
|
||||
extern int script_repo_file_read (int quiet);
|
||||
extern void script_repo_file_update (int quiet);
|
||||
extern void script_repo_filter_scripts (const char *search);
|
||||
extern struct t_hdata *script_repo_hdata_script_cb (void *data,
|
||||
const char *hdata_name);
|
||||
extern int script_repo_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_repo_script *script);
|
||||
extern void script_repo_print_log ();
|
||||
|
||||
#endif /* __WEECHAT_SCRIPT_REPO_H */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2012 Sebastien 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/>.
|
||||
*/
|
||||
|
||||
#ifndef __WEECHAT_SCRIPT_H
|
||||
#define __WEECHAT_SCRIPT_H 1
|
||||
|
||||
#define weechat_plugin weechat_script_plugin
|
||||
#define SCRIPT_PLUGIN_NAME "script"
|
||||
|
||||
extern struct t_weechat_plugin *weechat_script_plugin;
|
||||
|
||||
extern char *script_language[];
|
||||
extern char *script_extension[];
|
||||
extern struct t_hashtable *script_loaded;
|
||||
|
||||
extern int script_language_search (const char *language);
|
||||
extern int script_language_search_by_extension (const char *extension);
|
||||
extern void script_actions_add (const char *action);
|
||||
extern void script_get_loaded_scripts ();
|
||||
|
||||
#endif /* __WEECHAT_SCRIPT_H */
|
||||
Reference in New Issue
Block a user