mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 06:16:40 +02:00
Partial migration of Perl plugin to new API
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
DOMAIN = $(PACKAGE)
|
||||
subdir = po
|
||||
top_builddir = ..
|
||||
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=NG_:1,2 --no-location
|
||||
XGETTEXT_OPTIONS = --keyword=_ --keyword=weechat_gettext --keyword=N_ --keyword=NG_:1,2 --keyword=weechat_ngettext:1,2 --no-location
|
||||
COPYRIGHT_HOLDER =
|
||||
EXTRA_LOCALE_CATEGORIES =
|
||||
MSGID_BUGS_ADDRESS = flashcode@flashtux.org
|
||||
|
||||
+4
-1
@@ -126,7 +126,10 @@
|
||||
./src/plugins/plugin-infolist.c
|
||||
./src/plugins/plugin-infolist.h
|
||||
./src/plugins/scripts/lua/lua.c
|
||||
./src/plugins/scripts/perl/perl.c
|
||||
./src/plugins/scripts/perl/weechat-perl-api.c
|
||||
./src/plugins/scripts/perl/weechat-perl-api.h
|
||||
./src/plugins/scripts/perl/weechat-perl.c
|
||||
./src/plugins/scripts/perl/weechat-perl.h
|
||||
./src/plugins/scripts/python/python.c
|
||||
./src/plugins/scripts/ruby/ruby.c
|
||||
./src/plugins/scripts/script.c
|
||||
|
||||
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.2.7-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2008-01-06 12:35+0100\n"
|
||||
"POT-Creation-Date: 2008-01-09 15:15+0100\n"
|
||||
"PO-Revision-Date: 2007-09-06 12:44+0200\n"
|
||||
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1782,7 +1782,20 @@ msgid "%s%s: missing argument for \"%s\" command (try /help %s)"
|
||||
msgstr "%s chybí argumenty pro příkaz \"%s\"\n"
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, signal_data: %X"
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: '%s'"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%x"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"demo_signal: signal: %s, type_data: %s, signal_data: 0x%x (unknown type)"
|
||||
msgstr ""
|
||||
|
||||
msgid "print some messages on current ubffer"
|
||||
@@ -4071,6 +4084,130 @@ msgstr "Plugin \"%s\" odebrán.\n"
|
||||
msgid "Saving plugins configuration to disk"
|
||||
msgstr "Ukládám konfiguraci na disk\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: unable to register script \"%s\" (another script already exists with "
|
||||
"this name)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: registered script \"%s\", version %s (%s)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: error: %s"
|
||||
msgstr "%sServer: %s%s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: function \"%s\" must return one valid value (%d)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: function \"%s\" is internally misused"
|
||||
msgstr "%s plugin \"%s\" nenalezen\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: not enough memory in function \"%s\""
|
||||
msgstr "%s nedostatek paměti pro nové DCC\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: loading Perl script \"%s\""
|
||||
msgstr "sezeni: načítám server \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" not found"
|
||||
msgstr "%s server \"%s\" nenalezen\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to create new sub-interpreter"
|
||||
msgstr "%s nemohu vytvořit server\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: not enough memory to parse file \"%s\""
|
||||
msgstr "%s nedostatek paměti pro nové DCC\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to parse file \"%s\""
|
||||
msgstr "Nemůžu zapsat log soubor \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to run file \"%s\""
|
||||
msgstr "Nemůžu zapsat log soubor \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unknown error while loading file \"%s\""
|
||||
msgstr "Nemůžu zapsat log soubor \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: function \"register\" not found (or failed) in file \"%s\""
|
||||
msgstr ""
|
||||
"%s funkce \"weechat_plugin_init\" nebyla v pluginu \"%s\" nalezena, načtení "
|
||||
"selhalo\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unloading script \"%s\""
|
||||
msgstr "sezeni: načítám server \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" unloaded"
|
||||
msgstr "Plugin \"%s\" odebrán.\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" not loaded"
|
||||
msgstr "%s server \"%s\" nenalezen\n"
|
||||
|
||||
msgid "Registered Perl scripts:"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unknown option for command \"%s\""
|
||||
msgstr "%s neznámá volba pro příkaz \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to initialize Perl"
|
||||
msgstr "%s nemohu načíst plugin \"%s\"\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid "list/load/unload Perl scripts"
|
||||
msgstr "seznam/načíst/odebrat pluginy"
|
||||
|
||||
#, fuzzy
|
||||
msgid "[load filename] | [autoload] | [reload] | [unload [script]]"
|
||||
msgstr ""
|
||||
"[list [jméno]] | [listfull [jméno]] | [load jméno_souboru] | [autoload] | "
|
||||
"[reload [name]] | [unload [name]]"
|
||||
|
||||
msgid ""
|
||||
"filename: Perl script (file) to load\n"
|
||||
"script: script name to unload\n"
|
||||
"\n"
|
||||
"Without argument, /perl command lists all loaded Perl scripts."
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s: error loading script \"%s\" (not enough memory)"
|
||||
msgstr "%s nemohu načíst plugin \"%s\" (nedostatek paměti)\n"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to call function \"%s\", script is not initialized"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: wrong arguments for function \"%s\""
|
||||
msgstr "%s špatné parametry pro příkaz \"%s\"\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s%s: scripts unloaded"
|
||||
#~ msgstr "FIFO roura zavřena\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s%s: plugin ended"
|
||||
#~ msgstr "FIFO roura je otevřena\n"
|
||||
|
||||
#~ msgid "%s cannot find nick for sending message\n"
|
||||
#~ msgstr "%s nemohu najít přezdívku pro poslání zprávy\n"
|
||||
|
||||
@@ -4464,9 +4601,6 @@ msgstr "Ukládám konfiguraci na disk\n"
|
||||
#~ msgid "server name not found"
|
||||
#~ msgstr "jméno serveru nenalezeno"
|
||||
|
||||
#~ msgid "session: loading server \"%s\"\n"
|
||||
#~ msgstr "sezeni: načítám server \"%s\"\n"
|
||||
|
||||
#~ msgid "server found, updating values\n"
|
||||
#~ msgstr "server nalezen, aktualizuji hodnoty\n"
|
||||
|
||||
@@ -4780,24 +4914,10 @@ msgstr "Ukládám konfiguraci na disk\n"
|
||||
#~ msgstr ""
|
||||
#~ "%s nemohu načíst plugin \"%s\": plugin se stejným jménem již existuje\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s function \"%s\" not found in protocol \"%s\", failed to load\n"
|
||||
#~ msgstr ""
|
||||
#~ "%s funkce \"weechat_plugin_init\" nebyla v pluginu \"%s\" nalezena, "
|
||||
#~ "načtení selhalo\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Initializing protocol \"%s\" %s\n"
|
||||
#~ msgstr "Inicializuji plugin \"%s\" %s\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s unable to initialize protocol \"%s\"\n"
|
||||
#~ msgstr "%s nemohu načíst plugin \"%s\"\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s unable to load protocol \"%s\" (not enough memory)\n"
|
||||
#~ msgstr "%s nemohu načíst plugin \"%s\" (nedostatek paměti)\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Protocol \"%s\" (%s) loaded.\n"
|
||||
#~ msgstr "Plugin \"%s\" (%s) načten.\n"
|
||||
@@ -5044,9 +5164,6 @@ msgstr "Ukládám konfiguraci na disk\n"
|
||||
#~ "%s neznámý příkaz \"%s\" (zadejte /help pro nápovědu). Pro zasílání "
|
||||
#~ "neznámých příkazů na IRC server povolte volbu irc_send_unknown_commands.\n"
|
||||
|
||||
#~ msgid "%sServer: %s%s\n"
|
||||
#~ msgstr "%sServer: %s%s\n"
|
||||
|
||||
#~ msgid "%snot connected\n"
|
||||
#~ msgstr "%snepřipojen\n"
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.2.7-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2008-01-06 12:35+0100\n"
|
||||
"POT-Creation-Date: 2008-01-09 15:15+0100\n"
|
||||
"PO-Revision-Date: 2007-09-06 12:44+0200\n"
|
||||
"Last-Translator: Thomas Schuetz <i18n@internet-villa.de>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1786,7 +1786,20 @@ msgid "%s%s: missing argument for \"%s\" command (try /help %s)"
|
||||
msgstr "%s fehlende Argumente für den \"%s\"-Befehl\n"
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, signal_data: %X"
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: '%s'"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%x"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"demo_signal: signal: %s, type_data: %s, signal_data: 0x%x (unknown type)"
|
||||
msgstr ""
|
||||
|
||||
msgid "print some messages on current ubffer"
|
||||
@@ -4068,6 +4081,130 @@ msgstr "Plugin \"%s\" entladen.\n"
|
||||
msgid "Saving plugins configuration to disk"
|
||||
msgstr "Konfiguration wird gespeichert\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: unable to register script \"%s\" (another script already exists with "
|
||||
"this name)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: registered script \"%s\", version %s (%s)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: error: %s"
|
||||
msgstr "%sServer: %s%s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: function \"%s\" must return one valid value (%d)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: function \"%s\" is internally misused"
|
||||
msgstr "%s Plugin \"%s\" nicht gefunden\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: not enough memory in function \"%s\""
|
||||
msgstr "%s nicht genug Speicher für neuen DCC\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: loading Perl script \"%s\""
|
||||
msgstr "Sitzung: Lade Server \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" not found"
|
||||
msgstr "%s Server \"%s\" nicht gefunden\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to create new sub-interpreter"
|
||||
msgstr "%s kann den Server nicht anlegen\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: not enough memory to parse file \"%s\""
|
||||
msgstr "%s nicht genug Speicher für neuen DCC\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to parse file \"%s\""
|
||||
msgstr "Kann das Logfile nicht schreiben\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to run file \"%s\""
|
||||
msgstr "Kann das Logfile nicht schreiben\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unknown error while loading file \"%s\""
|
||||
msgstr "Kann das Logfile nicht schreiben\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: function \"register\" not found (or failed) in file \"%s\""
|
||||
msgstr ""
|
||||
"%s Funktion \"weechat_plugin_init\" nicht in Plugin \"%s\" gefunden Laden "
|
||||
"gescheitert\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unloading script \"%s\""
|
||||
msgstr "Sitzung: Lade Server \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" unloaded"
|
||||
msgstr "Plugin \"%s\" entladen.\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" not loaded"
|
||||
msgstr "%s Server \"%s\" nicht gefunden\n"
|
||||
|
||||
msgid "Registered Perl scripts:"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unknown option for command \"%s\""
|
||||
msgstr "%s unbekannte Option für den \"%s\"-Befehl\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to initialize Perl"
|
||||
msgstr "%s kann das Plugin \"%s\" nicht initialisieren\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid "list/load/unload Perl scripts"
|
||||
msgstr "auflisten/laden/entladen von Plugins"
|
||||
|
||||
#, fuzzy
|
||||
msgid "[load filename] | [autoload] | [reload] | [unload [script]]"
|
||||
msgstr ""
|
||||
"[list [Name]] | [listfull [Name]] | [load Dateiname] | [autoload] | [reload "
|
||||
"[Name]] | [unload [Name]]"
|
||||
|
||||
msgid ""
|
||||
"filename: Perl script (file) to load\n"
|
||||
"script: script name to unload\n"
|
||||
"\n"
|
||||
"Without argument, /perl command lists all loaded Perl scripts."
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s: error loading script \"%s\" (not enough memory)"
|
||||
msgstr "%s kann das Plugin \"%s\" nicht laden (Speichermangel)\n"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to call function \"%s\", script is not initialized"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: wrong arguments for function \"%s\""
|
||||
msgstr "%s fehlerhafte Argumente für der \"%s\"-Befehl\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s%s: scripts unloaded"
|
||||
#~ msgstr "FIFO geschlossen\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s%s: plugin ended"
|
||||
#~ msgstr "FIFO ist offen\n"
|
||||
|
||||
#~ msgid "%s cannot find nick for sending message\n"
|
||||
#~ msgstr ""
|
||||
#~ "%s kann keinen Nickname finden, an den die Nachricht gesendet werden "
|
||||
@@ -4461,9 +4598,6 @@ msgstr "Konfiguration wird gespeichert\n"
|
||||
#~ msgid "server name not found"
|
||||
#~ msgstr "Servernamen nicht gefunden"
|
||||
|
||||
#~ msgid "session: loading server \"%s\"\n"
|
||||
#~ msgstr "Sitzung: Lade Server \"%s\"\n"
|
||||
|
||||
#~ msgid "server found, updating values\n"
|
||||
#~ msgstr "Server gefunden, Werte werden aktualisiert\n"
|
||||
|
||||
@@ -4782,24 +4916,10 @@ msgstr "Konfiguration wird gespeichert\n"
|
||||
#~ "%s kann Plugin \"%s\" nicht laden: ein gleichnamiges Plugin existiert "
|
||||
#~ "bereits\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s function \"%s\" not found in protocol \"%s\", failed to load\n"
|
||||
#~ msgstr ""
|
||||
#~ "%s Funktion \"weechat_plugin_init\" nicht in Plugin \"%s\" gefunden Laden "
|
||||
#~ "gescheitert\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Initializing protocol \"%s\" %s\n"
|
||||
#~ msgstr "Initialisiere Plugin \"%s\" %s\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s unable to initialize protocol \"%s\"\n"
|
||||
#~ msgstr "%s kann das Plugin \"%s\" nicht initialisieren\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s unable to load protocol \"%s\" (not enough memory)\n"
|
||||
#~ msgstr "%s kann das Plugin \"%s\" nicht laden (Speichermangel)\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Protocol \"%s\" (%s) loaded.\n"
|
||||
#~ msgstr "Plugin \"%s\" (%s) geladen.\n"
|
||||
@@ -5050,9 +5170,6 @@ msgstr "Konfiguration wird gespeichert\n"
|
||||
#~ "Befehle an den IRC-Server zu senden, muss die Option "
|
||||
#~ "irc_send_unknown_commands aktiviert werden.\n"
|
||||
|
||||
#~ msgid "%sServer: %s%s\n"
|
||||
#~ msgstr "%sServer: %s%s\n"
|
||||
|
||||
#~ msgid "%snot connected\n"
|
||||
#~ msgstr "%snicht verbunden\n"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.2.7-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2008-01-06 12:35+0100\n"
|
||||
"POT-Creation-Date: 2008-01-09 15:15+0100\n"
|
||||
"PO-Revision-Date: 2007-09-19 12:09+0200\n"
|
||||
"Last-Translator: Roberto González Cardenete <robert.glez@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1770,7 +1770,20 @@ msgid "%s%s: missing argument for \"%s\" command (try /help %s)"
|
||||
msgstr "%s faltan argumentos para el comando \"%s\"\n"
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, signal_data: %X"
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: '%s'"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%x"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"demo_signal: signal: %s, type_data: %s, signal_data: 0x%x (unknown type)"
|
||||
msgstr ""
|
||||
|
||||
msgid "print some messages on current ubffer"
|
||||
@@ -4082,6 +4095,129 @@ msgstr "Plugin \"%s\" descargado.\n"
|
||||
msgid "Saving plugins configuration to disk"
|
||||
msgstr "Guardar configuración a disco\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: unable to register script \"%s\" (another script already exists with "
|
||||
"this name)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: registered script \"%s\", version %s (%s)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: error: %s"
|
||||
msgstr "%sServidor: %s%s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: function \"%s\" must return one valid value (%d)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: function \"%s\" is internally misused"
|
||||
msgstr "%s plugin \"%s\" no encontrado\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: not enough memory in function \"%s\""
|
||||
msgstr "%s no hay memoria suficiente para un nuevo DCC\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: loading Perl script \"%s\""
|
||||
msgstr "sesión: cargando servidor \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" not found"
|
||||
msgstr "%s servidor \"%s\" no encontrado\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to create new sub-interpreter"
|
||||
msgstr "%s no es posible crear el servidor\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: not enough memory to parse file \"%s\""
|
||||
msgstr "%s no hay memoria suficiente para un nuevo DCC\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to parse file \"%s\""
|
||||
msgstr "No es posible escribir un fichero de log para un búfer\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to run file \"%s\""
|
||||
msgstr "No es posible escribir un fichero de log para un búfer\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unknown error while loading file \"%s\""
|
||||
msgstr "No es posible escribir un fichero de log para un búfer\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: function \"register\" not found (or failed) in file \"%s\""
|
||||
msgstr ""
|
||||
"%s función \"weechat_plugin_init\" no encontrada en el plugin \"%s\", "
|
||||
"falló al cargar\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unloading script \"%s\""
|
||||
msgstr "sesión: cargando servidor \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" unloaded"
|
||||
msgstr "Plugin \"%s\" descargado.\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" not loaded"
|
||||
msgstr "%s servidor \"%s\" no encontrado\n"
|
||||
|
||||
msgid "Registered Perl scripts:"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unknown option for command \"%s\""
|
||||
msgstr "%s opción desconocida para el comando \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to initialize Perl"
|
||||
msgstr "%s no ha sido posible inicializar el plugin \"%s\"\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid "list/load/unload Perl scripts"
|
||||
msgstr "listar/cargar/descargar plugins"
|
||||
|
||||
#, fuzzy
|
||||
msgid "[load filename] | [autoload] | [reload] | [unload [script]]"
|
||||
msgstr "[cargar fichero] | [autocargar] | [recargar] | [descargar]"
|
||||
|
||||
msgid ""
|
||||
"filename: Perl script (file) to load\n"
|
||||
"script: script name to unload\n"
|
||||
"\n"
|
||||
"Without argument, /perl command lists all loaded Perl scripts."
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s: error loading script \"%s\" (not enough memory)"
|
||||
msgstr ""
|
||||
"%s no ha sido posible cargar el plugin \"%s\" (no hay suficiente memoria)\n"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to call function \"%s\", script is not initialized"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: wrong arguments for function \"%s\""
|
||||
msgstr "%s argumentos incorrectos para el comando \"%s\"\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s%s: scripts unloaded"
|
||||
#~ msgstr "La tuberÃa FIFO está cerrada\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s%s: plugin ended"
|
||||
#~ msgstr "La tuberÃa FIFO está abierta\n"
|
||||
|
||||
#~ msgid "%s cannot find nick for sending message\n"
|
||||
#~ msgstr ""
|
||||
#~ "%s no ha sido posible encontrar el usuario al que enviar el mensaje\n"
|
||||
@@ -4490,9 +4626,6 @@ msgstr "Guardar configuración a disco\n"
|
||||
#~ msgid "server name not found"
|
||||
#~ msgstr "nombre de servidor no encontrado"
|
||||
|
||||
#~ msgid "session: loading server \"%s\"\n"
|
||||
#~ msgstr "sesión: cargando servidor \"%s\"\n"
|
||||
|
||||
#~ msgid "server found, updating values\n"
|
||||
#~ msgstr "servidor encontrado, actualizando valores\n"
|
||||
|
||||
@@ -4824,26 +4957,10 @@ msgstr "Guardar configuración a disco\n"
|
||||
#~ "%s no ha sido posible cargar el plugin \"%s\": un plugin con el mismo "
|
||||
#~ "nombre ya existe\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s function \"%s\" not found in protocol \"%s\", failed to load\n"
|
||||
#~ msgstr ""
|
||||
#~ "%s función \"weechat_plugin_init\" no encontrada en el plugin \"%s\", "
|
||||
#~ "falló al cargar\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Initializing protocol \"%s\" %s\n"
|
||||
#~ msgstr "Inicializando plugin \"%s\" %s\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s unable to initialize protocol \"%s\"\n"
|
||||
#~ msgstr "%s no ha sido posible inicializar el plugin \"%s\"\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s unable to load protocol \"%s\" (not enough memory)\n"
|
||||
#~ msgstr ""
|
||||
#~ "%s no ha sido posible cargar el plugin \"%s\" (no hay suficiente "
|
||||
#~ "memoria)\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Protocol \"%s\" (%s) loaded.\n"
|
||||
#~ msgstr "Plugin \"%s\" (%s) cargado.\n"
|
||||
@@ -5082,9 +5199,6 @@ msgstr "Guardar configuración a disco\n"
|
||||
#~ msgstr ""
|
||||
#~ "%s el comando \"%s\" no puede ejecutarse en el búfer de charla DCC\n"
|
||||
|
||||
#~ msgid "%sServer: %s%s\n"
|
||||
#~ msgstr "%sServidor: %s%s\n"
|
||||
|
||||
#~ msgid "%snot connected\n"
|
||||
#~ msgstr "%sno conectado\n"
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.2.7-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2008-01-06 12:35+0100\n"
|
||||
"PO-Revision-Date: 2008-01-06 12:36+0100\n"
|
||||
"POT-Creation-Date: 2008-01-09 15:15+0100\n"
|
||||
"PO-Revision-Date: 2008-01-09 15:17+0100\n"
|
||||
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -1676,8 +1676,22 @@ msgid "%s%s: missing argument for \"%s\" command (try /help %s)"
|
||||
msgstr "%s%s: paramètre manquant pour la commande \"%s\" (essayez /help %s)"
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, signal_data: %X"
|
||||
msgstr "demo_signal: signal: %s, signal_data: %X"
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: '%s'"
|
||||
msgstr "demo_signal: signal: %s, type_data: %s, signal_data: '%s'"
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d"
|
||||
msgstr "demo_signal: signal: %s, type_data: %s, signal_data: %d"
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%x"
|
||||
msgstr "demo_signal: signal: %s, type_data: %s, signal_data: 0x%x"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"demo_signal: signal: %s, type_data: %s, signal_data: 0x%x (unknown type)"
|
||||
msgstr ""
|
||||
"demo_signal: signal: %s, type_data: %s, signal_data: 0x%x (type inconnu)"
|
||||
|
||||
msgid "print some messages on current ubffer"
|
||||
msgstr "affiche des messages sur le tampon courant"
|
||||
@@ -3990,8 +4004,122 @@ msgstr "%sExtension \"%s\" déchargée"
|
||||
msgid "Saving plugins configuration to disk"
|
||||
msgstr "Sauvegarde de la configuration des extensions sur disque"
|
||||
|
||||
#~ msgid "%s cannot find nick for sending message\n"
|
||||
#~ msgstr "%s impossible de trouver le pseudo pour envoyer le message\n"
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: unable to register script \"%s\" (another script already exists with "
|
||||
"this name)"
|
||||
msgstr ""
|
||||
"%s%s: impossible d'utiliser le script \"%s\" (un autre script existe avec le "
|
||||
"même nom)"
|
||||
|
||||
#~ msgid "Nicks %s%s%s: %s["
|
||||
#~ msgstr "Pseudos %s%s%s: %s["
|
||||
#, c-format
|
||||
msgid "%s%s: registered script \"%s\", version %s (%s)"
|
||||
msgstr "%s%s: script \"%s\" chargé, version %s (%s)"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: error: %s"
|
||||
msgstr "%s%s: erreur: %s"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: function \"%s\" must return one valid value (%d)"
|
||||
msgstr "%s%s: la fonction \"%s\" doit retourner une valeur valide (%d)"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: function \"%s\" is internally misused"
|
||||
msgstr "%s%s: la fonction \"%s\" est mal utilisée en interne"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: not enough memory in function \"%s\""
|
||||
msgstr "%s%s: pas assez de mémoire dans la fonction \"%s\""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: loading Perl script \"%s\""
|
||||
msgstr "%s%s: chargement du script Perl \"%s\""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: script \"%s\" not found"
|
||||
msgstr "%s%s: script \"%s\" non trouvé"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to create new sub-interpreter"
|
||||
msgstr "%s%s: impossible de créer le sous-interpréteur"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: not enough memory to parse file \"%s\""
|
||||
msgstr "%s%s: mémoire insuffisante pour lire le fichier \"%s\""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to parse file \"%s\""
|
||||
msgstr "%s%s: impossible de lire le fichier \"%s\""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to run file \"%s\""
|
||||
msgstr "%s%s: impossible de lancer le fichier \"%s\""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unknown error while loading file \"%s\""
|
||||
msgstr "%s%s: erreur inconnue en chargeant le fichier \"%s\""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: function \"register\" not found (or failed) in file \"%s\""
|
||||
msgstr ""
|
||||
"%s%s: fonction \"register\" non trouvée (ou a échoué) dans le fichier \"%s\""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unloading script \"%s\""
|
||||
msgstr "%s%s: déchargement du script \"%s\""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: script \"%s\" unloaded"
|
||||
msgstr "%s%s: script \"%s\" déchargé"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: script \"%s\" not loaded"
|
||||
msgstr "%s%s: script \"%s\" non chargé"
|
||||
|
||||
msgid "Registered Perl scripts:"
|
||||
msgstr "Scripts Perl chargés:"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unknown option for command \"%s\""
|
||||
msgstr "%s%s: option inconnue pour la commande \"%s\""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to initialize Perl"
|
||||
msgstr "%s%s: impossible d'initialiser Perl"
|
||||
|
||||
msgid "list/load/unload Perl scripts"
|
||||
msgstr "liste/charge/décharge des scripts Perl"
|
||||
|
||||
msgid "[load filename] | [autoload] | [reload] | [unload [script]]"
|
||||
msgstr "[load fichier] | [autoload] | [reload] | [unload [script]]"
|
||||
|
||||
msgid ""
|
||||
"filename: Perl script (file) to load\n"
|
||||
"script: script name to unload\n"
|
||||
"\n"
|
||||
"Without argument, /perl command lists all loaded Perl scripts."
|
||||
msgstr ""
|
||||
"fichier: script Perl (fichier) à charger\n"
|
||||
"script: nom du script à décharger\n"
|
||||
"\n"
|
||||
"Sans argument, la commande /perl liste tous les scripts Perl chargés."
|
||||
|
||||
#, c-format
|
||||
msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)"
|
||||
msgstr ""
|
||||
"%s: erreur de chargement du script \"%s\" (mauvais nom, les espaces sont "
|
||||
"interdits)"
|
||||
|
||||
#, c-format
|
||||
msgid "%s: error loading script \"%s\" (not enough memory)"
|
||||
msgstr "%s: erreur de chargement du script \"%s\" (mémoire insuffisante)"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to call function \"%s\", script is not initialized"
|
||||
msgstr ""
|
||||
"%s%s: impossible d'appeler la fonction \"%s\", le script n'est pas initialisé"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: wrong arguments for function \"%s\""
|
||||
msgstr "%s%s: paramètres invalides pour la fonction \"%s\""
|
||||
|
||||
@@ -12,7 +12,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.2.7-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2008-01-06 12:35+0100\n"
|
||||
"POT-Creation-Date: 2008-01-09 15:15+0100\n"
|
||||
"PO-Revision-Date: 2007-10-10 18:07+0200\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1789,7 +1789,20 @@ msgid "%s%s: missing argument for \"%s\" command (try /help %s)"
|
||||
msgstr "%s hiányzó argumentum a \"%s\" parancsnak\n"
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, signal_data: %X"
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: '%s'"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%x"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"demo_signal: signal: %s, type_data: %s, signal_data: 0x%x (unknown type)"
|
||||
msgstr ""
|
||||
|
||||
msgid "print some messages on current ubffer"
|
||||
@@ -4071,6 +4084,130 @@ msgstr "A \"%s\" modul eltávolítva.\n"
|
||||
msgid "Saving plugins configuration to disk"
|
||||
msgstr "Beállítások mentése a lemezre\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: unable to register script \"%s\" (another script already exists with "
|
||||
"this name)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: registered script \"%s\", version %s (%s)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: error: %s"
|
||||
msgstr "%sSzerver: %s%s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: function \"%s\" must return one valid value (%d)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: function \"%s\" is internally misused"
|
||||
msgstr "%s a \"%s\" modul nem található\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: not enough memory in function \"%s\""
|
||||
msgstr "%s nincs elegendő memória új DCC számára\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: loading Perl script \"%s\""
|
||||
msgstr "folyamat: \"%s\" szerver betöltése\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" not found"
|
||||
msgstr "%s a \"%s\" szerver nem található\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to create new sub-interpreter"
|
||||
msgstr "%s nem sikerült a szervert létrehozni\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: not enough memory to parse file \"%s\""
|
||||
msgstr "%s nincs elegendő memória új DCC számára\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to parse file \"%s\""
|
||||
msgstr "Nem sikerült a(z) \"%s\" naplófájlt írni\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to run file \"%s\""
|
||||
msgstr "Nem sikerült a(z) \"%s\" naplófájlt írni\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unknown error while loading file \"%s\""
|
||||
msgstr "Nem sikerült a(z) \"%s\" naplófájlt írni\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: function \"register\" not found (or failed) in file \"%s\""
|
||||
msgstr ""
|
||||
"%s a \"weechat_plugin_init\" függvény nem található a \"%s\" modulban, "
|
||||
"betöltés sikertelen\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unloading script \"%s\""
|
||||
msgstr "folyamat: \"%s\" szerver betöltése\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" unloaded"
|
||||
msgstr "A \"%s\" modul eltávolítva.\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" not loaded"
|
||||
msgstr "%s a \"%s\" szerver nem található\n"
|
||||
|
||||
msgid "Registered Perl scripts:"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unknown option for command \"%s\""
|
||||
msgstr "%s ismeretlen opció a \"%s\" parancsnak\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to initialize Perl"
|
||||
msgstr "%s nem sikerült a modult betölteni \"%s\"\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid "list/load/unload Perl scripts"
|
||||
msgstr "modulok listázása/betöltése/eltávolítása"
|
||||
|
||||
#, fuzzy
|
||||
msgid "[load filename] | [autoload] | [reload] | [unload [script]]"
|
||||
msgstr ""
|
||||
"[list [név]] | [listfull [név]] | [load fájlnév] | [autoload] | [reload "
|
||||
"[név]] | [unload [név]]"
|
||||
|
||||
msgid ""
|
||||
"filename: Perl script (file) to load\n"
|
||||
"script: script name to unload\n"
|
||||
"\n"
|
||||
"Without argument, /perl command lists all loaded Perl scripts."
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s: error loading script \"%s\" (not enough memory)"
|
||||
msgstr "%s nem sikerült a modult betölteni \"%s\" (nincs elég memória)\n"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to call function \"%s\", script is not initialized"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: wrong arguments for function \"%s\""
|
||||
msgstr "%s rossz argumentum a \"%s\" parancsnak\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s%s: scripts unloaded"
|
||||
#~ msgstr "FIFO cső bezárva\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s%s: plugin ended"
|
||||
#~ msgstr "FIFO cső nyitva\n"
|
||||
|
||||
#~ msgid "%s cannot find nick for sending message\n"
|
||||
#~ msgstr "%s nem található név az üzenet küldéséhez\n"
|
||||
|
||||
@@ -4459,9 +4596,6 @@ msgstr "Beállítások mentése a lemezre\n"
|
||||
#~ msgid "server name not found"
|
||||
#~ msgstr "a szerver neve nem található"
|
||||
|
||||
#~ msgid "session: loading server \"%s\"\n"
|
||||
#~ msgstr "folyamat: \"%s\" szerver betöltése\n"
|
||||
|
||||
#~ msgid "server found, updating values\n"
|
||||
#~ msgstr "megvan a szerver, értékek frissítése\n"
|
||||
|
||||
@@ -4776,24 +4910,10 @@ msgstr "Beállítások mentése a lemezre\n"
|
||||
#~ msgstr ""
|
||||
#~ "%s nem sikerült a \"%s\" modult betölteni: már van ilyen nevű modul\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s function \"%s\" not found in protocol \"%s\", failed to load\n"
|
||||
#~ msgstr ""
|
||||
#~ "%s a \"weechat_plugin_init\" függvény nem található a \"%s\" modulban, "
|
||||
#~ "betöltés sikertelen\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Initializing protocol \"%s\" %s\n"
|
||||
#~ msgstr "Modul betöltése: \"%s\" %s\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s unable to initialize protocol \"%s\"\n"
|
||||
#~ msgstr "%s nem sikerült a modult betölteni \"%s\"\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s unable to load protocol \"%s\" (not enough memory)\n"
|
||||
#~ msgstr "%s nem sikerült a modult betölteni \"%s\" (nincs elég memória)\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Protocol \"%s\" (%s) loaded.\n"
|
||||
#~ msgstr "A \"%s\" (%s) modul betöltve.\n"
|
||||
@@ -5042,9 +5162,6 @@ msgstr "Beállítások mentése a lemezre\n"
|
||||
#~ "ismeretlen parancsokat kíván küldeni az IRC szervernek, engedélyezze az "
|
||||
#~ "irc_send_unknown_commands opciót!\n"
|
||||
|
||||
#~ msgid "%sServer: %s%s\n"
|
||||
#~ msgstr "%sSzerver: %s%s\n"
|
||||
|
||||
#~ msgid "%snot connected\n"
|
||||
#~ msgstr "%snincs csatlakozva\n"
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.2.7-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2008-01-06 12:35+0100\n"
|
||||
"POT-Creation-Date: 2008-01-09 15:15+0100\n"
|
||||
"PO-Revision-Date: 2007-09-06 12:44+0200\n"
|
||||
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1791,7 +1791,20 @@ msgid "%s%s: missing argument for \"%s\" command (try /help %s)"
|
||||
msgstr "%s нет аргументов для \"%s\" команды\n"
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, signal_data: %X"
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: '%s'"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%x"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"demo_signal: signal: %s, type_data: %s, signal_data: 0x%x (unknown type)"
|
||||
msgstr ""
|
||||
|
||||
msgid "print some messages on current ubffer"
|
||||
@@ -4053,6 +4066,130 @@ msgstr "Plugin \"%s\" выгружен.\n"
|
||||
msgid "Saving plugins configuration to disk"
|
||||
msgstr "Сохраняю конфигурацию\n"
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: unable to register script \"%s\" (another script already exists with "
|
||||
"this name)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: registered script \"%s\", version %s (%s)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: error: %s"
|
||||
msgstr "%sСервер: %s%s\n"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: function \"%s\" must return one valid value (%d)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: function \"%s\" is internally misused"
|
||||
msgstr "%s plugin \"%s\" не найден\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: not enough memory in function \"%s\""
|
||||
msgstr "%s недостаточно памяти для нового DCC\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: loading Perl script \"%s\""
|
||||
msgstr "сессия: загружаю сервер \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" not found"
|
||||
msgstr "%s сервер \"%s\" не найден\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to create new sub-interpreter"
|
||||
msgstr "%s не могу создать сервер\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: not enough memory to parse file \"%s\""
|
||||
msgstr "%s недостаточно памяти для нового DCC\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to parse file \"%s\""
|
||||
msgstr "Не могу записать лог-файл \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to run file \"%s\""
|
||||
msgstr "Не могу записать лог-файл \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unknown error while loading file \"%s\""
|
||||
msgstr "Не могу записать лог-файл \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: function \"register\" not found (or failed) in file \"%s\""
|
||||
msgstr ""
|
||||
"%s функция \"weechat_plugin_init\" не найдена в plugin'е \"%s\", загрузка не "
|
||||
"удалась\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unloading script \"%s\""
|
||||
msgstr "сессия: загружаю сервер \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" unloaded"
|
||||
msgstr "Plugin \"%s\" выгружен.\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: script \"%s\" not loaded"
|
||||
msgstr "%s сервер \"%s\" не найден\n"
|
||||
|
||||
msgid "Registered Perl scripts:"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unknown option for command \"%s\""
|
||||
msgstr "%s неизвестный параметр для команды \"%s\"\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: unable to initialize Perl"
|
||||
msgstr "%s не могу инициализировать plugin \"%s\"\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid "list/load/unload Perl scripts"
|
||||
msgstr "перечислить/загрузить/выгрузить plugin'ы"
|
||||
|
||||
#, fuzzy
|
||||
msgid "[load filename] | [autoload] | [reload] | [unload [script]]"
|
||||
msgstr ""
|
||||
"[list [имя]] | [listfull [имя]] | [load имя_файла] | [autoload] | [reload "
|
||||
"[имя]] | [unload [имя]]"
|
||||
|
||||
msgid ""
|
||||
"filename: Perl script (file) to load\n"
|
||||
"script: script name to unload\n"
|
||||
"\n"
|
||||
"Without argument, /perl command lists all loaded Perl scripts."
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s: error loading script \"%s\" (not enough memory)"
|
||||
msgstr "%s не могу загрузить plugin \"%s\" (недостаточно памяти)\n"
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to call function \"%s\", script is not initialized"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%s%s: wrong arguments for function \"%s\""
|
||||
msgstr "%s некорректные аргументы команды \"%s\"\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s%s: scripts unloaded"
|
||||
#~ msgstr "FIFO pipe закрыт\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s%s: plugin ended"
|
||||
#~ msgstr "FIFO pipe открыт\n"
|
||||
|
||||
#~ msgid "%s cannot find nick for sending message\n"
|
||||
#~ msgstr "%s не могу найти адресата сообщения\n"
|
||||
|
||||
@@ -4451,9 +4588,6 @@ msgstr "Сохраняю конфигурацию\n"
|
||||
#~ msgid "server name not found"
|
||||
#~ msgstr "имя сервера не найдено"
|
||||
|
||||
#~ msgid "session: loading server \"%s\"\n"
|
||||
#~ msgstr "сессия: загружаю сервер \"%s\"\n"
|
||||
|
||||
#~ msgid "server found, updating values\n"
|
||||
#~ msgstr "сервер найден, обновляю значения\n"
|
||||
|
||||
@@ -4777,24 +4911,10 @@ msgstr "Сохраняю конфигурацию\n"
|
||||
#~ msgstr ""
|
||||
#~ "%s не могу загрузить plugin \"%s\": одноимённый plugin уже существует\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s function \"%s\" not found in protocol \"%s\", failed to load\n"
|
||||
#~ msgstr ""
|
||||
#~ "%s функция \"weechat_plugin_init\" не найдена в plugin'е \"%s\", загрузка "
|
||||
#~ "не удалась\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Initializing protocol \"%s\" %s\n"
|
||||
#~ msgstr "Запускаю plugin \"%s\" %s\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s unable to initialize protocol \"%s\"\n"
|
||||
#~ msgstr "%s не могу инициализировать plugin \"%s\"\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "%s unable to load protocol \"%s\" (not enough memory)\n"
|
||||
#~ msgstr "%s не могу загрузить plugin \"%s\" (недостаточно памяти)\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Protocol \"%s\" (%s) loaded.\n"
|
||||
#~ msgstr "Plugin \"%s\" (%s) загружен.\n"
|
||||
@@ -5046,9 +5166,6 @@ msgstr "Сохраняю конфигурацию\n"
|
||||
#~ "неизвестных команд IRC серверу включите параметр "
|
||||
#~ "irc_send_unknown_commands.\n"
|
||||
|
||||
#~ msgid "%sServer: %s%s\n"
|
||||
#~ msgstr "%sСервер: %s%s\n"
|
||||
|
||||
#~ msgid "%snot connected\n"
|
||||
#~ msgstr "%sне подключен\n"
|
||||
|
||||
|
||||
+4
-1
@@ -127,7 +127,10 @@ SET(WEECHAT_SOURCES
|
||||
./src/plugins/plugin-infolist.c
|
||||
./src/plugins/plugin-infolist.h
|
||||
./src/plugins/scripts/lua/lua.c
|
||||
./src/plugins/scripts/perl/perl.c
|
||||
./src/plugins/scripts/perl/weechat-perl-api.c
|
||||
./src/plugins/scripts/perl/weechat-perl-api.h
|
||||
./src/plugins/scripts/perl/weechat-perl.c
|
||||
./src/plugins/scripts/perl/weechat-perl.h
|
||||
./src/plugins/scripts/python/python.c
|
||||
./src/plugins/scripts/ruby/ruby.c
|
||||
./src/plugins/scripts/script.c
|
||||
|
||||
+125
-2
@@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2008-01-06 12:35+0100\n"
|
||||
"POT-Creation-Date: 2008-01-09 15:15+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@@ -1473,7 +1473,20 @@ msgid "%s%s: missing argument for \"%s\" command (try /help %s)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, signal_data: %X"
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: '%s'"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: %d"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "demo_signal: signal: %s, type_data: %s, signal_data: 0x%x"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"demo_signal: signal: %s, type_data: %s, signal_data: 0x%x (unknown type)"
|
||||
msgstr ""
|
||||
|
||||
msgid "print some messages on current ubffer"
|
||||
@@ -3524,3 +3537,113 @@ msgstr ""
|
||||
|
||||
msgid "Saving plugins configuration to disk"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid ""
|
||||
"%s%s: unable to register script \"%s\" (another script already exists with "
|
||||
"this name)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: registered script \"%s\", version %s (%s)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: error: %s"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: function \"%s\" must return one valid value (%d)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: function \"%s\" is internally misused"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: not enough memory in function \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: loading Perl script \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: script \"%s\" not found"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to create new sub-interpreter"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: not enough memory to parse file \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to parse file \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to run file \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unknown error while loading file \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: function \"register\" not found (or failed) in file \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unloading script \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: script \"%s\" unloaded"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: script \"%s\" not loaded"
|
||||
msgstr ""
|
||||
|
||||
msgid "Registered Perl scripts:"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unknown option for command \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to initialize Perl"
|
||||
msgstr ""
|
||||
|
||||
msgid "list/load/unload Perl scripts"
|
||||
msgstr ""
|
||||
|
||||
msgid "[load filename] | [autoload] | [reload] | [unload [script]]"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"filename: Perl script (file) to load\n"
|
||||
"script: script name to unload\n"
|
||||
"\n"
|
||||
"Without argument, /perl command lists all loaded Perl scripts."
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s: error loading script \"%s\" (bad name, spaces are forbidden)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s: error loading script \"%s\" (not enough memory)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: unable to call function \"%s\", script is not initialized"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%s%s: wrong arguments for function \"%s\""
|
||||
msgstr ""
|
||||
|
||||
@@ -475,7 +475,8 @@ command_debug (void *data, struct t_gui_buffer *buffer,
|
||||
}
|
||||
else
|
||||
{
|
||||
hook_signal_send ("debug", argv_eol[1]);
|
||||
hook_signal_send ("debug",
|
||||
WEECHAT_HOOK_SIGNAL_STRING, argv_eol[1]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1142,6 +1143,7 @@ command_quit (void *data, struct t_gui_buffer *buffer,
|
||||
(void) argv;
|
||||
|
||||
hook_signal_send ("quit",
|
||||
WEECHAT_HOOK_SIGNAL_STRING,
|
||||
(argc > 1) ?
|
||||
argv_eol[1] : CONFIG_STRING(config_look_default_msg_quit));
|
||||
|
||||
@@ -1186,7 +1188,7 @@ command_reload (void *data, struct t_gui_buffer *buffer,
|
||||
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
|
||||
|
||||
/* tell to plugins to reload their configuration */
|
||||
hook_signal_send ("config_reload", NULL);
|
||||
hook_signal_send ("config_reload", WEECHAT_HOOK_SIGNAL_STRING, NULL);
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
+20
-20
@@ -1399,38 +1399,38 @@ config_file_print_log ()
|
||||
ptr_config_file = ptr_config_file->next_config)
|
||||
{
|
||||
log_printf ("");
|
||||
log_printf ("[config (addr:0x%X)]", ptr_config_file);
|
||||
log_printf (" plugin . . . . . . . . : 0x%X", ptr_config_file->plugin);
|
||||
log_printf ("[config (addr:0x%x)]", ptr_config_file);
|
||||
log_printf (" plugin . . . . . . . . : 0x%x", ptr_config_file->plugin);
|
||||
log_printf (" filename . . . . . . . : '%s'", ptr_config_file->filename);
|
||||
log_printf (" file . . . . . . . . . : 0x%X", ptr_config_file->file);
|
||||
log_printf (" sections . . . . . . . : 0x%X", ptr_config_file->sections);
|
||||
log_printf (" last_section . . . . . : 0x%X", ptr_config_file->last_section);
|
||||
log_printf (" prev_config. . . . . . : 0x%X", ptr_config_file->prev_config);
|
||||
log_printf (" next_config. . . . . . : 0x%X", ptr_config_file->next_config);
|
||||
log_printf (" file . . . . . . . . . : 0x%x", ptr_config_file->file);
|
||||
log_printf (" sections . . . . . . . : 0x%x", ptr_config_file->sections);
|
||||
log_printf (" last_section . . . . . : 0x%x", ptr_config_file->last_section);
|
||||
log_printf (" prev_config. . . . . . : 0x%x", ptr_config_file->prev_config);
|
||||
log_printf (" next_config. . . . . . : 0x%x", ptr_config_file->next_config);
|
||||
|
||||
for (ptr_section = ptr_config_file->sections; ptr_section;
|
||||
ptr_section = ptr_section->next_section)
|
||||
{
|
||||
log_printf ("");
|
||||
log_printf (" [section (addr:0x%X)]", ptr_section);
|
||||
log_printf (" [section (addr:0x%x)]", ptr_section);
|
||||
log_printf (" name . . . . . . . . . : '%s'", ptr_section->name);
|
||||
log_printf (" callback_read. . . . . : 0x%X", ptr_section->callback_read);
|
||||
log_printf (" callback_write . . . . : 0x%X", ptr_section->callback_write);
|
||||
log_printf (" callback_write_default : 0x%X", ptr_section->callback_write_default);
|
||||
log_printf (" options. . . . . . . . : 0x%X", ptr_section->options);
|
||||
log_printf (" last_option. . . . . . : 0x%X", ptr_section->last_option);
|
||||
log_printf (" prev_section . . . . . : 0x%X", ptr_section->prev_section);
|
||||
log_printf (" next_section . . . . . : 0x%X", ptr_section->next_section);
|
||||
log_printf (" callback_read. . . . . : 0x%x", ptr_section->callback_read);
|
||||
log_printf (" callback_write . . . . : 0x%x", ptr_section->callback_write);
|
||||
log_printf (" callback_write_default : 0x%x", ptr_section->callback_write_default);
|
||||
log_printf (" options. . . . . . . . : 0x%x", ptr_section->options);
|
||||
log_printf (" last_option. . . . . . : 0x%x", ptr_section->last_option);
|
||||
log_printf (" prev_section . . . . . : 0x%x", ptr_section->prev_section);
|
||||
log_printf (" next_section . . . . . : 0x%x", ptr_section->next_section);
|
||||
|
||||
for (ptr_option = ptr_section->options; ptr_option;
|
||||
ptr_option = ptr_option->next_option)
|
||||
{
|
||||
log_printf ("");
|
||||
log_printf (" [option (addr:0x%X)]", ptr_option);
|
||||
log_printf (" [option (addr:0x%x)]", ptr_option);
|
||||
log_printf (" name . . . . . . . . : '%s'", ptr_option->name);
|
||||
log_printf (" type . . . . . . . . : %d", ptr_option->type);
|
||||
log_printf (" description. . . . . : '%s'", ptr_option->description);
|
||||
log_printf (" string_values. . . . : 0x%X", ptr_option->string_values);
|
||||
log_printf (" string_values. . . . : 0x%x", ptr_option->string_values);
|
||||
log_printf (" min. . . . . . . . . : %d", ptr_option->min);
|
||||
log_printf (" max. . . . . . . . . : %d", ptr_option->max);
|
||||
switch (ptr_option->type)
|
||||
@@ -1470,10 +1470,10 @@ config_file_print_log ()
|
||||
gui_color_get_name (CONFIG_COLOR(ptr_option)));
|
||||
break;
|
||||
}
|
||||
log_printf (" callback_change. . . : 0x%X", ptr_option->callback_change);
|
||||
log_printf (" callback_change. . . : 0x%x", ptr_option->callback_change);
|
||||
log_printf (" loaded . . . . . . . : %d", ptr_option->loaded);
|
||||
log_printf (" prev_option. . . . . : 0x%X", ptr_option->prev_option);
|
||||
log_printf (" next_option. . . . . : 0x%X", ptr_option->next_option);
|
||||
log_printf (" prev_option. . . . . : 0x%x", ptr_option->prev_option);
|
||||
log_printf (" next_option. . . . . : 0x%x", ptr_option->next_option);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+21
-21
@@ -849,7 +849,7 @@ hook_signal (struct t_weechat_plugin *plugin, char *signal,
|
||||
*/
|
||||
|
||||
void
|
||||
hook_signal_send (char *signal, void *signal_data)
|
||||
hook_signal_send (char *signal, char *type_data, void *signal_data)
|
||||
{
|
||||
struct t_hook *ptr_hook, *next_hook;
|
||||
|
||||
@@ -867,7 +867,7 @@ hook_signal_send (char *signal, void *signal_data)
|
||||
{
|
||||
ptr_hook->running = 1;
|
||||
(void) (HOOK_SIGNAL(ptr_hook, callback))
|
||||
(ptr_hook->callback_data, signal, signal_data);
|
||||
(ptr_hook->callback_data, signal, type_data, signal_data);
|
||||
ptr_hook->running = 0;
|
||||
}
|
||||
|
||||
@@ -1188,8 +1188,8 @@ hook_print_log ()
|
||||
ptr_hook = ptr_hook->next_hook)
|
||||
{
|
||||
log_printf ("");
|
||||
log_printf ("[hook (addr:0x%X)]", ptr_hook);
|
||||
log_printf (" plugin . . . . . . . . : 0x%X ('%s')",
|
||||
log_printf ("[hook (addr:0x%x)]", ptr_hook);
|
||||
log_printf (" plugin . . . . . . . . : 0x%x ('%s')",
|
||||
ptr_hook->plugin,
|
||||
(ptr_hook->plugin) ? ptr_hook->plugin->name : "");
|
||||
log_printf (" deleted. . . . . . . . : %d", ptr_hook->deleted);
|
||||
@@ -1198,11 +1198,11 @@ hook_print_log ()
|
||||
{
|
||||
case HOOK_TYPE_COMMAND:
|
||||
log_printf (" type . . . . . . . . . : %d (command)", ptr_hook->type);
|
||||
log_printf (" callback_data. . . . . : 0x%X", ptr_hook->callback_data);
|
||||
log_printf (" callback_data. . . . . : 0x%x", ptr_hook->callback_data);
|
||||
if (!ptr_hook->deleted)
|
||||
{
|
||||
log_printf (" command data:");
|
||||
log_printf (" callback . . . . . . : 0x%X", HOOK_COMMAND(ptr_hook, callback));
|
||||
log_printf (" callback . . . . . . : 0x%x", HOOK_COMMAND(ptr_hook, callback));
|
||||
log_printf (" command. . . . . . . : '%s'", HOOK_COMMAND(ptr_hook, command));
|
||||
log_printf (" level. . . . . . . . : %d", HOOK_COMMAND(ptr_hook, level));
|
||||
log_printf (" command_desc . . . . : '%s'", HOOK_COMMAND(ptr_hook, description));
|
||||
@@ -1213,11 +1213,11 @@ hook_print_log ()
|
||||
break;
|
||||
case HOOK_TYPE_TIMER:
|
||||
log_printf (" type . . . . . . . . . : %d (timer)", ptr_hook->type);
|
||||
log_printf (" callback_data. . . . . : 0x%X", ptr_hook->callback_data);
|
||||
log_printf (" callback_data. . . . . : 0x%x", ptr_hook->callback_data);
|
||||
if (!ptr_hook->deleted)
|
||||
{
|
||||
log_printf (" timer data:");
|
||||
log_printf (" callback . . . . . . : 0x%X", HOOK_TIMER(ptr_hook, callback));
|
||||
log_printf (" callback . . . . . . : 0x%x", HOOK_TIMER(ptr_hook, callback));
|
||||
log_printf (" interval . . . . . . : %ld", HOOK_TIMER(ptr_hook, interval));
|
||||
local_time = localtime (&HOOK_TIMER(ptr_hook, last_exec).tv_sec);
|
||||
strftime (text_time, sizeof (text_time),
|
||||
@@ -1237,54 +1237,54 @@ hook_print_log ()
|
||||
break;
|
||||
case HOOK_TYPE_FD:
|
||||
log_printf (" type . . . . . . . . . : %d (fd)", ptr_hook->type);
|
||||
log_printf (" callback_data. . . . . : 0x%X", ptr_hook->callback_data);
|
||||
log_printf (" callback_data. . . . . : 0x%x", ptr_hook->callback_data);
|
||||
if (!ptr_hook->deleted)
|
||||
{
|
||||
log_printf (" fd data:");
|
||||
log_printf (" callback . . . . . . : 0x%X", HOOK_FD(ptr_hook, callback));
|
||||
log_printf (" callback . . . . . . : 0x%x", HOOK_FD(ptr_hook, callback));
|
||||
log_printf (" fd . . . . . . . . . : %ld", HOOK_FD(ptr_hook, fd));
|
||||
log_printf (" flags. . . . . . . . : %ld", HOOK_FD(ptr_hook, flags));
|
||||
}
|
||||
break;
|
||||
case HOOK_TYPE_PRINT:
|
||||
log_printf (" type . . . . . . . . . : %d (print)", ptr_hook->type);
|
||||
log_printf (" callback_data. . . . . : 0x%X", ptr_hook->callback_data);
|
||||
log_printf (" callback_data. . . . . : 0x%x", ptr_hook->callback_data);
|
||||
if (!ptr_hook->deleted)
|
||||
{
|
||||
log_printf (" print data:");
|
||||
log_printf (" callback . . . . . . : 0x%X", HOOK_PRINT(ptr_hook, callback));
|
||||
log_printf (" buffer . . . . . . . : 0x%X", HOOK_PRINT(ptr_hook, buffer));
|
||||
log_printf (" callback . . . . . . : 0x%x", HOOK_PRINT(ptr_hook, callback));
|
||||
log_printf (" buffer . . . . . . . : 0x%x", HOOK_PRINT(ptr_hook, buffer));
|
||||
log_printf (" message. . . . . . . : '%s'", HOOK_PRINT(ptr_hook, message));
|
||||
}
|
||||
break;
|
||||
case HOOK_TYPE_SIGNAL:
|
||||
log_printf (" type . . . . . . . . . : %d (signal)", ptr_hook->type);
|
||||
log_printf (" callback_data. . . . . : 0x%X", ptr_hook->callback_data);
|
||||
log_printf (" callback_data. . . . . : 0x%x", ptr_hook->callback_data);
|
||||
if (!ptr_hook->deleted)
|
||||
{
|
||||
log_printf (" signal data:");
|
||||
log_printf (" callback . . . . . . : 0x%X", HOOK_SIGNAL(ptr_hook, callback));
|
||||
log_printf (" callback . . . . . . : 0x%x", HOOK_SIGNAL(ptr_hook, callback));
|
||||
log_printf (" signal . . . . . . . : '%s'", HOOK_SIGNAL(ptr_hook, signal));
|
||||
}
|
||||
break;
|
||||
case HOOK_TYPE_CONFIG:
|
||||
log_printf (" type . . . . . . . . . : %d (config)", ptr_hook->type);
|
||||
log_printf (" callback_data. . . . . : 0x%X", ptr_hook->callback_data);
|
||||
log_printf (" callback_data. . . . . : 0x%x", ptr_hook->callback_data);
|
||||
if (!ptr_hook->deleted)
|
||||
{
|
||||
log_printf (" config data:");
|
||||
log_printf (" callback . . . . . . : 0x%X", HOOK_CONFIG(ptr_hook, callback));
|
||||
log_printf (" callback . . . . . . : 0x%x", HOOK_CONFIG(ptr_hook, callback));
|
||||
log_printf (" type . . . . . . . . : '%s'", HOOK_CONFIG(ptr_hook, type));
|
||||
log_printf (" option . . . . . . . : '%s'", HOOK_CONFIG(ptr_hook, option));
|
||||
}
|
||||
break;
|
||||
case HOOK_TYPE_COMPLETION:
|
||||
log_printf (" type . . . . . . . . . : %d (completion)", ptr_hook->type);
|
||||
log_printf (" callback_data. . . . . : 0x%X", ptr_hook->callback_data);
|
||||
log_printf (" callback_data. . . . . : 0x%x", ptr_hook->callback_data);
|
||||
if (!ptr_hook->deleted)
|
||||
{
|
||||
log_printf (" completion data:");
|
||||
log_printf (" callback . . . . . . : 0x%X", HOOK_COMPLETION(ptr_hook, callback));
|
||||
log_printf (" callback . . . . . . : 0x%x", HOOK_COMPLETION(ptr_hook, callback));
|
||||
log_printf (" completion . . . . . : '%s'", HOOK_COMPLETION(ptr_hook, completion));
|
||||
}
|
||||
break;
|
||||
@@ -1293,8 +1293,8 @@ hook_print_log ()
|
||||
it is never used as type */
|
||||
break;
|
||||
}
|
||||
log_printf (" prev_hook. . . . . . . : 0x%X", ptr_hook->prev_hook);
|
||||
log_printf (" next_hook. . . . . . . : 0x%X", ptr_hook->next_hook);
|
||||
log_printf (" prev_hook. . . . . . . : 0x%x", ptr_hook->prev_hook);
|
||||
log_printf (" next_hook. . . . . . . : 0x%x", ptr_hook->next_hook);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
-2
@@ -113,7 +113,7 @@ struct t_hook_print
|
||||
};
|
||||
|
||||
typedef int (t_hook_callback_signal)(void *data, char *signal,
|
||||
void *signal_data);
|
||||
char *type_data, void *signal_data);
|
||||
|
||||
struct t_hook_signal
|
||||
{
|
||||
@@ -188,7 +188,8 @@ extern struct t_hook *hook_signal (struct t_weechat_plugin *plugin,
|
||||
char *signal,
|
||||
t_hook_callback_signal *callback,
|
||||
void *callback_data);
|
||||
extern void hook_signal_send (char *signal, void *signal_data);
|
||||
extern void hook_signal_send (char *signal, char *type_data,
|
||||
void *signal_data);
|
||||
extern struct t_hook *hook_config (struct t_weechat_plugin *, char *type,
|
||||
char *option,
|
||||
t_hook_callback_config *callback,
|
||||
|
||||
+6
-5
@@ -30,6 +30,7 @@
|
||||
#include "wee-list.h"
|
||||
#include "wee-log.h"
|
||||
#include "wee-string.h"
|
||||
#include "../plugins/weechat-plugin.h"
|
||||
|
||||
|
||||
/*
|
||||
@@ -97,9 +98,9 @@ weelist_insert (struct t_weelist *weelist, struct t_weelist_item *item,
|
||||
{
|
||||
/* search position for new element, according to pos asked */
|
||||
pos_item = NULL;
|
||||
if (string_strcasecmp (where, WEELIST_POS_BEGINNING) == 0)
|
||||
if (string_strcasecmp (where, WEECHAT_LIST_POS_BEGINNING) == 0)
|
||||
pos_item = weelist->items;
|
||||
else if (string_strcasecmp (where, WEELIST_POS_END) == 0)
|
||||
else if (string_strcasecmp (where, WEECHAT_LIST_POS_END) == 0)
|
||||
pos_item = NULL;
|
||||
else
|
||||
pos_item = weelist_find_pos (weelist, item->data);
|
||||
@@ -353,13 +354,13 @@ weelist_print_log (struct t_weelist *weelist, char *name)
|
||||
{
|
||||
struct t_weelist_item *ptr_item;
|
||||
|
||||
log_printf ("[%s (addr:0x%X)]", name, weelist);
|
||||
log_printf ("[%s (addr:0x%x)]", name, weelist);
|
||||
|
||||
for (ptr_item = weelist->items; ptr_item;
|
||||
ptr_item = ptr_item->next_item)
|
||||
{
|
||||
log_printf (" data . . . . . . . . . : '%s'", ptr_item->data);
|
||||
log_printf (" prev_item. . . . . . . : 0x%X", ptr_item->prev_item);
|
||||
log_printf (" next_item. . . . . . . : 0x%X", ptr_item->next_item);
|
||||
log_printf (" prev_item. . . . . . . : 0x%x", ptr_item->prev_item);
|
||||
log_printf (" next_item. . . . . . . : 0x%x", ptr_item->next_item);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,10 +20,6 @@
|
||||
#ifndef __WEECHAT_LIST_H
|
||||
#define __WEECHAT_LIST_H 1
|
||||
|
||||
#define WEELIST_POS_SORT "sort"
|
||||
#define WEELIST_POS_BEGINNING "beginning"
|
||||
#define WEELIST_POS_END "end"
|
||||
|
||||
struct t_weelist_item
|
||||
{
|
||||
char *data; /* item data */
|
||||
|
||||
+1
-1
@@ -521,7 +521,7 @@ weechat_dump (int crash)
|
||||
|
||||
plugin_print_log ();
|
||||
|
||||
hook_signal_send ("dump_data", NULL);
|
||||
hook_signal_send ("dump_data", WEECHAT_HOOK_SIGNAL_STRING, NULL);
|
||||
|
||||
log_printf ("");
|
||||
log_printf ("****** End of WeeChat dump ******");
|
||||
|
||||
@@ -1426,11 +1426,11 @@ gui_window_title_reset ()
|
||||
void
|
||||
gui_window_objects_print_log (struct t_gui_window *window)
|
||||
{
|
||||
log_printf (" win_title . . . . . : 0x%X", GUI_CURSES(window)->win_title);
|
||||
log_printf (" win_chat. . . . . . : 0x%X", GUI_CURSES(window)->win_chat);
|
||||
log_printf (" win_nick. . . . . . : 0x%X", GUI_CURSES(window)->win_nick);
|
||||
log_printf (" win_status. . . . . : 0x%X", GUI_CURSES(window)->win_status);
|
||||
log_printf (" win_infobar . . . . : 0x%X", GUI_CURSES(window)->win_infobar);
|
||||
log_printf (" win_input . . . . . : 0x%X", GUI_CURSES(window)->win_input);
|
||||
log_printf (" win_separator . . . : 0x%X", GUI_CURSES(window)->win_separator);
|
||||
log_printf (" win_title . . . . . : 0x%x", GUI_CURSES(window)->win_title);
|
||||
log_printf (" win_chat. . . . . . : 0x%x", GUI_CURSES(window)->win_chat);
|
||||
log_printf (" win_nick. . . . . . : 0x%x", GUI_CURSES(window)->win_nick);
|
||||
log_printf (" win_status. . . . . : 0x%x", GUI_CURSES(window)->win_status);
|
||||
log_printf (" win_infobar . . . . : 0x%x", GUI_CURSES(window)->win_infobar);
|
||||
log_printf (" win_input . . . . . : 0x%x", GUI_CURSES(window)->win_input);
|
||||
log_printf (" win_separator . . . : 0x%x", GUI_CURSES(window)->win_separator);
|
||||
}
|
||||
|
||||
@@ -919,9 +919,9 @@ gui_window_title_reset ()
|
||||
void
|
||||
gui_window_objects_print_log (struct t_gui_window *window)
|
||||
{
|
||||
log_printf (" textview_chat . . . : 0x%X", GUI_GTK(window)->textview_chat);
|
||||
log_printf (" textbuffer_chat . . : 0x%X", GUI_GTK(window)->textbuffer_chat);
|
||||
log_printf (" texttag_chat. . . . : 0x%X", GUI_GTK(window)->texttag_chat);
|
||||
log_printf (" textview_nicklist . : 0x%X", GUI_GTK(window)->textview_nicklist);
|
||||
log_printf (" textbuffer_nicklist : 0x%X", GUI_GTK(window)->textbuffer_nicklist);
|
||||
log_printf (" textview_chat . . . : 0x%x", GUI_GTK(window)->textview_chat);
|
||||
log_printf (" textbuffer_chat . . : 0x%x", GUI_GTK(window)->textbuffer_chat);
|
||||
log_printf (" texttag_chat. . . . : 0x%x", GUI_GTK(window)->texttag_chat);
|
||||
log_printf (" textview_nicklist . : 0x%x", GUI_GTK(window)->textview_nicklist);
|
||||
log_printf (" textbuffer_nicklist : 0x%x", GUI_GTK(window)->textbuffer_nicklist);
|
||||
}
|
||||
|
||||
+19
-17
@@ -178,7 +178,8 @@ gui_buffer_new (struct t_weechat_plugin *plugin, char *category, char *name,
|
||||
gui_window_redraw_buffer (new_buffer);
|
||||
}
|
||||
|
||||
hook_signal_send ("buffer_open", new_buffer);
|
||||
hook_signal_send ("buffer_open",
|
||||
WEECHAT_HOOK_SIGNAL_POINTER, new_buffer);
|
||||
}
|
||||
else
|
||||
return NULL;
|
||||
@@ -619,7 +620,8 @@ gui_buffer_close (struct t_gui_buffer *buffer, int switch_to_another)
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
struct t_gui_line *ptr_line;
|
||||
|
||||
hook_signal_send ("buffer_close", buffer);
|
||||
hook_signal_send ("buffer_close",
|
||||
WEECHAT_HOOK_SIGNAL_POINTER, buffer);
|
||||
|
||||
if (switch_to_another)
|
||||
{
|
||||
@@ -942,7 +944,7 @@ gui_buffer_dump_hexa (struct t_gui_buffer *buffer)
|
||||
char hexa[(16 * 3) + 1], ascii[(16 * 2) + 1];
|
||||
int hexa_pos, ascii_pos;
|
||||
|
||||
log_printf ("[buffer dump hexa (addr:0x%X)]", buffer);
|
||||
log_printf ("[buffer dump hexa (addr:0x%x)]", buffer);
|
||||
num_line = 1;
|
||||
for (ptr_line = buffer->lines; ptr_line; ptr_line = ptr_line->next_line)
|
||||
{
|
||||
@@ -1007,8 +1009,8 @@ gui_buffer_print_log ()
|
||||
ptr_buffer = ptr_buffer->next_buffer)
|
||||
{
|
||||
log_printf ("");
|
||||
log_printf ("[buffer (addr:0x%X)]", ptr_buffer);
|
||||
log_printf (" plugin . . . . . . . . : 0x%X", ptr_buffer->plugin);
|
||||
log_printf ("[buffer (addr:0x%x)]", ptr_buffer);
|
||||
log_printf (" plugin . . . . . . . . : 0x%x", ptr_buffer->plugin);
|
||||
log_printf (" number . . . . . . . . : %d", ptr_buffer->number);
|
||||
log_printf (" category . . . . . . . : '%s'", ptr_buffer->category);
|
||||
log_printf (" name . . . . . . . . . : '%s'", ptr_buffer->name);
|
||||
@@ -1016,21 +1018,21 @@ gui_buffer_print_log ()
|
||||
log_printf (" notify_level . . . . . : %d", ptr_buffer->notify_level);
|
||||
log_printf (" num_displayed. . . . . : %d", ptr_buffer->num_displayed);
|
||||
log_printf (" title. . . . . . . . . : '%s'", ptr_buffer->title);
|
||||
log_printf (" lines. . . . . . . . . : 0x%X", ptr_buffer->lines);
|
||||
log_printf (" last_line. . . . . . . : 0x%X", ptr_buffer->last_line);
|
||||
log_printf (" last_read_line . . . . : 0x%X", ptr_buffer->last_read_line);
|
||||
log_printf (" lines. . . . . . . . . : 0x%x", ptr_buffer->lines);
|
||||
log_printf (" last_line. . . . . . . : 0x%x", ptr_buffer->last_line);
|
||||
log_printf (" last_read_line . . . . : 0x%x", ptr_buffer->last_read_line);
|
||||
log_printf (" lines_count. . . . . . : %d", ptr_buffer->lines_count);
|
||||
log_printf (" prefix_max_length. . . : %d", ptr_buffer->prefix_max_length);
|
||||
log_printf (" chat_refresh_needed. . : %d", ptr_buffer->chat_refresh_needed);
|
||||
log_printf (" nicklist . . . . . . . : %d", ptr_buffer->nicklist);
|
||||
log_printf (" nicklist_case_sensitive: %d", ptr_buffer->nicklist_case_sensitive);
|
||||
log_printf (" nicklist_root. . . . . : 0x%X", ptr_buffer->nicklist_root);
|
||||
log_printf (" nicklist_root. . . . . : 0x%x", ptr_buffer->nicklist_root);
|
||||
log_printf (" nicklist_max_length. . : %d", ptr_buffer->nicklist_max_length);
|
||||
log_printf (" nicklist_display_groups: %d", ptr_buffer->nicklist_display_groups);
|
||||
log_printf (" nicklist_visible_count.: %d", ptr_buffer->nicklist_visible_count);
|
||||
log_printf (" nicklist_refresh_needed: %d", ptr_buffer->nicklist_refresh_needed);
|
||||
log_printf (" input. . . . . . . . . : %d", ptr_buffer->input);
|
||||
log_printf (" input_data_cb. . . . . : 0x%X", ptr_buffer->input_data_cb);
|
||||
log_printf (" input_data_cb. . . . . : 0x%x", ptr_buffer->input_data_cb);
|
||||
log_printf (" input_nick . . . . . . : '%s'", ptr_buffer->input_nick);
|
||||
log_printf (" input_buffer . . . . . : '%s'", ptr_buffer->input_buffer);
|
||||
log_printf (" input_buffer_color_mask: '%s'", ptr_buffer->input_buffer_color_mask);
|
||||
@@ -1039,20 +1041,20 @@ gui_buffer_print_log ()
|
||||
log_printf (" input_buffer_length. . : %d", ptr_buffer->input_buffer_length);
|
||||
log_printf (" input_buffer_pos . . . : %d", ptr_buffer->input_buffer_pos);
|
||||
log_printf (" input_buffer_1st_disp. : %d", ptr_buffer->input_buffer_1st_display);
|
||||
log_printf (" completion . . . . . . : 0x%X", ptr_buffer->completion);
|
||||
log_printf (" history. . . . . . . . : 0x%X", ptr_buffer->history);
|
||||
log_printf (" last_history . . . . . : 0x%X", ptr_buffer->last_history);
|
||||
log_printf (" ptr_history. . . . . . : 0x%X", ptr_buffer->ptr_history);
|
||||
log_printf (" completion . . . . . . : 0x%x", ptr_buffer->completion);
|
||||
log_printf (" history. . . . . . . . : 0x%x", ptr_buffer->history);
|
||||
log_printf (" last_history . . . . . : 0x%x", ptr_buffer->last_history);
|
||||
log_printf (" ptr_history. . . . . . : 0x%x", ptr_buffer->ptr_history);
|
||||
log_printf (" num_history. . . . . . : %d", ptr_buffer->num_history);
|
||||
log_printf (" text_search. . . . . . : %d", ptr_buffer->text_search);
|
||||
log_printf (" text_search_exact. . . : %d", ptr_buffer->text_search_exact);
|
||||
log_printf (" text_search_found. . . : %d", ptr_buffer->text_search_found);
|
||||
log_printf (" text_search_input. . . : '%s'", ptr_buffer->text_search_input);
|
||||
log_printf (" prev_buffer. . . . . . : 0x%X", ptr_buffer->prev_buffer);
|
||||
log_printf (" next_buffer. . . . . . : 0x%X", ptr_buffer->next_buffer);
|
||||
log_printf (" prev_buffer. . . . . . : 0x%x", ptr_buffer->prev_buffer);
|
||||
log_printf (" next_buffer. . . . . . : 0x%x", ptr_buffer->next_buffer);
|
||||
|
||||
log_printf ("");
|
||||
log_printf (" => nicklist_root (addr:0x%X):", ptr_buffer->nicklist_root);
|
||||
log_printf (" => nicklist_root (addr:0x%x):", ptr_buffer->nicklist_root);
|
||||
gui_nicklist_print_log (ptr_buffer->nicklist_root, 0);
|
||||
|
||||
log_printf ("");
|
||||
|
||||
+27
-27
@@ -256,7 +256,7 @@ gui_completion_list_add_buffers_names (struct t_gui_completion *completion)
|
||||
ptr_buffer = ptr_buffer->next_buffer)
|
||||
{
|
||||
gui_completion_list_add (completion, ptr_buffer->name,
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -274,7 +274,7 @@ gui_completion_list_add_buffers_categories (struct t_gui_completion *completion)
|
||||
ptr_buffer = ptr_buffer->next_buffer)
|
||||
{
|
||||
gui_completion_list_add (completion, ptr_buffer->category,
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -359,7 +359,7 @@ gui_completion_list_add_filename (struct t_gui_completion *completion)
|
||||
S_ISDIR(statbuf.st_mode) ? DIR_SEPARATOR : "");
|
||||
|
||||
gui_completion_list_add (completion, buffer,
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -389,7 +389,7 @@ gui_completion_list_add_command_hooks (struct t_gui_completion *completion)
|
||||
&& (HOOK_COMMAND(ptr_hook, command)[0]))
|
||||
gui_completion_list_add (completion,
|
||||
HOOK_COMMAND(ptr_hook, command),
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -406,7 +406,7 @@ gui_completion_list_add_key_cmd (struct t_gui_completion *completion)
|
||||
for (i = 0; gui_key_functions[i].function_name; i++)
|
||||
{
|
||||
gui_completion_list_add (completion, gui_key_functions[i].function_name,
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -420,7 +420,7 @@ gui_completion_list_add_self_nick (struct t_gui_completion *completion)
|
||||
if (completion->buffer->input_nick)
|
||||
gui_completion_list_add (completion,
|
||||
completion->buffer->input_nick,
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -441,7 +441,7 @@ gui_completion_list_add_option (struct t_gui_completion *completion)
|
||||
{
|
||||
gui_completion_list_add (completion,
|
||||
ptr_option->name,
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -459,7 +459,7 @@ gui_completion_list_add_plugin_option (struct t_gui_completion *completion)
|
||||
ptr_option = ptr_option->next_option)
|
||||
{
|
||||
gui_completion_list_add (completion, ptr_option->name,
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -476,7 +476,7 @@ gui_completion_list_add_plugin (struct t_gui_completion *completion)
|
||||
ptr_plugin = ptr_plugin->next_plugin)
|
||||
{
|
||||
gui_completion_list_add (completion, ptr_plugin->name,
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -491,7 +491,7 @@ gui_completion_list_add_quit (struct t_gui_completion *completion)
|
||||
&& CONFIG_STRING(config_look_default_msg_quit)[0])
|
||||
gui_completion_list_add (completion,
|
||||
CONFIG_STRING(config_look_default_msg_quit),
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -519,10 +519,10 @@ gui_completion_list_add_option_value (struct t_gui_completion *completion)
|
||||
case CONFIG_OPTION_BOOLEAN:
|
||||
if (CONFIG_BOOLEAN(ptr_option) == CONFIG_BOOLEAN_TRUE)
|
||||
gui_completion_list_add (completion, "on",
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
else
|
||||
gui_completion_list_add (completion, "off",
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
break;
|
||||
case CONFIG_OPTION_INTEGER:
|
||||
if (ptr_option->string_values)
|
||||
@@ -533,21 +533,21 @@ gui_completion_list_add_option_value (struct t_gui_completion *completion)
|
||||
snprintf (option_string, sizeof (option_string) - 1,
|
||||
"%d", CONFIG_INTEGER(ptr_option));
|
||||
gui_completion_list_add (completion, option_string,
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
break;
|
||||
case CONFIG_OPTION_STRING:
|
||||
snprintf (option_string, sizeof (option_string) - 1,
|
||||
"\"%s\"",
|
||||
CONFIG_STRING(ptr_option));
|
||||
gui_completion_list_add (completion, option_string,
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
break;
|
||||
case CONFIG_OPTION_COLOR:
|
||||
color_name = gui_color_get_name (CONFIG_INTEGER(ptr_option));
|
||||
if (color_name)
|
||||
gui_completion_list_add (completion,
|
||||
color_name,
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -575,7 +575,7 @@ gui_completion_list_add_plugin_option_value (struct t_gui_completion *completion
|
||||
ptr_option = plugin_config_search_internal (completion->args);
|
||||
if (ptr_option)
|
||||
gui_completion_list_add (completion, ptr_option->value,
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
|
||||
if (pos)
|
||||
pos[0] = ' ';
|
||||
@@ -601,7 +601,7 @@ gui_completion_list_add_weechat_cmd (struct t_gui_completion *completion)
|
||||
{
|
||||
gui_completion_list_add (completion,
|
||||
HOOK_COMMAND(ptr_hook, command),
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -647,7 +647,7 @@ gui_completion_build_list_template (struct t_gui_completion *completion,
|
||||
{
|
||||
word[word_offset] = '\0';
|
||||
weelist_add (completion->completion_list,
|
||||
word, WEELIST_POS_SORT);
|
||||
word, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
word_offset = 0;
|
||||
break;
|
||||
@@ -948,7 +948,7 @@ gui_completion_command (struct t_gui_completion *completion)
|
||||
{
|
||||
gui_completion_list_add (completion,
|
||||
HOOK_COMMAND(ptr_hook, command),
|
||||
0, WEELIST_POS_SORT);
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1108,10 +1108,10 @@ gui_completion_nick (struct t_gui_completion *completion)
|
||||
{
|
||||
weelist_add (completion->completion_list,
|
||||
((t_irc_channel *)(completion->channel))->name,
|
||||
WEELIST_POS_SORT);
|
||||
WEECHAT_LIST_POS_SORT);
|
||||
weelist_add (completion->completion_list,
|
||||
((t_irc_server *)(completion->server))->nick,
|
||||
WEELIST_POS_SORT);
|
||||
WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
gui_completion_command_arg (completion, 1);
|
||||
return;
|
||||
@@ -1135,7 +1135,7 @@ gui_completion_nick (struct t_gui_completion *completion)
|
||||
{
|
||||
weelist_add (completion->completion_list,
|
||||
ptr_nick->nick,
|
||||
WEELIST_POS_SORT);
|
||||
WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
|
||||
// add nicks speaking recently on this channel
|
||||
@@ -1148,7 +1148,7 @@ gui_completion_nick (struct t_gui_completion *completion)
|
||||
ptr_item->data))
|
||||
weelist_add (completion->completion_list,
|
||||
ptr_item->data,
|
||||
WEELIST_POS_BEGINNING);
|
||||
WEECHAT_LIST_POS_BEGINNING);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1156,7 +1156,7 @@ gui_completion_nick (struct t_gui_completion *completion)
|
||||
if (completion->server)
|
||||
weelist_add (completion->completion_list,
|
||||
((t_irc_server *)(completion->server))->nick,
|
||||
WEELIST_POS_END);
|
||||
WEECHAT_LIST_POS_END);
|
||||
|
||||
((t_irc_channel *)(completion->channel))->nick_completion_reset = 0;
|
||||
}
|
||||
@@ -1343,8 +1343,8 @@ gui_completion_search (struct t_gui_completion *completion, int direction,
|
||||
void
|
||||
gui_completion_print_log (struct t_gui_completion *completion)
|
||||
{
|
||||
log_printf ("[completion (addr:0x%X)]", completion);
|
||||
log_printf (" buffer . . . . . . . . : 0x%X", completion->buffer);
|
||||
log_printf ("[completion (addr:0x%x)]", completion);
|
||||
log_printf (" buffer . . . . . . . . : 0x%x", completion->buffer);
|
||||
log_printf (" context. . . . . . . . : %d", completion->context);
|
||||
log_printf (" base_command . . . . . : '%s'", completion->base_command);
|
||||
log_printf (" base_command_arg . . . : %d", completion->base_command_arg);
|
||||
@@ -1355,7 +1355,7 @@ gui_completion_print_log (struct t_gui_completion *completion)
|
||||
log_printf (" args . . . . . . . . . : '%s'", completion->args);
|
||||
log_printf (" direction. . . . . . . : %d", completion->direction);
|
||||
log_printf (" add_space. . . . . . . : %d", completion->add_space);
|
||||
log_printf (" completion_list. . . . : 0x%X", completion->completion_list);
|
||||
log_printf (" completion_list. . . . : 0x%x", completion->completion_list);
|
||||
log_printf (" word_found . . . . . . : '%s'", completion->word_found);
|
||||
log_printf (" position_replace . . . : %d", completion->position_replace);
|
||||
log_printf (" diff_size. . . . . . . : %d", completion->diff_size);
|
||||
|
||||
@@ -355,13 +355,13 @@ gui_hotlist_print_log ()
|
||||
for (ptr_hotlist = gui_hotlist; ptr_hotlist;
|
||||
ptr_hotlist = ptr_hotlist->next_hotlist)
|
||||
{
|
||||
log_printf ("[hotlist (addr:0x%X)]", ptr_hotlist);
|
||||
log_printf ("[hotlist (addr:0x%x)]", ptr_hotlist);
|
||||
log_printf (" priority . . . . . . . : %d", ptr_hotlist->priority);
|
||||
log_printf (" creation_time. . . . . : tv_sec:%d, tv_usec:%d",
|
||||
ptr_hotlist->creation_time.tv_sec,
|
||||
ptr_hotlist->creation_time.tv_usec);
|
||||
log_printf (" buffer . . . . . . . . : 0x%X", ptr_hotlist->buffer);
|
||||
log_printf (" prev_hotlist . . . . . : 0x%X", ptr_hotlist->prev_hotlist);
|
||||
log_printf (" next_hotlist . . . . . : 0x%X", ptr_hotlist->next_hotlist);
|
||||
log_printf (" buffer . . . . . . . . : 0x%x", ptr_hotlist->buffer);
|
||||
log_printf (" prev_hotlist . . . . . : 0x%x", ptr_hotlist->prev_hotlist);
|
||||
log_printf (" next_hotlist . . . . . : 0x%x", ptr_hotlist->next_hotlist);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -772,12 +772,12 @@ gui_window_print_log ()
|
||||
struct t_gui_window *ptr_window;
|
||||
|
||||
log_printf ("");
|
||||
log_printf ("current window = 0x%X", gui_current_window);
|
||||
log_printf ("current window = 0x%x", gui_current_window);
|
||||
|
||||
for (ptr_window = gui_windows; ptr_window; ptr_window = ptr_window->next_window)
|
||||
{
|
||||
log_printf ("");
|
||||
log_printf ("[window (addr:0x%X)]", ptr_window);
|
||||
log_printf ("[window (addr:0x%x)]", ptr_window);
|
||||
log_printf (" win_x . . . . . . . : %d", ptr_window->win_x);
|
||||
log_printf (" win_y . . . . . . . : %d", ptr_window->win_y);
|
||||
log_printf (" win_width . . . . . : %d", ptr_window->win_width);
|
||||
@@ -814,14 +814,14 @@ gui_window_print_log ()
|
||||
log_printf (" win_input_height. . : %d", ptr_window->win_input_height);
|
||||
log_printf (" win_input_cursor_x. : %d", ptr_window->win_input_cursor_x);
|
||||
gui_window_objects_print_log (ptr_window);
|
||||
log_printf (" dcc_first . . . . . : 0x%X", ptr_window->dcc_first);
|
||||
log_printf (" dcc_selected. . . . : 0x%X", ptr_window->dcc_selected);
|
||||
log_printf (" dcc_last_displayed. : 0x%X", ptr_window->dcc_last_displayed);
|
||||
log_printf (" buffer. . . . . . . : 0x%X", ptr_window->buffer);
|
||||
log_printf (" dcc_first . . . . . : 0x%x", ptr_window->dcc_first);
|
||||
log_printf (" dcc_selected. . . . : 0x%x", ptr_window->dcc_selected);
|
||||
log_printf (" dcc_last_displayed. : 0x%x", ptr_window->dcc_last_displayed);
|
||||
log_printf (" buffer. . . . . . . : 0x%x", ptr_window->buffer);
|
||||
log_printf (" first_line_displayed: %d", ptr_window->first_line_displayed);
|
||||
log_printf (" start_line. . . . . : 0x%X", ptr_window->start_line);
|
||||
log_printf (" start_line. . . . . : 0x%x", ptr_window->start_line);
|
||||
log_printf (" start_line_pos. . . : %d", ptr_window->start_line_pos);
|
||||
log_printf (" prev_window . . . . : 0x%X", ptr_window->prev_window);
|
||||
log_printf (" next_window . . . . : 0x%X", ptr_window->next_window);
|
||||
log_printf (" prev_window . . . . : 0x%x", ptr_window->prev_window);
|
||||
log_printf (" next_window . . . . : 0x%x", ptr_window->next_window);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -542,11 +542,13 @@ alias_config_read ()
|
||||
*/
|
||||
|
||||
int
|
||||
alias_config_reload_signal_cb (void *data, char *signal, void *signal_data)
|
||||
alias_config_reload_signal_cb (void *data, char *signal, char *type_data,
|
||||
void *signal_data)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) signal;
|
||||
(void) type_data;
|
||||
(void) signal_data;
|
||||
|
||||
alias_free_all ();
|
||||
|
||||
+31
-5
@@ -134,7 +134,8 @@ demo_buffer_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
|
||||
demo_buffer_input_data_cb);
|
||||
if (new_buffer)
|
||||
weechat_buffer_set (new_buffer, "display", "1");
|
||||
weechat_hook_signal_send ("logger_backlog", new_buffer);
|
||||
weechat_hook_signal_send ("logger_backlog",
|
||||
WEECHAT_HOOK_SIGNAL_POINTER, new_buffer);
|
||||
}
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
@@ -281,14 +282,39 @@ demo_info_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
|
||||
*/
|
||||
|
||||
int
|
||||
demo_signal_cb (void *data, char *signal, void *signal_data)
|
||||
demo_signal_cb (void *data, char *signal, char *type_data, void *signal_data)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
|
||||
weechat_printf (NULL,
|
||||
_("demo_signal: signal: %s, signal_data: %X"),
|
||||
signal, signal_data);
|
||||
if (strcmp (type_data, WEECHAT_HOOK_SIGNAL_STRING) == 0)
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
_("demo_signal: signal: %s, type_data: %s, "
|
||||
"signal_data: '%s'"),
|
||||
signal, type_data, (char *)signal_data);
|
||||
}
|
||||
else if (strcmp (type_data, WEECHAT_HOOK_SIGNAL_INT) == 0)
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
_("demo_signal: signal: %s, type_data: %s, "
|
||||
"signal_data: %d"),
|
||||
signal, type_data, *((int *)signal_data));
|
||||
}
|
||||
else if (strcmp (type_data, WEECHAT_HOOK_SIGNAL_POINTER) == 0)
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
_("demo_signal: signal: %s, type_data: %s, "
|
||||
"signal_data: 0x%x"),
|
||||
signal, type_data, signal_data);
|
||||
}
|
||||
else
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
_("demo_signal: signal: %s, type_data: %s, "
|
||||
"signal_data: 0x%x (unknown type)"),
|
||||
signal, type_data, signal_data);
|
||||
}
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
#include "irc-channel.h"
|
||||
#include "irc-config.h"
|
||||
@@ -495,9 +496,9 @@ irc_channel_print_log (struct t_irc_channel *channel)
|
||||
struct t_irc_nick *ptr_nick;
|
||||
|
||||
weechat_log_printf ("");
|
||||
weechat_log_printf (" => channel %s (addr:0x%X)]", channel->name, channel);
|
||||
weechat_log_printf (" => channel %s (addr:0x%x)]", channel->name, channel);
|
||||
weechat_log_printf (" type . . . . . . . . : %d", channel->type);
|
||||
weechat_log_printf (" dcc_chat . . . . . . : 0x%X", channel->dcc_chat);
|
||||
weechat_log_printf (" dcc_chat . . . . . . : 0x%x", channel->dcc_chat);
|
||||
weechat_log_printf (" topic. . . . . . . . : '%s'", channel->topic);
|
||||
weechat_log_printf (" modes. . . . . . . . : '%s'", channel->modes);
|
||||
weechat_log_printf (" limit. . . . . . . . : %d", channel->limit);
|
||||
@@ -507,12 +508,12 @@ irc_channel_print_log (struct t_irc_channel *channel)
|
||||
weechat_log_printf (" cycle. . . . . . . . : %d", channel->cycle);
|
||||
weechat_log_printf (" close. . . . . . . . : %d", channel->close);
|
||||
weechat_log_printf (" display_creation_date: %d", channel->display_creation_date);
|
||||
weechat_log_printf (" nicks. . . . . . . . : 0x%X", channel->nicks);
|
||||
weechat_log_printf (" last_nick. . . . . . : 0x%X", channel->last_nick);
|
||||
weechat_log_printf (" buffer . . . . . . . : 0x%X", channel->buffer);
|
||||
weechat_log_printf (" nicks_speaking . . . : 0x%X", channel->nicks_speaking);
|
||||
weechat_log_printf (" prev_channel . . . . : 0x%X", channel->prev_channel);
|
||||
weechat_log_printf (" next_channel . . . . : 0x%X", channel->next_channel);
|
||||
weechat_log_printf (" nicks. . . . . . . . : 0x%x", channel->nicks);
|
||||
weechat_log_printf (" last_nick. . . . . . : 0x%x", channel->last_nick);
|
||||
weechat_log_printf (" buffer . . . . . . . : 0x%x", channel->buffer);
|
||||
weechat_log_printf (" nicks_speaking . . . : 0x%x", channel->nicks_speaking);
|
||||
weechat_log_printf (" prev_channel . . . . : 0x%x", channel->prev_channel);
|
||||
weechat_log_printf (" next_channel . . . . : 0x%x", channel->next_channel);
|
||||
if (channel->nicks_speaking)
|
||||
{
|
||||
weechat_log_printf ("");
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
#include "irc-color.h"
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
#include "irc-command.h"
|
||||
#include "irc-color.h"
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
#include "irc-completion.h"
|
||||
#include "irc-config.h"
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <limits.h>
|
||||
#include <pwd.h>
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
#include "irc-config.h"
|
||||
#include "irc-dcc.h"
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
#include "irc-dcc.h"
|
||||
#include "irc-config.h"
|
||||
@@ -1899,9 +1900,9 @@ irc_dcc_print_log ()
|
||||
for (ptr_dcc = irc_dcc_list; ptr_dcc; ptr_dcc = ptr_dcc->next_dcc)
|
||||
{
|
||||
weechat_log_printf ("");
|
||||
weechat_log_printf ("[DCC (addr:0x%X)]", ptr_dcc);
|
||||
weechat_log_printf (" server. . . . . . . : 0x%X", ptr_dcc->server);
|
||||
weechat_log_printf (" channel . . . . . . : 0x%X", ptr_dcc->channel);
|
||||
weechat_log_printf ("[DCC (addr:0x%x)]", ptr_dcc);
|
||||
weechat_log_printf (" server. . . . . . . : 0x%x", ptr_dcc->server);
|
||||
weechat_log_printf (" channel . . . . . . : 0x%x", ptr_dcc->channel);
|
||||
weechat_log_printf (" type. . . . . . . . : %d", ptr_dcc->type);
|
||||
weechat_log_printf (" status. . . . . . . : %d", ptr_dcc->status);
|
||||
weechat_log_printf (" start_time. . . . . : %ld", ptr_dcc->start_time);
|
||||
@@ -1929,7 +1930,7 @@ irc_dcc_print_log ()
|
||||
weechat_log_printf (" last_activity . . . : %ld", ptr_dcc->last_activity);
|
||||
weechat_log_printf (" bytes_per_sec . . . : %lu", ptr_dcc->bytes_per_sec);
|
||||
weechat_log_printf (" eta . . . . . . . . : %lu", ptr_dcc->eta);
|
||||
weechat_log_printf (" prev_dcc. . . . . . : 0x%X", ptr_dcc->prev_dcc);
|
||||
weechat_log_printf (" next_dcc. . . . . . : 0x%X", ptr_dcc->next_dcc);
|
||||
weechat_log_printf (" prev_dcc. . . . . . : 0x%x", ptr_dcc->prev_dcc);
|
||||
weechat_log_printf (" next_dcc. . . . . . : 0x%x", ptr_dcc->next_dcc);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
#include "irc-channel.h"
|
||||
#include "irc-command.h"
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
#include "irc-server.h"
|
||||
#include "irc-channel.h"
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
#include "irc-mode.h"
|
||||
#include "irc-server.h"
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
#include "irc-nick.h"
|
||||
#include "irc-config.h"
|
||||
@@ -470,10 +471,10 @@ void
|
||||
irc_nick_print_log (struct t_irc_nick *nick)
|
||||
{
|
||||
weechat_log_printf ("");
|
||||
weechat_log_printf (" => nick %s (addr:0x%X):", nick->name, nick);
|
||||
weechat_log_printf (" => nick %s (addr:0x%x):", nick->name, nick);
|
||||
weechat_log_printf (" host . . . . . : %s", nick->host);
|
||||
weechat_log_printf (" flags. . . . . : %d", nick->flags);
|
||||
weechat_log_printf (" color. . . . . : '%s'", nick->color);
|
||||
weechat_log_printf (" prev_nick. . . : 0x%X", nick->prev_nick);
|
||||
weechat_log_printf (" next_nick. . . : 0x%X", nick->next_nick);
|
||||
weechat_log_printf (" prev_nick. . . : 0x%x", nick->prev_nick);
|
||||
weechat_log_printf (" next_nick. . . : 0x%x", nick->next_nick);
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
#include "irc-protocol.h"
|
||||
#include "irc-command.h"
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
#include <gnutls/gnutls.h>
|
||||
#endif
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
#include "irc-server.h"
|
||||
#include "irc-channel.h"
|
||||
@@ -2187,7 +2188,8 @@ irc_server_connect (struct t_irc_server *server, int disable_autojoin)
|
||||
if (!server->buffer)
|
||||
return 0;
|
||||
weechat_buffer_set (server->buffer, "display", "1");
|
||||
weechat_hook_signal_send ("logger_backlog", server->buffer);
|
||||
weechat_hook_signal_send ("logger_backlog",
|
||||
WEECHAT_HOOK_SIGNAL_POINTER, server->buffer);
|
||||
}
|
||||
|
||||
#ifndef HAVE_GNUTLS
|
||||
@@ -2733,7 +2735,7 @@ irc_server_print_log ()
|
||||
ptr_server = ptr_server->next_server)
|
||||
{
|
||||
weechat_log_printf ("");
|
||||
weechat_log_printf ("[server %s (addr:0x%X)]", ptr_server->name, ptr_server);
|
||||
weechat_log_printf ("[server %s (addr:0x%x)]", ptr_server->name, ptr_server);
|
||||
weechat_log_printf (" autoconnect . . . . : %d", ptr_server->autoconnect);
|
||||
weechat_log_printf (" autoreconnect . . . : %d", ptr_server->autoreconnect);
|
||||
weechat_log_printf (" autoreconnect_delay : %d", ptr_server->autoreconnect_delay);
|
||||
@@ -2762,7 +2764,7 @@ irc_server_print_log ()
|
||||
weechat_log_printf (" child_read . . . . : %d", ptr_server->child_read);
|
||||
weechat_log_printf (" child_write . . . . : %d", ptr_server->child_write);
|
||||
weechat_log_printf (" sock. . . . . . . . : %d", ptr_server->sock);
|
||||
weechat_log_printf (" hook_fd . . . . . . : 0x%X", ptr_server->hook_fd);
|
||||
weechat_log_printf (" hook_fd . . . . . . : 0x%x", ptr_server->hook_fd);
|
||||
weechat_log_printf (" is_connected. . . . : %d", ptr_server->is_connected);
|
||||
weechat_log_printf (" ssl_connected . . . : %d", ptr_server->ssl_connected);
|
||||
weechat_log_printf (" unterminated_message: '%s'", ptr_server->unterminated_message);
|
||||
@@ -2782,13 +2784,13 @@ irc_server_print_log ()
|
||||
ptr_server->lag_check_time.tv_usec);
|
||||
weechat_log_printf (" lag_next_check. . . : %ld", ptr_server->lag_next_check);
|
||||
weechat_log_printf (" last_user_message . : %ld", ptr_server->last_user_message);
|
||||
weechat_log_printf (" outqueue. . . . . . : 0x%X", ptr_server->outqueue);
|
||||
weechat_log_printf (" last_outqueue . . . : 0x%X", ptr_server->last_outqueue);
|
||||
weechat_log_printf (" buffer. . . . . . . : 0x%X", ptr_server->buffer);
|
||||
weechat_log_printf (" channels. . . . . . : 0x%X", ptr_server->channels);
|
||||
weechat_log_printf (" last_channel. . . . : 0x%X", ptr_server->last_channel);
|
||||
weechat_log_printf (" prev_server . . . . : 0x%X", ptr_server->prev_server);
|
||||
weechat_log_printf (" next_server . . . . : 0x%X", ptr_server->next_server);
|
||||
weechat_log_printf (" outqueue. . . . . . : 0x%x", ptr_server->outqueue);
|
||||
weechat_log_printf (" last_outqueue . . . : 0x%x", ptr_server->last_outqueue);
|
||||
weechat_log_printf (" buffer. . . . . . . : 0x%x", ptr_server->buffer);
|
||||
weechat_log_printf (" channels. . . . . . : 0x%x", ptr_server->channels);
|
||||
weechat_log_printf (" last_channel. . . . : 0x%x", ptr_server->last_channel);
|
||||
weechat_log_printf (" prev_server . . . . : 0x%x", ptr_server->prev_server);
|
||||
weechat_log_printf (" next_server . . . . : 0x%x", ptr_server->next_server);
|
||||
|
||||
for (ptr_channel = ptr_server->channels; ptr_channel;
|
||||
ptr_channel = ptr_channel->next_channel)
|
||||
|
||||
+19
-11
@@ -24,11 +24,13 @@
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef HAVE_GNUTLS
|
||||
#include <gnutls/gnutls.h>
|
||||
#endif
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
#include "irc.h"
|
||||
#include "irc-command.h"
|
||||
#include "irc-completion.h"
|
||||
@@ -62,12 +64,13 @@ gnutls_certificate_credentials gnutls_xcred; /* gnutls client credentials */
|
||||
*/
|
||||
|
||||
int
|
||||
irc_dump_data_cb (void *data, char *signal, void *pointer)
|
||||
irc_dump_data_cb (void *data, char *signal, char *type_data, void *signal_data)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) signal;
|
||||
(void) pointer;
|
||||
(void) type_data;
|
||||
(void) signal_data;
|
||||
|
||||
weechat_log_printf ("");
|
||||
weechat_log_printf ("***** IRC plugin dump *****");
|
||||
@@ -112,19 +115,21 @@ irc_create_directories ()
|
||||
*/
|
||||
|
||||
int
|
||||
irc_quit_cb (void *data, char *signal, void *pointer)
|
||||
irc_quit_cb (void *data, char *signal, char *type_data, void *signal_data)
|
||||
{
|
||||
struct t_irc_server *ptr_server;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) signal;
|
||||
(void) pointer;
|
||||
|
||||
for (ptr_server = irc_servers; ptr_server;
|
||||
ptr_server = ptr_server->next_server)
|
||||
if (strcmp (type_data, WEECHAT_HOOK_SIGNAL_STRING) == 0)
|
||||
{
|
||||
irc_command_quit_server (ptr_server, (char *)pointer);
|
||||
for (ptr_server = irc_servers; ptr_server;
|
||||
ptr_server = ptr_server->next_server)
|
||||
{
|
||||
irc_command_quit_server (ptr_server, (char *)signal_data);
|
||||
}
|
||||
}
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
@@ -135,14 +140,17 @@ irc_quit_cb (void *data, char *signal, void *pointer)
|
||||
*/
|
||||
|
||||
int
|
||||
irc_debug_cb (void *data, char *signal, void *pointer)
|
||||
irc_debug_cb (void *data, char *signal, char *type_data, void *signal_data)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) signal;
|
||||
|
||||
if (weechat_strcasecmp ((char *)pointer, "irc") == 0)
|
||||
irc_debug ^= 1;
|
||||
|
||||
if (strcmp (type_data, WEECHAT_HOOK_SIGNAL_STRING) == 0)
|
||||
{
|
||||
if (weechat_strcasecmp ((char *)signal_data, "irc") == 0)
|
||||
irc_debug ^= 1;
|
||||
}
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
@@ -24,8 +24,6 @@
|
||||
#include <gnutls/gnutls.h>
|
||||
#endif
|
||||
|
||||
#include "../weechat-plugin.h"
|
||||
|
||||
#define weechat_plugin weechat_irc_plugin
|
||||
|
||||
#define IRC_GET_SERVER(__buffer) \
|
||||
|
||||
+21
-13
@@ -409,14 +409,15 @@ logger_stop_all ()
|
||||
*/
|
||||
|
||||
int
|
||||
logger_buffer_open_signal_cb (void *data, char *signal, void *pointer)
|
||||
logger_buffer_open_signal_cb (void *data, char *signal, char *type_data,
|
||||
void *signal_data)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) signal;
|
||||
(void) pointer;
|
||||
(void) type_data;
|
||||
|
||||
logger_start_buffer (pointer);
|
||||
logger_start_buffer (signal_data);
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
@@ -426,14 +427,15 @@ logger_buffer_open_signal_cb (void *data, char *signal, void *pointer)
|
||||
*/
|
||||
|
||||
int
|
||||
logger_buffer_close_signal_cb (void *data, char *signal, void *pointer)
|
||||
logger_buffer_close_signal_cb (void *data, char *signal, char *type_data,
|
||||
void *signal_data)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) signal;
|
||||
(void) pointer;
|
||||
(void) type_data;
|
||||
|
||||
logger_stop (logger_buffer_search (pointer), 1);
|
||||
logger_stop (logger_buffer_search (signal_data), 1);
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
@@ -494,23 +496,25 @@ logger_backlog (struct t_gui_buffer *buffer, char *filename, int lines)
|
||||
*/
|
||||
|
||||
int
|
||||
logger_backlog_signal_cb (void *data, char *signal, void *pointer)
|
||||
logger_backlog_signal_cb (void *data, char *signal, char *type_data,
|
||||
void *signal_data)
|
||||
{
|
||||
struct t_logger_buffer *ptr_logger_buffer;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) signal;
|
||||
(void) type_data;
|
||||
|
||||
if (logger_option_backlog >= 0)
|
||||
{
|
||||
ptr_logger_buffer = logger_buffer_search (pointer);
|
||||
ptr_logger_buffer = logger_buffer_search (signal_data);
|
||||
if (ptr_logger_buffer && ptr_logger_buffer->log_filename
|
||||
&& ptr_logger_buffer->log_enabled)
|
||||
{
|
||||
ptr_logger_buffer->log_enabled = 0;
|
||||
|
||||
logger_backlog (pointer,
|
||||
logger_backlog (signal_data,
|
||||
ptr_logger_buffer->log_filename,
|
||||
logger_option_backlog);
|
||||
|
||||
@@ -526,13 +530,15 @@ logger_backlog_signal_cb (void *data, char *signal, void *pointer)
|
||||
*/
|
||||
|
||||
int
|
||||
logger_start_signal_cb (void *data, char *signal, void *pointer)
|
||||
logger_start_signal_cb (void *data, char *signal, char *type_data,
|
||||
void *signal_data)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) signal;
|
||||
(void) type_data;
|
||||
|
||||
logger_start_buffer (pointer);
|
||||
logger_start_buffer (signal_data);
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
@@ -542,15 +548,17 @@ logger_start_signal_cb (void *data, char *signal, void *pointer)
|
||||
*/
|
||||
|
||||
int
|
||||
logger_stop_signal_cb (void *data, char *signal, void *pointer)
|
||||
logger_stop_signal_cb (void *data, char *signal, char *type_data,
|
||||
void *signal_data)
|
||||
{
|
||||
struct t_logger_buffer *ptr_logger_buffer;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) signal;
|
||||
(void) type_data;
|
||||
|
||||
ptr_logger_buffer = logger_buffer_search (pointer);
|
||||
ptr_logger_buffer = logger_buffer_search (signal_data);
|
||||
if (ptr_logger_buffer)
|
||||
logger_stop (ptr_logger_buffer, 0);
|
||||
|
||||
|
||||
@@ -561,28 +561,28 @@ plugin_infolist_print_log ()
|
||||
ptr_infolist = ptr_infolist->next_infolist)
|
||||
{
|
||||
log_printf ("");
|
||||
log_printf ("[plugin infolist (addr:0x%X)]", ptr_infolist);
|
||||
log_printf (" items. . . . . . . . . : 0x%X", ptr_infolist->items);
|
||||
log_printf (" last_item. . . . . . . : 0x%X", ptr_infolist->last_item);
|
||||
log_printf (" ptr_item . . . . . . . : 0x%X", ptr_infolist->ptr_item);
|
||||
log_printf (" prev_infolist. . . . . : 0x%X", ptr_infolist->prev_infolist);
|
||||
log_printf (" next_infolist. . . . . : 0x%X", ptr_infolist->next_infolist);
|
||||
log_printf ("[plugin infolist (addr:0x%x)]", ptr_infolist);
|
||||
log_printf (" items. . . . . . . . . : 0x%x", ptr_infolist->items);
|
||||
log_printf (" last_item. . . . . . . : 0x%x", ptr_infolist->last_item);
|
||||
log_printf (" ptr_item . . . . . . . : 0x%x", ptr_infolist->ptr_item);
|
||||
log_printf (" prev_infolist. . . . . : 0x%x", ptr_infolist->prev_infolist);
|
||||
log_printf (" next_infolist. . . . . : 0x%x", ptr_infolist->next_infolist);
|
||||
|
||||
for (ptr_item = ptr_infolist->items; ptr_item;
|
||||
ptr_item = ptr_item->next_item)
|
||||
{
|
||||
log_printf ("");
|
||||
log_printf (" [item (addr:0x%X)]", ptr_item);
|
||||
log_printf (" vars . . . . . . . . . : 0x%X", ptr_item->vars);
|
||||
log_printf (" last_var . . . . . . . : 0x%X", ptr_item->last_var);
|
||||
log_printf (" prev_item. . . . . . . : 0x%X", ptr_item->prev_item);
|
||||
log_printf (" next_item. . . . . . . : 0x%X", ptr_item->next_item);
|
||||
log_printf (" [item (addr:0x%x)]", ptr_item);
|
||||
log_printf (" vars . . . . . . . . . : 0x%x", ptr_item->vars);
|
||||
log_printf (" last_var . . . . . . . : 0x%x", ptr_item->last_var);
|
||||
log_printf (" prev_item. . . . . . . : 0x%x", ptr_item->prev_item);
|
||||
log_printf (" next_item. . . . . . . : 0x%x", ptr_item->next_item);
|
||||
|
||||
for (ptr_var = ptr_item->vars; ptr_var;
|
||||
ptr_var = ptr_var->next_var)
|
||||
{
|
||||
log_printf ("");
|
||||
log_printf (" [var (addr:0x%X)]", ptr_var);
|
||||
log_printf (" [var (addr:0x%x)]", ptr_var);
|
||||
log_printf (" name . . . . . . . . : '%s'", ptr_var->name);
|
||||
log_printf (" type . . . . . . . . : %d", ptr_var->type);
|
||||
switch (ptr_var->type)
|
||||
@@ -594,14 +594,14 @@ plugin_infolist_print_log ()
|
||||
log_printf (" value (string) . . . : '%s'", (char *)ptr_var->value);
|
||||
break;
|
||||
case PLUGIN_INFOLIST_POINTER:
|
||||
log_printf (" value (pointer). . . : 0x%X", ptr_var->value);
|
||||
log_printf (" value (pointer). . . : 0x%x", ptr_var->value);
|
||||
break;
|
||||
case PLUGIN_INFOLIST_TIME:
|
||||
log_printf (" value (time) . . . . : %ld", *((time_t *)ptr_var->value));
|
||||
break;
|
||||
}
|
||||
log_printf (" prev_var . . . . . . : 0x%X", ptr_var->prev_var);
|
||||
log_printf (" next_var . . . . . . : 0x%X", ptr_var->next_var);
|
||||
log_printf (" prev_var . . . . . . : 0x%x", ptr_var->prev_var);
|
||||
log_printf (" next_var . . . . . . : 0x%x", ptr_var->next_var);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -302,9 +302,9 @@ plugin_load (char *filename)
|
||||
new_plugin->prefix = &plugin_api_prefix;
|
||||
new_plugin->color = &plugin_api_color;
|
||||
new_plugin->printf_date = &gui_chat_printf_date;
|
||||
new_plugin->log_printf = &log_printf;
|
||||
new_plugin->infobar_printf = &plugin_api_infobar_printf;
|
||||
new_plugin->infobar_remove = &plugin_api_infobar_remove;
|
||||
new_plugin->log_printf = &log_printf;
|
||||
|
||||
new_plugin->hook_command = &hook_command;
|
||||
new_plugin->hook_timer = &hook_timer;
|
||||
@@ -676,15 +676,15 @@ plugin_print_log ()
|
||||
ptr_plugin = ptr_plugin->next_plugin)
|
||||
{
|
||||
log_printf ("");
|
||||
log_printf ("[plugin (addr:0x%X)]", ptr_plugin);
|
||||
log_printf ("[plugin (addr:0x%x)]", ptr_plugin);
|
||||
log_printf (" filename . . . . . . . : '%s'", ptr_plugin->filename);
|
||||
log_printf (" handle . . . . . . . . : 0x%X", ptr_plugin->handle);
|
||||
log_printf (" handle . . . . . . . . : 0x%x", ptr_plugin->handle);
|
||||
log_printf (" name . . . . . . . . . : '%s'", ptr_plugin->name);
|
||||
log_printf (" description. . . . . . : '%s'", ptr_plugin->description);
|
||||
log_printf (" version. . . . . . . . : '%s'", ptr_plugin->version);
|
||||
log_printf (" charset. . . . . . . . : '%s'", ptr_plugin->charset);
|
||||
log_printf (" prev_plugin. . . . . . : 0x%X", ptr_plugin->prev_plugin);
|
||||
log_printf (" next_plugin. . . . . . : 0x%X", ptr_plugin->next_plugin);
|
||||
log_printf (" prev_plugin. . . . . . : 0x%x", ptr_plugin->prev_plugin);
|
||||
log_printf (" next_plugin. . . . . . : 0x%x", ptr_plugin->next_plugin);
|
||||
}
|
||||
|
||||
plugin_infolist_print_log ();
|
||||
|
||||
@@ -20,6 +20,8 @@ libdir = ${weechat_libdir}/plugins
|
||||
|
||||
lib_LTLIBRARIES = perl.la
|
||||
|
||||
perl_la_SOURCES = perl.c
|
||||
perl_la_SOURCES = weechat-perl.c \
|
||||
weechat-perl.h \
|
||||
weechat-perl-api.c
|
||||
perl_la_LDFLAGS = -module
|
||||
perl_la_LIBADD = ../lib_weechat_plugins_scripts.la $(PERL_LFLAGS)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2003-2008 by FlashCode <flashcode@flashtux.org>
|
||||
* See README for License detail, AUTHORS for developers list.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __WEECHAT_PERL_API_H
|
||||
#define __WEECHAT_PERL_API_H 1
|
||||
|
||||
#define weechat_plugin weechat_perl_plugin
|
||||
|
||||
extern struct t_weechat_plugin *weechat_perl_plugin;
|
||||
|
||||
extern void weechat_perl_xs_init (pTHX);
|
||||
|
||||
#endif /* weechat-perl.h */
|
||||
@@ -0,0 +1,734 @@
|
||||
/*
|
||||
* Copyright (c) 2003-2008 by FlashCode <flashcode@flashtux.org>
|
||||
* See README for License detail, AUTHORS for developers list.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* weechat-perl.c: Perl plugin for WeeChat */
|
||||
|
||||
#undef _
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <EXTERN.h>
|
||||
#include <perl.h>
|
||||
#include <XSUB.h>
|
||||
|
||||
#include "../../weechat-plugin.h"
|
||||
#include "../script.h"
|
||||
#include "weechat-perl.h"
|
||||
#include "weechat-perl-api.h"
|
||||
|
||||
|
||||
WEECHAT_PLUGIN_NAME("perl");
|
||||
WEECHAT_PLUGIN_DESCRIPTION("Perl plugin for WeeChat");
|
||||
WEECHAT_PLUGIN_AUTHOR("FlashCode <flashcode@flashtux.org>");
|
||||
WEECHAT_PLUGIN_VERSION("0.1");
|
||||
WEECHAT_PLUGIN_LICENSE("GPL");
|
||||
|
||||
struct t_weechat_plugin *weechat_perl_plugin = NULL;
|
||||
|
||||
struct t_plugin_script *perl_scripts = NULL;
|
||||
struct t_plugin_script *perl_current_script = NULL;
|
||||
char *perl_current_script_filename = NULL;
|
||||
|
||||
#ifdef NO_PERL_MULTIPLICITY
|
||||
#undef MULTIPLICITY
|
||||
#endif
|
||||
|
||||
#ifndef MULTIPLICITY
|
||||
#define PKG_NAME_PREFIX "WeechatPerlPackage"
|
||||
static PerlInterpreter *perl_main = NULL;
|
||||
int perl_num = 0;
|
||||
#endif
|
||||
|
||||
char *perl_weechat_code =
|
||||
{
|
||||
#ifndef MULTIPLICITY
|
||||
"package WeechatPerlScriptLoader;"
|
||||
#endif
|
||||
"$weechat_perl_load_eval_file_error = \"\";"
|
||||
"sub weechat_perl_load_file"
|
||||
"{"
|
||||
" my $filename = shift;"
|
||||
" local $/ = undef;"
|
||||
" open FILE, $filename or return \"__WEECHAT_PERL_ERROR__\";"
|
||||
" $_ = <FILE>;"
|
||||
" close FILE;"
|
||||
" return $_;"
|
||||
"}"
|
||||
"sub weechat_perl_load_eval_file"
|
||||
"{"
|
||||
#ifndef MULTIPLICITY
|
||||
" my ($filename, $package) = @_;"
|
||||
#else
|
||||
" my $filename = shift;"
|
||||
#endif
|
||||
" my $content = weechat_perl_load_file ($filename);"
|
||||
" if ($content eq \"__WEECHAT_PERL_ERROR__\")"
|
||||
" {"
|
||||
" return 1;"
|
||||
" }"
|
||||
#ifndef MULTIPLICITY
|
||||
" my $eval = qq{package $package; $content;};"
|
||||
#else
|
||||
" my $eval = $content;"
|
||||
#endif
|
||||
" {"
|
||||
" eval $eval;"
|
||||
" }"
|
||||
" if ($@)"
|
||||
" {"
|
||||
" $weechat_perl_load_eval_file_error = $@;"
|
||||
" return 2;"
|
||||
" }"
|
||||
" return 0;"
|
||||
"}"
|
||||
"$SIG{__WARN__} = sub { weechat::print \"Perl error: $_[0]\", \"\"; };"
|
||||
"$SIG{__DIE__} = sub { weechat::print \"Perl error: $_[0]\", \"\"; };"
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* weechat_perl_exec: execute a Perl script
|
||||
*/
|
||||
|
||||
void *
|
||||
weechat_perl_exec (struct t_plugin_script *script,
|
||||
int ret_type, char *function, char **argv)
|
||||
{
|
||||
char *func;
|
||||
unsigned int count;
|
||||
void *ret_value;
|
||||
int *ret_i, mem_err;
|
||||
SV *ret_s;
|
||||
|
||||
/* this code is placed here to conform ISO C90 */
|
||||
dSP;
|
||||
|
||||
#ifndef MULTIPLICITY
|
||||
int size = strlen (script->interpreter) + strlen(function) + 3;
|
||||
func = (char *)malloc (size * sizeof(char));
|
||||
if (!func)
|
||||
return NULL;
|
||||
snprintf (func, size, "%s::%s", (char *) script->interpreter, function);
|
||||
#else
|
||||
func = function;
|
||||
PERL_SET_CONTEXT (script->interpreter);
|
||||
#endif
|
||||
|
||||
ENTER;
|
||||
SAVETMPS;
|
||||
PUSHMARK(sp);
|
||||
|
||||
/* are we loading the script file ? */
|
||||
if (strcmp (function, "weechat_perl_load_eval_file") != 0)
|
||||
perl_current_script = script;
|
||||
|
||||
count = perl_call_argv (func, G_EVAL | G_SCALAR, argv);
|
||||
ret_value = NULL;
|
||||
mem_err = 1;
|
||||
|
||||
SPAGAIN;
|
||||
|
||||
if (SvTRUE (ERRSV))
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: error: %s"),
|
||||
weechat_prefix ("error"), "perl", SvPV_nolen (ERRSV));
|
||||
(void) POPs; /* poping the 'undef' */
|
||||
mem_err = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (count != 1)
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: function \"%s\" must "
|
||||
"return one valid value (%d)"),
|
||||
weechat_prefix ("error"), "perl", function, count);
|
||||
mem_err = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ret_type == WEECHAT_SCRIPT_EXEC_STRING)
|
||||
{
|
||||
ret_s = newSVsv(POPs);
|
||||
ret_value = strdup (SvPV_nolen (ret_s));
|
||||
SvREFCNT_dec (ret_s);
|
||||
}
|
||||
else if (ret_type == WEECHAT_SCRIPT_EXEC_INT)
|
||||
{
|
||||
ret_i = (int *)malloc (sizeof(int));
|
||||
if (ret_i)
|
||||
*ret_i = POPi;
|
||||
ret_value = ret_i;
|
||||
}
|
||||
else
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: function \"%s\" is "
|
||||
"internally misused"),
|
||||
weechat_prefix ("error"), "perl", function);
|
||||
mem_err = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PUTBACK;
|
||||
FREETMPS;
|
||||
LEAVE;
|
||||
|
||||
#ifndef MULTIPLICITY
|
||||
free (func);
|
||||
#endif
|
||||
|
||||
if (!ret_value && (mem_err == 1))
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: not enough memory in function "
|
||||
"\"%s\""),
|
||||
weechat_prefix ("error"), "perl", function);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return ret_value;
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_perl_load: load a Perl script
|
||||
*/
|
||||
|
||||
int
|
||||
weechat_perl_load (char *filename)
|
||||
{
|
||||
STRLEN len;
|
||||
struct t_plugin_script tempscript;
|
||||
int *eval;
|
||||
struct stat buf;
|
||||
char *perl_argv[2];
|
||||
|
||||
#ifndef MULTIPLICITY
|
||||
char pkgname[64];
|
||||
#else
|
||||
PerlInterpreter *perl_current_interpreter;
|
||||
char *perl_args[] = { "", "-e", "0" };
|
||||
#endif
|
||||
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: loading Perl script \"%s\""),
|
||||
weechat_prefix ("info"), "perl", filename);
|
||||
|
||||
if (stat (filename, &buf) != 0)
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: script \"%s\" not found"),
|
||||
weechat_prefix ("error"), "perl", filename);
|
||||
return 0;
|
||||
}
|
||||
|
||||
perl_current_script = NULL;
|
||||
|
||||
#ifndef MULTIPLICITY
|
||||
snprintf(pkgname, sizeof(pkgname), "%s%d", PKG_NAME_PREFIX, perl_num);
|
||||
perl_num++;
|
||||
tempscript.interpreter = "WeechatPerlScriptLoader";
|
||||
perl_argv[0] = filename;
|
||||
perl_argv[1] = pkgname;
|
||||
perl_argv[2] = NULL;
|
||||
eval = weechat_perl_exec (plugin, &tempscript,
|
||||
WEECHAT_SCRIPT_EXEC_INT,
|
||||
"weechat_perl_load_eval_file", perl_argv);
|
||||
#else
|
||||
perl_current_interpreter = perl_alloc();
|
||||
|
||||
if (!perl_current_interpreter)
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: unable to create new "
|
||||
"sub-interpreter"),
|
||||
weechat_prefix ("error"), "perl");
|
||||
return 0;
|
||||
}
|
||||
|
||||
perl_current_script_filename = filename;
|
||||
|
||||
PERL_SET_CONTEXT (perl_current_interpreter);
|
||||
perl_construct (perl_current_interpreter);
|
||||
tempscript.interpreter = (PerlInterpreter *) perl_current_interpreter;
|
||||
perl_parse (perl_current_interpreter, weechat_perl_xs_init, 3, perl_args,
|
||||
NULL);
|
||||
|
||||
eval_pv (perl_weechat_code, TRUE);
|
||||
perl_argv[0] = filename;
|
||||
perl_argv[1] = NULL;
|
||||
eval = weechat_perl_exec (&tempscript,
|
||||
WEECHAT_SCRIPT_EXEC_INT,
|
||||
"weechat_perl_load_eval_file",
|
||||
perl_argv);
|
||||
#endif
|
||||
if (!eval)
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: not enough memory to parse "
|
||||
"file \"%s\""),
|
||||
weechat_prefix ("error"), "perl", filename);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ( *eval != 0)
|
||||
{
|
||||
if (*eval == 2)
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: unable to parse file "
|
||||
"\"%s\""),
|
||||
weechat_prefix ("error"), "perl", filename);
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: error: %s"),
|
||||
weechat_prefix ("error"), "perl",
|
||||
#ifndef MULTIPLICITY
|
||||
SvPV(perl_get_sv("WeechatPerlScriptLoader::"
|
||||
"weechat_perl_load_eval_file_error",
|
||||
FALSE), len)
|
||||
#else
|
||||
SvPV(perl_get_sv("weechat_perl_load_eval_file_error",
|
||||
FALSE), len)
|
||||
#endif
|
||||
);
|
||||
}
|
||||
else if (*eval == 1)
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: unable to run file \"%s\""),
|
||||
weechat_prefix ("error"), "perl", filename);
|
||||
}
|
||||
else
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: unknown error while "
|
||||
"loading file \"%s\""),
|
||||
weechat_prefix ("error"), "perl", filename);
|
||||
}
|
||||
#ifdef MULTIPLICITY
|
||||
perl_destruct (perl_current_interpreter);
|
||||
perl_free (perl_current_interpreter);
|
||||
#endif
|
||||
if (perl_current_script && (perl_current_script != &tempscript))
|
||||
weechat_script_remove (weechat_perl_plugin,
|
||||
&perl_scripts, perl_current_script);
|
||||
|
||||
free (eval);
|
||||
return 0;
|
||||
}
|
||||
|
||||
free (eval);
|
||||
|
||||
if (!perl_current_script)
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: function \"register\" not "
|
||||
"found (or failed) in file \"%s\""),
|
||||
weechat_prefix ("error"), "perl", filename);
|
||||
#ifdef MULTIPLICITY
|
||||
perl_destruct (perl_current_interpreter);
|
||||
perl_free (perl_current_interpreter);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef MULTIPLICITY
|
||||
perl_current_script->interpreter = strdup (pkgname);
|
||||
#else
|
||||
perl_current_script->interpreter = (PerlInterpreter *)perl_current_interpreter;
|
||||
#endif
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_perl_load_cb: callback for weechat_script_auto_load() function
|
||||
*/
|
||||
|
||||
int
|
||||
weechat_perl_load_cb (void *data, char *filename)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
|
||||
return weechat_perl_load (filename);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_perl_unload: unload a Perl script
|
||||
*/
|
||||
|
||||
void
|
||||
weechat_perl_unload (struct t_plugin_script *script)
|
||||
{
|
||||
int *r;
|
||||
char *perl_argv[1] = { NULL };
|
||||
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: unloading script \"%s\""),
|
||||
weechat_prefix ("info"), "perl", script->name);
|
||||
|
||||
#ifndef MULTIPLICITY
|
||||
eval_pv (script->interpreter, TRUE);
|
||||
#else
|
||||
PERL_SET_CONTEXT (script->interpreter);
|
||||
#endif
|
||||
|
||||
if (script->shutdown_func[0])
|
||||
{
|
||||
r = (int *) weechat_perl_exec (script,
|
||||
WEECHAT_SCRIPT_EXEC_INT,
|
||||
script->shutdown_func,
|
||||
perl_argv);
|
||||
if (r)
|
||||
free (r);
|
||||
}
|
||||
|
||||
#ifndef MULTIPLICITY
|
||||
if (script->interpreter)
|
||||
free (script->interpreter);
|
||||
#else
|
||||
perl_destruct (script->interpreter);
|
||||
perl_free (script->interpreter);
|
||||
#endif
|
||||
|
||||
weechat_script_remove (weechat_perl_plugin, &perl_scripts, script);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_perl_unload_name: unload a Perl script by name
|
||||
*/
|
||||
|
||||
void
|
||||
weechat_perl_unload_name (char *name)
|
||||
{
|
||||
struct t_plugin_script *ptr_script;
|
||||
|
||||
ptr_script = weechat_script_search (weechat_perl_plugin,
|
||||
&perl_scripts, name);
|
||||
if (ptr_script)
|
||||
{
|
||||
weechat_perl_unload (ptr_script);
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: script \"%s\" unloaded"),
|
||||
weechat_prefix ("info"), "perl", name);
|
||||
}
|
||||
else
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: script \"%s\" not loaded"),
|
||||
weechat_prefix ("error"), "perl", name);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_perl_unload_all: unload all Perl scripts
|
||||
*/
|
||||
|
||||
void
|
||||
weechat_perl_unload_all ()
|
||||
{
|
||||
while (perl_scripts)
|
||||
{
|
||||
weechat_perl_unload (perl_scripts);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_perl_command_cb: callback for "/perl" command
|
||||
*/
|
||||
|
||||
int
|
||||
weechat_perl_command_cb (void *data, struct t_gui_buffer *buffer,
|
||||
int argc, char **argv, char **argv_eol)
|
||||
{
|
||||
//int handler_found, modifier_found;
|
||||
char *path_script;
|
||||
struct t_plugin_script *ptr_script;
|
||||
//struct t_plugin_handler *ptr_handler;
|
||||
//struct t_plugin_modifier *ptr_modifier;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) buffer;
|
||||
|
||||
if (argc == 1)
|
||||
{
|
||||
/* list registered Perl scripts */
|
||||
weechat_printf (NULL, "");
|
||||
weechat_printf (NULL, weechat_gettext ("Registered Perl scripts:"));
|
||||
if (perl_scripts)
|
||||
{
|
||||
for (ptr_script = perl_scripts;
|
||||
ptr_script; ptr_script = ptr_script->next_script)
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
" %s v%s%s%s",
|
||||
ptr_script->name,
|
||||
ptr_script->version,
|
||||
(ptr_script->description[0]) ? " - " : "",
|
||||
ptr_script->description);
|
||||
}
|
||||
}
|
||||
else
|
||||
weechat_printf (NULL, " (none)");
|
||||
|
||||
/* list Perl message handlers */
|
||||
/*plugin->print_server (plugin, "");
|
||||
plugin->print_server (plugin, "Perl message handlers:");
|
||||
handler_found = 0;
|
||||
for (ptr_handler = plugin->handlers;
|
||||
ptr_handler; ptr_handler = ptr_handler->next_handler)
|
||||
{
|
||||
if ((ptr_handler->type == PLUGIN_HANDLER_MESSAGE)
|
||||
&& (ptr_handler->handler_args))
|
||||
{
|
||||
handler_found = 1;
|
||||
plugin->print_server (plugin, " IRC(%s) => Perl(%s)",
|
||||
ptr_handler->irc_command,
|
||||
ptr_handler->handler_args);
|
||||
}
|
||||
}
|
||||
if (!handler_found)
|
||||
plugin->print_server (plugin, " (none)");
|
||||
*/
|
||||
/* list Perl command handlers */
|
||||
/*plugin->print_server (plugin, "");
|
||||
plugin->print_server (plugin, "Perl command handlers:");
|
||||
handler_found = 0;
|
||||
for (ptr_handler = plugin->handlers;
|
||||
ptr_handler; ptr_handler = ptr_handler->next_handler)
|
||||
{
|
||||
if ((ptr_handler->type == PLUGIN_HANDLER_COMMAND)
|
||||
&& (ptr_handler->handler_args))
|
||||
{
|
||||
handler_found = 1;
|
||||
plugin->print_server (plugin, " /%s => Perl(%s)",
|
||||
ptr_handler->command,
|
||||
ptr_handler->handler_args);
|
||||
}
|
||||
}
|
||||
if (!handler_found)
|
||||
plugin->print_server (plugin, " (none)");
|
||||
*/
|
||||
/* list Perl timer handlers */
|
||||
/*plugin->print_server (plugin, "");
|
||||
plugin->print_server (plugin, "Perl timer handlers:");
|
||||
handler_found = 0;
|
||||
for (ptr_handler = plugin->handlers;
|
||||
ptr_handler; ptr_handler = ptr_handler->next_handler)
|
||||
{
|
||||
if ((ptr_handler->type == PLUGIN_HANDLER_TIMER)
|
||||
&& (ptr_handler->handler_args))
|
||||
{
|
||||
handler_found = 1;
|
||||
plugin->print_server (plugin, " %d seconds => Perl(%s)",
|
||||
ptr_handler->interval,
|
||||
ptr_handler->handler_args);
|
||||
}
|
||||
}
|
||||
if (!handler_found)
|
||||
plugin->print_server (plugin, " (none)");
|
||||
*/
|
||||
/* list Perl keyboard handlers */
|
||||
/*plugin->print_server (plugin, "");
|
||||
plugin->print_server (plugin, "Perl keyboard handlers:");
|
||||
handler_found = 0;
|
||||
for (ptr_handler = plugin->handlers;
|
||||
ptr_handler; ptr_handler = ptr_handler->next_handler)
|
||||
{
|
||||
if ((ptr_handler->type == PLUGIN_HANDLER_KEYBOARD)
|
||||
&& (ptr_handler->handler_args))
|
||||
{
|
||||
handler_found = 1;
|
||||
plugin->print_server (plugin, " Perl(%s)",
|
||||
ptr_handler->handler_args);
|
||||
}
|
||||
}
|
||||
if (!handler_found)
|
||||
plugin->print_server (plugin, " (none)");
|
||||
*/
|
||||
/* list Perl event handlers */
|
||||
/*plugin->print_server (plugin, "");
|
||||
plugin->print_server (plugin, "Perl event handlers:");
|
||||
handler_found = 0;
|
||||
for (ptr_handler = plugin->handlers;
|
||||
ptr_handler; ptr_handler = ptr_handler->next_handler)
|
||||
{
|
||||
if ((ptr_handler->type == PLUGIN_HANDLER_EVENT)
|
||||
&& (ptr_handler->handler_args))
|
||||
{
|
||||
handler_found = 1;
|
||||
plugin->print_server (plugin, " %s => Perl(%s)",
|
||||
ptr_handler->event,
|
||||
ptr_handler->handler_args);
|
||||
}
|
||||
}
|
||||
if (!handler_found)
|
||||
plugin->print_server (plugin, " (none)");
|
||||
*/
|
||||
/* List Perl modifiers */
|
||||
/*plugin->print_server (plugin, "");
|
||||
plugin->print_server (plugin, "Perl modifiers:");
|
||||
modifier_found = 0;
|
||||
for (ptr_modifier = plugin->modifiers;
|
||||
ptr_modifier; ptr_modifier = ptr_modifier->next_modifier)
|
||||
{
|
||||
modifier_found = 1;
|
||||
if (ptr_modifier->type == PLUGIN_MODIFIER_IRC_IN)
|
||||
plugin->print_server (plugin, " IRC(%s, %s) => Perl(%s)",
|
||||
ptr_modifier->command,
|
||||
PLUGIN_MODIFIER_IRC_IN_STR,
|
||||
ptr_modifier->modifier_args);
|
||||
else if (ptr_modifier->type == PLUGIN_MODIFIER_IRC_USER)
|
||||
plugin->print_server (plugin, " IRC(%s, %s) => Perl(%s)",
|
||||
ptr_modifier->command,
|
||||
PLUGIN_MODIFIER_IRC_USER_STR,
|
||||
ptr_modifier->modifier_args);
|
||||
else if (ptr_modifier->type == PLUGIN_MODIFIER_IRC_OUT)
|
||||
plugin->print_server (plugin, " IRC(%s, %s) => Perl(%s)",
|
||||
ptr_modifier->command,
|
||||
PLUGIN_MODIFIER_IRC_OUT_STR,
|
||||
ptr_modifier->modifier_args);
|
||||
}
|
||||
if (!modifier_found)
|
||||
plugin->print_server (plugin, " (none)");
|
||||
*/
|
||||
}
|
||||
else if (argc == 2)
|
||||
{
|
||||
if (weechat_strcasecmp (argv[1], "autoload") == 0)
|
||||
{
|
||||
weechat_script_auto_load (weechat_perl_plugin,
|
||||
"perl", &weechat_perl_load_cb);
|
||||
}
|
||||
else if (weechat_strcasecmp (argv[1], "reload") == 0)
|
||||
{
|
||||
weechat_perl_unload_all ();
|
||||
weechat_script_auto_load (weechat_perl_plugin,
|
||||
"perl", &weechat_perl_load_cb);
|
||||
}
|
||||
else if (weechat_strcasecmp (argv[1], "unload") == 0)
|
||||
{
|
||||
weechat_perl_unload_all ();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (weechat_strcasecmp (argv[1], "load") == 0)
|
||||
{
|
||||
/* load Perl script */
|
||||
path_script = weechat_script_search_full_name (weechat_perl_plugin,
|
||||
"perl", argv_eol[2]);
|
||||
weechat_perl_load ((path_script) ? path_script : argv_eol[2]);
|
||||
if (path_script)
|
||||
free (path_script);
|
||||
}
|
||||
else if (weechat_strcasecmp (argv[1], "unload") == 0)
|
||||
{
|
||||
/* unload Perl script */
|
||||
weechat_perl_unload_name (argv_eol[2]);
|
||||
}
|
||||
else
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: unknown option for "
|
||||
"command \"%s\""),
|
||||
weechat_prefix ("error"), "perl", "perl");
|
||||
}
|
||||
}
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_plugin_init: initialize Perl plugin
|
||||
*/
|
||||
|
||||
int
|
||||
weechat_plugin_init (struct t_weechat_plugin *plugin)
|
||||
{
|
||||
weechat_perl_plugin = plugin;
|
||||
|
||||
#ifndef MULTIPLICITY
|
||||
char *perl_args[] = { "", "-e", "0" };
|
||||
|
||||
perl_main = perl_alloc ();
|
||||
|
||||
if (!perl_main)
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
weechat_gettext ("%s%s: unable to initialize Perl"),
|
||||
weechat_prefix ("error"), "perl");
|
||||
return WEECHAT_RC_ERROR;
|
||||
}
|
||||
|
||||
perl_construct (perl_main);
|
||||
perl_parse (perl_main, weechat_perl_xs_init, 3, perl_args, NULL);
|
||||
eval_pv (perl_weechat_code, TRUE);
|
||||
#endif
|
||||
|
||||
weechat_hook_command ("perl",
|
||||
weechat_gettext ("list/load/unload Perl scripts"),
|
||||
weechat_gettext ("[load filename] | [autoload] | "
|
||||
"[reload] | [unload [script]]"),
|
||||
weechat_gettext ("filename: Perl script (file) to "
|
||||
"load\n"
|
||||
"script: script name to unload\n\n"
|
||||
"Without argument, /perl command "
|
||||
"lists all loaded Perl scripts."),
|
||||
"load|autoload|reload|unload %f",
|
||||
&weechat_perl_command_cb, NULL);
|
||||
|
||||
weechat_mkdir_home ("perl", 0644);
|
||||
weechat_mkdir_home ("perl/autoload", 0644);
|
||||
|
||||
weechat_script_auto_load (weechat_perl_plugin,
|
||||
"perl", &weechat_perl_load_cb);
|
||||
|
||||
/* init ok */
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_plugin_end: end Perl plugin
|
||||
*/
|
||||
|
||||
void
|
||||
weechat_plugin_end (struct t_weechat_plugin *plugin)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) plugin;
|
||||
|
||||
/* unload all scripts */
|
||||
weechat_perl_unload_all (weechat_perl_plugin);
|
||||
|
||||
#ifndef MULTIPLICITY
|
||||
/* free perl intepreter */
|
||||
if (perl_main)
|
||||
{
|
||||
perl_destruct (perl_main);
|
||||
perl_free (perl_main);
|
||||
perl_main = NULL;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (c) 2003-2008 by FlashCode <flashcode@flashtux.org>
|
||||
* See README for License detail, AUTHORS for developers list.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __WEECHAT_PERL_H
|
||||
#define __WEECHAT_PERL_H 1
|
||||
|
||||
#include "../../weechat-plugin.h"
|
||||
#include "../script.h"
|
||||
|
||||
#define weechat_plugin weechat_perl_plugin
|
||||
|
||||
extern struct t_weechat_plugin *weechat_perl_plugin;
|
||||
|
||||
extern struct t_plugin_script *perl_scripts;
|
||||
extern struct t_plugin_script *perl_current_script;
|
||||
extern char *perl_current_script_filename;
|
||||
|
||||
extern void * weechat_perl_exec (struct t_plugin_script *script,
|
||||
int ret_type, char *function, char **argv);
|
||||
|
||||
#endif /* weechat-perl.h */
|
||||
+522
-348
File diff suppressed because it is too large
Load Diff
+109
-45
@@ -23,8 +23,29 @@
|
||||
#define __WEECHAT_SCRIPT_H 1
|
||||
|
||||
/* constants which defines return types for weechat_<lang>_exec functions */
|
||||
#define SCRIPT_EXEC_INT 1
|
||||
#define SCRIPT_EXEC_STRING 2
|
||||
#define WEECHAT_SCRIPT_EXEC_INT 1
|
||||
#define WEECHAT_SCRIPT_EXEC_STRING 2
|
||||
|
||||
#define WEECHAT_SCRIPT_MSG_NOT_INITIALIZED(__language, __function) \
|
||||
weechat_printf (NULL, \
|
||||
weechat_gettext("%s%s: unable to call function " \
|
||||
"\"%s\", script is not " \
|
||||
"initialized"), \
|
||||
weechat_prefix ("error"), __language, __function)
|
||||
#define WEECHAT_SCRIPT_MSG_WRONG_ARGUMENTS(__language, __function) \
|
||||
weechat_printf (NULL, \
|
||||
weechat_gettext("%s%s: wrong arguments for " \
|
||||
"function \"%s\""), \
|
||||
weechat_prefix ("error"), __language, __function)
|
||||
|
||||
struct t_script_hook
|
||||
{
|
||||
struct t_hook *hook; /* pointer to hook */
|
||||
char *function; /* script function called */
|
||||
void *script; /* pointer to script */
|
||||
struct t_script_hook *prev_hook; /* link to next script hook */
|
||||
struct t_script_hook *next_hook; /* link to previous hook */
|
||||
};
|
||||
|
||||
struct t_plugin_script
|
||||
{
|
||||
@@ -37,69 +58,112 @@ struct t_plugin_script
|
||||
char *shutdown_func; /* function when script is unloaded*/
|
||||
char *charset; /* script charset */
|
||||
|
||||
struct t_script_hook *hooks; /* hooks for script */
|
||||
|
||||
struct t_plugin_script *prev_script; /* link to previous script */
|
||||
struct t_plugin_script *next_script; /* link to next script */
|
||||
};
|
||||
|
||||
extern void weechat_script_auto_load (struct t_weechat_plugin *plugin, char *language,
|
||||
extern char *weechat_script_pointer_to_string (void *pointer);
|
||||
extern void *weechat_script_string_to_pointer (char *pointer_str);
|
||||
extern void weechat_script_auto_load (struct t_weechat_plugin *weechat_plugin,
|
||||
char *language,
|
||||
int (*callback)(void *data, char *filename));
|
||||
extern struct t_plugin_script *weechat_script_search (struct t_weechat_plugin *plugin,
|
||||
extern struct t_plugin_script *weechat_script_search (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script **list,
|
||||
char *name);
|
||||
extern char *weechat_script_search_full_name (struct t_weechat_plugin *plugin,
|
||||
extern char *weechat_script_search_full_name (struct t_weechat_plugin *weechat_plugin,
|
||||
char *language, char *filename);
|
||||
extern struct t_plugin_script *weechat_script_add (struct t_weechat_plugin *plugin,
|
||||
extern struct t_plugin_script *weechat_script_add (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script **script_list,
|
||||
char *filename, char *name,
|
||||
char *version,
|
||||
char *shutdown_func,
|
||||
char *description,
|
||||
char *charset);
|
||||
extern void weechat_script_remove (struct t_weechat_plugin *plugin,
|
||||
extern void weechat_script_remove (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script **script_list,
|
||||
struct t_plugin_script *script);
|
||||
extern void weechat_script_print (struct t_weechat_plugin *plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *server, char *channel,
|
||||
char *message, ...);
|
||||
extern void weechat_script_print_server (struct t_weechat_plugin *plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *message, ...);
|
||||
extern void weechat_script_print_infobar (struct t_weechat_plugin *plugin,
|
||||
struct t_plugin_script *script,
|
||||
int delay, char *message, ...);
|
||||
extern void weechat_script_log (struct t_weechat_plugin *plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *server, char *channel,
|
||||
char *message, ...);
|
||||
extern void weechat_script_exec_command (struct t_weechat_plugin *plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *server, char *channel,
|
||||
char *command);
|
||||
extern void weechat_script_remove_handler (struct t_weechat_plugin *plugin,
|
||||
extern void weechat_script_charset_set (struct t_plugin_script *script,
|
||||
char *charset);
|
||||
extern void weechat_script_printf (struct t_weechat_plugin *plugin,
|
||||
struct t_plugin_script *script,
|
||||
struct t_gui_buffer *buffer,
|
||||
char *format, ...);
|
||||
extern void weechat_script_infobar_printf (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *arg1, char *arg2);
|
||||
extern void weechat_script_remove_timer_handler (struct t_weechat_plugin *plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *function);
|
||||
extern void weechat_script_remove_keyboard_handler (struct t_weechat_plugin *plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *function);
|
||||
extern void weechat_script_remove_event_handler (struct t_weechat_plugin *plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *function);
|
||||
extern void weechat_script_remove_modifier (struct t_weechat_plugin *plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *arg1, char *arg2,
|
||||
char *arg3);
|
||||
extern char *weechat_script_get_plugin_config (struct t_weechat_plugin *plugin,
|
||||
int delay, char *color_name,
|
||||
char *format, ...);
|
||||
extern void weechat_script_log_printf (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *format, ...);
|
||||
extern int weechat_script_hook_command (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *command, char *description,
|
||||
char *args, char *args_description,
|
||||
char *completion,
|
||||
int (*callback)(void *data,
|
||||
struct t_gui_buffer *buffer,
|
||||
int argc, char **argv,
|
||||
char **argv_eol),
|
||||
char *function);
|
||||
extern int weechat_script_hook_timer (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script *script,
|
||||
int interval, int align_second,
|
||||
int max_calls,
|
||||
int (*callback)(void *data),
|
||||
char *function);
|
||||
extern int weechat_script_hook_fd (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script *script,
|
||||
int fd, int flag_read, int flag_write,
|
||||
int flag_exception,
|
||||
int (*callback)(void *data),
|
||||
char *function);
|
||||
extern int weechat_script_hook_print (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script *script,
|
||||
struct t_gui_buffer *buffer,
|
||||
char *message, int strip_colors,
|
||||
int (*callback)(void *data,
|
||||
struct t_gui_buffer *buffer,
|
||||
time_t date,
|
||||
char *prefix,
|
||||
char *message),
|
||||
char *function);
|
||||
extern int weechat_script_hook_signal (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *signal,
|
||||
int (*callback)(void *data,
|
||||
char *signal,
|
||||
char *type_data,
|
||||
void *signal_data),
|
||||
char *function);
|
||||
extern int weechat_script_hook_config (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *type, char *option,
|
||||
int (*callback)(void *data, char *type,
|
||||
char *option,
|
||||
char *value),
|
||||
char *function);
|
||||
extern int weechat_script_hook_completion (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *completion,
|
||||
int (*callback)(void *data,
|
||||
char *completion,
|
||||
struct t_gui_buffer *buffer,
|
||||
struct t_weelist *list),
|
||||
char *function);
|
||||
extern void weechat_script_unhook (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script *script,
|
||||
struct t_hook *hook);
|
||||
extern void weechat_script_command (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script *script,
|
||||
struct t_gui_buffer *buffer,
|
||||
char *command);
|
||||
extern char *weechat_script_config_get_plugin (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *option);
|
||||
extern int weechat_script_set_plugin_config (struct t_weechat_plugin *plugin,
|
||||
extern int weechat_script_config_set_plugin (struct t_weechat_plugin *weechat_plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *option, char *value);
|
||||
extern void weechat_script_set_charset (struct t_weechat_plugin *plugin,
|
||||
struct t_plugin_script *script,
|
||||
char *charset);
|
||||
|
||||
#endif /* script.h */
|
||||
|
||||
@@ -44,13 +44,13 @@ struct t_weelist;
|
||||
|
||||
/* return codes specific to message handlers: messages can be discarded for
|
||||
WeeChat, for plugins, or both */
|
||||
#define WEECHAT_RC_IGNORE_WEECHAT 1 /* ignore WeeChat for this message */
|
||||
#define WEECHAT_RC_IGNORE_PLUGINS 2 /* ignore other plugins for msg */
|
||||
#define WEECHAT_RC_IGNORE_ALL (PLUGIN_RC_OK_IGNORE_WEECHAT \
|
||||
| PLUGIN_RC_OK_IGNORE_PLUGINS)
|
||||
/* ignore WeeChat and other plugins */
|
||||
#define WEECHAT_RC_WITH_HIGHLIGHT 4 /* ok and ask for highlight */
|
||||
/* (for message handler only) */
|
||||
#define WEECHAT_RC_OK_IGNORE_WEECHAT 1 /* ignore WeeChat for this message */
|
||||
#define WEECHAT_RC_OK_IGNORE_PLUGINS 2 /* ignore other plugins for msg */
|
||||
#define WEECHAT_RC_OK_IGNORE_ALL (WEECHAT_RC_OK_IGNORE_WEECHAT \
|
||||
| WEECHAT_RC_OK_IGNORE_PLUGINS)
|
||||
/* ignore WeeChat and other plugins */
|
||||
#define WEECHAT_RC_OK_WITH_HIGHLIGHT 4 /* ok and ask for highlight */
|
||||
/* (for message handler only) */
|
||||
|
||||
/* list management (order of elements) */
|
||||
#define WEECHAT_LIST_POS_SORT "sort"
|
||||
@@ -63,6 +63,11 @@ struct t_weelist;
|
||||
#define WEECHAT_HOTLIST_PRIVATE "2"
|
||||
#define WEECHAT_HOTLIST_HIGHLIGHT "3"
|
||||
|
||||
/* type of data for signal hooked */
|
||||
#define WEECHAT_HOOK_SIGNAL_STRING "string"
|
||||
#define WEECHAT_HOOK_SIGNAL_INT "int"
|
||||
#define WEECHAT_HOOK_SIGNAL_POINTER "pointer"
|
||||
|
||||
struct t_weechat_plugin
|
||||
{
|
||||
/* plugin variables */
|
||||
@@ -197,10 +202,10 @@ struct t_weechat_plugin
|
||||
char *(*color) (char *color_name);
|
||||
void (*printf_date) (struct t_gui_buffer *buffer, time_t date,
|
||||
char *message, ...);
|
||||
void (*log_printf) (char *message, ...);
|
||||
void (*infobar_printf) (struct t_weechat_plugin *plugin, int delay,
|
||||
char *color_name, char *format, ...);
|
||||
void (*infobar_remove) (int how_many);
|
||||
void (*log_printf) (char *message, ...);
|
||||
|
||||
/* hooks */
|
||||
struct t_hook *(*hook_command) (struct t_weechat_plugin *plugin,
|
||||
@@ -233,9 +238,11 @@ struct t_weechat_plugin
|
||||
struct t_hook *(*hook_signal) (struct t_weechat_plugin *plugin,
|
||||
char *signal,
|
||||
int (*callback)(void *data, char *signal,
|
||||
char *type_data,
|
||||
void *signal_data),
|
||||
void *callback_data);
|
||||
void (*hook_signal_send) (char *signal, void *signal_data);
|
||||
void (*hook_signal_send) (char *signal, char *type_data,
|
||||
void *signal_data);
|
||||
struct t_hook *(*hook_config) (struct t_weechat_plugin *plugin,
|
||||
char *type, char *option,
|
||||
int (*callback)(void *data, char *type,
|
||||
@@ -315,11 +322,16 @@ struct t_weechat_plugin
|
||||
#define weechat_iconv_from_internal(__charset, __string) \
|
||||
weechat_plugin->iconv_from_internal(__charset, __string)
|
||||
#ifndef __WEECHAT_H
|
||||
#ifndef _
|
||||
#define _(string) weechat_plugin->gettext(string)
|
||||
#define N_(string) (string)
|
||||
#define NG_(single,plural,number) \
|
||||
weechat_plugin->ngettext(single, plural, number)
|
||||
#endif
|
||||
#endif
|
||||
#define weechat_gettext(string) weechat_plugin->gettext(string)
|
||||
#define weechat_ngettext(single,plural,number) \
|
||||
weechat_plugin->ngettext(single, plural, number)
|
||||
#define weechat_strcasecmp(__string1, __string2) \
|
||||
weechat_plugin->strcasecmp(__string1, __string2)
|
||||
#define weechat_strncasecmp(__string1, __string2, __max) \
|
||||
@@ -472,14 +484,14 @@ struct t_weechat_plugin
|
||||
weechat_plugin->printf_date(__buffer, 0, __message, ##__argz)
|
||||
#define weechat_printf_date(__buffer, __date, __message, __argz...) \
|
||||
weechat_plugin->printf_date(__buffer, __date, __message, ##__argz)
|
||||
#define weechat_log_printf(__message, __argz...) \
|
||||
weechat_plugin->log_printf(__message, ##__argz)
|
||||
#define weechat_infobar_printf(__delay, __color_name, __message, \
|
||||
__argz...) \
|
||||
weechat_plugin->infobar_printf(weechat_plugin, __delay, \
|
||||
__color_name, __message, ##__argz)
|
||||
#define weechat_infobar_remove(__how_many) \
|
||||
weechat_plugin->infobar_remove(__how_many)
|
||||
#define weechat_log_printf(__message, __argz...) \
|
||||
weechat_plugin->log_printf(__message, ##__argz)
|
||||
|
||||
/* hooks */
|
||||
#define weechat_hook_command(__command, __description, __args, \
|
||||
@@ -505,8 +517,9 @@ struct t_weechat_plugin
|
||||
#define weechat_hook_signal(__signal, __callback, __data) \
|
||||
weechat_plugin->hook_signal(weechat_plugin, __signal, __callback, \
|
||||
__data)
|
||||
#define weechat_hook_signal_send(__signal, __pointer) \
|
||||
weechat_plugin->hook_signal_send(__signal, __pointer)
|
||||
#define weechat_hook_signal_send(__signal, __type_data, __signal_data) \
|
||||
weechat_plugin->hook_signal_send(__signal, __type_data, \
|
||||
__signal_data)
|
||||
#define weechat_hook_config(__type, __option, __callback, __data) \
|
||||
weechat_plugin->hook_config(weechat_plugin, __type, __option, \
|
||||
__callback, __data)
|
||||
|
||||
Reference in New Issue
Block a user