summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-03-05 17:03:15 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-03-05 17:03:15 +0000
commit74330158421dce2429005ee67418aa0b1cbe7977 (patch)
tree4afb0c367142f8d0aa3da42ff5f480720665fc81
parent57daa68be5ed4d44b64d0c1fd28875093593fe79 (diff)
downloadweechat-74330158421dce2429005ee67418aa0b1cbe7977.zip
Added crash dump when WeeChat receives SIGSEGV (Segmentation fault)
-rw-r--r--ChangeLog3
-rw-r--r--po/es.po271
-rw-r--r--po/fr.po273
-rw-r--r--po/weechat.pot269
-rw-r--r--src/common/command.c44
-rw-r--r--src/common/command.h1
-rw-r--r--src/common/completion.c10
-rw-r--r--src/common/weechat.c181
-rw-r--r--src/common/weechat.h3
-rw-r--r--src/gui/gui-common.c112
-rw-r--r--src/gui/gui.h2
-rw-r--r--src/irc/irc-channel.c22
-rw-r--r--src/irc/irc-nick.c19
-rw-r--r--src/irc/irc-server.c48
-rw-r--r--src/irc/irc.h3
-rw-r--r--weechat/ChangeLog3
-rw-r--r--weechat/po/es.po271
-rw-r--r--weechat/po/fr.po273
-rw-r--r--weechat/po/weechat.pot269
-rw-r--r--weechat/src/common/command.c44
-rw-r--r--weechat/src/common/command.h1
-rw-r--r--weechat/src/common/completion.c10
-rw-r--r--weechat/src/common/weechat.c181
-rw-r--r--weechat/src/common/weechat.h3
-rw-r--r--weechat/src/gui/gui-common.c112
-rw-r--r--weechat/src/gui/gui.h2
-rw-r--r--weechat/src/irc/irc-channel.c22
-rw-r--r--weechat/src/irc/irc-nick.c19
-rw-r--r--weechat/src/irc/irc-server.c48
-rw-r--r--weechat/src/irc/irc.h3
30 files changed, 1668 insertions, 854 deletions
diff --git a/ChangeLog b/ChangeLog
index 5667460eb..2c21d21cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
-ChangeLog - 2005-02-27
+ChangeLog - 2005-03-05
Version 0.1.1 (under dev!):
+ * added crash dump when WeeChat receives SIGSEGV (Segmentation fault)
* added new display engine: doesn't cut words at end of lines
* added DCC send and DCC chat
* added spanish translation
diff --git a/po/es.po b/po/es.po
index 23dfd2272..f823c46d9 100644
--- a/po/es.po
+++ b/po/es.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.1.1-cvs\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2005-02-28 11:36+0100\n"
-"PO-Revision-Date: 2005-02-28 11:25+0100\n"
+"POT-Creation-Date: 2005-03-05 17:57+0100\n"
+"PO-Revision-Date: 2005-03-05 18:00+0100\n"
"Last-Translator: Roberto González Cardenete <robert.glez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -1170,7 +1170,7 @@ msgstr "indicador de modo desconocido"
msgid "can't change mode for other users"
msgstr "no es posible cambiar el modo para el resto de usuarios"
-#: src/irc/irc-display.c:154 src/common/command.c:804
+#: src/irc/irc-display.c:154 src/common/command.c:808
msgid "Server: "
msgstr "Servidor: "
@@ -1208,7 +1208,8 @@ msgid "%s: using local hostname \"%s\"\n"
msgstr "%s: utilización del nombre de máquina local \"%s\"\n"
#: src/irc/irc-send.c:265 src/irc/irc-send.c:277 src/irc/irc-send.c:295
-#: src/irc/irc-send.c:775 src/irc/irc-send.c:849 src/common/command.c:1359
+#: src/irc/irc-send.c:775 src/irc/irc-send.c:849 src/common/command.c:1120
+#: src/common/command.c:1395
#, c-format
msgid "%s wrong argument count for \"%s\" command\n"
msgstr "%s número de argumentos incorrecto para el comando \"%s\"\n"
@@ -2017,26 +2018,40 @@ msgid "servername: server name to disconnect"
msgstr "nombre_del_servidor: nombre del servidor del que desconectarse"
#: src/common/command.c:68
+msgid "print debug messages"
+msgstr ""
+
+#: src/common/command.c:69
+msgid "dump"
+msgstr "dump"
+
+#: src/common/command.c:70
+msgid ""
+"dump: save memory dump in WeeChat log file (same dump is written when "
+"WeeChat crashes)"
+msgstr ""
+
+#: src/common/command.c:72
msgid "display help about commands"
msgstr "mostrar ayuda sobre los comandos"
-#: src/common/command.c:69
+#: src/common/command.c:73
msgid "[command]"
msgstr "[comando]"
-#: src/common/command.c:69
+#: src/common/command.c:73
msgid "command: name of a WeeChat or IRC command"
msgstr "comando: nombre de un comando de Weechat ó de IRC"
-#: src/common/command.c:71
+#: src/common/command.c:75
msgid "list/load/unload Perl scripts"
msgstr "lista/carga/descarga de los Perl scripts"
-#: src/common/command.c:72
+#: src/common/command.c:76
msgid "[load filename] | [autoload] | [unload]"
msgstr "[load fichero] | [autoload] | [unload]"
-#: src/common/command.c:73
+#: src/common/command.c:77
msgid ""
"filename: Perl script (file) to load\n"
"Without argument, /perl command lists all loaded Perl scripts."
@@ -2044,11 +2059,11 @@ msgstr ""
"fichero: Perl script (archivo) a cargar\n"
"Sin argumentos, el comando /perl lista todos los Perl scripts cargados."
-#: src/common/command.c:76
+#: src/common/command.c:80
msgid "list, add or remove servers"
msgstr "lista, añade o elimina servidores"
-#: src/common/command.c:77
+#: src/common/command.c:81
msgid ""
"[servername] | [servername hostname port [-auto | -noauto] [-pwd password] [-"
"nicks nick1 [nick2 [nick3]]] [-username username] [-realname realname] [-"
@@ -2059,7 +2074,7 @@ msgstr ""
"nombre de usuario] [-realname nombre_real] [-command comando] [-autojoin "
"canal[,canal]] ] | [del nombre_de_servidor]"
-#: src/common/command.c:82
+#: src/common/command.c:86
msgid ""
"servername: server name, for internal & display use\n"
"hostname: name or IP address of server\n"
@@ -2081,27 +2096,27 @@ msgstr ""
"nombre_de_usuario: nombre de usuario\n"
"nombre_real: nombre real del usuario"
-#: src/common/command.c:92
+#: src/common/command.c:96
msgid "save config to disk"
msgstr "guardar configuración a disco"
-#: src/common/command.c:93
+#: src/common/command.c:97
msgid "[file]"
msgstr "[archivo]"
-#: src/common/command.c:93
+#: src/common/command.c:97
msgid "file: filename for writing config"
msgstr "archivo: fichero en el que guardar la configuración"
-#: src/common/command.c:95
+#: src/common/command.c:99
msgid "set config parameters"
msgstr "modificar parámetros de configuración"
-#: src/common/command.c:96
+#: src/common/command.c:100
msgid "[option[=value]]"
msgstr "[opción[=valor]]"
-#: src/common/command.c:96
+#: src/common/command.c:100
msgid ""
"option: name of an option\n"
"value: value for option"
@@ -2109,27 +2124,27 @@ msgstr ""
"opción: nombre de una opción\n"
"valor: valor para la opción"
-#: src/common/command.c:98
+#: src/common/command.c:102
msgid "remove an alias"
msgstr "eliminar un alias"
-#: src/common/command.c:99
+#: src/common/command.c:103
msgid "alias_name"
msgstr "alias"
-#: src/common/command.c:99
+#: src/common/command.c:103
msgid "alias_name: name of alias to remove"
msgstr "alias: nombre del alias a suprimir"
-#: src/common/command.c:101
+#: src/common/command.c:105
msgid "manage windows"
msgstr "gestión de ventanas"
-#: src/common/command.c:102
+#: src/common/command.c:106
msgid "[list | splith | splitv | [merge [down | up | left | right | all]]]"
msgstr "[list | splith | splitv | [merge [down | up | left | right | all]]]"
-#: src/common/command.c:104
+#: src/common/command.c:108
msgid ""
" list list opened windows (no parameter implies this list)\n"
"splith split current window horizontally\n"
@@ -2142,29 +2157,29 @@ msgstr ""
"splitv dividir la ventana actual verticalmente\n"
" merge fusionar una ventana con otra"
-#: src/common/command.c:250
+#: src/common/command.c:254
#, c-format
msgid "%s alias or command \"%s\" already exists!\n"
msgstr "%s ¡el alias o el comando \"%s\" ya existe!\n"
-#: src/common/command.c:260
+#: src/common/command.c:264
#, c-format
msgid "%s alias cannot run another alias!\n"
msgstr "%s ¡el alias no puede ejecutar otro alias!\n"
-#: src/common/command.c:267
+#: src/common/command.c:271
#, c-format
msgid "%s target command \"%s\" does not exist!\n"
msgstr "%s ¡el comando objetivo \"%s\" no existe!\n"
-#: src/common/command.c:475
+#: src/common/command.c:479
#, c-format
msgid "%s wrong argument count for %s command \"%s\" (expected: %d arg%s)\n"
msgstr ""
"%s número de argumentos incorrecto para el comando %s \"%s\" (esperado: %d "
"parámetro%s)\n"
-#: src/common/command.c:487
+#: src/common/command.c:491
#, c-format
msgid ""
"%s wrong argument count for %s command \"%s\" (expected: between %d and %d "
@@ -2173,19 +2188,19 @@ msgstr ""
"%s número de argumentos incorrecto para el comando %s \"%s\" (esperado: "
"entre %d y %d parámetro%s)\n"
-#: src/common/command.c:509 src/common/command.c:579
+#: src/common/command.c:513 src/common/command.c:583
#, c-format
msgid "%s command \"%s\" failed\n"
msgstr "%s el comando \"%s\" ha fallado\n"
-#: src/common/command.c:537
+#: src/common/command.c:541
#, c-format
msgid "%s wrong argument count for IRC command \"%s\" (expected: %d arg%s)\n"
msgstr ""
"%s número de argumentos incorrecto para el comando IRC \"%s\" (esperado: %d "
"parámetro%s)\n"
-#: src/common/command.c:549
+#: src/common/command.c:553
#, c-format
msgid ""
"%s wrong argument count for IRC command \"%s\" (expected: between %d and %d "
@@ -2194,177 +2209,177 @@ msgstr ""
"%s número de argumentos incorrecto para el comando IRC \"%s\" (esperado: "
"entre %d y %d parámetro%s)\n"
-#: src/common/command.c:564
+#: src/common/command.c:568
#, c-format
msgid "%s command \"%s\" needs a server connection!\n"
msgstr "%s ¡el comando \"%s\" requiere una conexión a servidor!\n"
-#: src/common/command.c:628
+#: src/common/command.c:632
#, c-format
msgid "%s unknown command \"%s\" (type /help for help)\n"
msgstr "%s comando \"%s\" desconocido (escriba /help para la ayuda)\n"
-#: src/common/command.c:703
+#: src/common/command.c:707
#, c-format
msgid "%s cannot find nick for sending message\n"
msgstr "%s no ha sido posible encontrar el usuario al que enviar el mensaje\n"
-#: src/common/command.c:712
+#: src/common/command.c:716
msgid "This window is not a channel!\n"
msgstr "¡Esta ventana no es un canal!\n"
-#: src/common/command.c:740 src/common/command.c:764 src/common/command.c:868
+#: src/common/command.c:744 src/common/command.c:768 src/common/command.c:872
#, c-format
msgid "%s missing arguments for \"%s\" command\n"
msgstr "%s faltan argumentos para el comando \"%s\"\n"
-#: src/common/command.c:749
+#: src/common/command.c:753
#, c-format
msgid "Alias \"%s\" => \"%s\" created\n"
msgstr "Alias \"%s\" => \"%s\" creado\n"
-#: src/common/command.c:755
+#: src/common/command.c:759
#, c-format
msgid "Failed to create alias \"%s\" => \"%s\" (not enough memory)\n"
msgstr ""
"No ha sido posible crear el alias \"%s\" => \"%s\" (no hay suficiente "
"memoria)\n"
-#: src/common/command.c:775
+#: src/common/command.c:779
msgid "List of aliases:\n"
msgstr "Lista de alias:\n"
-#: src/common/command.c:787
+#: src/common/command.c:791
msgid "No alias defined.\n"
msgstr "Ningún alias definido.\n"
-#: src/common/command.c:810
+#: src/common/command.c:814
msgid "Channel: "
msgstr "Canal: "
-#: src/common/command.c:813 src/common/command.c:823
+#: src/common/command.c:817 src/common/command.c:827
msgid " (server: "
msgstr " (servidor: "
-#: src/common/command.c:820
+#: src/common/command.c:824
msgid "Private with: "
msgstr "Privado con: "
-#: src/common/command.c:848
+#: src/common/command.c:852
msgid "Opened buffers:\n"
msgstr "Búfers abiertos:\n"
-#: src/common/command.c:891 src/common/command.c:1018
+#: src/common/command.c:895 src/common/command.c:1022
#, c-format
msgid "%s incorrect buffer number\n"
msgstr "%s número de búfer incorrecto\n"
-#: src/common/command.c:905
+#: src/common/command.c:909
#, c-format
msgid "%s can not close the single buffer\n"
msgstr "%s no es posible cerrar el único búfer\n"
-#: src/common/command.c:915
+#: src/common/command.c:919
#, c-format
msgid "%s can not close server buffer while channels are opened\n"
msgstr ""
"%s no se puede cerrar el búfer de servidor mientras haya canales abiertos\n"
-#: src/common/command.c:954
+#: src/common/command.c:958
msgid "Notify levels: "
msgstr "Niveles de notificación: "
-#: src/common/command.c:981 src/common/command.c:991
+#: src/common/command.c:985 src/common/command.c:995
#, c-format
msgid "%s incorrect notify level (must be between 0 and 3)\n"
msgstr "%s nivel de notificación incorrecto (debe estar entre 0 y 3)\n"
-#: src/common/command.c:1009
+#: src/common/command.c:1013
#, c-format
msgid "%s buffer \"%s\" not found for \"%s\" command\n"
msgstr "%s búfer \"%s\" no encontrado para el comando \"%s\"\n"
-#: src/common/command.c:1043
+#: src/common/command.c:1047
#, c-format
msgid "unknown parameter \"%s\" for \"%s\" command\n"
msgstr "parámetro desconocido \"%s\" para el comando \"%s\"\n"
-#: src/common/command.c:1073
+#: src/common/command.c:1077
#, c-format
msgid "%s already connected to server \"%s\"!\n"
msgstr "%s ya conectado al servidor \"%s\"!\n"
-#: src/common/command.c:1081
+#: src/common/command.c:1085
#, c-format
msgid "%s currently connecting to server \"%s\"!\n"
msgstr "%s actualmente conectando al servidor \"%s\"!\n"
-#: src/common/command.c:1099 src/common/command.c:1142
+#: src/common/command.c:1103 src/common/command.c:1178
#, c-format
msgid "%s server not found\n"
msgstr "%s servidor no encontrado\n"
-#: src/common/command.c:1126
+#: src/common/command.c:1133 src/common/command.c:1388
+#: src/common/command.c:2085 src/common/command.c:2097
+#, c-format
+msgid "%s unknown option for \"%s\" command\n"
+msgstr "%s opción desconocida para el comando \"%s\"\n"
+
+#: src/common/command.c:1162
#, c-format
msgid "%s not connected to server \"%s\"!\n"
msgstr "%s ¡no conectado al servidor \"%s\"!\n"
-#: src/common/command.c:1134
+#: src/common/command.c:1170
msgid "Auto-reconnection is cancelled\n"
msgstr "La reconexión automática está anulada\n"
-#: src/common/command.c:1160
+#: src/common/command.c:1196
#, c-format
msgid "%s internal commands:\n"
msgstr "Comandos internos %s :\n"
-#: src/common/command.c:1169
+#: src/common/command.c:1205
msgid "IRC commands:\n"
msgstr "Comandos IRC :\n"
-#: src/common/command.c:1228
+#: src/common/command.c:1264
#, c-format
msgid "No help available, \"%s\" is an unknown command\n"
msgstr "No hay ayuda disponible, el comando \"%s\" es desconocido\n"
-#: src/common/command.c:1253
+#: src/common/command.c:1289
msgid "Registered Perl scripts:\n"
msgstr "Perl scripts registrados:\n"
-#: src/common/command.c:1270 src/common/command.c:1292
-#: src/common/command.c:1314
+#: src/common/command.c:1306 src/common/command.c:1328
+#: src/common/command.c:1350
msgid " (none)\n"
msgstr " (ninguno)\n"
-#: src/common/command.c:1275
+#: src/common/command.c:1311
msgid "Perl message handlers:\n"
msgstr "Funciones Perl para mensajes:\n"
-#: src/common/command.c:1284
+#: src/common/command.c:1320
#, c-format
msgid " IRC(%s) => Perl(%s)\n"
msgstr " IRC(%s) => Perl(%s)\n"
-#: src/common/command.c:1297
+#: src/common/command.c:1333
msgid "Perl command handlers:\n"
msgstr "Comandos Perl :\n"
-#: src/common/command.c:1306
+#: src/common/command.c:1342
#, c-format
msgid " Command /%s => Perl(%s)\n"
msgstr " Comando /%s => Perl(%s)\n"
-#: src/common/command.c:1326
+#: src/common/command.c:1362
msgid "Perl scripts unloaded\n"
msgstr "Perl scripts descargados\n"
-#: src/common/command.c:1352 src/common/command.c:2049
-#: src/common/command.c:2061
-#, c-format
-msgid "%s unknown option for \"%s\" command\n"
-msgstr "%s opción desconocida para el comando \"%s\"\n"
-
-#: src/common/command.c:1365
+#: src/common/command.c:1401
msgid ""
"WeeChat was build without Perl support.\n"
"Please rebuild WeeChat with \"--enable-perl\" option for ./configure script\n"
@@ -2373,32 +2388,32 @@ msgstr ""
"Por favor, recompile WeeChat con la opción \"--enable-perl\" para el "
"script ./configure\n"
-#: src/common/command.c:1419
+#: src/common/command.c:1455
msgid "No server.\n"
msgstr "Ningún servidor.\n"
-#: src/common/command.c:1430
+#: src/common/command.c:1466
#, c-format
msgid "Server '%s' not found.\n"
msgstr "Servidor '%s' no encontrado.\n"
-#: src/common/command.c:1442
+#: src/common/command.c:1478
#, c-format
msgid "%s missing servername for \"%s\" command\n"
msgstr "%s falta el nombre de servidor para el comando \"%s\"\n"
-#: src/common/command.c:1450
+#: src/common/command.c:1486
#, c-format
msgid "%s too much arguments for \"%s\" command, ignoring arguments\n"
msgstr ""
"%s demasiados argumentos para el comando \"%s\", ignorando parámetros\n"
-#: src/common/command.c:1469
+#: src/common/command.c:1505
#, c-format
msgid "%s server \"%s\" not found for \"%s\" command\n"
msgstr "%s servidor \"%s\" no encontrado para el comando \"%s\"\n"
-#: src/common/command.c:1477
+#: src/common/command.c:1513
#, c-format
msgid ""
"%s you can not delete server \"%s\" because you are connected to. Try /"
@@ -2407,108 +2422,108 @@ msgstr ""
"%s usted no puede eliminar el servidor \"%s\" ya que está usted conectado a "
"él. Pruebe /disconnect %s antes.\n"
-#: src/common/command.c:1493 src/common/command.c:1634
+#: src/common/command.c:1529 src/common/command.c:1670
msgid "Server"
msgstr "Servidor"
-#: src/common/command.c:1496
+#: src/common/command.c:1532
msgid "has been deleted\n"
msgstr "ha sido eliminado\n"
-#: src/common/command.c:1511
+#: src/common/command.c:1547
#, c-format
msgid "%s missing parameters for \"%s\" command\n"
msgstr "%s faltan parámetros para el comando \"%s\"\n"
-#: src/common/command.c:1521
+#: src/common/command.c:1557
#, c-format
msgid "%s server \"%s\" already exists, can't create it!\n"
msgstr "%s el servidor \"%s\" ya existe, ¡no se puede crear!\n"
-#: src/common/command.c:1546 src/common/command.c:1574
-#: src/common/command.c:1587 src/common/command.c:1613
+#: src/common/command.c:1582 src/common/command.c:1610
+#: src/common/command.c:1623 src/common/command.c:1649
#, c-format
msgid "%s missing password for \"%s\" parameter\n"
msgstr "%s falta contraseña para el comando \"%s\"\n"
-#: src/common/command.c:1559
+#: src/common/command.c:1595
#, c-format
msgid "%s missing nick(s) for \"%s\" parameter\n"
msgstr "%s falta(n) usuario(s) para el parámetro \"%s\"\n"
-#: src/common/command.c:1600
+#: src/common/command.c:1636
#, c-format
msgid "%s missing command for \"%s\" parameter\n"
msgstr "%s falta comando para el parámetro \"%s\"\n"
-#: src/common/command.c:1637
+#: src/common/command.c:1673
msgid "created\n"
msgstr "creado\n"
-#: src/common/command.c:1643
+#: src/common/command.c:1679
#, c-format
msgid "%s unable to create server\n"
msgstr "%s no es posible crear el servidor\n"
-#: src/common/command.c:1698
+#: src/common/command.c:1734
msgid "(unknown)"
msgstr "(desconocido)"
-#: src/common/command.c:1721
+#: src/common/command.c:1757
msgid "(password hidden) "
msgstr "(contraseña oculta)"
-#: src/common/command.c:1785
+#: src/common/command.c:1821
#, c-format
msgid "%s server \"%s\" not found\n"
msgstr "%s servidor \"%s\" no encontrado\n"
-#: src/common/command.c:1816 src/common/command.c:1862
+#: src/common/command.c:1852 src/common/command.c:1898
#, c-format
msgid "%s config option \"%s\" not found\n"
msgstr "%s opción de configuración \"%s\" no encontrada\n"
-#: src/common/command.c:1821 src/common/command.c:1854
+#: src/common/command.c:1857 src/common/command.c:1890
#, c-format
msgid "%s incorrect value for option \"%s\"\n"
msgstr "%s valor incorrecto para la opción \"%s\"\n"
-#: src/common/command.c:1837
+#: src/common/command.c:1873
#, c-format
msgid "%s option \"%s\" can not be changed while WeeChat is running\n"
msgstr ""
"%s la opción \"%s\" no puede ser modificada mientras WeeChat esté en "
"ejecución\n"
-#: src/common/command.c:1935
+#: src/common/command.c:1971
#, c-format
msgid "No config option found with \"%s\"\n"
msgstr "Ninguna opción de configuración encontrada con \"%s\"\n"
-#: src/common/command.c:1938
+#: src/common/command.c:1974
msgid "No config option found\n"
msgstr "Ninguna opción de configuración encontrada\n"
-#: src/common/command.c:1944
+#: src/common/command.c:1980
#, c-format
msgid "config option(s) found with \"%s\"\n"
msgstr "opción/opciones de configuración encontrada(s) con \"%s\"\n"
-#: src/common/command.c:1947
+#: src/common/command.c:1983
msgid "config option(s) found\n"
msgstr "opción/opciones de configuración encontrada(s)\n"
-#: src/common/command.c:1967
+#: src/common/command.c:2003
#, c-format
msgid "%s alias or command \"%s\" not found\n"
msgstr "%s alias o comando \"%s\" no encontrado\n"
-#: src/common/command.c:1977
+#: src/common/command.c:2013
#, c-format
msgid "Alias \"%s\" removed\n"
msgstr "Alias \"%s\" eliminado\n"
-#: src/common/command.c:1997
+#: src/common/command.c:2033
msgid "Opened windows:\n"
msgstr "Ventanas abiertas:\n"
@@ -2534,7 +2549,7 @@ msgstr "**** Comienzo del log (registro) "
msgid "**** End of log "
msgstr "**** Fin del log "
-#: src/common/weechat.c:195
+#: src/common/weechat.c:185
#, c-format
msgid ""
"WeeChat configuration options (~/.weechat/weechat.rc):\n"
@@ -2543,47 +2558,47 @@ msgstr ""
"Opciones de configuración de WeeChat (~/.weechat/weechat.rc):\n"
"\n"
-#: src/common/weechat.c:208
+#: src/common/weechat.c:198
#, c-format
msgid " . type boolean (values: 'on' or 'off')\n"
msgstr " . tipo booleano (valores: 'on' u 'off')\n"
-#: src/common/weechat.c:209 src/common/weechat.c:232 src/common/weechat.c:238
-#: src/common/weechat.c:244
+#: src/common/weechat.c:199 src/common/weechat.c:222 src/common/weechat.c:228
+#: src/common/weechat.c:234
#, c-format
msgid " . default value: '%s'\n"
msgstr " .valor por defecto: '%s'\n"
-#: src/common/weechat.c:214
+#: src/common/weechat.c:204
#, c-format
msgid " . type integer (values: between %d and %d)\n"
msgstr " . tipo entero (valores: entre %d y %d)\n"
-#: src/common/weechat.c:217
+#: src/common/weechat.c:207
#, c-format
msgid " . default value: %d\n"
msgstr " . valor por defecto: %d\n"
-#: src/common/weechat.c:221
+#: src/common/weechat.c:211
#, c-format
msgid " . type string (values: "
msgstr " . tipo cadena (valores: "
-#: src/common/weechat.c:234 src/common/weechat.c:240 src/common/weechat.c:246
+#: src/common/weechat.c:224 src/common/weechat.c:230 src/common/weechat.c:236
msgid "empty"
msgstr "vacío"
-#: src/common/weechat.c:237
+#: src/common/weechat.c:227
#, c-format
msgid " . type color (Curses or Gtk color, look at WeeChat doc)\n"
msgstr " . tipo color (color Curses ó Gtk, ver la documentación de WeeChat)\n"
-#: src/common/weechat.c:243
+#: src/common/weechat.c:233
#, c-format
msgid " . type string (any string)\n"
msgstr " . tipo cadena (cualquier cadena)\n"
-#: src/common/weechat.c:249
+#: src/common/weechat.c:239
#, c-format
msgid ""
" . description: %s\n"
@@ -2592,7 +2607,7 @@ msgstr ""
" . descripción: %s\n"
"\n"
-#: src/common/weechat.c:255
+#: src/common/weechat.c:245
#, c-format
msgid ""
"Moreover, you can define aliases in [alias] section, by adding lines like:\n"
@@ -2600,7 +2615,7 @@ msgstr ""
"Además, usted puede definir alias en la sección [alias], añadiendo líneas "
"como:\n"
-#: src/common/weechat.c:257
+#: src/common/weechat.c:247
#, c-format
msgid ""
"where 'j' is alias name, and 'join' associated command.\n"
@@ -2609,57 +2624,57 @@ msgstr ""
"donde 'j' es el nombre del alias, y 'join' el comando asociado.\n"
"\n"
-#: src/common/weechat.c:303
+#: src/common/weechat.c:293
#, c-format
msgid "%s invalid syntax for IRC server ('%s'), ignored\n"
msgstr "%s sintaxis inválida para el servidor IRC ('%s'), ignorado\n"
-#: src/common/weechat.c:315
+#: src/common/weechat.c:305
#, c-format
msgid "%s unable to create server ('%s'), ignored\n"
msgstr "%s no es posible crear el servidor ('%s'), ignorado\n"
-#: src/common/weechat.c:324
+#: src/common/weechat.c:314
#, c-format
msgid "%s unknown parameter '%s', ignored\n"
msgstr "%s parámetro desconocido '%s', ignorado\n"
-#: src/common/weechat.c:344
+#: src/common/weechat.c:334
#, c-format
msgid "%s cannot create directory \"%s\"\n"
msgstr "%s no es posible crear el directorio \"%s\"\n"
-#: src/common/weechat.c:370
+#: src/common/weechat.c:360
#, c-format
msgid "%s unable to get HOME directory\n"
msgstr "%s no ha sido posible leer el directorio HOME\n"
-#: src/common/weechat.c:379
+#: src/common/weechat.c:369
#, c-format
msgid "%s not enough memory for home directory\n"
msgstr "%s no hay suficiente memoria para el directorio home\n"
-#: src/common/weechat.c:389
+#: src/common/weechat.c:379
#, c-format
msgid "%s unable to create ~/.weechat directory\n"
msgstr "%s no es posible crear el directorio ~/.weechat\n"
-#: src/common/weechat.c:441
+#: src/common/weechat.c:431
#, c-format
msgid "%s unable to create ~/.weechat/logs directory\n"
msgstr "%s no es posible crear el directorio ~/.weechat/logs\n"
-#: src/common/weechat.c:477
+#: src/common/weechat.c:467
#, c-format
msgid "%s unable to create/append to log file (~/.weechat/%s)"
msgstr "%s no es posible crear/añadir en el fichero de log (~/.weechat/%s)"
-#: src/common/weechat.c:500
+#: src/common/weechat.c:490
#, c-format
msgid "%sWelcome to "
msgstr "%sBienvenido a "
-#: src/common/weechat.c:513
+#: src/common/weechat.c:503
msgid "compiled on"
msgstr "compilado en"
diff --git a/po/fr.po b/po/fr.po
index 64208ef34..dfdd8e1b1 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.1.1-cvs\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2005-02-28 11:36+0100\n"
-"PO-Revision-Date: 2005-02-27 23:48+0100\n"
+"POT-Creation-Date: 2005-03-05 17:57+0100\n"
+"PO-Revision-Date: 2005-03-05 17:59+0100\n"
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -1169,7 +1169,7 @@ msgstr "drapeau de mode inconnu"
msgid "can't change mode for other users"
msgstr "impossible de changer le mode pour les autres utilisateurs"
-#: src/irc/irc-display.c:154 src/common/command.c:804
+#: src/irc/irc-display.c:154 src/common/command.c:808
msgid "Server: "
msgstr "Serveur: "
@@ -1207,7 +1207,8 @@ msgid "%s: using local hostname \"%s\"\n"
msgstr "%s: utilisation du nom de machine local \"%s\"\n"
#: src/irc/irc-send.c:265 src/irc/irc-send.c:277 src/irc/irc-send.c:295
-#: src/irc/irc-send.c:775 src/irc/irc-send.c:849 src/common/command.c:1359
+#: src/irc/irc-send.c:775 src/irc/irc-send.c:849 src/common/command.c:1120
+#: src/common/command.c:1395
#, c-format
msgid "%s wrong argument count for \"%s\" command\n"
msgstr "%s nombre de paramètres erroné pour la commande \"%s\"\n"
@@ -2012,26 +2013,42 @@ msgid "servername: server name to disconnect"
msgstr "nom_serveur: nom du serveur pour se déconnecter"
#: src/common/command.c:68
+msgid "print debug messages"
+msgstr "affiche des messages de debuggage"
+
+#: src/common/command.c:69
+msgid "dump"
+msgstr "dump"
+
+#: src/common/command.c:70
+msgid ""
+"dump: save memory dump in WeeChat log file (same dump is written when "
+"WeeChat crashes)"
+msgstr ""
+"dump: affiche les variables mémoire WeeChat dans le fichier log (les mêmes "
+"messages sont affichés lorsque WeeChat plante)"
+
+#: src/common/command.c:72
msgid "display help about commands"
msgstr "afficher l'aide sur les commandes"
-#: src/common/command.c:69
+#: src/common/command.c:73
msgid "[command]"
msgstr "[commande]"
-#: src/common/command.c:69
+#: src/common/command.c:73
msgid "command: name of a WeeChat or IRC command"
msgstr "commande: nom d'une commande WeeChat ou IRC"
-#: src/common/command.c:71
+#: src/common/command.c:75
msgid "list/load/unload Perl scripts"
msgstr "liste/charge/décharge des scripts Perl"
-#: src/common/command.c:72
+#: src/common/command.c:76
msgid "[load filename] | [autoload] | [unload]"
msgstr "[load fichier] | [autoload] | [unload]"
-#: src/common/command.c:73
+#: src/common/command.c:77
msgid ""
"filename: Perl script (file) to load\n"
"Without argument, /perl command lists all loaded Perl scripts."
@@ -2039,11 +2056,11 @@ msgstr ""
"fichier: script Perl (fichier) à charger\n"
"Sans paramètre, la commande /perl liste tous les scripts Perl chargés."
-#: src/common/command.c:76
+#: src/common/command.c:80
msgid "list, add or remove servers"
msgstr "liste, ajoute ou retire des serveurs"
-#: src/common/command.c:77
+#: src/common/command.c:81
msgid ""
"[servername] | [servername hostname port [-auto | -noauto] [-pwd password] [-"
"nicks nick1 [nick2 [nick3]]] [-username username] [-realname realname] [-"
@@ -2054,7 +2071,7 @@ msgstr ""
"nom_utilisateur] [-realname nom_réel] [-command commande] [-autojoin canal[,"
"canal]] ] | [del nom_serveur]"
-#: src/common/command.c:82
+#: src/common/command.c:86
msgid ""
"servername: server name, for internal & display use\n"
"hostname: name or IP address of server\n"
@@ -2076,27 +2093,27 @@ msgstr ""
"nom_utilisateur: nom d'utilisateur\n"
"nom_réel: nom réel de l'utilisateur"
-#: src/common/command.c:92
+#: src/common/command.c:96
msgid "save config to disk"
msgstr "sauvegarder la configuration sur disque"
-#: src/common/command.c:93
+#: src/common/command.c:97
msgid "[file]"
msgstr "[fichier]"
-#: src/common/command.c:93
+#: src/common/command.c:97
msgid "file: filename for writing config"
msgstr "fichier: fichier pour sauvegarder la configuration"
-#: src/common/command.c:95
+#: src/common/command.c:99
msgid "set config parameters"
msgstr "modifier des paramètres de configuration"
-#: src/common/command.c:96
+#: src/common/command.c:100
msgid "[option[=value]]"
msgstr "[option[=valeur]]"
-#: src/common/command.c:96
+#: src/common/command.c:100
msgid ""
"option: name of an option\n"
"value: value for option"
@@ -2104,27 +2121,27 @@ msgstr ""
"option: nom d'une option\n"
"valeur: valeur pour l'option"
-#: src/common/command.c:98
+#: src/common/command.c:102
msgid "remove an alias"
msgstr "supprimer un alias"
-#: src/common/command.c:99
+#: src/common/command.c:103
msgid "alias_name"
msgstr "nom_alias"
-#: src/common/command.c:99
+#: src/common/command.c:103
msgid "alias_name: name of alias to remove"
msgstr "nom_alias: nom de l'alias à supprimer"
-#: src/common/command.c:101
+#: src/common/command.c:105
msgid "manage windows"
msgstr "gestion des fenêtres"
-#: src/common/command.c:102
+#: src/common/command.c:106
msgid "[list | splith | splitv | [merge [down | up | left | right | all]]]"
msgstr "[list | splith | splitv | [merge [down | up | left | right | all]]]"
-#: src/common/command.c:104
+#: src/common/command.c:108
msgid ""
" list list opened windows (no parameter implies this list)\n"
"splith split current window horizontally\n"
@@ -2136,29 +2153,29 @@ msgstr ""
"splitv éclate la fenêtre en deux verticalement\n"
" merge fusionne la fenêtre avec une autre"
-#: src/common/command.c:250
+#: src/common/command.c:254
#, c-format
msgid "%s alias or command \"%s\" already exists!\n"
msgstr "%s l'alias ou la commande \"%s\" existe déjà !\n"
-#: src/common/command.c:260
+#: src/common/command.c:264
#, c-format
msgid "%s alias cannot run another alias!\n"
msgstr "%s l'alias ne peux pas lancer un autre alias !\n"
-#: src/common/command.c:267
+#: src/common/command.c:271
#, c-format
msgid "%s target command \"%s\" does not exist!\n"
msgstr "%s la commande cible \"%s\" n'existe pas !\n"
-#: src/common/command.c:475
+#: src/common/command.c:479
#, c-format
msgid "%s wrong argument count for %s command \"%s\" (expected: %d arg%s)\n"
msgstr ""
"%s nombre de paramètres incorrect pour la commande %s \"%s\" (attendu: %d "
"paramètre%s)\n"
-#: src/common/command.c:487
+#: src/common/command.c:491
#, c-format
msgid ""
"%s wrong argument count for %s command \"%s\" (expected: between %d and %d "
@@ -2167,19 +2184,19 @@ msgstr ""
"%s nombre de paramètres incorrect pour la commande %s \"%s\" (attendu: entre "
"%d et %d paramètre%s)\n"
-#: src/common/command.c:509 src/common/command.c:579
+#: src/common/command.c:513 src/common/command.c:583
#, c-format
msgid "%s command \"%s\" failed\n"
msgstr "%s la commande \"%s\" a échoué\n"
-#: src/common/command.c:537
+#: src/common/command.c:541
#, c-format
msgid "%s wrong argument count for IRC command \"%s\" (expected: %d arg%s)\n"
msgstr ""
"%s nombre de paramètres incorrect pour la commande IRC \"%s\" (attendu: %d "
"paramètre%s)\n"
-#: src/common/command.c:549
+#: src/common/command.c:553
#, c-format
msgid ""
"%s wrong argument count for IRC command \"%s\" (expected: between %d and %d "
@@ -2188,176 +2205,176 @@ msgstr ""
"%s nombre de paramètres incorrect pour la commande IRC \"%s\" (attendu: "
"entre %d et %d paramètre%s)\n"
-#: src/common/command.c:564
+#: src/common/command.c:568
#, c-format
msgid "%s command \"%s\" needs a server connection!\n"
msgstr "%s la commande \"%s\" nécessite une connexion au serveur !\n"
-#: src/common/command.c:628
+#: src/common/command.c:632
#, c-format
msgid "%s unknown command \"%s\" (type /help for help)\n"
msgstr "%s commande \"%s\" inconnue (tapez /help pour l'aide)\n"
-#: src/common/command.c:703
+#: src/common/command.c:707
#, c-format
msgid "%s cannot find nick for sending message\n"
msgstr "%s impossible de trouver le pseudo pour envoyer le message\n"
-#: src/common/command.c:712
+#: src/common/command.c:716
msgid "This window is not a channel!\n"
msgstr "Cette fenêtre n'est pas un canal !\n"
-#: src/common/command.c:740 src/common/command.c:764 src/common/command.c:868
+#: src/common/command.c:744 src/common/command.c:768 src/common/command.c:872
#, c-format
msgid "%s missing arguments for \"%s\" command\n"
msgstr "%s paramètres manquants pour la commande \"%s\"\n"
-#: src/common/command.c:749
+#: src/common/command.c:753
#, c-format
msgid "Alias \"%s\" => \"%s\" created\n"
msgstr "Alias \"%s\" => \"%s\" créé\n"
-#: src/common/command.c:755
+#: src/common/command.c:759
#, c-format
msgid "Failed to create alias \"%s\" => \"%s\" (not enough memory)\n"
msgstr "Impossible de créer l'alias \"%s\" => \"%s\" (pas assez de mémoire)\n"
-#: src/common/command.c:775
+#: src/common/command.c:779
msgid "List of aliases:\n"
msgstr "Liste des alias:\n"
-#: src/common/command.c:787
+#: src/common/command.c:791
msgid "No alias defined.\n"
msgstr "Aucun alias défini.\n"
-#: src/common/command.c:810
+#: src/common/command.c:814
msgid "Channel: "
msgstr "Canal: "
-#: src/common/command.c:813 src/common/command.c:823
+#: src/common/command.c:817 src/common/command.c:827
msgid " (server: "
msgstr " (serveur: "
-#: src/common/command.c:820
+#: src/common/command.c:824
msgid "Private with: "
msgstr "Privé avec: "
-#: src/common/command.c:848
+#: src/common/command.c:852
msgid "Opened buffers:\n"
msgstr "Tampons ouverts:\n"
-#: src/common/command.c:891 src/common/command.c:1018
+#: src/common/command.c:895 src/common/command.c:1022
#, c-format
msgid "%s incorrect buffer number\n"
msgstr "%s numéro de buffer incorrect\n"
-#: src/common/command.c:905
+#: src/common/command.c:909
#, c-format
msgid "%s can not close the single buffer\n"
msgstr "%s impossible de fermer le tampon unique\n"
-#: src/common/command.c:915
+#: src/common/command.c:919
#, c-format
msgid "%s can not close server buffer while channels are opened\n"
msgstr ""
"%s impossible de fermer le tampon du serveur tant que des canaux sont "
"ouverts\n"
-#: src/common/command.c:954
+#: src/common/command.c:958
msgid "Notify levels: "
msgstr "Niveaux de notification: "
-#: src/common/command.c:981 src/common/command.c:991
+#: src/common/command.c:985 src/common/command.c:995
#, c-format
msgid "%s incorrect notify level (must be between 0 and 3)\n"
msgstr "%s niveau de notification incorrect (doit être entre 0 et 3)\n"
-#: src/common/command.c:1009
+#: src/common/command.c:1013
#, c-format
msgid "%s buffer \"%s\" not found for \"%s\" command\n"
msgstr "%s buffer \"%s\" non trouvé pour la commande \"%s\"\n"
-#: src/common/command.c:1043
+#: src/common/command.c:1047
#, c-format
msgid "unknown parameter \"%s\" for \"%s\" command\n"
msgstr "paramètre inconnu \"%s\" pour la commande \"%s\"\n"
-#: src/common/command.c:1073
+#: src/common/command.c:1077
#, c-format
msgid "%s already connected to server \"%s\"!\n"
msgstr "%s déjà connecté au serveur \"%s\" !\n"
-#: src/common/command.c:1081
+#: src/common/command.c:1085
#, c-format
msgid "%s currently connecting to server \"%s\"!\n"
msgstr "%s une connexion vers le serveur \"%s\" est en cours !\n"
-#: src/common/command.c:1099 src/common/command.c:1142
+#: src/common/command.c:1103 src/common/command.c:1178
#, c-format
msgid "%s server not found\n"
msgstr "%s serveur non trouvé\n"
-#: src/common/command.c:1126
+#: src/common/command.c:1133 src/common/command.c:1388
+#: src/common/command.c:2085 src/common/command.c:2097
+#, c-format
+msgid "%s unknown option for \"%s\" command\n"
+msgstr "%s option inconnue pour la commande \"%s\"\n"
+
+#: src/common/command.c:1162
#, c-format
msgid "%s not connected to server \"%s\"!\n"
msgstr "%s non connecté au serveur \"%s\" !\n"
-#: src/common/command.c:1134
+#: src/common/command.c:1170
msgid "Auto-reconnection is cancelled\n"
msgstr "La reconnexion automatique est annulée\n"
-#: src/common/command.c:1160
+#: src/common/command.c:1196
#, c-format
msgid "%s internal commands:\n"
msgstr "Commandes internes %s :\n"
-#: src/common/command.c:1169
+#: src/common/command.c:1205
msgid "IRC commands:\n"
msgstr "Commandes IRC :\n"
-#: src/common/command.c:1228
+#: src/common/command.c:1264
#, c-format
msgid "No help available, \"%s\" is an unknown command\n"
msgstr "Pas d'aide disponible, la commande \"%s\" est inconnue\n"
-#: src/common/command.c:1253
+#: src/common/command.c:1289
msgid "Registered Perl scripts:\n"
msgstr "Scripts Perl enregistrés :\n"
-#: src/common/command.c:1270 src/common/command.c:1292
-#: src/common/command.c:1314
+#: src/common/command.c:1306 src/common/command.c:1328
+#: src/common/command.c:1350
msgid " (none)\n"
msgstr " (aucun)\n"
-#: src/common/command.c:1275
+#: src/common/command.c:1311
msgid "Perl message handlers:\n"
msgstr "Fonctions Perl pour messages :\n"
-#: src/common/command.c:1284
+#: src/common/command.c:1320
#, c-format
msgid " IRC(%s) => Perl(%s)\n"
msgstr " IRC(%s) => Perl(%s)\n"
-#: src/common/command.c:1297
+#: src/common/command.c:1333
msgid "Perl command handlers:\n"
msgstr "Commandes Perl :\n"
-#: src/common/command.c:1306
+#: src/common/command.c:1342
#, c-format
msgid " Command /%s => Perl(%s)\n"
msgstr " Commande /%s => Perl(%s)\n"
-#: src/common/command.c:1326
+#: src/common/command.c:1362
msgid "Perl scripts unloaded\n"
msgstr "Scripts Perl déchargés\n"
-#: src/common/command.c:1352 src/common/command.c:2049
-#: src/common/command.c:2061
-#, c-format
-msgid "%s unknown option for \"%s\" command\n"
-msgstr "%s option inconnue pour la commande \"%s\"\n"
-
-#: src/common/command.c:1365
+#: src/common/command.c:1401
msgid ""
"WeeChat was build without Perl support.\n"
"Please rebuild WeeChat with \"--enable-perl\" option for ./configure script\n"
@@ -2366,31 +2383,31 @@ msgstr ""
"Merci de reconstruire WeeChat avec l'option \"--enable-perl\" pour le "
"script ./configure\n"
-#: src/common/command.c:1419
+#: src/common/command.c:1455
msgid "No server.\n"
msgstr "Pas de serveur.\n"
-#: src/common/command.c:1430
+#: src/common/command.c:1466
#, c-format
msgid "Server '%s' not found.\n"
msgstr "Serveur '%s' non trouvé.\n"
-#: src/common/command.c:1442
+#: src/common/command.c:1478
#, c-format
msgid "%s missing servername for \"%s\" command\n"
msgstr "%s il manque le nom du serveur pour la commande \"%s\"\n"
-#: src/common/command.c:1450
+#: src/common/command.c:1486
#, c-format
msgid "%s too much arguments for \"%s\" command, ignoring arguments\n"
msgstr "%s trop de paramètres pour la commande \"%s\", paramètres ignorés\n"
-#: src/common/command.c:1469
+#: src/common/command.c:1505
#, c-format
msgid "%s server \"%s\" not found for \"%s\" command\n"
msgstr "%s le serveur \"%s\" n'existe pas pour la commande \"%s\"\n"
-#: src/common/command.c:1477
+#: src/common/command.c:1513
#, c-format
msgid ""
"%s you can not delete server \"%s\" because you are connected to. Try /"
@@ -2399,106 +2416,106 @@ msgstr ""
"%s vous ne pouvez pas supprimer le server \"%s\" car vous êtes connecté "
"dessus. Essayez /disconnect %s avant.\n"
-#: src/common/command.c:1493 src/common/command.c:1634
+#: src/common/command.c:1529 src/common/command.c:1670
msgid "Server"
msgstr "Serveur"
-#: src/common/command.c:1496
+#: src/common/command.c:1532
msgid "has been deleted\n"
msgstr "a été supprimé\n"
-#: src/common/command.c:1511
+#: src/common/command.c:1547
#, c-format
msgid "%s missing parameters for \"%s\" command\n"
msgstr "%s paramètres manquants pour la commande \"%s\"\n"
-#: src/common/command.c:1521
+#: src/common/command.c:1557
#, c-format
msgid "%s server \"%s\" already exists, can't create it!\n"
msgstr "%s le serveur \"%s\" existe déjà, impossible de le créer !\n"
-#: src/common/command.c:1546 src/common/command.c:1574
-#: src/common/command.c:1587 src/common/command.c:1613
+#: src/common/command.c:1582 src/common/command.c:1610
+#: src/common/command.c:1623 src/common/command.c:1649
#, c-format
msgid "%s missing password for \"%s\" parameter\n"
msgstr "%s mot de passe manquant pour le paramètre \"%s\"\n"
-#: src/common/command.c:1559
+#: src/common/command.c:1595
#, c-format
msgid "%s missing nick(s) for \"%s\" parameter\n"
msgstr "%s pseudo(s) manquant(s) pour le paramètre \"%s\"\n"
-#: src/common/command.c:1600
+#: src/common/command.c:1636
#, c-format
msgid "%s missing command for \"%s\" parameter\n"
msgstr "%s commande manquante pour le paramètre \"%s\"\n"
-#: src/common/command.c:1637
+#: src/common/command.c:1673
msgid "created\n"
msgstr "créé\n"
-#: src/common/command.c:1643
+#: src/common/command.c:1679
#, c-format
msgid "%s unable to create server\n"
msgstr "%s impossible de créer le serveur\n"
-#: src/common/command.c:1698
+#: src/common/command.c:1734
msgid "(unknown)"
msgstr "(inconnu)"
-#: src/common/command.c:1721
+#: src/common/command.c:1757
msgid "(password hidden) "
msgstr "(mot de passe caché)"
-#: src/common/command.c:1785
+#: src/common/command.c:1821
#, c-format
msgid "%s server \"%s\" not found\n"
msgstr "%s serveur \"%s\" non trouvé\n"
-#: src/common/command.c:1816 src/common/command.c:1862
+#: src/common/command.c:1852 src/common/command.c:1898
#, c-format
msgid "%s config option \"%s\" not found\n"
msgstr "%s option de configuration \"%s\" non trouvée\n"
-#: src/common/command.c:1821 src/common/command.c:1854
+#: src/common/command.c:1857 src/common/command.c:1890
#, c-format
msgid "%s incorrect value for option \"%s\"\n"
msgstr "%s valeur incorrecte pour l'option \"%s\"\n"
-#: src/common/command.c:1837
+#: src/common/command.c:1873
#, c-format
msgid "%s option \"%s\" can not be changed while WeeChat is running\n"
msgstr "%s l'option \"%s\" ne peut pas être changée lorsque WeeChat tourne\n"
-#: src/common/command.c:1935
+#: src/common/command.c:1971
#, c-format
msgid "No config option found with \"%s\"\n"
msgstr "Aucune option de configuration trouvée avec \"%s\"\n"
-#: src/common/command.c:1938
+#: src/common/command.c:1974
msgid "No config option found\n"
msgstr "Aucune option de configuration trouvée\n"
-#: src/common/command.c:1944
+#: src/common/command.c:1980
#, c-format
msgid "config option(s) found with \"%s\"\n"
msgstr "option(s) de configuration trouvée(s) avec \"%s\"\n"
-#: src/common/command.c:1947
+#: src/common/command.c:1983
msgid "config option(s) found\n"
msgstr "option(s) de configuration trouvée(s)\n"
-#: src/common/command.c:1967
+#: src/common/command.c:2003
#, c-format
msgid "%s alias or command \"%s\" not found\n"
msgstr "%s alias ou commande \"%s\" non trouvé\n"
-#: src/common/command.c:1977
+#: src/common/command.c:2013
#, c-format
msgid "Alias \"%s\" removed\n"
msgstr "Alias \"%s\" supprimé\n"
-#: src/common/command.c:1997
+#: src/common/command.c:2033
msgid "Opened windows:\n"
msgstr "Fenêtres ouvertes:\n"
@@ -2523,7 +2540,7 @@ msgstr "**** Début du log "
msgid "**** End of log "
msgstr "**** Fin du log "
-#: src/common/weechat.c:195
+#: src/common/weechat.c:185
#, c-format
msgid ""
"WeeChat configuration options (~/.weechat/weechat.rc):\n"
@@ -2532,47 +2549,47 @@ msgstr ""
"Options de configuration de WeeChat (~/.weechat/weechat.rc):\n"
"\n"
-#: src/common/weechat.c:208
+#: src/common/weechat.c:198
#, c-format
msgid " . type boolean (values: 'on' or 'off')\n"
msgstr " . type booléen (valeurs: 'on' ou 'off')\n"
-#: src/common/weechat.c:209 src/common/weechat.c:232 src/common/weechat.c:238
-#: src/common/weechat.c:244
+#: src/common/weechat.c:199 src/common/weechat.c:222 src/common/weechat.c:228
+#: src/common/weechat.c:234
#, c-format
msgid " . default value: '%s'\n"
msgstr " . valeur par défaut: '%s'\n"
-#: src/common/weechat.c:214
+#: src/common/weechat.c:204
#, c-format
msgid " . type integer (values: between %d and %d)\n"
msgstr " . type entier (valeurs: entre %d et %d)\n"
-#: src/common/weechat.c:217
+#: src/common/weechat.c:207
#, c-format
msgid " . default value: %d\n"
msgstr " . valeur par défaut: %d\n"
-#: src/common/weechat.c:221
+#: src/common/weechat.c:211
#, c-format
msgid " . type string (values: "
msgstr " . type chaîne (valeurs: "
-#: src/common/weechat.c:234 src/common/weechat.c:240 src/common/weechat.c:246
+#: src/common/weechat.c:224 src/common/weechat.c:230 src/common/weechat.c:236
msgid "empty"
msgstr "vide"
-#: src/common/weechat.c:237
+#: src/common/weechat.c:227
#, c-format
msgid " . type color (Curses or Gtk color, look at WeeChat doc)\n"
msgstr " . type couleur (couleur Curses ou Gtk, voir la doc WeeChat)\n"
-#: src/common/weechat.c:243
+#: src/common/weechat.c:233
#, c-format
msgid " . type string (any string)\n"
msgstr " . type chaîne (toute chaîne)\n"
-#: src/common/weechat.c:249
+#: src/common/weechat.c:239
#, c-format
msgid ""
" . description: %s\n"
@@ -2581,7 +2598,7 @@ msgstr ""
" . description: %s\n"
"\n"
-#: src/common/weechat.c:255
+#: src/common/weechat.c:245
#, c-format
msgid ""
"Moreover, you can define aliases in [alias] section, by adding lines like:\n"
@@ -2589,7 +2606,7 @@ msgstr ""
"De plus, vous pouvez définir des alias dans la section [alias], en ajoutant "
"des lignes comme :\n"
-#: src/common/weechat.c:257
+#: src/common/weechat.c:247
#, c-format
msgid ""
"where 'j' is alias name, and 'join' associated command.\n"
@@ -2598,57 +2615,57 @@ msgstr ""
"où 'j' est le nom de l'alias, et 'join' la commande associée.\n"
"\n"
-#: src/common/weechat.c:303
+#: src/common/weechat.c:293
#, c-format
msgid "%s invalid syntax for IRC server ('%s'), ignored\n"
msgstr "%s syntaxe invalide pour le serveur IRC ('%s'), ignoré\n"
-#: src/common/weechat.c:315
+#: src/common/weechat.c:305
#, c-format
msgid "%s unable to create server ('%s'), ignored\n"
msgstr "%s impossible de créer le serveur ('%s'), ignoré\n"
-#: src/common/weechat.c:324
+#: src/common/weechat.c:314
#, c-format
msgid "%s unknown parameter '%s', ignored\n"
msgstr "%s paramètre inconnu '%s', ignoré\n"
-#: src/common/weechat.c:344
+#: src/common/weechat.c:334
#, c-format
msgid "%s cannot create directory \"%s\"\n"
msgstr "%s impossible de créer le répertoire \"%s\"\n"
-#: src/common/weechat.c:370
+#: src/common/weechat.c:360
#, c-format
msgid "%s unable to get HOME directory\n"
msgstr "%s impossible de lire le répertoire personnel\n"
-#: src/common/weechat.c:379
+#: src/common/weechat.c:369
#, c-format
msgid "%s not enough memory for home directory\n"
msgstr "%s pas assez de mémoire pour le répertoire personnel\n"
-#: src/common/weechat.c:389
+#: src/common/weechat.c:379
#, c-format
msgid "%s unable to create ~/.weechat directory\n"
msgstr "%s impossible de créer le répertoire ~/.weechat\n"
-#: src/common/weechat.c:441
+#: src/common/weechat.c:431
#, c-format
msgid "%s unable to create ~/.weechat/logs directory\n"
msgstr "%s impossible de créer le répertoire ~/.weechat/logs\n"
-#: src/common/weechat.c:477
+#: src/common/weechat.c:467
#, c-format
msgid "%s unable to create/append to log file (~/.weechat/%s)"
msgstr "%s impossible de créer/ajouter dans le fichier de log (~/.weechat/%s)"
-#: src/common/weechat.c:500
+#: src/common/weechat.c:490
#, c-format
msgid "%sWelcome to "
msgstr "%sBienvenue dans "
-#: src/common/weechat.c:513
+#: src/common/weechat.c:503
msgid "compiled on"
msgstr "compilé le"
diff --git a/po/weechat.pot b/po/weechat.pot
index fe495dd7c..a7eddb5b1 100644
--- a/po/weechat.pot
+++ b/po/weechat.pot
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2005-02-28 11:36+0100\n"
+"POT-Creation-Date: 2005-03-05 17:57+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"
@@ -1072,7 +1072,7 @@ msgstr ""
msgid "can't change mode for other users"
msgstr ""
-#: src/irc/irc-display.c:154 src/common/command.c:804
+#: src/irc/irc-display.c:154 src/common/command.c:808
msgid "Server: "
msgstr ""
@@ -1110,7 +1110,8 @@ msgid "%s: using local hostname \"%s\"\n"
msgstr ""
#: src/irc/irc-send.c:265 src/irc/irc-send.c:277 src/irc/irc-send.c:295
-#: src/irc/irc-send.c:775 src/irc/irc-send.c:849 src/common/command.c:1359
+#: src/irc/irc-send.c:775 src/irc/irc-send.c:849 src/common/command.c:1120
+#: src/common/command.c:1395
#, c-format
msgid "%s wrong argument count for \"%s\" command\n"
msgstr ""
@@ -1881,43 +1882,57 @@ msgid "servername: server name to disconnect"
msgstr ""
#: src/common/command.c:68
-msgid "display help about commands"
+msgid "print debug messages"
msgstr ""
#: src/common/command.c:69
+msgid "dump"
+msgstr ""
+
+#: src/common/command.c:70
+msgid ""
+"dump: save memory dump in WeeChat log file (same dump is written when "
+"WeeChat crashes)"
+msgstr ""
+
+#: src/common/command.c:72
+msgid "display help about commands"
+msgstr ""
+
+#: src/common/command.c:73
msgid "[command]"
msgstr ""
-#: src/common/command.c:69
+#: src/common/command.c:73
msgid "command: name of a WeeChat or IRC command"
msgstr ""
-#: src/common/command.c:71
+#: src/common/command.c:75
msgid "list/load/unload Perl scripts"
msgstr ""
-#: src/common/command.c:72
+#: src/common/command.c:76
msgid "[load filename] | [autoload] | [unload]"
msgstr ""
-#: src/common/command.c:73
+#: src/common/command.c:77
msgid ""
"filename: Perl script (file) to load\n"
"Without argument, /perl command lists all loaded Perl scripts."
msgstr ""
-#: src/common/command.c:76
+#: src/common/command.c:80
msgid "list, add or remove servers"
msgstr ""
-#: src/common/command.c:77
+#: src/common/command.c:81
msgid ""
"[servername] | [servername hostname port [-auto | -noauto] [-pwd password] [-"
"nicks nick1 [nick2 [nick3]]] [-username username] [-realname realname] [-"
"command command] [-autojoin channel[,channel]] ] | [del servername]"
msgstr ""
-#: src/common/command.c:82
+#: src/common/command.c:86
msgid ""
"servername: server name, for internal & display use\n"
"hostname: name or IP address of server\n"
@@ -1930,53 +1945,53 @@ msgid ""
"realname: real name of user"
msgstr ""
-#: src/common/command.c:92
+#: src/common/command.c:96
msgid "save config to disk"
msgstr ""
-#: src/common/command.c:93
+#: src/common/command.c:97
msgid "[file]"
msgstr ""
-#: src/common/command.c:93
+#: src/common/command.c:97
msgid "file: filename for writing config"
msgstr ""
-#: src/common/command.c:95
+#: src/common/command.c:99
msgid "set config parameters"
msgstr ""
-#: src/common/command.c:96
+#: src/common/command.c:100
msgid "[option[=value]]"
msgstr ""
-#: src/common/command.c:96
+#: src/common/command.c:100
msgid ""
"option: name of an option\n"
"value: value for option"
msgstr ""
-#: src/common/command.c:98
+#: src/common/command.c:102
msgid "remove an alias"
msgstr ""
-#: src/common/command.c:99
+#: src/common/command.c:103
msgid "alias_name"
msgstr ""
-#: src/common/command.c:99
+#: src/common/command.c:103
msgid "alias_name: name of alias to remove"
msgstr ""
-#: src/common/command.c:101
+#: src/common/command.c:105
msgid "manage windows"
msgstr ""
-#: src/common/command.c:102
+#: src/common/command.c:106
msgid "[list | splith | splitv | [merge [down | up | left | right | all]]]"
msgstr ""
-#: src/common/command.c:104
+#: src/common/command.c:108
msgid ""
" list list opened windows (no parameter implies this list)\n"
"splith split current window horizontally\n"
@@ -1984,354 +1999,354 @@ msgid ""
" merge merge window with another"
msgstr ""
-#: src/common/command.c:250
+#: src/common/command.c:254
#, c-format
msgid "%s alias or command \"%s\" already exists!\n"
msgstr ""
-#: src/common/command.c:260
+#: src/common/command.c:264
#, c-format
msgid "%s alias cannot run another alias!\n"
msgstr ""
-#: src/common/command.c:267
+#: src/common/command.c:271
#, c-format
msgid "%s target command \"%s\" does not exist!\n"
msgstr ""
-#: src/common/command.c:475
+#: src/common/command.c:479
#, c-format
msgid "%s wrong argument count for %s command \"%s\" (expected: %d arg%s)\n"
msgstr ""
-#: src/common/command.c:487
+#: src/common/command.c:491
#, c-format
msgid ""
"%s wrong argument count for %s command \"%s\" (expected: between %d and %d "
"arg%s)\n"
msgstr ""
-#: src/common/command.c:509 src/common/command.c:579
+#: src/common/command.c:513 src/common/command.c:583
#, c-format
msgid "%s command \"%s\" failed\n"
msgstr ""
-#: src/common/command.c:537
+#: src/common/command.c:541
#, c-format
msgid "%s wrong argument count for IRC command \"%s\" (expected: %d arg%s)\n"
msgstr ""
-#: src/common/command.c:549
+#: src/common/command.c:553
#, c-format
msgid ""
"%s wrong argument count for IRC command \"%s\" (expected: between %d and %d "
"arg%s)\n"
msgstr ""
-#: src/common/command.c:564
+#: src/common/command.c:568
#, c-format
msgid "%s command \"%s\" needs a server connection!\n"
msgstr ""
-#: src/common/command.c:628
+#: src/common/command.c:632
#, c-format
msgid "%s unknown command \"%s\" (type /help for help)\n"
msgstr ""
-#: src/common/command.c:703
+#: src/common/command.c:707
#, c-format
msgid "%s cannot find nick for sending message\n"
msgstr ""
-#: src/common/command.c:712
+#: src/common/command.c:716
msgid "This window is not a channel!\n"
msgstr ""
-#: src/common/command.c:740 src/common/command.c:764 src/common/command.c:868
+#: src/common/command.c:744 src/common/command.c:768 src/common/command.c:872
#, c-format
msgid "%s missing arguments for \"%s\" command\n"
msgstr ""
-#: src/common/command.c:749
+#: src/common/command.c:753
#, c-format
msgid "Alias \"%s\" => \"%s\" created\n"
msgstr ""
-#: src/common/command.c:755
+#: src/common/command.c:759
#, c-format
msgid "Failed to create alias \"%s\" => \"%s\" (not enough memory)\n"
msgstr ""
-#: src/common/command.c:775
+#: src/common/command.c:779
msgid "List of aliases:\n"
msgstr ""
-#: src/common/command.c:787
+#: src/common/command.c:791
msgid "No alias defined.\n"
msgstr ""
-#: src/common/command.c:810
+#: src/common/command.c:814
msgid "Channel: "
msgstr ""
-#: src/common/command.c:813 src/common/command.c:823
+#: src/common/command.c:817 src/common/command.c:827
msgid " (server: "
msgstr ""
-#: src/common/command.c:820
+#: src/common/command.c:824
msgid "Private with: "
msgstr ""
-#: src/common/command.c:848
+#: src/common/command.c:852
msgid "Opened buffers:\n"
msgstr ""
-#: src/common/command.c:891 src/common/command.c:1018
+#: src/common/command.c:895 src/common/command.c:1022
#, c-format
msgid "%s incorrect buffer number\n"
msgstr ""
-#: src/common/command.c:905
+#: src/common/command.c:909
#, c-format
msgid "%s can not close the single buffer\n"
msgstr ""
-#: src/common/command.c:915
+#: src/common/command.c:919
#, c-format
msgid "%s can not close server buffer while channels are opened\n"
msgstr ""
-#: src/common/command.c:954
+#: src/common/command.c:958
msgid "Notify levels: "
msgstr ""
-#: src/common/command.c:981 src/common/command.c:991
+#: src/common/command.c:985 src/common/command.c:995
#, c-format
msgid "%s incorrect notify level (must be between 0 and 3)\n"
msgstr ""
-#: src/common/command.c:1009
+#: src/common/command.c:1013
#, c-format
msgid "%s buffer \"%s\" not found for \"%s\" command\n"
msgstr ""
-#: src/common/command.c:1043
+#: src/common/command.c:1047
#, c-format
msgid "unknown parameter \"%s\" for \"%s\" command\n"
msgstr ""
-#: src/common/command.c:1073
+#: src/common/command.c:1077
#, c-format
msgid "%s already connected to server \"%s\"!\n"
msgstr ""
-#: src/common/command.c:1081
+#: src/common/command.c:1085
#, c-format
msgid "%s currently connecting to server \"%s\"!\n"
msgstr ""
-#: src/common/command.c:1099 src/common/command.c:1142
+#: src/common/command.c:1103 src/common/command.c:1178
#, c-format
msgid "%s server not found\n"
msgstr ""
-#: src/common/command.c:1126
+#: src/common/command.c:1133 src/common/command.c:1388
+#: src/common/command.c:2085 src/common/command.c:2097
+#, c-format
+msgid "%s unknown option for \"%s\" command\n"
+msgstr ""
+
+#: src/common/command.c:1162
#, c-format
msgid "%s not connected to server \"%s\"!\n"
msgstr ""
-#: src/common/command.c:1134
+#: src/common/command.c:1170
msgid "Auto-reconnection is cancelled\n"
msgstr ""
-#: src/common/command.c:1160
+#: src/common/command.c:1196
#, c-format
msgid "%s internal commands:\n"
msgstr ""
-#: src/common/command.c:1169
+#: src/common/command.c:1205
msgid "IRC commands:\n"
msgstr ""
-#: src/common/command.c:1228
+#: src/common/command.c:1264
#, c-format
msgid "No help available, \"%s\" is an unknown command\n"
msgstr ""
-#: src/common/command.c:1253
+#: src/common/command.c:1289
msgid "Registered Perl scripts:\n"
msgstr ""
-#: src/common/command.c:1270 src/common/command.c:1292
-#: src/common/command.c:1314
+#: src/common/command.c:1306 src/common/command.c:1328
+#: src/common/command.c:1350
msgid " (none)\n"
msgstr ""
-#: src/common/command.c:1275
+#: src/common/command.c:1311
msgid "Perl message handlers:\n"
msgstr ""
-#: src/common/command.c:1284
+#: src/common/command.c:1320
#, c-format
msgid " IRC(%s) => Perl(%s)\n"
msgstr ""
-#: src/common/command.c:1297
+#: src/common/command.c:1333
msgid "Perl command handlers:\n"
msgstr ""
-#: src/common/command.c:1306
+#: src/common/command.c:1342
#, c-format
msgid " Command /%s => Perl(%s)\n"
msgstr ""
-#: src/common/command.c:1326
+#: src/common/command.c:1362
msgid "Perl scripts unloaded\n"
msgstr ""
-#: src/common/command.c:1352 src/common/command.c:2049
-#: src/common/command.c:2061
-#, c-format
-msgid "%s unknown option for \"%s\" command\n"
-msgstr ""
-
-#: src/common/command.c:1365
+#: src/common/command.c:1401
msgid ""
"WeeChat was build without Perl support.\n"
"Please rebuild WeeChat with \"--enable-perl\" option for ./configure script\n"
msgstr ""
-#: src/common/command.c:1419
+#: src/common/command.c:1455
msgid "No server.\n"
msgstr ""
-#: src/common/command.c:1430
+#: src/common/command.c:1466
#, c-format
msgid "Server '%s' not found.\n"
msgstr ""
-#: src/common/command.c:1442
+#: src/common/command.c:1478
#, c-format
msgid "%s missing servername for \"%s\" command\n"
msgstr ""
-#: src/common/command.c:1450
+#: src/common/command.c:1486
#, c-format
msgid "%s too much arguments for \"%s\" command, ignoring arguments\n"
msgstr ""
-#: src/common/command.c:1469
+#: src/common/command.c:1505
#, c-format
msgid "%s server \"%s\" not found for \"%s\" command\n"
msgstr ""
-#: src/common/command.c:1477
+#: src/common/command.c:1513
#, c-format
msgid ""
"%s you can not delete server \"%s\" because you are connected to. Try /"
"disconnect %s before.\n"
msgstr ""
-#: src/common/command.c:1493 src/common/command.c:1634
+#: src/common/command.c:1529 src/common/command.c:1670
msgid "Server"
msgstr ""
-#: src/common/command.c:1496
+#: src/common/command.c:1532
msgid "has been deleted\n"
msgstr ""
-#: src/common/command.c:1511
+#: src/common/command.c:1547
#, c-format
msgid "%s missing parameters for \"%s\" command\n"
msgstr ""
-#: src/common/command.c:1521
+#: src/common/command.c:1557
#, c-format
msgid "%s server \"%s\" already exists, can't create it!\n"
msgstr ""
-#: src/common/command.c:1546 src/common/command.c:1574
-#: src/common/command.c:1587 src/common/command.c:1613
+#: src/common/command.c:1582 src/common/command.c:1610
+#: src/common/command.c:1623 src/common/command.c:1649
#, c-format
msgid "%s missing password for \"%s\" parameter\n"
msgstr ""
-#: src/common/command.c:1559
+#: src/common/command.c:1595
#, c-format
msgid "%s missing nick(s) for \"%s\" parameter\n"
msgstr ""
-#: src/common/command.c:1600
+#: src/common/command.c:1636
#, c-format
msgid "%s missing command for \"%s\" parameter\n"
msgstr ""
-#: src/common/command.c:1637
+#: src/common/command.c:1673
msgid "created\n"
msgstr ""
-#: src/common/command.c:1643
+#: src/common/command.c:1679
#, c-format
msgid "%s unable to create server\n"
msgstr ""
-#: src/common/command.c:1698
+#: src/common/command.c:1734
msgid "(unknown)"
msgstr ""
-#: src/common/command.c:1721
+#: src/common/command.c:1757
msgid "(password hidden) "
msgstr ""
-#: src/common/command.c:1785
+#: src/common/command.c:1821
#, c-format
msgid "%s server \"%s\" not found\n"
msgstr ""
-#: src/common/command.c:1816 src/common/command.c:1862
+#: src/common/command.c:1852 src/common/command.c:1898
#, c-format
msgid "%s config option \"%s\" not found\n"
msgstr ""
-#: src/common/command.c:1821 src/common/command.c:1854
+#: src/common/command.c:1857 src/common/command.c:1890
#, c-format
msgid "%s incorrect value for option \"%s\"\n"
msgstr ""
-#: src/common/command.c:1837
+#: src/common/command.c:1873
#, c-format
msgid "%s option \"%s\" can not be changed while WeeChat is running\n"
msgstr ""
-#: src/common/command.c:1935
+#: src/common/command.c:1971
#, c-format
msgid "No config option found with \"%s\"\n"
msgstr ""
-#: src/common/command.c:1938
+#: src/common/command.c:1974
msgid "No config option found\n"
msgstr ""
-#: src/common/command.c:1944
+#: src/common/command.c:1980
#, c-format
msgid "config option(s) found with \"%s\"\n"
msgstr ""
-#: src/common/command.c:1947
+#: src/common/command.c:1983
msgid "config option(s) found\n"
msgstr ""
-#: src/common/command.c:1967
+#: src/common/command.c:2003
#, c-format
msgid "%s alias or command \"%s\" not found\n"
msgstr ""
-#: src/common/command.c:1977
+#: src/common/command.c:2013
#, c-format
msgid "Alias \"%s\" removed\n"
msgstr ""
-#: src/common/command.c:1997
+#: src/common/command.c:2033
msgid "Opened windows:\n"
msgstr ""
@@ -2356,124 +2371,124 @@ msgstr ""
msgid "**** End of log "
msgstr ""
-#: src/common/weechat.c:195
+#: src/common/weechat.c:185
#, c-format
msgid ""
"WeeChat configuration options (~/.weechat/weechat.rc):\n"
"\n"
msgstr ""
-#: src/common/weechat.c:208
+#: src/common/weechat.c:198
#, c-format
msgid " . type boolean (values: 'on' or 'off')\n"
msgstr ""
-#: src/common/weechat.c:209 src/common/weechat.c:232 src/common/weechat.c:238
-#: src/common/weechat.c:244
+#: src/common/weechat.c:199 src/common/weechat.c:222 src/common/weechat.c:228
+#: src/common/weechat.c:234
#, c-format
msgid " . default value: '%s'\n"
msgstr ""
-#: src/common/weechat.c:214
+#: src/common/weechat.c:204
#, c-format
msgid " . type integer (values: between %d and %d)\n"
msgstr ""
-#: src/common/weechat.c:217
+#: src/common/weechat.c:207
#, c-format
msgid " . default value: %d\n"
msgstr ""
-#: src/common/weechat.c:221
+#: src/common/weechat.c:211
#, c-format
msgid " . type string (values: "
msgstr ""
-#: src/common/weechat.c:234 src/common/weechat.c:240 src/common/weechat.c:246
+#: src/common/weechat.c:224 src/common/weechat.c:230 src/common/weechat.c:236
msgid "empty"
msgstr ""
-#: src/common/weechat.c:237
+#: src/common/weechat.c:227
#, c-format
msgid " . type color (Curses or Gtk color, look at WeeChat doc)\n"
msgstr ""
-#: src/common/weechat.c:243
+#: src/common/weechat.c:233
#, c-format
msgid " . type string (any string)\n"
msgstr ""
-#: src/common/weechat.c:249
+#: src/common/weechat.c:239
#, c-format
msgid ""
" . description: %s\n"
"\n"
msgstr ""
-#: src/common/weechat.c:255
+#: src/common/weechat.c:245
#, c-format
msgid ""
"Moreover, you can define aliases in [alias] section, by adding lines like:\n"
msgstr ""
-#: src/common/weechat.c:257
+#: src/common/weechat.c:247
#, c-format
msgid ""
"where 'j' is alias name, and 'join' associated command.\n"
"\n"
msgstr ""
-#: src/common/weechat.c:303
+#: src/common/weechat.c:293
#, c-format
msgid "%s invalid syntax for IRC server ('%s'), ignored\n"
msgstr ""
-#: src/common/weechat.c:315
+#: src/common/weechat.c:305
#, c-format
msgid "%s unable to create server ('%s'), ignored\n"
msgstr ""
-#: src/common/weechat.c:324
+#: src/common/weechat.c:314
#, c-format
msgid "%s unknown parameter '%s', ignored\n"
msgstr ""
-#: src/common/weechat.c:344
+#: src/common/weechat.c:334
#, c-format
msgid "%s cannot create directory \"%s\"\n"
msgstr ""
-#: src/common/weechat.c:370
+#: src/common/weechat.c:360
#, c-format
msgid "%s unable to get HOME directory\n"
msgstr ""
-#: src/common/weechat.c:379
+#: src/common/weechat.c:369
#, c-format
msgid "%s not enough memory for home directory\n"
msgstr ""
-#: src/common/weechat.c:389
+#: src/common/weechat.c:379
#, c-format
msgid "%s unable to create ~/.weechat directory\n"
msgstr ""
-#: src/common/weechat.c:441
+#: src/common/weechat.c:431
#, c-format
msgid "%s unable to create ~/.weechat/logs directory\n"
msgstr ""
-#: src/common/weechat.c:477
+#: src/common/weechat.c:467
#, c-format
msgid "%s unable to create/append to log file (~/.weechat/%s)"
msgstr ""
-#: src/common/weechat.c:500
+#: src/common/weechat.c:490
#, c-format
msgid "%sWelcome to "
msgstr ""
-#: src/common/weechat.c:513
+#: src/common/weechat.c:503
msgid "compiled on"
msgstr ""
diff --git a/src/common/command.c b/src/common/command.c
index 4e6c65ab2..63c3f1146 100644
--- a/src/common/command.c
+++ b/src/common/command.c
@@ -65,6 +65,10 @@ t_weechat_command weechat_commands[] =
N_("[servername]"),
N_("servername: server name to disconnect"),
0, 1, weechat_cmd_disconnect, NULL },
+ { "debug", N_("print debug messages"),
+ N_("dump"),
+ N_("dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)"),
+ 1, 1, weechat_cmd_debug, NULL },
{ "help", N_("display help about commands"),
N_("[command]"), N_("command: name of a WeeChat or IRC command"),
0, 1, weechat_cmd_help, NULL },
@@ -1034,7 +1038,7 @@ weechat_cmd_clear (int argc, char **argv)
{
if (argc == 1)
{
- if (strcmp (argv[0], "-all") == 0)
+ if (strcasecmp (argv[0], "-all") == 0)
gui_buffer_clear_all ();
else
{
@@ -1103,6 +1107,38 @@ weechat_cmd_connect (int argc, char **argv)
}
/*
+ * weechat_cmd_debug: print debug messages
+ */
+
+int
+weechat_cmd_debug (int argc, char **argv)
+{
+ if (argc != 1)
+ {
+ irc_display_prefix (NULL, PREFIX_ERROR);
+ gui_printf (NULL,
+ _("%s wrong argument count for \"%s\" command\n"),
+ WEECHAT_ERROR, "debug");
+ return -1;
+ }
+
+ if (strcasecmp (argv[0], "dump") == 0)
+ {
+ wee_dump (0);
+ }
+ else
+ {
+ irc_display_prefix (NULL, PREFIX_ERROR);
+ gui_printf (NULL,
+ _("%s unknown option for \"%s\" command\n"),
+ WEECHAT_ERROR, "perl");
+ return -1;
+ }
+
+ return 0;
+}
+
+/*
* weechat_cmd_disconnect: disconnect from a server
*/
@@ -1316,9 +1352,9 @@ weechat_cmd_perl (int argc, char **argv)
break;
case 1:
- if (strcmp (argv[0], "autoload") == 0)
+ if (strcasecmp (argv[0], "autoload") == 0)
plugin_auto_load (PLUGIN_TYPE_PERL, "perl/autoload");
- if (strcmp (argv[0], "unload") == 0)
+ if (strcasecmp (argv[0], "unload") == 0)
{
/* unload all Perl scripts */
plugin_unload (PLUGIN_TYPE_PERL, NULL);
@@ -1327,7 +1363,7 @@ weechat_cmd_perl (int argc, char **argv)
}
break;
case 2:
- if (strcmp (argv[0], "load") == 0)
+ if (strcasecmp (argv[0], "load") == 0)
{
/* load Perl script */
if (strstr(argv[1], DIR_SEPARATOR))
diff --git a/src/common/command.h b/src/common/command.h
index 474f3c10c..635c26261 100644
--- a/src/common/command.h
+++ b/src/common/command.h
@@ -65,6 +65,7 @@ extern int weechat_cmd_alias (char *);
extern int weechat_cmd_buffer (int, char **);
extern int weechat_cmd_clear (int, char **);
extern int weechat_cmd_connect (int, char **);
+extern int weechat_cmd_debug (int, char **);
extern int weechat_cmd_disconnect (int, char **);
extern int weechat_cmd_help (int, char **);
extern int weechat_cmd_perl (int, char **);
diff --git a/src/common/completion.c b/src/common/completion.c
index 40996e46a..75be644a6 100644
--- a/src/common/completion.c
+++ b/src/common/completion.c
@@ -165,6 +165,16 @@ completion_build_list (t_completion *completion, void *channel)
return;
}
}
+ if (strcasecmp (completion->base_command, "debug") == 0)
+ {
+ if (completion->base_command_arg == 1)
+ weelist_add (&completion->completion_list,
+ &completion->last_completion,
+ "dump");
+ else
+ completion_stop (completion);
+ return;
+ }
if ((strcasecmp (completion->base_command, "help") == 0)
&& (completion->base_command_arg == 1))
{
diff --git a/src/common/weechat.c b/src/common/weechat.c
index 193c63d5d..0e6c4184e 100644
--- a/src/common/weechat.c
+++ b/src/common/weechat.c
@@ -62,9 +62,10 @@
#include "../plugins/plugins.h"
-int quit_weechat; /* = 1 if quit request from user... why ? :'( */
-char *weechat_home = NULL; /* WeeChat home dir. (example: /home/toto/.weechat) */
-FILE *weechat_log_file = NULL; /* WeeChat log file (~/.weechat/weechat.log) */
+int quit_weechat; /* = 1 if quit request from user... why ? :'( */
+int sigsegv = 0; /* SIGSEGV received? */
+char *weechat_home = NULL; /* WeeChat home dir. (example: /home/toto/.weechat) */
+FILE *weechat_log_file = NULL; /* WeeChat log file (~/.weechat/weechat.log) */
char *local_charset = NULL; /* local charset, for example: ISO-8859-1 */
@@ -72,14 +73,34 @@ int server_cmd_line; /* at least one server on WeeChat command line */
/*
- * my_sigint: SIGINT handler, do nothing (just ignore this signal)
- * Prevents user for exiting with Ctrl-C
+ * wee_log_printf: displays a message in WeeChat log (~/.weechat/weechat.log)
*/
void
-my_sigint ()
+wee_log_printf (char *message, ...)
{
- /* do nothing */
+ static char buffer[4096];
+ va_list argptr;
+ static time_t seconds;
+ struct tm *date_tmp;
+
+ if (!weechat_log_file)
+ return;
+
+ va_start (argptr, message);
+ vsnprintf (buffer, sizeof (buffer) - 1, message, argptr);
+ va_end (argptr);
+
+ seconds = time (NULL);
+ date_tmp = localtime (&seconds);
+ if (date_tmp)
+ fprintf (weechat_log_file, "[%04d-%02d-%02d %02d:%02d:%02d] %s",
+ date_tmp->tm_year + 1900, date_tmp->tm_mon + 1, date_tmp->tm_mday,
+ date_tmp->tm_hour, date_tmp->tm_min, date_tmp->tm_sec,
+ buffer);
+ else
+ fprintf (weechat_log_file, "%s", buffer);
+ fflush (weechat_log_file);
}
/*
@@ -154,37 +175,6 @@ long get_timeval_diff(struct timeval *tv1, struct timeval *tv2)
}
/*
- * wee_log_printf: displays a message in WeeChat log (~/.weechat/weechat.log)
- */
-
-void
-wee_log_printf (char *message, ...)
-{
- static char buffer[4096];
- va_list argptr;
- static time_t seconds;
- struct tm *date_tmp;
-
- if (!weechat_log_file)
- return;
-
- va_start (argptr, message);
- vsnprintf (buffer, sizeof (buffer) - 1, message, argptr);
- va_end (argptr);
-
- seconds = time (NULL);
- date_tmp = localtime (&seconds);
- if (date_tmp)
- fprintf (weechat_log_file, "[%04d-%02d-%02d %02d:%02d:%02d] %s",
- date_tmp->tm_year + 1900, date_tmp->tm_mon + 1, date_tmp->tm_mday,
- date_tmp->tm_hour, date_tmp->tm_min, date_tmp->tm_sec,
- buffer);
- else
- fprintf (weechat_log_file, "%s", buffer);
- fflush (weechat_log_file);
-}
-
-/*
* wee_display_config_options: display config options
*/
@@ -549,6 +539,120 @@ wee_shutdown (int return_code)
}
/*
+ * wee_dump writes dump to WeeChat log file
+ */
+
+void
+wee_dump (int crash)
+{
+ t_irc_server *ptr_server;
+ t_irc_channel *ptr_channel;
+ t_irc_nick *ptr_nick;
+ t_gui_window *ptr_window;
+ t_gui_buffer *ptr_buffer;
+
+ /* prevent reentrance */
+ if (sigsegv)
+ exit (EXIT_FAILURE);
+
+ if (crash)
+ {
+ sigsegv = 1;
+ wee_log_printf ("very bad, WeeChat is crashing (SIGSEGV received)...\n");
+ }
+
+ wee_log_printf ("\n");
+ if (crash)
+ {
+ wee_log_printf ("****** WeeChat CRASH DUMP ******\n");
+ wee_log_printf ("****** Please send this file to WeeChat developers ******\n");
+ wee_log_printf ("****** and explain when this crash happened ******\n");
+ }
+ else
+ {
+ wee_log_printf ("****** WeeChat dump request ******\n");
+ }
+
+ for (ptr_server = irc_servers; ptr_server; ptr_server = ptr_server->next_server)
+ {
+ wee_log_printf ("\n");
+ server_print_log (ptr_server);
+
+ for (ptr_channel = ptr_server->channels; ptr_channel;
+ ptr_channel = ptr_channel->next_channel)
+ {
+ wee_log_printf ("\n");
+ channel_print_log (ptr_channel);
+
+ for (ptr_nick = ptr_channel->nicks; ptr_nick;
+ ptr_nick = ptr_nick->next_nick)
+ {
+ wee_log_printf ("\n");
+ nick_print_log (ptr_nick);
+ }
+
+ }
+ }
+
+ wee_log_printf ("\n");
+ wee_log_printf ("[windows/buffers]\n");
+ wee_log_printf (" => windows:\n");
+ for (ptr_window = gui_windows; ptr_window; ptr_window = ptr_window->next_window)
+ {
+ wee_log_printf (" 0x%X\n", ptr_window);
+ }
+ wee_log_printf (" => buffers:\n");
+ for (ptr_buffer = gui_buffers; ptr_buffer; ptr_buffer = ptr_buffer->next_buffer)
+ {
+ wee_log_printf (" 0x%X\n", ptr_buffer);
+ }
+ wee_log_printf (" => current window = 0x%X\n", gui_current_window);
+
+ for (ptr_window = gui_windows; ptr_window; ptr_window = ptr_window->next_window)
+ {
+ wee_log_printf ("\n");
+ gui_window_print_log (ptr_window);
+ }
+
+ for (ptr_buffer = gui_buffers; ptr_buffer; ptr_buffer = ptr_buffer->next_buffer)
+ {
+ wee_log_printf ("\n");
+ gui_buffer_print_log (ptr_buffer);
+ }
+
+ wee_log_printf ("\n");
+ wee_log_printf ("****** End of dump ******\n");
+ wee_log_printf ("\n");
+}
+
+/*
+ * my_sigint: SIGINT handler, do nothing (just ignore this signal)
+ * Prevents user for exiting with Ctrl-C
+ */
+
+void
+my_sigint ()
+{
+ /* do nothing */
+}
+
+/*
+ * my_sigsegv: SIGSEGV handler: save crash log to ~/.weechat/weechat.log and exit
+ */
+
+void
+my_sigsegv ()
+{
+ wee_dump (1);
+ wee_gui_shutdown ();
+ fprintf (stderr, "\n");
+ fprintf (stderr, "*** Very bad! WeeChat has crashed (SIGSEGV received)\n");
+ fprintf (stderr, "*** Full crash dump was saved to ~/.weechat/weechat.log file\n");
+ fprintf (stderr, "*** Please send this file to WeeChat developers.\n\n");
+ wee_shutdown (EXIT_FAILURE);
+}
+
+/*
* main: WeeChat startup
*/
@@ -564,6 +668,7 @@ main (int argc, char *argv[])
local_charset = strdup (nl_langinfo (CODESET));
signal (SIGINT, my_sigint); /* ignore SIGINT signal */
+ signal (SIGSEGV, my_sigsegv); /* crash dump when SIGSEGV is received */
gui_pre_init (&argc, &argv); /* pre-initiliaze interface */
wee_init_vars (); /* initialize some variables */
wee_parse_args (argc, argv); /* parse command line args */
diff --git a/src/common/weechat.h b/src/common/weechat.h
index 34f72dc4b..6e60acedd 100644
--- a/src/common/weechat.h
+++ b/src/common/weechat.h
@@ -102,9 +102,10 @@ extern int quit_weechat;
extern char *weechat_home;
extern char *local_charset;
+extern void wee_log_printf (char *, ...);
+extern void wee_dump (int);
extern char *weechat_convert_encoding (char *, char *, char *);
extern long get_timeval_diff (struct timeval *, struct timeval *);
-extern void wee_log_printf (char *, ...);
extern void wee_shutdown (int);
#endif /* weechat.h */
diff --git a/src/gui/gui-common.c b/src/gui/gui-common.c
index 633d4acf1..5e8df43e6 100644
--- a/src/gui/gui-common.c
+++ b/src/gui/gui-common.c
@@ -817,3 +817,115 @@ gui_move_buffer_to_number (t_gui_window *window, int number)
gui_redraw_buffer (window->buffer);
}
+
+/*
+ * gui_window_print_log: print window infos in log (usually for crash dump)
+ */
+
+void
+gui_window_print_log (t_gui_window *window)
+{
+ wee_log_printf ("[window (addr:0x%X)]\n", window);
+ wee_log_printf (" win_x . . . . . . . : %d\n", window->win_x);
+ wee_log_printf (" win_y . . . . . . . : %d\n", window->win_y);
+ wee_log_printf (" win_width . . . . . : %d\n", window->win_width);
+ wee_log_printf (" win_height. . . . . : %d\n", window->win_height);
+ wee_log_printf (" win_chat_x. . . . . : %d\n", window->win_chat_x);
+ wee_log_printf (" win_chat_y. . . . . : %d\n", window->win_chat_y);
+ wee_log_printf (" win_chat_width. . . : %d\n", window->win_chat_width);
+ wee_log_printf (" win_chat_height . . : %d\n", window->win_chat_height);
+ wee_log_printf (" win_chat_cursor_x . : %d\n", window->win_chat_cursor_x);
+ wee_log_printf (" win_chat_cursor_y . : %d\n", window->win_chat_cursor_y);
+ wee_log_printf (" win_nick_x. . . . . : %d\n", window->win_nick_x);
+ wee_log_printf (" win_nick_y. . . . . : %d\n", window->win_nick_y);
+ wee_log_printf (" win_nick_width. . . : %d\n", window->win_nick_width);
+ wee_log_printf (" win_nick_height . . : %d\n", window->win_nick_height);
+ wee_log_printf (" win_title . . . . . : 0x%X\n", window->win_title);
+ wee_log_printf (" win_chat. . . . . . : 0x%X\n", window->win_chat);
+ wee_log_printf (" win_nick. . . . . . : 0x%X\n", window->win_nick);
+ wee_log_printf (" win_status. . . . . : 0x%X\n", window->win_status);
+ wee_log_printf (" win_infobar . . . . : 0x%X\n", window->win_infobar);
+ wee_log_printf (" win_input . . . . . : 0x%X\n", window->win_input);
+ wee_log_printf (" win_separator . . . : 0x%X\n", window->win_separator);
+ wee_log_printf (" textview_chat . . . : 0x%X\n", window->textview_chat);
+ wee_log_printf (" textbuffer_chat . . : 0x%X\n", window->textbuffer_chat);
+ wee_log_printf (" texttag_chat. . . . : 0x%X\n", window->texttag_chat);
+ wee_log_printf (" textview_nicklist . : 0x%X\n", window->textview_nicklist);
+ wee_log_printf (" textbuffer_nicklist : 0x%X\n", window->textbuffer_nicklist);
+ wee_log_printf (" dcc_first . . . . . : 0x%X\n", window->dcc_first);
+ wee_log_printf (" dcc_selected. . . . : 0x%X\n", window->dcc_selected);
+ wee_log_printf (" dcc_last_displayed. : 0x%X\n", window->dcc_last_displayed);
+ wee_log_printf (" buffer. . . . . . . : 0x%X\n", window->buffer);
+ wee_log_printf (" first_line_displayed: %d\n", window->first_line_displayed);
+ wee_log_printf (" sub_lines . . . . . : %d\n", window->sub_lines);
+ wee_log_printf (" prev_window . . . . : 0x%X\n", window->prev_window);
+ wee_log_printf (" next_window . . . . : 0x%X\n", window->next_window);
+
+}
+
+/*
+ * gui_buffer_print_log: print buffer infos in log (usually for crash dump)
+ */
+
+void
+gui_buffer_print_log (t_gui_buffer *buffer)
+{
+ t_gui_line *ptr_line;
+ t_gui_message *ptr_message;
+ int num;
+ char buf[4096];
+
+ wee_log_printf ("[buffer (addr:0x%X)]\n", buffer);
+ wee_log_printf (" num_displayed. . . . : %d\n", buffer->num_displayed);
+ wee_log_printf (" number . . . . . . . : %d\n", buffer->number);
+ wee_log_printf (" server . . . . . . . : 0x%X\n", buffer->server);
+ wee_log_printf (" channel. . . . . . . : 0x%X\n", buffer->channel);
+ wee_log_printf (" dcc. . . . . . . . . : %d\n", buffer->dcc);
+ wee_log_printf (" lines. . . . . . . . : 0x%X\n", buffer->lines);
+ wee_log_printf (" last_line. . . . . . : 0x%X\n", buffer->last_line);
+ wee_log_printf (" num_lines. . . . . . : %d\n", buffer->num_lines);
+ wee_log_printf (" line_complete. . . . : %d\n", buffer->line_complete);
+ wee_log_printf (" notify_level . . . . : %d\n", buffer->notify_level);
+ wee_log_printf (" log_filename . . . . : '%s'\n", buffer->log_filename);
+ wee_log_printf (" log_file . . . . . . : 0x%X\n", buffer->log_file);
+ wee_log_printf (" input_buffer . . . . : '%s'\n", buffer->input_buffer);
+ wee_log_printf (" input_buffer_alloc . : %d\n", buffer->input_buffer_alloc);
+ wee_log_printf (" input_buffer_size. . : %d\n", buffer->input_buffer_size);
+ wee_log_printf (" input_buffer_pos . . : %d\n", buffer->input_buffer_pos);
+ wee_log_printf (" input_buffer_1st_disp: %d\n", buffer->input_buffer_1st_display);
+ wee_log_printf (" history. . . . . . . : 0x%X\n", buffer->history);
+ wee_log_printf (" last_history . . . . : 0x%X\n", buffer->last_history);
+ wee_log_printf (" ptr_history. . . . . : 0x%X\n", buffer->ptr_history);
+ wee_log_printf (" prev_buffer. . . . . : 0x%X\n", buffer->prev_buffer);
+ wee_log_printf (" next_buffer. . . . . : 0x%X\n", buffer->next_buffer);
+ wee_log_printf ("\n");
+ wee_log_printf (" => last 100 lines:\n");
+
+ num = 0;
+ ptr_line = buffer->last_line;
+ while (ptr_line && (num < 100))
+ {
+ num++;
+ ptr_line = ptr_line->prev_line;
+ }
+ if (!ptr_line)
+ ptr_line = buffer->lines;
+ else
+ ptr_line = ptr_line->next_line;
+
+ while (ptr_line)
+ {
+ buf[0] = '\0';
+ for (ptr_message = ptr_line->messages; ptr_message;
+ ptr_message = ptr_message->next_message)
+ {
+ if (strlen (buf) + strlen (ptr_message->message) + 1 >= sizeof (buf))
+ break;
+ strcat (buf, ptr_message->message);
+ }
+ num--;
+ wee_log_printf (" line N-%05d: %s\n", num, buf);
+
+ ptr_line = ptr_line->next_line;
+ }
+}
diff --git a/src/gui/gui.h b/src/gui/gui.h
index 6885ecf3d..6af18fe70 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -277,6 +277,8 @@ extern void gui_move_next_word (t_gui_buffer *);
extern void gui_buffer_insert_string (t_gui_buffer *, char *, int);
extern t_gui_buffer *gui_switch_to_buffer_by_number (t_gui_window *, int);
extern void gui_move_buffer_to_number (t_gui_window *, int);
+extern void gui_window_print_log (t_gui_window *);
+extern void gui_buffer_print_log (t_gui_buffer *);
/* GUI dependant functions */
diff --git a/src/irc/irc-channel.c b/src/irc/irc-channel.c
index 10faf44b0..c2d2791fa 100644
--- a/src/irc/irc-channel.c
+++ b/src/irc/irc-channel.c
@@ -260,3 +260,25 @@ channel_remove_dcc (t_irc_dcc *ptr_dcc)
}
}
}
+
+/*
+ * channel_print_log: print channel infos in log (usually for crash dump)
+ */
+
+void
+channel_print_log (t_irc_channel *channel)
+{
+ wee_log_printf ("=> channel %s (addr:0x%X)]\n", channel->name, channel);
+ wee_log_printf (" type . . . . : %d\n", channel->type);
+ wee_log_printf (" dcc_chat . . : 0x%X\n", channel->dcc_chat);
+ wee_log_printf (" topic. . . . : '%s'\n", channel->topic);
+ wee_log_printf (" modes. . . . : '%s'\n", channel->modes);
+ wee_log_printf (" limit. . . . : %d\n", channel->limit);
+ wee_log_printf (" key. . . . . : '%s'\n", channel->key);
+ wee_log_printf (" checking_away: %d\n", channel->checking_away);
+ wee_log_printf (" nicks. . . . : 0x%X\n", channel->nicks);
+ wee_log_printf (" last_nick. . : 0x%X\n", channel->last_nick);
+ wee_log_printf (" buffer . . . : 0x%X\n", channel->buffer);
+ wee_log_printf (" prev_channel : 0x%X\n", channel->prev_channel);
+ wee_log_printf (" next_channel : 0x%X\n", channel->next_channel);
+}
diff --git a/src/irc/irc-nick.c b/src/irc/irc-nick.c
index 5228325ed..15ff04341 100644
--- a/src/irc/irc-nick.c
+++ b/src/irc/irc-nick.c
@@ -369,3 +369,22 @@ nick_set_away (t_irc_channel *channel, t_irc_nick *nick, int is_away)
gui_draw_buffer_nick (channel->buffer, 0);
}
}
+
+/*
+ * nick_print_log: print nick infos in log (usually for crash dump)
+ */
+
+void
+nick_print_log (t_irc_nick *nick)
+{
+ wee_log_printf ("=> nick %s (addr:0x%X)]\n", nick->nick, nick);
+ wee_log_printf (" is_chanowner . : %d\n", nick->is_chanowner);
+ wee_log_printf (" is_chanadmin . : %d\n", nick->is_chanadmin);
+ wee_log_printf (" is_op. . . . . : %d\n", nick->is_op);
+ wee_log_printf (" is_halfop. . . : %d\n", nick->is_halfop);
+ wee_log_printf (" has_voice. . . : %d\n", nick->has_voice);
+ wee_log_printf (" is_away. . . . : %d\n", nick->is_away);
+ wee_log_printf (" color. . . . . : %d\n", nick->color);
+ wee_log_printf (" prev_nick. . . : 0x%X\n", nick->prev_nick);
+ wee_log_printf (" next_nick. . . : 0x%X\n", nick->next_nick);
+}
diff --git a/src/irc/irc-server.c b/src/irc/irc-server.c
index ce166aa5a..18a66595b 100644
--- a/src/irc/irc-server.c
+++ b/src/irc/irc-server.c
@@ -1117,3 +1117,51 @@ server_set_away (t_irc_server *server, char *nick, int is_away)
}
}
}
+
+/*
+ * server_print_log: print server infos in log (usually for crash dump)
+ */
+
+void
+server_print_log (t_irc_server *server)
+{
+ wee_log_printf ("[server %s (addr:0x%X)]\n", server->name, server);
+ wee_log_printf (" autoconnect . . . . : %d\n", server->autoconnect);
+ wee_log_printf (" autoreconnect . . . : %d\n", server->autoreconnect);
+ wee_log_printf (" autoreconnect_delay : %d\n", server->autoreconnect_delay);
+ wee_log_printf (" command_line. . . . : %d\n", server->command_line);
+ wee_log_printf (" address . . . . . . : '%s'\n", server->address);
+ wee_log_printf (" port. . . . . . . . : %d\n", server->port);
+ wee_log_printf (" password. . . . . . : '%s'\n",
+ (server->password && server->password[0]) ? "(hidden)" : server->password);
+ wee_log_printf (" nick1 . . . . . . . : '%s'\n", server->nick1);
+ wee_log_printf (" nick2 . . . . . . . : '%s'\n", server->nick2);
+ wee_log_printf (" nick3 . . . . . . . : '%s'\n", server->nick3);
+ wee_log_printf (" username. . . . . . : '%s'\n", server->username);
+ wee_log_printf (" realname. . . . . . : '%s'\n", server->realname);
+ wee_log_printf (" command . . . . . . : '%s'\n",
+ (server->command && server->command[0]) ? "(hidden)" : server->command);
+ wee_log_printf (" command_delay . . . : %d\n", server->command_delay);
+ wee_log_printf (" autojoin. . . . . . : '%s'\n", server->autojoin);
+ wee_log_printf (" autorejoin. . . . . : %d\n", server->autorejoin);
+ wee_log_printf (" child_pid . . . . . : %d\n", server->child_pid);
+ wee_log_printf (" child_read . . . . : %d\n", server->child_read);
+ wee_log_printf (" child_write . . . . : %d\n", server->child_write);
+ wee_log_printf (" sock. . . . . . . . : %d\n", server->sock);
+ wee_log_printf (" is_connected. . . . : %d\n", server->is_connected);
+ wee_log_printf (" unterminated_message: '%s'\n", server->unterminated_message);
+ wee_log_printf (" nick. . . . . . . . : '%s'\n", server->nick);
+ wee_log_printf (" reconnect_start . . : %ld\n", server->reconnect_start);
+ wee_log_printf (" reconnect_join. . . : %d\n", server->reconnect_join);
+ wee_log_printf (" is_away . . . . . . : %d\n", server->is_away);
+ wee_log_printf (" away_time . . . . . : %ld\n", server->away_time);
+ wee_log_printf (" lag . . . . . . . . : %d\n", server->lag);
+ wee_log_printf (" lag_check_time. . . : tv_sec:%d, tv_usec:%d\n",
+ server->lag_check_time.tv_sec, server->lag_check_time.tv_usec);
+ wee_log_printf (" lag_next_check. . . : %ld\n", server->lag_next_check);
+ wee_log_printf (" buffer. . . . . . . : 0x%X\n", server->buffer);
+ wee_log_printf (" channels. . . . . . : 0x%X\n", server->channels);
+ wee_log_printf (" last_channel. . . . : 0x%X\n", server->last_channel);
+ wee_log_printf (" prev_server . . . . : 0x%X\n", server->prev_server);
+ wee_log_printf (" next_server . . . . : 0x%X\n", server->next_server);
+}
diff --git a/src/irc/irc.h b/src/irc/irc.h
index 45c26daae..dd01de6e0 100644
--- a/src/irc/irc.h
+++ b/src/irc/irc.h
@@ -261,6 +261,7 @@ extern int server_name_already_exists (char *);
extern void server_remove_away ();
extern void server_check_away ();
extern void server_set_away (t_irc_server *, char *, int);
+extern void server_print_log (t_irc_server *);
/* channel functions (irc-channel.c) */
@@ -274,6 +275,7 @@ extern void channel_check_away (t_irc_server *, t_irc_channel *);
extern void channel_set_away (t_irc_channel *, char *, int);
extern int channel_create_dcc (t_irc_dcc *);
extern void channel_remove_dcc (t_irc_dcc *);
+extern void channel_print_log (t_irc_channel *);
/* nick functions (irc-nick.c) */
@@ -286,6 +288,7 @@ extern t_irc_nick *nick_search (t_irc_channel *, char *);
extern void nick_count (t_irc_channel *, int *, int *, int *, int *, int *);
extern int nick_get_max_length (t_irc_channel *);
extern void nick_set_away (t_irc_channel *, t_irc_nick *, int);
+extern void nick_print_log (t_irc_nick *);
/* DCC functions (irc-dcc.c) */
diff --git a/weechat/ChangeLog b/weechat/ChangeLog
index 5667460eb..2c21d21cf 100644
--- a/weechat/ChangeLog
+++ b/weechat/ChangeLog
@@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
-ChangeLog - 2005-02-27
+ChangeLog - 2005-03-05
Version 0.1.1 (under dev!):
+ * added crash dump when WeeChat receives SIGSEGV (Segmentation fault)
* added new display engine: doesn't cut words at end of lines
* added DCC send and DCC chat
* added spanish translation
diff --git a/weechat/po/es.po b/weechat/po/es.po
index 23dfd2272..f823c46d9 100644
--- a/weechat/po/es.po
+++ b/weechat/po/es.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.1.1-cvs\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2005-02-28 11:36+0100\n"
-"PO-Revision-Date: 2005-02-28 11:25+0100\n"
+"POT-Creation-Date: 2005-03-05 17:57+0100\n"
+"PO-Revision-Date: 2005-03-05 18:00+0100\n"
"Last-Translator: Roberto González Cardenete <robert.glez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -1170,7 +1170,7 @@ msgstr "indicador de modo desconocido"
msgid "can't change mode for other users"
msgstr "no es posible cambiar el modo para el resto de usuarios"
-#: src/irc/irc-display.c:154 src/common/command.c:804
+#: src/irc/irc-display.c:154 src/common/command.c:808
msgid "Server: "
msgstr "Servidor: "
@@ -1208,7 +1208,8 @@ msgid "%s: using local hostname \"%s\"\n"
msgstr "%s: utilización del nombre de máquina local \"%s\"\n"
#: src/irc/irc-send.c:265 src/irc/irc-send.c:277 src/irc/irc-send.c:295
-#: src/irc/irc-send.c:775 src/irc/irc-send.c:849 src/common/command.c:1359
+#: src/irc/irc-send.c:775 src/irc/irc-send.c:849 src/common/command.c:1120
+#: src/common/command.c:1395
#, c-format
msgid "%s wrong argument count for \"%s\" command\n"
msgstr "%s número de argumentos incorrecto para el comando \"%s\"\n"
@@ -2017,26 +2018,40 @@ msgid "servername: server name to disconnect"
msgstr "nombre_del_servidor: nombre del servidor del que desconectarse"
#: src/common/command.c:68
+msgid "print debug messages"
+msgstr ""
+
+#: src/common/command.c:69
+msgid "dump"
+msgstr "dump"
+
+#: src/common/command.c:70
+msgid ""
+"dump: save memory dump in WeeChat log file (same dump is written when "
+"WeeChat crashes)"
+msgstr ""
+
+#: src/common/command.c:72
msgid "display help about commands"
msgstr "mostrar ayuda sobre los comandos"
-#: src/common/command.c:69
+#: src/common/command.c:73
msgid "[command]"
msgstr "[comando]"
-#: src/common/command.c:69
+#: src/common/command.c:73
msgid "command: name of a WeeChat or IRC command"
msgstr "comando: nombre de un comando de Weechat ó de IRC"
-#: src/common/command.c:71
+#: src/common/command.c:75
msgid "list/load/unload Perl scripts"
msgstr "lista/carga/descarga de los Perl scripts"
-#: src/common/command.c:72
+#: src/common/command.c:76
msgid "[load filename] | [autoload] | [unload]"
msgstr "[load fichero] | [autoload] | [unload]"
-#: src/common/command.c:73
+#: src/common/command.c:77
msgid ""
"filename: Perl script (file) to load\n"
"Without argument, /perl command lists all loaded Perl scripts."
@@ -2044,11 +2059,11 @@ msgstr ""
"fichero: Perl script (archivo) a cargar\n"
"Sin argumentos, el comando /perl lista todos los Perl scripts cargados."
-#: src/common/command.c:76
+#: src/common/command.c:80
msgid "list, add or remove servers"
msgstr "lista, añade o elimina servidores"
-#: src/common/command.c:77
+#: src/common/command.c:81
msgid ""
"[servername] | [servername hostname port [-auto | -noauto] [-pwd password] [-"
"nicks nick1 [nick2 [nick3]]] [-username username] [-realname realname] [-"
@@ -2059,7 +2074,7 @@ msgstr ""
"nombre de usuario] [-realname nombre_real] [-command comando] [-autojoin "
"canal[,canal]] ] | [del nombre_de_servidor]"
-#: src/common/command.c:82
+#: src/common/command.c:86
msgid ""
"servername: server name, for internal & display use\n"
"hostname: name or IP address of server\n"
@@ -2081,27 +2096,27 @@ msgstr ""
"nombre_de_usuario: nombre de usuario\n"
"nombre_real: nombre real del usuario"
-#: src/common/command.c:92
+#: src/common/command.c:96
msgid "save config to disk"
msgstr "guardar configuración a disco"
-#: src/common/command.c:93
+#: src/common/command.c:97
msgid "[file]"
msgstr "[archivo]"
-#: src/common/command.c:93
+#: src/common/command.c:97
msgid "file: filename for writing config"
msgstr "archivo: fichero en el que guardar la configuración"
-#: src/common/command.c:95
+#: src/common/command.c:99
msgid "set config parameters"
msgstr "modificar parámetros de configuración"
-#: src/common/command.c:96
+#: src/common/command.c:100
msgid "[option[=value]]"
msgstr "[opción[=valor]]"
-#: src/common/command.c:96
+#: src/common/command.c:100
msgid ""
"option: name of an option\n"
"value: value for option"
@@ -2109,27 +2124,27 @@ msgstr ""
"opción: nombre de una opción\n"
"valor: valor para la opción"
-#: src/common/command.c:98
+#: src/common/command.c:102
msgid "remove an alias"
msgstr "eliminar un alias"
-#: src/common/command.c:99
+#: src/common/command.c:103
msgid "alias_name"
msgstr "alias"
-#: src/common/command.c:99
+#: src/common/command.c:103
msgid "alias_name: name of alias to remove"
msgstr "alias: nombre del alias a suprimir"
-#: src/common/command.c:101
+#: src/common/command.c:105
msgid "manage windows"
msgstr "gestión de ventanas"
-#: src/common/command.c:102
+#: src/common/command.c:106
msgid "[list | splith | splitv | [merge [down | up | left | right | all]]]"
msgstr "[list | splith | splitv | [merge [down | up | left | right | all]]]"
-#: src/common/command.c:104
+#: src/common/command.c:108
msgid ""
" list list opened windows (no parameter implies this list)\n"
"splith split current window horizontally\n"
@@ -2142,29 +2157,29 @@ msgstr ""
"splitv dividir la ventana actual verticalmente\n"
" merge fusionar una ventana con otra"
-#: src/common/command.c:250
+#: src/common/command.c:254
#, c-format
msgid "%s alias or command \"%s\" already exists!\n"
msgstr "%s ¡el alias o el comando \"%s\" ya existe!\n"
-#: src/common/command.c:260
+#: src/common/command.c:264
#, c-format
msgid "%s alias cannot run another alias!\n"
msgstr "%s ¡el alias no puede ejecutar otro alias!\n"
-#: src/common/command.c:267
+#: src/common/command.c:271
#, c-format
msgid "%s target command \"%s\" does not exist!\n"
msgstr "%s ¡el comando objetivo \"%s\" no existe!\n"
-#: src/common/command.c:475
+#: src/common/command.c:479
#, c-format
msgid "%s wrong argument count for %s command \"%s\" (expected: %d arg%s)\n"
msgstr ""
"%s número de argumentos incorrecto para el comando %s \"%s\" (esperado: %d "
"parámetro%s)\n"
-#: src/common/command.c:487
+#: src/common/command.c:491
#, c-format
msgid ""
"%s wrong argument count for %s command \"%s\" (expected: between %d and %d "
@@ -2173,19 +2188,19 @@ msgstr ""
"%s número de argumentos incorrecto para el comando %s \"%s\" (esperado: "
"entre %d y %d parámetro%s)\n"
-#: src/common/command.c:509 src/common/command.c:579
+#: src/common/command.c:513 src/common/command.c:583
#, c-format
msgid "%s command \"%s\" failed\n"
msgstr "%s el comando \"%s\" ha fallado\n"
-#: src/common/command.c:537
+#: src/common/command.c:541
#, c-format
msgid "%s wrong argument count for IRC command \"%s\" (expected: %d arg%s)\n"
msgstr ""
"%s número de argumentos incorrecto para el comando IRC \"%s\" (esperado: %d "
"parámetro%s)\n"
-#: src/common/command.c:549
+#: src/common/command.c:553
#, c-format
msgid ""
"%s wrong argument count for IRC command \"%s\" (expected: between %d and %d "
@@ -2194,177 +2209,177 @@ msgstr ""
"%s número de argumentos incorrecto para el comando IRC \"%s\" (esperado: "
"entre %d y %d parámetro%s)\n"
-#: src/common/command.c:564
+#: src/common/command.c:568
#, c-format
msgid "%s command \"%s\" needs a server connection!\n"
msgstr "%s ¡el comando \"%s\" requiere una conexión a servidor!\n"
-#: src/common/command.c:628
+#: src/common/command.c:632
#, c-format
msgid "%s unknown command \"%s\" (type /help for help)\n"
msgstr "%s comando \"%s\" desconocido (escriba /help para la ayuda)\n"
-#: src/common/command.c:703
+#: src/common/command.c:707
#, c-format
msgid "%s cannot find nick for sending message\n"
msgstr "%s no ha sido posible encontrar el usuario al que enviar el mensaje\n"
-#: src/common/command.c:712
+#: src/common/command.c:716
msgid "This window is not a channel!\n"
msgstr "¡Esta ventana no es un canal!\n"
-#: src/common/command.c:740 src/common/command.c:764 src/common/command.c:868
+#: src/common/command.c:744 src/common/command.c:768 src/common/command.c:872
#, c-format
msgid "%s missing arguments for \"%s\" command\n"
msgstr "%s faltan argumentos para el comando \"%s\"\n"
-#: src/common/command.c:749
+#: src/common/command.c:753
#, c-format
msgid "Alias \"%s\" => \"%s\" created\n"
msgstr "Alias \"%s\" => \"%s\" creado\n"
-#: src/common/command.c:755
+#: src/common/command.c:759
#, c-format
msgid "Failed to create alias \"%s\" => \"%s\" (not enough memory)\n"
msgstr ""
"No ha sido posible crear el alias \"%s\" => \"%s\" (no hay suficiente "
"memoria)\n"
-#: src/common/command.c:775
+#: src/common/command.c:779
msgid "List of aliases:\n"
msgstr "Lista de alias:\n"
-#: src/common/command.c:787
+#: src/common/command.c:791
msgid "No alias defined.\n"
msgstr "Ningún alias definido.\n"
-#: src/common/command.c:810
+#: src/common/command.c:814
msgid "Channel: "
msgstr "Canal: "
-#: src/common/command.c:813 src/common/command.c:823
+#: src/common/command.c:817 src/common/command.c:827
msgid " (server: "
msgstr " (servidor: "
-#: src/common/command.c:820
+#: src/common/command.c:824
msgid "Private with: "
msgstr "Privado con: "
-#: src/common/command.c:848
+#: src/common/command.c:852
msgid "Opened buffers:\n"
msgstr "Búfers abiertos:\n"
-#: src/common/command.c:891 src/common/command.c:1018
+#: src/common/command.c:895 src/common/command.c:1022
#, c-format
msgid "%s incorrect buffer number\n"
msgstr "%s número de búfer incorrecto\n"
-#: src/common/command.c:905
+#: src/common/command.c:909
#, c-format
msgid "%s can not close the single buffer\n"
msgstr "%s no es posible cerrar el único búfer\n"
-#: src/common/command.c:915
+#: src/common/command.c:919
#, c-format
msgid "%s can not close server buffer while channels are opened\n"
msgstr ""
"%s no se puede cerrar el búfer de servidor mientras haya canales abiertos\n"
-#: src/common/command.c:954
+#: src/common/command.c:958
msgid "Notify levels: "
msgstr "Niveles de notificación: "
-#: src/common/command.c:981 src/common/command.c:991
+#: src/common/command.c:985 src/common/command.c:995
#, c-format
msgid "%s incorrect notify level (must be between 0 and 3)\n"
msgstr "%s nivel de notificación incorrecto (debe estar entre 0 y 3)\n"
-#: src/common/command.c:1009
+#: src/common/command.c:1013
#, c-format
msgid "%s buffer \"%s\" not found for \"%s\" command\n"
msgstr "%s búfer \"%s\" no encontrado para el comando \"%s\"\n"
-#: src/common/command.c:1043
+#: src/common/command.c:1047
#, c-format
msgid "unknown parameter \"%s\" for \"%s\" command\n"
msgstr "parámetro desconocido \"%s\" para el comando \"%s\"\n"
-#: src/common/command.c:1073
+#: src/common/command.c:1077
#, c-format
msgid "%s already connected to server \"%s\"!\n"
msgstr "%s ya conectado al servidor \"%s\"!\n"
-#: src/common/command.c:1081
+#: src/common/command.c:1085
#, c-format
msgid "%s currently connecting to server \"%s\"!\n"
msgstr "%s actualmente conectando al servidor \"%s\"!\n"
-#: src/common/command.c:1099 src/common/command.c:1142
+#: src/common/command.c:1103 src/common/command.c:1178
#, c-format
msgid "%s server not found\n"
msgstr "%s servidor no encontrado\n"
-#: src/common/command.c:1126
+#: src/common/command.c:1133 src/common/command.c:1388
+#: src/common/command.c:2085 src/common/command.c:2097
+#, c-format
+msgid "%s unknown option for \"%s\" command\n"
+msgstr "%s opción desconocida para el comando \"%s\"\n"
+
+#: src/common/command.c:1162
#, c-format
msgid "%s not connected to server \"%s\"!\n"
msgstr "%s ¡no conectado al servidor \"%s\"!\n"
-#: src/common/command.c:1134
+#: src/common/command.c:1170
msgid "Auto-reconnection is cancelled\n"
msgstr "La reconexión automática está anulada\n"
-#: src/common/command.c:1160
+#: src/common/command.c:1196
#, c-format
msgid "%s internal commands:\n"
msgstr "Comandos internos %s :\n"
-#: src/common/command.c:1169
+#: src/common/command.c:1205
msgid "IRC commands:\n"
msgstr "Comandos IRC :\n"
-#: src/common/command.c:1228
+#: src/common/command.c:1264
#, c-format
msgid "No help available, \"%s\" is an unknown command\n"
msgstr "No hay ayuda disponible, el comando \"%s\" es desconocido\n"
-#: src/common/command.c:1253
+#: src/common/command.c:1289
msgid "Registered Perl scripts:\n"
msgstr "Perl scripts registrados:\n"
-#: src/common/command.c:1270 src/common/command.c:1292
-#: src/common/command.c:1314
+#: src/common/command.c:1306 src/common/command.c:1328
+#: src/common/command.c:1350
msgid " (none)\n"
msgstr " (ninguno)\n"
-#: src/common/command.c:1275
+#: src/common/command.c:1311
msgid "Perl message handlers:\n"
msgstr "Funciones Perl para mensajes:\n"
-#: src/common/command.c:1284
+#: src/common/command.c:1320
#, c-format
msgid " IRC(%s) => Perl(%s)\n"
msgstr " IRC(%s) => Perl(%s)\n"
-#: src/common/command.c:1297
+#: src/common/command.c:1333
msgid "Perl command handlers:\n"
msgstr "Comandos Perl :\n"
-#: src/common/command.c:1306
+#: src/common/command.c:1342
#, c-format
msgid " Command /%s => Perl(%s)\n"
msgstr " Comando /%s => Perl(%s)\n"
-#: src/common/command.c:1326
+#: src/common/command.c:1362
msgid "Perl scripts unloaded\n"
msgstr "Perl scripts descargados\n"
-#: src/common/command.c:1352 src/common/command.c:2049
-#: src/common/command.c:2061
-#, c-format
-msgid "%s unknown option for \"%s\" command\n"
-msgstr "%s opción desconocida para el comando \"%s\"\n"
-
-#: src/common/command.c:1365
+#: src/common/command.c:1401
msgid ""
"WeeChat was build without Perl support.\n"
"Please rebuild WeeChat with \"--enable-perl\" option for ./configure script\n"
@@ -2373,32 +2388,32 @@ msgstr ""
"Por favor, recompile WeeChat con la opción \"--enable-perl\" para el "
"script ./configure\n"
-#: src/common/command.c:1419
+#: src/common/command.c:1455
msgid "No server.\n"
msgstr "Ningún servidor.\n"
-#: src/common/command.c:1430
+#: src/common/command.c:1466
#, c-format
msgid "Server '%s' not found.\n"
msgstr "Servidor '%s' no encontrado.\n"
-#: src/common/command.c:1442
+#: src/common/command.c:1478
#, c-format
msgid "%s missing servername for \"%s\" command\n"
msgstr "%s falta el nombre de servidor para el comando \"%s\"\n"
-#: src/common/command.c:1450
+#: src/common/command.c:1486
#, c-format
msgid "%s too much arguments for \"%s\" command, ignoring arguments\n"
msgstr ""
"%s demasiados argumentos para el comando \"%s\", ignorando parámetros\n"
-#: src/common/command.c:1469
+#: src/common/command.c:1505
#, c-format
msgid "%s server \"%s\" not found for \"%s\" command\n"
msgstr "%s servidor \"%s\" no encontrado para el comando \"%s\"\n"
-#: src/common/command.c:1477
+#: src/common/command.c:1513
#, c-format
msgid ""
"%s you can not delete server \"%s\" because you are connected to. Try /"
@@ -2407,108 +2422,108 @@ msgstr ""
"%s usted no puede eliminar el servidor \"%s\" ya que está usted conectado a "
"él. Pruebe /disconnect %s antes.\n"
-#: src/common/command.c:1493 src/common/command.c:1634
+#: src/common/command.c:1529 src/common/command.c:1670
msgid "Server"
msgstr "Servidor"
-#: src/common/command.c:1496
+#: src/common/command.c:1532
msgid "has been deleted\n"
msgstr "ha sido eliminado\n"
-#: src/common/command.c:1511
+#: src/common/command.c:1547
#, c-format
msgid "%s missing parameters for \"%s\" command\n"
msgstr "%s faltan parámetros para el comando \"%s\"\n"
-#: src/common/command.c:1521
+#: src/common/command.c:1557
#, c-format
msgid "%s server \"%s\" already exists, can't create it!\n"
msgstr "%s el servidor \"%s\" ya existe, ¡no se puede crear!\n"
-#: src/common/command.c:1546 src/common/command.c:1574
-#: src/common/command.c:1587 src/common/command.c:1613
+#: src/common/command.c:1582 src/common/command.c:1610
+#: src/common/command.c:1623 src/common/command.c:1649
#, c-format
msgid "%s missing password for \"%s\" parameter\n"
msgstr "%s falta contraseña para el comando \"%s\"\n"
-#: src/common/command.c:1559
+#: src/common/command.c:1595
#, c-format
msgid "%s missing nick(s) for \"%s\" parameter\n"
msgstr "%s falta(n) usuario(s) para el parámetro \"%s\"\n"
-#: src/common/command.c:1600
+#: src/common/command.c:1636
#, c-format
msgid "%s missing command for \"%s\" parameter\n"
msgstr "%s falta comando para el parámetro \"%s\"\n"
-#: src/common/command.c:1637
+#: src/common/command.c:1673
msgid "created\n"
msgstr "creado\n"
-#: src/common/command.c:1643
+#: src/common/command.c:1679
#, c-format
msgid "%s unable to create server\n"
msgstr "%s no es posible crear el servidor\n"
-#: src/common/command.c:1698
+#: src/common/command.c:1734
msgid "(unknown)"
msgstr "(desconocido)"
-#: src/common/command.c:1721
+#: src/common/command.c:1757
msgid "(password hidden) "
msgstr "(contraseña oculta)"
-#: src/common/command.c:1785
+#: src/common/command.c:1821
#, c-format
msgid "%s server \"%s\" not found\n"
msgstr "%s servidor \"%s\" no encontrado\n"
-#: src/common/command.c:1816 src/common/command.c:1862
+#: src/common/command.c:1852 src/common/command.c:1898
#, c-format
msgid "%s config option \"%s\" not found\n"
msgstr "%s opción de configuración \"%s\" no encontrada\n"
-#: src/common/command.c:1821 src/common/command.c:1854
+#: src/common/command.c:1857 src/common/command.c:1890
#, c-format
msgid "%s incorrect value for option \"%s\"\n"
msgstr "%s valor incorrecto para la opción \"%s\"\n"
-#: src/common/command.c:1837
+#: src/common/command.c:1873
#, c-format
msgid "%s option \"%s\" can not be changed while WeeChat is running\n"
msgstr ""
"%s la opción \"%s\" no puede ser modificada mientras WeeChat esté en "
"ejecución\n"
-#: src/common/command.c:1935
+#: src/common/command.c:1971
#, c-format
msgid "No config option found with \"%s\"\n"
msgstr "Ninguna opción de configuración encontrada con \"%s\"\n"
-#: src/common/command.c:1938
+#: src/common/command.c:1974
msgid "No config option found\n"
msgstr "Ninguna opción de configuración encontrada\n"
-#: src/common/command.c:1944
+#: src/common/command.c:1980
#, c-format
msgid "config option(s) found with \"%s\"\n"
msgstr "opción/opciones de configuración encontrada(s) con \"%s\"\n"
-#: src/common/command.c:1947
+#: src/common/command.c:1983
msgid "config option(s) found\n"
msgstr "opción/opciones de configuración encontrada(s)\n"
-#: src/common/command.c:1967
+#: src/common/command.c:2003
#, c-format
msgid "%s alias or command \"%s\" not found\n"
msgstr "%s alias o comando \"%s\" no encontrado\n"
-#: src/common/command.c:1977
+#: src/common/command.c:2013
#, c-format
msgid "Alias \"%s\" removed\n"
msgstr "Alias \"%s\" eliminado\n"
-#: src/common/command.c:1997
+#: src/common/command.c:2033
msgid "Opened windows:\n"
msgstr "Ventanas abiertas:\n"
@@ -2534,7 +2549,7 @@ msgstr "**** Comienzo del log (registro) "
msgid "**** End of log "
msgstr "**** Fin del log "
-#: src/common/weechat.c:195
+#: src/common/weechat.c:185
#, c-format
msgid ""
"WeeChat configuration options (~/.weechat/weechat.rc):\n"
@@ -2543,47 +2558,47 @@ msgstr ""
"Opciones de configuración de WeeChat (~/.weechat/weechat.rc):\n"
"\n"
-#: src/common/weechat.c:208
+#: src/common/weechat.c:198
#, c-format
msgid " . type boolean (values: 'on' or 'off')\n"
msgstr " . tipo booleano (valores: 'on' u 'off')\n"
-#: src/common/weechat.c:209 src/common/weechat.c:232 src/common/weechat.c:238
-#: src/common/weechat.c:244
+#: src/common/weechat.c:199 src/common/weechat.c:222 src/common/weechat.c:228
+#: src/common/weechat.c:234
#, c-format
msgid " . default value: '%s'\n"
msgstr " .valor por defecto: '%s'\n"
-#: src/common/weechat.c:214
+#: src/common/weechat.c:204
#, c-format
msgid " . type integer (values: between %d and %d)\n"
msgstr " . tipo entero (valores: entre %d y %d)\n"
-#: src/common/weechat.c:217
+#: src/common/weechat.c:207
#, c-format
msgid " . default value: %d\n"
msgstr " . valor por defecto: %d\n"
-#: src/common/weechat.c:221
+#: src/common/weechat.c:211
#, c-format
msgid " . type string (values: "
msgstr " . tipo cadena (valores: "
-#: src/common/weechat.c:234 src/common/weechat.c:240 src/common/weechat.c:246
+#: src/common/weechat.c:224 src/common/weechat.c:230 src/common/weechat.c:236
msgid "empty"
msgstr "vacío"
-#: src/common/weechat.c:237
+#: src/common/weechat.c:227
#, c-format
msgid " . type color (Curses or Gtk color, look at WeeChat doc)\n"
msgstr " . tipo color (color Curses ó Gtk, ver la documentación de WeeChat)\n"
-#: src/common/weechat.c:243
+#: src/common/weechat.c:233
#, c-format
msgid " . type string (any string)\n"
msgstr " . tipo cadena (cualquier cadena)\n"
-#: src/common/weechat.c:249
+#: src/common/weechat.c:239
#, c-format
msgid ""
" . description: %s\n"
@@ -2592,7 +2607,7 @@ msgstr ""
" . descripción: %s\n"
"\n"
-#: src/common/weechat.c:255
+#: src/common/weechat.c:245
#, c-format
msgid ""
"Moreover, you can define aliases in [alias] section, by adding lines like:\n"
@@ -2600,7 +2615,7 @@ msgstr ""
"Además, usted puede definir alias en la sección [alias], añadiendo líneas "
"como:\n"
-#: src/common/weechat.c:257
+#: src/common/weechat.c:247
#, c-format
msgid ""
"where 'j' is alias name, and 'join' associated command.\n"
@@ -2609,57 +2624,57 @@ msgstr ""
"donde 'j' es el nombre del alias, y 'join' el comando asociado.\n"
"\n"
-#: src/common/weechat.c:303
+#: src/common/weechat.c:293
#, c-format
msgid "%s invalid syntax for IRC server ('%s'), ignored\n"
msgstr "%s sintaxis inválida para el servidor IRC ('%s'), ignorado\n"
-#: src/common/weechat.c:315
+#: src/common/weechat.c:305
#, c-format
msgid "%s unable to create server ('%s'), ignored\n"
msgstr "%s no es posible crear el servidor ('%s'), ignorado\n"
-#: src/common/weechat.c:324
+#: src/common/weechat.c:314
#, c-format
msgid "%s unknown parameter '%s', ignored\n"
msgstr "%s parámetro desconocido '%s', ignorado\n"
-#: src/common/weechat.c:344
+#: src/common/weechat.c:334
#, c-format
msgid "%s cannot create directory \"%s\"\n"
msgstr "%s no es posible crear el directorio \"%s\"\n"
-#: src/common/weechat.c:370
+#: src/common/weechat.c:360
#, c-format
msgid "%s unable to get HOME directory\n"
msgstr "%s no ha sido posible leer el directorio HOME\n"
-#: src/common/weechat.c:379
+#: src/common/weechat.c:369
#, c-format
msgid "%s not enough memory for home directory\n"
msgstr "%s no hay suficiente memoria para el directorio home\n"
-#: src/common/weechat.c:389
+#: src/common/weechat.c:379
#, c-format
msgid "%s unable to create ~/.weechat directory\n"
msgstr "%s no es posible crear el directorio ~/.weechat\n"
-#: src/common/weechat.c:441
+#: src/common/weechat.c:431
#, c-format
msgid "%s unable to create ~/.weechat/logs directory\n"
msgstr "%s no es posible crear el directorio ~/.weechat/logs\n"
-#: src/common/weechat.c:477
+#: src/common/weechat.c:467
#, c-format
msgid "%s unable to create/append to log file (~/.weechat/%s)"
msgstr "%s no es posible crear/añadir en el fichero de log (~/.weechat/%s)"
-#: src/common/weechat.c:500
+#: src/common/weechat.c:490
#, c-format
msgid "%sWelcome to "
msgstr "%sBienvenido a "
-#: src/common/weechat.c:513
+#: src/common/weechat.c:503
msgid "compiled on"
msgstr "compilado en"
diff --git a/weechat/po/fr.po b/weechat/po/fr.po
index 64208ef34..dfdd8e1b1 100644
--- a/weechat/po/fr.po
+++ b/weechat/po/fr.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.1.1-cvs\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2005-02-28 11:36+0100\n"
-"PO-Revision-Date: 2005-02-27 23:48+0100\n"
+"POT-Creation-Date: 2005-03-05 17:57+0100\n"
+"PO-Revision-Date: 2005-03-05 17:59+0100\n"
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"MIME-Version: 1.0\n"
@@ -1169,7 +1169,7 @@ msgstr "drapeau de mode inconnu"
msgid "can't change mode for other users"
msgstr "impossible de changer le mode pour les autres utilisateurs"
-#: src/irc/irc-display.c:154 src/common/command.c:804
+#: src/irc/irc-display.c:154 src/common/command.c:808
msgid "Server: "
msgstr "Serveur: "
@@ -1207,7 +1207,8 @@ msgid "%s: using local hostname \"%s\"\n"
msgstr "%s: utilisation du nom de machine local \"%s\"\n"
#: src/irc/irc-send.c:265 src/irc/irc-send.c:277 src/irc/irc-send.c:295
-#: src/irc/irc-send.c:775 src/irc/irc-send.c:849 src/common/command.c:1359
+#: src/irc/irc-send.c:775 src/irc/irc-send.c:849 src/common/command.c:1120
+#: src/common/command.c:1395
#, c-format
msgid "%s wrong argument count for \"%s\" command\n"
msgstr "%s nombre de paramètres erroné pour la commande \"%s\"\n"
@@ -2012,26 +2013,42 @@ msgid "servername: server name to disconnect"
msgstr "nom_serveur: nom du serveur pour se déconnecter"
#: src/common/command.c:68
+msgid "print debug messages"
+msgstr "affiche des messages de debuggage"
+
+#: src/common/command.c:69
+msgid "dump"
+msgstr "dump"
+
+#: src/common/command.c:70
+msgid ""
+"dump: save memory dump in WeeChat log file (same dump is written when "
+"WeeChat crashes)"
+msgstr ""
+"dump: affiche les variables mémoire WeeChat dans le fichier log (les mêmes "
+"messages sont affichés lorsque WeeChat plante)"
+
+#: src/common/command.c:72
msgid "display help about commands"
msgstr "afficher l'aide sur les commandes"
-#: src/common/command.c:69
+#: src/common/command.c:73
msgid "[command]"
msgstr "[commande]"
-#: src/common/command.c:69
+#: src/common/command.c:73
msgid "command: name of a WeeChat or IRC command"
msgstr "commande: nom d'une commande WeeChat ou IRC"
-#: src/common/command.c:71
+#: src/common/command.c:75
msgid "list/load/unload Perl scripts"
msgstr "liste/charge/décharge des scripts Perl"
-#: src/common/command.c:72
+#: src/common/command.c:76
msgid "[load filename] | [autoload] | [unload]"
msgstr "[load fichier] | [autoload] | [unload]"
-#: src/common/command.c:73
+#: src/common/command.c:77
msgid ""
"filename: Perl script (file) to load\n"
"Without argument, /perl command lists all loaded Perl scripts."
@@ -2039,11 +2056,11 @@ msgstr ""
"fichier: script Perl (fichier) à charger\n"
"Sans paramètre, la commande /perl liste tous les scripts Perl chargés."
-#: src/common/command.c:76
+#: src/common/command.c:80
msgid "list, add or remove servers"
msgstr "liste, ajoute ou retire des serveurs"
-#: src/common/command.c:77
+#: src/common/command.c:81
msgid ""
"[servername] | [servername hostname port [-auto | -noauto] [-pwd password] [-"
"nicks nick1 [nick2 [nick3]]] [-username username] [-realname realname] [-"
@@ -2054,7 +2071,7 @@ msgstr ""
"nom_utilisateur] [-realname nom_réel] [-command commande] [-autojoin canal[,"
"canal]] ] | [del nom_serveur]"
-#: src/common/command.c:82
+#: src/common/command.c:86
msgid ""
"servername: server name, for internal & display use\n"
"hostname: name or IP address of server\n"
@@ -2076,27 +2093,27 @@ msgstr ""
"nom_utilisateur: nom d'utilisateur\n"
"nom_réel: nom réel de l'utilisateur"
-#: src/common/command.c:92
+#: src/common/command.c:96
msgid "save config to disk"
msgstr "sauvegarder la configuration sur disque"
-#: src/common/command.c:93
+#: src/common/command.c:97
msgid "[file]"
msgstr "[fichier]"
-#: src/common/command.c:93
+#: src/common/command.c:97
msgid "file: filename for writing config"
msgstr "fichier: fichier pour sauvegarder la configuration"
-#: src/common/command.c:95
+#: src/common/command.c:99
msgid "set config parameters"
msgstr "modifier des paramètres de configuration"
-#: src/common/command.c:96
+#: src/common/command.c:100
msgid "[option[=value]]"
msgstr "[option[=valeur]]"
-#: src/common/command.c:96
+#: src/common/command.c:100
msgid ""
"option: name of an option\n"
"value: value for option"
@@ -2104,27 +2121,27 @@ msgstr ""
"option: nom d'une option\n"
"valeur: valeur pour l'option"
-#: src/common/command.c:98
+#: src/common/command.c:102
msgid "remove an alias"
msgstr "supprimer un alias"
-#: src/common/command.c:99
+#: src/common/command.c:103
msgid "alias_name"
msgstr "nom_alias"
-#: src/common/command.c:99
+#: src/common/command.c:103
msgid "alias_name: name of alias to remove"
msgstr "nom_alias: nom de l'alias à supprimer"
-#: src/common/command.c:101
+#: src/common/command.c:105
msgid "manage windows"
msgstr "gestion des fenêtres"
-#: src/common/command.c:102
+#: src/common/command.c:106
msgid "[list | splith | splitv | [merge [down | up | left | right | all]]]"
msgstr "[list | splith | splitv | [merge [down | up | left | right | all]]]"
-#: src/common/command.c:104
+#: src/common/command.c:108
msgid ""
" list list opened windows (no parameter implies this list)\n"
"splith split current window horizontally\n"
@@ -2136,29 +2153,29 @@ msgstr ""
"splitv éclate la fenêtre en deux verticalement\n"
" merge fusionne la fenêtre avec une autre"
-#: src/common/command.c:250
+#: src/common/command.c:254
#, c-format
msgid "%s alias or command \"%s\" already exists!\n"
msgstr "%s l'alias ou la commande \"%s\" existe déjà !\n"
-#: src/common/command.c:260
+#: src/common/command.c:264
#, c-format
msgid "%s alias cannot run another alias!\n"
msgstr "%s l'alias ne peux pas lancer un autre alias !\n"
-#: src/common/command.c:267
+#: src/common/command.c:271
#, c-format
msgid "%s target command \"%s\" does not exist!\n"
msgstr "%s la commande cible \"%s\" n'existe pas !\n"
-#: src/common/command.c:475
+#: src/common/command.c:479
#, c-format
msgid "%s wrong argument count for %s command \"%s\" (expected: %d arg%s)\n"
msgstr ""
"%s nombre de paramètres incorrect pour la commande %s \"%s\" (attendu: %d "
"paramètre%s)\n"
-#: src/common/command.c:487
+#: src/common/command.c:491
#, c-format
msgid ""
"%s wrong argument count for %s command \"%s\" (expected: between %d and %d "
@@ -2167,19 +2184,19 @@ msgstr ""
"%s nombre de paramètres incorrect pour la commande %s \"%s\" (attendu: entre "
"%d et %d paramètre%s)\n"
-#: src/common/command.c:509 src/common/command.c:579
+#: src/common/command.c:513 src/common/command.c:583
#, c-format
msgid "%s command \"%s\" failed\n"
msgstr "%s la commande \"%s\" a échoué\n"
-#: src/common/command.c:537
+#: src/common/command.c:541
#, c-format
msgid "%s wrong argument count for IRC command \"%s\" (expected: %d arg%s)\n"
msgstr ""
"%s nombre de paramètres incorrect pour la commande IRC \"%s\" (attendu: %d "
"paramètre%s)\n"
-#: src/common/command.c:549
+#: src/common/command.c:553
#, c-format
msgid ""
"%s wrong argument count for IRC command \"%s\" (expected: between %d and %d "
@@ -2188,176 +2205,176 @@ msgstr ""
"%s nombre de paramètres incorrect pour la commande IRC \"%s\" (attendu: "
"entre %d et %d paramètre%s)\n"
-#: src/common/command.c:564
+#: src/common/command.c:568
#, c-format
msgid "%s command \"%s\" needs a server connection!\n"
msgstr "%s la commande \"%s\" nécessite une connexion au serveur !\n"
-#: src/common/command.c:628
+#: src/common/command.c:632
#, c-format
msgid "%s unknown command \"%s\" (type /help for help)\n"
msgstr "%s commande \"%s\" inconnue (tapez /help pour l'aide)\n"
-#: src/common/command.c:703
+#: src/common/command.c:707
#, c-format
msgid "%s cannot find nick for sending message\n"
msgstr "%s impossible de trouver le pseudo pour envoyer le message\n"
-#: src/common/command.c:712
+#: src/common/command.c:716
msgid "This window is not a channel!\n"
msgstr "Cette fenêtre n'est pas un canal !\n"
-#: src/common/command.c:740 src/common/command.c:764 src/common/command.c:868
+#: src/common/command.c:744 src/common/command.c:768 src/common/command.c:872
#, c-format
msgid "%s missing arguments for \"%s\" command\n"
msgstr "%s paramètres manquants pour la commande \"%s\"\n"
-#: src/common/command.c:749
+#: src/common/command.c:753
#, c-format
msgid "Alias \"%s\" => \"%s\" created\n"
msgstr "Alias \"%s\" => \"%s\" créé\n"
-#: src/common/command.c:755
+#: src/common/command.c:759
#, c-format
msgid "Failed to create alias \"%s\" => \"%s\" (not enough memory)\n"
msgstr "Impossible de créer l'alias \"%s\" => \"%s\" (pas assez de mémoire)\n"
-#: src/common/command.c:775
+#: src/common/command.c:779
msgid "List of aliases:\n"
msgstr "Liste des alias:\n"
-#: src/common/command.c:787
+#: src/common/command.c:791
msgid "No alias defined.\n"
msgstr "Aucun alias défini.\n"
-#: src/common/command.c:810
+#: src/common/command.c:814
msgid "Channel: "
msgstr "Canal: "
-#: src/common/command.c:813 src/common/command.c:823
+#: src/common/command.c:817 src/common/command.c:827
msgid " (server: "
msgstr " (serveur: "
-#: src/common/command.c:820
+#: src/common/command.c:824
msgid "Private with: "
msgstr "Privé avec: "
-#: src/common/command.c:848
+#: src/common/command.c:852
msgid "Opened buffers:\n"
msgstr "Tampons ouverts:\n"
-#: src/common/command.c:891 src/common/command.c:1018
+#: src/common/command.c:895 src/common/command.c:1022
#, c-format
msgid "%s incorrect buffer number\n"
msgstr "%s numéro de buffer incorrect\n"
-#: src/common/command.c:905
+#: src/common/command.c:909
#, c-format
msgid "%s can not close the single buffer\n"
msgstr "%s impossible de fermer le tampon unique\n"
-#: src/common/command.c:915
+#: src/common/command.c:919
#, c-format
msgid "%s can not close server buffer while channels are opened\n"
msgstr ""
"%s impossible de fermer le tampon du serveur tant que des canaux sont "
"ouverts\n"
-#: src/common/command.c:954
+#: src/common/command.c:958
msgid "Notify levels: "
msgstr "Niveaux de notification: "
-#: src/common/command.c:981 src/common/command.c:991
+#: src/common/command.c:985 src/common/command.c:995
#, c-format
msgid "%s incorrect notify level (must be between 0 and 3)\n"
msgstr "%s niveau de notification incorrect (doit être entre 0 et 3)\n"
-#: src/common/command.c:1009
+#: src/common/command.c:1013
#, c-format
msgid "%s buffer \"%s\" not found for \"%s\" command\n"
msgstr "%s buffer \"%s\" non trouvé pour la commande \"%s\"\n"
-#: src/common/command.c:1043
+#: src/common/command.c:1047
#, c-format
msgid "unknown parameter \"%s\" for \"%s\" command\n"
msgstr "paramètre inconnu \"%s\" pour la commande \"%s\"\n"
-#: src/common/command.c:1073
+#: src/common/command.c:1077
#, c-format
msgid "%s already connected to server \"%s\"!\n"
msgstr "%s déjà connecté au serveur \"%s\" !\n"
-#: src/common/command.c:1081
+#: src/common/command.c:1085
#, c-format
msgid "%s currently connecting to server \"%s\"!\n"
msgstr "%s une connexion vers le serveur \"%s\" est en cours !\n"
-#: src/common/command.c:1099 src/common/command.c:1142
+#: src/common/command.c:1103 src/common/command.c:1178
#, c-format
msgid "%s server not found\n"
msgstr "%s serveur non trouvé\n"
-#: src/common/command.c:1126
+#: src/common/command.c:1133 src/common/command.c:1388
+#: src/common/command.c:2085 src/common/command.c:2097
+#, c-format
+msgid "%s unknown option for \"%s\" command\n"
+msgstr "%s option inconnue pour la commande \"%s\"\n"
+
+#: src/common/command.c:1162
#, c-format
msgid "%s not connected to server \"%s\"!\n"
msgstr "%s non connecté au serveur \"%s\" !\n"
-#: src/common/command.c:1134
+#: src/common/command.c:1170
msgid "Auto-reconnection is cancelled\n"
msgstr "La reconnexion automatique est annulée\n"
-#: src/common/command.c:1160
+#: src/common/command.c:1196
#, c-format
msgid "%s internal commands:\n"
msgstr "Commandes internes %s :\n"
-#: src/common/command.c:1169
+#: src/common/command.c:1205
msgid "IRC commands:\n"
msgstr "Commandes IRC :\n"
-#: src/common/command.c:1228
+#: src/common/command.c:1264
#, c-format
msgid "No help available, \"%s\" is an unknown command\n"
msgstr "Pas d'aide disponible, la commande \"%s\" est inconnue\n"
-#: src/common/command.c:1253
+#: src/common/command.c:1289
msgid "Registered Perl scripts:\n"
msgstr "Scripts Perl enregistrés :\n"
-#: src/common/command.c:1270 src/common/command.c:1292
-#: src/common/command.c:1314
+#: src/common/command.c:1306 src/common/command.c:1328
+#: src/common/command.c:1350
msgid " (none)\n"
msgstr " (aucun)\n"
-#: src/common/command.c:1275
+#: src/common/command.c:1311
msgid "Perl message handlers:\n"
msgstr "Fonctions Perl pour messages :\n"
-#: src/common/command.c:1284
+#: src/common/command.c:1320
#, c-format
msgid " IRC(%s) => Perl(%s)\n"
msgstr " IRC(%s) => Perl(%s)\n"
-#: src/common/command.c:1297
+#: src/common/command.c:1333
msgid "Perl command handlers:\n"
msgstr "Commandes Perl :\n"
-#: src/common/command.c:1306
+#: src/common/command.c:1342
#, c-format
msgid " Command /%s => Perl(%s)\n"
msgstr " Commande /%s => Perl(%s)\n"
-#: src/common/command.c:1326
+#: src/common/command.c:1362
msgid "Perl scripts unloaded\n"
msgstr "Scripts Perl déchargés\n"
-#: src/common/command.c:1352 src/common/command.c:2049
-#: src/common/command.c:2061
-#, c-format
-msgid "%s unknown option for \"%s\" command\n"
-msgstr "%s option inconnue pour la commande \"%s\"\n"
-
-#: src/common/command.c:1365
+#: src/common/command.c:1401
msgid ""
"WeeChat was build without Perl support.\n"
"Please rebuild WeeChat with \"--enable-perl\" option for ./configure script\n"
@@ -2366,31 +2383,31 @@ msgstr ""
"Merci de reconstruire WeeChat avec l'option \"--enable-perl\" pour le "
"script ./configure\n"
-#: src/common/command.c:1419
+#: src/common/command.c:1455
msgid "No server.\n"
msgstr "Pas de serveur.\n"
-#: src/common/command.c:1430
+#: src/common/command.c:1466
#, c-format
msgid "Server '%s' not found.\n"
msgstr "Serveur '%s' non trouvé.\n"
-#: src/common/command.c:1442
+#: src/common/command.c:1478
#, c-format
msgid "%s missing servername for \"%s\" command\n"
msgstr "%s il manque le nom du serveur pour la commande \"%s\"\n"
-#: src/common/command.c:1450
+#: src/common/command.c:1486
#, c-format
msgid "%s too much arguments for \"%s\" command, ignoring arguments\n"
msgstr "%s trop de paramètres pour la commande \"%s\", paramètres ignorés\n"
-#: src/common/command.c:1469
+#: src/common/command.c:1505
#, c-format
msgid "%s server \"%s\" not found for \"%s\" command\n"
msgstr "%s le serveur \"%s\" n'existe pas pour la commande \"%s\"\n"
-#: src/common/command.c:1477
+#: src/common/command.c:1513
#, c-format
msgid ""
"%s you can not delete server \"%s\" because you are connected to. Try /"
@@ -2399,106 +2416,106 @@ msgstr ""
"%s vous ne pouvez pas supprimer le server \"%s\" car vous êtes connecté "
"dessus. Essayez /disconnect %s avant.\n"
-#: src/common/command.c:1493 src/common/command.c:1634
+#: src/common/command.c:1529 src/common/command.c:1670
msgid "Server"
msgstr "Serveur"
-#: src/common/command.c:1496
+#: src/common/command.c:1532
msgid "has been deleted\n"
msgstr "a été supprimé\n"
-#: src/common/command.c:1511
+#: src/common/command.c:1547
#, c-format
msgid "%s missing parameters for \"%s\" command\n"
msgstr "%s paramètres manquants pour la commande \"%s\"\n"
-#: src/common/command.c:1521
+#: src/common/command.c:1557
#, c-format
msgid "%s server \"%s\" already exists, can't create it!\n"
msgstr "%s le serveur \"%s\" existe déjà, impossible de le créer !\n"
-#: src/common/command.c:1546 src/common/command.c:1574
-#: src/common/command.c:1587 src/common/command.c:1613
+#: src/common/command.c:1582 src/common/command.c:1610
+#: src/common/command.c:1623 src/common/command.c:1649
#, c-format
msgid "%s missing password for \"%s\" parameter\n"
msgstr "%s mot de passe manquant pour le paramètre \"%s\"\n"
-#: src/common/command.c:1559
+#: src/common/command.c:1595
#, c-format
msgid "%s missing nick(s) for \"%s\" parameter\n"
msgstr "%s pseudo(s) manquant(s) pour le paramètre \"%s\"\n"
-#: src/common/command.c:1600
+#: src/common/command.c:1636
#, c-format
msgid "%s missing command for \"%s\" parameter\n"
msgstr "%s commande manquante pour le paramètre \"%s\"\n"
-#: src/common/command.c:1637
+#: src/common/command.c:1673
msgid "created\n"
msgstr "créé\n"
-#: src/common/command.c:1643
+#: src/common/command.c:1679
#, c-format
msgid "%s unable to create server\n"
msgstr "%s impossible de créer le serveur\n"
-#: src/common/command.c:1698
+#: src/common/command.c:1734
msgid "(unknown)"
msgstr "(inconnu)"
-#: src/common/command.c:1721
+#: src/common/command.c:1757
msgid "(password hidden) "
msgstr "(mot de passe caché)"
-#: src/common/command.c:1785
+#: src/common/command.c:1821
#, c-format
msgid "%s server \"%s\" not found\n"
msgstr "%s serveur \"%s\" non trouvé\n"
-#: src/common/command.c:1816 src/common/command.c:1862
+#: src/common/command.c:1852 src/common/command.c:1898
#, c-format
msgid "%s config option \"%s\" not found\n"
msgstr "%s option de configuration \"%s\" non trouvée\n"
-#: src/common/command.c:1821 src/common/command.c:1854
+#: src/common/command.c:1857 src/common/command.c:1890
#, c-format
msgid "%s incorrect value for option \"%s\"\n"
msgstr "%s valeur incorrecte pour l'option \"%s\"\n"
-#: src/common/command.c:1837
+#: src/common/command.c:1873
#, c-format
msgid "%s option \"%s\" can not be changed while WeeChat is running\n"
msgstr "%s l'option \"%s\" ne peut pas être changée lorsque WeeChat tourne\n"
-#: src/common/command.c:1935
+#: src/common/command.c:1971
#, c-format
msgid "No config option found with \"%s\"\n"
msgstr "Aucune option de configuration trouvée avec \"%s\"\n"
-#: src/common/command.c:1938
+#: src/common/command.c:1974
msgid "No config option found\n"
msgstr "Aucune option de configuration trouvée\n"
-#: src/common/command.c:1944
+#: src/common/command.c:1980
#, c-format
msgid "config option(s) found with \"%s\"\n"
msgstr "option(s) de configuration trouvée(s) avec \"%s\"\n"
-#: src/common/command.c:1947
+#: src/common/command.c:1983
msgid "config option(s) found\n"
msgstr "option(s) de configuration trouvée(s)\n"
-#: src/common/command.c:1967
+#: src/common/command.c:2003
#, c-format
msgid "%s alias or command \"%s\" not found\n"
msgstr "%s alias ou commande \"%s\" non trouvé\n"
-#: src/common/command.c:1977
+#: src/common/command.c:2013
#, c-format
msgid "Alias \"%s\" removed\n"
msgstr "Alias \"%s\" supprimé\n"
-#: src/common/command.c:1997
+#: src/common/command.c:2033
msgid "Opened windows:\n"
msgstr "Fenêtres ouvertes:\n"
@@ -2523,7 +2540,7 @@ msgstr "**** Début du log "
msgid "**** End of log "
msgstr "**** Fin du log "
-#: src/common/weechat.c:195
+#: src/common/weechat.c:185
#, c-format
msgid ""
"WeeChat configuration options (~/.weechat/weechat.rc):\n"
@@ -2532,47 +2549,47 @@ msgstr ""
"Options de configuration de WeeChat (~/.weechat/weechat.rc):\n"
"\n"
-#: src/common/weechat.c:208
+#: src/common/weechat.c:198
#, c-format
msgid " . type boolean (values: 'on' or 'off')\n"
msgstr " . type booléen (valeurs: 'on' ou 'off')\n"
-#: src/common/weechat.c:209 src/common/weechat.c:232 src/common/weechat.c:238
-#: src/common/weechat.c:244
+#: src/common/weechat.c:199 src/common/weechat.c:222 src/common/weechat.c:228
+#: src/common/weechat.c:234
#, c-format
msgid " . default value: '%s'\n"
msgstr " . valeur par défaut: '%s'\n"
-#: src/common/weechat.c:214
+#: src/common/weechat.c:204
#, c-format
msgid " . type integer (values: between %d and %d)\n"
msgstr " . type entier (valeurs: entre %d et %d)\n"
-#: src/common/weechat.c:217
+#: src/common/weechat.c:207
#, c-format
msgid " . default value: %d\n"
msgstr " . valeur par défaut: %d\n"
-#: src/common/weechat.c:221
+#: src/common/weechat.c:211
#, c-format
msgid " . type string (values: "
msgstr " . type chaîne (valeurs: "
-#: src/common/weechat.c:234 src/common/weechat.c:240 src/common/weechat.c:246
+#: src/common/weechat.c:224 src/common/weechat.c:230 src/common/weechat.c:236
msgid "empty"
msgstr "vide"
-#: src/common/weechat.c:237
+#: src/common/weechat.c:227
#, c-format
msgid " . type color (Curses or Gtk color, look at WeeChat doc)\n"
msgstr " . type couleur (couleur Curses ou Gtk, voir la doc WeeChat)\n"
-#: src/common/weechat.c:243
+#: src/common/weechat.c:233
#, c-format
msgid " . type string (any string)\n"
msgstr " . type chaîne (toute chaîne)\n"
-#: src/common/weechat.c:249
+#: src/common/weechat.c:239
#, c-format
msgid ""
" . description: %s\n"
@@ -2581,7 +2598,7 @@ msgstr ""
" . description: %s\n"
"\n"
-#: src/common/weechat.c:255
+#: src/common/weechat.c:245
#, c-format
msgid ""
"Moreover, you can define aliases in [alias] section, by adding lines like:\n"
@@ -2589,7 +2606,7 @@ msgstr ""
"De plus, vous pouvez définir des alias dans la section [alias], en ajoutant "
"des lignes comme :\n"
-#: src/common/weechat.c:257
+#: src/common/weechat.c:247
#, c-format
msgid ""
"where 'j' is alias name, and 'join' associated command.\n"
@@ -2598,57 +2615,57 @@ msgstr ""
"où 'j' est le nom de l'alias, et 'join' la commande associée.\n"
"\n"
-#: src/common/weechat.c:303
+#: src/common/weechat.c:293
#, c-format
msgid "%s invalid syntax for IRC server ('%s'), ignored\n"
msgstr "%s syntaxe invalide pour le serveur IRC ('%s'), ignoré\n"
-#: src/common/weechat.c:315
+#: src/common/weechat.c:305
#, c-format
msgid "%s unable to create server ('%s'), ignored\n"
msgstr "%s impossible de créer le serveur ('%s'), ignoré\n"
-#: src/common/weechat.c:324
+#: src/common/weechat.c:314
#, c-format
msgid "%s unknown parameter '%s', ignored\n"
msgstr "%s paramètre inconnu '%s', ignoré\n"
-#: src/common/weechat.c:344
+#: src/common/weechat.c:334
#, c-format
msgid "%s cannot create directory \"%s\"\n"
msgstr "%s impossible de créer le répertoire \"%s\"\n"
-#: src/common/weechat.c:370
+#: src/common/weechat.c:360
#, c-format
msgid "%s unable to get HOME directory\n"
msgstr "%s impossible de lire le répertoire personnel\n"
-#: src/common/weechat.c:379
+#: src/common/weechat.c:369
#, c-format
msgid "%s not enough memory for home directory\n"
msgstr "%s pas assez de mémoire pour le répertoire personnel\n"
-#: src/common/weechat.c:389
+#: src/common/weechat.c:379
#, c-format
msgid "%s unable to create ~/.weechat directory\n"
msgstr "%s impossible de créer le répertoire ~/.weechat\n"
-#: src/common/weechat.c:441
+#: src/common/weechat.c:431
#, c-format
msgid "%s unable to create ~/.weechat/logs directory\n"
msgstr "%s impossible de créer le répertoire ~/.weechat/logs\n"
-#: src/common/weechat.c:477
+#: src/common/weechat.c:467
#, c-format
msgid "%s unable to create/append to log file (~/.weechat/%s)"
msgstr "%s impossible de créer/ajouter dans le fichier de log (~/.weechat/%s)"
-#: src/common/weechat.c:500
+#: src/common/weechat.c:490
#, c-format
msgid "%sWelcome to "
msgstr "%sBienvenue dans "
-#: src/common/weechat.c:513
+#: src/common/weechat.c:503
msgid "compiled on"
msgstr "compilé le"
diff --git a/weechat/po/weechat.pot b/weechat/po/weechat.pot
index fe495dd7c..a7eddb5b1 100644
--- a/weechat/po/weechat.pot
+++ b/weechat/po/weechat.pot
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
-"POT-Creation-Date: 2005-02-28 11:36+0100\n"
+"POT-Creation-Date: 2005-03-05 17:57+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"
@@ -1072,7 +1072,7 @@ msgstr ""
msgid "can't change mode for other users"
msgstr ""
-#: src/irc/irc-display.c:154 src/common/command.c:804
+#: src/irc/irc-display.c:154 src/common/command.c:808
msgid "Server: "
msgstr ""
@@ -1110,7 +1110,8 @@ msgid "%s: using local hostname \"%s\"\n"
msgstr ""
#: src/irc/irc-send.c:265 src/irc/irc-send.c:277 src/irc/irc-send.c:295
-#: src/irc/irc-send.c:775 src/irc/irc-send.c:849 src/common/command.c:1359
+#: src/irc/irc-send.c:775 src/irc/irc-send.c:849 src/common/command.c:1120
+#: src/common/command.c:1395
#, c-format
msgid "%s wrong argument count for \"%s\" command\n"
msgstr ""
@@ -1881,43 +1882,57 @@ msgid "servername: server name to disconnect"
msgstr ""
#: src/common/command.c:68
-msgid "display help about commands"
+msgid "print debug messages"
msgstr ""
#: src/common/command.c:69
+msgid "dump"
+msgstr ""
+
+#: src/common/command.c:70
+msgid ""
+"dump: save memory dump in WeeChat log file (same dump is written when "
+"WeeChat crashes)"
+msgstr ""
+
+#: src/common/command.c:72
+msgid "display help about commands"
+msgstr ""
+
+#: src/common/command.c:73
msgid "[command]"
msgstr ""
-#: src/common/command.c:69
+#: src/common/command.c:73
msgid "command: name of a WeeChat or IRC command"
msgstr ""
-#: src/common/command.c:71
+#: src/common/command.c:75
msgid "list/load/unload Perl scripts"
msgstr ""
-#: src/common/command.c:72
+#: src/common/command.c:76
msgid "[load filename] | [autoload] | [unload]"
msgstr ""
-#: src/common/command.c:73
+#: src/common/command.c:77
msgid ""
"filename: Perl script (file) to load\n"
"Without argument, /perl command lists all loaded Perl scripts."
msgstr ""
-#: src/common/command.c:76
+#: src/common/command.c:80
msgid "list, add or remove servers"
msgstr ""
-#: src/common/command.c:77
+#: src/common/command.c:81
msgid ""
"[servername] | [servername hostname port [-auto | -noauto] [-pwd password] [-"
"nicks nick1 [nick2 [nick3]]] [-username username] [-realname realname] [-"
"command command] [-autojoin channel[,channel]] ] | [del servername]"
msgstr ""
-#: src/common/command.c:82
+#: src/common/command.c:86
msgid ""
"servername: server name, for internal & display use\n"
"hostname: name or IP address of server\n"
@@ -1930,53 +1945,53 @@ msgid ""
"realname: real name of user"
msgstr ""
-#: src/common/command.c:92
+#: src/common/command.c:96
msgid "save config to disk"
msgstr ""
-#: src/common/command.c:93
+#: src/common/command.c:97
msgid "[file]"
msgstr ""
-#: src/common/command.c:93
+#: src/common/command.c:97
msgid "file: filename for writing config"
msgstr ""
-#: src/common/command.c:95
+#: src/common/command.c:99
msgid "set config parameters"
msgstr ""
-#: src/common/command.c:96
+#: src/common/command.c:100
msgid "[option[=value]]"
msgstr ""
-#: src/common/command.c:96
+#: src/common/command.c:100
msgid ""
"option: name of an option\n"
"value: value for option"
msgstr ""
-#: src/common/command.c:98
+#: src/common/command.c:102
msgid "remove an alias"
msgstr ""
-#: src/common/command.c:99
+#: src/common/command.c:103
msgid "alias_name"
msgstr ""
-#: src/common/command.c:99
+#: src/common/command.c:103
msgid "alias_name: name of alias to remove"
msgstr ""
-#: src/common/command.c:101
+#: src/common/command.c:105
msgid "manage windows"
msgstr ""
-#: src/common/command.c:102
+#: src/common/command.c:106
msgid "[list | splith | splitv | [merge [down | up | left | right | all]]]"
msgstr ""
-#: src/common/command.c:104
+#: src/common/command.c:108
msgid ""
" list list opened windows (no parameter implies this list)\n"
"splith split current window horizontally\n"
@@ -1984,354 +1999,354 @@ msgid ""
" merge merge window with another"
msgstr ""
-#: src/common/command.c:250
+#: src/common/command.c:254
#, c-format
msgid "%s alias or command \"%s\" already exists!\n"
msgstr ""
-#: src/common/command.c:260
+#: src/common/command.c:264
#, c-format
msgid "%s alias cannot run another alias!\n"
msgstr ""
-#: src/common/command.c:267
+#: src/common/command.c:271
#, c-format
msgid "%s target command \"%s\" does not exist!\n"
msgstr ""
-#: src/common/command.c:475
+#: src/common/command.c:479
#, c-format
msgid "%s wrong argument count for %s command \"%s\" (expected: %d arg%s)\n"
msgstr ""
-#: src/common/command.c:487
+#: src/common/command.c:491
#, c-format
msgid ""
"%s wrong argument count for %s command \"%s\" (expected: between %d and %d "
"arg%s)\n"
msgstr ""
-#: src/common/command.c:509 src/common/command.c:579
+#: src/common/command.c:513 src/common/command.c:583
#, c-format
msgid "%s command \"%s\" failed\n"
msgstr ""
-#: src/common/command.c:537
+#: src/common/command.c:541
#, c-format
msgid "%s wrong argument count for IRC command \"%s\" (expected: %d arg%s)\n"
msgstr ""
-#: src/common/command.c:549
+#: src/common/command.c:553
#, c-format
msgid ""
"%s wrong argument count for IRC command \"%s\" (expected: between %d and %d "
"arg%s)\n"
msgstr ""
-#: src/common/command.c:564
+#: src/common/command.c:568
#, c-format
msgid "%s command \"%s\" needs a server connection!\n"
msgstr ""
-#: src/common/command.c:628
+#: src/common/command.c:632
#, c-format
msgid "%s unknown command \"%s\" (type /help for help)\n"
msgstr ""
-#: src/common/command.c:703
+#: src/common/command.c:707
#, c-format
msgid "%s cannot find nick for sending message\n"
msgstr ""
-#: src/common/command.c:712
+#: src/common/command.c:716
msgid "This window is not a channel!\n"
msgstr ""
-#: src/common/command.c:740 src/common/command.c:764 src/common/command.c:868
+#: src/common/command.c:744 src/common/command.c:768 src/common/command.c:872
#, c-format
msgid "%s missing arguments for \"%s\" command\n"
msgstr ""
-#: src/common/command.c:749
+#: src/common/command.c:753
#, c-format
msgid "Alias \"%s\" => \"%s\" created\n"
msgstr ""
-#: src/common/command.c:755
+#: src/common/command.c:759
#, c-format
msgid "Failed to create alias \"%s\" => \"%s\" (not enough memory)\n"
msgstr ""
-#: src/common/command.c:775
+#: src/common/command.c:779
msgid "List of aliases:\n"
msgstr ""
-#: src/common/command.c:787
+#: src/common/command.c:791
msgid "No alias defined.\n"
msgstr ""
-#: src/common/command.c:810
+#: src/common/command.c:814
msgid "Channel: "
msgstr ""
-#: src/common/command.c:813 src/common/command.c:823
+#: src/common/command.c:817 src/common/command.c:827
msgid " (server: "
msgstr ""
-#: src/common/command.c:820
+#: src/common/command.c:824
msgid "Private with: "
msgstr ""
-#: src/common/command.c:848
+#: src/common/command.c:852
msgid "Opened buffers:\n"
msgstr ""
-#: src/common/command.c:891 src/common/command.c:1018
+#: src/common/command.c:895 src/common/command.c:1022
#, c-format
msgid "%s incorrect buffer number\n"
msgstr ""
-#: src/common/command.c:905
+#: src/common/command.c:909
#, c-format
msgid "%s can not close the single buffer\n"
msgstr ""
-#: src/common/command.c:915
+#: src/common/command.c:919
#, c-format
msgid "%s can not close server buffer while channels are opened\n"
msgstr ""
-#: src/common/command.c:954
+#: src/common/command.c:958
msgid "Notify levels: "
msgstr ""
-#: src/common/command.c:981 src/common/command.c:991
+#: src/common/command.c:985 src/common/command.c:995
#, c-format
msgid "%s incorrect notify level (must be between 0 and 3)\n"
msgstr ""
-#: src/common/command.c:1009
+#: src/common/command.c:1013
#, c-format
msgid "%s buffer \"%s\" not found for \"%s\" command\n"
msgstr ""
-#: src/common/command.c:1043
+#: src/common/command.c:1047
#, c-format
msgid "unknown parameter \"%s\" for \"%s\" command\n"
msgstr ""
-#: src/common/command.c:1073
+#: src/common/command.c:1077
#, c-format
msgid "%s already connected to server \"%s\"!\n"
msgstr ""
-#: src/common/command.c:1081
+#: src/common/command.c:1085
#, c-format
msgid "%s currently connecting to server \"%s\"!\n"
msgstr ""
-#: src/common/command.c:1099 src/common/command.c:1142
+#: src/common/command.c:1103 src/common/command.c:1178
#, c-format
msgid "%s server not found\n"
msgstr ""
-#: src/common/command.c:1126
+#: src/common/command.c:1133 src/common/command.c:1388
+#: src/common/command.c:2085 src/common/command.c:2097
+#, c-format
+msgid "%s unknown option for \"%s\" command\n"
+msgstr ""
+
+#: src/common/command.c:1162
#, c-format
msgid "%s not connected to server \"%s\"!\n"
msgstr ""
-#: src/common/command.c:1134
+#: src/common/command.c:1170
msgid "Auto-reconnection is cancelled\n"
msgstr ""
-#: src/common/command.c:1160
+#: src/common/command.c:1196
#, c-format
msgid "%s internal commands:\n"
msgstr ""
-#: src/common/command.c:1169
+#: src/common/command.c:1205
msgid "IRC commands:\n"
msgstr ""
-#: src/common/command.c:1228
+#: src/common/command.c:1264
#, c-format
msgid "No help available, \"%s\" is an unknown command\n"
msgstr ""
-#: src/common/command.c:1253
+#: src/common/command.c:1289
msgid "Registered Perl scripts:\n"
msgstr ""
-#: src/common/command.c:1270 src/common/command.c:1292
-#: src/common/command.c:1314
+#: src/common/command.c:1306 src/common/command.c:1328
+#: src/common/command.c:1350
msgid " (none)\n"
msgstr ""
-#: src/common/command.c:1275
+#: src/common/command.c:1311
msgid "Perl message handlers:\n"
msgstr ""
-#: src/common/command.c:1284
+#: src/common/command.c:1320
#, c-format
msgid " IRC(%s) => Perl(%s)\n"
msgstr ""
-#: src/common/command.c:1297
+#: src/common/command.c:1333
msgid "Perl command handlers:\n"
msgstr ""
-#: src/common/command.c:1306
+#: src/common/command.c:1342
#, c-format
msgid " Command /%s => Perl(%s)\n"
msgstr ""
-#: src/common/command.c:1326
+#: src/common/command.c:1362
msgid "Perl scripts unloaded\n"
msgstr ""
-#: src/common/command.c:1352 src/common/command.c:2049
-#: src/common/command.c:2061
-#, c-format
-msgid "%s unknown option for \"%s\" command\n"
-msgstr ""
-
-#: src/common/command.c:1365
+#: src/common/command.c:1401
msgid ""
"WeeChat was build without Perl support.\n"
"Please rebuild WeeChat with \"--enable-perl\" option for ./configure script\n"
msgstr ""
-#: src/common/command.c:1419
+#: src/common/command.c:1455
msgid "No server.\n"
msgstr ""
-#: src/common/command.c:1430
+#: src/common/command.c:1466
#, c-format
msgid "Server '%s' not found.\n"
msgstr ""
-#: src/common/command.c:1442
+#: src/common/command.c:1478
#, c-format
msgid "%s missing servername for \"%s\" command\n"
msgstr ""
-#: src/common/command.c:1450
+#: src/common/command.c:1486
#, c-format
msgid "%s too much arguments for \"%s\" command, ignoring arguments\n"
msgstr ""
-#: src/common/command.c:1469
+#: src/common/command.c:1505
#, c-format
msgid "%s server \"%s\" not found for \"%s\" command\n"
msgstr ""
-#: src/common/command.c:1477
+#: src/common/command.c:1513
#, c-format
msgid ""
"%s you can not delete server \"%s\" because you are connected to. Try /"
"disconnect %s before.\n"
msgstr ""
-#: src/common/command.c:1493 src/common/command.c:1634
+#: src/common/command.c:1529 src/common/command.c:1670
msgid "Server"
msgstr ""
-#: src/common/command.c:1496
+#: src/common/command.c:1532
msgid "has been deleted\n"
msgstr ""
-#: src/common/command.c:1511
+#: src/common/command.c:1547
#, c-format
msgid "%s missing parameters for \"%s\" command\n"
msgstr ""
-#: src/common/command.c:1521
+#: src/common/command.c:1557
#, c-format
msgid "%s server \"%s\" already exists, can't create it!\n"
msgstr ""
-#: src/common/command.c:1546 src/common/command.c:1574
-#: src/common/command.c:1587 src/common/command.c:1613
+#: src/common/command.c:1582 src/common/command.c:1610
+#: src/common/command.c:1623 src/common/command.c:1649
#, c-format
msgid "%s missing password for \"%s\" parameter\n"
msgstr ""
-#: src/common/command.c:1559
+#: src/common/command.c:1595
#, c-format
msgid "%s missing nick(s) for \"%s\" parameter\n"
msgstr ""
-#: src/common/command.c:1600
+#: src/common/command.c:1636
#, c-format
msgid "%s missing command for \"%s\" parameter\n"
msgstr ""
-#: src/common/command.c:1637
+#: src/common/command.c:1673
msgid "created\n"
msgstr ""
-#: src/common/command.c:1643
+#: src/common/command.c:1679
#, c-format
msgid "%s unable to create server\n"
msgstr ""
-#: src/common/command.c:1698
+#: src/common/command.c:1734
msgid "(unknown)"
msgstr ""
-#: src/common/command.c:1721
+#: src/common/command.c:1757
msgid "(password hidden) "
msgstr ""
-#: src/common/command.c:1785
+#: src/common/command.c:1821
#, c-format
msgid "%s server \"%s\" not found\n"
msgstr ""
-#: src/common/command.c:1816 src/common/command.c:1862
+#: src/common/command.c:1852 src/common/command.c:1898
#, c-format
msgid "%s config option \"%s\" not found\n"
msgstr ""
-#: src/common/command.c:1821 src/common/command.c:1854
+#: src/common/command.c:1857 src/common/command.c:1890
#, c-format
msgid "%s incorrect value for option \"%s\"\n"
msgstr ""
-#: src/common/command.c:1837
+#: src/common/command.c:1873
#, c-format
msgid "%s option \"%s\" can not be changed while WeeChat is running\n"
msgstr ""
-#: src/common/command.c:1935
+#: src/common/command.c:1971
#, c-format
msgid "No config option found with \"%s\"\n"
msgstr ""
-#: src/common/command.c:1938
+#: src/common/command.c:1974
msgid "No config option found\n"
msgstr ""
-#: src/common/command.c:1944
+#: src/common/command.c:1980
#, c-format
msgid "config option(s) found with \"%s\"\n"
msgstr ""
-#: src/common/command.c:1947
+#: src/common/command.c:1983
msgid "config option(s) found\n"
msgstr ""
-#: src/common/command.c:1967
+#: src/common/command.c:2003
#, c-format
msgid "%s alias or command \"%s\" not found\n"
msgstr ""
-#: src/common/command.c:1977
+#: src/common/command.c:2013
#, c-format
msgid "Alias \"%s\" removed\n"
msgstr ""
-#: src/common/command.c:1997
+#: src/common/command.c:2033
msgid "Opened windows:\n"
msgstr ""
@@ -2356,124 +2371,124 @@ msgstr ""
msgid "**** End of log "
msgstr ""
-#: src/common/weechat.c:195
+#: src/common/weechat.c:185
#, c-format
msgid ""
"WeeChat configuration options (~/.weechat/weechat.rc):\n"
"\n"
msgstr ""
-#: src/common/weechat.c:208
+#: src/common/weechat.c:198
#, c-format
msgid " . type boolean (values: 'on' or 'off')\n"
msgstr ""
-#: src/common/weechat.c:209 src/common/weechat.c:232 src/common/weechat.c:238
-#: src/common/weechat.c:244
+#: src/common/weechat.c:199 src/common/weechat.c:222 src/common/weechat.c:228
+#: src/common/weechat.c:234
#, c-format
msgid " . default value: '%s'\n"
msgstr ""
-#: src/common/weechat.c:214
+#: src/common/weechat.c:204
#, c-format
msgid " . type integer (values: between %d and %d)\n"
msgstr ""
-#: src/common/weechat.c:217
+#: src/common/weechat.c:207
#, c-format
msgid " . default value: %d\n"
msgstr ""
-#: src/common/weechat.c:221
+#: src/common/weechat.c:211
#, c-format
msgid " . type string (values: "
msgstr ""
-#: src/common/weechat.c:234 src/common/weechat.c:240 src/common/weechat.c:246
+#: src/common/weechat.c:224 src/common/weechat.c:230 src/common/weechat.c:236
msgid "empty"
msgstr ""
-#: src/common/weechat.c:237
+#: src/common/weechat.c:227
#, c-format
msgid " . type color (Curses or Gtk color, look at WeeChat doc)\n"
msgstr ""
-#: src/common/weechat.c:243
+#: src/common/weechat.c:233
#, c-format
msgid " . type string (any string)\n"
msgstr ""
-#: src/common/weechat.c:249
+#: src/common/weechat.c:239
#, c-format
msgid ""
" . description: %s\n"
"\n"
msgstr ""
-#: src/common/weechat.c:255
+#: src/common/weechat.c:245
#, c-format
msgid ""
"Moreover, you can define aliases in [alias] section, by adding lines like:\n"
msgstr ""
-#: src/common/weechat.c:257
+#: src/common/weechat.c:247
#, c-format
msgid ""
"where 'j' is alias name, and 'join' associated command.\n"
"\n"
msgstr ""
-#: src/common/weechat.c:303
+#: src/common/weechat.c:293
#, c-format
msgid "%s invalid syntax for IRC server ('%s'), ignored\n"
msgstr ""
-#: src/common/weechat.c:315
+#: src/common/weechat.c:305
#, c-format
msgid "%s unable to create server ('%s'), ignored\n"
msgstr ""
-#: src/common/weechat.c:324
+#: src/common/weechat.c:314
#, c-format
msgid "%s unknown parameter '%s', ignored\n"
msgstr ""
-#: src/common/weechat.c:344
+#: src/common/weechat.c:334
#, c-format
msgid "%s cannot create directory \"%s\"\n"
msgstr ""
-#: src/common/weechat.c:370
+#: src/common/weechat.c:360
#, c-format
msgid "%s unable to get HOME directory\n"
msgstr ""
-#: src/common/weechat.c:379
+#: src/common/weechat.c:369
#, c-format
msgid "%s not enough memory for home directory\n"
msgstr ""
-#: src/common/weechat.c:389
+#: src/common/weechat.c:379
#, c-format
msgid "%s unable to create ~/.weechat directory\n"
msgstr ""
-#: src/common/weechat.c:441
+#: src/common/weechat.c:431
#, c-format
msgid "%s unable to create ~/.weechat/logs directory\n"
msgstr ""
-#: src/common/weechat.c:477
+#: src/common/weechat.c:467
#, c-format
msgid "%s unable to create/append to log file (~/.weechat/%s)"
msgstr ""
-#: src/common/weechat.c:500
+#: src/common/weechat.c:490
#, c-format
msgid "%sWelcome to "
msgstr ""
-#: src/common/weechat.c:513
+#: src/common/weechat.c:503
msgid "compiled on"
msgstr ""
diff --git a/weechat/src/common/command.c b/weechat/src/common/command.c
index 4e6c65ab2..63c3f1146 100644
--- a/weechat/src/common/command.c
+++ b/weechat/src/common/command.c
@@ -65,6 +65,10 @@ t_weechat_command weechat_commands[] =
N_("[servername]"),
N_("servername: server name to disconnect"),
0, 1, weechat_cmd_disconnect, NULL },
+ { "debug", N_("print debug messages"),
+ N_("dump"),
+ N_("dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)"),
+ 1, 1, weechat_cmd_debug, NULL },
{ "help", N_("display help about commands"),
N_("[command]"), N_("command: name of a WeeChat or IRC command"),
0, 1, weechat_cmd_help, NULL },
@@ -1034,7 +1038,7 @@ weechat_cmd_clear (int argc, char **argv)
{
if (argc == 1)
{
- if (strcmp (argv[0], "-all") == 0)
+ if (strcasecmp (argv[0], "-all") == 0)
gui_buffer_clear_all ();
else
{
@@ -1103,6 +1107,38 @@ weechat_cmd_connect (int argc, char **argv)
}
/*
+ * weechat_cmd_debug: print debug messages
+ */
+
+int
+weechat_cmd_debug (int argc, char **argv)
+{
+ if (argc != 1)
+ {
+ irc_display_prefix (NULL, PREFIX_ERROR);
+ gui_printf (NULL,
+ _("%s wrong argument count for \"%s\" command\n"),
+ WEECHAT_ERROR, "debug");
+ return -1;
+ }
+
+ if (strcasecmp (argv[0], "dump") == 0)
+ {
+ wee_dump (0);
+ }
+ else
+ {
+ irc_display_prefix (NULL, PREFIX_ERROR);
+ gui_printf (NULL,
+ _("%s unknown option for \"%s\" command\n"),
+ WEECHAT_ERROR, "perl");
+ return -1;
+ }
+
+ return 0;
+}
+
+/*
* weechat_cmd_disconnect: disconnect from a server
*/
@@ -1316,9 +1352,9 @@ weechat_cmd_perl (int argc, char **argv)
break;
case 1:
- if (strcmp (argv[0], "autoload") == 0)
+ if (strcasecmp (argv[0], "autoload") == 0)
plugin_auto_load (PLUGIN_TYPE_PERL, "perl/autoload");
- if (strcmp (argv[0], "unload") == 0)
+ if (strcasecmp (argv[0], "unload") == 0)
{
/* unload all Perl scripts */
plugin_unload (PLUGIN_TYPE_PERL, NULL);
@@ -1327,7 +1363,7 @@ weechat_cmd_perl (int argc, char **argv)
}
break;
case 2:
- if (strcmp (argv[0], "load") == 0)
+ if (strcasecmp (argv[0], "load") == 0)
{
/* load Perl script */
if (strstr(argv[1], DIR_SEPARATOR))
diff --git a/weechat/src/common/command.h b/weechat/src/common/command.h
index 474f3c10c..635c26261 100644
--- a/weechat/src/common/command.h
+++ b/weechat/src/common/command.h
@@ -65,6 +65,7 @@ extern int weechat_cmd_alias (char *);
extern int weechat_cmd_buffer (int, char **);
extern int weechat_cmd_clear (int, char **);
extern int weechat_cmd_connect (int, char **);
+extern int weechat_cmd_debug (int, char **);
extern int weechat_cmd_disconnect (int, char **);
extern int weechat_cmd_help (int, char **);
extern int weechat_cmd_perl (int, char **);
diff --git a/weechat/src/common/completion.c b/weechat/src/common/completion.c
index 40996e46a..75be644a6 100644
--- a/weechat/src/common/completion.c
+++ b/weechat/src/common/completion.c
@@ -165,6 +165,16 @@ completion_build_list (t_completion *completion, void *channel)
return;
}
}
+ if (strcasecmp (completion->base_command, "debug") == 0)
+ {
+ if (completion->base_command_arg == 1)
+ weelist_add (&completion->completion_list,
+ &completion->last_completion,
+ "dump");
+ else
+ completion_stop (completion);
+ return;
+ }
if ((strcasecmp (completion->base_command, "help") == 0)
&& (completion->base_command_arg == 1))
{
diff --git a/weechat/src/common/weechat.c b/weechat/src/common/weechat.c
index 193c63d5d..0e6c4184e 100644
--- a/weechat/src/common/weechat.c
+++ b/weechat/src/common/weechat.c
@@ -62,9 +62,10 @@
#include "../plugins/plugins.h"
-int quit_weechat; /* = 1 if quit request from user... why ? :'( */
-char *weechat_home = NULL; /* WeeChat home dir. (example: /home/toto/.weechat) */
-FILE *weechat_log_file = NULL; /* WeeChat log file (~/.weechat/weechat.log) */
+int quit_weechat; /* = 1 if quit request from user... why ? :'( */
+int sigsegv = 0; /* SIGSEGV received? */
+char *weechat_home = NULL; /* WeeChat home dir. (example: /home/toto/.weechat) */
+FILE *weechat_log_file = NULL; /* WeeChat log file (~/.weechat/weechat.log) */
char *local_charset = NULL; /* local charset, for example: ISO-8859-1 */
@@ -72,14 +73,34 @@ int server_cmd_line; /* at least one server on WeeChat command line */
/*
- * my_sigint: SIGINT handler, do nothing (just ignore this signal)
- * Prevents user for exiting with Ctrl-C
+ * wee_log_printf: displays a message in WeeChat log (~/.weechat/weechat.log)
*/
void
-my_sigint ()
+wee_log_printf (char *message, ...)
{
- /* do nothing */
+ static char buffer[4096];
+ va_list argptr;
+ static time_t seconds;
+ struct tm *date_tmp;
+
+ if (!weechat_log_file)
+ return;
+
+ va_start (argptr, message);
+ vsnprintf (buffer, sizeof (buffer) - 1, message, argptr);
+ va_end (argptr);
+
+ seconds = time (NULL);
+ date_tmp = localtime (&seconds);
+ if (date_tmp)
+ fprintf (weechat_log_file, "[%04d-%02d-%02d %02d:%02d:%02d] %s",
+ date_tmp->tm_year + 1900, date_tmp->tm_mon + 1, date_tmp->tm_mday,
+ date_tmp->tm_hour, date_tmp->tm_min, date_tmp->tm_sec,
+ buffer);
+ else
+ fprintf (weechat_log_file, "%s", buffer);
+ fflush (weechat_log_file);
}
/*
@@ -154,37 +175,6 @@ long get_timeval_diff(struct timeval *tv1, struct timeval *tv2)
}
/*
- * wee_log_printf: displays a message in WeeChat log (~/.weechat/weechat.log)
- */
-
-void
-wee_log_printf (char *message, ...)
-{
- static char buffer[4096];
- va_list argptr;
- static time_t seconds;
- struct tm *date_tmp;
-
- if (!weechat_log_file)
- return;
-
- va_start (argptr, message);
- vsnprintf (buffer, sizeof (buffer) - 1, message, argptr);
- va_end (argptr);
-
- seconds = time (NULL);
- date_tmp = localtime (&seconds);
- if (date_tmp)
- fprintf (weechat_log_file, "[%04d-%02d-%02d %02d:%02d:%02d] %s",
- date_tmp->tm_year + 1900, date_tmp->tm_mon + 1, date_tmp->tm_mday,
- date_tmp->tm_hour, date_tmp->tm_min, date_tmp->tm_sec,
- buffer);
- else
- fprintf (weechat_log_file, "%s", buffer);
- fflush (weechat_log_file);
-}
-
-/*
* wee_display_config_options: display config options
*/
@@ -549,6 +539,120 @@ wee_shutdown (int return_code)
}
/*
+ * wee_dump writes dump to WeeChat log file
+ */
+
+void
+wee_dump (int crash)
+{
+ t_irc_server *ptr_server;
+ t_irc_channel *ptr_channel;
+ t_irc_nick *ptr_nick;
+ t_gui_window *ptr_window;
+ t_gui_buffer *ptr_buffer;
+
+ /* prevent reentrance */
+ if (sigsegv)
+ exit (EXIT_FAILURE);
+
+ if (crash)
+ {
+ sigsegv = 1;
+ wee_log_printf ("very bad, WeeChat is crashing (SIGSEGV received)...\n");
+ }
+
+ wee_log_printf ("\n");
+ if (crash)
+ {
+ wee_log_printf ("****** WeeChat CRASH DUMP ******\n");
+ wee_log_printf ("****** Please send this file to WeeChat developers ******\n");
+ wee_log_printf ("****** and explain when this crash happened ******\n");
+ }
+ else
+ {
+ wee_log_printf ("****** WeeChat dump request ******\n");
+ }
+
+ for (ptr_server = irc_servers; ptr_server; ptr_server = ptr_server->next_server)
+ {
+ wee_log_printf ("\n");
+ server_print_log (ptr_server);
+
+ for (ptr_channel = ptr_server->channels; ptr_channel;
+ ptr_channel = ptr_channel->next_channel)
+ {
+ wee_log_printf ("\n");
+ channel_print_log (ptr_channel);
+
+ for (ptr_nick = ptr_channel->nicks; ptr_nick;
+ ptr_nick = ptr_nick->next_nick)
+ {
+ wee_log_printf ("\n");
+ nick_print_log (ptr_nick);
+ }
+
+ }
+ }
+
+ wee_log_printf ("\n");
+ wee_log_printf ("[windows/buffers]\n");
+ wee_log_printf (" => windows:\n");
+ for (ptr_window = gui_windows; ptr_window; ptr_window = ptr_window->next_window)
+ {
+ wee_log_printf (" 0x%X\n", ptr_window);
+ }
+ wee_log_printf (" => buffers:\n");
+ for (ptr_buffer = gui_buffers; ptr_buffer; ptr_buffer = ptr_buffer->next_buffer)
+ {
+ wee_log_printf (" 0x%X\n", ptr_buffer);
+ }
+ wee_log_printf (" => current window = 0x%X\n", gui_current_window);
+
+ for (ptr_window = gui_windows; ptr_window; ptr_window = ptr_window->next_window)
+ {
+ wee_log_printf ("\n");
+ gui_window_print_log (ptr_window);
+ }
+
+ for (ptr_buffer = gui_buffers; ptr_buffer; ptr_buffer = ptr_buffer->next_buffer)
+ {
+ wee_log_printf ("\n");
+ gui_buffer_print_log (ptr_buffer);
+ }
+
+ wee_log_printf ("\n");
+ wee_log_printf ("****** End of dump ******\n");
+ wee_log_printf ("\n");
+}
+
+/*
+ * my_sigint: SIGINT handler, do nothing (just ignore this signal)
+ * Prevents user for exiting with Ctrl-C
+ */
+
+void
+my_sigint ()
+{
+ /* do nothing */
+}
+
+/*
+ * my_sigsegv: SIGSEGV handler: save crash log to ~/.weechat/weechat.log and exit
+ */
+
+void
+my_sigsegv ()
+{
+ wee_dump (1);
+ wee_gui_shutdown ();
+ fprintf (stderr, "\n");
+ fprintf (stderr, "*** Very bad! WeeChat has crashed (SIGSEGV received)\n");
+ fprintf (stderr, "*** Full crash dump was saved to ~/.weechat/weechat.log file\n");
+ fprintf (stderr, "*** Please send this file to WeeChat developers.\n\n");
+ wee_shutdown (EXIT_FAILURE);
+}
+
+/*
* main: WeeChat startup
*/
@@ -564,6 +668,7 @@ main (int argc, char *argv[])
local_charset = strdup (nl_langinfo (CODESET));
signal (SIGINT, my_sigint); /* ignore SIGINT signal */
+ signal (SIGSEGV, my_sigsegv); /* crash dump when SIGSEGV is received */
gui_pre_init (&argc, &argv); /* pre-initiliaze interface */
wee_init_vars (); /* initialize some variables */
wee_parse_args (argc, argv); /* parse command line args */
diff --git a/weechat/src/common/weechat.h b/weechat/src/common/weechat.h
index 34f72dc4b..6e60acedd 100644
--- a/weechat/src/common/weechat.h
+++ b/weechat/src/common/weechat.h
@@ -102,9 +102,10 @@ extern int quit_weechat;
extern char *weechat_home;
extern char *local_charset;
+extern void wee_log_printf (char *, ...);
+extern void wee_dump (int);
extern char *weechat_convert_encoding (char *, char *, char *);
extern long get_timeval_diff (struct timeval *, struct timeval *);
-extern void wee_log_printf (char *, ...);
extern void wee_shutdown (int);
#endif /* weechat.h */
diff --git a/weechat/src/gui/gui-common.c b/weechat/src/gui/gui-common.c
index 633d4acf1..5e8df43e6 100644
--- a/weechat/src/gui/gui-common.c
+++ b/weechat/src/gui/gui-common.c
@@ -817,3 +817,115 @@ gui_move_buffer_to_number (t_gui_window *window, int number)
gui_redraw_buffer (window->buffer);
}
+
+/*
+ * gui_window_print_log: print window infos in log (usually for crash dump)
+ */
+
+void
+gui_window_print_log (t_gui_window *window)
+{
+ wee_log_printf ("[window (addr:0x%X)]\n", window);
+ wee_log_printf (" win_x . . . . . . . : %d\n", window->win_x);
+ wee_log_printf (" win_y . . . . . . . : %d\n", window->win_y);
+ wee_log_printf (" win_width . . . . . : %d\n", window->win_width);
+ wee_log_printf (" win_height. . . . . : %d\n", window->win_height);
+ wee_log_printf (" win_chat_x. . . . . : %d\n", window->win_chat_x);
+ wee_log_printf (" win_chat_y. . . . . : %d\n", window->win_chat_y);
+ wee_log_printf (" win_chat_width. . . : %d\n", window->win_chat_width);
+ wee_log_printf (" win_chat_height . . : %d\n", window->win_chat_height);
+ wee_log_printf (" win_chat_cursor_x . : %d\n", window->win_chat_cursor_x);
+ wee_log_printf (" win_chat_cursor_y . : %d\n", window->win_chat_cursor_y);
+ wee_log_printf (" win_nick_x. . . . . : %d\n", window->win_nick_x);
+ wee_log_printf (" win_nick_y. . . . . : %d\n", window->win_nick_y);
+ wee_log_printf (" win_nick_width. . . : %d\n", window->win_nick_width);
+ wee_log_printf (" win_nick_height . . : %d\n", window->win_nick_height);
+ wee_log_printf (" win_title . . . . . : 0x%X\n", window->win_title);
+ wee_log_printf (" win_chat. . . . . . : 0x%X\n", window->win_chat);
+ wee_log_printf (" win_nick. . . . . . : 0x%X\n", window->win_nick);
+ wee_log_printf (" win_status. . . . . : 0x%X\n", window->win_status);
+ wee_log_printf (" win_infobar . . . . : 0x%X\n", window->win_infobar);
+ wee_log_printf (" win_input . . . . . : 0x%X\n", window->win_input);
+ wee_log_printf (" win_separator . . . : 0x%X\n", window->win_separator);
+ wee_log_printf (" textview_chat . . . : 0x%X\n", window->textview_chat);
+ wee_log_printf (" textbuffer_chat . . : 0x%X\n", window->textbuffer_chat);
+ wee_log_printf (" texttag_chat. . . . : 0x%X\n", window->texttag_chat);
+ wee_log_printf (" textview_nicklist . : 0x%X\n", window->textview_nicklist);
+ wee_log_printf (" textbuffer_nicklist : 0x%X\n", window->textbuffer_nicklist);
+ wee_log_printf (" dcc_first . . . . . : 0x%X\n", window->dcc_first);
+ wee_log_printf (" dcc_selected. . . . : 0x%X\n", window->dcc_selected);
+ wee_log_printf (" dcc_last_displayed. : 0x%X\n", window->dcc_last_displayed);
+ wee_log_printf (" buffer. . . . . . . : 0x%X\n", window->buffer);
+ wee_log_printf (" first_line_displayed: %d\n", window->first_line_displayed);
+ wee_log_printf (" sub_lines . . . . . : %d\n", window->sub_lines);
+ wee_log_printf (" prev_window . . . . : 0x%X\n", window->prev_window);
+ wee_log_printf (" next_window . . . . : 0x%X\n", window->next_window);
+
+}
+
+/*
+ * gui_buffer_print_log: print buffer infos in log (usually for crash dump)
+ */
+
+void
+gui_buffer_print_log (t_gui_buffer *buffer)
+{
+ t_gui_line *ptr_line;
+ t_gui_message *ptr_message;
+ int num;
+ char buf[4096];
+
+ wee_log_printf ("[buffer (addr:0x%X)]\n", buffer);
+ wee_log_printf (" num_displayed. . . . : %d\n", buffer->num_displayed);
+ wee_log_printf (" number . . . . . . . : %d\n", buffer->number);
+ wee_log_printf (" server . . . . . . . : 0x%X\n", buffer->server);
+ wee_log_printf (" channel. . . . . . . : 0x%X\n", buffer->channel);
+ wee_log_printf (" dcc. . . . . . . . . : %d\n", buffer->dcc);
+ wee_log_printf (" lines. . . . . . . . : 0x%X\n", buffer->lines);
+ wee_log_printf (" last_line. . . . . . : 0x%X\n", buffer->last_line);
+ wee_log_printf (" num_lines. . . . . . : %d\n", buffer->num_lines);
+ wee_log_printf (" line_complete. . . . : %d\n", buffer->line_complete);
+ wee_log_printf (" notify_level . . . . : %d\n", buffer->notify_level);
+ wee_log_printf (" log_filename . . . . : '%s'\n", buffer->log_filename);
+ wee_log_printf (" log_file . . . . . . : 0x%X\n", buffer->log_file);
+ wee_log_printf (" input_buffer . . . . : '%s'\n", buffer->input_buffer);
+ wee_log_printf (" input_buffer_alloc . : %d\n", buffer->input_buffer_alloc);
+ wee_log_printf (" input_buffer_size. . : %d\n", buffer->input_buffer_size);
+ wee_log_printf (" input_buffer_pos . . : %d\n", buffer->input_buffer_pos);
+ wee_log_printf (" input_buffer_1st_disp: %d\n", buffer->input_buffer_1st_display);
+ wee_log_printf (" history. . . . . . . : 0x%X\n", buffer->history);
+ wee_log_printf (" last_history . . . . : 0x%X\n", buffer->last_history);
+ wee_log_printf (" ptr_history. . . . . : 0x%X\n", buffer->ptr_history);
+ wee_log_printf (" prev_buffer. . . . . : 0x%X\n", buffer->prev_buffer);
+ wee_log_printf (" next_buffer. . . . . : 0x%X\n", buffer->next_buffer);
+ wee_log_printf ("\n");
+ wee_log_printf (" => last 100 lines:\n");
+
+ num = 0;
+ ptr_line = buffer->last_line;
+ while (ptr_line && (num < 100))
+ {
+ num++;
+ ptr_line = ptr_line->prev_line;
+ }
+ if (!ptr_line)
+ ptr_line = buffer->lines;
+ else
+ ptr_line = ptr_line->next_line;
+
+ while (ptr_line)
+ {
+ buf[0] = '\0';
+ for (ptr_message = ptr_line->messages; ptr_message;
+ ptr_message = ptr_message->next_message)
+ {
+ if (strlen (buf) + strlen (ptr_message->message) + 1 >= sizeof (buf))
+ break;
+ strcat (buf, ptr_message->message);
+ }
+ num--;
+ wee_log_printf (" line N-%05d: %s\n", num, buf);
+
+ ptr_line = ptr_line->next_line;
+ }
+}
diff --git a/weechat/src/gui/gui.h b/weechat/src/gui/gui.h
index 6885ecf3d..6af18fe70 100644
--- a/weechat/src/gui/gui.h
+++ b/weechat/src/gui/gui.h
@@ -277,6 +277,8 @@ extern void gui_move_next_word (t_gui_buffer *);
extern void gui_buffer_insert_string (t_gui_buffer *, char *, int);
extern t_gui_buffer *gui_switch_to_buffer_by_number (t_gui_window *, int);
extern void gui_move_buffer_to_number (t_gui_window *, int);
+extern void gui_window_print_log (t_gui_window *);
+extern void gui_buffer_print_log (t_gui_buffer *);
/* GUI dependant functions */
diff --git a/weechat/src/irc/irc-channel.c b/weechat/src/irc/irc-channel.c
index 10faf44b0..c2d2791fa 100644
--- a/weechat/src/irc/irc-channel.c
+++ b/weechat/src/irc/irc-channel.c
@@ -260,3 +260,25 @@ channel_remove_dcc (t_irc_dcc *ptr_dcc)
}
}
}
+
+/*
+ * channel_print_log: print channel infos in log (usually for crash dump)
+ */
+
+void
+channel_print_log (t_irc_channel *channel)
+{
+ wee_log_printf ("=> channel %s (addr:0x%X)]\n", channel->name, channel);
+ wee_log_printf (" type . . . . : %d\n", channel->type);
+ wee_log_printf (" dcc_chat . . : 0x%X\n", channel->dcc_chat);
+ wee_log_printf (" topic. . . . : '%s'\n", channel->topic);
+ wee_log_printf (" modes. . . . : '%s'\n", channel->modes);
+ wee_log_printf (" limit. . . . : %d\n", channel->limit);
+ wee_log_printf (" key. . . . . : '%s'\n", channel->key);
+ wee_log_printf (" checking_away: %d\n", channel->checking_away);
+ wee_log_printf (" nicks. . . . : 0x%X\n", channel->nicks);
+ wee_log_printf (" last_nick. . : 0x%X\n", channel->last_nick);
+ wee_log_printf (" buffer . . . : 0x%X\n", channel->buffer);
+ wee_log_printf (" prev_channel : 0x%X\n", channel->prev_channel);
+ wee_log_printf (" next_channel : 0x%X\n", channel->next_channel);
+}
diff --git a/weechat/src/irc/irc-nick.c b/weechat/src/irc/irc-nick.c
index 5228325ed..15ff04341 100644
--- a/weechat/src/irc/irc-nick.c
+++ b/weechat/src/irc/irc-nick.c
@@ -369,3 +369,22 @@ nick_set_away (t_irc_channel *channel, t_irc_nick *nick, int is_away)
gui_draw_buffer_nick (channel->buffer, 0);
}
}
+
+/*
+ * nick_print_log: print nick infos in log (usually for crash dump)
+ */
+
+void
+nick_print_log (t_irc_nick *nick)
+{
+ wee_log_printf ("=> nick %s (addr:0x%X)]\n", nick->nick, nick);
+ wee_log_printf (" is_chanowner . : %d\n", nick->is_chanowner);
+ wee_log_printf (" is_chanadmin . : %d\n", nick->is_chanadmin);
+ wee_log_printf (" is_op. . . . . : %d\n", nick->is_op);
+ wee_log_printf (" is_halfop. . . : %d\n", nick->is_halfop);
+ wee_log_printf (" has_voice. . . : %d\n", nick->has_voice);
+ wee_log_printf (" is_away. . . . : %d\n", nick->is_away);
+ wee_log_printf (" color. . . . . : %d\n", nick->color);
+ wee_log_printf (" prev_nick. . . : 0x%X\n", nick->prev_nick);
+ wee_log_printf (" next_nick. . . : 0x%X\n", nick->next_nick);
+}
diff --git a/weechat/src/irc/irc-server.c b/weechat/src/irc/irc-server.c
index ce166aa5a..18a66595b 100644
--- a/weechat/src/irc/irc-server.c
+++ b/weechat/src/irc/irc-server.c
@@ -1117,3 +1117,51 @@ server_set_away (t_irc_server *server, char *nick, int is_away)
}
}
}
+
+/*
+ * server_print_log: print server infos in log (usually for crash dump)
+ */
+
+void
+server_print_log (t_irc_server *server)
+{
+ wee_log_printf ("[server %s (addr:0x%X)]\n", server->name, server);
+ wee_log_printf (" autoconnect . . . . : %d\n", server->autoconnect);
+ wee_log_printf (" autoreconnect . . . : %d\n", server->autoreconnect);
+ wee_log_printf (" autoreconnect_delay : %d\n", server->autoreconnect_delay);
+ wee_log_printf (" command_line. . . . : %d\n", server->command_line);
+ wee_log_printf (" address . . . . . . : '%s'\n", server->address);
+ wee_log_printf (" port. . . . . . . . : %d\n", server->port);
+ wee_log_printf (" password. . . . . . : '%s'\n",
+ (server->password && server->password[0]) ? "(hidden)" : server->password);
+ wee_log_printf (" nick1 . . . . . . . : '%s'\n", server->nick1);
+ wee_log_printf (" nick2 . . . . . . . : '%s'\n", server->nick2);
+ wee_log_printf (" nick3 . . . . . . . : '%s'\n", server->nick3);
+ wee_log_printf (" username. . . . . . : '%s'\n", server->username);
+ wee_log_printf (" realname. . . . . . : '%s'\n", server->realname);
+ wee_log_printf (" command . . . . . . : '%s'\n",
+ (server->command && server->command[0]) ? "(hidden)" : server->command);
+ wee_log_printf (" command_delay . . . : %d\n", server->command_delay);
+ wee_log_printf (" autojoin. . . . . . : '%s'\n", server->autojoin);
+ wee_log_printf (" autorejoin. . . . . : %d\n", server->autorejoin);
+ wee_log_printf (" child_pid . . . . . : %d\n", server->child_pid);
+ wee_log_printf (" child_read . . . . : %d\n", server->child_read);
+ wee_log_printf (" child_write . . . . : %d\n", server->child_write);
+ wee_log_printf (" sock. . . . . . . . : %d\n", server->sock);
+ wee_log_printf (" is_connected. . . . : %d\n", server->is_connected);
+ wee_log_printf (" unterminated_message: '%s'\n", server->unterminated_message);
+ wee_log_printf (" nick. . . . . . . . : '%s'\n", server->nick);
+ wee_log_printf (" reconnect_start . . : %ld\n", server->reconnect_start);
+ wee_log_printf (" reconnect_join. . . : %d\n", server->reconnect_join);
+ wee_log_printf (" is_away . . . . . . : %d\n", server->is_away);
+ wee_log_printf (" away_time . . . . . : %ld\n", server->away_time);
+ wee_log_printf (" lag . . . . . . . . : %d\n", server->lag);
+ wee_log_printf (" lag_check_time. . . : tv_sec:%d, tv_usec:%d\n",
+ server->lag_check_time.tv_sec, server->lag_check_time.tv_usec);
+ wee_log_printf (" lag_next_check. . . : %ld\n", server->lag_next_check);
+ wee_log_printf (" buffer. . . . . . . : 0x%X\n", server->buffer);
+ wee_log_printf (" channels. . . . . . : 0x%X\n", server->channels);
+ wee_log_printf (" last_channel. . . . : 0x%X\n", server->last_channel);
+ wee_log_printf (" prev_server . . . . : 0x%X\n", server->prev_server);
+ wee_log_printf (" next_server . . . . : 0x%X\n", server->next_server);
+}
diff --git a/weechat/src/irc/irc.h b/weechat/src/irc/irc.h
index 45c26daae..dd01de6e0 100644
--- a/weechat/src/irc/irc.h
+++ b/weechat/src/irc/irc.h
@@ -261,6 +261,7 @@ extern int server_name_already_exists (char *);
extern void server_remove_away ();
extern void server_check_away ();
extern void server_set_away (t_irc_server *, char *, int);
+extern void server_print_log (t_irc_server *);
/* channel functions (irc-channel.c) */
@@ -274,6 +275,7 @@ extern void channel_check_away (t_irc_server *, t_irc_channel *);
extern void channel_set_away (t_irc_channel *, char *, int);
extern int channel_create_dcc (t_irc_dcc *);
extern void channel_remove_dcc (t_irc_dcc *);
+extern void channel_print_log (t_irc_channel *);
/* nick functions (irc-nick.c) */
@@ -286,6 +288,7 @@ extern t_irc_nick *nick_search (t_irc_channel *, char *);
extern void nick_count (t_irc_channel *, int *, int *, int *, int *, int *);
extern int nick_get_max_length (t_irc_channel *);
extern void nick_set_away (t_irc_channel *, t_irc_nick *, int);
+extern void nick_print_log (t_irc_nick *);
/* DCC functions (irc-dcc.c) */