1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-15 15:44:47 +02:00

Compare commits

...

399 Commits

Author SHA1 Message Date
Sebastien Helleu d486a0223d Version 0.2.6.3 2009-06-13 13:25:47 +02:00
Emmanuel Bouthenot 707749957a Change the way to detect gnutls (using pkg-config instead of libgnutls-config) 2009-06-07 22:15:16 +02:00
Sebastien Helleu f950700a34 Update po files for version 0.2.6.2 2009-04-18 15:28:11 +02:00
Sebastien Helleu ee4d039c42 Update RPM spec file for version 0.2.6.2 2009-04-18 15:25:39 +02:00
Sebastien Helleu 70a970f8ed Version 0.2.6.2 2009-04-18 15:23:00 +02:00
Sebastien Helleu 50a62179d4 Fix bug with charset decoding (for example with iso2022jp) 2009-04-18 14:49:26 +02:00
Sebastien Helleu b01bc3eb21 Version 0.2.6.1 2009-03-14 17:06:55 +01:00
Sebastien Helleu d44762aa43 Fix crash with some special chars in IRC messages (bug #25862) 2009-03-14 17:06:03 +01:00
Sebastien Helleu c056a03871 Version 0.2.6 2007-09-06 08:24:31 +00:00
Sebastien Helleu 61ee836891 Updated russian translations 2007-09-05 16:21:28 +00:00
Sebastien Helleu 33c9ee86af Updated ChangeLog 2007-09-05 15:50:23 +00:00
Sebastien Helleu 8c5e618c88 Fixed bug with log of plugin messages (option log_plugin_msg) 2007-09-05 14:26:57 +00:00
Jiri Golembiovsky c0255add37 Updated czech translations 2007-09-04 22:17:10 +00:00
Sebastien Helleu 1946b4cacc Fixed ChangeLog message 2007-09-02 16:42:10 +00:00
Sebastien Helleu 9d69720b26 Added new option "deloutq" to /server command to flush all servers messages out queues (task #7221) 2007-09-02 16:24:18 +00:00
Sebastien Helleu 68fd773730 Fixed display bug with some special chars in messages (some words were truncated on screen) (bug #20944) 2007-09-02 15:34:29 +00:00
Sebastien Helleu dd0b1701e3 Fixed paste detection: does not count empty lines (bug #20953) 2007-09-02 12:54:54 +00:00
Sebastien Helleu 72d9c51ab0 Changed order of compilation for source directories with cmake 2007-08-31 13:28:05 +00:00
Sebastien Helleu 5218a359af Removed compilation warning when plugins are not compiled 2007-08-31 13:27:07 +00:00
Sebastien Helleu 88a6c491a2 Removed compilation warning when iconv is not found 2007-08-31 13:26:51 +00:00
Sebastien Helleu edb21c362a Fixed UTF-8 bug with color encoding/decoding 2007-08-31 11:24:24 +00:00
Sebastien Helleu f523d2b0a5 Added "/debug buffer" command to see raw buffer content 2007-08-31 11:21:24 +00:00
Sebastien Helleu e05be4e2b3 Fixed crash when searching text in buffer with ctrl-R (bug #20938) 2007-08-30 14:32:31 +00:00
Jiri Golembiovsky 12fcca4c31 Updated czech translations 2007-08-29 18:16:15 +00:00
Sebastien Helleu 882b72cd0c Added string length limit for setup file options 2007-08-29 12:53:35 +00:00
Sebastien Helleu ebae0cb7d5 Fixed typo in german and english doc 2007-08-29 12:46:19 +00:00
Sebastien Helleu 7f1335c6f0 Fixed bug with flock() when home is on NFS filesystem (bug #20913) 2007-08-27 13:11:25 +00:00
Sebastien Helleu b0490eb249 Fixed typo in /help server 2007-08-27 09:55:38 +00:00
Sebastien Helleu c4710cb22b Added weeter.pl script 2007-08-27 09:48:46 +00:00
Sebastien Helleu ca814fdb3f Updated growl-notify.pl script 2007-08-27 09:41:39 +00:00
Sebastien Helleu 54b74ed1e1 Added growl-notify.pl script 2007-08-27 09:41:19 +00:00
Sebastien Helleu 73d9515f5c Added option to align text of messages (except first lines) (task #7246) 2007-08-27 08:22:41 +00:00
Sebastien Helleu 57282055c3 Fixed typo in /help server 2007-08-27 07:32:27 +00:00
Sebastien Helleu 7863d4cece Fixed user modes in nicklist when ban and nick mode are received in the same MODE message (bug #20870) 2007-08-23 08:26:15 +00:00
Sebastien Helleu 76afa6d2b5 Fixed IRC message 333: silently ignore message if error when parsing it 2007-08-21 15:45:26 +00:00
Sebastien Helleu 5245ee6b14 Updated doc 2007-08-20 08:46:20 +00:00
Sebastien Helleu 69bd50d74c Fixed server option "command_delay": does not freeze WeeChat any more 2007-08-20 08:37:31 +00:00
Julien Louis fb8bae3c78 Add Support for gtk2 interface with cmake build system 2007-08-18 17:17:54 +00:00
Sebastien Helleu 0c0e511079 Code cleanup for paste detection 2007-08-18 08:52:12 +00:00
Julien Louis 07d9deaf95 Add uninstall and dist targets to the cmake build system. 2007-08-18 08:27:32 +00:00
Sebastien Helleu 4908e196ad Fixed problem with input of UTF-8 chars in last cvs 2007-08-17 12:39:55 +00:00
Sebastien Helleu dc92ee389c Added paste detection, new options look_paste_max_lines and col_input_actions (task #5442) 2007-08-17 09:09:09 +00:00
Sebastien Helleu 30c3fa9d98 Code cleanup: renamed some constants and variables (prefix added) 2007-08-16 13:54:15 +00:00
Sebastien Helleu 0c8867c9e3 Fixed parsing of command "353" when prefixes were not received from server 2007-08-14 14:42:10 +00:00
Sebastien Helleu 57ceaba3d1 Updated FIFO sample script in doc 2007-08-13 16:05:44 +00:00
Sebastien Helleu aed84560f8 Fixed bug with highlight and UTF-8 chars around word (bug #20753) 2007-08-12 09:37:43 +00:00
Sebastien Helleu 1108ef217f Updated swedish quickstart guide 2007-08-10 14:51:03 +00:00
Sebastien Helleu f827677ba9 Upgraded script licence to GPLv3 2007-08-10 14:38:53 +00:00
Sebastien Helleu 8011a2534f Added layout.pl script 2007-08-10 12:44:35 +00:00
Sebastien Helleu e4de086728 Updated FAQ 2007-08-10 11:02:03 +00:00
Sebastien Helleu 7c6c2e8e84 Updated FAQ 2007-08-10 10:46:38 +00:00
Sebastien Helleu 3da3c0c96e Added Makefile.am for swedish doc 2007-08-09 13:18:22 +00:00
Sebastien Helleu c1c9dd2da8 Added swedish quickstart guide 2007-08-09 13:11:00 +00:00
Sebastien Helleu ec78674d4e Added support of channel mode +u (channel user) (bug #20717) 2007-08-09 09:35:17 +00:00
Sebastien Helleu c246d44762 Fixed /server help message 2007-08-08 14:27:02 +00:00
Sebastien Helleu 09ddfcd860 Improved /connect command to connect to a host by creating a temporary server, added option to /server to create temporary server (task #7095) 2007-08-08 14:08:06 +00:00
Sebastien Helleu 028d38b44e Allow clear of multiple selected buffers with /clear (patch #6112) 2007-08-08 09:07:19 +00:00
Sebastien Helleu f68a2cbfcd Added "copy" and "rename" options to /server command 2007-08-08 08:19:04 +00:00
Sebastien Helleu 3c10d2205e Moved charset plugin section in doc 2007-08-06 09:53:40 +00:00
Sebastien Helleu 362866fdf2 Added key for setting unread marker on all buffers (default: ctrl-S + ctrl-U) (task 7180) 2007-08-06 09:30:22 +00:00
Sebastien Helleu d150376c54 Added channel completion to /join command 2007-08-02 09:52:12 +00:00
Sebastien Helleu 9d3e31e165 Fixed nick prefix display on servers that doesn't support all prefixes (bug #20025) 2007-08-01 10:44:51 +00:00
Sebastien Helleu efd511dea4 Fixed terminal encoding detection when NLS is disabled (bug #20646) 2007-08-01 09:59:00 +00:00
Sebastien Helleu 0904d9afaf Fixed crash when sending data to channel or pv on disconnected server (bug #20524) 2007-07-18 23:26:23 +00:00
Sebastien Helleu 2da039222d Added pv count in /server output 2007-07-18 16:50:56 +00:00
Sebastien Helleu 271bd21802 Improved command /server ant its output, added plural form in PO files 2007-07-18 16:35:12 +00:00
Sebastien Helleu bd0b7957a3 Added 3 default new keys: ctrl-B (left), ctrl-F (right), ctrl-D (delete) 2007-07-18 13:11:58 +00:00
Sebastien Helleu bd2ab776fe Added key Alt-J + Alt-P in doc 2007-07-18 12:52:53 +00:00
Sebastien Helleu 2c3fad454c Added "buffer_move" event handler to plugins API (task #6708) 2007-07-18 12:02:40 +00:00
Sebastien Helleu b1a99c5e6f Updated some messages in doc 2007-07-18 11:58:49 +00:00
Sebastien Helleu 3b48025071 Added key function "jump_previous_buffer" to jump to buffer previously displayed (new key: alt-J + alt-P) (task #7085) 2007-07-15 18:06:56 +00:00
Sebastien Helleu feec343ffb Added "-nojoin" option for /connect and /reconnect commands (task #7074), added "%*" to completion template (repeat last completion). 2007-07-13 15:38:26 +00:00
Sebastien Helleu ddc10d0164 Added new question in FAQ about highlights 2007-07-13 13:49:54 +00:00
Sebastien Helleu 5bf2c326f2 Added new keys for color (^Cb, ^Cc, ..) in doc 2007-07-12 15:59:12 +00:00
Sebastien Helleu 241f70f869 Fixed bugs with IRC color in messages, now color codes are inserted in command line with ^Cc,^Cb,.. instead of %C,%B,.. (bug #20222, task #7060) 2007-07-12 15:00:45 +00:00
Sebastien Helleu 9d5ef17bd6 Fixed bug with smart nick completion (last speakers first) when a nick is changed 2007-07-09 09:14:51 +00:00
Sebastien Helleu 825a9cfdf6 Fixed charset bug with channel names in status bar (bug #20400) 2007-07-08 11:42:38 +00:00
Sebastien Helleu fc2693c8e1 Added "scroll" option to /buffer command 2007-07-05 16:44:42 +00:00
Sebastien Helleu 0bbe747f78 Added small hack to make weechat server connection ok with Cygwin. Connection may block under Cygwin, waiting for better solution. 2007-07-03 16:35:20 +00:00
Sebastien Helleu feedeb25f6 Removed unused variable 2007-07-03 14:45:55 +00:00
Sebastien Helleu f1a39ce7d7 Replaced GPL 2 license by GPL 3 2007-07-02 12:25:13 +00:00
Sebastien Helleu 585681e5a0 Down key now saves input to history and clears input line (task #7049) 2007-07-01 11:20:34 +00:00
Sebastien Helleu cd3599e6db Removed tests on binary when using /upgrade 2007-06-12 13:42:33 +00:00
Sebastien Helleu bbe20b9b30 Fixed log file when channel name contains "/" (bug #20072) 2007-06-12 13:02:19 +00:00
Sebastien Helleu 00c4e36357 Command /away allowed when not connected to server (internally stored and AWAY command is sent when connecting to server) (task #7003) 2007-06-12 10:17:11 +00:00
Sebastien Helleu d3d4bcaf2b Version 0.2.6-cvs (for cmake build) 2007-06-12 07:36:52 +00:00
Julien Louis 8cdad47de8 Search for Dl library if we do not disable plugins 2007-06-12 06:36:35 +00:00
Julien Louis a8017fe06c Fix Gettext detection and code cleanup. 2007-06-11 21:36:40 +00:00
Julien Louis 4297b55bf2 Explicitly link against libdl 2007-06-11 20:49:10 +00:00
Julien Louis 83db899ce7 re-introduce ELSEIF check since it breaks libintl check on other plateforms. 2007-06-11 19:24:02 +00:00
Julien Louis 894cda91c9 check for dgettext function in libintl on non openbsd platforms 2007-06-11 18:25:20 +00:00
Julien Louis 47ce432199 Fix Typo in FindGettext.cmake 2007-06-11 18:02:53 +00:00
Julien Louis c9625e1f58 Link weechat-curses against libutf8 on OpenBSD plateform 2007-06-11 17:47:57 +00:00
Julien Louis d604e222ea Fix libintl detection on openbsd 2007-06-11 17:47:47 +00:00
Julien Louis fb34430076 Add a check for utf8/wchar.h header on OpenBSD plateform
and remove commented check
2007-06-11 17:47:28 +00:00
Julien Louis 636dd48a7b The lua library on openbsd is named liblua so we check now for liblua 2007-06-11 17:46:49 +00:00
Sebastien Helleu c1c7fbc156 Updated doc 2007-06-11 13:49:20 +00:00
Sebastien Helleu 3799b83107 Added argument for /upgrade command (path to binary), check that binary file is found and has execution permissions before upgrading 2007-06-11 13:46:50 +00:00
Sebastien Helleu b80c53e87d Fixed bug with /topic when channel not open and topic not defined (bug #20141) 2007-06-11 06:46:53 +00:00
Sebastien Helleu 299d37a342 Added hotlist sort with new option "look_hotlist_sort" (task #5870) 2007-06-08 16:04:50 +00:00
Sebastien Helleu 6971faba65 Version 0.2.6-cvs 2007-06-07 16:12:15 +00:00
Sebastien Helleu dfea9b208c Version 0.2.5 2007-06-07 15:13:15 +00:00
Sebastien Helleu 263f15cf2e Fixed french XML files for doc 2007-06-07 14:32:46 +00:00
Sebastien Helleu 36f0aab4d4 Fixed QUOTE command: now allowed when socket is ok (even if IRC connection to server is not ok) (bug #20113) 2007-06-07 13:26:54 +00:00
Sebastien Helleu 1f77a51ddc Updated czech translations 2007-06-06 11:39:33 +00:00
Sebastien Helleu c96eea0f54 Updated russian translations 2007-06-06 10:58:45 +00:00
Sebastien Helleu 87fa5c8b52 Updated translations 2007-06-06 10:35:16 +00:00
Sebastien Helleu 6f83c33ed9 Added missing IRC commands 378 and 379 (bug #20091) 2007-06-06 10:13:25 +00:00
Sebastien Helleu 23ff266816 Added missing IRC command 327 2007-06-06 09:08:00 +00:00
Sebastien Helleu 8affe52ee4 Fixed hotlist when exiting search mode: current buffer is removed from hotlist 2007-06-05 21:31:43 +00:00
Sebastien Helleu 162565466e Fixed german XML files for doc 2007-06-05 21:21:53 +00:00
Sebastien Helleu a2384b3514 Updated some XML files for doc 2007-06-05 20:13:53 +00:00
Sebastien Helleu 219621b8cc Updated czech translations 2007-06-05 20:12:24 +00:00
Sebastien Helleu a3d7bcf804 Updated russian translations 2007-06-05 20:10:09 +00:00
Sebastien Helleu 8978b9c4b9 Added "weechat.log" name in error message when WeeChat log file is locked 2007-06-05 14:00:47 +00:00
Sebastien Helleu b605e52d0f Updated german doc 2007-06-01 13:47:46 +00:00
Sebastien Helleu c554ed2da5 Updated german translations 2007-06-01 13:44:39 +00:00
Julien Louis dde12565e7 Fix libintl.h issue on FreeBSD 2007-05-26 19:15:46 +00:00
Sebastien Helleu 34e220df56 Fixed bug with PART command parsing (":" not skipped, problem with some IRC servers) 2007-05-25 16:49:25 +00:00
Sebastien Helleu 537e1781a6 Fixed nick completion bug: now self nick is always at the end of completion list 2007-05-24 12:59:16 +00:00
Sebastien Helleu d66bfc2458 Added "%M" for completion with nicks of current server (nicks on open channels) (task #6931) 2007-05-24 12:43:18 +00:00
Sebastien Helleu fb3fd5b0eb Improved key bindings: now possible to bind a key on many commands, separated by semicolon (task #5444) 2007-05-23 16:07:31 +00:00
Sebastien Helleu c0762e3b13 Updated russian translations 2007-05-23 12:47:47 +00:00
Sebastien Helleu 4519707904 Fixed minor typo in translations 2007-05-23 11:50:28 +00:00
Sebastien Helleu 30e194e41f Updated translations 2007-05-23 08:08:21 +00:00
Sebastien Helleu 5e4f45e2a2 Improved IRC long message split: use word boundary (task #6685) 2007-05-22 16:37:11 +00:00
Sebastien Helleu e339e9020d Fixed "%C" completion: now completes with all channels of all servers 2007-05-22 14:46:59 +00:00
Sebastien Helleu 5332d2ba27 Removed ":" for unknown IRC commands before arguments (bug #19929) 2007-05-22 13:11:58 +00:00
Sebastien Helleu 058c026e10 Fixed bug with "/buffer query_name", added server and channel completion for /buffer command (bug #19928) 2007-05-22 13:02:39 +00:00
Julien Louis dd79c6b8bf Only check ncurses.h if ncursesw/ncurses.h is not found
Signed-off-by: Julien Louis <ptitlouis@sysif.net>
2007-05-21 22:26:17 +00:00
Julien Louis e867f2dd35 Fix ncurses detection.
We now provide a FindNcurses.cmake to find the library used
and we define the right cpp variable when we compile the curses gui.

Signed-off-by: Julien Louis <ptitlouis@sysif.net>
2007-05-21 22:20:13 +00:00
Sebastien Helleu ba468f2234 Added cmake for weechat compile (patch #5943) 2007-05-21 21:46:51 +00:00
Sebastien Helleu 6c67b97fb7 Added date.xml.in, file needed by cmake 2007-05-21 16:58:37 +00:00
Sebastien Helleu 9f5d99f57e Added cmake for weechat compile 2007-05-21 16:30:04 +00:00
Sebastien Helleu c79becdc85 Removed compile warning in Perl script plugin 2007-05-21 16:11:27 +00:00
Sebastien Helleu 7405588a6e Updated man page 2007-05-21 16:09:24 +00:00
Sebastien Helleu 4061f0641d Fixed IRC mode parsing when receiving modes with arguments (bug #19902) 2007-05-20 10:41:51 +00:00
Sebastien Helleu 5787acad2c Fixed crash with IRC JOIN malformed message (bug #19891) 2007-05-18 09:13:25 +00:00
Sebastien Helleu 5e29f17620 Updated script urlgrab.py 2007-05-18 06:35:52 +00:00
Sebastien Helleu 4950d462d0 Minor cleanup in german doc: removed some unneeded spaces 2007-05-15 07:48:43 +00:00
Sebastien Helleu 20b567c3df Added charset plugin in doc 2007-05-14 21:09:08 +00:00
Sebastien Helleu d395846fb7 Removed "prefix" data for server info in plugin API (oups, why did I add that ?) 2007-05-11 15:04:56 +00:00
Sebastien Helleu bee62989f6 Code cleanup: renamed IRC functions to have uniform name (with prefix based on source name), moved some functions 2007-05-11 14:59:12 +00:00
Sebastien Helleu 7579529d94 Fixed bug with nick prefixes on some IRC servers (bug #19854) 2007-05-11 12:06:20 +00:00
Sebastien Helleu a8fc49bd79 Fixed IRC server message display, case insensitive test for nick in message 2007-05-11 10:13:38 +00:00
Sebastien Helleu d617f1d154 New version of awl.py 2007-05-11 08:22:39 +00:00
Sebastien Helleu 82b3f86c43 Fixed channel search for display of IRC error messages (case insensitive search for nick) 2007-05-11 08:17:57 +00:00
Sebastien Helleu 812ab4129f Added mpd.py script 2007-05-10 14:39:23 +00:00
Sebastien Helleu d6925c982e Fixed bug with PING answer: removed one colon at beginning of PONG arguments (bug #19846) 2007-05-10 09:22:28 +00:00
Sebastien Helleu c3e9858d55 Improved setup file save: now writes temporary file, then rename it (task #6847) 2007-05-09 16:43:01 +00:00
Sebastien Helleu 7290f0f1ab Fixed bug with $nick/$channel/$server variables in commands 2007-05-09 13:12:12 +00:00
Sebastien Helleu 0093bf0849 Updated french doc 2007-05-09 11:54:55 +00:00
Sebastien Helleu 3bf3f22928 Forget current nick when user manually disconnects from server 2007-05-09 11:14:59 +00:00
Sebastien Helleu 880e10b6d6 Fixed nick display in input window 2007-05-09 11:13:41 +00:00
Sebastien Helleu 054abdff85 Fixed bug with erroneous nickname when connecting to server (bug #19812), fixed display bugs in IRC error messages 2007-05-09 11:00:11 +00:00
Sebastien Helleu 860e9a08f3 Added forcenick.rb script 2007-05-04 12:33:38 +00:00
Sebastien Helleu 148e74d2c3 Added protocol priority for gnutls (patch #5915) 2007-05-04 09:48:33 +00:00
Julien Louis f5fadd9c12 Remove uneeded calls to the python interpreter.
Scripts are executed by an embedded interpreter.
2007-05-03 17:02:05 +00:00
Sebastien Helleu 0abe6f0322 Added channel admin mode '!' for some IRC servers 2007-05-02 09:41:19 +00:00
Sebastien Helleu c74cf01b63 Fixed bug with iso2022jp locale (bug #18719) 2007-05-02 09:19:35 +00:00
Sebastien Helleu eb2e8891cb Fixed string format bug when displaying string thru plugin script API 2007-04-25 08:41:29 +00:00
Sebastien Helleu 97a3d47650 Added /reconnect command (task #5448) 2007-04-24 12:18:36 +00:00
Sebastien Helleu 4ed02bbdcf Added "-all" option for /connect and /disconnect commands (task #6232) 2007-04-24 11:28:41 +00:00
Sebastien Helleu 63244d9a30 Added browse.rb script 2007-04-24 08:57:12 +00:00
Sebastien Helleu fcc885eff0 New version of ctcp.py 2007-04-24 08:56:27 +00:00
Sebastien Helleu 7feb775299 Nick completion: completes with self nick at the end of completion list 2007-04-15 08:04:53 +00:00
Sebastien Helleu 8da229fd9d Updated doc 2007-04-14 13:28:27 +00:00
Sebastien Helleu 398e056029 Removed debug message when highlight is forced by a plugin 2007-04-14 13:16:23 +00:00
Sebastien Helleu f30fb21175 Improved nick completion: completes with last speakers first (task #5896), fixed nick completion (bugs #19590 and #19589) 2007-04-14 13:14:05 +00:00
Sebastien Helleu a89ca83306 Fixed minor refresh bug with input when searching text 2007-04-04 14:23:33 +00:00
Sebastien Helleu 0e785fe106 Added color for input text not found in buffer history 2007-04-04 14:04:42 +00:00
Sebastien Helleu 3e6e347d13 Added question about copy/paste and nicklist in FAQ 2007-04-03 09:24:04 +00:00
Sebastien Helleu 8d014d66da Fixed USER message when connecting to IRC server (patch #5835) 2007-04-02 09:23:41 +00:00
Sebastien Helleu f07c42fff3 Version 0.2.5-cvs 2007-03-29 18:22:18 +00:00
Sebastien Helleu e0c6451b91 Version 0.2.4 2007-03-29 17:48:47 +00:00
Sebastien Helleu 29e879326d Added oldtopic.pl script 2007-03-29 12:55:28 +00:00
Sebastien Helleu e995453b9a Fixed typo in french quickstart guide 2007-03-29 12:45:04 +00:00
Sebastien Helleu bad4bd0bef Fixed color bug with IRC messages displayed by plugins (bug #19442) 2007-03-29 12:44:42 +00:00
Sebastien Helleu 0872e77872 Added response.py script 2007-03-28 20:15:30 +00:00
Sebastien Helleu 41b7aa0f93 Fixed czech translations 2007-03-28 07:40:04 +00:00
Sebastien Helleu a4bf839a30 Updated copyright date in english and french docs 2007-03-27 16:19:04 +00:00
Sebastien Helleu 1ff61b1745 Updated german doc 2007-03-27 16:18:33 +00:00
Sebastien Helleu 2d5e1474e3 Updated translations 2007-03-27 16:17:53 +00:00
Sebastien Helleu 57477f9da9 Fixed command parsing: now "/*" is not considered any more as a command (task #6684) 2007-03-27 11:06:50 +00:00
Sebastien Helleu 64bcd25692 Updated russian translations 2007-03-26 21:29:34 +00:00
Sebastien Helleu cd3f62d37e Fixed topic charset, now using channel charset if defined (bug #19386) 2007-03-25 14:13:21 +00:00
Sebastien Helleu 17989f8d71 Renamed log file for DCC chat (now <server>.dcc.<nick>.weechatlog) 2007-03-23 13:40:18 +00:00
Sebastien Helleu b498062fde Fixed crash when closing a pv if a DCC chat is open on same nick (bug #19147) 2007-03-23 13:39:23 +00:00
Sebastien Helleu 2096354ea8 Remove current buffer from hotlist when scrolling down and end of buffer is reached 2007-03-23 13:01:31 +00:00
Sebastien Helleu 1daa5061a9 Fixed bug with channel topic after reconnection (not erased) (bug #19384) 2007-03-22 13:26:50 +00:00
Sebastien Helleu 926932a20f Updated czech translations 2007-03-21 21:23:48 +00:00
Sebastien Helleu 6323e55ab4 Added current buffer in hotlist when scrolling up in buffer (task #6664) 2007-03-21 20:29:13 +00:00
Sebastien Helleu 0b6a91837c Fixed bug with text search and previous/next highlight (sometimes search came back to end of buffer) 2007-03-20 12:23:11 +00:00
Sebastien Helleu c988f0c473 Fixed minor bug in /upgrade command 2007-03-20 12:22:32 +00:00
Sebastien Helleu 7f0e0b5eea Added case-sensitive search in buffer, display marker for each line matching search 2007-03-20 10:18:25 +00:00
Sebastien Helleu 25bfda26e9 Fixed bug with explode_string / free_exploded_string when max_items > 0 2007-03-19 23:31:49 +00:00
Sebastien Helleu a584ef4261 Added weempd.py script 2007-03-17 12:51:25 +00:00
Sebastien Helleu 00935961e8 Updated russian translations 2007-03-17 12:37:16 +00:00
Sebastien Helleu e12a2c985c Updated ChangeLog 2007-03-16 15:28:09 +00:00
Sebastien Helleu 9a81c27e7d Replaced ctrl-S by ctrl-R for interactive and incremental search 2007-03-16 15:27:28 +00:00
Sebastien Helleu 0f0f7511d2 Added new key (ctrl-S) for interactive and incremental search in buffer history (task #6628) 2007-03-16 15:02:47 +00:00
Sebastien Helleu aa149dcfbc Fixed /topic completion when no topic set on current channel (bug #19322) 2007-03-16 11:49:58 +00:00
Sebastien Helleu 4d64128ef2 Improved password hiding, code cleanup (bug #19229) (new commit after savannah crash) 2007-03-16 08:40:10 +00:00
Sebastien Helleu 7d5ea81f93 Added away info on status bar for server buffer when look_one_server_buffer is ON (new commit after savannah crash) 2007-03-15 22:14:49 +00:00
Emmanuel Bouthenot 063744ef7d make arguments for function get_buffer_data() mandatory in plugins/scripts 2007-03-09 15:46:08 +00:00
Sebastien Helleu cfd2f57dd1 New version of amarok.py 2007-03-09 13:34:34 +00:00
Sebastien Helleu 8d60035951 New version of amarok.py 2007-03-07 10:55:09 +00:00
Sebastien Helleu ff2fdc14b7 New version of ctcp.py 2007-03-07 10:54:58 +00:00
Sebastien Helleu 8c6fa998f8 Updated translations 2007-03-07 08:38:40 +00:00
Sebastien Helleu 600fe4deb3 Updated doc 2007-03-06 19:21:32 +00:00
Sebastien Helleu 7b9ef6b56e Added new return code in plugin API to force highlight (for message handlers only) 2007-03-06 16:42:39 +00:00
Sebastien Helleu 00dd81761f Fixed bug with server buffer when "look_one_server_buffer" is ON and server buffer is moved to any number > 1 (bug #19219) 2007-03-06 14:37:43 +00:00
Sebastien Helleu 85db677423 Fixed /help command: displays plugin help for redefined commands (bug #19166) 2007-03-05 13:03:37 +00:00
Sebastien Helleu 70ebdc9808 Updated /help alias with $nick/$channel/$server (bug #19194) 2007-03-05 12:48:50 +00:00
Sebastien Helleu f8e31fa38f Prefix '/' disabled in commands (patch #5769) 2007-03-01 09:34:50 +00:00
Sebastien Helleu 018b440004 Fixed completion of redefined commands removed by plugins (bug #19176) 2007-03-01 09:06:04 +00:00
Sebastien Helleu f1fdc469c4 Fixed memory leaks in perl and python plugins (bug #19163) 2007-03-01 08:25:08 +00:00
Emmanuel Bouthenot 47db86b66a fix some memory leaks in perl plugin/script 2007-02-28 22:59:47 +00:00
Emmanuel Bouthenot 2ca6c6a3f1 fix some memory leaks in python plugin/script 2007-02-28 15:07:24 +00:00
Emmanuel Bouthenot 158d2c9934 bug fix and code cleanup in plugins/scripts 2007-02-27 22:22:56 +00:00
Sebastien Helleu 7758f02992 Updated catapult.py 2007-02-25 14:29:09 +00:00
Sebastien Helleu fef85af5cc Updated rbox.rb script 2007-02-24 23:34:14 +00:00
Sebastien Helleu 3fb1affd95 Added logurlsql.pl and rbox.rb scripts 2007-02-23 16:17:15 +00:00
Sebastien Helleu f5731322da Added awl.py script 2007-02-22 10:50:16 +00:00
Sebastien Helleu 1dc994e5f6 Added scripts last.fm.py and weexaile.py 2007-02-19 19:33:37 +00:00
Emmanuel Bouthenot 429167f032 fix the possibility to load a perl script even if it doesn't call register() function 2007-02-17 18:23:50 +00:00
Sebastien Helleu aba6e1257d Added "call" option to /key command, added new key function "insert" to insert text on command line (task #6468) 2007-02-12 17:39:34 +00:00
Sebastien Helleu 6d01968259 Fixed permissions on "dcc" and "logs" directories (bug #18978) 2007-02-06 21:33:48 +00:00
Sebastien Helleu fddd0416b9 Added event handlers in plugin list commands outputs (/plugin and script commands) 2007-02-05 22:47:12 +00:00
Sebastien Helleu 8e436c58cd Added event handler to plugin API 2007-02-05 22:18:33 +00:00
Sebastien Helleu 4713f94602 Added scots quickstart guide 2007-02-05 15:50:38 +00:00
Sebastien Helleu ef43b3e013 Added numeric argument for /clear command (buffer number) (patch #5372) 2007-02-03 08:49:23 +00:00
Sebastien Helleu 0e113ded09 Fixed typos in doc 2007-02-02 16:57:08 +00:00
Sebastien Helleu cd75488d0d Added mp3blaster.py script 2007-01-22 10:44:46 +00:00
Sebastien Helleu dc80d87b0e Fixed crash when /away command is issued with no server connection (bug #18839) 2007-01-21 11:54:45 +00:00
Sebastien Helleu 0213633fb8 New e-mail for author of xmms.pl 2007-01-19 13:35:16 +00:00
Sebastien Helleu fa833455ae Added amarok.py script 2007-01-19 13:34:09 +00:00
Sebastien Helleu 749fae7a75 Fixed crash when closing a buffer opened on many windows 2007-01-16 23:53:01 +00:00
Sebastien Helleu e99915e427 Fixed freeze with SSL server when disconnecting after connection loss (bug #18735) 2007-01-16 14:54:38 +00:00
Sebastien Helleu 22d0d47d2d Updated FAQ 2007-01-16 14:07:37 +00:00
Sebastien Helleu 0af26a3fb5 Version 0.2.4-cvs 2007-01-10 23:26:04 +00:00
Sebastien Helleu 6dacffe946 Version 0.2.3 2007-01-10 18:12:53 +00:00
Sebastien Helleu 3409d9a7e7 Fixed display bugs with nicklist at top/bottom when look_nicklist_separator is OFF (bug #18737) 2007-01-09 21:15:02 +00:00
Sebastien Helleu c14e090638 Fixed bug in topic display 2007-01-08 16:28:06 +00:00
Sebastien Helleu 1b348cf8ad Fixed again iconv 2007-01-08 16:10:02 +00:00
Sebastien Helleu 66161f5249 Fixed iconv problem, causing truncated words when using iso locale 2007-01-08 15:43:21 +00:00
Sebastien Helleu a1bbfb0129 Fixed topic scroll when topic has multi-bytes chars 2007-01-07 18:38:39 +00:00
Sebastien Helleu 428127cb71 Fixed typo in doc 2007-01-07 15:31:49 +00:00
Sebastien Helleu 029e539aba Fixed display bug in nicklist with cyrillic nick names 2007-01-07 10:06:58 +00:00
Sebastien Helleu 53acc07eb1 Fixed compilation problem with iconv under FreeBSD 2007-01-06 23:57:59 +00:00
Sebastien Helleu bbe2f9093c Fixed bugs with charset: now decodes/encodes nicks and channels in IRC messages (bug #18716) 2007-01-06 22:24:54 +00:00
Sebastien Helleu 09efc5333f Version 0.2.3-cvs 2007-01-06 00:33:42 +00:00
Sebastien Helleu 4ba67bdd0c Version 0.2.2 2007-01-05 23:46:35 +00:00
Sebastien Helleu 632d451f62 Changed copyright date (2006 -> 2007) 2007-01-05 23:41:38 +00:00
Sebastien Helleu 216b68b682 Added missing russian translations 2007-01-05 17:05:53 +00:00
Sebastien Helleu 3e2349481c Fixed bug with status bar (missing refresh) when closing a buffer 2007-01-01 20:48:14 +00:00
Sebastien Helleu 37e4e1f011 Fixed bug with use of first buffer for a channel if not connected to server (now allowed only for a server buffer) 2007-01-01 17:42:12 +00:00
Sebastien Helleu 412ffa632e Fixed refresh bug with private buffer title 2006-12-26 17:29:50 +00:00
Sebastien Helleu e0a50e4d9a Version 0.2 -> 0.3 for script auto_op.py 2006-12-14 16:31:21 +00:00
Sebastien Helleu 00613ece06 Fixed auto_op.py script for quakenet like servers (no ":" after JOIN) 2006-12-14 16:30:07 +00:00
Sebastien Helleu 8c1c01e58e Fixed memory leak in /charset command 2006-12-11 08:32:21 +00:00
Sebastien Helleu 59158c48d3 Fixed bug with nick completion in command args (now uses option look_nick_completion_ignore) 2006-12-08 15:22:44 +00:00
Sebastien Helleu a1bc5ce60f Fixed display bug with color for first line on screen (bug #17719) 2006-12-05 14:27:01 +00:00
Sebastien Helleu 10ab4b0a20 Added anti-flood option (irc_anti_flood) (task #5442) 2006-12-04 09:44:23 +00:00
Sebastien Helleu c774d9eb00 Fixed display bug with charset on DCC and IRC raw buffers 2006-12-04 09:05:14 +00:00
Sebastien Helleu 22f255afbb Fixed bug with "set_config" function in plugins API (bug #18448) 2006-12-04 08:51:10 +00:00
Sebastien Helleu 78accc74a3 Fixed bug in plugin modifier exec when many modifiers are called for a message 2006-12-03 23:26:03 +00:00
Sebastien Helleu fe1e7bdce6 Updated russian translations 2006-12-03 18:35:40 +00:00
Sebastien Helleu 9208800f22 Fixed charset problem with date in log files when using ISO charset 2006-12-03 18:26:27 +00:00
Sebastien Helleu b712ce9ac4 Updated german doc 2006-12-03 12:19:21 +00:00
Sebastien Helleu 015a9d0a22 Added doc formats in ./configure output, fixed problem with make install when pdf are not built 2006-12-02 10:16:20 +00:00
Julien Louis 875d1e5fee Documentation can now be built in pdf format 2006-12-01 22:38:20 +00:00
Julien Louis ac52a1d607 import needed files to build documentation in pdf format 2006-12-01 22:09:03 +00:00
Sebastien Helleu d1d41da7ad Plugins: "add_message_handler" now accepts "*" for all IRC messages 2006-12-01 16:14:08 +00:00
Julien Louis 3ba99d6d71 remove "n°" to workaround a bug in dblatex when generating pdf documentation 2006-12-01 16:02:00 +00:00
Sebastien Helleu 8ffbfe4b2c Fixed charset bug when displaying "Day changed" message 2006-12-01 15:14:46 +00:00
Sebastien Helleu 7ce144e875 Added keys (F9/F10) to scroll topic (task #6030) 2006-11-29 16:08:57 +00:00
Sebastien Helleu 59a0d27668 Added auto completion with channels and filenames 2006-11-29 08:28:26 +00:00
Sebastien Helleu f1dbe04c20 Fixed typos in doc 2006-11-28 20:28:36 +00:00
Sebastien Helleu c7d9ebd5c4 Added filename completion in doc and ChangeLog 2006-11-28 19:23:00 +00:00
Sebastien Helleu e03df08e0a Updated translations 2006-11-27 08:30:51 +00:00
Sebastien Helleu 670c05554c Fixed memleak in keyboard input 2006-11-26 11:42:59 +00:00
Sebastien Helleu 7aabd15b4f Fixed typos in english and german docs 2006-11-20 20:47:03 +00:00
Sebastien Helleu 7d5878e4d6 Fixed refresh bug when changing config options if window is splited 2006-11-19 08:18:59 +00:00
Sebastien Helleu 0ea530127b Removed unused charset options in default config file for servers 2006-11-19 00:02:34 +00:00
Sebastien Helleu f4c01bc785 Added space between chat and nicklist when position is "right" (bug #17852) 2006-11-17 22:03:00 +00:00
Sebastien Helleu 4061f34127 Added option "look_nicklist_separator" (task #5437) 2006-11-17 20:40:23 +00:00
Sebastien Helleu cad95b8f32 Replaced call to strndup() by weechat_charset_strndup() 2006-11-15 14:54:26 +00:00
Emmanuel Bouthenot 71ac31fcdd fix possible stack overflow in filename completion 2006-11-15 13:28:29 +00:00
Sebastien Helleu 7d29001f9d Fixed bug with DCC SEND when filename begins with '~' 2006-11-14 19:54:56 +00:00
Sebastien Helleu 3e4db5f7c1 Updated czech translations 2006-11-12 08:55:41 +00:00
Sebastien Helleu 5a915f6974 Fixed random crash with completion 2006-11-11 00:38:25 +00:00
Sebastien Helleu 6729d8d6f2 Fixed minor bug with /setp when no value is given and that option does not exist 2006-11-10 07:58:11 +00:00
Sebastien Helleu 045ceb961f Fixed bug in charset plugin: now encode/decode channels/nicks in IRC messages (after command) 2006-11-09 22:33:44 +00:00
Sebastien Helleu ef039c99da Fixed typo in fr.po 2006-11-09 13:41:40 +00:00
Sebastien Helleu 48f526b55a Added "irc_send_unknown_commands" option to send unknown commands to IRC server (OFF by default) (task #5947) 2006-11-09 13:34:03 +00:00
Sebastien Helleu 3dcea50073 Remove some unneeded iconv calls (for UTF-8 term) 2006-11-08 15:29:14 +00:00
Sebastien Helleu 855997623d Fixed display bug with new charset and unreadable UTF-8 chars in ISO term 2006-11-08 15:19:29 +00:00
Sebastien Helleu 2aeb867fb8 Fixed bad header name in gui-common.c 2006-11-08 15:15:03 +00:00
Sebastien Helleu d6a85fd553 Fixed bug with /upgrade and buffer's data when switching to new charset plugin (now old messages are parsed for UTF-8 and invalid chars are replaced by '?') 2006-11-08 11:18:30 +00:00
Sebastien Helleu c20ce83d20 Added charset plugin (WeeChat is now full UTF-8 for internal data storage), fixed compilation problems with FreeBSD, fixed status bar display bug 2006-11-08 07:54:33 +00:00
Sebastien Helleu b5a7d8e99e Updated "pyexec.py" script 2006-11-07 23:03:06 +00:00
Sebastien Helleu 101e623b75 Fixed bug with ignore: now any IRC command is allowed 2006-11-04 19:53:39 +00:00
Sebastien Helleu eadfd18117 Added "clonescan.py" script 2006-11-04 14:24:51 +00:00
Sebastien Helleu 844a16a3c5 Added nicklist/status refresh when disconnected from server 2006-11-02 11:49:09 +00:00
Emmanuel Bouthenot b786cdafe6 add missing reference for debian package build 2006-11-01 13:19:17 +00:00
Julien Louis b99273387b Add missing file 2006-10-31 15:50:15 +00:00
Julien Louis 6961bcb05a Sync with current package. 2006-10-31 15:47:55 +00:00
Sebastien Helleu 0eae5234a1 Fixed crash with Ctrl-T (transpose) and one char on line (bug #18153) 2006-10-30 13:27:24 +00:00
Sebastien Helleu 3fb24d37f8 Updated FAQ 2006-10-30 13:15:34 +00:00
Sebastien Helleu b3b516e023 Fixed bug with completion context (some variables were not properly reset) 2006-10-29 22:00:52 +00:00
Emmanuel Bouthenot 07dc0c85df fix minor display bug in aspell plugin 2006-10-29 13:06:48 +00:00
Emmanuel Bouthenot 9d96e3ad33 improve autogen.sh script (fancy output, better gettext usage) 2006-10-29 12:29:01 +00:00
Sebastien Helleu 812ed965e9 Added "pyexec" script 2006-10-29 09:15:50 +00:00
Emmanuel Bouthenot b84f75eba6 adding $weechat_dir/python in the top of sys.path 2006-10-29 01:38:54 +00:00
Emmanuel Bouthenot 7772bcfd33 improve plugins/scripts completion template to use filename completion 2006-10-28 20:24:20 +00:00
Emmanuel Bouthenot 5473b39986 minor improvement in aspell plugin 2006-10-28 19:29:05 +00:00
Emmanuel Bouthenot ac297214e0 remove unused header 2006-10-28 16:22:59 +00:00
Emmanuel Bouthenot 463d4638c1 improve filename completion 2006-10-28 16:16:07 +00:00
Sebastien Helleu 17a52d0020 Removed automatic space after filename when using completion 2006-10-27 22:45:23 +00:00
Emmanuel Bouthenot 4dd93fd6d3 adding filename completion (partially) 2006-10-27 22:08:07 +00:00
Sebastien Helleu ffd4b7c254 Fixed minor display bug when setting colored topic 2006-10-27 19:34:55 +00:00
Sebastien Helleu 1386c9218d Added audacious.pl script 2006-10-27 18:44:58 +00:00
Sebastien Helleu ac3a3d365f Removed bufsave.pl (wrong directory) 2006-10-27 18:42:20 +00:00
Sebastien Helleu 2273e47d81 Added "bufsave" perl script 2006-10-27 18:39:30 +00:00
Sebastien Helleu b789f39702 Improved WeeChat CSS style for website doc 2006-10-27 12:56:06 +00:00
Emmanuel Bouthenot 189d06624e fix memory leaks in python/script plugin 2006-10-26 14:11:45 +00:00
Emmanuel Bouthenot 0ff3acf6e4 add modifiers in scripts/plugins API, cleaning code in script/plugins, improve display for stdout/stderr redirections for python and ruby 2006-10-26 13:30:20 +00:00
Sebastien Helleu e9939cf574 Fixed crash when unloading/reloading scripts using modifiers 2006-10-25 07:38:56 +00:00
Sebastien Helleu 81aff59e4e Fixed bug with modifiers list in "/plugin listfull" command 2006-10-24 19:35:17 +00:00
Sebastien Helleu ff2e38a006 Fixed typo in /plugin command help 2006-10-24 13:10:32 +00:00
Sebastien Helleu 655150875b Updated ChangeLog 2006-10-24 13:08:35 +00:00
Sebastien Helleu dfa9ed31d4 Added "modifier" in plugins API, improved /plugin command 2006-10-24 11:23:31 +00:00
Sebastien Helleu 1e81591803 Added question about windows/buffers in FAQ 2006-10-24 11:21:52 +00:00
Sebastien Helleu a9b3e2efae Fixed typo in french quickstart guide 2006-10-23 11:15:53 +00:00
Sebastien Helleu 2ee57a4af5 Fixed bug on ignore with "mode" IRC command (bug #18058) 2006-10-20 10:11:16 +00:00
Sebastien Helleu a3878a522c Fixed crash when loading ruby script if file does not exist, with Ruby >= 1.9 only (bug #18064) 2006-10-20 09:19:51 +00:00
Emmanuel Bouthenot 06c4cf4144 adding date field 'date' in get_buffer_data() function of plugins/scripts API 2006-10-16 20:19:12 +00:00
Sebastien Helleu 0f07b69688 Fixed typo with lines date when using /upgrade (makes weechat crash) 2006-10-15 21:00:27 +00:00
Sebastien Helleu def08461d4 Added alternate boolean values (true,1,false,0,..) for server options 2006-10-14 08:42:33 +00:00
Sebastien Helleu 8dcb59fd0b Added date in plugin function get_buffer_data() 2006-10-14 08:33:13 +00:00
Sebastien Helleu 9b91c91577 Fixed some portability bugs (patch #5271) 2006-10-12 17:16:14 +00:00
Sebastien Helleu 481e6f8e7f Fixed iconv detection for BSD (patch #5456) 2006-10-12 16:42:35 +00:00
Sebastien Helleu e4ad664010 Fixed typo in configure.in (bash specific test) (patch #5450) 2006-10-12 16:13:30 +00:00
Sebastien Helleu 5a82d5a246 Mode changes with /op, /deop, /voice, /devoice, /halfop, /dehalfop are now sent in one mode command to server (task #5968) 2006-10-12 15:14:08 +00:00
Sebastien Helleu 8c29d36461 Added more values for config boolean values: y/true/t/1 and n/false/f/0 (patch from Stalwart) 2006-10-12 12:30:11 +00:00
Sebastien Helleu 14751f721d Fixed bug with alias when there's no $x and user args after alias command 2006-10-12 07:51:55 +00:00
Emmanuel Bouthenot 5d70f20c27 adding some missing headers in plugins 2006-10-10 18:08:48 +00:00
Emmanuel Bouthenot 71d5c65e28 Adding Lua 5.1 support, display plugins interpreter versions on configure 2006-10-09 17:22:32 +00:00
Sebastien Helleu b49ed70af4 Fixed warning on AMD64 2006-10-09 17:00:35 +00:00
Sebastien Helleu 9753571988 Fixed bug with /alias and arguments (like $1), now text after argument(s) is used (bug #17944) 2006-10-09 14:55:35 +00:00
Julien Louis c12b23382e Improve lua detection and make lua 5.1 the default version 2006-10-09 10:28:53 +00:00
Sebastien Helleu 232e5a27f0 Fixed compilation warnings for AMD64 2006-10-08 10:20:05 +00:00
Sebastien Helleu ebf5b78fce Fixed comparison between a char and negative value (now using 'signed char' to compare), this should fix minor display bug on some arch like PPC 2006-10-08 07:43:09 +00:00
Sebastien Helleu 3bedad8622 Version 0.2.2-cvs 2006-10-01 10:49:09 +00:00
Sebastien Helleu 047d941f46 Version 0.2.1 2006-10-01 08:11:55 +00:00
Sebastien Helleu cf4a22b156 Updated czech translations 2006-10-01 06:27:17 +00:00
Sebastien Helleu 40bfb43e0f Removed warnings with __USE_GNU and __USE_XOPEN 2006-09-30 15:09:29 +00:00
Sebastien Helleu edcc676ecf File automatically updated 2006-09-30 07:02:28 +00:00
Sebastien Helleu 6f1683172f Fixed wrong bug # in ChangeLog: #17852 => #17838 2006-09-30 06:55:20 +00:00
Sebastien Helleu 80a76f65f6 Fixed crash for DCC receiver when resuming a file (bug #17885), fixed DCC error for sender when receiver cancels DCC (bug #17852) 2006-09-30 06:52:52 +00:00
Emmanuel Bouthenot 9f035d8f91 fix a bug (can make crash) when calling a script command with another script command 2006-09-28 21:27:42 +00:00
Julien Louis 33ff438086 Add AC_GNU_SOURCE macro call 2006-09-28 13:34:15 +00:00
Emmanuel Bouthenot 1759b1f004 minor improvements on aspell plugin :
+ spellchecking is now available on commands like /me, /away, /query, ...
 + do not colorize urls : words begining with http(s)://, ftp(s)://, fish://, file://, etc
 + do not colorize words begining with '#' (channels) , '/' (commands), '-' (command option)
2006-09-28 13:30:54 +00:00
Sebastien Helleu 29dd888e6f Removed compilation warning on ascii_strcasecmp 2006-09-24 12:45:38 +00:00
Sebastien Helleu 63416bb801 Fixed random crash with /upgrade command (error when loading buffers) 2006-09-23 09:09:36 +00:00
Sebastien Helleu a33efdd755 Fixed crash with /buffer notify on server buffer when server_notify_levels is empty 2006-09-22 12:08:40 +00:00
Sebastien Helleu 28f7902667 Added keepnick python script 2006-09-20 09:45:07 +00:00
Julien Louis 0493cb89eb Initial import 2006-09-16 20:48:42 +00:00
Sebastien Helleu cb95bfc846 Fixed buffer search by server/channel: now if only channel is specified, a channel of another server can be found 2006-09-16 14:47:15 +00:00
Sebastien Helleu f325b5a71f Fixed highlight for DCC, invite and notice: when a window is displaying buffer, there's no highlight 2006-09-12 10:45:46 +00:00
Sebastien Helleu 6450867535 Command "/away -all" now allowed when not connected to current server 2006-09-08 20:20:05 +00:00
Sebastien Helleu bd4d543d50 New signals handled: SIGTERM and SIGHUP (received when terminal is closed): clean WeeChat quit (send quit to irc servers then quit WeeChat) 2006-09-08 13:51:32 +00:00
Sebastien Helleu 50b371da7e Fixed display of privates in hotlist: now display activity for privates (at least messages) when server default notify is 1 2006-09-08 12:20:49 +00:00
Sebastien Helleu 5479a3d10a Added some new default key bindings for existing keys (for some OS) 2006-09-02 20:47:52 +00:00
Sebastien Helleu 7c51a79460 Command /key now ok with one arg (key name): display key if found 2006-08-30 21:37:13 +00:00
Sebastien Helleu 09b73be53a Translated parts of german doc from english to german 2006-08-29 20:48:11 +00:00
Sebastien Helleu 3eb2b1dc0f Fixed bug with CTCP VERSION sent on channels (bug #17547), added current channel completion for /ctcp command 2006-08-28 12:09:09 +00:00
Sebastien Helleu 11acdddda3 Removed unused variable 2006-08-27 16:26:09 +00:00
Sebastien Helleu ba5349d9cb Fixed completion bug when many commands starts with same letters 2006-08-27 16:24:21 +00:00
Sebastien Helleu ce72bdb9f0 Fixed completion with alias calling user arguments ($1..$9) 2006-08-26 23:00:09 +00:00
Sebastien Helleu cb334b6de3 Fixed typo in doc for example of get_buffer_data (lua) 2006-08-26 21:47:52 +00:00
Emmanuel Bouthenot 9905ee774b fix bugs in get_buffer_data() which breaks the retrieval of buffer content (perl, lua) 2006-08-26 21:18:10 +00:00
Sebastien Helleu 56ebcb53eb Fixed typos in doc for scripts examples (get_buffer_info and get_buffer_data) 2006-08-26 18:32:09 +00:00
Sebastien Helleu 85cd863819 Fixed nicklist display bug when top/bottom (not enough lines) (bug #17537) 2006-08-26 15:45:37 +00:00
Sebastien Helleu 46205116c2 Fixed bug with auto-rejoin of keyed chans (bug #17534) 2006-08-26 15:11:56 +00:00
Sebastien Helleu 311ac060ce Added default nick completion when line starts with '//' (bug #17535) 2006-08-26 13:26:29 +00:00
Sebastien Helleu bb021e567a Values yes/no accepted (as on/off) for config boolean values (task #5454) 2006-08-26 08:38:04 +00:00
Sebastien Helleu 00fbd7ad56 Added server default notify level (task #5634), fixed crashs with /buffer and /charset commands when not connected to any server (bug #17525) 2006-08-25 16:30:10 +00:00
Sebastien Helleu 77e3fb3c83 Added arguments $1,$2,..,$9 and $* for alias (task #5831), added special vars $nick/$channel/$server for server_command, alias and plugin command handlers 2006-08-22 10:04:17 +00:00
Sebastien Helleu 1f801ff079 Added hotlist in session file when using /upgrade command (task #5449) 2006-08-20 22:28:31 +00:00
Sebastien Helleu 0d2afafbd0 Fixed typo in russian translation 2006-08-20 16:55:00 +00:00
Sebastien Helleu 74ee068457 Updated russian translations 2006-08-20 16:43:22 +00:00
Sebastien Helleu 8f623f6747 Added debian/weechat.xpm in EXTRA_DIST files 2006-08-20 15:56:53 +00:00
Sebastien Helleu ef1c7734bf Fixed typo in czech translation 2006-08-19 23:02:40 +00:00
Sebastien Helleu f4ccd51f74 Updated czech translations 2006-08-19 22:29:19 +00:00
Sebastien Helleu 2ad953097f Added missing aspell plugin in ChangeLog for v0.2.0 2006-08-19 22:24:57 +00:00
Sebastien Helleu f680066f16 Fixed nick refresh problem with unrealircd specific modes: chan owner (~) and chan admin (&) (bug #17340) 2006-08-19 17:05:43 +00:00
Sebastien Helleu 857a1b9139 Version 0.2.1-cvs 2006-08-19 13:02:55 +00:00
447 changed files with 85738 additions and 46409 deletions
+37 -37
View File
@@ -118,8 +118,8 @@ country code serves to distinguish the dialects.
language and `CC' denoting the country, is the one use on systems based
on GNU libc. On other systems, some variations of this scheme are
used, such as `LL' or `LL_CC.ENCODING'. You can get the list of
locales supported by your system for your country by running the command
`locale -a | grep '^LL''.
locales supported by your system for your language by running the
command `locale -a | grep '^LL''.
Not all programs have translations for all languages. By default, an
English message is shown in place of a nonexistent translation. If you
@@ -179,7 +179,7 @@ programming skill, here.
======================
Languages are not equally supported in all packages. The following
matrix shows the current state of internationalization, as of June
matrix shows the current state of internationalization, as of July
2006. The matrix shows, in regard of each package, for which languages
PO files have been submitted to translation coordination, with a
translation percentage of at least 50%.
@@ -199,7 +199,7 @@ translation percentage of at least 50%.
bibshelf | [] |
binutils | [] |
bison | [] [] |
bison-runtime | |
bison-runtime | [] |
bluez-pin | [] [] [] [] [] |
cflow | [] |
clisp | [] [] |
@@ -225,8 +225,8 @@ translation percentage of at least 50%.
gbiff | [] |
gcal | [] |
gcc | [] |
gettext-examples | [] [] [] [] |
gettext-runtime | [] [] [] [] |
gettext-examples | [] [] [] [] [] |
gettext-runtime | [] [] [] [] [] |
gettext-tools | [] [] |
gimp-print | [] [] [] [] |
gip | [] |
@@ -303,7 +303,7 @@ translation percentage of at least 50%.
libgphoto2 | [] [] |
libgphoto2_port | [] [] |
libgsasl | |
libiconv | |
libiconv | [] [] |
libidn | [] [] |
lifelines | [] () |
lilypond | [] |
@@ -342,7 +342,7 @@ translation percentage of at least 50%.
sp | [] |
stardict | [] |
system-tools-ba... | [] [] [] [] [] [] [] [] [] |
tar | |
tar | [] |
texinfo | [] [] [] |
textutils | [] [] [] |
tin | () () |
@@ -360,7 +360,7 @@ translation percentage of at least 50%.
xpad | [] [] |
+----------------------------------------------------+
af am ar az be bg bs ca cs cy da de el en en_GB eo
11 0 1 2 8 20 1 42 43 2 62 97 18 1 16 13
11 0 1 2 8 21 1 42 43 2 62 99 18 1 16 16
es et eu fa fi fr ga gl gu he hi hr hu id is it
+--------------------------------------------------+
@@ -478,10 +478,10 @@ translation percentage of at least 50%.
libextractor | [] |
libgpewidget | [] [] [] [] [] |
libgpg-error | |
libgphoto2 | [] [] |
libgphoto2 | [] [] [] |
libgphoto2_port | [] [] |
libgsasl | [] [] |
libiconv | |
libiconv | [] |
libidn | [] [] |
lifelines | () |
lilypond | [] |
@@ -496,7 +496,7 @@ translation percentage of at least 50%.
nano | [] () [] [] [] [] |
nano_1_0 | [] [] [] [] [] |
opcodes | [] [] [] [] |
parted | [] [] [] |
parted | [] [] [] [] |
pilot-qof | |
psmisc | [] [] [] |
pwdutils | |
@@ -520,11 +520,11 @@ translation percentage of at least 50%.
sp | [] |
stardict | [] |
system-tools-ba... | [] [] [] [] [] [] [] [] |
tar | [] [] [] [] [] |
tar | [] [] [] [] [] [] |
texinfo | [] [] |
textutils | [] [] [] [] [] |
tin | [] () |
tp-robot | [] [] [] |
tp-robot | [] [] [] [] |
tuxpaint | [] [] |
unicode-han-tra... | |
unicode-transla... | [] [] |
@@ -538,7 +538,7 @@ translation percentage of at least 50%.
xpad | [] [] [] |
+--------------------------------------------------+
es et eu fa fi fr ga gl gu he hi hr hu id is it
89 21 16 2 41 118 59 14 1 8 1 6 60 30 0 52
89 21 16 2 41 119 61 14 1 8 1 6 61 30 0 53
ja ko ku ky lg lt lv mk mn ms mt nb ne nl nn no
+--------------------------------------------------+
@@ -640,14 +640,14 @@ translation percentage of at least 50%.
iso_3166_2 | [] |
iso_3166_3 | [] |
iso_4217 | [] [] [] |
iso_639 | [] [] [] |
iso_639 | [] [] |
jpilot | () () () |
jtag | |
jwhois | [] |
kbd | [] |
keytouch | [] |
keytouch-editor | |
keytouch-keyboa... | [] |
keytouch-keyboa... | |
latrine | [] |
ld | |
leafpad | [] [] |
@@ -716,7 +716,7 @@ translation percentage of at least 50%.
xpad | [] [] [] |
+--------------------------------------------------+
ja ko ku ky lg lt lv mk mn ms mt nb ne nl nn no
40 24 2 1 1 3 1 2 3 21 0 15 1 102 6 3
40 24 2 1 1 3 1 2 3 21 0 15 1 101 5 3
nso or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta
+------------------------------------------------------+
@@ -758,7 +758,7 @@ translation percentage of at least 50%.
gawk | [] [] [] [] |
gbiff | [] |
gcal | [] |
gcc | |
gcc | [] |
gettext-examples | [] [] [] [] [] [] [] [] |
gettext-runtime | [] [] [] [] [] [] [] [] |
gettext-tools | [] [] [] [] [] [] [] |
@@ -835,7 +835,7 @@ translation percentage of at least 50%.
libgpewidget | [] [] [] [] [] [] [] |
libgpg-error | [] [] |
libgphoto2 | [] |
libgphoto2_port | [] [] |
libgphoto2_port | [] [] [] |
libgsasl | [] [] [] [] |
libiconv | |
libidn | [] [] () |
@@ -894,7 +894,7 @@ translation percentage of at least 50%.
xpad | [] [] [] |
+------------------------------------------------------+
nso or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta
0 2 3 58 31 53 5 76 72 5 42 48 12 51 128 2
0 2 3 58 31 53 5 76 72 5 42 48 12 51 130 2
tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu
+---------------------------------------------------+
@@ -911,7 +911,7 @@ translation percentage of at least 50%.
bibshelf | [] | 7
binutils | [] [] [] | 9
bison | [] [] [] | 19
bison-runtime | [] [] [] | 15
bison-runtime | [] [] [] | 16
bluez-pin | [] [] [] [] [] [] | 28
cflow | [] [] | 4
clisp | | 6
@@ -936,9 +936,9 @@ translation percentage of at least 50%.
gawk | [] [] | 15
gbiff | [] | 5
gcal | [] | 5
gcc | [] [] [] | 5
gettext-examples | [] [] [] [] [] | 24
gettext-runtime | [] [] [] [] [] | 26
gcc | [] [] [] | 6
gettext-examples | [] [] [] [] [] [] | 26
gettext-runtime | [] [] [] [] [] [] | 28
gettext-tools | [] [] [] [] [] | 19
gimp-print | [] [] | 12
gip | [] [] | 12
@@ -996,26 +996,26 @@ translation percentage of at least 50%.
iso_3166_2 | | 2
iso_3166_3 | [] [] | 9
iso_4217 | [] [] | 14
iso_639 | [] [] | 16
iso_639 | [] | 14
jpilot | [] [] [] [] | 7
jtag | [] | 3
jwhois | [] [] [] | 13
kbd | [] [] | 12
keytouch | [] | 4
keytouch-editor | | 2
keytouch-keyboa... | [] | 4
keytouch-keyboa... | | 2
latrine | [] [] | 8
ld | [] [] [] | 7
ld | [] [] [] [] | 8
leafpad | [] [] [] [] | 23
libc | [] [] [] | 23
libexif | [] | 4
libextractor | [] | 5
libgpewidget | [] [] [] | 19
libgpg-error | [] | 4
libgphoto2 | [] | 7
libgphoto2_port | [] [] [] | 10
libgphoto2 | [] | 8
libgphoto2_port | [] [] [] | 11
libgsasl | [] | 8
libiconv | | 0
libiconv | [] | 4
libidn | [] [] | 10
lifelines | | 4
lilypond | | 2
@@ -1030,7 +1030,7 @@ translation percentage of at least 50%.
nano | [] [] | 15
nano_1_0 | [] [] [] | 18
opcodes | [] [] | 10
parted | [] [] [] | 9
parted | [] [] [] | 10
pilot-qof | [] | 3
psmisc | [] | 10
pwdutils | [] | 3
@@ -1038,7 +1038,7 @@ translation percentage of at least 50%.
qof | [] | 2
radius | [] | 6
recode | [] [] [] | 25
rpm | [] [] [] | 13
rpm | [] [] [] [] | 14
screem | [] | 2
scrollkeeper | [] [] [] [] | 26
sed | [] [] [] | 22
@@ -1054,11 +1054,11 @@ translation percentage of at least 50%.
sp | [] | 3
stardict | [] [] [] [] | 11
system-tools-ba... | [] [] [] [] [] [] [] | 37
tar | [] [] [] [] | 17
tar | [] [] [] [] | 19
texinfo | [] [] [] | 15
textutils | [] [] [] | 17
tin | | 1
tp-robot | [] [] [] | 9
tp-robot | [] [] [] | 10
tuxpaint | [] [] [] | 16
unicode-han-tra... | | 0
unicode-transla... | | 2
@@ -1072,7 +1072,7 @@ translation percentage of at least 50%.
xpad | [] [] [] | 14
+---------------------------------------------------+
77 teams tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu
172 domains 0 1 1 78 39 0 135 14 1 50 1 52 0 2040
172 domains 0 1 1 78 39 0 135 13 1 50 3 54 0 2054
Some counters in the preceding matrix are higher than the number of
visible blocks let us expect. This is because a few extra PO files are
@@ -1085,7 +1085,7 @@ distributed as such by its maintainer. There might be an observable
lag between the mere existence a PO file and its wide availability in a
distribution.
If June 2006 seems to be old, you may fetch a more recent copy of
If July 2006 seems to be old, you may fetch a more recent copy of
this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date
matrix with full percentage details can be found at
`http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'.
+2 -8
View File
@@ -9,17 +9,11 @@ Developers:
FlashCode <flashcode@flashtux.org>
Web : http://weechat.flashtux.org
IRC : nick is "FlashCode" @ irc.freenode.net
Jabber: flashcode@jabber.org
ICQ : 160677660
AIM : FlashCode AIM
Yahoo : FlashCode_Y
* Scripts plugins
Kolter <kolter@openics.org>
Web : http://kolter.free.fr
kolter <kolter@openics.org>
IRC : nick is "kolter" @ irc.freenode.net
Jabber: kolter@im.openics.org
Debian packager:
@@ -47,7 +41,7 @@ Pavel Shevchuk, IRC: "Stalwart"
=====
Whole team is connected to IRC:
server: irc.freenode.net, channel: #weechat
server: irc.freenode.net, channels: #weechat and #weechat-fr (french)
See README file for licence detail.
+72
View File
@@ -0,0 +1,72 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
PROJECT(weechat)
SET(CMAKE_VERBOSE_MAKEFILE OFF)
SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
SET(CMAKE_SKIP_RPATH ON)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W")
IF(PREFIX)
SET(CMAKE_INSTALL_PREFIX ${PREFIX} CACHE PATH "Install path prefix" FORCE)
ENDIF(PREFIX)
SET(VERSION 0.2.6.3)
SET(PKG_STRING "${PROJECT_NAME} ${VERSION}")
SET(LIBDIR ${CMAKE_INSTALL_PREFIX}/lib/weechat)
SET(SHAREDIR ${CMAKE_INSTALL_PREFIX}/share/weechat)
SET(LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale)
STRING(REPLACE "\";\"" "\ " PKG_STRING ${PKG_STRING})
OPTION(DISABLE_NCURSES "Disable Ncurses interface")
OPTION(ENABLE_GTK "Enable GTK interface")
OPTION(DISABLE_NLS "Disable Native Language Support")
OPTION(DISABLE_GNUTLS "Disable SSLv3/TLS connection support")
OPTION(DISABLE_PLUGINS "Disable Plugins support")
OPTION(DISABLE_PERL "Disable Perl scripting language")
OPTION(DISABLE_PYTHON "Disable Python scripting language")
OPTION(DISABLE_RUBY "Disable Ruby scripting language")
OPTION(DISABLE_LUA "Disable Lua scripting language")
OPTION(DISABLE_ASPELL "Disable Aspell plugin")
OPTION(DISABLE_CHARSET "Disable Charset plugin")
OPTION(DISABLE_DOC "Disable Doc")
ADD_SUBDIRECTORY( po )
ADD_SUBDIRECTORY( src )
IF(NOT DISABLE_DOC)
ADD_SUBDIRECTORY( doc )
ENDIF(NOT DISABLE_DOC)
CONFIGURE_FILE(config.h.cmake config.h @ONLY)
CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/makedist.sh.in"
"${CMAKE_CURRENT_BINARY_DIR}/makedist.sh" IMMEDIATE
@ONLY)
CONFIGURE_FILE(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
ADD_CUSTOM_TARGET(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
ADD_CUSTOM_TARGET(dist
"${CMAKE_BINARY_DIR}/makedist.sh"
DEPENDS doc
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
+591 -257
View File
@@ -1,285 +1,626 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
TERMS AND CONDITIONS
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
0. Definitions.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
"This License" refers to version 3 of the GNU General Public License.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
A "covered work" means either the unmodified Program or a work based
on the Program.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
1. Source Code.
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
The Corresponding Source for a work in source code form is that
same work.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
13. Use with the GNU Affero General Public License.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
14. Revised Versions of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
NO WARRANTY
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
15. Disclaimer of Warranty.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
@@ -287,15 +628,15 @@ free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@@ -304,37 +645,30 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
+223 -1
View File
@@ -1,7 +1,228 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2006-08-19
ChangeLog - 2009-06-13
Version 0.2.6.3 (2009-06-13):
* fix gnutls detection (use pkg-config instead of libgnutls-config)
(bug #26790)
Version 0.2.6.2 (2009-04-18):
* fix bug with charset decoding (for example with iso2022jp)
Version 0.2.6.1 (2009-03-14):
* fix crash with some special chars in IRC messages (bug #25862)
Version 0.2.6 (2007-09-06):
* fixed bug with log of plugin messages (option log_plugin_msg)
* added new option "deloutq" to /server command to delete all servers
messages out queues (task #7221)
* fixed display bug with some special chars in messages (some words were
truncated on screen) (bug #20944)
* fixed UTF-8 bug with color encoding/decoding
* fixed crash when searching text in buffer with ctrl-R (bug #20938)
* added string length limit for setup file options
* fixed bug with flock() when home is on NFS filesystem (bug #20913)
* added option to align text of messages (except first lines) (task #7246)
* fixed user modes in nicklist when ban and nick mode are received in the
same MODE message (bug #20870)
* fixed IRC message 333: silently ignore message if error when parsing it
* fixed server option "command_delay": does not freeze WeeChat any more
* added paste detection, new options look_paste_max_lines and
col_input_actions (task #5442)
* fixed bug with highlight and UTF-8 chars around word (bug #20753)
* added swedish quickstart guide
* added support of channel mode +u (channel user) (bug #20717)
* improved /connect command to connect to a host by creating a temporary
server, added option to /server to create temporary server (task #7095)
* added "copy", "rename" and "keep" options to /server command
* allow clear of multiple selected buffers with /clear (patch #6112)
* added key for setting unread marker on all buffers (default:
ctrl-S + ctrl-U) (task 7180)
* fixed nick prefix display on servers that doesn't support all prefixes
(bug #20025)
* fixed terminal encoding detection when NLS is disabled (bug #20646)
* fixed crash when sending data to channel or pv on disconnected server
(bug #20524)
* improved command /server ant its output
* added 3 default new keys: ctrl-B (left), ctrl-F (right), ctrl-D (delete)
* added "buffer_move" event handler to plugins API (task #6708)
* added key function "jump_previous_buffer" to jump to buffer previously
displayed (new key: alt-J + alt-P) (task #7085)
* added "%*" to completion template, to repeat last completion
* added "-nojoin" option for /connect and /reconnect commands (task #7074)
* fixed bugs with IRC color in messages, now color codes are inserted in
command line with ^Cc,^Cb,.. instead of %C,%B,.. (bug #20222, task #7060)
* fixed bug with smart nick completion (last speakers first) when a nick
is changed
* fixed charset bug with channel names in status bar (bug #20400)
* added "scroll" option to /buffer command
* down key now saves input to history and clears input line (task #7049)
* fixed log file when channel name contains "/" (bug #20072)
* command /away allowed when not connected to server (internally stored
and AWAY command is sent when connecting to server) (task #7003)
* added argument for /upgrade command (path to binary)
* fixed bug with /topic when channel not open and topic not defined
(bug #20141)
* added hotlist sort with new option "look_hotlist_sort" (task #5870)
Version 0.2.5 (2007-06-07):
* fixed QUOTE command: now allowed when socket is ok (even if IRC
connection to server is not ok) (bug #20113)
* added missing IRC commands (327, 378, 379) (bug #20091)
* fixed hotlist when exiting search mode: current buffer is removed from
hotlist
* added "%M" for completion with nicks of current server (nicks on open
channels) (task #6931)
* improved key bindings: now possible to bind a key on many commands,
separated by semicolon (task #5444)
* improved IRC long message split: use word boundary (task #6685)
* removed ":" for unknown IRC commands before arguments (bug #19929)
* fixed "%C" completion: now completes with all channels of all servers
* fixed bug with "/buffer query_name", added server and channel completion
for /buffer command (bug #19928)
* added cmake for weechat compile (patch #5943)
* fixed IRC mode parsing when receiving modes with arguments (bug #19902)
* fixed crash with IRC JOIN malformed message (bug #19891)
* fixed bug with nick prefixes on some IRC servers (bug #19854)
* improved setup file save: now writes temporary file, then rename it
(task #6847)
* fixed bug with $nick/$channel/$server variables in commands
* forget current nick when user manually disconnects from server
* fixed nick display in input window
* fixed bug with erroneous nickname when connecting to server (bug #19812)
* fixed display bugs in IRC error messages
* added protocol priority for gnutls (patch #5915)
* added channel admin mode '!' for some IRC servers
* fixed bug with iso2022jp locale (bug #18719)
* fixed string format bug when displaying string thru plugin script API
* added /reconnect command (task #5448)
* added "-all" option for /connect and /disconnect commands (task #6232)
* improved nick completion: completion with last speakers first and self
nick at the end; added option look_nick_completion_smart, enabled by
default (task #5896)
* fixed nick completion in command arguments (bug #19590)
* fixed possible crash with nick completion when a nick leaves channel
(bug #19589)
* added color for input text not found in buffer history
* fixed USER message when connecting to IRC server (patch #5835)
Version 0.2.4 (2007-03-29):
* fixed color bug with IRC messages displayed by plugins (bug #19442)
* fixed topic charset, now using channel charset if defined (bug #19386)
* renamed log file for DCC chat (now <server>.dcc.<nick>.weechatlog)
* fixed crash when closing a pv if a DCC chat is open on same nick
(bug #19147)
* fixed bug with channel topic after reconnection (not erased) (bug #19384)
* added current buffer in hotlist when scrolling up in buffer (task #6664)
* fixed bug with explode_string / free_exploded_string when max_items > 0
* added new key (ctrl-R) for interactive and incremental search in buffer
history (task #6628)
* fixed /topic completion when no topic set on current channel (bug #19322)
* improved password hiding, code cleanup (bug #19229)
* added new return code in plugin API to force highlight (for message
handlers only)
* fixed bug with server buffer when "look_one_server_buffer" is ON and
server buffer is moved to any number > 1 (bug #19219)
* fixed /help command: displays plugin help for redefined commands
(bug #19166)
* prefix '/' disabled in commands (patch #5769)
* fixed completion of redefined commands removed by plugins (bug #19176)
* fixed memory leaks in perl and python plugins (bug #19163)
* added "call" option to /key command, added new key function "insert" to
insert text on command line (task #6468)
* fixed permissions on "dcc" and "logs" directories (bug #18978)
* added event handler to plugin API
* added scots quickstart guide
* added numeric argument for /clear command (buffer number) (patch #5372)
* fixed crash when /away command is issued with no server connection
(bug #18839)
* fixed crash when closing a buffer opened on many windows
* fixed freeze with SSL server when disconnecting after connection loss
(bug #18735)
Version 0.2.3 (2007-01-10):
* fixed display bugs with nicklist at top/bottom when look_nicklist_separator
is OFF (bug #18737)
* fixed iconv problem, causing truncated words when using iso locale
* fixed topic scroll when topic has multi-bytes chars
* fixed compilation problem with iconv under FreeBSD
* fixed bugs with charset: now decodes/encodes nicks and channels in IRC
messages (bug #18716)
Version 0.2.2 (2007-01-06):
* fixed bug with status bar (missing refresh) when closing a buffer
* fixed bug with use of first buffer for a channel if not connected
to server (now allowed only for a server buffer)
* fixed refresh bug with private buffer title
* fixed bug with nick completion in command args (now uses option
look_nick_completion_ignore)
* fixed display bug with color for first line on screen (bug #17719)
* added anti-flood option (irc_anti_flood) (task #5442)
* fixed bug with "set_config" function in plugins API (bug #18448)
* plugins: "add_message_handler" now accepts "*" for all IRC messages
* added keys (F9/F10) to scroll topic (task #6030)
* added auto completion with channels and filenames (task #5423)
* fixed memleak in keyboard input
* fixed refresh bug when changing config options if window is splited
* added space between chat and nicklist when position is "right" (bug #17852)
* added option "look_nicklist_separator" (task #5437)
* fixed bug with DCC SEND when filename begins with '~'
* added "irc_send_unknown_commands" option to send unknown commands to
IRC server (OFF by default) (task #5947)
* /charset command and charset conversions now made by "charset" plugin
* fixed display bug in status bar, wrong length when using UTF-8
* fixed bug with ignore: now any IRC command is allowed
* fixed crash with Ctrl-T (transpose) and one char on line (bug #18153)
* added filename completion (task #5425)
* added "modifier" in plugins API
* improved /plugin command
* fixed bug on ignore with "mode" IRC command (bug #18058)
* fixed crash when loading ruby script if file does not exist, with
Ruby >= 1.9 only (bug #18064)
* added date in plugin function get_buffer_data()
* fixed some portability bugs (patch #5271)
* fixed iconv detection for BSD (patch #5456)
* fixed typo in configure.in (bash specific test) (patch #5450)
* mode changes with /op, /deop, /voice, /devoice, /halfop, /dehalfop are
now sent in one mode command to server (task #5968)
* added more values for config boolean values: y/true/t/1 and n/false/f/0
* fixed bug with /alias and arguments (like $1), now text after
argument(s) is used (bug #17944)
* fixed minor display bug with special chars on some arch like PPC
Version 0.2.1 (2006-10-01):
* fixed crash for DCC receiver when resuming a file (bug #17885)
* fixed DCC error for sender when receiver cancels DCC (bug #17838)
* fixed random crash with /upgrade command (error when loading buffers)
* fixed buffer search by server/channel: now if only channel is specified,
a channel of another server can be found
* fixed highlight for DCC, invite and notice: when a window is displaying
buffer, there's no highlight
* command "/away -all" now allowed when not connected to current server
* new signals handled: SIGTERM and SIGHUP (received when terminal is closed):
clean WeeChat quit (send quit to irc servers then quit WeeChat)
* added some new default key bindings for existing keys (for some OS)
* command /key now ok with one arg (key name): display key if found
* fixed bug with CTCP VERSION sent on channels (bug #17547)
* added current channel completion for /ctcp command
* fixed bugs in get_buffer_data() which breaks the retrieval of buffer
content (perl, lua)
* fixed nicklist display bug when top/bottom (not enough lines) (bug #17537)
* fixed bug with auto-rejoin of keyed chans (bug #17534)
* added default nick completion when line starts with '//' (bug #17535)
* values yes/no accepted (as on/off) for config boolean values (task #5454)
* added server default notify level (set by /buffer notify on server buffer)
(task #5634)
* fixed crashs with /buffer and /charset commands when not connected to any
server (bug #17525)
* added special vars $nick/$channel/$server for server_command, alias and
plugin command handlers
* added arguments $1,$2,..,$9 and $* for alias (task #5831)
* added hotlist in session file when using /upgrade command (task #5449)
* fixed nick refresh problem with unrealircd specific modes: chan owner (~)
and chan admin (&) (bug #17340)
Version 0.2.0 (2006-08-19):
* added 'C'lear option on IRC raw buffer
@@ -41,6 +262,7 @@ Version 0.2.0 (2006-08-19):
* added polish, russian and czech quickstart guide
* fixed display bug with special char (bug #16732)
* added color encoding for some commands like /me
* added aspell plugin
* renamed plugins names (removed "lib" prefix in name)
* fixed crash when closing DCC/raw buffer if 2 are open (bug #16808)
* fixed crashes with DCC chat remove/purge on DCC view (bug #16775)
+64 -11
View File
@@ -1,4 +1,4 @@
WeeChat FAQ, 2006-08-19
WeeChat FAQ, 2007-09-06
=======================
Intended audience:
@@ -75,16 +75,36 @@ A: For help you can type /help. For help about a command, type /help command.
2.3
================================================================================
Q: I don't see some chars with accents, what can I do?
Q: I heard about "buffers" and "windows", what's the difference?
A: You have to setup charset used for decoding (ISO and UTF), encoding, and
internal WeeChat charset.
Internal charset should be empty value, except if WeeChat failed to
detect your locale (WeeChat looks for "UTF-8" in your locale name).
A: A window is used when you split screen vertically or horizontally.
A buffer is a "view" for a window. Each window displays a buffer, and
many windows may display same buffer.
Examples of buffers: server messages, channel, DCC list, ..
2.4
================================================================================
Q: I don't see some chars with accents, what can I do?
A: For versions < 0.2.3, please upgrade to last stable version.
For versions >= 0.2.3 :
- check that weechat-curses is linked to libncursesw (warning: needed
on most distributions but not all) :
ldd /path/to/weechat-curses
- check that "Charset" plugin is loaded with /plugin command
(if it is not, then you probably need "weechat-plugins" package)
- check charset line (on server buffer), you should see ISO-XXXXXX or
UTF-8 for terminal charset. If you see ANSI_X3.4-1968 or other values,
probably your locale is wrong.
- setup global decode value, for example:
/setp charset.global.decode = ISO-8859-15
- if you are using UTF-8 locale, check that your terminal is UTF-8
ready. Terminal recommended for UTF-8 is rxvt-unicode.
2.5
================================================================================
Q: How can I customize key bindings?
A: Key bindings are customizable with /key command.
@@ -92,7 +112,7 @@ A: Key bindings are customizable with /key command.
in input zone.
2.5
2.6
================================================================================
Q: How can I load Perl scripts?
Are Perl scripts compatible with other IRC clients ?
@@ -104,7 +124,7 @@ A: You can use /perl command to load scripts (default path is
Perl scripts are not compatible with other IRC clients.
2.6
2.7
================================================================================
Q: How can I load Python scripts?
Are Python scripts compatible with other IRC clients ?
@@ -116,7 +136,7 @@ A: You can use /python command to load scripts (default path is
Python scripts are not compatible with other IRC clients.
2.7
2.8
================================================================================
Q: How can I load Ruby scripts?
Are Ruby scripts compatible with other IRC clients ?
@@ -128,7 +148,7 @@ A: You can use /ruby command to load scripts (default path is
Ruby scripts are not compatible with other IRC clients.
2.8
2.9
================================================================================
Q: How can I load Lua scripts?
Are Lua scripts compatible with other IRC clients ?
@@ -140,7 +160,7 @@ A: You can use /lua command to load scripts (default path is
Lua scripts are not compatible with other IRC clients.
2.9
2.10
================================================================================
Q: When I'm using weechat under screen, I have weird chars, when I switch
window for example, how to fix that?
@@ -150,6 +170,39 @@ A: This may be caused by bad value of TERM variable (look at echo $TERM).
is ok (like many other values).
2.11
================================================================================
Q: I want to change language used by WeeChat for messages, but without
exiting WeeChat, is it possible?
A: Yes, you have to use python script shell.py (available on WeeChat
website) and issue these commands when script is loaded:
/shell setenv LANG=en_US.UTF-8
/upgrade
(to have english messages with UTF-8 encoding for terminal, for ISO
users, you can issue: /shell setenv LANG=en_US)
2.12
================================================================================
Q: With Curses GUI, how can I copy/paste text without pasting nicklist ?
A: You can use a terminal with rectangular selection (like rxvt-unicode,
konsole, ...).
Other solution is to move nicklist to top or bottom, for example:
/set look_nicklist_position = top
2.13
================================================================================
Q: How to be warned when someone highlights me on a channel ?
A: You can use sound.pl script (available on scripts page), and then
setup a system command (to play sound, display message, ..) with this
command :
/setp perl.sound.cmd_highlight = "/usr/bin/command arguments..."
3.1
================================================================================
Q: How should I report bugs?
+72 -12
View File
@@ -1,4 +1,4 @@
WeeChat FAQ, 2006-08-19
WeeChat FAQ, 2007-09-06
=======================
Public concerné :
@@ -79,17 +79,41 @@ R: Pour obtenir de l'aide tapez /help. Pour de l'aide sur une commande,
2.3
================================================================================
Q: Je ne vois pas bien certains accents dans WeeChat, que faire ?
Q: J'ai entendu parler de "buffers" et "windows", quelle est la
différence ?
R: Il faut configurer le charset utilisé pour le décodage (ISO et UTF),
l'encodage ainsi que le charset interne à WeeChat.
Le charset interne à WeeChat doit être une valeur vide, sauf si WeeChat
n'arrive pas à déterminer votre locale (WeeChat recherche "UTF-8" dans
le nom de la locale).
R: Une fenêtre ("window") est utilisée quand vous partagez l'écran
verticalement ou horizontalement.
Un tampon ("buffer") est une "vue" pour une fenêtre. Chaque fenêtre
affiche un tampon, et plusieurs fenêtres peuvent afficher le même
tampon.
Exemples de tampons: messages serveur, canal, liste des DCC, etc...
2.4
================================================================================
Q: Je ne vois pas bien certains accents dans WeeChat, que faire ?
R: Pour les versions < 0.2.3, merci d'installer la dernière version stable.
Pour les versions >= 0.2.3 :
- vérifiez que weechat-curses est lié avec libncursesw (attention:
nécessaire sur beaucoup de distributions, mais pas toutes) :
ldd /chemin/vers/weechat-curses
- vérifiez que l'extension "Charset" est chargée avec la commande
/plugin (s'il ne l'est pas, vous devez peut-être installer le
paquet "weechat-plugins")
- vérifiez la ligne charset (sur le tampon serveur), vous devriez voir
ISO-XXXXXX ou UTF-8 pour le charset du terminal. Si vous voyez
ANSI_X3.4-1968 ou d'autres valeurs, votre locale est probablement
erronée.
- affectez la valeur pour le décodage global, par exemple :
/setp charset.global.decode = ISO-8859-15
- si vous utilisez la locale UTF-8, vérifiez que votre terminal est
compatible UTF-8. Un terminal conseillé pour l'UTF-8 est rxvt-unicode.
2.5
================================================================================
Q: Comment puis-je configurer les raccourcis clavier ?
R: Les raccourcis clavier sont modifiables avec la commande /key.
@@ -97,7 +121,7 @@ R: Les raccourcis clavier sont modifiables avec la commande /key.
d'une touche et de l'inclure dans la zone de saisie.
2.5
2.6
================================================================================
Q: Comment puis-je charger des scripts Perl ?
Les scripts Perl sont-ils compatibles avec d'autres clients IRC ?
@@ -109,7 +133,7 @@ R: La commande /perl permet de charger les scripts Perl (le chemin par d
Les scripts Perl ne sont pas compatibles avec d'autres clients IRC.
2.6
2.7
================================================================================
Q: Comment puis-je charger les scripts Python ?
Les scripts Python sont-ils compatibles avec d'autres clients IRC ?
@@ -121,7 +145,7 @@ R: La commande /python permet de charger les scripts Python (le chemin par
Les scripts Python ne sont pas compatibles avec d'autres clients IRC.
2.7
2.8
================================================================================
Q: Comment puis-je charger des scripts Ruby ?
Les scripts Ruby sont-ils compatibles avec d'autres clients IRC ?
@@ -133,7 +157,7 @@ R: La commande /ruby permet de charger les scripts Ruby (le chemin par
Les scripts Ruby ne sont pas compatibles avec d'autres clients IRC.
2.8
2.9
================================================================================
Q: Comment puis-je charger des scripts Lua ?
Les scripts Lua sont-ils compatibles avec d'autres clients IRC ?
@@ -145,7 +169,7 @@ R: La commande /lua permet de charger les scripts Lua (le chemin par
Les scripts Lua ne sont pas compatibles avec d'autres clients IRC.
2.9
2.10
================================================================================
Q: Quand j'utilise weechat sous screen, j'ai des caractères bizarres
notamment en changeant de fenêtre, comment corriger ça ?
@@ -155,6 +179,42 @@ R: Cela peut
problèmes, utilisez "xterm" qui est ok (comme plein d'autres valeurs).
2.11
================================================================================
Q: Je souhaite changer la langue des messages affichés par WeeChat, mais
sans quitter WeeChat, est-ce possible ?
R: Oui, il faut utiliser le script python shell.py (disponible sur le site
de WeeChat) et taper ces commandes une fois le script chargé :
/shell setenv LANG=en_US.UTF-8
/upgrade
(pour avoir des messages anglais avec encodage UTF-8 pour le terminal,
pour les utilisateurs en ISO, vous pouvez taper:
/shell setenv LANG=en_US)
2.12
================================================================================
Q: Avec l'interface Curses, comment puis-je copier/coller du texte sans
coller la liste des pseudos ?
R: Vous pouvez utiliser un terminal qui propose la sélection rectangulaire
(comme rxvt-unicode, konsole, etc...).
Une autre solution est de déplacer la liste des pseudos en haut ou en
bas, par exemple :
/set look_nicklist_position = top
2.13
================================================================================
Q: Comment être averti lorsque quelqu'un prononce mon pseudo sur un canal ?
R: Vous pouvez utiliser le script sound.pl (disponible sur la page des
scripts), puis configurer une commande système (jouant un son, affichant
un message à l'écran, etc...) comme ceci :
/setp perl.sound.cmd_highlight = "/usr/bin/commande parametres..."
3.1
================================================================================
Q: Comment dois-je reporter les bugs ?
+5 -5
View File
@@ -1,8 +1,8 @@
# Copyright (c) 2003-2006 FlashCode <flashcode@flashtux.org>
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
SUBDIRS = po doc intl src
@@ -21,9 +20,10 @@ EXTRA_DIST = config.rpath BUGS FAQ FAQ.fr \
debian/changelog debian/control \
debian/copyright debian/compat \
debian/rules debian/weechat-common.docs \
debian/lintian-override \
debian/weechat-common.install debian/weechat-curses.dirs \
debian/weechat-curses.install debian/weechat-plugins.install \
debian/weechat-curses.menu debian/NEWS \
debian/weechat-curses.menu debian/NEWS debian/weechat.xpm \
weechat.spec weechat_icon_32.png
ACLOCAL_AMFLAGS = -I m4
+71
View File
@@ -1,8 +1,79 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
* FlashCode, 2009-06-13
WeeChat 0.2.6.3 released.
This version fixes gnutls detection.
* FlashCode, 2009-04-18
WeeChat 0.2.6.2 released.
This version fixes a bug with charset decoding (like iso2022jp).
* FlashCode, 2009-03-14
WeeChat 0.2.6.1 released.
This version fixes a major bug: crash with some special chars in IRC
messages.
* FlashCode, 2007-09-06
WeeChat 0.2.6 released.
* FlashCode, 2007-06-07
WeeChat 0.2.5 released.
* FlashCode, 2007-03-29
WeeChat 0.2.4 released.
* FlashCode, 2007-01-10
WeeChat 0.2.3 released.
This version fixes several major bugs of version 0.2.2.
All users of version 0.2.2 should upgrade to this version.
* FlashCode, 2007-01-06
WeeChat 0.2.2 released.
Important release notes:
- new charset plugin:
- for users of any previous version, all your charset settings
in weechat.rc will be LOST! You should save your weechat.rc
to keep your values and set them again with new "charset" plugin.
- for ISO users: history of channels may be without accents
(after /upgrade), this is not recoverable, but this is not a bug.
All new messages should be ok.
- be careful, now default encode is UTF-8 for all channels (before
it was terminal charset). If you still want to send messages as
ISO-8859-1, you should send either global encode or server specific
encode to ISO-8859-1.
For global encode: /setp charset.global.encode = "ISO-8859-1"
For server encode: (on server buffer) /charset encode ISO-8859-1
- new keys for topic scroll:
- new keys for scrolling topic: F9/F10
- key F10 was used for "infobar_clear" in previous WeeChat versions,
you have to manually rebind this key (except for new WeeChat users):
/key <press alt-k then F10> scroll_topic_right
which gives something like this:
/key meta2-21~ scroll_topic_right
* FlashCode, 2006-10-01
WeeChat 0.2.1 released.
* FlashCode, 2006-08-19
WeeChat 0.2.0 released.
Important release notes:
- if you upgraded with /upgrade in WeeChat, you should /disconnect and
+3 -4
View File
@@ -22,14 +22,14 @@ Features
Copyright
---------
WeeChat (c) Copyright 2003-2006 by FlashCode <flashcode@flashtux.org>
WeeChat (c) Copyright 2003-2007 by FlashCode <flashcode@flashtux.org>
(see AUTHORS file if you want to contact authors)
WeeChat is distributed under GPL licence (see COPYING file for complete license):
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@@ -38,8 +38,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
along with this program. If not, see <http://www.gnu.org/licenses/>.
---
+77 -18
View File
@@ -1,20 +1,79 @@
#!/bin/sh
#
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# gettextize updates Makefile.am, configure.in
cp configure.in configure.in.old
cp Makefile.am Makefile.am.old
if test "$1" = "--auto" ; then
grep -v 'read dummy < /dev/tty' $(which gettextize) | /bin/sh -s -- --copy --force --intl --no-changelog
else
gettextize --copy --force --intl --no-changelog
fi
mv Makefile.am.old Makefile.am
mv configure.in.old configure.in
libtoolize --automake --force --copy
aclocal
# autoheader creates config.h.in needed by autoconf
autoheader
# autoconf creates configure
autoconf
# automake creates Makefile.in
automake --add-missing --copy --gnu
###
### common stuff
###
OK="\\033[70G[\\033[1;32mOK\\033[1;00m]"
FAIL="\\033[70G[\\033[1;31mFAILED\\033[1;00m]"
AUTOGEN_LOG=autogen.log
err ()
{
echo "-------"
echo "Error :"
echo "---8<-----------------------------------"
cat $AUTOGEN_LOG
echo "----------------------------------->8---"
exit 1
}
run ()
{
echo -n "Running \"$@\""
eval $@ >$AUTOGEN_LOG 2>&1
if [ $? = 0 ] ; then
echo -e $OK
else
echo -e $FAIL
err
fi
}
###
### cleanning part
###
# remove autotools stuff
run "rm -rf config"
run "rm -f config.h.in"
run "rm -f aclocal.m4 configure config.log config.status"
run "rm -rf autom4te*.cache"
# remove libtool stuff
run "rm -f libtool"
# remove gettext stuff
run "rm -f ABOUT-NLS"
run "rm -rf intl"
###
### configuration part
###
# create the config directory
run "mkdir -p config/m4"
run "mkdir intl"
# execute autotools cmds
run "autopoint -f"
run "libtoolize --automake --force --copy"
run "aclocal --force -I config/m4"
run "autoheader"
run "autoconf"
run "automake --add-missing --copy --gnu"
# ending
rm -f $AUTOGEN_LOG
+48
View File
@@ -0,0 +1,48 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Aspell
# This module finds if libaspell is installed and determines where
# the include files and libraries are.
#
# This code sets the following variables:
#
# ASPELL_INCLUDE_PATH = path to where aspell.h can be found
# ASPELL_LIBRARY = path to where libaspell.so* can be found
IF (ASPELL_FOUND)
# Already in cache, be silent
SET(ASPELL_FIND_QUIETLY TRUE)
ENDIF (ASPELL_FOUND)
FIND_PATH(ASPELL_INCLUDE_PATH
NAMES aspell.h
PATHS /usr/include /usr/local/include /usr/pkg/include
)
FIND_LIBRARY(ASPELL_LIBRARY
NAMES aspell aspell-15
PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
)
IF (ASPELL_INCLUDE_PATH AND ASPELL_LIBRARY)
SET(ASPELL_FOUND TRUE)
ENDIF (ASPELL_INCLUDE_PATH AND ASPELL_LIBRARY)
MARK_AS_ADVANCED(
ASPELL_INCLUDE_PATH
ASPELL_LIBRARY
)
+67
View File
@@ -0,0 +1,67 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Gettext
# This module finds if gettext is installed and determines where
# the include files and libraries are.
#
# This code sets the following variables:
#
# GETTEXT_FOUND = is gettext usable on system?
IF(GETTEXT_FOUND)
# Already in cache, be silent
SET(GETTEXT_FIND_QUIETLY TRUE)
ENDIF(GETTEXT_FOUND)
INCLUDE(CheckIncludeFiles)
INCLUDE(CheckLibraryExists)
INCLUDE(CheckFunctionExists)
FIND_PATH(LIBINTL_INCLUDE
NAMES libintl.h
PATH /usr/local/include /usr/pkg/include /usr/include
)
SET(CMAKE_REQUIRED_INCLUDES ${LIBINTL_INCLUDE})
CHECK_INCLUDE_FILES(libintl.h HAVE_LIBINTL_H)
IF(HAVE_LIBINTL_H)
CHECK_FUNCTION_EXISTS(dgettext LIBC_HAS_DGETTEXT)
IF(LIBC_HAS_DGETTEXT)
SET(GETTEXT_FOUND TRUE)
ELSE(LIBC_HAS_DGETTEXT)
FIND_LIBRARY(LIBINTL_LIBRARY NAMES intl
PATHS
/usr/local/lib
/usr/lib
)
IF(LIBINTL_LIBRARY)
IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
SET(CMAKE_REQUIRED_LIBRARIES "iconv")
CHECK_LIBRARY_EXISTS(${LIBINTL_LIBRARY} "libintl_dgettext" "" LIBINTL_HAS_DGETTEXT)
ELSE(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
CHECK_LIBRARY_EXISTS(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
IF(LIBINTL_HAS_DGETTEXT)
SET(GETTEXT_FOUND TRUE)
ENDIF(LIBINTL_HAS_DGETTEXT)
ENDIF(LIBINTL_LIBRARY)
ENDIF(LIBC_HAS_DGETTEXT)
ENDIF(HAVE_LIBINTL_H)
+71
View File
@@ -0,0 +1,71 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find GnuTLS
# This module finds if libgnutls is installed and determines where
# the include files and libraries are.
#
# This code sets the following variables:
#
# GNUTLS_INCLUDE_PATH = path to where <gnutls/gnutls.h> can be found
# GNUTLS_LIBRARY = path to where libgnutls.so* can be found
# GNUTLS_CFLAGS = cflags to use to compile
# GNUTLS_LDFLAGS = ldflags to use to compile
IF(GNUTLS_INCLUDE_PATH AND GNUTLS_LIBRARY)
# Already in cache, be silent
set(GNUTLS_FIND_QUIETLY TRUE)
ENDIF(GNUTLS_INCLUDE_PATH AND GNUTLS_LIBRARY)
FIND_PROGRAM(PKG_CONFIG_EXECUTABLE NAMES pkg-config)
EXECUTE_PROCESS(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=prefix gnutls
OUTPUT_VARIABLE GNUTLS_PREFIX
)
EXECUTE_PROCESS(COMMAND ${PKG_CONFIG_EXECUTABLE} --cflags gnutls
OUTPUT_VARIABLE GNUTLS_CFLAGS
)
STRING(REGEX REPLACE "[\r\n]" "" GNUTLS_CFLAGS "${GNUTLS_FLAGS}")
EXECUTE_PROCESS(COMMAND ${PKG_CONFIG_EXECUTABLE} --libs gnutls
OUTPUT_VARIABLE GNUTLS_LDFLAGS
)
STRING(REGEX REPLACE "[\r\n]" "" GNUTLS_LDFLAGS "${GNUTLS_LDFLAGS}")
SET(GNUTLS_POSSIBLE_INCLUDE_PATH "${GNUTLS_PREFIX}/include")
SET(GNUTLS_POSSIBLE_LIB_DIR "${GNUTLS_PREFIX}/lib")
FIND_PATH(GNUTLS_INCLUDE_PATH
NAMES gnutls/gnutls.h
PATHS GNUTLS_POSSIBLE_INCLUDE_PATH
)
FIND_LIBRARY(GNUTLS_LIBRARY
NAMES gnutls
PATHS GNUTLS_POSSIBLE_LIB_DIR
)
IF (GNUTLS_INCLUDE_PATH AND GNUTLS_LIBRARY)
SET(GNUTLS_FOUND TRUE)
ENDIF (GNUTLS_INCLUDE_PATH AND GNUTLS_LIBRARY)
MARK_AS_ADVANCED(
GNUTLS_INCLUDE_PATH
GNUTLS_LIBRARY
GNUTLS_CFLAGS
GNUTLS_LDFLAGS
)
+79
View File
@@ -0,0 +1,79 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Iconv
# This module finds if libiconv is installed and determines where
# the include files and libraries are.
#
# This code sets the following variables:
#
# ICONV_INCLUDE_PATH = path to where <iconv.h> can be found
# ICONV_LIBRARY = path to where libiconv.so* can be found (on non glibc based systems)
#
# ICONV_FOUND = is iconv usable on system?
IF(ICONV_FOUND)
# Already in cache, be silent
set(ICONV_FIND_QUIETLY TRUE)
ENDIF(ICONV_FOUND)
FIND_PATH(ICONV_INCLUDE_PATH
NAMES iconv.h
PATHS /usr/include /usr/local/include /usr/pkg/include
)
FIND_LIBRARY(ICONV_LIBRARY
NAMES iconv
PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
)
IF(ICONV_INCLUDE_PATH)
IF(ICONV_LIBRARY)
STRING(REGEX REPLACE "/[^/]*$" "" ICONV_LIB_PATH "${ICONV_LIBRARY}")
CHECK_LIBRARY_EXISTS(iconv libiconv_open ${ICONV_LIB_PATH} ICONV_FOUND)
IF(NOT ICONV_FOUND)
CHECK_LIBRARY_EXISTS(iconv iconv_open ${ICONV_LIB_PATH} ICONV_FOUND)
ENDIF(NOT ICONV_FOUND)
ELSE(ICONV_LIBRARY)
CHECK_FUNCTION_EXISTS(iconv_open ICONV_FOUND)
ENDIF(ICONV_LIBRARY)
ENDIF(ICONV_INCLUDE_PATH)
include(CheckCSourceCompiles)
IF(ICONV_LIBRARY)
SET(CMAKE_REQUIRED_LIBRARIES ${ICONV_LIBRARY})
SET(CMAKE_REQUIRED_INCLUDES ${ICONV_INCLUDE_PATH})
ENDIF(ICONV_LIBRARY)
SET(CMAKE_REQUIRED_FLAGS -Werror)
check_c_source_compiles("
#include <iconv.h>
int main(){
iconv_t conv = 0;
const char* in = 0;
size_t ilen = 0;
char* out = 0;
size_t olen = 0;
iconv(conv, &in, &ilen, &out, &olen);
return 0;
}
" ICONV_2ARG_IS_CONST)
MARK_AS_ADVANCED(
ICONV_INCLUDE_PATH
ICONV_LIBRARY
ICONV_FOUND
)
+81
View File
@@ -0,0 +1,81 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Lua
# This module finds if liblua is installed and determines where
# the include files and libraries are.
#
# This code sets the following variables:
#
# LUA_INCLUDE_PATH = path to where <lua.h> can be found
# LUA_LIBRARY = path to where liblua.so* (and liblualib.so* for lua <can be found (on non glibc based systems)
#
# LUA_FOUND = is liblua usable on system?
IF(LUA_FOUND)
# Already in cache, be silent
SET(LUA_FIND_QUIETLY TRUE)
ENDIF(LUA_FOUND)
FIND_PATH(
LUA51_INCLUDE_PATH lua.h
PATHS /usr/include /usr/local/include /usr/pkg/include
PATH_SUFFIXES lua51 lua5.1 lua-5.1
)
FIND_LIBRARY(
LUA51_LIBRARY NAMES lua51 lua5.1 lua-5.1 lua
PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
)
IF(LUA51_INCLUDE_PATH AND LUA51_LIBRARY)
SET(LUA_INCLUDE_PATH "${LUA51_INCLUDE_PATH}")
SET(LUA_LIBRARY "${LUA51_LIBRARY}")
SET(LUA_VERSION "5.1")
SET(LUA_FOUND TRUE)
ELSE(LUA51_INCLUDE_PATH AND LUA51_LIBRARY)
FIND_PATH(
LUA50_INCLUDE_PATH lua.h
PATHS /usr/include /usr/local/include /usr/pkg/include
PATH_SUFFIXES lua50 lua5.0 lua-5.0 lua
)
FIND_LIBRARY(
LUA50_LIBRARY NAMES lua50 lua5.0 lua-5.0 lua
PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
)
FIND_LIBRARY(
LUALIB50_LIBRARY NAMES lualib50 lualib5.0 lualib-5.0 lualib
PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
)
IF(LUA50_INCLUDE_PATH AND LUA50_LIBRARY AND LUALIB50_LIBRARY)
SET(LUA_INCLUDE_PATH "${LUA50_INCLUDE_PATH}")
SET(LUA_LIBRARY "${LUA50_LIBRARY}")
SET(LUALIB_LIBRARY "${LUALIB50_LIBRARY}")
SET(LUA_VERSION "5.0")
SET(LUA_FOUND TRUE)
ENDIF(LUA50_INCLUDE_PATH AND LUA50_LIBRARY AND LUALIB50_LIBRARY)
ENDIF(LUA51_INCLUDE_PATH AND LUA51_LIBRARY)
MARK_AS_ADVANCED(
LUA_INCLUDE_PATH
LUA_LIBRARY
LUALIB_LIBRARY
# LUA_VERSION
)
+38
View File
@@ -0,0 +1,38 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
IF(NCURSES_FOUND)
SET(NCURSES_FIND_QUIETLY TRUE)
ENDIF(NCURSES_FOUND)
FIND_PATH(NCURSES_INCLUDE_PATH
NAMES ncurses.h curses.h
PATHS /usr/include /usr/local/include /usr/pkg/include
)
FIND_LIBRARY(NCURSES_LIBRARY
NAMES ncursesw ncurses
PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
)
IF (NCURSES_INCLUDE_PATH AND NCURSES_LIBRARY)
SET(NCURSES_FOUND TRUE)
ENDIF(NCURSES_INCLUDE_PATH AND NCURSES_LIBRARY)
MARK_AS_ADVANCED(
NCURSES_INCLUDE_PATH
NCURSES_LIBRARY
)
+82
View File
@@ -0,0 +1,82 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Perl libraries
# This module finds if Perl is installed and determines where the include files
# and libraries are. It also determines what the name of the library is. This
# code sets the following variables:
#
# PERL_EXECUTABLE = full path to the perl binary
# PERL_INCLUDE_PATH = path to where perl.h can be found
# PERL_LIBRARY = path to where libperl.so* can be found
# PERL_CFLAGS = perl compiler options for compiling
# PERL_LFLAGS = perl compiler options for linking
IF(PERL_FOUND)
# Already in cache, be silent
SET(PERL_FIND_QUIETLY TRUE)
ENDIF(PERL_FOUND)
FIND_PROGRAM(PERL_EXECUTABLE
NAMES perl perl5
PATHS /usr/bin /usr/local/bin /usr/pkg/bin
)
IF(PERL_EXECUTABLE)
EXECUTE_PROCESS(
COMMAND ${PERL_EXECUTABLE} -MConfig -e "print \"\$Config{archlibexp}/CORE\""
OUTPUT_VARIABLE PERL_INTERNAL_DIR
)
EXECUTE_PROCESS(
COMMAND ${PERL_EXECUTABLE} -MExtUtils::Embed -e ccopts
OUTPUT_VARIABLE PERL_CFLAGS
)
EXECUTE_PROCESS(
COMMAND ${PERL_EXECUTABLE} -MExtUtils::Embed -e ldopts
OUTPUT_VARIABLE PERL_LFLAGS
)
# remove the new lines from the output by replacing them with empty strings
STRING(REPLACE "\n" "" PERL_INTERNAL_DIR "${PERL_INTERNAL_DIR}")
STRING(REPLACE "\n" "" PERL_CFLAGS "${PERL_CFLAGS}")
STRING(REPLACE "\n" "" PERL_LFLAGS "${PERL_LFLAGS}")
FIND_PATH(PERL_INCLUDE_PATH
NAMES perl.h
PATHS ${PERL_INTERNAL_DIR}
)
FIND_LIBRARY(PERL_LIBRARY
NAMES perl
PATHS /usr/lib /usr/local/lib /usr/pkg/lib ${PERL_INTERNAL_DIR}
)
IF(PERL_LIBRARY AND PERL_INCLUDE_PATH)
SET(PERL_FOUND TRUE)
ENDIF(PERL_LIBRARY AND PERL_INCLUDE_PATH)
MARK_AS_ADVANCED(
PERL_EXECUTABLE
PERL_INCLUDE_PATH
PERL_LIBRARY
PERL_CFLAGS
PERL_LFLAGS
)
ENDIF(PERL_EXECUTABLE)
+79
View File
@@ -0,0 +1,79 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Python
# This module finds if Python is installed and determines where the include files
# and libraries are. It also determines what the name of the library is. This
# code sets the following variables:
#
# PYTHON_EXECUTABLE = full path to the python binary
# PYTHON_INCLUDE_PATH = path to where python.h can be found
# PYTHON_LIBRARY = path to where libpython.so* can be found
# PYTHON_LFLAGS = python compiler options for linking
IF(PYTHON_FOUND)
# Already in cache, be silent
SET(PYTHON_FIND_QUIETLY TRUE)
ENDIF(PYTHON_FOUND)
FIND_PROGRAM(PYTHON_EXECUTABLE
NAMES python python2.5 python2.4 python2.3 python2.2
PATHS /usr/bin /usr/local/bin /usr/pkg/bin
)
IF(PYTHON_EXECUTABLE)
EXECUTE_PROCESS(
COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import *; print get_config_var('CONFINCLUDEPY')"
OUTPUT_VARIABLE PYTHON_INC_DIR
)
EXECUTE_PROCESS(
COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import *; print get_config_var('LIBPL')"
OUTPUT_VARIABLE PYTHON_POSSIBLE_LIB_PATH
)
EXECUTE_PROCESS(
COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import *; print get_config_var('LINKFORSHARED')"
OUTPUT_VARIABLE PYTHON_LFLAGS
)
# remove the new lines from the output by replacing them with empty strings
STRING(REPLACE "\n" "" PYTHON_INC_DIR "${PYTHON_INC_DIR}")
STRING(REPLACE "\n" "" PYTHON_POSSIBLE_LIB_PATH "${PYTHON_POSSIBLE_LIB_PATH}")
STRING(REPLACE "\n" "" PYTHON_LFLAGS "${PYTHON_LFLAGS}")
FIND_PATH(PYTHON_INCLUDE_PATH
NAMES Python.h
PATHS ${PYTHON_INC_DIR}
)
FIND_LIBRARY(PYTHON_LIBRARY
NAMES python python2.5 python2.4 python2.3 python2.2
PATHS ${PYTHON_POSSIBLE_LIB_PATH}
)
IF(PYTHON_LIBRARY AND PYTHON_INCLUDE_PATH)
SET(PYTHON_FOUND TRUE)
ENDIF(PYTHON_LIBRARY AND PYTHON_INCLUDE_PATH)
MARK_AS_ADVANCED(
PYTHON_EXECUTABLE
PYTHON_INCLUDE_PATH
PYTHON_LIBRARY
PYTHON_LFLAGS
)
ENDIF(PYTHON_EXECUTABLE)
+77
View File
@@ -0,0 +1,77 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Ruby
# This module finds if Ruby is installed and determines where the include files
# and libraries are. It also determines what the name of the library is. This
# code sets the following variables:
#
# RUBY_EXECUTABLE = full path to the ruby binary
# RUBY_INCLUDE_PATH = path to where ruby.h can be found
# RUBY_LIBRARY = path to where libruby.so* can be found
IF(RUBY_FOUND)
# Already in cache, be silent
SET(RUBY_FIND_QUIETLY TRUE)
ENDIF(RUBY_FOUND)
FIND_PROGRAM(RUBY_EXECUTABLE
NAMES ruby ruby1.9 ruby19 ruby1.8 ruby18 ruby1.6 ruby16
PATHS /usr/bin /usr/local/bin /usr/pkg/bin
)
IF(RUBY_EXECUTABLE)
EXECUTE_PROCESS(
COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts Config::CONFIG['archdir']"
OUTPUT_VARIABLE RUBY_ARCH_DIR
)
EXECUTE_PROCESS(
COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts Config::CONFIG['libdir']"
OUTPUT_VARIABLE RUBY_POSSIBLE_LIB_PATH
)
EXECUTE_PROCESS(
COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts Config::CONFIG['rubylibdir']"
OUTPUT_VARIABLE RUBY_RUBY_LIB_PATH
)
# remove the new lines from the output by replacing them with empty strings
STRING(REPLACE "\n" "" RUBY_ARCH_DIR "${RUBY_ARCH_DIR}")
STRING(REPLACE "\n" "" RUBY_POSSIBLE_LIB_PATH "${RUBY_POSSIBLE_LIB_PATH}")
STRING(REPLACE "\n" "" RUBY_RUBY_LIB_PATH "${RUBY_RUBY_LIB_PATH}")
FIND_PATH(RUBY_INCLUDE_PATH
NAMES ruby.h
PATHS ${RUBY_ARCH_DIR}
)
FIND_LIBRARY(RUBY_LIBRARY
NAMES ruby ruby1.6 ruby16 ruby1.8 ruby18 ruby1.9 ruby19
PATHS ${RUBY_POSSIBLE_LIB_PATH} ${RUBY_RUBY_LIB_PATH}
)
IF(RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
SET(RUBY_FOUND TRUE)
ENDIF(RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
MARK_AS_ADVANCED(
RUBY_EXECUTABLE
RUBY_LIBRARY
RUBY_INCLUDE_PATH
)
ENDIF(RUBY_EXECUTABLE)
+21
View File
@@ -0,0 +1,21 @@
IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
STRING(REGEX REPLACE "\n" ";" files "${files}")
FOREACH(file ${files})
MESSAGE(STATUS "Uninstalling \"${file}\"")
IF(NOT EXISTS "${file}")
MESSAGE(FATAL_ERROR "File \"${file}\" does not exists.")
ENDIF(NOT EXISTS "${file}")
EXEC_PROGRAM("@CMAKE_COMMAND@" ARGS "-E remove \"${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VARIABLE rm_retval)
IF("${rm_retval}" GREATER 0)
MESSAGE(FATAL_ERROR "Problem when removing \"${file}\"")
ENDIF("${rm_retval}" GREATER 0)
ENDFOREACH(file)
+33
View File
@@ -0,0 +1,33 @@
#!/bin/sh
VERSION=@VERSION@
SRCROOT=@CMAKE_SOURCE_DIR@
BUILDDIR=@CMAKE_BINARY_DIR@
PROJECT=@PROJECT_NAME@
TAG=release-$(echo $VERSION | sed -e 's/\./-/g')
EXCLUDE="@DIST_EXCLUDE@"
EXPORT_DIR="${PROJECT}-${VERSION}"
if [ -z $CVSROOT ]; then
echo "The CVSROOT variable must be set"
exit 1
fi
echo "Exporting source tree"
if [ $(echo $VERSION | grep cvs) ]; then
cvs export -r HEAD -d $PROJECT-$VERSION $PROJECT
else
cvs export -r $TAG -d $PROJECT-$VERSION $PROJECT
fi
echo "Removing not needed stuff"
for i in $EXCLUDE ; do
echo " $i"
rm -rf $EXPORT_DIR/$i
done
echo "Generating archive"
tar cjf ${BUILDDIR}/${PROJECT}-${VERSION}.tar.bz2 ${EXPORT_DIR}
echo "Cleaning up"
rm -rf ${EXPORT_DIR}
+29
View File
@@ -0,0 +1,29 @@
#cmakedefine HAVE_ARPA_INET_H
#cmakedefine HAVE_LIBINTL_H
#cmakedefine HAVE_LIMITS_H
#cmakedefine HAVE_LOCALE_H
#cmakedefine HAVE_NETDB_H
#cmakedefine HAVE_NETINET_IN_H
#cmakedefine HAVE_STDLIB_H
#cmakedefine HAVE_STRING_H
#cmakedefine HAVE_SYS_SOCKET_H
#cmakedefine HAVE_SYS_TIME_H
#cmakedefine HAVE_SYS_TYPES_H
#cmakedefine HAVE_UNISTD_H
#cmakedefine HAVE_PWD_H
#cmakedefine HAVE_ERRNO_H
#cmakedefine HAVE_REGEX_H
#cmakedefine HAVE_WCHAR_H
#cmakedefine HAVE_SYS_FILE_H
#cmakedefine HAVE_FLOCK
#cmakedefine HAVE_LANGINFO_CODESET
#cmakedefine HAVE_STRNDUP
#cmakedefine ICONV_2ARG_IS_CONST 1
#define PACKAGE_VERSION "@VERSION@"
#define PACKAGE "@PROJECT_NAME@"
#define PACKAGE_NAME "@PROJECT_NAME@"
#define PACKAGE_STRING "@PKG_STRING@"
#define WEECHAT_LIBDIR "@LIBDIR@"
#define WEECHAT_SHAREDIR "@SHAREDIR@"
#define LOCALEDIR "@LOCALEDIR@"
#define _GNU_SOURCE 1
+118 -37
View File
@@ -1,8 +1,8 @@
# Copyright (c) 2003-2006 FlashCode <flashcode@flashtux.org>
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,23 +11,24 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.56)
AC_INIT(WeeChat, 0.2.0, flashcode@flashtux.org)
AC_INIT(WeeChat, 0.2.6.3, flashcode@flashtux.org)
AC_CONFIG_SRCDIR([src/common/weechat.c])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([weechat], [0.2.0])
AM_INIT_AUTOMAKE([weechat], [0.2.6.3])
# Checks for programs
AC_PROG_CC
AC_PROG_MAKE_SET
AC_GNU_SOURCE
AM_PROG_LIBTOOL
AC_CHECK_PROG(DBLATEX_FOUND, "dblatex", "yes")
# Add some flags for some OS
case "$host_os" in
@@ -48,7 +49,8 @@ esac
# Gettext
ALL_LINGUAS="fr es cs hu de ru"
AM_GNU_GETTEXT
AM_GNU_GETTEXT([use-libtool])
AM_GNU_GETTEXT_VERSION([0.15])
# Checks for libraries
AC_CHECK_LIB(ncurses, initscr, LIBNCURSES_FOUND=1, LIBNCURSES_FOUND=0)
@@ -84,7 +86,7 @@ AC_MSG_RESULT($ac_cv_type_socklen_t)
# Checks for library functions.
AC_FUNC_SELECT_ARGTYPES
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([gethostbyname gethostname getsockname gettimeofday inet_ntoa memset mkdir select setlocale socket strcasecmp strchr strdup strncasecmp strpbrk strrchr strstr uname regexec])
AC_CHECK_FUNCS([gethostbyname gethostname getsockname gettimeofday inet_ntoa memset mkdir select setlocale socket strcasecmp strchr strdup strndup strncasecmp strpbrk strrchr strstr uname regexec])
# Variables in config.h
@@ -97,6 +99,7 @@ AH_VERBATIM([PLUGIN_PYTHON], [#undef PLUGIN_PYTHON])
AH_VERBATIM([PLUGIN_RUBY], [#undef PLUGIN_RUBY])
AH_VERBATIM([PLUGIN_LUA], [#undef PLUGIN_LUA])
AH_VERBATIM([PLUGIN_ASPELL], [#undef PLUGIN_ASPELL])
AH_VERBATIM([PLUGIN_CHARSET], [#undef PLUGIN_CHARSET])
AH_VERBATIM([HAVE_GNUTLS], [#undef HAVE_GNUTLS])
AH_VERBATIM([HAVE_FLOCK], [#undef HAVE_FLOCK])
AH_VERBATIM([DEBUG], [#undef DEBUG])
@@ -107,6 +110,7 @@ AC_ARG_ENABLE(ncurses, [ --disable-ncurses Turn off ncurses interf
AC_ARG_ENABLE(wxwidgets, [ --enable-wxwidgets Turn on WxWidgets interface (default=no wxwidgets)],enable_wxwidgets=$enableval,enable_wxwidgets=no)
AC_ARG_ENABLE(gtk, [ --enable-gtk Turn on Gtk interface (default=no Gtk)],enable_gtk=$enableval,enable_gtk=no)
AC_ARG_ENABLE(qt, [ --enable-qt Turn on Qt interface (default=no Qt)],enable_qt=$enableval,enable_qt=no)
AC_ARG_ENABLE(gnutls, [ --disable-gnutls Turn off gnutls support (default=compiled if found)],enable_gnutls=$enableval,enable_gnutls=yes)
AC_ARG_ENABLE(plugins, [ --disable-plugins Turn off plugins support (default=plugins enabled)],enable_plugins=$enableval,enable_plugins=yes)
AC_ARG_ENABLE(perl, [ --disable-perl Turn off Perl script plugin (default=compiled if found)],enable_perl=$enableval,enable_perl=yes)
AC_ARG_ENABLE(python, [ --disable-python Turn off Python script plugin (default=compiled if found)],enable_python=$enableval,enable_python=yes)
@@ -116,7 +120,7 @@ AC_ARG_WITH(lua-inc, [ --with-lua-inc=DIR, Lua include files are i
AC_ARG_WITH(lua-lib, [ --with-lua-lib=DIR, Lua library files are in DIR (default=autodetect)],lua_lib=$withval,lua_lib='')
AC_ARG_WITH(lua-suffix, [ --with-lua-suffix=ARG Lua is suffixed with ARG (default=autodetect)],lua_suffix=$withval,lua_suffix='')
AC_ARG_ENABLE(aspell, [ --disable-aspell Turn off Aspell plugin (default=compiled if found)],enable_aspell=$enableval,enable_aspell=yes)
AC_ARG_ENABLE(gnutls, [ --disable-gnutls Turn off gnutls support (default=compiled if found)],enable_gnutls=$enableval,enable_gnutls=yes)
AC_ARG_ENABLE(charset, [ --disable-charset Turn off Charset plugin (default=compiled if found)],enable_charset=$enableval,enable_charset=yes)
AC_ARG_WITH(doc_xsl_prefix, [ --with-doc-xsl-prefix=DIR Docbook html/chunk.xsl is in DIR (default=autodetect)],doc_xsl_prefix=$withval,doc_xsl_prefix='')
AC_ARG_WITH(debug, [ --with-debug Debugging: 0=no debug, 1=debug compilation, 2=debug compilation + verbose msgs (default=1)],debug=$withval,debug=1)
@@ -193,12 +197,17 @@ fi
# ------------------------------------------------------------------------------
iconv_found="no"
ICONV_LFLAGS=""
AC_CHECK_HEADER(iconv.h,ac_found_iconv_header="yes",ac_found_iconv_header="no")
if test "x$ac_found_iconv_header" = "xyes" ; then
AC_CHECK_LIB(iconv,iconv_open,ac_found_iconv_lib="yes",ac_found_iconv_lib="no")
if test "x$ac_found_iconv_lib" = "xno" ; then
AC_CHECK_LIB(iconv,libiconv_open,ac_found_iconv_lib="yes",ac_found_iconv_lib="no")
fi
if test "x$ac_found_iconv_lib" = "xyes" ; then
LIBS="$LIBS -liconv"
ICONV_LFLAGS="-liconv"
LIBS="$LIBS $ICONV_LFLAGS"
fi
AC_MSG_CHECKING(for iconv usability in programs)
AC_TRY_RUN([
@@ -237,9 +246,11 @@ if test "x$enable_plugins" != "xyes" ; then
enable_ruby="no"
enable_lua="no"
enable_aspell="no"
enable_charset="no"
fi
# ---------------------------------- perl --------------------------------------
PERL_VERSION=
if test "x$enable_perl" = "xyes" ; then
enable_plugins="yes"
@@ -253,6 +264,7 @@ if test "x$enable_perl" = "xyes" ; then
enable_perl="no"
not_found="$not_found perl"
else
PERL_VERSION=`perl -V:version | sed "s/version='\(.*\)';/\1/"`
AC_MSG_CHECKING(for Perl headers files)
PERL_HEADER_TEST=`PT=perltest.c ; echo "#include <EXTERN.h>" > $PT; echo "#include <perl.h>" >> $PT; echo "#include <XSUB.h>" >> $PT ; echo "int main() { return 0; }" >> $PT ; $CC -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ccopts) 1>/dev/null 2>&1; echo $?; rm -f $PT $PT.out 1>/dev/null 2>&1`
@@ -262,7 +274,7 @@ if test "x$enable_perl" = "xyes" ; then
AC_MSG_RESULT(found)
AC_MSG_CHECKING(for Perl library)
PERL_LIB_TEST=`PT=perltest.c ; echo "int main() { return 0; }" > $PT ; $CC -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ldopts) 1>/dev/null 2>&1; echo $?; rm -f $PT $PT.out 1>/dev/null 2>&1`
if test "x$PERL_LIB_TEST" = "x0" ; then
if test "x$PERL_LIB_TEST" = "x0" ; then
PERL_LFLAGS=`$PERL -MExtUtils::Embed -e ldopts`
AC_MSG_RESULT(found)
else
@@ -291,11 +303,12 @@ if test "x$enable_perl" = "xyes" ; then
fi
# --------------------------------- python -------------------------------------
PYTHON_VERSION=
if test "x$enable_python" = "xyes" ; then
enable_plugins="yes"
AC_PATH_PROGS(PYTHON, python python2.4 python2.3 python2.2)
AC_PATH_PROGS(PYTHON, python python2.5 python2.4 python2.3 python2.2)
if test -z $PYTHON ; then
AC_MSG_WARN([
*** Python must be installed on your system but python interpreter couldn't be found in path.
@@ -350,6 +363,7 @@ if test "x$enable_python" = "xyes" ; then
fi
# ---------------------------------- ruby --------------------------------------
RUBY_VERSION=
if test "x$enable_ruby" = "xyes" ; then
enable_plugins="yes"
@@ -363,6 +377,7 @@ if test "x$enable_ruby" = "xyes" ; then
enable_ruby="no"
not_found="$not_found ruby"
else
RUBY_VERSION=`$RUBY -rrbconfig -e "puts Config::CONFIG[['ruby_version']]"`
RUBY_INCLUDE=`$RUBY -rrbconfig -e "puts Config::CONFIG[['archdir']]"`
AC_MSG_CHECKING(for Ruby header files)
if test -r "$RUBY_INCLUDE/ruby.h"; then
@@ -387,6 +402,7 @@ if test "x$enable_ruby" = "xyes" ; then
fi
# ---------------------------------- lua --------------------------------------
LUA_VERSION=
if test "x$enable_lua" = "xyes" ; then
enable_plugins="yes"
@@ -412,13 +428,18 @@ if test "x$enable_lua" = "xyes" ; then
if test "x$PKGCONFIG" != "x"; then
AC_MSG_CHECKING(for Lua headers and librairies with pkg-config)
echo
for l in "$lua_suffix" "" "50" "5.0" "51" "5.1" ; do
pkgconfig_lua_found=`$PKGCONFIG --exists lua$l 2>/dev/null && $PKGCONFIG --exists lualib$l 2>/dev/null`
for l in "$lua_suffix" "" "51" "5.1" "50" "5.0" ; do
pkgconfig_lua_found=`$PKGCONFIG --exists lua$l 2>/dev/null`
if test "x$?" = "x0" ; then
LUA_VERSION=`$PKGCONFIG --modversion lua$l`
LUA_CFLAGS="$LUA_CFLAGS "`$PKGCONFIG --cflags lua$l`
LUA_CFLAGS="$LUA_CFLAGS "`$PKGCONFIG --cflags lualib$l`
LUA_LFLAGS="$LUA_LFLAGS "`$PKGCONFIG --libs lua$l`
LUA_LFLAGS="$LUA_LFLAGS "`$PKGCONFIG --libs lualib$l`
pkgconfig_lualib_found=`$PKGCONFIG --exists lualib$l 2>/dev/null`
if test "x$?" = "x0"; then
LUA_CFLAGS="$LUA_CFLAGS "`$PKGCONFIG --cflags lualib$l`
LUA_LFLAGS="$LUA_LFLAGS "`$PKGCONFIG --libs lualib$l`
fi
break
fi
done
@@ -427,12 +448,13 @@ if test "x$enable_lua" = "xyes" ; then
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
LUACONFIG=""
AC_CHECK_PROGS(LUACONFIG, lua-config lua-config50 lua-config5.0 lua-config51 lua-config5.1)
AC_CHECK_PROGS(LUACONFIG, lua-config lua-config51 lua-config5.1 lua-config50 lua-config5.0)
if test "x$LUACONFIG" != "x" ; then
AC_MSG_CHECKING(for Lua headers and librairies with lua-config)
echo
LUA_CFLAGS=`$LUACONFIG --include`
LUA_LFLAGS=`$LUACONFIG --libs`
LUA_VERSION="5.0.x"
fi
fi
@@ -444,9 +466,11 @@ if test "x$enable_lua" = "xyes" ; then
if test "x$ac_found_lua_header" = "xyes" -a "x$ac_found_liblua_header" = "xyes"; then
LUA_CFLAGS="$CFLAGS"
fi
for l in "$lua_suffix" "" "50" "5.0" "51" "5.1" ; do
for l in "$lua_suffix" "" "51" "5.1" "50" "5.0" ; do
AC_CHECK_LIB(lua$l,lua_call,ac_found_lua_lib="yes",ac_found_lua_lib="no")
if test "x$ac_found_lua_lib" = "xyes" ; then
LUA_VERSION=">=5.1.0"
LUA_LFLAGS="$LDFLAGS -llua$l -lm"
ac2_save_LDFLAGS="$LDFLAGS"
@@ -458,6 +482,8 @@ if test "x$enable_lua" = "xyes" ; then
AC_CHECK_LIB(lualib$l,luaL_openlib,ac_found_liblua_lib="yes",ac_found_liblua_lib="no")
if test "x$ac_found_liblua_lib" = "xyes" ; then
LUA_VERSION="5.0.x"
LUA_LFLAGS="$LUA_LFLAGS -llualib$l"
if echo "$host_os" | grep "^linux" 1>/dev/null 2>&1 ; then
@@ -470,7 +496,7 @@ if test "x$enable_lua" = "xyes" ; then
fi
done
fi
AC_MSG_CHECKING(for Lua compiling and linking)
LUA_TEST=`LT=luatest.c ; echo "#include <lua.h>" > $LT; echo "#include <lualib.h>" >> $LT; echo "int main() { luaopen_base((lua_State *)lua_open()); return 0; }" >> $LT ; $CC -Wall $LT -o $LT.out $LUA_CFLAGS $LUA_LFLAGS $CFLAGS $LDFLAGS 1>/dev/null 2>&1 ; echo $?; rm -f $LT $LT.out 1>/dev/null 2>&1`
if test "x$LUA_TEST" != "x0" ; then
@@ -528,6 +554,19 @@ if test "x$enable_aspell" = "xyes" ; then
AC_DEFINE(PLUGIN_ASPELL)
fi
# ------------------------------------------------------------------------------
# charset
# ------------------------------------------------------------------------------
if test "x$enable_charset" = "xyes" ; then
CHARSET_CFLAGS=""
CHARSET_LFLAGS=""
CHARSET_LFLAGS="$CHARSET_LFLAGS $ICONV_LFLAGS"
AC_SUBST(CHARSET_CFLAGS)
AC_SUBST(CHARSET_LFLAGS)
AC_DEFINE(PLUGIN_CHARSET)
fi
# ------------------------------------------------------------------------------
# dynamic loader
# ------------------------------------------------------------------------------
@@ -551,6 +590,7 @@ if test "x$enable_plugins" = "xyes" ; then
enable_ruby="no"
enable_lua="no"
enable_aspell="no"
enable_charset="no"
not_found="$not_found plugins"
fi
fi
@@ -560,20 +600,28 @@ fi
# ------------------------------------------------------------------------------
if test "x$enable_gnutls" = "xyes" ; then
found_gnutls="no"
AM_PATH_LIBGNUTLS( 1.0.0, found_gnutls=yes, AC_MSG_WARN([[
AC_CHECK_HEADER(gnutls/gnutls.h,ac_found_gnutls_header="yes",ac_found_gnutls_header="no")
AC_CHECK_LIB(gnutls,gnutls_global_init,ac_found_gnutls_lib="yes",ac_found_gnutls_lib="no")
AC_MSG_CHECKING(for gnutls headers and librairies)
if test "x$ac_found_gnutls_header" = "xno" -o "x$ac_found_gnutls_lib" = "xno" ; then
AC_MSG_RESULT(no)
AC_MSG_WARN([
*** libgnutls was not found. You may want to get it from ftp://ftp.gnutls.org/pub/gnutls/
*** WeeChat will be built without GnuTLS support.]]))
if test "x$found_gnutls" = "xyes" ; then
GNUTLS_CFLAGS=`libgnutls-config --cflags`
GNUTLS_LFLAGS=`libgnutls-config --libs`
*** WeeChat will be built without GnuTLS support.])
enable_gnutls="no"
not_found="$not_found gnutls"
else
AC_MSG_RESULT(yes)
GNUTLS_CFLAGS=`pkg-config gnutls --cflags`
GNUTLS_LFLAGS=`pkg-config gnutls --libs`
AC_SUBST(GNUTLS_CFLAGS)
AC_SUBST(GNUTLS_LFLAGS)
AC_DEFINE(HAVE_GNUTLS)
else
enable_gnutls="no"
not_found="$not_found gnutls"
CFLAGS="$CFLAGS -DHAVE_GNUTLS"
fi
else
not_asked="$not_asked gnutls"
fi
# ------------------------------------------------------------------------------
@@ -617,6 +665,12 @@ fi
# documentation
# ------------------------------------------------------------------------------
msg_doc=""
if test "x$DBLATEX_FOUND" = "xyes"; then
msg_doc="pdf $msg_doc"
fi
AC_MSG_CHECKING(for html/chunk.xsl)
DOC_XSL_PREFIX=""
@@ -633,9 +687,8 @@ for p in $doc_xsl_prefix_path; do
fi
done
if test "x$DOC_XSL_PREFIX" == "x"; then
if test "x$DOC_XSL_PREFIX" = "x"; then
AC_MSG_RESULT(no)
enable_doc="no"
AC_MSG_WARN([
*** Docbook XSL files not found
*** WeeChat will be built without documentation.
@@ -643,7 +696,7 @@ if test "x$DOC_XSL_PREFIX" == "x"; then
else
AC_MSG_RESULT($DOC_XSL_PREFIX)
AC_SUBST(DOC_XSL_PREFIX)
enable_doc="yes"
msg_doc="html $msg_doc"
fi
# ------------------------------------------------------------------------------
@@ -736,8 +789,10 @@ AM_CONDITIONAL(PLUGIN_PYTHON, test "$enable_python" = "yes")
AM_CONDITIONAL(PLUGIN_RUBY, test "$enable_ruby" = "yes")
AM_CONDITIONAL(PLUGIN_LUA, test "$enable_lua" = "yes")
AM_CONDITIONAL(PLUGIN_ASPELL, test "$enable_aspell" = "yes")
AM_CONDITIONAL(PLUGIN_CHARSET, test "$enable_charset" = "yes")
AM_CONDITIONAL(HAVE_GNUTLS, test "$enable_gnutls" = "yes")
AM_CONDITIONAL(HAVE_FLOCK, test "$enable_flock" = "yes")
AM_CONDITIONAL(DBLATEX_FOUND, test "$DBLATEX_FOUND" = "yes")
AC_OUTPUT([Makefile
doc/Makefile
@@ -747,6 +802,8 @@ AC_OUTPUT([Makefile
doc/ru/Makefile
doc/pl/Makefile
doc/cs/Makefile
doc/sco/Makefile
doc/sv/Makefile
src/Makefile
src/common/Makefile
src/irc/Makefile
@@ -756,7 +813,8 @@ AC_OUTPUT([Makefile
src/plugins/scripts/python/Makefile
src/plugins/scripts/ruby/Makefile
src/plugins/scripts/lua/Makefile
src/plugins/aspell/Makefile
src/plugins/aspell/Makefile
src/plugins/charset/Makefile
src/gui/Makefile
src/gui/curses/Makefile
src/gui/wxwidgets/Makefile
@@ -804,19 +862,42 @@ if test "x$debug" = "x2" ; then
msg_debug_verbose="yes"
fi
# plugin status
PERL_STATUS=
if test "x$enable_perl" = "xyes"; then
PERL_STATUS="($PERL_VERSION)"
fi
PYTHON_STATUS=
if test "x$enable_python" = "xyes"; then
PYTHON_STATUS="($PYTHON_VERSION)"
fi
RUBY_STATUS=
if test "x$enable_ruby" = "xyes"; then
RUBY_STATUS="($RUBY_VERSION)"
fi
LUA_STATUS=
if test "x$enable_lua" = "xyes"; then
LUA_STATUS="($LUA_VERSION)"
fi
echo ""
echo "Interfaces........................ :$listgui"
echo "Build with GNUtls support......... : $enable_gnutls"
echo "Build with flock support.......... : $enable_flock"
echo "Build with Plugin support......... : $enable_plugins"
echo " Perl plugin......... : $enable_perl"
echo " Python plugin....... : $enable_python"
echo " Ruby plugin......... : $enable_ruby"
echo " Lua plugin.......... : $enable_lua"
echo " Perl plugin......... : $enable_perl $PERL_STATUS"
echo " Python plugin....... : $enable_python $PYTHON_STATUS"
echo " Ruby plugin......... : $enable_ruby $RUBY_STATUS"
echo " Lua plugin.......... : $enable_lua $LUA_STATUS"
echo " Aspell plugin....... : $enable_aspell"
echo " Charset plugin...... : $enable_charset"
echo "Compile with debug info........... : $msg_debug_compiler"
echo " Backtrace........... : $enable_backtrace"
echo "Build doc..........................: $enable_doc"
echo "Build doc..........................: $msg_doc"
echo "Print debugging messages.......... : $msg_debug_verbose"
echo ""
eval echo "WeeChat will be installed in $bindir."
+21
View File
@@ -1,3 +1,24 @@
weechat (0.2.1-1) unstable; urgency=low
* New upstream release
* Overrive lintian menu-icon-missing warning
since the icon is in the weechat-common package.
-- Julien Louis <ptitlouis@sysif.net> Mon, 2 Oct 2006 15:30:06 +0200
weechat (0.2.0-2) unstable; urgency=low
* Add libaspell-dev to Build-Depends. This enables the aspell plugin built.
-- Julien Louis <ptitlouis@sysif.net> Mon, 25 Sep 2006 23:56:16 +0200
weechat (0.2.0-1) unstable; urgency=low
* New upstream release
* Rebuild against new default python version (Closes: #380985).
-- Julien Louis <ptitlouis@sysif.net> Sat, 19 Aug 2006 17:10:59 +0200
weechat (0.1.9-3) unstable; urgency=low
* Remove gnutls Build-Depends introduced in the previous upload
+1 -1
View File
@@ -4,7 +4,7 @@ Priority: optional
Maintainer: Sebastien Helleu <flashcode@flashtux.org>
Uploaders: Julien Louis <ptitlouis@sysif.net>
Build-Depends-Indep: xsltproc, docbook-xsl, docbook-xml
Build-Depends: cdbs, debhelper (>= 5), libncursesw5-dev, ruby, ruby1.8-dev, libperl-dev, python-dev, liblualib50-dev, libgnutls-dev, libtool, dpkg-dev (>= 1.13.19)
Build-Depends: cdbs, debhelper (>= 5), libncursesw5-dev, ruby, ruby1.8-dev, libperl-dev, python-dev, libaspell-dev, liblualib50-dev, libgnutls-dev, libtool, dpkg-dev (>= 1.13.19)
Standards-Version: 3.7.2
Package: weechat
+1
View File
@@ -0,0 +1 @@
weechat-curses: menu-icon-missing /usr/share/pixmaps/weechat.xpm
+3
View File
@@ -32,3 +32,6 @@ include /usr/share/cdbs/1/rules/debhelper.mk
install/weechat-common::
install -D -o root -g root -m 644 debian/weechat.xpm $(CURDIR)/debian/weechat-common/usr/share/pixmaps/weechat.xpm
install/weechat-curses::
install -D -o root -g root -m 644 debian/lintian-override $(CURDIR)/debian/weechat-curses/usr/share/lintian/overrides/weechat-curses
+167
View File
@@ -0,0 +1,167 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
SET(DOC_LANGS
cs
de
en
fr
pl
ru
sco
sv
)
FIND_PROGRAM(
COPY cp
PATHS /bin /usr/bin /usr/local/bin /usr/pkg/bin
)
FIND_PROGRAM(
XSLTPROC xsltproc
PATHS /bin /usr/bin /usr/local/bin /usr/pkg/bin
)
FIND_PROGRAM(
DBLATEX dblatex
PATHS /bin /usr/bin /usr/local/bin /usr/pkg/bin
)
FIND_FILE(DOC_XSL_PREFIX chunk.xsl PATHS
/usr/share/xml/docbook/stylesheet/nwalsh/
/usr/share/xml/docbook/xsl-stylesheets-1.69/
PATH_SUFFIXES html
DOC "Path to nwalsh xsl stylesheet"
)
STRING(REPLACE "/html/chunk.xsl" "" DOC_XSL_PREFIX "${DOC_XSL_PREFIX}")
IF(XSLTPROC AND DOC_XSL_PREFIX AND COPY)
SET(BUILD_HTML TRUE)
ENDIF(XSLTPROC AND DOC_XSL_PREFIX AND COPY)
IF(DBLATEX AND COPY)
SET(BUILD_PDF TRUE)
ENDIF(DBLATEX AND COPY)
IF(BUILD_HTML)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/weechat-html.xsl.in
${CMAKE_CURRENT_BINARY_DIR}/weechat-html.xsl
@ONLY
)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/weechat-html-one.xsl.in
${CMAKE_CURRENT_BINARY_DIR}/weechat-html-one.xsl
@ONLY
)
ENDIF(BUILD_HTML)
IF(BUILD_HTML OR BUILD_PDF)
EXECUTE_PROCESS(
COMMAND date "+%F %T"
OUTPUT_VARIABLE DOC_DATE
)
STRING(REPLACE "\n" "" DOC_DATE "${DOC_DATE}")
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/date.xml.in
${CMAKE_CURRENT_BINARY_DIR}/date.xml
@ONLY
)
FOREACH(dlang ${DOC_LANGS})
IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/weechat.${dlang}.xml)
IF(BUILD_HTML)
FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/${dlang})
FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}-build)
FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html-one/${dlang})
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}/index.html ${CMAKE_CURRENT_BINARY_DIR}/html-one/${dlang}/weechat.${dlang}.html
COMMAND ${COPY} ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/weechat.${dlang}.xml" "${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}-build"
COMMAND ${COPY} ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/config.xml" "${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}-build"
COMMAND ${COPY} ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/irc_commands.xml" "${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}-build"
COMMAND ${COPY} ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/key_functions.xml" "${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}-build"
COMMAND ${COPY} ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/weechat_commands.xml" "${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}-build"
COMMAND ${COPY} ARGS "${CMAKE_CURRENT_BINARY_DIR}/date.xml" "${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}-build"
COMMAND ${COPY} ARGS "${CMAKE_CURRENT_SOURCE_DIR}/weechat-doc.css" "${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}"
COMMAND ${COPY} ARGS "${CMAKE_CURRENT_SOURCE_DIR}/weechat-doc.css" "${CMAKE_CURRENT_BINARY_DIR}/html-one/${dlang}"
COMMAND ${XSLTPROC} ARGS -o ${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}/ ${CMAKE_CURRENT_BINARY_DIR}/weechat-html.xsl ${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}-build/weechat.${dlang}.xml
COMMAND ${XSLTPROC} ARGS -o ${CMAKE_CURRENT_BINARY_DIR}/html-one/${dlang}/weechat.${dlang}.html ${CMAKE_CURRENT_BINARY_DIR}/weechat-html-one.xsl ${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}-build/weechat.${dlang}.xml
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/weechat.${dlang}.xml
${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/config.xml
${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/irc_commands.xml
${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/key_functions.xml
${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/weechat_commands.xml
${CMAKE_CURRENT_SOURCE_DIR}/date.xml.in
${CMAKE_CURRENT_SOURCE_DIR}/weechat-html-one.xsl.in
${CMAKE_CURRENT_SOURCE_DIR}/weechat-html.xsl.in
${CMAKE_CURRENT_SOURCE_DIR}/date.xml.in
${CMAKE_CURRENT_SOURCE_DIR}/weechat-doc.css
COMMENT "Building html doc (${dlang})"
)
ADD_CUSTOM_TARGET(doc-html-${dlang} ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/html/${dlang}/index.html)
ADD_CUSTOM_TARGET(doc-html-one-${dlang} ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/html-one/${dlang}/weechat.${dlang}.html)
INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/${dlang} DESTINATION share/doc/${PROJECT_NAME}/html)
ENDIF(BUILD_HTML)
IF(BUILD_PDF)
FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang})
FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}-build)
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}/weechat.${dlang}.pdf
COMMAND ${COPY} ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/weechat.${dlang}.xml" "${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}-build"
COMMAND ${COPY} ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/config.xml" "${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}-build"
COMMAND ${COPY} ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/irc_commands.xml" "${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}-build"
COMMAND ${COPY} ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/key_functions.xml" "${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}-build"
COMMAND ${COPY} ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/weechat_commands.xml" "${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}-build"
COMMAND ${COPY} ARGS "${CMAKE_CURRENT_BINARY_DIR}/date.xml" "${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}-build"
COMMAND ${DBLATEX} ARGS -c ${CMAKE_CURRENT_SOURCE_DIR}/dblatex.conf -o ${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}/weechat.${dlang}.pdf ${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}-build/weechat.${dlang}.xml
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/weechat.${dlang}.xml
${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/config.xml
${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/irc_commands.xml
${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/key_functions.xml
${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/weechat_commands.xml
${CMAKE_CURRENT_SOURCE_DIR}/date.xml.in
${CMAKE_CURRENT_SOURCE_DIR}/weechat-html-one.xsl.in
${CMAKE_CURRENT_SOURCE_DIR}/date.xml.in
COMMENT "Building pdf doc (${dlang})"
)
ADD_CUSTOM_TARGET(doc-pdf-${dlang} ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}/weechat.${dlang}.pdf)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/pdf/${dlang}/weechat.${dlang}.pdf DESTINATION share/doc/${PROJECT_NAME})
ENDIF(BUILD_PDF)
ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/weechat.${dlang}.xml)
ENDFOREACH(dlang ${DOC_LANGS})
ENDIF(BUILD_HTML OR BUILD_PDF)
FOREACH(dlang ${DOC_LANGS})
IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/weechat_quickstart.${dlang}.txt)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/weechat_quickstart.${dlang}.txt DESTINATION share/doc/${PROJECT_NAME})
ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${dlang}/weechat_quickstart.${dlang}.txt)
ENDFOREACH(dlang ${DOC_LANGS})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/weechat-curses.1 DESTINATION share/man/man1)
+5 -6
View File
@@ -1,8 +1,8 @@
# Copyright (c) 2003-2006 FlashCode <flashcode@flashtux.org>
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,15 +11,14 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
SUBDIRS = . en fr de ru pl cs
SUBDIRS = . en fr de ru pl cs sco sv
man_MANS = weechat-curses.1
EXTRA_DIST = $(man_MANS) weechat-doc.css weechat-html-one.xsl.in weechat-html.xsl.in
EXTRA_DIST = $(man_MANS) weechat-doc.css weechat-html-one.xsl.in weechat-html.xsl.in weechat-pdf.xsl dblatex.conf
all-local: weechat-html.xsl weechat-html-one.xsl
+3 -4
View File
@@ -1,10 +1,10 @@
#!/usr/bin/perl
#
# Copyright (c) 2003-2006 FlashCode <flashcode@flashtux.org>
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
+3 -4
View File
@@ -1,8 +1,8 @@
# Copyright (c) 2003-2006 FlashCode <flashcode@flashtux.org>
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = cs
+1
View File
@@ -0,0 +1 @@
<pubdate>@DOC_DATE@</pubdate>
+1
View File
@@ -0,0 +1 @@
XslParam: weechat-pdf.xsl
+21 -6
View File
@@ -1,8 +1,8 @@
# Copyright (c) 2003-2006 FlashCode <flashcode@flashtux.org>
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = de
@@ -22,9 +21,13 @@ QUICKSTART = weechat_quickstart.$(LANGCODE).txt
EXTRA_DIST = $(BOOK).xml $(BOOK_INCLUDE) $(QUICKSTART)
if DBLATEX_FOUND
PDF = pdf-stamp
endif
docdir = $(datadir)/doc/$(PACKAGE)
all-local: html-stamp
all-local: html-stamp $(PDF)
# HTML output with chunks (many pages)
@@ -48,16 +51,28 @@ html1-stamp: $(BOOK).xml $(BOOK_INCLUDE) ../weechat-html-one.xsl ../weechat-doc.
cp ../weechat-doc.css html1/
touch html1-stamp
# PDF output
pdf: pdf-stamp
pdf-stamp: $(BOOK).xml $(BOOK_INCLUDE)
echo "<pubdate>`date '+%F %T'`</pubdate>" >date.xml
dblatex -c ../dblatex.conf $(BOOK).xml || true
touch pdf-stamp
# install docs
install-data-hook:
$(mkinstalldirs) $(DESTDIR)$(docdir)/html/$(LANGCODE)/
$(INSTALL_DATA) html/* $(DESTDIR)$(docdir)/html/$(LANGCODE)/
$(INSTALL_DATA) $(QUICKSTART) $(DESTDIR)$(docdir)/
if DBLATEX_FOUND
$(INSTALL_DATA) $(BOOK).pdf $(DESTDIR)$(docdir)/
endif
# clean
clean-local:
-rm -f $(BOOK).html $(BOOK).pdf $(BOOK).txt date.xml
-rm -rf html/ html1/
-rm -f html-stamp html1-stamp
-rm -f html-stamp html1-stamp pdf-stamp
+85 -57
View File
@@ -40,34 +40,6 @@
<entry>'the geekest IRC client!'</entry>
<entry>WeeChat-Slogan (wenn leer, wird keiner benutzt)</entry>
</row>
<row>
<entry><option>look_charset_decode_iso</option></entry>
<entry>Zeichenfolge</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>'ISO-8859-1'</entry>
<entry>ISO-Zeichensatz zum Dekodieren von Nachrichten vom Server (wird nur benutzt, wenn UTF-8 als Locale eingestellt ist; wenn nichts angegeben wird und die Locale UTF-8 ist, findet keine Konvertierung statt)</entry>
</row>
<row>
<entry><option>look_charset_decode_utf</option></entry>
<entry>Zeichenfolge</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>'UTF-8'</entry>
<entry>UTF-Zeichensatz zum Dekodieren von Nachrichten vom Server (wird nur benutzt, wenn die Locale nicht UTF-8 ist; wenn nichts angegeben wird und die Locale nicht UTF-8 ist, findet keine Konvertierung statt)</entry>
</row>
<row>
<entry><option>look_charset_encode</option></entry>
<entry>Zeichenfolge</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>''</entry>
<entry>Zeichensatz zum Enkodieren von Nachrichten zum Server, wie zum Beispiel: UTF-8, ISO-8859-1 (wenn nichts angegeben wird, findet keine Konversion statt)</entry>
</row>
<row>
<entry><option>look_charset_internal</option></entry>
<entry>Zeichenfolge</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>''</entry>
<entry>Erzwingt internen WeeChat-Zeichensatz (sollte normalerweise leer sein, dadurch wird der erkannte Zeichensatz benutzt)</entry>
</row>
<row>
<entry><option>look_one_server_buffer</option></entry>
<entry>Boolean</entry>
@@ -136,7 +108,14 @@
<entry>Ganzzahl</entry>
<entry>zwischen 0 und 100</entry>
<entry>0</entry>
<entry>Maximale Größe der Nicklist (Breite oder Höhe, je nach look_nicklist_position (0: kein Maximum); Wenn min == max &gt; 0, ist die Größe fest.</entry>
<entry>Max size for nicklist (width or height, depending on look_nicklist_position (0 = no max size; if min = max and &gt; 0, then size is fixed))</entry>
</row>
<row>
<entry><option>look_nicklist_separator</option></entry>
<entry>Boolean</entry>
<entry>zwischen 0 und 100</entry>
<entry>'on'</entry>
<entry>Trennzeichen zwischen Chatfenster und Nickliste</entry>
</row>
<row>
<entry><option>look_no_nickname</option></entry>
@@ -201,6 +180,13 @@
<entry>20</entry>
<entry>Maximale Größe zum Ausrichten von Nicknamen und anderen Nachrichten (sollte &gt;= look_align_size sein)</entry>
</row>
<row>
<entry><option>look_align_text_offset</option></entry>
<entry>Ganzzahl</entry>
<entry>zwischen -1 und 64</entry>
<entry>-1</entry>
<entry>Offset for aligning lines of messages (except first lines), default is -1 (align after nick), a null or positive value is offset after beginning of line</entry>
</row>
<row>
<entry><option>look_nick_completor</option></entry>
<entry>Zeichenfolge</entry>
@@ -215,6 +201,13 @@
<entry>'[]-^'</entry>
<entry>Zeichen, die bei der Nickvervollständigung ignoriert werden</entry>
</row>
<row>
<entry><option>look_nick_completion_smart</option></entry>
<entry>Boolean</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>'on'</entry>
<entry>Intelligente vervollständigung der Nicknamen (vervollständigt zuerst mit dem letzten Nick, der einen angesprochen hat)</entry>
</row>
<row>
<entry><option>look_nick_complete_first</option></entry>
<entry>Boolean</entry>
@@ -271,10 +264,17 @@
<entry>0</entry>
<entry>Maximale Länge der Namen in der Hotlist (0: kein Limit)</entry>
</row>
<row>
<entry><option>look_hotlist_sort</option></entry>
<entry>Zeichenfolge</entry>
<entry>'group_time_asc', 'group_time_desc', 'group_number_asc', 'group_number_desc', 'number_asc', 'number_desc'</entry>
<entry>'group_time_asc'</entry>
<entry>Hotlist sort type (group_time_asc (default), group_time_desc, group_number_asc, group_number_desc, number_asc, number_desc)</entry>
</row>
<row>
<entry><option>look_day_change</option></entry>
<entry>Boolean</entry>
<entry>zwischen 0 und 32</entry>
<entry>'group_time_asc', 'group_time_desc', 'group_number_asc', 'group_number_desc', 'number_asc', 'number_desc'</entry>
<entry>'on'</entry>
<entry>Spezielle Nachricht anzeigen, wenn ein neuer Tag beginnt</entry>
</row>
@@ -299,10 +299,17 @@
<entry>'[%n(%m)] '</entry>
<entry>Format der Eingabezeile ('%c' wird durch den Channel- oder Servernamen ersetzt, '%n' durch den Nicknamen und '%m' durch die Nick-Modi)</entry>
</row>
<row>
<entry><option>look_paste_max_lines</option></entry>
<entry>Ganzzahl</entry>
<entry>zwischen 0 und 2147483647</entry>
<entry>3</entry>
<entry>Max number of lines for paste without asking user (0 = disable this feature)</entry>
</row>
<row>
<entry><option>col_real_white</option></entry>
<entry>Boolean</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>zwischen 0 und 2147483647</entry>
<entry>'off'</entry>
<entry>Wenn gesetzt, benutze echtes Weiß, als Voreinstellung jedoch für Terminals mit weißem Hintergrund deaktiviert (solltest du niemals einen weißen Hintergrund benutzen, solltest du diese Option aktivieren um ein echtes Weiß anstelle der voreingestellten Terminal Vordergrundfarbe zu bekommen)</entry>
</row>
@@ -320,6 +327,13 @@
<entry>'default'</entry>
<entry>Textfarbe der Titelleiste</entry>
</row>
<row>
<entry><option>col_title_more</option></entry>
<entry>Farbe</entry>
<entry>Curses- oder Gtk-Farben</entry>
<entry>'lightmagenta'</entry>
<entry>Farbe des '+' beim Scrolling des Topics</entry>
</row>
<row>
<entry><option>col_title_bg</option></entry>
<entry>Farbe</entry>
@@ -565,6 +579,20 @@
<entry>'cyan'</entry>
<entry>Farbe des Trennzeichens in der Eingabezeile</entry>
</row>
<row>
<entry><option>col_input_text_not_found</option></entry>
<entry>Farbe</entry>
<entry>Curses- oder Gtk-Farben</entry>
<entry>'red'</entry>
<entry>Farbe für den Text nicht gefunden</entry>
</row>
<row>
<entry><option>col_input_actions</option></entry>
<entry>Farbe</entry>
<entry>Curses- oder Gtk-Farben</entry>
<entry>'lightgreen'</entry>
<entry>Color for actions in input window</entry>
</row>
<row>
<entry><option>col_input_bg</option></entry>
<entry>Farbe</entry>
@@ -621,6 +649,13 @@
<entry>'yellow'</entry>
<entry>Farbe des Voice-Symbols</entry>
</row>
<row>
<entry><option>col_nick_user</option></entry>
<entry>Farbe</entry>
<entry>Curses- oder Gtk-Farben</entry>
<entry>'blue'</entry>
<entry>Color for user symbol</entry>
</row>
<row>
<entry><option>col_nick_more</option></entry>
<entry>Farbe</entry>
@@ -915,10 +950,17 @@
<entry>5</entry>
<entry>Maximal-Lag bis zum Trennen der Verbindung (in Minuten - 0: nie trennen)</entry>
</row>
<row>
<entry><option>irc_anti_flood</option></entry>
<entry>Ganzzahl</entry>
<entry>zwischen 0 und 5</entry>
<entry>2</entry>
<entry>Anti-flood: # Sekunden zwischen zwei Benutzernachrichten (0 = kein anti-flood)</entry>
</row>
<row>
<entry><option>irc_fifo_pipe</option></entry>
<entry>Boolean</entry>
<entry>zwischen 0 und 2147483647</entry>
<entry>zwischen 0 und 5</entry>
<entry>'off'</entry>
<entry>Einen FIFO zur Fernsteuerung des Clients von anderen Prozessen öffnen</entry>
</row>
@@ -941,7 +983,14 @@
<entry>Boolean</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>'on'</entry>
<entry>Erlaube Benutzern, spezielle Codes zu versenden (%B=fett, %Cxx,yy=Farbe, %U=unterstrichen, %R=reverse/umgekehrt)</entry>
<entry>Allow user to send colors with special codes (^Cb=bold, ^Ccxx=color, ^Ccxx,yy=color+background, ^Cu=underline, ^Cr=reverse)</entry>
</row>
<row>
<entry><option>irc_send_unknown_commands</option></entry>
<entry>Boolean</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>'off'</entry>
<entry>Sende unbekannte Befehle an den IRC-Server</entry>
</row>
<row>
<entry><option>dcc_auto_accept_files</option></entry>
@@ -1207,12 +1256,12 @@
<entry>Zeichenfolge</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>''</entry>
<entry>Befehle, die nach der Verbindung zum Server ausgeführt werden sollen (mehrere Befehle müssen mit einem Semikolon getrennt werden, um ein Semikolon zu schreiben, muss man '\;' verwenden)</entry>
<entry>Befehle, die nach der Verbindung zum Server ausgeführt werden sollen (mehrere Befehle müssen mit einem Semikolon getrennt werden, um ein Semikolon zu schreiben, muss man '\;' verwenden, die spezielllen Variablen $nick, $channel und $server werden dabei durch den jeweiligen Wert ersetzt)</entry>
</row>
<row>
<entry><option>server_command_delay</option></entry>
<entry>Ganzzahl</entry>
<entry>zwischen 0 und 5</entry>
<entry>zwischen 0 und 3600</entry>
<entry>0</entry>
<entry>Wartezeit in Sekunden nach Ausführung des Befehls, um z.B. eine Authentifizierung zu ermöglichen</entry>
</row>
@@ -1235,26 +1284,5 @@
<entry>Zeichenfolge</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>''</entry>
<entry>Durch Kommata getrennte Liste der Notify-Levels für die Channels auf diesem Server (Format: #channel:1,...)</entry>
</row>
<row>
<entry><option>server_charset_decode_iso</option></entry>
<entry>Zeichenfolge</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>''</entry>
<entry>Durch Kommata getrennte Liste der Zeichensätze für den Server und die Channels, um ISO-Nachrichten zu dekodieren (Format: Server:Zeichensatz,#Channel:Zeichensatz)</entry>
</row>
<row>
<entry><option>server_charset_decode_utf</option></entry>
<entry>Zeichenfolge</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>''</entry>
<entry>Durch Kommata getrennte Liste der Zeichensätze für Server und Channels, um UTF zu dekodieren (Format: Server:Zeichensatz,#Channel:Zeichensatz,..)</entry>
</row>
<row>
<entry><option>server_charset_encode</option></entry>
<entry>Zeichenfolge</entry>
<entry>eine beliebige Zeichenfolge</entry>
<entry>''</entry>
<entry>Durch Kommata getrennte Liste der Zeichensätze, um Nachrichten vom Server und aus Channels zu dekodieren (Format: Server:Zeichensatz,#Channel:Zeichensatz,..)</entry>
<entry>Durch Kommata getrennte Liste der Notify-Levels für die Channels auf diesem Server (Format: #channel:1,...), der Channelname '*' ist für den Default-Server-Notify-Level</entry>
</row>
+3 -3
View File
@@ -42,12 +42,12 @@ Nicknames oder Hosts sperren/verbannen
Nickname: zu sperrender User oder Host
</programlisting>
<command>ctcp Nickname Typ [Argumente]</command>
<command>ctcp Empfänger Typ [Argumente]</command>
<programlisting>
CTCP-Nachricht verschicken
Nickname: User, an den die CTCP-Nachricht geschickt werden soll
Typ: Typ der CTCP-Nachricht (z.B. "version", "ping", ...)
Empfänger: User, an den die CTCP-Nachricht geschickt werden soll
Typ: Typ der CTCP-Nachricht (z.B. "version", "ping", ..)
Argumente: Argumente für CTCP
</programlisting>
+24
View File
@@ -117,6 +117,14 @@
<entry><literal>scroll_bottom</literal></entry>
<entry>nach ganz unten scrollen</entry>
</row>
<row>
<entry><literal>scroll_topic_left</literal></entry>
<entry>Topic nach links scrollen</entry>
</row>
<row>
<entry><literal>scroll_topic_right</literal></entry>
<entry>Topic nach rechts scrollen</entry>
</row>
<row>
<entry><literal>nick_beginning</literal></entry>
<entry>zum Anfang der Nicklist gehen</entry>
@@ -149,6 +157,10 @@
<entry><literal>jump_last_buffer</literal></entry>
<entry>zum letzten Puffer springen</entry>
</row>
<row>
<entry><literal>jump_previous_buffer</literal></entry>
<entry>jump to previous buffer</entry>
</row>
<row>
<entry><literal>jump_server</literal></entry>
<entry>zum Serverpuffer springen</entry>
@@ -173,6 +185,10 @@
<entry><literal>scroll_unread</literal></entry>
<entry>scrolle zur ersten, ungelesenen Zeile im Puffer</entry>
</row>
<row>
<entry><literal>set_unread</literal></entry>
<entry>set unread marker on all buffers</entry>
</row>
<row>
<entry><literal>hotlist_clear</literal></entry>
<entry>Hotlist leeren</entry>
@@ -189,3 +205,11 @@
<entry><literal>grab_key</literal></entry>
<entry>Tastencode ermitteln und einfügen</entry>
</row>
<row>
<entry><literal>insert</literal></entry>
<entry>füge eine Zeichenkette in der Befehlszeile ein</entry>
</row>
<row>
<entry><literal>search_text</literal></entry>
<entry>suche Text im Pufferverlauf</entry>
</row>
+1581 -320
View File
File diff suppressed because it is too large Load Diff
+95 -50
View File
@@ -13,19 +13,37 @@ Aliasname: Name des Alias
Befehl: Befehlsname (WeeChat- oder IRC-Befehl ohne führenden '/', mehrere Befehle können durch Semikola getrennt werden)
Argumente: Argumente für den Befehl
</programlisting>
<command>wird durch alle Argumente ersetzt.</command>
<programlisting>Die Variablen $nick, $channel and $server werden durch den aktuellen Nick/Channel oder Server ersetzt.
</programlisting>
<command>buffer [Aktion [Argumente] | Nummer | [[Server] [Channel]]]</command>
<programlisting>
Puffer verwalten
Aktion: Pufferaktion:
move: Puffer in der Liste bewegen (kann auch relativ sein, wie -1)
close: Puffer schließen (eine Part-Message kann optional angegeben werden)
list: alle offenen Puffer auflisten (Standardaktion)
notify: Notify-Level für Puffer festlegen (0=nie, 1=bei hervorgehobenen Nachrichten, 2=1+persönliche Nachricht, 3=2+join/part)
Server
Channel: gehe zum Puffer mit Servernamen oder Channelnamen
Nummer: gehe zu Puffer mit dieser Nummer
action: action to do:
move: move buffer in the list (may be relative, for example -1)
close: close buffer (optional arg is part message, for a channel)
list: list open buffers (no parameter implies this list)
notify: set notify level for buffer (0=never, 1=highlight, 2=1+msg, 3=2+join/part)
(when executed on server buffer, this sets default notify level for whole server)
scroll: scroll in history (may be relative, and may end by a letter: s=sec, m=min, h=hour, d=day, M=month, y=year); if there is only letter, then scroll to beginning of this item
number: jump to buffer by number
server,
channel: jump to buffer by server and/or channel name
Examples:
move buffer: /buffer move 5
close buffer: /buffer close this is part msg
set notify: /buffer notify 2
scroll 1 day up: /buffer scroll 1d == /buffer scroll -1d == /buffer scroll -24h
scroll to beginning
of this day: /buffer scroll d
scroll 15 min down: /buffer scroll +15m
scroll 20 msgs up: /buffer scroll -20
jump to #weechat: /buffer #weechat
</programlisting>
<command>builtin Befehl</command>
@@ -36,35 +54,33 @@ Befehl: auszuf
</programlisting>
<command>charset [(decode_iso | decode_utf | encode) Zeichensatz]</command>
<programlisting>
ändere Zeichensatz für den Server oder Channel
decode_iso: Zeichensatz um ISO zu decoden
decode_utf: Zeichensatz um UTF zu decoden
encode: der zum encoden benutzte Zeichensatz
Zeichensatz: Zeichensatz, der benutzt werden soll (zum Beispiel: ISO-8859-15, UTF-8,..)
</programlisting>
<command>clear [-all]</command>
<command>clear [-all | number [number ...]]</command>
<programlisting>
Fenster leeren
-all: alle Fenster leeren
-all: lösche alle Puffer
Nummer: lösche den Puffer mit der angegebenen Nummer
</programlisting>
<command>connect [Servername]</command>
<command>connect [-all [-nojoin] | servername [servername ...] [-nojoin] | hostname [-port port] [-ipv6] [-ssl]]</command>
<programlisting>
mit einem Server verbinden
mit Server verbinden
Servername: Zielserver
-all: connect to all servers
servername: internal server name to connect
-nojoin: do not join any channel (even if autojoin is enabled on server)
hostname: hostname to connect, creating temporary server
port: port for server (integer, default is 6667)
ipv6: use IPv6 protocol
ssl: use SSL protocol
</programlisting>
<command>disconnect [Servername]</command>
<command>disconnect [-all | Servername [Servername ...]]</command>
<programlisting>
Serververbindung trennen
Serververbindung(en) trennen
Servername: Name des zu trennenden Servers
-all: Trenne von allen Servern
servername: Servername, von dem getrennt werden soll
</programlisting>
<command>dcc Aktion [Nickname [Datei]]</command>
@@ -76,12 +92,13 @@ Nickname: Empf
Datei: zu versendende (lokal vorliegende) Datei
</programlisting>
<command>debug dump | windows</command>
<command>debug dump | buffer | windows</command>
<programlisting>
Debugging-Nachricht ausgeben
dump: Speicherabbild im WeeChat-Logfile ablegen (wie nach einem Programmabsturz)
windows: zeigt Fensterdaten an
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
buffer: dump buffer content with hexadecimal values in log file
windows: display windows tree
</programlisting>
<command>help [Befehl]</command>
@@ -114,40 +131,38 @@ Bei jedem Argument steht '*' f
Ohne Argumente listet /ignore alle definierten /ignore-Regeln auf.
</programlisting>
<command>key [Taste Funktion/Befehl] [unbind Taste] [functions] [reset -yes]</command>
<command>key [Taste [Funktion/Befehl]] [unbind Taste] [functions] [call Funktion ["Argumente"]] [reset -yes] </command>
<programlisting>
belegen/freigeben von Tasten
Taste: diese Taste mit einer internen Funktion oder einem Befehl, beginnend mit "/", belegen
Taste: diese Taste anzeigen oder mit einer internen Funktion oder einem Befehl, beginnend mit "/", belegen
unbind: Tastenbelegung aufheben
functions: interne Funktionen für Tastenbelegungen auflisten
reset: Standardbelegung wiederherstellen und entferne alle eigenen Belegungen (Vorsicht!)
call: rufe eine Funktion über ihren Namen auf (mit optionalen Argumenten)
reset: Standardbelegung wiederherstellen und entferne ALLE eigenen Belegungen (Vorsicht!)
</programlisting>
<command>plugin [load Dateiname] | [autoload] | [reload] | [unload]</command>
<command>plugin [list [Name]] | [listfull [Name]] | [load Dateiname] | [autoload] | [reload [Name]] | [unload [Name]]</command>
<programlisting>
auflisten/laden/entladen von Plugins
Dateiname: zu ladendes Plugin
list: geladene Plugins auflisten
listfull: geladene Plugins mit Details für jedes Plugin auflisten
load: lade ein Plugin
autoload: lade automatisch alle Plugins im System- oder Benutzerverzeichnis
reload: lade ein Plugin erneut (wenn kein Name vorgegeben ist, werden alle Plugins entladen und autolade die Plugins)
unload: entlade eines oder alle Plugins
Ohne Argumente werden alle geladenen Plugins aufgelistet.
Ohne Argument, listet /plugin alle geladenen Plugins auf.
</programlisting>
<command>server [Servername] | [Servername Hostname Port [-auto | -noauto] [-ipv6] [-ssl] [-pwd Passwort] [-nicks Nick1 Nick2 Nick3] [-username Benutzername] [-realname Name] [-command Befehl] [-autojoin Channel[,Channel]] ] | [del Servername]</command>
<command>reconnect [-all [-nojoin] | servername [servername ...] [-nojoin]]</command>
<programlisting>
Auflisten, Hinzufügen oder Entfernen von Servern
mit einem Server oder mehreren Servern neu verbinden
Servername: anzuzeigender Servername
Hostname: Name oder IP-Adresse des Servers
Port: Port des Servers
ipv6: IPv6 benutzen
ssl: SSL benutzen
Passwort: Serverpasswort
Nick1: erster Nickname
Nick2: zweiter Nickname
Nick3: dritter Nicname
Benutzername: Benutzername
Realname: voller Name des Benutzers
-all: reconnect to all servers
servername: server name to reconnect
-nojoin: do not join any channel (even if autojoin is enabled on server)
</programlisting>
<command>save [Datei]</command>
@@ -156,6 +171,34 @@ Konfiguration abspeichern
Datei: Name der zu speichernden Konfigurationsdatei
</programlisting>
<command>server [list [servername]] | [listfull [servername]] | [add servername hostname [-port port] [-temp] [-auto | -noauto] [-ipv6] [-ssl] [-pwd password] [-nicks nick1 nick2 nick3] [-username username] [-realname realname] [-command command] [-autojoin channel[,channel]] ] | [copy servername newservername] | [rename servername newservername] | [keep servername] | [del servername]</command>
<programlisting>
Auflisten, Hinzufügen oder Entfernen von Servern
list: list servers (no parameter implies this list)
listfull: list servers with detailed info for each server
add: create a new server
servername: server name, for internal and display use
hostname: name or IP address of server
port: port for server (integer, default is 6667)
temp: create temporary server (not saved in config file)
auto: automatically connect to server when WeeChat starts
noauto: do not connect to server when WeeChat starts (default)
ipv6: use IPv6 protocol
ssl: use SSL protocol
password: password for server
nick1: first nick for server
nick2: alternate nick for server
nick3: second alternate nick for server
username: user name
realname: real name of user
copy: duplicate a server
rename: rename a server
keep: keep server in config file (for temporary servers only)
del: delete a server
deloutq: delete messages out queue for all servers (all messages WeeChat is currently sending)
</programlisting>
<command>set [Option [ = Wert]]</command>
<programlisting>
@@ -199,11 +242,13 @@ Bei jedem Argument steht '*' f
Ohne Argumente listet /unignore alle definierten /ignore-Regeln auf.
</programlisting>
<command>upgrade</command>
<command>upgrade [path_to_binary]</command>
<programlisting>
aktualisiert WeeChat ohne die Verbindung zum Server zu trennen
Dieser Befehl wird auf dem Weechat-Binary ausgeführt, daher sollte dieses kompiliert oder mit einem Paketmanager installiert sein, bevor der Befehl ausgeführt wird.
path_to_binary: path to WeeChat binary (default is current binary)
This command run again a WeeChat binary, so it should have been compiled or installed with a package manager before running this command.
</programlisting>
<command>uptime [-o]</command>
+21 -6
View File
@@ -1,8 +1,8 @@
# Copyright (c) 2003-2006 FlashCode <flashcode@flashtux.org>
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = en
@@ -22,9 +21,13 @@ QUICKSTART = weechat_quickstart.$(LANGCODE).txt
EXTRA_DIST = $(BOOK).xml $(BOOK_INCLUDE) $(QUICKSTART)
if DBLATEX_FOUND
PDF = pdf-stamp
endif
docdir = $(datadir)/doc/$(PACKAGE)
all-local: html-stamp
all-local: html-stamp $(PDF)
# HTML output with chunks (many pages)
@@ -48,16 +51,28 @@ html1-stamp: $(BOOK).xml $(BOOK_INCLUDE) ../weechat-html-one.xsl ../weechat-doc.
cp ../weechat-doc.css html1/
touch html1-stamp
# PDF output
pdf: pdf-stamp
pdf-stamp: $(BOOK).xml $(BOOK_INCLUDE)
echo "<pubdate>`date '+%F %T'`</pubdate>" >date.xml
dblatex -c ../dblatex.conf $(BOOK).xml || true
touch pdf-stamp
# install docs
install-data-hook:
$(mkinstalldirs) $(DESTDIR)$(docdir)/html/$(LANGCODE)/
$(INSTALL_DATA) html/* $(DESTDIR)$(docdir)/html/$(LANGCODE)/
$(INSTALL_DATA) $(QUICKSTART) $(DESTDIR)$(docdir)/
if DBLATEX_FOUND
$(INSTALL_DATA) $(BOOK).pdf $(DESTDIR)$(docdir)/
endif
# clean
clean-local:
-rm -f $(BOOK).html $(BOOK).pdf $(BOOK).txt date.xml
-rm -rf html/ html1/
-rm -f html-stamp html1-stamp
-rm -f html-stamp html1-stamp pdf-stamp
+84 -56
View File
@@ -40,34 +40,6 @@
<entry>'the geekest IRC client!'</entry>
<entry>WeeChat slogan (if empty, slogan is not used)</entry>
</row>
<row>
<entry><option>look_charset_decode_iso</option></entry>
<entry>string</entry>
<entry>any string</entry>
<entry>'ISO-8859-1'</entry>
<entry>ISO charset for decoding messages from server (used only if locale is UTF-8) (if empty, messages are not converted if locale is UTF-8)</entry>
</row>
<row>
<entry><option>look_charset_decode_utf</option></entry>
<entry>string</entry>
<entry>any string</entry>
<entry>'UTF-8'</entry>
<entry>UTF charset for decoding messages from server (used only if locale is not UTF-8) (if empty, messages are not converted if locale is not UTF-8)</entry>
</row>
<row>
<entry><option>look_charset_encode</option></entry>
<entry>string</entry>
<entry>any string</entry>
<entry>''</entry>
<entry>Charset for encoding messages sent to server, examples: UTF-8, ISO-8859-1 (if empty, messages are not converted)</entry>
</row>
<row>
<entry><option>look_charset_internal</option></entry>
<entry>string</entry>
<entry>any string</entry>
<entry>''</entry>
<entry>Forces internal WeeChat charset (should be empty in most cases, that means detected charset is used)</entry>
</row>
<row>
<entry><option>look_one_server_buffer</option></entry>
<entry>boolean</entry>
@@ -136,7 +108,14 @@
<entry>integer</entry>
<entry>between 0 and 100</entry>
<entry>0</entry>
<entry>Max size for nicklist (width or height, depending on look_nicklist_position (0 = no max size; if min == max and &gt; 0, then size is fixed))</entry>
<entry>Max size for nicklist (width or height, depending on look_nicklist_position (0 = no max size; if min = max and &gt; 0, then size is fixed))</entry>
</row>
<row>
<entry><option>look_nicklist_separator</option></entry>
<entry>boolean</entry>
<entry>'on' or 'off'</entry>
<entry>'on'</entry>
<entry>Separator between chat and nicklist</entry>
</row>
<row>
<entry><option>look_no_nickname</option></entry>
@@ -201,6 +180,13 @@
<entry>20</entry>
<entry>Max size for aligning nick and other messages (should be &gt;= to look_align_size)</entry>
</row>
<row>
<entry><option>look_align_text_offset</option></entry>
<entry>integer</entry>
<entry>between -1 and 64</entry>
<entry>-1</entry>
<entry>Offset for aligning lines of messages (except first lines), default is -1 (align after nick), a null or positive value is offset after beginning of line</entry>
</row>
<row>
<entry><option>look_nick_completor</option></entry>
<entry>string</entry>
@@ -215,6 +201,13 @@
<entry>'[]-^'</entry>
<entry>Chars ignored for nick completion</entry>
</row>
<row>
<entry><option>look_nick_completion_smart</option></entry>
<entry>boolean</entry>
<entry>'on' or 'off'</entry>
<entry>'on'</entry>
<entry>Smart completion for nicks (completes with last speakers first)</entry>
</row>
<row>
<entry><option>look_nick_complete_first</option></entry>
<entry>boolean</entry>
@@ -271,6 +264,13 @@
<entry>0</entry>
<entry>Max length of names in hotlist (0 = no limit)</entry>
</row>
<row>
<entry><option>look_hotlist_sort</option></entry>
<entry>string</entry>
<entry>'group_time_asc', 'group_time_desc', 'group_number_asc', 'group_number_desc', 'number_asc', 'number_desc'</entry>
<entry>'group_time_asc'</entry>
<entry>Hotlist sort type (group_time_asc (default), group_time_desc, group_number_asc, group_number_desc, number_asc, number_desc)</entry>
</row>
<row>
<entry><option>look_day_change</option></entry>
<entry>boolean</entry>
@@ -287,8 +287,8 @@
</row>
<row>
<entry><option>look_read_marker</option></entry>
<entry>string</entry>
<entry>any string</entry>
<entry>char</entry>
<entry>any char</entry>
<entry>' '</entry>
<entry>Use a marker on servers/channels to show first unread line</entry>
</row>
@@ -299,6 +299,13 @@
<entry>'[%n(%m)] '</entry>
<entry>Format for input prompt ('%c' is replaced by channel or server, '%n' by nick and '%m' by nick modes)</entry>
</row>
<row>
<entry><option>look_paste_max_lines</option></entry>
<entry>integer</entry>
<entry>between 0 and 2147483647</entry>
<entry>3</entry>
<entry>Max number of lines for paste without asking user (0 = disable this feature)</entry>
</row>
<row>
<entry><option>col_real_white</option></entry>
<entry>boolean</entry>
@@ -320,6 +327,13 @@
<entry>'default'</entry>
<entry>Color for title bar</entry>
</row>
<row>
<entry><option>col_title_more</option></entry>
<entry>color</entry>
<entry>Curses or Gtk color</entry>
<entry>'lightmagenta'</entry>
<entry>Color for '+' when scrolling topic</entry>
</row>
<row>
<entry><option>col_title_bg</option></entry>
<entry>color</entry>
@@ -565,6 +579,20 @@
<entry>'cyan'</entry>
<entry>Color for input text (delimiters)</entry>
</row>
<row>
<entry><option>col_input_text_not_found</option></entry>
<entry>color</entry>
<entry>Curses or Gtk color</entry>
<entry>'red'</entry>
<entry>Color for text not found</entry>
</row>
<row>
<entry><option>col_input_actions</option></entry>
<entry>color</entry>
<entry>Curses or Gtk color</entry>
<entry>'lightgreen'</entry>
<entry>Color for actions in input window</entry>
</row>
<row>
<entry><option>col_input_bg</option></entry>
<entry>color</entry>
@@ -621,6 +649,13 @@
<entry>'yellow'</entry>
<entry>Color for voice symbol</entry>
</row>
<row>
<entry><option>col_nick_user</option></entry>
<entry>color</entry>
<entry>Curses or Gtk color</entry>
<entry>'blue'</entry>
<entry>Color for user symbol</entry>
</row>
<row>
<entry><option>col_nick_more</option></entry>
<entry>color</entry>
@@ -915,6 +950,13 @@
<entry>5</entry>
<entry>Disconnect after important lag (in minutes, 0 = never disconnect)</entry>
</row>
<row>
<entry><option>irc_anti_flood</option></entry>
<entry>integer</entry>
<entry>between 0 and 5</entry>
<entry>2</entry>
<entry>Anti-flood: # seconds between two user messages (0 = no anti-flood)</entry>
</row>
<row>
<entry><option>irc_fifo_pipe</option></entry>
<entry>boolean</entry>
@@ -941,7 +983,14 @@
<entry>boolean</entry>
<entry>'on' or 'off'</entry>
<entry>'on'</entry>
<entry>Allow user to send colors with special codes (%B=bold, %Cxx,yy=color, %U=underline, %R=reverse)</entry>
<entry>Allow user to send colors with special codes (^Cb=bold, ^Ccxx=color, ^Ccxx,yy=color+background, ^Cu=underline, ^Cr=reverse)</entry>
</row>
<row>
<entry><option>irc_send_unknown_commands</option></entry>
<entry>boolean</entry>
<entry>'on' or 'off'</entry>
<entry>'off'</entry>
<entry>Send unknown commands to IRC server</entry>
</row>
<row>
<entry><option>dcc_auto_accept_files</option></entry>
@@ -1207,12 +1256,12 @@
<entry>string</entry>
<entry>any string</entry>
<entry>''</entry>
<entry>Command(s) to run when connected to server (many commands should be separated by ';', use '\;' for a semicolon)</entry>
<entry>Command(s) to run when connected to server (many commands should be separated by ';', use '\;' for a semicolon, special variables $nick, $channel and $server are replaced by their value)</entry>
</row>
<row>
<entry><option>server_command_delay</option></entry>
<entry>integer</entry>
<entry>between 0 and 5</entry>
<entry>between 0 and 3600</entry>
<entry>0</entry>
<entry>Delay (in seconds) after command was executed (example: give some time for authentication)</entry>
</row>
@@ -1235,26 +1284,5 @@
<entry>string</entry>
<entry>any string</entry>
<entry>''</entry>
<entry>Comma separated list of notify levels for channels of this server (format: #channel:1,..)</entry>
</row>
<row>
<entry><option>server_charset_decode_iso</option></entry>
<entry>string</entry>
<entry>any string</entry>
<entry>''</entry>
<entry>Comma separated list of charsets for server and channels, to decode ISO (format: server:charset,#channel:charset,..)</entry>
</row>
<row>
<entry><option>server_charset_decode_utf</option></entry>
<entry>string</entry>
<entry>any string</entry>
<entry>''</entry>
<entry>Comma separated list of charsets for server and channels, to decode UTF (format: server:charset,#channel:charset,..)</entry>
</row>
<row>
<entry><option>server_charset_encode</option></entry>
<entry>string</entry>
<entry>any string</entry>
<entry>''</entry>
<entry>Comma separated list of charsets for server and channels, to encode messages (format: server:charset,#channel:charset,..)</entry>
<entry>Comma separated list of notify levels for channels of this server (format: #channel:1,..), a channel name '*' is reserved for server default notify level</entry>
</row>
+2 -2
View File
@@ -42,11 +42,11 @@ bans nicks or hosts
nickname: user or host to ban
</programlisting>
<command>ctcp nickname type [arguments]</command>
<command>ctcp receiver type [arguments]</command>
<programlisting>
send a CTCP message (Client-To-Client Protocol)
nickname: user to send CTCP to
receiver: nick or channel to send CTCP to
type: CTCP type (examples: "version", "ping", ..)
arguments: arguments for CTCP
+24
View File
@@ -117,6 +117,14 @@
<entry><literal>scroll_bottom</literal></entry>
<entry>scroll to bottom of buffer</entry>
</row>
<row>
<entry><literal>scroll_topic_left</literal></entry>
<entry>scroll left topic</entry>
</row>
<row>
<entry><literal>scroll_topic_right</literal></entry>
<entry>scroll right topic</entry>
</row>
<row>
<entry><literal>nick_beginning</literal></entry>
<entry>display beginning of nicklist</entry>
@@ -149,6 +157,10 @@
<entry><literal>jump_last_buffer</literal></entry>
<entry>jump to last buffer</entry>
</row>
<row>
<entry><literal>jump_previous_buffer</literal></entry>
<entry>jump to previous buffer</entry>
</row>
<row>
<entry><literal>jump_server</literal></entry>
<entry>jump to server buffer</entry>
@@ -173,6 +185,10 @@
<entry><literal>scroll_unread</literal></entry>
<entry>scroll to first unread line in buffer</entry>
</row>
<row>
<entry><literal>set_unread</literal></entry>
<entry>set unread marker on all buffers</entry>
</row>
<row>
<entry><literal>hotlist_clear</literal></entry>
<entry>clear hotlist</entry>
@@ -189,3 +205,11 @@
<entry><literal>grab_key</literal></entry>
<entry>grab a key</entry>
</row>
<row>
<entry><literal>insert</literal></entry>
<entry>insert a string in command line</entry>
</row>
<row>
<entry><literal>search_text</literal></entry>
<entry>search text in buffer history</entry>
</row>
+1340 -91
View File
File diff suppressed because it is too large Load Diff
+82 -37
View File
@@ -11,7 +11,11 @@ create an alias for a command
alias_name: name of alias
command: command name (WeeChat or IRC command, many commands can be separated by semicolons)
arguments: arguments for command
arguments: arguments for command
</programlisting>
<command>is replaced by all arguments.</command>
<programlisting>Variables $nick, $channel and $server are replaced by current nick/channel/server.
</programlisting>
<command>buffer [action [args] | number | [[server] [channel]]]</command>
@@ -23,9 +27,23 @@ manage buffers
close: close buffer (optional arg is part message, for a channel)
list: list open buffers (no parameter implies this list)
notify: set notify level for buffer (0=never, 1=highlight, 2=1+msg, 3=2+join/part)
server
channel: jump to buffer by server and/or channel name
(when executed on server buffer, this sets default notify level for whole server)
scroll: scroll in history (may be relative, and may end by a letter: s=sec, m=min, h=hour, d=day, M=month, y=year); if there is only letter, then scroll to beginning of this item
number: jump to buffer by number
server,
channel: jump to buffer by server and/or channel name
Examples:
move buffer: /buffer move 5
close buffer: /buffer close this is part msg
set notify: /buffer notify 2
scroll 1 day up: /buffer scroll 1d == /buffer scroll -1d == /buffer scroll -24h
scroll to beginning
of this day: /buffer scroll d
scroll 15 min down: /buffer scroll +15m
scroll 20 msgs up: /buffer scroll -20
jump to #weechat: /buffer #weechat
</programlisting>
<command>builtin command</command>
@@ -36,34 +54,32 @@ command: command to execute (a '/' is automatically added if not found at beginn
</programlisting>
<command>charset [(decode_iso | decode_utf | encode) charset]</command>
<programlisting>
change charset for server or channel
decode_iso: charset used for decoding ISO
decode_utf: charset used for decoding UTF
encode: charset used for encoding messages
charset: charset to use (for example: ISO-8859-15, UTF-8,..)
</programlisting>
<command>clear [-all]</command>
<command>clear [-all | number [number ...]]</command>
<programlisting>
clear window(s)
-all: clear all windows
-all: clear all buffers
number: clear buffer by number
</programlisting>
<command>connect [servername]</command>
<command>connect [-all [-nojoin] | servername [servername ...] [-nojoin] | hostname [-port port] [-ipv6] [-ssl]]</command>
<programlisting>
connect to a server
connect to server(s)
servername: server name to connect
-all: connect to all servers
servername: internal server name to connect
-nojoin: do not join any channel (even if autojoin is enabled on server)
hostname: hostname to connect, creating temporary server
port: port for server (integer, default is 6667)
ipv6: use IPv6 protocol
ssl: use SSL protocol
</programlisting>
<command>disconnect [servername]</command>
<command>disconnect [-all | servername [servername ...]]</command>
<programlisting>
disconnect from a server
disconnect from server(s)
-all: disconnect from all servers
servername: server name to disconnect
</programlisting>
@@ -76,11 +92,12 @@ nickname: nickname to send file or chat
file: filename (on local host)
</programlisting>
<command>debug dump | windows</command>
<command>debug dump | buffer | windows</command>
<programlisting>
print debug messages
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
buffer: dump buffer content with hexadecimal values in log file
windows: display windows tree
</programlisting>
@@ -113,32 +130,60 @@ For each argument, '*' means all.
Without argument, /ignore command lists all defined ignore.
</programlisting>
<command>key [key function/command] [unbind key] [functions] [reset -yes]</command>
<command>key [key [function/command]] [unbind key] [functions] [call function ["args"]] [reset -yes]</command>
<programlisting>
bind/unbind keys
key: bind this key to an internal function or a command (beginning by "/")
key: display or bind this key to an internal function or a command (beginning by "/")
unbind: unbind a key
functions: list internal functions for key bindings
call: call a function by name (with optional arguments)
reset: restore bindings to the default values and delete ALL personal bindings (use carefully!)
</programlisting>
<command>plugin [load filename] | [autoload] | [reload] | [unload]</command>
<command>plugin [list [name]] | [listfull [name]] | [load filename] | [autoload] | [reload [name]] | [unload [name]]</command>
<programlisting>
list/load/unload plugins
filename: WeeChat plugin (file) to load
list: list loaded plugins
listfull: list loaded plugins with detailed info for each plugin
load: load a plugin
autoload: autoload plugins in system or user directory
reload: reload one plugin (if no name given, unload all plugins, then autoload plugins)
unload: unload one or all plugins
Without argument, /plugin command lists all loaded plugins.
Without argument, /plugin command lists loaded plugins.
</programlisting>
<command>server [servername] | [servername hostname port [-auto | -noauto] [-ipv6] [-ssl] [-pwd password] [-nicks nick1 nick2 nick3] [-username username] [-realname realname] [-command command] [-autojoin channel[,channel]] ] | [del servername]</command>
<command>reconnect [-all [-nojoin] | servername [servername ...] [-nojoin]]</command>
<programlisting>
reconnect to server(s)
-all: reconnect to all servers
servername: server name to reconnect
-nojoin: do not join any channel (even if autojoin is enabled on server)
</programlisting>
<command>save [file]</command>
<programlisting>
save config to disk
file: filename for writing config
</programlisting>
<command>server [list [servername]] | [listfull [servername]] | [add servername hostname [-port port] [-temp] [-auto | -noauto] [-ipv6] [-ssl] [-pwd password] [-nicks nick1 nick2 nick3] [-username username] [-realname realname] [-command command] [-autojoin channel[,channel]] ] | [copy servername newservername] | [rename servername newservername] | [keep servername] | [del servername]</command>
<programlisting>
list, add or remove servers
list: list servers (no parameter implies this list)
listfull: list servers with detailed info for each server
add: create a new server
servername: server name, for internal and display use
hostname: name or IP address of server
port: port for server (integer)
port: port for server (integer, default is 6667)
temp: create temporary server (not saved in config file)
auto: automatically connect to server when WeeChat starts
noauto: do not connect to server when WeeChat starts (default)
ipv6: use IPv6 protocol
ssl: use SSL protocol
password: password for server
@@ -147,13 +192,11 @@ servername: server name, for internal and display use
nick3: second alternate nick for server
username: user name
realname: real name of user
</programlisting>
<command>save [file]</command>
<programlisting>
save config to disk
file: filename for writing config
copy: duplicate a server
rename: rename a server
keep: keep server in config file (for temporary servers only)
del: delete a server
deloutq: delete messages out queue for all servers (all messages WeeChat is currently sending)
</programlisting>
<command>set [option [ = value]]</command>
@@ -198,11 +241,13 @@ For each argument, '*' means all.
Without argument, /unignore command lists all defined ignore.
</programlisting>
<command>upgrade</command>
<command>upgrade [path_to_binary]</command>
<programlisting>
upgrade WeeChat without disconnecting from servers
This command run again WeeChat binary, so it should have been compiled or installed with a package manager before running this command.
path_to_binary: path to WeeChat binary (default is current binary)
This command run again a WeeChat binary, so it should have been compiled or installed with a package manager before running this command.
</programlisting>
<command>uptime [-o]</command>
+21 -6
View File
@@ -1,8 +1,8 @@
# Copyright (c) 2003-2006 FlashCode <flashcode@flashtux.org>
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = fr
@@ -22,9 +21,13 @@ QUICKSTART = weechat_quickstart.$(LANGCODE).txt
EXTRA_DIST = $(BOOK).xml $(BOOK_INCLUDE) $(QUICKSTART)
if DBLATEX_FOUND
PDF = pdf-stamp
endif
docdir = $(datadir)/doc/$(PACKAGE)
all-local: html-stamp
all-local: html-stamp $(PDF)
# HTML output with chunks (many pages)
@@ -48,16 +51,28 @@ html1-stamp: $(BOOK).xml $(BOOK_INCLUDE) ../weechat-html-one.xsl ../weechat-doc.
cp ../weechat-doc.css html1/
touch html1-stamp
# PDF output
pdf: pdf-stamp
pdf-stamp: $(BOOK).xml $(BOOK_INCLUDE)
echo "<pubdate>`date '+%F %T'`</pubdate>" >date.xml
dblatex -c ../dblatex.conf $(BOOK).xml || true
touch pdf-stamp
# install docs
install-data-hook:
$(mkinstalldirs) $(DESTDIR)$(docdir)/html/$(LANGCODE)/
$(INSTALL_DATA) html/* $(DESTDIR)$(docdir)/html/$(LANGCODE)/
$(INSTALL_DATA) $(QUICKSTART) $(DESTDIR)$(docdir)/
if DBLATEX_FOUND
$(INSTALL_DATA) $(BOOK).pdf $(DESTDIR)$(docdir)/
endif
# clean
clean-local:
-rm -f $(BOOK).html $(BOOK).pdf $(BOOK).txt date.xml
-rm -rf html/ html1/
-rm -f html-stamp html1-stamp
-rm -f html-stamp html1-stamp pdf-stamp
+95 -67
View File
@@ -40,34 +40,6 @@
<entry>'the geekest IRC client!'</entry>
<entry>Slogan WeeChat (si vide, le slogan ne sera pas utilisé)</entry>
</row>
<row>
<entry><option>look_charset_decode_iso</option></entry>
<entry>chaîne</entry>
<entry>toute chaîne</entry>
<entry>'ISO-8859-1'</entry>
<entry>Jeu de caractères ISO pour décoder les messages du serveur (utilisé seulement si la locale est UTF-8) (si non renseigné, les messages ne sont pas convertis si la locale est UTF-8)</entry>
</row>
<row>
<entry><option>look_charset_decode_utf</option></entry>
<entry>chaîne</entry>
<entry>toute chaîne</entry>
<entry>'UTF-8'</entry>
<entry>Jeu de caractères UTF pour décoder les messages du serveur (utilisé seulement si la locale n'est pas UTF-8) (si non renseigné, les messages ne sont pas convertis si la locale n'est pas UTF-8)</entry>
</row>
<row>
<entry><option>look_charset_encode</option></entry>
<entry>chaîne</entry>
<entry>toute chaîne</entry>
<entry>''</entry>
<entry>Jeu de caractères pour encoder les messages envoyés au serveur, exemples: UTF-8, ISO-8859-1 (si non renseigné, les messages ne sont pas convertis)</entry>
</row>
<row>
<entry><option>look_charset_internal</option></entry>
<entry>chaîne</entry>
<entry>toute chaîne</entry>
<entry>''</entry>
<entry>Force le jeu de caractères interne à WeeChat (doit être vide dans la plupart des cas, ce qui signifie que le jeu de caractères détecté est utilisé)</entry>
</row>
<row>
<entry><option>look_one_server_buffer</option></entry>
<entry>booléen</entry>
@@ -115,49 +87,56 @@
<entry>booléen</entry>
<entry>'on' ou 'off'</entry>
<entry>'on'</entry>
<entry>Afficher la fenêtre des utilisateurs (pour les fenêtres de canaux)</entry>
<entry>Afficher la fenêtre des pseudos (pour les fenêtres de canaux)</entry>
</row>
<row>
<entry><option>look_nicklist_position</option></entry>
<entry>chaîne</entry>
<entry>'left', 'right', 'top', 'bottom'</entry>
<entry>'right'</entry>
<entry>Position de la fenêtre d'utilisateurs (haut (top), gauche (left), droite (right, par défaut), bas (bottom))</entry>
<entry>Position de la fenêtre des pseudos (haut (top), gauche (left), droite (right, par défaut), bas (bottom))</entry>
</row>
<row>
<entry><option>look_nicklist_min_size</option></entry>
<entry>entier</entry>
<entry>entre 0 et 100</entry>
<entry>0</entry>
<entry>Taille minimum pour la fenêtre d'utilisateurs (largeur ou hauteur, selon look_nicklist_position (0 = pas de taille minimum))</entry>
<entry>Taille minimum pour la fenêtre des pseudos (largeur ou hauteur, selon look_nicklist_position (0 = pas de taille minimum))</entry>
</row>
<row>
<entry><option>look_nicklist_max_size</option></entry>
<entry>entier</entry>
<entry>entre 0 et 100</entry>
<entry>0</entry>
<entry>Taille maximum pour la fenêtre d'utilisateurs (largeur ou hauteur, selon look_nicklist_position (0 = pas de taille maximum; si min == max et &gt; 0, alors la taille est fixe))</entry>
<entry>Taille maximum pour la fenêtre des pseudos (largeur ou hauteur, selon look_nicklist_position (0 = pas de taille maximum; si min = max et &gt; 0, alors la taille est fixe))</entry>
</row>
<row>
<entry><option>look_nicklist_separator</option></entry>
<entry>booléen</entry>
<entry>'on' ou 'off'</entry>
<entry>'on'</entry>
<entry>Séparateur entre la discussion et la liste de pseudos</entry>
</row>
<row>
<entry><option>look_no_nickname</option></entry>
<entry>chaîne</entry>
<entry>toute chaîne</entry>
<entry>'-cmd-'</entry>
<entry>Texte à afficher en lieu et place du nom d'utilisateur lorsque la connexion n'est pas active</entry>
<entry>Texte à afficher en lieu et place du pseudo lorsque la connexion n'est pas active</entry>
</row>
<row>
<entry><option>look_nickmode</option></entry>
<entry>booléen</entry>
<entry>'on' ou 'off'</entry>
<entry>'on'</entry>
<entry>Afficher le mode de l'utilisateur ((half)op/voice) devant chaque utilisateur</entry>
<entry>Afficher le mode du pseudo ((half)op/voice) devant chaque utilisateur</entry>
</row>
<row>
<entry><option>look_nickmode_empty</option></entry>
<entry>booléen</entry>
<entry>'on' ou 'off'</entry>
<entry>'off'</entry>
<entry>Afficher un espace si le mode utilisateur n'est pas (half)op/voice</entry>
<entry>Afficher un espace si le mode du pseudo n'est pas (half)op/voice</entry>
</row>
<row>
<entry><option>look_nick_prefix</option></entry>
@@ -201,6 +180,13 @@
<entry>20</entry>
<entry>Taille maximum pour l'alignement des pseudos et autres messages (doit être &gt;= à look_align_size)</entry>
</row>
<row>
<entry><option>look_align_text_offset</option></entry>
<entry>entier</entry>
<entry>entre -1 et 64</entry>
<entry>-1</entry>
<entry>Décalage pour aligner les lignes des messages (exceptées les premières lignes), par défaut -1 (aligner après le pseudo), une valeur nulle ou positive est le décalage après le début de la ligne</entry>
</row>
<row>
<entry><option>look_nick_completor</option></entry>
<entry>chaîne</entry>
@@ -215,6 +201,13 @@
<entry>'[]-^'</entry>
<entry>Caractères à ignorer pour la complétion des pseudos</entry>
</row>
<row>
<entry><option>look_nick_completion_smart</option></entry>
<entry>booléen</entry>
<entry>'on' ou 'off'</entry>
<entry>'on'</entry>
<entry>Complétion intelligente pour les pseudos (complète d'abord avec les personnes qui ont parlé récemment)</entry>
</row>
<row>
<entry><option>look_nick_complete_first</option></entry>
<entry>booléen</entry>
@@ -271,6 +264,13 @@
<entry>0</entry>
<entry>Nombre maximum des noms dans la liste d'activité (0 = pas de limite)</entry>
</row>
<row>
<entry><option>look_hotlist_sort</option></entry>
<entry>chaîne</entry>
<entry>'group_time_asc', 'group_time_desc', 'group_number_asc', 'group_number_desc', 'number_asc', 'number_desc'</entry>
<entry>'group_time_asc'</entry>
<entry>Type de tri pour la liste d'activité (group_time_asc (par défaut), group_time_desc, group_number_asc, group_number_desc, number_asc, number_desc)</entry>
</row>
<row>
<entry><option>look_day_change</option></entry>
<entry>booléen</entry>
@@ -287,8 +287,8 @@
</row>
<row>
<entry><option>look_read_marker</option></entry>
<entry>chaîne</entry>
<entry>toute chaîne</entry>
<entry>caractère</entry>
<entry>tout caractère</entry>
<entry>' '</entry>
<entry>Utiliser un marqueur sur les serveurs/canaux pour montrer la première ligne non lue</entry>
</row>
@@ -299,6 +299,13 @@
<entry>'[%n(%m)] '</entry>
<entry>Format pour l'invite de la zone de saisie ('%c' est remplacé par le canal ou serveur, '%n' par le pseudo et '%m' par les modes du pseudo)</entry>
</row>
<row>
<entry><option>look_paste_max_lines</option></entry>
<entry>entier</entry>
<entry>entre 0 et 2147483647</entry>
<entry>3</entry>
<entry>Nombre maximum de lignes pour la détection de collage sans demander à l'utilisateur (0 = désactiver cette fonctionnalité)</entry>
</row>
<row>
<entry><option>col_real_white</option></entry>
<entry>booléen</entry>
@@ -320,6 +327,13 @@
<entry>'default'</entry>
<entry>Couleur pour la barre de titre</entry>
</row>
<row>
<entry><option>col_title_more</option></entry>
<entry>couleur</entry>
<entry>couleur Curses ou Gtk</entry>
<entry>'lightmagenta'</entry>
<entry>Couleur pour les '+' lors du défilement du titre</entry>
</row>
<row>
<entry><option>col_title_bg</option></entry>
<entry>couleur</entry>
@@ -388,14 +402,14 @@
<entry>couleur</entry>
<entry>couleur Curses ou Gtk</entry>
<entry>'lightcyan'</entry>
<entry>Couleur pour les noms d'utilisateurs dans les actions (fenêtre de discussion)</entry>
<entry>Couleur pour les pseudos dans les actions (fenêtre de discussion)</entry>
</row>
<row>
<entry><option>col_chat_host</option></entry>
<entry>couleur</entry>
<entry>couleur Curses ou Gtk</entry>
<entry>'cyan'</entry>
<entry>Couleur pour les noms de machines (fenêtre de discussion)</entry>
<entry>Couleur pour les hôtes (fenêtre de discussion)</entry>
</row>
<row>
<entry><option>col_chat_channel</option></entry>
@@ -565,6 +579,20 @@
<entry>'cyan'</entry>
<entry>Couleur pour le texte saisi (délimiteurs)</entry>
</row>
<row>
<entry><option>col_input_text_not_found</option></entry>
<entry>couleur</entry>
<entry>couleur Curses ou Gtk</entry>
<entry>'red'</entry>
<entry>Couleur pour le texte non trouvé</entry>
</row>
<row>
<entry><option>col_input_actions</option></entry>
<entry>couleur</entry>
<entry>couleur Curses ou Gtk</entry>
<entry>'lightgreen'</entry>
<entry>Couleur pour les actions dans la fenêtre de saisie</entry>
</row>
<row>
<entry><option>col_input_bg</option></entry>
<entry>couleur</entry>
@@ -621,12 +649,19 @@
<entry>'yellow'</entry>
<entry>Couleur pour le symbole voix</entry>
</row>
<row>
<entry><option>col_nick_user</option></entry>
<entry>couleur</entry>
<entry>couleur Curses ou Gtk</entry>
<entry>'blue'</entry>
<entry>Couleur pour le symbole utilisateur</entry>
</row>
<row>
<entry><option>col_nick_more</option></entry>
<entry>couleur</entry>
<entry>couleur Curses ou Gtk</entry>
<entry>'lightmagenta'</entry>
<entry>Couleur pour les '+' lors du scroll sur les pseudos</entry>
<entry>Couleur pour les '+' lors du défilement des pseudos</entry>
</row>
<row>
<entry><option>col_nick_sep</option></entry>
@@ -915,6 +950,13 @@
<entry>5</entry>
<entry>Déconnexion après un lag important (en minutes, 0 = ne jamais se déconnecter)</entry>
</row>
<row>
<entry><option>irc_anti_flood</option></entry>
<entry>entier</entry>
<entry>entre 0 et 5</entry>
<entry>2</entry>
<entry>Anti-flood: nombre de secondes entre deux messages utilisateur (0 = pas d'anti-flood)</entry>
</row>
<row>
<entry><option>irc_fifo_pipe</option></entry>
<entry>booléen</entry>
@@ -941,7 +983,14 @@
<entry>booléen</entry>
<entry>'on' ou 'off'</entry>
<entry>'on'</entry>
<entry>Autorise l'utilisateur à envoyer des couleurs avec des codes spéciaux (%B=gras, %Cxx,yy=couleur, %U=souligné, %R=inversé)</entry>
<entry>Autorise l'utilisateur à envoyer des couleurs avec des codes spéciaux (^Cb=gras, ^Cxx=couleur, ^Ccxx,yy=couleur+fond, ^Cu=souligné, ^Cr=inversé)</entry>
</row>
<row>
<entry><option>irc_send_unknown_commands</option></entry>
<entry>booléen</entry>
<entry>'on' ou 'off'</entry>
<entry>'off'</entry>
<entry>Envoie les commandes inconnues au serveur IRC</entry>
</row>
<row>
<entry><option>dcc_auto_accept_files</option></entry>
@@ -1025,7 +1074,7 @@
<entry>booléen</entry>
<entry>'on' ou 'off'</entry>
<entry>'on'</entry>
<entry>Continuer automatiquement les transferts dcc si la connexion avec la machine distante a été perdue</entry>
<entry>Continuer automatiquement les transferts dcc si la connexion avec l'hôte a été perdue</entry>
</row>
<row>
<entry><option>proxy_use</option></entry>
@@ -1053,7 +1102,7 @@
<entry>chaîne</entry>
<entry>toute chaîne</entry>
<entry>''</entry>
<entry>Adresse du serveur proxy (IP ou nom)</entry>
<entry>Adresse du serveur proxy (IP ou nom de machine)</entry>
</row>
<row>
<entry><option>proxy_port</option></entry>
@@ -1207,12 +1256,12 @@
<entry>chaîne</entry>
<entry>toute chaîne</entry>
<entry>''</entry>
<entry>Commande(s) à exécuter lorsque connecté au serveur (plusieurs commandes doivent être séparées par ';', utilisez '\;' pour un point-virgule)</entry>
<entry>Commande(s) à exécuter lorsque connecté au serveur (plusieurs commandes doivent être séparées par ';', utilisez '\;' pour un point-virgule, les variables spéciales $nick, $channel et $server sont remplacées par leur valeur)</entry>
</row>
<row>
<entry><option>server_command_delay</option></entry>
<entry>entier</entry>
<entry>entre 0 et 5</entry>
<entry>entre 0 et 3600</entry>
<entry>0</entry>
<entry>Délai (en secondes) après exécution de la commande (exemple: donner du temps pour l'authentification)</entry>
</row>
@@ -1235,26 +1284,5 @@
<entry>chaîne</entry>
<entry>toute chaîne</entry>
<entry>''</entry>
<entry>Liste des niveaux de notifications (séparés par des virgules) pour les canaux de ce serveur (format: #canal:1,..)</entry>
</row>
<row>
<entry><option>server_charset_decode_iso</option></entry>
<entry>chaîne</entry>
<entry>toute chaîne</entry>
<entry>''</entry>
<entry>Liste des jeux de caractères (séparés par des virgules) pour le serveur et les canaux, pour décoder l'ISO (format: server:charset,#canal:charset,..)</entry>
</row>
<row>
<entry><option>server_charset_decode_utf</option></entry>
<entry>chaîne</entry>
<entry>toute chaîne</entry>
<entry>''</entry>
<entry>Liste des jeux de caractères (séparés par des virgules) pour le serveur et les canaux, pour décoder l'UTF (format: server:charset,#canal:charset,..)</entry>
</row>
<row>
<entry><option>server_charset_encode</option></entry>
<entry>chaîne</entry>
<entry>toute chaîne</entry>
<entry>''</entry>
<entry>Liste des jeux de caractères (séparés par des virgules) pour le serveur et les canaux, pour encoder les messages (format: server:charset,#canal:charset,..)</entry>
<entry>Liste des niveaux de notifications (séparés par des virgules) pour les canaux de ce serveur (format: #canal:1,..), un nom de canal '*' est réservé pour la notification par défaut du serveur</entry>
</row>
+31 -31
View File
@@ -36,17 +36,17 @@ message: message pour l'absence (si pas de message donn
</programlisting>
<command>ban [canal] [pseudo [pseudo ...]]</command>
<programlisting>
bannit des pseudos ou masques
bannit des pseudos ou hôtes
canal: nom du canal pour le bannissement
pseudo: pseudo ou masque pour le bannissement
pseudo: pseudo ou hôte pour le bannissement
</programlisting>
<command>ctcp pseudo type [arguments]</command>
<command>ctcp cible type [arguments]</command>
<programlisting>
envoyer un message CTCP (Client-To-Client Protocol)
pseudo: utilisateur à qui envoyer le CTCP
cible: pseudo à qui envoyer le CTCP
type: type de CTCP (exemples: "version", "ping", etc...)
arguments: arguments pour le CTCP
@@ -61,12 +61,12 @@ message_de_fin: message de fin (affich
</programlisting>
<command>dehalfop [pseudo [pseudo]]</command>
<programlisting>
retire le statut de demi-opérateur du canal à/aux nick(s)
retire le statut de demi-opérateur du canal à/aux pseudo(s)
</programlisting>
<command>deop [pseudo [pseudo]]</command>
<programlisting>
retire le statut d'opérateur du canal à/aux nick(s)
retire le statut d'opérateur du canal à/aux pseudo(s)
</programlisting>
<command>devoice [pseudo [pseudo]]</command>
@@ -81,7 +81,7 @@ arr
</programlisting>
<command>halfop [pseudo [pseudo]]</command>
<programlisting>
donner le statut de demi-opérateur à un/des utilisateur(s)
donner le statut de demi-opérateur à un/des pseudo(s)
</programlisting>
<command>info [cible]</command>
@@ -93,15 +93,15 @@ cible: nom du serveur
</programlisting>
<command>invite pseudo canal</command>
<programlisting>
inviter un utilisateur sur un canal
inviter un pseudo sur un canal
pseudo: utilisateur à inviter
pseudo: pseudo à inviter
channel: canal pour l'invitation
</programlisting>
<command>ison pseudo [pseudo ...]</command>
<programlisting>
vérifier si un utilisateur est actuellement sur IRC
vérifier si un pseudo est actuellement sur IRC
pseudo: pseudo
@@ -119,16 +119,16 @@ canal: nom du canal
retirer par la force un utilisateur d'un canal
canal: canal où l'utilisateur se trouve
pseudo: utilisateur à éliminer
pseudo: pseudo à éliminer
commentaire: commentaire pour l'élimination
</programlisting>
<command>kickban [canal] pseudo [commentaire]</command>
<programlisting>
retirer par la force un utilisateur d'un canal et le bannir
retirer par la force un pseudo d'un canal et le bannir
canal: canal où l'utilisateur se trouve
pseudo: utilisateur à éliminer et bannir
pseudo: pseudo à éliminer et bannir
commentaire: commentaire pour l'élimination
</programlisting>
@@ -136,7 +136,7 @@ commentaire: commentaire pour l'
<programlisting>
fermer la connexion client-serveur
pseudo: utilisateur
pseudo: pseudo
commentaire: commentaire pour la mort
</programlisting>
@@ -171,7 +171,7 @@ envoyer une action CTCP au canal courant
message: message à envoyer
</programlisting>
<command>mode { canal {[+|-]|o|p|s|i|t|n|b|v} [limite] [utilisateur] [masque de banissement] } | { nick {[+|-]|i|w|s|o} }</command>
<command>mode { canal {[+|-]|o|p|s|i|t|n|b|v} [limite] [utilisateur] [masque de banissement] } | { pseudo {[+|-]|i|w|s|o} }</command>
<programlisting>
changer le mode du canal ou de l'utilisateur
@@ -190,7 +190,7 @@ modes de canaux :
v: donner/reprendre la possibilité de parler sur un canal modéré
k: définir une clé (mot de passe) pour accéder au canal
modes utilisateur :
pseudo: utilisateur à modifier
pseudo: pseudo à modifier
i: marquer un utilisateur comme invisible
s: marquer un utilisateur pour recevoir les notices du serveur
w: l'utilisateur reçoit les wallops
@@ -206,15 +206,15 @@ cible: nom du serveur
</programlisting>
<command>msg cible[,cible] texte</command>
<programlisting>
envoyer un message à un utilisateur ou canal
envoyer un message à un pseudo ou canal
cible: utilisateur ou canal (peut-être un masque, '*' = canal courant)
cible: pseudo ou canal (peut-être un masque, '*' = canal courant)
texte: texte à envoyer
</programlisting>
<command>names [canal[,canal]]</command>
<programlisting>
lister les utilisateurs sur des canaux
lister les pseudos sur des canaux
canal: nom du canal
@@ -231,13 +231,13 @@ pseudo: nouveau pseudo
<programlisting>
envoyer un message notice à un utilisateur
pseudo: utilisateur cible pour la notice
pseudo: pseudo cible pour la notice
texte: texte à envoyer
</programlisting>
<command>op pseudo [pseudo]</command>
<programlisting>
donner le statut opérateur à un/des utilisateur(s)
donner le statut opérateur à un/des pseudo(s)
</programlisting>
<command>oper utilisateur mot_de_passe</command>
@@ -273,9 +273,9 @@ d
</programlisting>
<command>query pseudo [texte]</command>
<programlisting>
envoyer un message privé à un utilisateur
envoyer un message privé à un pseudo
pseudo: utilisateur pour la conversation privée
pseudo: pseudo pour la conversation privée
texte: texte à envoyer
</programlisting>
@@ -376,15 +376,15 @@ cible: serveur
</programlisting>
<command>unban [canal] pseudo [pseudo ...]</command>
<programlisting>
supprime le bannissement sur des pseudos ou masques
supprime le bannissement sur des pseudos ou hôtes
canal: nom du canal pour supprimer le bannissement
pseudo: pseudo ou masque pour supprimer le bannissement
pseudo: pseudo ou hôte pour supprimer le bannissement
</programlisting>
<command>userhost pseudo [pseudo ...]</command>
<programlisting>
retourne une liste d'informations sur des utilisateurs
retourne une liste d'informations sur des pseudos
pseudo: pseudo
@@ -398,15 +398,15 @@ cible: serveur
</programlisting>
<command>version [serveur | pseudo]</command>
<programlisting>
retourne la version de l'utilisateur ou du serveur (courant ou spécifié)
retourne la version du pseudo ou du serveur (courant ou spécifié)
serveur: nom du serveur
pseudo: utilisateur
pseudo: pseudo
</programlisting>
<command>voice [pseudo [pseudo]]</command>
<programlisting>
donne la voix à/aux utilisateur(s)
donne la voix à/aux pseudo(s)
</programlisting>
<command>wallops texte</command>
@@ -429,12 +429,12 @@ masque: information qui correspond
demande les informations sur le(s) utilisateur(s)
serveur: nom du serveur
pseudo: utilisateur (peut être un masque)
pseudo: pseudo (peut être un masque)
</programlisting>
<command>whowas pseudo [,pseudo [,pseudo ...]] [nombre [cible]]</command>
<programlisting>
demander de l'information sur un nick qui n'existe plus
demander de l'information sur un pseudo qui n'existe plus
pseudo: pseudo à chercher
nombre: nombre de réponses à retourner (recherche complète si nombre négatif)
+27 -3
View File
@@ -117,6 +117,14 @@
<entry><literal>scroll_bottom</literal></entry>
<entry>faire défiler jusqu'à la fin du tampon</entry>
</row>
<row>
<entry><literal>scroll_topic_left</literal></entry>
<entry>faire défiler le titre vers la gauche</entry>
</row>
<row>
<entry><literal>scroll_topic_right</literal></entry>
<entry>faire défiler le titre vers la droite</entry>
</row>
<row>
<entry><literal>nick_beginning</literal></entry>
<entry>afficher le début de la liste des pseudos</entry>
@@ -149,6 +157,10 @@
<entry><literal>jump_last_buffer</literal></entry>
<entry>sauter au dernier tampon</entry>
</row>
<row>
<entry><literal>jump_previous_buffer</literal></entry>
<entry>sauter au tampon précédent</entry>
</row>
<row>
<entry><literal>jump_server</literal></entry>
<entry>sauter au tampon du serveur</entry>
@@ -163,15 +175,19 @@
</row>
<row>
<entry><literal>scroll_previous_highlight</literal></entry>
<entry>scroller jusqu'au highlight précédent du tampon</entry>
<entry>faire défiler jusqu'au highlight précédent du tampon</entry>
</row>
<row>
<entry><literal>scroll_next_highlight</literal></entry>
<entry>scroller jusqu'au highlight suivant du tampon</entry>
<entry>faire défiler jusqu'au highlight suivant du tampon</entry>
</row>
<row>
<entry><literal>scroll_unread</literal></entry>
<entry>scroller jusqu'à la première ligne non lue du tampon</entry>
<entry>faire défiler jusqu'à la première ligne non lue du tampon</entry>
</row>
<row>
<entry><literal>set_unread</literal></entry>
<entry>positionner le marqueur de données non lues sur tous les tampons</entry>
</row>
<row>
<entry><literal>hotlist_clear</literal></entry>
@@ -189,3 +205,11 @@
<entry><literal>grab_key</literal></entry>
<entry>capturer une touche</entry>
</row>
<row>
<entry><literal>insert</literal></entry>
<entry>insérer une chaîne dans la ligne de commande</entry>
</row>
<row>
<entry><literal>search_text</literal></entry>
<entry>recherche de texte dans l'historique du tampon</entry>
</row>
+1376 -84
View File
File diff suppressed because it is too large Load Diff
+85 -40
View File
@@ -13,6 +13,10 @@ cr
commande: nom de la commande (commande WeeChat ou IRC, plusieurs commandes peuvent être séparées par des point-virgules)
paramètres: paramètres pour la commande
</programlisting>
<command>est remplacé par tous les paramètres.</command>
<programlisting>Les variables $nick, $channel et $server sont remplacées par le pseudo/canal/serveur courant.
</programlisting>
<command>buffer [action [args] | nombre | [[serveur] [canal]]]</command>
<programlisting>
@@ -23,9 +27,23 @@ gestion des tampons
close: ferme le tampon (le paramètre optionnel est le message de fin, pour un canal)
list: liste les tampons ouverts (pas de paramètre affiche cette liste)
notify: fixe le niveau de notification (0=jamais, 1=highlight, 2=1+msg, 3=2+join/part)
serveur
canal: saute au tampon par serveur et/ou nom de canal
(quand exécuté sur un tampon serveur, cela fixe le niveau de notification par défaut pour le serveur entier)
scroll: fait défiler l'historique (peut être relatif, et peut se terminer par une lettre: s=sec, m=min, h=heure, d=jour, M=mois, y=année); s'il y a seulement une lettre, alors fait défiler jusqu'au début de cet élément
nombre: saute au tampon qui a ce numéro
serveur,
canal: saute au tampon par serveur et/ou nom de canal
Exemples :
déplacer tampon: /buffer move 5
fermer tampon: /buffer close c'est le message de départ
niveau de notif.: /buffer notify 2
défiler 1 jour haut: /buffer scroll 1d == /buffer scroll -1d == /buffer scroll -24h
défiler au début
de ce jour: /buffer scroll d
défiler 15 min bas: /buffer scroll +15m
défiler 20 msgs haut: /buffer scroll -20
aller sur #weechat: /buffer #weechat
</programlisting>
<command>builtin commande</command>
@@ -36,34 +54,32 @@ commande: commande
</programlisting>
<command>charset [(decode_iso | decode_utf | encode) charset]</command>
<programlisting>
changer le jeu de caractères pour le serveur ou le canal
decode_iso: jeu de caractères utilisé pour décoder l'ISO
decode_utf: jeu de caractères utilisé pour décoder l'UTF
encode: jeu de caractères utilisé pour encoder les messages
charset: jeu de caractères à utiliser (par exemple: ISO-8859-15, UTF-8,..)
</programlisting>
<command>clear [-all]</command>
<command>clear [-all | numéro [numéro ...]]</command>
<programlisting>
effacer la/les fenêtre(s)
-all: effacer toutes les fenêtres
-all: effacer tous les tampons
numéro: effacer un tampon par son numéro
</programlisting>
<command>connect [nom_serveur]</command>
<command>connect [-all [-nojoin] | nom_serveur [nom_serveur ...] [-nojoin] | nom/IP [-port port] [-ipv6] [-ssl]]</command>
<programlisting>
se connecter à un serveur
se connecter à un/plusieurs serveur(s)
-all: se reconnecter à tous les serveurs
nom_serveur: nom du serveur pour se connecter
-nojoin: ne rejoindre aucun canal (même si l'autojoin est activé pour le serveur)
nom/IP: nom/IP pour se connecter, en créant un serveur temporaire
port: port pour le serveur (nombre entier, 6667 par défaut)
ipv6: utiliser le protocole IPv6
ssl: utiliser le protocole SSL
</programlisting>
<command>disconnect [nom_serveur]</command>
<command>disconnect [-all | nom_serveur [nom_serveur...]]</command>
<programlisting>
se déconnecter d'un serveur
se déconnecter d'un/plusieurs serveur(s)
-all: se déconnecter de tous les serveurs
nom_serveur: nom du serveur pour se déconnecter
</programlisting>
@@ -76,11 +92,12 @@ d
fichier: nom du fichier (sur la machine locale)
</programlisting>
<command>debug dump | windows</command>
<command>debug dump | buffer | windows</command>
<programlisting>
affiche des messages de debogage
dump: affiche les variables mémoire WeeChat dans le fichier log (les mêmes messages sont affichés lorsque WeeChat plante)
buffer: affiche le contenu du tampon en valeurs hexadécimales dans le fichier log
windows: affiche l'arbre des fenêtres
</programlisting>
@@ -101,9 +118,9 @@ valeur: nombre d'entr
</programlisting>
<command>ignore [masque [[type | commande] [canal [serveur]]]]</command>
<programlisting>
ignorer des messages IRC et/ou des masques
ignorer des messages IRC et/ou des hôtes
masque: pseudo ou masque à ignorer
masque: pseudo ou hôte à ignorer
type: type de message à ignorer (action, ctcp, dcc, pv)
commande: commande IRC
canal: nom du canal pour le ignore
@@ -113,32 +130,60 @@ Pour chaque param
Sans paramètres, la commande /ignore liste les ignore définis.
</programlisting>
<command>key [touche fonction/commande] [unbind touche] [functions] [reset -yes]</command>
<command>key [touche [fonction/commande]] [unbind touche] [functions] [call fonction ["params"]] [reset -yes]</command>
<programlisting>
associer/libérer des touches
touche: associer cette touche à une fonction interne ou une commande (commençant par "/")
touche: voir ou associer cette touche à une fonction interne ou une commande (commençant par "/")
unbind: supprimer l'association à une touche
functions: lister la liste des fonctions internes pour les associations de touches
call: appeler une foonction par son nom (avec paramètres optionnels)
reset: restaure les touches aux valeurs par défaut et supprime TOUTES les touches personnelles (utiliser avec précaution !)
</programlisting>
<command>plugin [load fichier] | [autoload] | [reload] | [unload]</command>
<command>plugin [list [nom]] | [listfull [nom]] | [load fichier] | [autoload] | [reload [nom]] | [unload [nom]]</command>
<programlisting>
liste/charge/décharge des extensions
fichier: extension WeeChat (fichier) à charger
list: lister les extensions chargées
listfull: lister les extensions chargées avec de l'info détaillée pour chaque extension
load: charger une extension
autoload: charger automatiquement les extensions dans un répertoire système ou utilisateur
reload: recharger une extension (si pas de nom donné, décharger toutes les extensions, puis puis recharger automatiquement les extensions)
unload: décharger une ou plusieurs exteneions
Sans paramètre, la commande /plugin liste toutes les extensions chargées.
Sans paramètre, la commande /plugin liste les extensions chargées.
</programlisting>
<command>server [nom_serveur] | [nom_serveur nom/IP port [-auto | -noauto] [-ipv6] [-ssl] [-pwd mot_de_passe] [-nicks pseudo1 pseudo2 pseudo3] [-username nom_utilisateur] [-realname nom_réel] [-command commande] [-autojoin canal[,canal]] ] | [del nom_serveur]</command>
<command>reconnect [-all [-nojoin] | nom_serveur [nom_serveur...] [-nojoin]]</command>
<programlisting>
se reconnecter à un/plusieurs serveur(s)
-all: se reconnecter à tous les serveurs
nom_serveur: nom du serveur pour se reconnecter
-nojoin: ne rejoindre aucun canal (même si l'autojoin est activé pour le serveur)
</programlisting>
<command>save [fichier]</command>
<programlisting>
sauvegarder la configuration sur disque
fichier: fichier pour sauvegarder la configuration
</programlisting>
<command>server [list [nom_serveur]] | [listfull [nom_serveur]] | [add nom_serveur nom/IP [-port port] [-temp] [-auto | -noauto] [-ipv6] [-ssl] [-pwd mot_de_passe] [-nicks pseudo1 pseudo2 pseudo3] [-username nom_utilisateur] [-realname nom_réel] [-command commande] [-autojoin canal[,canal]] ] | [copy nom_serveur nouveau_nom_serveur] | [rename nom_serveur nouveau_nom_serveur] | [keep nom_serveur] | [del nom_serveur]</command>
<programlisting>
liste, ajoute ou retire des serveurs
list: afficher les serveurs (pas de paramètre implique cette liste)
listfull: afficher les serveurs avec de l'info détaillée pour chaque
add: créer un nouveau serveur
nom_serveur: nom du serveur, pour usage interne et affichage
nom/IP: nom ou adresse IP du serveur
port: port pour le serveur (nombre entier)
port: port pour le serveur (nombre entier, 6667 par défaut)
temp: créer un serveur temporaire (non sauvé dans le fichier de configuration)
auto: se connecter automatiquement au serveur quand WeeChat démarre
noauto: ne pas se connecter au serveur quand WeeChat démarre (par défaut)
ipv6: utiliser le protocole IPv6
ssl: utiliser le protocole SSL
mot_de_passe: mot de passe pour le serveur
@@ -147,13 +192,11 @@ liste, ajoute ou retire des serveurs
pseudo3: second pseudo alternatif pour le serveur
nom_utilisateur: nom d'utilisateur
nom_réel: nom réel de l'utilisateur
</programlisting>
<command>save [fichier]</command>
<programlisting>
sauvegarder la configuration sur disque
fichier: fichier pour sauvegarder la configuration
copy: dupliquer un serveur
rename: renommer un serveur
keep: garder le serveur dans le fichier de configuration (pour les serveurs temporaires seulement)
del: supprimer un serveur
deloutq: supprimer la file d'attente des messages sortants pour tous les serveurs (tous les messages que WeeChat est actuellement en train d'envoyer)
</programlisting>
<command>set [option [ = valeur]]</command>
@@ -185,10 +228,10 @@ nom_alias: nom de l'alias
</programlisting>
<command>unignore [nombre | [masque [[type | commande] [canal [serveur]]]]]</command>
<programlisting>
supprimer le ignore des messages IRC et/ou des masques
supprimer le ignore des messages IRC et/ou des hôtes
nombre: numéro de ignore à supprimer (le nombre est affiché sur la liste des ignore)
masque: pseudo ou masque à ignorer
masque: pseudo ou hôte à ignorer
type: type de message à ignorer (action, ctcp, dcc, pv)
commande: commande IRC
canal: nom du canal pour le ignore
@@ -198,11 +241,13 @@ Pour chaque param
Sans paramètre, /ignore liste les ignore définis.
</programlisting>
<command>upgrade</command>
<command>upgrade [chemin_vers_binaire]</command>
<programlisting>
mettre à jour WeeChat sans se déconnecter des serveurs
Cette commande lance à nouveau le binaire WeeChat, il doit donc avoir été compilé ou installé via un gestionnaire de paquet avant de lancer cette commande.
chemin_vers_binaire: chemin vers le binaire WeeChat (par défaut le binaire courant)
Cette commande lance à nouveau un binaire WeeChat, il doit donc avoir été compilé ou installé via un gestionnaire de paquet avant de lancer cette commande.
</programlisting>
<command>uptime [-o]</command>
@@ -219,7 +264,7 @@ gestion des fen
list: liste les fenêtres ouvertes (pas de paramètre affiche cette liste)
-1: saute à la fenêtre précédente
+1: saute à la fenêtre suivante
b#: saute à la fenêtre affichant le tampon #
b#: saute à la fenêtre affichant le tampon #
up: saute à la fenêtre au dessus
down: saute à la fenêtre au dessous
left: saute à la fenêtre à gauche
+3 -3
View File
@@ -53,11 +53,11 @@ Guide de d
Vous pouvez voir les options du serveur et les valeurs avec /set quakenet
Pour modifier une option, utilisez /set quakenet.server_option = valeur
5. Se connecter au serveur et rejoindre les canaux :
5. Se connecter au serveur et rejoindre les canaux
/connect quakenet
6. Rejoindre/quittre les canaux
6. Rejoindre/quitter les canaux
Joindre un canal :
/join #channel
@@ -93,7 +93,7 @@ Guide de d
Les extensions sont automatiquement chargées lorsqu'elles sont trouvées.
Plusieurs extensions/scripts sont disponibles pour WeeChat, voir ici :
http://weechat.flashtux.org/plugins.php
Merci de regarder la documentation WeeChat pour charger/décharget des
Merci de regarder la documentation WeeChat pour charger/décharger des
extensions ou des scripts.
10. Plus de documentation
+3 -4
View File
@@ -1,8 +1,8 @@
# Copyright (c) 2003-2006 FlashCode <flashcode@flashtux.org>
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = pl
+3 -4
View File
@@ -1,8 +1,8 @@
# Copyright (c) 2003-2006 FlashCode <flashcode@flashtux.org>
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = ru
+27
View File
@@ -0,0 +1,27 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = sco
QUICKSTART = weechat_quickstart.$(LANGCODE).txt
EXTRA_DIST = $(QUICKSTART)
docdir = $(datadir)/doc/$(PACKAGE)
# install docs
install-data-hook:
$(INSTALL_DATA) $(QUICKSTART) $(DESTDIR)$(docdir)/
+108
View File
@@ -0,0 +1,108 @@
WeeChat quik stairt guide (Scots version)
=========================
1. Launch weechat
Accordin tae choosed GUI, ye hav tae launch:
- weechat-curses fer Curses GUI
- weechat-gtk fer Gtk GUI (under development)
- weechat-qt fer Qt GUI (no developed)
- weechat-wxwidgets fer WxWidgets GUI (no developed yit)
2. Online help / options
WeeChat hus help fer awl commands, jus issu /help
Tae get help on a command, issu /help command
Tae set options, use eh /set option = value
Ye can use /set option wi partial name (displ't awl options
contain leters), or wi ownly a full option nam wi'oot value
(tae see long help fer option).
Pure Important: settings are saved when WeeChat ends (or wi eh "/save"
command). Gonnae NO(!) edit eh setup file whyle WeeChat is running, cause WeeChat
may write eh file at 'ne time, and its nae possible tae reload it.
Tae chainge any settins, use "/set" command, WeeChat immediately uses new
settings.
3. Create a server
Fer example irc.quakenet.org, port 6667:
/server quakenet irc.quakenet.org 6667
(/help server fer ful command help)
4. Set custom server options
Nicks:
/set quakenet.server_nick1 = "manick"
/set quakenet.server_nick2 = "manick2"
/set quakenet.server_nick3 = "manick3"
Username/realname:
/set quakenet.server_username = "Ma username"
/set quakenet.server_realname = "Ma real name"
Auto-connect tae server:
/set quakenet.server_autoconnect = on
Auto-join fer sum channels:
/set quakenet.server_autojoin = "#chan1,#chan2"
Other options:
Ye can see servers options and values wi /set quakenet
Tae set an option, use eh /set quakenet.server_option = value
5. Connect tae server n auto-join channels:
/connect quakenet
6. Join/part channels
Join a channel:
/join #channel
Part a channel:
/part [quit message]
Part a channel n close buffer:
/close [quit message]
(/close is an alias on /buffer close)
7. Buffer/window management
Ye can manage buffers wi "/buffer" command and windows
with "/window" command.
Fer example, tae split verticaly screen intae a wee windea (1/3 width),
n a big yin (2/3), use command:
/window splitv 33
8. Key bindings
According tae yer keyboard and/or ya needs, ye can rebind 'ne key
wi "/key" command.
A useful key is meta-k (alt-k) tae find key codes.
Fer example, tae bind meta-y (alt-y) tae command "/buffer close":
/key (press meta-k) (press meta-y) /buffer close
Ye wull huv a command line like:
/key meta-y /buffer close
9. Plugins/scripts
On som distros lyke Debian, plugins are available via a separate package
(like weechat-plugins).
Plugins are automatically loadet when found.
Many plugins/scripts are available fer WeeChat, please luk at:
http://weechat.flashtux.org/plugins.php
Please luk at WeeChat documentation tae load/unload plugins or scripts.
10. Mer documentation
Yae can noo use WeeChat and read FAQ/documentation fer any oths questins:
http://weechat.flashtux.org/faq.php
http://weechat.flashtux.org/doc.php
Enjoy WeeChat!
--
(c) 2006-05-31, written by FlashCode <flashcode@flashtux.org>, Translate't by AndrewB <andrewb@tuxhacker.org>
This document is part of WeeChat and is distributed under GPL licence.
+27
View File
@@ -0,0 +1,27 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
LANGCODE = sv
QUICKSTART = weechat_quickstart.$(LANGCODE).txt
EXTRA_DIST = $(QUICKSTART)
docdir = $(datadir)/doc/$(PACKAGE)
# install docs
install-data-hook:
$(INSTALL_DATA) $(QUICKSTART) $(DESTDIR)$(docdir)/
+109
View File
@@ -0,0 +1,109 @@
WeeChat snabb start guide (svensk version)
=========================
1. Starta weechat
Beroende på vald GUI, måste du starta:
- weechat-curses för Curses GUI
- weechat-gtk för Gtk GUI (under utveckling)
- weechat-qt för Qt GUI (inte utvecklad)
- weechat-wxwidgets för WxWidgets GUI (inte utvecklad)
2. Online hjälp / inställningar
WeeChat har hjälp för alla kommandon, skriv /help för mer information.
För att få hjälp med ett kommando, skriv /help kommando.
För att ställa in inställningarna, använd /set inställning = värde,
t ex. /set col_nick_self = white (ändrar ditt namn till färgen vit.)
Du kan använda /set inställning med partial namn (visar alla inställningar
som innehåller bokstäver), eller bara en inställning utan ett värde
(för att se mer information om den specifika inställningen, t ex. /set col_nick_self.)
Viktigt: inställningar sparas när WeeChat avlutas (eller med "/save"
kommando). Redigera INTE setup filen medans WeeChat körs, därför WeeChat
kan skriva i denna fil när som helst, och det är inte möjligt att ladda om den.
För att ändra inställingar, använd "/set" kommandot, WeeChat använder då
direkt de nya inställningarna.
3. Skapa en server
Till exempel irc.quakenet.org, port 6667:
/server quakenet irc.quakenet.org 6667
(/help server för full kommando hjälp)
4. Server inställningar
Smeknamn:
/set quakenet.server_nick1 = "mynick"
/set quakenet.server_nick2 = "mynick2"
/set quakenet.server_nick3 = "mynick3"
Användarnamn/Riktigt namn:
/set quakenet.server_username = "Mitt användarnamn"
/set quakenet.server_realname = "Mtt riktiga namn"
Automatiskt ansluta till server:
/set quakenet.server_autoconnect = on
Automatiskt joina en/flera kanaler:
/set quakenet.server_autojoin = "#chan1,#chan2"
Andra inställningar:
Du kan see server inställningar and värden med /set quakenet
För att ställa in en inställning, använd /set quakenet.server_inställning = värde
5. Ansluta till en server och automatiskt joina kanaler:
/connect quakenet
6. Joina/parta en kanal:
Joina en kanal:
/join #kanal
Parta en kanal:
/part [quit message]
Parta en kanal och stäng buffer:
/close [quit message]
(/close är ett alias av /buffer close)
7. Buffer/fönster management
Du kan ta hand om buffers med "/buffer" kommandot och fönster
med "/window" kommandot.
Till exempel, För att dela fönstret till ett litet fönster (1/3 bred),
och ett stort (2/3), använd kommandot:
/window splitv 33
8. Knapp 'binding'
Beroende på ditt tangentbord och/eller dina behov, kan du binda varje tangentknapp
med "/key" kommandot.
Till exempel, för att binda meta-y (alt-y) till kommandot "/buffer close":
/key (tryck meta-k) (tryck meta-y) /buffer close
Du borde ha en kommando rad som denna:
/key meta-y /buffer close
9. Plugins/skripts
På vissa distributioner såsom Debian, är plugins tillgängliga via ett separat paket
(som weechat-plugins).
Plugins är automatiskt laddad när det har hittats.
Det finns många plugins/skripts tillgängliga för WeeChat, Kolla:
http://weechat.flashtux.org/plugins.php
Kolla även WeeChat's dokumentering för att ladda/'unloada' plugins eller skripts..
10. Mer dokumentation
Du kan nu använda WeeChat och läsa FAQ/dokumentation för övriga frågor:
http://weechat.flashtux.org/faq.php
http://weechat.flashtux.org/doc.php
Njut av WeeChat!
--
(c) 2006-05-31, skrivet av FlashCode <flashcode@flashtux.org>
2007-08-09, översatt till svenska av Robin Karlsson <Robin--Karlsson@bredband.net>
Det här dokumentet är en del av WeeChat och är distribuerad under GPL
licens.
+3 -3
View File
@@ -1,4 +1,4 @@
.TH WEECHAT 1 "August 2006" "FlashCode"
.TH WEECHAT 1 "September 2007" "FlashCode"
.SH NAME
weechat-curses \- Wee Enhanced Environment for Chat (Curses version)
@@ -14,7 +14,7 @@ or
Fast, light and extensible IRC client for many operating systems.
.br
Everything can be done with a keyboard. It is customizable and extensible with scripts.
Many GUIs are available (Curses, Gtk, Qt, and text).
Many GUIs are or will be available (Curses, Gtk and Qt).
It is compliant with RFCs 1459, 2810, 2811, 2812, and 2813.
.SH OPTIONS
@@ -85,7 +85,7 @@ WeeChat is written by FlashCode <flashcode@flashtux.org>
.br
WeeChat on the web:
.UR
http://weechat.flashtux.org
http://weechat.flashtux.org/
.br
Get support there:
.UR
+15 -9
View File
@@ -25,8 +25,10 @@ a:hover {
}
.navheader {
background-color: #E8E8FF;
border: solid 1px #B5B5CC;
background-color: #E0E0FF;
border: solid 1px #A7A7C4;
margin: -10px;
padding: 8px;
}
.navheader hr {
@@ -34,8 +36,10 @@ a:hover {
}
.navfooter {
background-color: #E8E8FF;
border: solid 1px #B5B5CC;
background-color: #E0E0FF;
border: solid 1px #A7A7C4;
margin: 20px -10px -10px -10px;
padding: 8px;
}
.navfooter hr {
@@ -43,9 +47,11 @@ a:hover {
}
.title {
background-color: #E5FFE5;
border: solid 1px #CCDDCC;
padding: 3px;
background-color: #EBEBEB;
border: solid 1px #CACACA;
margin-top: 25px;
padding: 6px;
letter-spacing: 1px;
}
.informaltable table {
@@ -79,8 +85,8 @@ a:hover {
pre.screen {
font-size: 11px;
background-color: #F5F5F5;
border: solid 1px #CCCCCC;
background-color: #FAFAFA;
border: dotted 1px #CCCCCC;
padding: 4px;
margin: 0 40px 0 40px;
}
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:param name="latex.hyperparam">colorlinks,linkcolor=blue</xsl:param>
</xsl:stylesheet>
+76
View File
@@ -0,0 +1,76 @@
# Copyright (c) 2003-2007 FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
SET(PO_FILES
fr.po
es.po
cs.po
hu.po
de.po
ru.po
)
SET(COPYRIGHT_HOLDER "WeeChat Team")
SET(BUGS_ADDRESS "flashcode@flashtux.org")
SET(POT_FILE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pot)
INCLUDE(srcfiles.cmake)
# Looking for xgettext, msgmerge and msgfmt
FIND_PROGRAM(XGETTEXT_EXECUTABLE xgettext)
FIND_PROGRAM(MSGMERGE_EXECUTABLE msgmerge)
FIND_PROGRAM(MSGFMT_EXECUTABLE msgfmt)
IF(XGETTEXT_EXECUTABLE AND MSGMERGE_EXECUTABLE AND MSGFMT_EXECUTABLE)
# Create PO template file weechat.pot
SET(SRC_FILES)
SET(POT_DEPENDS)
FOREACH(srcfile ${WEECHAT_SOURCES})
SET(SRC_FILES ${SRC_FILES} ${srcfile})
SET(POT_DEPENDS ${POT_DEPENDS} ${CMAKE_SOURCE_DIR}/${srcfile})
ENDFOREACH(srcfile ${WEECHAT_SOURCES})
ADD_CUSTOM_COMMAND(
OUTPUT ${POT_FILE}
COMMAND ${XGETTEXT_EXECUTABLE}
ARGS -o ${POT_FILE} --keyword='_' --keyword='N_' --directory=${CMAKE_SOURCE_DIR} --omit-header --msgid-bugs-address=${BUGS_ADDRESS} --copyright-holder=${COPYRIGHT_HOLDER} ${SRC_FILES}
DEPENDS ${POT_DEPENDS}
COMMENT "Generating PO template file"
)
# Update .po files and compile them to binary .gmo files
SET(GMO_FILES)
FOREACH(pofile ${PO_FILES})
GET_FILENAME_COMPONENT(polang ${pofile} NAME_WE)
SET(gmofile ${CMAKE_CURRENT_BINARY_DIR}/${polang}.gmo)
ADD_CUSTOM_COMMAND(
OUTPUT ${gmofile}
COMMAND ${MSGMERGE_EXECUTABLE} ARGS --quiet -s -o ${CMAKE_CURRENT_BINARY_DIR}/${pofile} ${CMAKE_CURRENT_SOURCE_DIR}/${pofile} ${POT_FILE}
COMMAND ${MSGFMT_EXECUTABLE} ARGS -o ${gmofile} ${CMAKE_CURRENT_BINARY_DIR}/${pofile}
DEPENDS ${POT_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}
COMMENT "Compiling locales (${polang})"
)
INSTALL(FILES ${gmofile} DESTINATION share/locale/${polang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo)
SET(GMO_FILES ${GMO_FILES} ${gmofile})
ENDFOREACH(pofile ${PO_FILES})
ADD_CUSTOM_TARGET(translations ALL DEPENDS ${GMO_FILES})
ENDIF(XGETTEXT_EXECUTABLE AND MSGMERGE_EXECUTABLE AND MSGFMT_EXECUTABLE)
+1 -1
View File
@@ -1,7 +1,7 @@
DOMAIN = $(PACKAGE)
subdir = po
top_builddir = ..
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=NG_:1,2
COPYRIGHT_HOLDER =
EXTRA_LOCALE_CATEGORIES =
MSGID_BUGS_ADDRESS = flashcode@flashtux.org
+2
View File
@@ -50,6 +50,8 @@
./src/gui/gui-keyboard.h
./src/gui/gui-panel.h
./src/gui/gui-window.h
./src/common/alias.c
./src/common/alias.h
./src/common/backtrace.c
./src/common/backtrace.h
./src/common/command.c
+1876 -1726
View File
File diff suppressed because it is too large Load Diff
+1844 -1701
View File
File diff suppressed because it is too large Load Diff
+1797 -1658
View File
File diff suppressed because it is too large Load Diff
+2590 -2422
View File
File diff suppressed because it is too large Load Diff
+1871 -1550
View File
File diff suppressed because it is too large Load Diff
+1870 -1716
View File
File diff suppressed because it is too large Load Diff
+82
View File
@@ -0,0 +1,82 @@
SET(WEECHAT_SOURCES
src/irc/irc-mode.c
src/irc/irc-nick.c
src/irc/irc-server.c
src/irc/irc-channel.c
src/irc/irc-commands.c
src/irc/irc-display.c
src/irc/irc-send.c
src/irc/irc-recv.c
src/irc/irc-dcc.c
src/irc/irc-ignore.c
src/irc/irc.h
src/plugins/plugins.c
src/plugins/plugins.h
src/plugins/plugins-config.c
src/plugins/plugins-config.h
src/plugins/plugins-interface.c
src/plugins/weechat-plugin.h
src/gui/curses/gui-curses-chat.c
src/gui/curses/gui-curses-color.c
src/gui/curses/gui-curses-infobar.c
src/gui/curses/gui-curses-input.c
src/gui/curses/gui-curses-keyboard.c
src/gui/curses/gui-curses-main.c
src/gui/curses/gui-curses-nicklist.c
src/gui/curses/gui-curses-panel.c
src/gui/curses/gui-curses-status.c
src/gui/curses/gui-curses-window.c
src/gui/curses/gui-curses.h
src/gui/gtk/gui-gtk-chat.c
src/gui/gtk/gui-gtk-color.c
src/gui/gtk/gui-gtk-infobar.c
src/gui/gtk/gui-gtk-input.c
src/gui/gtk/gui-gtk-keyboard.c
src/gui/gtk/gui-gtk-main.c
src/gui/gtk/gui-gtk-nicklist.c
src/gui/gtk/gui-gtk-panel.c
src/gui/gtk/gui-gtk-status.c
src/gui/gtk/gui-gtk-window.c
src/gui/gtk/gui-gtk.h
src/gui/gui-action.c
src/gui/gui-buffer.c
src/gui/gui-common.c
src/gui/gui-keyboard.c
src/gui/gui-log.c
src/gui/gui-panel.c
src/gui/gui-window.c
src/gui/gui.h
src/gui/gui-buffer.h
src/gui/gui-color.h
src/gui/gui-keyboard.h
src/gui/gui-panel.h
src/gui/gui-window.h
src/common/alias.c
src/common/alias.h
src/common/backtrace.c
src/common/backtrace.h
src/common/command.c
src/common/command.h
src/common/completion.c
src/common/completion.h
src/common/fifo.c
src/common/fifo.h
src/common/history.c
src/common/history.h
src/common/hotlist.c
src/common/hotlist.h
src/common/log.c
src/common/log.h
src/common/session.c
src/common/session.h
src/common/utf8.c
src/common/utf8.h
src/common/util.c
src/common/util.h
src/common/weechat.c
src/common/weechat.h
src/common/weeconfig.c
src/common/weeconfig.h
src/common/weelist.c
src/common/weelist.h
)
+1698 -1429
View File
File diff suppressed because it is too large Load Diff
+27
View File
@@ -0,0 +1,27 @@
-- Author: Julien Louis <ptitlouis@sysif.net>
-- License: GPLv2
-- Description: This lua script prints in the infobar the machine load average
--
weechat.register("loadavg", "0.1", "unload", "Print the load average in infobar")
local refresh = weechat.get_config("loadavg_refresh")
if refresh == "" then
refresh = 5
weechat.set_config("loadavg_refresh", 5)
end
weechat.add_timer_handler(refresh, "loadavg")
function loadavg()
local load = io.open("/proc/loadavg"):read()
load = string.gsub(load, "^([%w.]+) ([%w.]+) ([%w.]+).*", "%1 %2 %3")
weechat.print_infobar(refresh, "load: "..load)
return weechat.PLUGIN_RC_OK;
end
function unload()
weechat.remove_timer_handler("loadavg")
return weechat.remove_infobar(1)
end
+45
View File
@@ -0,0 +1,45 @@
#
# Copyright (c) 2006 by DeltaS4 <deltas4@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#
# Changelog:
# 0.1: first version
# 0.2: now you don't need the Song Change plugin enabled because
# it uses audtool --current-song to get the music name as nenolod
# suggested (http://boards.nenolod.net/index.php?showtopic=147). :)
#
#
# /setp perl.audacious.msg = "<msg that u want before the song>"
# example: "is playing" * YourNick is playing Artist - Title
# "now playing:" * YourNick now playing: Artist - Title
# "at" * YourNick at Artist - Title
#
weechat::register ("audacious", "0.2", "", "audacious-weechat current song script (usage: /music)");
weechat::add_command_handler ("music", audtool);
$msg = weechat::get_plugin_config("msg");
if ($msg eq $null) { weechat::set_plugin_config("msg", "is playing"); }
sub audtool {
$cs = `audtool --current-song`; chomp($cs);
$msg = weechat::get_plugin_config("msg");
weechat::command("/me $msg $cs");
}
+68
View File
@@ -0,0 +1,68 @@
##############################################################################
# #
# Away highlite loger #
# #
# Perl script for WeeChat. #
# #
# Log highlite/private msg when you are away #
# #
# #
# #
# Copyright (C) 2006 Jiri Golembiovsky <golemj@gmail.com> #
# #
# This program is free software; you can redistribute it and/or #
# modify it under the terms of the GNU General Public License #
# as published by the Free Software Foundation; either version 2 #
# of the License, or (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, #
# MA 02110-1301, USA. #
# #
##############################################################################
weechat::register( "AwayLog", "0.4", "", "Log privmsg/highlite when you are away" );
weechat::add_message_handler( "PRIVMSG", "awaylog" );
sub test_highlight {
$str = shift;
$irc_highlight = weechat::get_config( "irc_highlight" );
@arr = split( ",", $irc_highlight );
$b = 0;
$str = lc( $str );
while( $item = pop( @arr ) ) {
$item = lc( $item );
if( substr( $item, 0, 1 ) eq '*' ) { $item = '.' . $item; }
if( substr( $item, length( $item ) - 1, 1 ) eq '*' ) { $item = substr( $item, , 0, length( $item ) - 1 ) . ".*"; }
if( $str =~ /$item/ ) { $b++; }
}
return $b;
}
sub awaylog {
if( weechat::get_info( "away", $_[0] ) == 1 ) {
$i = index( $_[1], " PRIVMSG " );
$hostmask = substr( $_[1], 0, $i );
$str = substr( $_[1], $i + 9 );
$i = index( $str, ":" );
$channel = substr( $str, 0, $i - 1 );
$message = substr( $str, $i + 1 );
if( substr( $hostmask, 0, 1 ) eq ":" ) {
$hostmask = substr( $hostmask, 1 );
}
($nick, $host) = split( "!", $hostmask );
$mynick = weechat::get_info( "nick", $_[0] );
if( ( index( $message, $mynick ) != -1 ) || ( $channel eq $mynick ) || ( test_highlight( $message ) > 0 ) ) {
weechat::print( "$channel -- $nick :: $message", "", $_[0] );
}
}
return 0;
}
+56
View File
@@ -0,0 +1,56 @@
#
# Copyright (c) 2006-2007 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Speaker beep on highlight/private msg.
#
# History:
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.2: upgraded licence to GPL 3
# 2006-09-02, FlashCode <flashcode@flashtux.org>:
# version 0.1: initial release
#
use strict;
my $version = "0.2";
my $beep_command = "echo -n \a";
# default values in setup file (~/.weechat/plugins.rc)
my $default_beep_highlight = "on";
my $default_beep_pv = "on";
weechat::register("Beep", $version, "", "Speaker beep on highlight/private msg");
weechat::set_plugin_config("beep_highlight", $default_beep_highlight) if (weechat::get_plugin_config("beep_highlight") eq "");
weechat::set_plugin_config("beep_pv", $default_beep_pv) if (weechat::get_plugin_config("beep_pv") eq "");
weechat::add_message_handler("weechat_highlight", "highlight");
weechat::add_message_handler("weechat_pv", "pv");
sub highlight
{
my $beep = weechat::get_plugin_config("beep_highlight");
system($beep_command) if ($beep eq "on");
return weechat::PLUGIN_RC_OK;
}
sub pv
{
my $beep = weechat::get_plugin_config("beep_pv");
system($beep_command) if ($beep eq "on");
return weechat::PLUGIN_RC_OK;
}
+82
View File
@@ -0,0 +1,82 @@
#
# Copyright (c) 2006-2007 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Save current buffer to a file.
#
# History:
#
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.3: upgraded licence to GPL 3
# 2007-06-12, FlashCode <flashcode@flashtux.org>:
# version 0.2: added filename completion
# 2006-10-27, FlashCode <flashcode@flashtux.org>:
# version 0.1: initial release
#
use strict;
my $version = "0.3";
weechat::register("bufsave", $version, "", "Save buffer content to a file");
weechat::add_command_handler("bufsave", "bufsave_cmd",
"save current buffer to a file",
"filename",
"filename: target file (must not exist)",
"%f");
sub bufsave_cmd
{
if ($#_ == 1)
{
my $server = shift;
my $filename = shift;
return weechat::PLUGIN_RC_OK if (! $filename);
if (-e $filename)
{
weechat::print("Error: target file already exists!");
return weechat::PLUGIN_RC_KO;
}
my $channel = weechat::get_info("channel");
my @bc = weechat::get_buffer_data($server, $channel);
if (@bc)
{
if (! open(FILE, ">$filename"))
{
weechat::print("Error writing to target file!");
return weechat::PLUGIN_RC_KO;
}
foreach my $line (reverse(@bc))
{
my %l = %$line;
print FILE "$l{date} " if ($l{date});
print FILE "\<$l{nick}\> " if ($l{nick});
print FILE "$l{data}\n";
}
close(FILE);
}
else
{
weechat::print("Error: no buffer data");
return weechat::PLUGIN_RC_KO;
}
}
return weechat::PLUGIN_RC_OK;
}
+129
View File
@@ -0,0 +1,129 @@
##############################################################################
# #
# Exec #
# #
# Perl script for WeeChat. #
# #
# Execute the command and print it to the actual buffer or server #
# #
# #
# #
# Copyright (C) 2006 Jiri Golembiovsky <golemj@gmail.com> #
# #
# This program is free software; you can redistribute it and/or #
# modify it under the terms of the GNU General Public License #
# as published by the Free Software Foundation; either version 2 #
# of the License, or (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, #
# MA 02110-1301, USA. #
# #
##############################################################################
use Config;
$Config{usethreads} or die( "Recompile Perl with threads to run this script." );
use Thread;
my $registred = 0;
weechat::register( "Exec", "0.2", "", "Execute the command and print it to some buffer" );
weechat::add_command_handler(
"exec",
execute,
"Execute the command and print it to some buffer",
"[-o][ -win server:::channel] <cmd line>",
" -o print as msg\n".
" -win server:::channel print the output to the specific buffer",
""
);
sub execute {
if( !$registred ) { return; }
my $i = 0;
my $cmd = "";
my $msg = 0;
my $win = "";
my @arr = split( ' ', $_[1] );
my $cmdStart = 0;
if( $#arr < 0 ) { return; }
for( $i = 0; $i <= $#arr; $i++ ) {
if( @arr[$i] eq "-win" ) {
$i++;
$win = @arr[$i];
$cmdStart = $i + 1;
}
if( @arr[$i] eq "-o" ) {
$msg = 1;
$cmdStart = $i + 1;
}
}
for( $i = $cmdStart; $i <= $#arr; $i++ ) {
if( length( $cmd ) ) { $cmd = $cmd . ' '; }
$cmd = $cmd . @arr[$i];
}
my $thr = new Thread \&func_execute, $cmd, $msg, $win;
}
sub func_execute {
my $command = shift;
my $msg = shift;
my $win = shift;
my $c = 1;
my $char = '';
my $date = `date +%Y%m%d%H%M%S%N`;
my $out = "";
if( !length( $command ) ) {
weechat::print( "No command to execute (try -? for help)" );
return;
}
if( substr( $date, length( $date ) - 1, 1 ) eq "\n" ) { $date = substr( $date, 0, length( $date ) - 1 ); }
if( length( $command ) ) { system( $command . " > /tmp/weechat_" . $date . " 2>&1" ); }
open( FD, '<', "/tmp/weechat_" . $date ) or weechat::print( "/tmp/weechat_" . $date . ": $!" );
do {
$c = read( FD, $char, 1 );
$out = $out . $char;
} while( $c );
close( FD );
system( "rm -f /tmp/weechat_" . $date );
my $j = index( $win, ':::' );
if( length( $win ) && ( $j >= 0 ) ) {
if( $msg ) {
my $win1 = substr( $win, $j + 3 );
my $win2 = substr( $win, 0, $j );
my @its = split( "\n", $out );
for( $j = 0; $j <= $#its; $j++ ) {
weechat::command( $its[$j], $win1, $win2 );
}
} else {
weechat::print( $out, substr( $win, $j + 3 ), substr( $win, 0, $j ) );
}
} else {
if( $msg ) {
my $win1 = substr( $win, $j + 3 );
my $win2 = substr( $win, 0, $j );
my @its = split( "\n", $out );
for( $j = 0; $j <= $#its; $j++ ) {
weechat::command( $its[$j], $win1, $win2 );
}
} else {
weechat::print( $out );
}
}
}
$registred = 1;
+163
View File
@@ -0,0 +1,163 @@
#
# Copyright (c) 2003-2007 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# fete.pl (c) December 2003 by FlashCode <flashcode@flashtux.org>
# Updated on 2007-08-10 by FlashCode <flashcode@flashtux.org>
#
# Manages french calendat feasts with "/fete" command
# Syntax: /fete - display today's and tomorrow's feast
# /fete firstname - search for name in calendar
#
use locale;
my $version = "0.7";
weechat::register ("Fete", $version, "", "Gestion des fêtes du calendrier français", "UTF-8");
weechat::print ("Script 'Fete' $version chargé");
weechat::add_command_handler ("fete", fete);
@noms_jours = qw(Dimanche Lundi Mardi Mercredi Jeudi Vendredi Samedi);
@noms_mois = qw(Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre);
@fetes = (
# janvier
[ '!Marie - JOUR de l\'AN', '&Basile', '!Geneviève', '&Odilon', '&Edouard',
'&Mélaine', '&Raymond', '&Lucien', '!Alix', '&Guillaume', '&Paulin',
'!Tatiana', '!Yvette', '!Nina', '&Rémi', '&Marcel', '!Roseline',
'!Prisca', '&Marius', '&Sébastien', '!Agnès', '&Vincent', '&Barnard',
'&François de Sales', '-Conversion de St Paul', '!Paule', '!Angèle',
'&Thomas d\'Aquin', '&Gildas', '!Martine', '!Marcelle' ],
# février
[ '!Ella', '-Présentation', '&Blaise', '!Véronique', '!Agathe',
'&Gaston', '!Eugénie', '!Jacqueline', '!Apolline', '&Arnaud',
'-Notre-Dame de Lourdes', '&Félix', '!Béatrice', '&Valentin', '&Claude',
'!Julienne', '&Alexis', '!Bernadette', '&Gabin', '!Aimée',
'&Pierre Damien', '!Isabelle', '&Lazare', '&Modeste', '&Roméo', '&Nestor',
'!Honorine', '&Romain', '&Auguste' ],
# mars
[ '&Aubin', '&Charles le Bon', '&Guénolé', '&Casimir', '&Olive', '&Colette',
'!Félicité', '&Jean de Dieu', '!Françoise', '&Vivien', '!Rosine',
'!Justine', '&Rodrigue', '!Mathilde', '!Louise de Marillac', '!Bénédicte',
'&Patrice', '&Cyrille', '&Joseph', '&Herbert', '!Clémence', '!Léa',
'&Victorien', '!Catherine de Suède', '-Annonciation', '!Larissa',
'&Habib', '&Gontran', '!Gwladys', '&Amédée', '&Benjamin' ],
# avril
[ '&Hugues', '!Sandrine', '&Richard', '&Isodore', '!Irène', '&Marcellin',
'&Jean-Baptiste de la Salle', '!Julie', '&Gautier', '&Fulbert',
'&Stanislas', '&Jules', '!Ida', '&Maxime', '&Paterne',
'&Benoît-Joseph Labre', '&Anicet', '&Parfait', '!Emma', '!Odette',
'&Anselme', '&Alexandre', '&Georges', '&Fidèle', '&Marc', '!Alida',
'!Zita', '!Valérie', '!Catherine de Sienne', '&Robert' ],
# mai
[ '&Jérémie - FETE du TRAVAIL', '&Boris', '&Philippe / Jacques', '&Sylvain',
'!Judith', '!Prudence', '!Gisèle', '&Désiré - ANNIVERSAIRE 1945',
'&Pacôme', '!Solange', '!Estelle', '&Achille', '!Rolande', '&Mathias',
'!Denise', '&Honoré', '&Pascal', '&Eric', '&Yves', '&Bernardin',
'&Constantin', '&Emile', '&Didier', '&Donatien', '!Sophie', '&Bérenger',
'&Augustin', '&Germain', '&Aymar', '&Ferdinand', '-Visitation' ],
# juin
[ '&Justin', '!Blandine', '&Kévin', '!Clotilde', '&Igor', '&Norbert',
'&Gilbert', '&Médard', '!Diane', '&Landry', '&Barnabé', '&Guy',
'&Antoine de Padoue', '&Elisée', '!Germaine', '&Jean-François Régis',
'&Hervé', '&Léonce', '&Romuald', '&Silvère', '&Rodolphe', '&Alban',
'!Audrey', '&Jean-Baptiste', '&Salomon', '&Anthelme', '&Fernand',
'&Irénée', '&Pierre / Paul', '&Martial' ],
# juillet
[ '&Thierry', '&Martinien', '&Thomas', '&Florent', '&Antoine', '!Mariette',
'&Raoul', '&Thibaut', '!Amandine', '&Ulrich', '&Benoît', '&Olivier',
'&Henri / Joël', '!Camille - FETE NATIONALE', '&Donald',
'-N.D. du Mont Carmel', '!Charlotte', '&Frédéric', '&Arsène', '!Marina',
'&Victor', '!Marie-Madeleine', '!Brigitte', '!Christine', '&Jacques',
'&Anne', '!Nathalie', '&Samson', '!Marthe', '!Juliette',
'&Ignace de Loyola' ],
# août
[ '&Alphonse', '&Julien', '!Lydie', '&Jean-Marie Vianney', '&Abel',
'-Transfiguration', '&Gaëtan', '&Dominique', '&Amour', '&Laurent',
'!Claire', '!Clarisse', '&Hippolyte', '&Evrard',
'!Marie - ASSOMPTION', '&Armel', '&Hyacinthe', '!Hélène', '&Jean Eudes',
'&Bernard', '&Christophe', '&Fabrice', '!Rose de Lima', '&Barthélémy',
'&Louis', '!Natacha', '!Monique', '&Augustin', '!Sabine', '&Fiacre',
'&Aristide' ],
# septembre
[ '&Gilles', '!Ingrid', '&Grégoire', '!Rosalie', '!Raïssa', '&Bertrand',
'!Reine', '-Nativité de Marie', '&Alain', '!Inès', '&Adelphe',
'&Apollinaire', '&Aimé', '-La Ste Croix', '&Roland', '!Edith', '&Renaud',
'!Nadège', '!Emilie', '&Davy', '&Matthieu', '&Maurice', '&Constant',
'!Thècle', '&Hermann', '&Côme / Damien', '&Vincent de Paul', '&Venceslas',
'&Michel / Gabriel', '&Jérôme' ],
# octobre
[ '!Thérèse de l\'Enfant Jésus', '&Léger', '&Gérard', '&François d\'Assise',
'!Fleur', '&Bruno', '&Serge', '!Pélagie', '&Denis', '&Ghislain', '&Firmin',
'&Wilfried', '&Géraud', '&Juste', '!Thérèse d\'Avila', '!Edwige',
'&Baudouin', '&Luc', '&René', '!Adeline', '!Céline', '!Elodie',
'&Jean de Capistran', '&Florentin', '&Crépin', '&Dimitri', '!Emeline',
'&Simon / Jude', '&Narcisse', '!Bienvenue', '&Quentin' ],
# novembre
[ '&Harold - TOUSSAINT', '-Défunts', '&Hubert', '&Charles', '!Sylvie',
'!Bertille', '!Carine', '&Geoffroy', '&Théodore', '&Léon',
'&Martin - ARMISTICE 1918', '&Christian', '&Brice', '&Sidoine', '&Albert',
'!Marguerite', '!Elisabeth', '!Aude', '&Tanguy', '&Edmond',
'-Présentation de Marie', '!Cécile', '&Clément', '!Flora', '!Catherine',
'!Delphine', '&Séverin', '&Jacques de la Marche', '&Saturnin', '&André' ],
# décembre
[ '!Florence', '!Viviane', '&Xavier', '!Barbara', '&Gérald', '&Nicolas',
'&Ambroise', '-Immaculée Conception', '&Pierre Fourier', '&Romaric',
'&Daniel', '!Jeanne de Chantal', '!Lucie', '!Odile', '!Ninon', '!Alice',
'&Gaël', '&Gatien', '&Urbain', '&Abraham', '&Pierre Canisius',
'!Françoise-Xavier', '&Armand', '!Adèle', '&Emmanuel - NOEL', '&Etienne',
'&Jean', '-Sts Innocents', '&David', '&Roger', '&Sylvestre' ],
);
sub fete_jour
{
my ($sec, $min, $heure, $mjour, $mois, $annee, $sjour, $ajour, $est_dst) = localtime ($_[0]);
my $fete = $fetes[$mois][$mjour-1];
$fete =~ s/^!/Ste /;
$fete =~ s/^&/St /;
$fete =~ s/^-//;
$fete;
}
sub fete
{
if ($#_ == 1)
{
my @params = split " ", @_[1];
for $arg (@params)
{
for (my $mois = 0; $mois <= $#fetes; $mois++)
{
for (my $jour = 0; $jour < 31; $jour++)
{
if (uc ($fetes[$mois][$jour]) =~ /\U$arg/)
{
weechat::print (($jour + 1)." ".$noms_mois[$mois].": ".substr ($fetes[$mois][$jour], 1));
}
}
}
}
}
else
{
my $time_now = time;
my ($fete1, $fete2) = (fete_jour ($time_now), fete_jour ($time_now + (3600 * 24)));
my ($mjour, $mois, $sjour) = (localtime ($time_now))[3, 4, 6];
weechat::print_infobar (0, "$fete1 (demain: $fete2)");
}
return weechat::PLUGIN_RC_OK;
}
fete ();
+57
View File
@@ -0,0 +1,57 @@
# This script is a port from the original fortune.pl irssi script written by
# Ivo Marino <eim@cpan.org>. This script is in the public domain
#
# Author: Julien Louis <ptitlouis@sysif.net>
weechat::register("fortune", "0.1", "", "Send a random fortune cookie to a specified nick");
weechat::add_command_handler ("fortune", fortune, "Send a random fortune cookie to a specified nick",
"<nick> [lang]",
"<nick> The nickname to send the fortune cookie\n" .
" [lang] The cookie language (Default: en)\n",
"%n %-");
sub fortune {
my ($server, $param) = @_;
my $return = weechat::PLUGIN_RC_OK;
my $cookie = '';
if ($param) {
if ($server) {
(my $nick, my $lang) = split (' ', $param);
$lang = 'en' unless ($lang eq 'de'|| $lang eq 'it' || $lang eq
'en' || $lang eq 'fr' );
weechat::print ("Nick: " . $nick . ", Lang: \"" . $lang . "\"");
if ($lang eq 'de') {
$cookie = `fortune -x`;
} elsif ($lang eq 'it') {
$cookie = `fortune -a italia`;
} else {
$cookie = `fortune -a fortunes literature riddles`;
}
$cookie =~ s/\s*\n\s*/ /g;
if ($cookie) {
$channel = weechat::get_info("channel");
if ($channel) {
weechat::command($nick . ": " . $cookie, $channel);
}
} else {
weechat::print ("No cookie.");
$return = weechat::PLUGIN_RC_KO;
}
} else {
weechat::print ("Not connected to server");
$return = weechat::PLUGIN_RC_KO;
}
} else {
weechat::print ("Usage: /fortune <nick> [language]");
$return = weechat::PLUGIN_RC_KO;
}
return $return;
}
+94
View File
@@ -0,0 +1,94 @@
# growl-notify.pl -- Have Weechat send notifications thru Mac::Growl
# Copyright (c) 2007 Zak B. Elep <zakame@spunge.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
use strict;
use Mac::Growl;
my $app = 'Weechat (Curses)';
my @messages_events = (
[ nick => 'Changed Nick', '$nick has changed nick to $text' ],
[ join => 'Joined Room', '$nick has joined $text' ],
[ part => 'Left Room', '$nick has left $channel($text)' ],
[ quit => 'Quit', '$nick has quit($text)' ],
[ topic => 'Set Topic', '$nick has set topic to \'$text\'' ],
[ weechat_highlight => 'Highlight Mentioned', '$text in $channel' ],
[ weechat_pv => 'Private Message', '$nick: $text' ],
);
my $notes;
push @$notes, $_->[1] foreach @messages_events;
Mac::Growl::RegisterNotifications $app, $notes, $notes;
my $version = '0.2';
weechat::register 'growl-notify', $version, '',
'Send Weechat notifications thru Mac::Growl';
for my $message (@messages_events) {
no strict 'refs'; # access symbol table
my $subname = join '', __PACKAGE__, '::handler_', $message->[0];
*{$subname} = sub
{
my($server, $args) = @_;
# weechat::print $args;
my($mask, $nick, $channel, $text);
(undef, $channel, $text) = split /:/, $args, 3;
($mask, undef, $channel) = split / /, $channel;
($nick, undef) = split /!/, $mask;
Mac::Growl::PostNotification $app, $message->[1],
$message->[1], eval qq("$message->[2]"),
($message->[0] =~ /(pv|highlight)/ ? 1 : 0);
return weechat::PLUGIN_RC_OK;
};
weechat::add_message_handler $message->[0], $subname;
}
__END__
=head1 NAME
growl-notify.pl - Send Weechat notifications thru the Growl framework for Mac
=head1 SYNOPSIS
# in Weechat console, do
/perl load /path/to/growl-notify.pl
# or put script in .weechat/perl/autoload/
=head1 DESCRIPTION
growl-notify is a script plugin for Weechat that sends notifications of common
IRC events (such as joins, highlights, and private messages) to the Growl
notification framework for the Macintosh. It uses the perl module L<Mac::Growl>
to do its magic, even allowing the ncurses version of Weechat to generate
graphical or audible event notifications.
=head1 SEE ALSO
L<http://growl.info>, L<Mac::Growl>, L<http://weechat.flashtux.org>
=head1 AUTHORS
Zak B. Elep, C<< zakame at spunge.org >>
=cut
+34
View File
@@ -0,0 +1,34 @@
# This script is a port from the hello.pl irssi script written by
# Cybertinus <cybertinus@cybertinus.nl>
#
# Licensed under the GPL v2
#
# Author: Julien Louis <ptitlouis@sysif.net>
weechat::register("hello" ,"0.1", "", "Display greetings depending the time");
weechat::add_command_handler("hello", hello, "", "Send greetings to the current buffer");
weechat::set_plugin_config("evening_message", "good evening");
weechat::set_plugin_config("afternoon_message", "good afternoon");
weechat::set_plugin_config("morning_message", "good morning");
weechat::set_plugin_config("night_message", "good night");
sub hello {
my ($server,$data) = @_;
$time = (localtime(time))[2];
if ($time >= 18) {
$text = weechat::get_plugin_config("evening_message");
} elsif ($time >= 12) {
$text = weechat::get_plugin_config("afternoon_message");
} elsif ($time >= 6) {
$text = weechat::get_plugin_config("morning_message");
} elsif ($time >= 0) {
$text = weechat::get_plugin_config("night_message");
}
weechat::command("$text $data");
return weechat::PLUGIN_RC_OK;
}
+74
View File
@@ -0,0 +1,74 @@
#
# This script is mostly a copy/paste from kernel.pl irssi script
# This script is in the public domain.
#
# Julien Louis <ptitlouis@sysif.net>
use IO::Socket;
weechat::register("kernel", "0.1", "", "Return latest kernel versions from kernel.org" );
weechat::add_command_handler("kernel_version", kernel_version);
sub finger($$) {
# Yes, Net::Finger is already done and i'm reinventing the wheel.
my ($user, $host) = @_;
my $buffer;
if (my $socket = IO::Socket::INET->new(
PeerHost => $host,
PeerPort => 'finger(79)',
Proto => 'tcp',
))
{
if (syswrite $socket, "$user\n") {
unless (sysread $socket, $buffer, 1024) {
# Should i use $! here?
weechat::print("Unable to read from the socket: $!");
}
} else {
# ..and here?
weechat::print("Unable to write to the socket: $!");
}
} else {
weechat::print("Connection to $host failed: $!");
}
return $buffer;
}
sub kernel_version {
my @version;
if (my $finger = finger("", "finger.kernel.org")) {
# The magic of the regexps :)
@version = $finger =~ /:\s*(\S+)\s*$/gm;
# Modify this to do whatever you want.
my %branches = (
26 => "",
24 => "",
22 => "",
20 => "",
);
foreach my $kernel (@version) {
if($kernel =~ /2\.6/) {
$branches{26} .= " $kernel";
} elsif($kernel =~ /2\.4/) {
$branches{24} .= " $kernel";
} elsif ($kernel =~ /2\.2/) {
$branches{22} .= " $kernel";
} elsif ($kernel =~ /2\.0/) {
$branches{20} .= " $kernel";
}
}
my @keys = sort(keys(%branches));
foreach my $key (@keys) {
weechat::print("branche " . join('.', split(//, $key)));
weechat::print("$branches{$key}");
}
# weechat::print("@version");
return weechat::PLUGIN_RC_OK;
}
}
+216
View File
@@ -0,0 +1,216 @@
#
# Copyright (c) 2007 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Save/restore buffers layout.
#
# History:
#
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.2, minor changes in script description
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.1, initial release
#
use strict;
my $version = "0.2";
# default values in setup file (~/.weechat/plugins.rc)
my $default_auto_save = "on";
weechat::register("layout", $version, "unload_layout", "Save/restore buffers layout");
weechat::set_plugin_config("auto_save", $default_auto_save) if (weechat::get_plugin_config("auto_save") eq "");
weechat::add_command_handler("layout", "layout",
"save/restore buffers layout",
"[save]",
"save: save buffers order",
"save");
weechat::add_event_handler("buffer_open", "buffer_open");
# get buffer name, depending on type of buffer
sub get_buffer_name
{
# DCC type ?
return "<DCC>" if ($_[0] eq "1");
# RAW IRC type ?
return "<RAW>" if ($_[0] eq "2");
# no channel ?
if ($_[2] eq "")
{
return "<servers>" if (weechat::get_config("look_one_server_buffer") eq "on");
return "<empty>" if ($_[1] eq "");
return $_[1];
}
# return server/channel
return $_[1]."/".$_[2];
}
# get buffer list and build a hash: number => name
sub get_layout_hash
{
my %buflist;
my $bufinfo = weechat::get_buffer_info();
if ($bufinfo)
{
while (my ($nobuf, $binfos) = each %$bufinfo)
{
$buflist{$nobuf}{"server"} = $$binfos{"server"};
$buflist{$nobuf}{"channel"} = $$binfos{"channel"};
$buflist{$nobuf}{"name"} = get_buffer_name($$binfos{"type"},
$$binfos{"server"},
$$binfos{"channel"});
}
}
return %buflist;
}
# get buffet list and build a hash: name => number
sub get_layout_hash_by_name
{
my %buflist;
my $bufinfo = weechat::get_buffer_info();
if ($bufinfo)
{
while (my ($nobuf, $binfos) = each %$bufinfo)
{
my $name = get_buffer_name($$binfos{"type"},
$$binfos{"server"},
$$binfos{"channel"});
$buflist{$name} = $nobuf;
}
}
return %buflist;
}
# build a string with buffer list hash
sub get_layout_string
{
my $layout = "";
my %buflist = get_layout_hash();
my @keys = sort { $a <=> $b } (keys %buflist);
foreach my $key (@keys)
{
$layout .= ",".$key.":".$buflist{$key}{"name"};
}
$layout = substr($layout, 1);
return $layout;
}
# build a hash (name => number) from config string
sub get_hash_from_string
{
my %buflist;
my @fields = split(/,/, $_[0]);
foreach my $field (@fields)
{
$buflist{$2} = $1 if ($field =~ /([0-9]+):(.*)/);
}
return %buflist;
}
# save layout to plugin option
sub save_layout
{
my $layout = get_layout_string();
if ($layout ne "")
{
weechat::print_server("Layout: saving buffers order: $layout");
weechat::set_plugin_config("buffers", $layout);
}
}
# the /layout command
sub layout
{
if ($_[1] eq "save")
{
save_layout();
}
else
{
weechat::command("/help layout");
}
return weechat::PLUGIN_RC_OK;
}
# event handler called when a buffer is open
sub buffer_open
{
# retrieve current layout and config layout
my %buflist = get_layout_hash();
my %buflist_name = get_layout_hash_by_name();
my %config = get_hash_from_string(weechat::get_plugin_config("buffers"));
my $name = $buflist{$_[0]}{"name"};
# scan open buffers and look for correct position
my $pos = $config{$name};
if ($pos ne "")
{
my @keys = sort { $b <=> $a } (keys %buflist);
my $nbbuf = $#keys + 1;
# find best position (move to last known buffer + 1)
my ($best_pos, $best_pos2) = (-1, -1);
my $config_seen = 0;
foreach my $key (@keys)
{
$config_seen = 1 if (($name ne $buflist{$key}{"name"})
&& ($config{$buflist{$key}{"name"}} ne ""));
$best_pos = scalar($key) if ($config_seen == 0);
}
foreach my $key (@keys)
{
$best_pos2 = scalar($key) if (($best_pos2 == -1)
&& ($name ne $buflist{$key}{"name"})
&& ($config{$buflist{$key}{"name"}} ne "")
&& (scalar($config{$name}) < scalar($config{$buflist{$key}{"name"}})));
}
$best_pos = $best_pos2 if (($best_pos2 != -1) && ($best_pos2 < $best_pos));
if (($best_pos != -1) && ($best_pos != scalar($buflist_name{$name})))
{
weechat::command("/buffer move $best_pos",
$buflist{$_[0]}{"channel"},
$buflist{$_[0]}{"server"});
}
}
return weechat::PLUGIN_RC_OK;
}
# function called when unloading script (save layout if auto_save is on)
sub unload_layout
{
my $auto_save = weechat::get_plugin_config("auto_save");
save_layout() if (lc($auto_save) eq "on");
}
+98
View File
@@ -0,0 +1,98 @@
#
# Copyright (c) 2006-2007 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Search for text in WeeChat disk log files.
#
# History:
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.2: upgraded licence to GPL 3
# 2006-04-17, FlashCode <flashcode@flashtux.org>:
# version 0.1: initial release
#
use strict;
my $version = "0.2";
# default values in setup file (~/.weechat/plugins.rc)
my $default_max = "8";
my $default_server = "off";
my $default_grep_options = "-i";
# init script
weechat::register("logsearch", $version, "", "Search for text in WeeChat disk log files");
weechat::set_plugin_config("max", $default_max) if (weechat::get_plugin_config("max") eq "");
weechat::set_plugin_config("server", $default_server) if (weechat::get_plugin_config("server") eq "");
weechat::set_plugin_config("grep_options", $default_grep_options) if (weechat::get_plugin_config("grep_options") eq "");
# add command handler /logsearch
weechat::add_command_handler("logsearch", "logsearch",
"search for text in WeeChat disk log files",
"[-n#] text",
"-n#: max number or lines to display\n"
."text: regular expression (used by grep)\n\n"
."Plugins options (set with /setp):\n"
." - perl.logsearch.max: max number of lines displayed by default\n"
." - perl.logsearch.server: display result on server "
."buffer (if on), otherwise on current buffer\n"
." - perl.logsearch.grep_options: options to give to grep program",
"");
# /logsearch command
sub logsearch
{
my $server = shift;
my $args = shift;
if ($args ne "")
{
# read settings
my $conf_max = weechat::get_plugin_config("max");
$conf_max = $default_max if ($conf_max eq "");
my $conf_server = weechat::get_plugin_config("server");
$conf_server = $default_server if ($conf_server eq "");
my $output_server = "";
$output_server = $server if (lc($conf_server) eq "on");
my $grep_options = weechat::get_plugin_config("grep_options");
# build log filename
my $buffer = weechat::get_info("channel", "");
$buffer = ".".$buffer if ($buffer ne "");
my $log_path = weechat::get_config("log_path");
$log_path =~ s/%h/~\/.weechat/g;
my $file = $log_path.$server.$buffer.".weechatlog";
# run grep in log file
if ($args =~ /-n([0-9]+) (.*)/)
{
$conf_max = $1;
$args = $2;
}
my $command = "grep ".$grep_options." '".$args."' ".$file." 2>/dev/null | tail -n".$conf_max;
my $result = `$command`;
# display result
if ($result eq "")
{
weechat::print("Text not found in $file", "", $output_server);
return weechat::PLUGIN_RC_OK;
}
my @result_array = split(/\n/, $result);
weechat::print($_, "", $output_server) foreach(@result_array);
}
return weechat::PLUGIN_RC_OK;
}
+72
View File
@@ -0,0 +1,72 @@
# perl
# Logs URLs to a p5-DBI-MySQL database.
# This script is BSD licensed.
# Hacked together by Karlis "Hagabard" Loen in Feb 2007
# hagabard AT gmail DOT com
# Table format: (ircurls is default table name in script)
#+-----------+---------------+------+-----+---------+-------+
#| Field | Type | Null | Key | Default | Extra |
#+-----------+---------------+------+-----+---------+-------+
#| timestamp | timestamp(14) | YES | | NULL | |
#| hostmask | text(255) | YES | | NULL | |
#| target | text(255) | YES | | NULL | |
#| url | text(255) | YES | | NULL | |
#+-----------+---------------+------+-----+---------+-------+
# In the future I hope to get around to adding stuff like:
#+-----------+---------------+------+-----+---------+-------+
#| httptitle | text(255) | YES | | NULL | |
#| httpdinfo | text(255) | YES | | NULL | |
#| tinyurl | text(255) | YES | | NULL | |
#+-----------+---------------+------+-----+---------+-------+
# Test other DBI types, maybe /setp perl.logurlsql.dbtype="Pg" works?
# Tested with p5-DBI-Mysql, others untested
use DBI;
weechat::register("logurlsql", "0.2", "", "WeeChat p5-DBI script to log URLs to a SQL Database.");
weechat::add_message_handler("*", "cmd_logurl");
# Setup Database connection, now with /setp for your configuration pleasure
weechat::set_plugin_config("dbtype", "mysql") if (weechat::get_plugin_config("dbtype") eq "");
weechat::set_plugin_config("dbhost", "localhost") if (weechat::get_plugin_config("dbhost") eq "");
weechat::set_plugin_config("dbname", "weechat") if (weechat::get_plugin_config("dbname") eq "");
weechat::set_plugin_config("dbtable", "ircurls") if (weechat::get_plugin_config("dbtable") eq "");
weechat::set_plugin_config("dbuser", "irc") if (weechat::get_plugin_config("dbuser") eq "");
weechat::set_plugin_config("dbpass", "forever") if (weechat::get_plugin_config("dbpass") eq "");
# Regexps
sub URL_SCHEME_REGEX() { '(http|ftp|https|news|irc)' }
sub URL_GUESS_REGEX() { '(www|ftp)' }
sub URL_BASE_REGEX() { '[a-z0-9_\-+\\/:?%.&!~;,=\#<]' }
# This sub borrowed from the BSD licensed urlplot.pl irssi script by bwolf.
sub scan_url {
my $rawtext = shift;
return $1 if $rawtext =~ m|(@{[ URL_SCHEME_REGEX ]}://@{[ URL_BASE_REGEX ]}+)|io;
# The URL misses a scheme, try to be smart
if ($rawtext =~ m|@{[ URL_GUESS_REGEX ]}\.@{[ URL_BASE_REGEX ]}+|io) {
my $preserve = $&;
return "http://$preserve" if $1 =~ /^www/;
return "ftp://$preserve" if $1 =~ /^ftp/;
}
return undef;
}
sub cmd_logurl {
($null, $target, $data) = split ":",$_[1],3;
($hostmask, $null, $target) = split " ", $target;
if (defined($url = scan_url($data))) {
#weechat::print("hostmask=$hostmask, target=$target, url=$url");
db_insert($hostmask, $target, $url);
}
return weechat::PLUGIN_RC_OK;
}
sub db_insert {
my ($hostmask, $target, $url)=@_;
my $dbh = DBI->connect( "DBI:". weechat::get_plugin_config(dbtype) .":". weechat::get_plugin_config(dbname) .":". weechat::get_plugin_config(dbhost), weechat::get_plugin_config(dbuser), weechat::get_plugin_config(dbpass));
my $sql="insert into ". weechat::get_plugin_config(dbtable) ." (timestamp, hostmask, target, url) values (NOW()".",". $dbh->quote($hostmask) ."," . $dbh->quote($target) ."," . $dbh->quote($url) .")";
my $sth = $dbh->do($sql);
$dbh->disconnect();
}
+166
View File
@@ -0,0 +1,166 @@
##############################################################################
# #
# MOC #
# #
# Perl script for WeeChat. #
# #
# Show info about current song in moc #
# #
# #
# #
# Copyright (C) 2006 Jiri Golembiovsky <golemj@gmail.com> #
# #
# This program is free software; you can redistribute it and/or #
# modify it under the terms of the GNU General Public License #
# as published by the Free Software Foundation; either version 2 #
# of the License, or (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, #
# MA 02110-1301, USA. #
# #
##############################################################################
weechat::register( "MOCP", "0.2", "", "Show info about current song in moc" );
weechat::add_command_handler(
"moc",
moc,
"Show info about current song in moc",
"[[-i][-o][-ot]]",
"-i show info about current song (default parameter if no other is given)\n" .
"-o print results to the current channel as /msg\n" .
"-ot print results to the current channel as /me, this parameter overide -o parameter\n" .
"To set output format use moc_set_format command.\n" .
"To set another default output type than -i use moc_set_output command.\n",
"-i|-o|-ot"
);
weechat::add_command_handler(
"moc_set_format",
mocSetFormat,
"Set output format for moc command",
"format_string",
"Following combinations will be replaced by apropriate text:\n".
" %A - artist\n" .
" %B - album\n" .
" %F - file name with path\n" .
" %H - file name without path\n" .
" %J - total time\n" .
" %K - current time\n" .
" %L - time left\n" .
" %M - total seconds\n" .
" %N - current seconds\n" .
" %S - state\n" .
" %T - title\n" .
" %U - song title\n" .
" %Y - biterate\n" .
" %Z - rate\n" .
"When no format string is setted then current format string is printed.",
""
);
weechat::add_command_handler(
"moc_set_output",
mocSetOutput,
"Set default output for moc command",
"i|o|ot",
"For more info see help of moc command",
"i|o|ot"
);
sub info {
my $i;
my $res = "";
my $sout = `mocp -i`;
my @out = split( "\n", $sout );
my $format = weechat::get_plugin_config( "outputFormat" );
if( length( $format ) == 0 ) { $format = "is listening to %T ::: %H"; }
if( $#out < 2 ) { return ""; }
for( $i = 0; $i <= $#out; $i++ ) {
if( ( index( @out[$i], ' ' ) == -1 ) ||
( index( @out[$i], ' ' ) == ( length( @out[$i] ) - 1 ) )
) {
@out[$i] = "";
} else {
@out[$i] = substr( @out[$i], index( @out[$i], ' ' ) + 1 );
}
}
$i = 0;
while( $i < length( $format ) ) {
if( substr( $format, $i, 1 ) eq '%' ) {
$i++;
if( substr( $format, $i, 1 ) eq 'A' ) { $res = $res . @out[3]; }
if( substr( $format, $i, 1 ) eq 'B' ) { $res = $res . @out[5]; }
if( substr( $format, $i, 1 ) eq 'F' ) { $res = $res . @out[1]; }
if( substr( $format, $i, 1 ) eq 'H' ) {
if( index( @out[1], "://" ) > 0 ) {
$res = $res . @out[1];
} else {
$res = $res . substr( @out[1], rindex( @out[1], '/' ) + 1 );
}
}
if( substr( $format, $i, 1 ) eq 'J' ) { $res = $res . @out[6]; }
if( substr( $format, $i, 1 ) eq 'K' ) { $res = $res . @out[9]; }
if( substr( $format, $i, 1 ) eq 'L' ) { $res = $res . @out[7]; }
if( substr( $format, $i, 1 ) eq 'M' ) { $res = $res . @out[8]; }
if( substr( $format, $i, 1 ) eq 'N' ) { $res = $res . @out[10]; }
if( substr( $format, $i, 1 ) eq 'S' ) { $res = $res . @out[0]; }
if( substr( $format, $i, 1 ) eq 'T' ) { $res = $res . @out[2]; }
if( substr( $format, $i, 1 ) eq 'U' ) { $res = $res . @out[4]; }
if( substr( $format, $i, 1 ) eq 'Y' ) { $res = $res . @out[11]; }
if( substr( $format, $i, 1 ) eq 'Z' ) { $res = $res . @out[12]; }
} else {
$res = $res . substr( $format, $i, 1 );
}
$i++;
}
return $res;
}
sub moc {
my $out;
my $outType = weechat::get_plugin_config( "outputType" );
if( length( $outType ) == 0 ) { $outType = 'i'; }
if( length( $_[1] ) ) { $outType = $_[1]; }
if( ( $outType ne 'i' ) && ( $outType ne 'o' ) && ( $outType ne 'ot' ) ) {
weechat::print( "Bad parameter or default output type" );
}
$out = info();
if( $outType eq 'i' ) { weechat::print( $out ); }
if( $outType eq 'o' ) { weechat::command( $out ); }
if( $outType eq 'ot' ) { weechat::command( "/me " . $out ); }
return weechat::PLUGIN_RC_OK;
}
sub mocSetFormat {
if( length( $_[1] ) ) {
weechat::set_plugin_config( "outputFormat", $_[1] );
} else {
my $format = weechat::get_plugin_config( "outputFormat" );
if( length( $format ) == 0 ) { $format = "is listening to %T ::: %H"; }
weechat::print( "Current format is \"$format\"" );
}
return weechat::PLUGIN_RC_OK;
}
sub mocSetOutput {
if( length( $_[1] ) ) {
if( ( $_[1] eq 'i' ) || ( $_[1] eq 'o' ) || ( $_[1] eq 'ot' ) ) {
weechat::set_plugin_config( "outputType", $_[1] );
} else {
weechat::print( "moc_set_command: bad parameter" );
}
} else {
my $out = weechat::get_plugin_config( "outputType" );
if( length( $out ) == 0 ) { $out = 'i'; }
weechat::print( "Default output: $out" );
}
return weechat::PLUGIN_RC_OK;
}
+242
View File
@@ -0,0 +1,242 @@
#
# Copyright (c) 2007 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Display old topics for a channel.
#
# History:
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.2: upgraded licence to GPL 3
# 2007-03-29, FlashCode <flashcode@flashtux.org>:
# version 0.1: initial release
#
use strict;
my $version = "0.2";
my $plugin_help_options = "Plugins options (set with /setp):\n"
." - perl.oldtopic.log_server: if on, displays all topic changes on server buffer\n"
." - perl.oldtopic.max_topics: number of topics to keep for each channel "
."(0 = do not keep any topics)";
# default values in setup file (~/.weechat/plugins.rc)
my $default_log_server = "off";
my $default_max_topics = "10";
# init script
weechat::register("oldtopic", $version, "", "Display old topics for a channel");
weechat::set_plugin_config("log_server", $default_log_server) if (weechat::get_plugin_config("log_server") eq "");
weechat::set_plugin_config("max_topics", $default_max_topics) if (weechat::get_plugin_config("max_topics") eq "");
# message and command handlers
weechat::add_message_handler("topic", "topic_msg");
weechat::add_message_handler("332", "topic_332_msg");
weechat::add_message_handler("333", "topic_333_msg");
weechat::add_command_handler ("lasttopic", "lasttopic_cmd",
"Display last topic for a channel (topic before current one)",
"[channel]",
"channel: channel name (default: current channel)\n\n"
.$plugin_help_options,
"%C");
weechat::add_command_handler ("oldtopic", "oldtopic_cmd",
"Display old topics for a channel",
"[channel]",
"channel: channel name (default: current channel)\n\n"
.$plugin_help_options,
"%C");
my %oldtopic;
undef %oldtopic;
my %msg_332_topic;
undef %msg_332_topic;
sub get_config
{
my $conf_log_server = weechat::get_plugin_config("log_server");
$conf_log_server = $default_log_server if ($conf_log_server eq "");
my $conf_max = weechat::get_plugin_config("max_topics");
$conf_max = $default_max_topics if ($conf_max eq "");
$conf_max = 0 if ($conf_max < 0);
return ($conf_log_server, $conf_max);
}
sub add_topic
{
my ($server, $channel, $nick, $topic, $topicdate, $conf_max) =
($_[0], $_[1], $_[2], $_[3], $_[4], $_[5]);
my $time = $topicdate;
$time = time() if ($time eq "");
$oldtopic{$server}{$channel}{$time}{"nick"} = $nick;
$oldtopic{$server}{$channel}{$time}{"topic"} = $topic;
my $numchan = scalar(keys(%{$oldtopic{$server}{$channel}}));
if ($numchan > $conf_max)
{
my $diff = $numchan - $conf_max;
my $count = 0;
foreach my $date (sort keys %{$oldtopic{$server}{$channel}})
{
delete($oldtopic{$server}{$channel}{$date});
$count++;
last if ($count >= $diff);
}
}
}
# received when someone changes topic on a channel
sub topic_msg
{
my $server = $_[0];
my ($conf_log_server, $conf_max) = get_config();
if ($_[1] =~ /(.*) TOPIC (.*)/)
{
my $nick = $1;
my $args = $2;
my $nick = $1 if ($nick =~ /:?([^!]+)(!?.*)/);
if ($args =~ /([\#\&\+\!][^ ]*) (.*)/)
{
my $channel = $1;
my $topic = $2;
$topic = $1 if ($topic =~ /:(.*)/);
if ($conf_log_server eq "on")
{
weechat::print("Topic on $channel changed by ${nick} to: \"${topic}\x0F\"",
"", $server);
}
if ($conf_max > 0)
{
add_topic($server, $channel, $nick, $topic, "", $conf_max);
}
else
{
delete($oldtopic{$server}{$channel});
}
}
}
return weechat::PLUGIN_RC_OK;
}
# topic for a channel (when joining channel)
sub topic_332_msg
{
my $server = $_[0];
if ($_[1] =~ /(.*) 332 (.*)/)
{
my $args = $2;
if ($args =~ /([\#\&\+\!][^ ]*) (.*)/)
{
my $channel = $1;
my $topic = $2;
$topic = $1 if ($topic =~ /:(.*)/);
$msg_332_topic{$server}{$channel} = $topic;
}
}
return weechat::PLUGIN_RC_OK;
}
# nick/date for topic (when joining channel, received after 332)
sub topic_333_msg
{
my $server = $_[0];
if ($_[1] =~ /.* 333 .* ([\#\&\+\!][^ ]*) (.*) ([0-9]+)/)
{
my $channel = $1;
my $nick = $2;
my $date = $3;
my ($conf_log_server, $conf_max) = get_config();
add_topic($server, $channel, $nick,
$msg_332_topic{$server}{$channel},
$date, $conf_max);
}
return weechat::PLUGIN_RC_OK;
}
sub lasttopic_cmd
{
my $server = weechat::get_info("server");
my $channel = weechat::get_info("channel");
$channel = $_[1] if ($_[1] ne "");
if ($channel ne "")
{
my ($conf_log_server, $conf_max) = get_config();
delete($oldtopic{$server}{$channel}) if ($conf_max == 0);
my $count = 0;
my $found = 0;
foreach my $date (sort { $b <=> $a } keys %{$oldtopic{$server}{$channel}})
{
$count++;
if ($count > 1)
{
$found = 1;
weechat::print("Last topic for ${server}/${channel}: on ".localtime($date)." by ".
$oldtopic{$server}{$channel}{$date}{"nick"}.": \"".
$oldtopic{$server}{$channel}{$date}{"topic"}."\x0F\"");
last;
}
}
weechat::print("Last topic not found for channel ${server}/${channel}.") if ($found == 0);
}
else
{
weechat::print("Error: this buffer is not a channel.");
}
return weechat::PLUGIN_RC_OK;
}
sub oldtopic_cmd
{
my $server = weechat::get_info("server");
my $channel = weechat::get_info("channel");
$channel = $_[1] if ($_[1] ne "");
if ($channel ne "")
{
my ($conf_log_server, $conf_max) = get_config();
delete($oldtopic{$server}{$channel}) if ($conf_max == 0);
my $found = 0;
foreach my $date (sort keys %{$oldtopic{$server}{$channel}})
{
$found = 1;
weechat::print("Topic for ${server}/${channel} on ".localtime($date)." by ".
$oldtopic{$server}{$channel}{$date}{"nick"}.": \"".
$oldtopic{$server}{$channel}{$date}{"topic"}."\x0F\"");
}
weechat::print("No old topic for channel ${server}/${channel}.") if ($found == 0);
}
else
{
weechat::print("Error: this buffer is not a channel.");
}
return weechat::PLUGIN_RC_OK;
}
+96
View File
@@ -0,0 +1,96 @@
#
# Copyright (c) 2006-2007 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Play a sound when highlighted/private msg, or for ctcp sound event.
#
# History:
#
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.4: upgraded licence to GPL 3
# 2006-05-30, FlashCode <flashcode@flashtux.org>:
# added plugin options for commands
# 2004-10-01, FlashCode <flashcode@flashtux.org>:
# initial release
#
use strict;
my $version = "0.4";
my $command_suffix = " >/dev/null 2>&1 &";
# default values in setup file (~/.weechat/plugins.rc)
my $default_cmd_highlight = "alsaplay -i text ~/sound_highlight.wav";
my $default_cmd_pv = "alsaplay -i text ~/sound_pv.wav";
my $default_cmd_ctcp = "alsaplay -i text \$filename";
weechat::register("Sound", $version, "", "Sound for highlights/privates & CTCP sound events");
weechat::set_plugin_config("cmd_highlight", $default_cmd_highlight) if (weechat::get_plugin_config("cmd_highlight") eq "");
weechat::set_plugin_config("cmd_pv", $default_cmd_pv) if (weechat::get_plugin_config("cmd_pv") eq "");
weechat::set_plugin_config("cmd_ctcp", $default_cmd_ctcp) if (weechat::get_plugin_config("cmd_ctcp") eq "");
weechat::add_message_handler("PRIVMSG", "sound");
weechat::add_message_handler("weechat_highlight", "highlight");
weechat::add_message_handler("weechat_pv", "pv");
weechat::add_command_handler("sound", "sound_cmd");
sub sound
{
my $server = $_[0];
if ($_[1] =~ /(.*) PRIVMSG (.*)/)
{
my ($host, $msg) = ($1, $2);
if ($host ne "localhost")
{
if ($msg =~ /\001SOUND ([^ ]*)\001/)
{
my $filename = $1;
my $command = weechat::get_plugin_config("cmd_ctcp");
$command =~ s/(\$\w+)/$1/gee;
system($command.$command_suffix);
}
}
}
return weechat::PLUGIN_RC_OK;
}
sub highlight
{
my $command = weechat::get_plugin_config("cmd_highlight");
system($command.$command_suffix);
return weechat::PLUGIN_RC_OK;
}
sub pv
{
my $command = weechat::get_plugin_config("cmd_pv");
system($command.$command_suffix);
return weechat::PLUGIN_RC_OK;
}
sub sound_cmd
{
if ($#_ == 1)
{
my $filename = $_[1].".wav";
my $command = weechat::get_plugin_config("cmd_ctcp");
$command =~ s/(\$\w+)/$1/gee;
system($command.$command_suffix);
weechat::command("/quote PRIVMSG ".weechat::get_info("channel")." :\001SOUND $filename\001") if (@_);
}
return weechat::PLUGIN_RC_OK;
}
+131
View File
@@ -0,0 +1,131 @@
#
# Copyright (c) 2006-2007 by FlashCode <flashcode@flashtux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#
# Translate words and display result in infobar, local buffer or channel
#
# History:
# 2007-08-10, FlashCode <flashcode@flashtux.org>:
# version 0.2: upgraded licence to GPL 3
# 2006-07-03, FlashCode <flashcode@flashtux.org>:
# version 0.1: initial release
#
use strict;
my $version = "0.2";
# default values in setup file (~/.weechat/plugins.rc)
my $default_output_infobar = "on";
my $default_timeout = "2";
# script internal settings
my $languages = "de|el|en|es|fr|it|ja|ko|nl|pt|ru|zh|zt";
# init script
weechat::register("translate", $version, "", "Translation script");
weechat::set_plugin_config("output_infobar", $default_output_infobar) if (weechat::get_plugin_config("output_infobar") eq "");
weechat::set_plugin_config("timeout", $default_timeout) if (weechat::get_plugin_config("timeout") eq "");
# add command handlers for all languages
weechat::add_command_handler("translate", "translate", "translate text to other language",
"lang1 lang2 text [-o]",
"lang1: base language\n"
."lang2: target language\n"
." text: text to translate\n"
." -o: result is written on channel (visible by all)",
$languages." ".$languages);
# translate text with babelfish (altavista)
sub babelfish
{
my $timeout = weechat::get_plugin_config("timeout");
$timeout = $default_timeout if ($timeout eq "");
if (`wget -q --timeout=$timeout --user-agent "Mozilla" --output-document=- "http://babelfish.altavista.com/babelfish/tr?lp=$_[0]_$_[1]&urltext=$_[2]"` =~ /.*<td bgcolor=white class=s><div style=padding:10px;>(.*)<\/div><\/td>/)
{
return $1;
}
return "";
}
# translate output
sub translate_output
{
if ($_[1] == 1)
{
if (substr($_[0],0,1) eq "/")
{
weechat::command("/".$_[0], "", "");
}
else
{
weechat::command($_[0], "", "");
}
}
else
{
my $output_infobar = weechat::get_plugin_config("output_infobar");
$output_infobar = $default_output_infobar if ($output_infobar eq "");
if ($output_infobar eq "on")
{
weechat::print_infobar(5, $_[0]);
}
else
{
weechat::print($_[0], "", "");
}
}
}
# /translate command
sub translate
{
my $server = shift;
my $args = shift;
if ($args =~ /([a-zA-Z][a-zA-Z]) ([a-zA-Z][a-zA-Z]) (.*)/)
{
my $lang1 = $1;
my $lang2 = $2;
my $text = $3;
# output on channel?
my $output_chan = 0;
if ($text =~ /(.*) -[oO]$/)
{
$output_chan = 1;
$text = $1;
}
my $result = babelfish($lang1, $lang2, $text);
if ($result eq "")
{
translate_output("Error: unable to translate (bad language or timeout)", 0);
}
else
{
translate_output($result, $output_chan);
}
}
else
{
translate_output("Error: bad arguments", 0);
}
return weechat::PLUGIN_RC_OK;
}
+78
View File
@@ -0,0 +1,78 @@
# weeter.pl -- Send CTCP ACTION messages as Twitter status updates
# Copyright (c) 2007 Zak B. Elep <zakame@spunge.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
use strict;
use Net::Twitter;
my $version = '0.1';
weechat::register 'weeter', $version, '',
'Send CTCP ACTION messages as Twitter status updates';
my %credentials;
for(qw(username password)){
$credentials{$_} = weechat::get_plugin_config $_;
}
my $twitter = new Net::Twitter %credentials;
weechat::add_modifier 'irc_user', 'privmsg', 'twitter_update';
sub twitter_update
{
my $message = $_[1];
(my $status = $message) =~ s#^/me\s+##;
update $twitter $status unless $status eq $message;
return $message;
}
__END__
=head1 NAME
weeter.pl - Send Weechat CTCP ACTION messages to Twitter as status updates
=head1 SYNOPSIS
# in Weechat console, do
/setp perl.weeter.username = 'your-twitter-username'
/setp perl.weeter.password = 'your-twitter-password'
/perl load /path/to/weeter.pl
# or do the /setp and put script in .weechat/perl/autoload
=head1 DESCRIPTION
weeter is a script plugin for Weechat that enables CTCP ACTION messages (aka
C</me> actions) to be sent to the Twitter web service as user status updates.
It uses the L<Net::Twitter> plugin from CPAN to do its work.
weeter requires the variables C<perl.weeter.username> and
C<perl.weeter.password> defined prior to use.
=head1 SEE ALSO
L<http://twitter.com>, L<Net::Twitter>, L<http://weechat.flashtux.org>
=head1 AUTHORS
Zak B. Elep, C<< zakame at spunge.org >>
=cut
+64
View File
@@ -0,0 +1,64 @@
#####################################################################
# xmms perl script for weechat #
# #
# Displays some useless xmms-infopipe values #
# (c) 2006 by Cédric Chalier <ounaid AT gmail DOT com> #
# #
# This program is free software; you can redistribute it and/or #
# modify it under the terms of the GNU General Public License #
# as published by the Free Software Foundation; either version 2 #
# of the License, or (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, #
# MA 02110-1301, USA. #
# #
#####################################################################
# db[x] variables are: #
# ----------------------------------------------------------- #
# | 0 | XMMS protocol version | 7 | uSecTime #
# | 1 | InfoPipe Plugin version | 8 | Time #
# | 2 | Status | 9 | Current bitrate #
# | 3 | Tunes in playlist | 10 | Samping Frequency #
# | 4 | Currently playing | 11 | Channels #
# | 5 | uSecPosition | 12 | Title #
# | 6 | Position | 13 | File #
# #
#####################################################################
weechat::register ("xmms", "1.1", "", "xmms info script (usage: /xmms)");
weechat::add_command_handler ("xmms", xmmsinfo);
sub xmmsinfo {
if (! -e "/tmp/xmms-info")
{}
else
{
open (fi, "/tmp/xmms-info");
@db2 = <fi>;
foreach $l (0 .. 14)
{
($c,$tmp) = split(": " ,$db2[$l]);
chomp($tmp);
push @db,$tmp;
}
}
if (($db[7]!=-1) && ($db[7]!=0))
{
weechat::command("/me np: $db[12]");
}
else
{
weechat::command("/me np: $db[12] ($db[13])");
}
@db = ();
@db2 = ();
close (fi);
}
# $id: xmms-weechat.pl,v 1.1 2006/05/23 00:50:10 linkz Exp $
+231
View File
@@ -0,0 +1,231 @@
#
# Copyright (c) 2006 by Eric Gach <eric.gach@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
import weechat
import os
import subprocess
import traceback
__desc__ = 'Amarok control and now playing script for Weechat.'
__version__ = '1.0.2'
__author__ = 'Eric Gach <eric.gach@gmail.com>'
# With changes by Leonid Evdokimov (weechat at darkk dot net another dot ru):
# http://darkk.net.ru/weechat/amarok.py
# v 1.0.1 - added %year%
# v 1.0.2 - fixed bug with dead zombie-childs
# fixed bug when loading second instance of the script
# added better default for dcop_user setting
dcop = {}
debug = {}
infobar = {}
output = {}
ssh = {}
class amarokException(Exception):
pass
def amarokCommand(server, args):
try:
args = args.split(' ')
if args[0] == 'infobar':
if infobar['enabled']:
infobar['enabled'] = False
weechat.set_plugin_config('infobar_enabled', '0')
weechat.remove_timer_handler('amarokInfobarUpdate')
weechat.remove_infobar(0)
weechat.prnt('Infobar disabled')
else:
infobar['enabled'] = True
weechat.set_plugin_config('infobar_enabled', '1')
amarokInfobarUpdate()
weechat.add_timer_handler(infobar['update'], 'amarokInfobarUpdate')
weechat.prnt('Infobar enabled')
return weechat.PLUGIN_RC_OK
elif args[0] == 'next':
__executeCommand('next')
weechat.prnt('Amarok: Playing next song.')
return weechat.PLUGIN_RC_OK
elif args[0] == 'np':
return amarokNowPlaying(server)
elif args[0] == 'pause':
__executeCommand('pause')
weechat.prnt('Amarok: Song paused.')
return weechat.PLUGIN_RC_OK
elif args[0] == 'play':
__executeCommand('play')
weechat.prnt('Amarok: Started playing.')
return weechat.PLUGIN_RC_OK
elif args[0] == 'prev':
__executeCommand('prev')
weechat.prnt('Amarok: Playing previous song.')
return weechat.PLUGIN_RC_OK
elif args[0] == 'stop':
__executeCommand('stop')
weechat.prnt('Amarok: Stop playing.')
return weechat.PLUGIN_RC_OK
elif args[0] == '':
return amarokDisplayHelp(server)
else:
weechat.prnt('Amarok: Unknown command %s' % (args[0]), '', server)
return weechat.PLUGIN_RC_OK
except amarokException, ex:
return weechat.PLUGIN_RC_KO
except:
file = open(debug['file'], 'w')
traceback.print_exc(None, file)
weechat.prnt('Unknown Exception encountered. Stack dumped to %s' % (debug['file']), '', server)
return weechat.PLUGIN_RC_KO
def amarokDisplayHelp(server):
weechat.prnt('%s - Version: %s' % (__desc__, __version__), '', server)
weechat.prnt('Author: %s' % (__author__), '', server)
weechat.prnt('', '', server)
weechat.prnt('Commands Available', '', server)
weechat.prnt(' /amarok next - Move to the next song in the playlist.', '', server)
weechat.prnt(' /amarok np - Display currently playing song.', '', server)
weechat.prnt(' /amarok play - Start playing music.', '', server)
weechat.prnt(' /amarok pause - Toggle between pause/playing.', '', server)
weechat.prnt(' /amarok prev - Move to the previous song in the playlist.', '', server)
weechat.prnt(' /amarok stop - Stop playing music.', '', server)
weechat.prnt(' /amarok infobar - Toggle the infobar display.', '', server)
weechat.prnt('', '', server)
weechat.prnt('Formatting', '', server)
weechat.prnt(' %artist% - Replaced with the song artist.', '', server)
weechat.prnt(' %title% - Replaced with the song title.', '', server)
weechat.prnt(' %album% - Replaced with the song album.', '', server)
weechat.prnt(' %year% - Replaced with the song year tag.', '', server)
weechat.prnt(' %cTime% - Replaced with how long the song has been playing.', '', server)
weechat.prnt(' %tTime% - Replaced with the length of the song.', '', server)
weechat.prnt(' %bitrate% - Replaced with the bitrate of the song.', '', server)
return weechat.PLUGIN_RC_OK
def amarokInfobarUpdate():
__loadSettings()
if infobar['enabled'] == False:
return weechat.PLUGIN_RC_OK
isPlaying = __executeCommands((__dcopCommand('isPlaying'),))
if isPlaying.strip() == 'false':
weechat.print_infobar(infobar['update'], 'Amarok is not currently playing')
return weechat.PLUGIN_RC_OK
else:
song = __getSongInfo()
format = __formatNP(infobar['format'], song)
weechat.print_infobar(infobar['update'], format)
return weechat.PLUGIN_RC_OK
def amarokNowPlaying(server):
__loadSettings()
isPlaying = __executeCommands((__dcopCommand('isPlaying'),))
if isPlaying.strip() == 'false':
weechat.prnt('Amarok is not playing.', '', server)
return weechat.PLUGIN_RC_KO
else:
song = __getSongInfo()
format = __formatNP(output['format'], song)
weechat.command(format)
return weechat.PLUGIN_RC_OK
def amarokUnload():
"""Unload the plugin from weechat"""
if infobar['enabled']:
weechat.remove_infobar(0)
weechat.remove_timer_handler('amarokInfobarUpdate')
return weechat.PLUGIN_RC_OK
def __formatNP(template, song):
np = template.replace('%artist%', song['artist'])
np = np.replace('%title%', song['title'])
np = np.replace('%album%', song['album'])
np = np.replace('%cTime%', song['cTime'])
np = np.replace('%tTime%', song['tTime'])
np = np.replace('%bitrate%', song['bitrate'])
np = np.replace('%year%', song['year'])
return np
def __dcopCommand(cmd):
if dcop['user'] == ':':
return 'dcop amarok player %s' % (cmd)
else:
return 'dcop --user %s amarok player %s' % (dcop['user'], cmd)
def __executeCommands(cmds):
from subprocess import PIPE
cmds = " && ".join(cmds)
if ssh['enabled']:
cmds = 'ssh -p %d %s@%s "%s"' % (ssh['port'], ssh['user'], ssh['host'], cmds)
proc = subprocess.Popen(cmds, shell = True, stderr = PIPE, stdout = PIPE, close_fds = True)
error = proc.stderr.read()
if error != '':
weechat.prnt(error)
output = proc.stdout.read()
proc.wait()
return output
def __getSongInfo():
"""Get the song information from amarok"""
song = {}
songs = __executeCommands(
(
__dcopCommand('artist'),
__dcopCommand('title'),
__dcopCommand('album'),
__dcopCommand('currentTime'),
__dcopCommand('totalTime'),
__dcopCommand('bitrate'),
__dcopCommand('year')
)
)
song['artist'], song['title'], song['album'], song['cTime'], song['tTime'], song['bitrate'], song['year'], empty = songs.split("\n")
return song
def __loadSettings():
dcop['user'] = __loadSetting('dcop_user', ':')
debug['file'] = os.path.expanduser(__loadSetting('debug_file', '~/amarok_debug.txt'))
infobar['enabled'] = __loadSetting('infobar_enabled', '0', 'bool')
infobar['format'] = __loadSetting('infobar_format', 'Now Playing: %title% by %artist%')
infobar['update'] = __loadSetting('infobar_update', '10', 'int')
output['format'] = __loadSetting('output_format', '/me is listening to %C04%title%%C by %C03%artist%%C from %C12%album%%C [%cTime% of %tTime% @ %bitrate%kbps]')
ssh['enabled'] = __loadSetting('ssh_enabled', '0', 'bool')
ssh['host'] = __loadSetting('ssh_host', 'localhost')
ssh['port'] = __loadSetting('ssh_port', '22', 'int')
ssh['user'] = __loadSetting('ssh_user', 'user')
def __loadSetting(setting, default=None, type=None):
value = weechat.get_plugin_config(setting)
if value == '' and default != None:
weechat.set_plugin_config(setting, default)
value = default
if type == 'int' or type == 'bool':
value = int(value)
if type == 'bool':
value = bool(value)
return value
if weechat.register('amarok', __version__, 'amarokUnload', __desc__):
__loadSettings()
if infobar['enabled']:
amarokInfobarUpdate()
weechat.add_timer_handler(infobar['update'], 'amarokInfobarUpdate')
weechat.add_command_handler('amarok', 'amarokCommand', 'Manage amarok or display now playing information.', 'next|np|play|pause|prev|stop|infobar')
+86
View File
@@ -0,0 +1,86 @@
# --------------------------------------------------------------------
#
# Copyright (c) 2006 by Jean-Marie Favreau <jm@jmtrivial.info>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# --------------------------------------------------------------------
# This script automatically op and voice some nicks
# --------------------------------------------------------------------
#
# 2006-12-14, FlashCode <flashcode@flashtux.org>:
# fixed message split (for servers like quakenet with no ":" after "JOIN")
import weechat
import re
# regexp list for /op
U_OP = { "server": { "#chan" : [ "nick1@domain.com", "nick2.*@.*"] } }
# chan list where all nicks are /voice
C_VOICE = { "server": [ "#chan1", "#chan2" ] }
def auto_op(server, args):
'''Handle connect'''
result = weechat.PLUGIN_RC_OK
# first, watch if need /op
if U_OP.has_key(server):
chans = U_OP[server]
try:
# find nick and channel
user, channel = args.split(" JOIN ")
nick, next = user.split("!")
if channel.startswith(':'):
channel = channel[1:]
except ValueError:
result = weechat.PLUGIN_RC_KO
else:
if chans.has_key(channel):
users = chans[channel]
for userExpr in users:
if re.search("^n=" + userExpr, next):
weechat.command("/op "+nick, channel, server) # op nick
weechat.prnt("[op] "+nick+" on "+channel+"("+server+")") # print
return result # exit
# then watch if need /voice
if C_VOICE.has_key(server):
chans = C_VOICE[server]
try:
# find nick and channel
user, channel = args.split(" JOIN ")
nick, next = user.split("!")
if channel.startswith(':'):
channel = channel[1:]
except ValueError:
result = weechat.PLUGIN_RC_KO
else:
if channel in chans:
weechat.command("/voice "+nick, channel, server) # voice nick
weechat.prnt("[voice] "+nick+" on "+channel+"("+server+")") # print info
return result # exit
# otherwise: nothing to do
return result
# register and add function to weechat
weechat.register("auto_op", "0.3", "", "auto op plug-in for weechat")
weechat.add_message_handler ("join", "auto_op")
+245
View File
@@ -0,0 +1,245 @@
# -*- coding: iso-8859-1 -*-
# =============================================================================
# autoauth.py (c) October 2005 by kolter <kolter+dev@openics.org>
# Python script for WeeChat.
#
# Licence : GPL v2
# Description : Permits to auto-authenticate when changing nick
# Syntax : try /auth help to get help on this script
#
#
# ### changelog ###
#
# * version 0.5
# - fix bug when script script is run for first time
# - rewrite half script to improve access to settings
# - add a feature to permit to run command(s) when identified
# - add completion for commands
# * version 0.4
# - use set_plugin_config and get_plugin_config to read ans save settings
# - remove deprecated import
# * version 0.3
# - add return codes
# * version 0.2
# - correct weechatdir with weechat_dir while using weechat.get_info
# * version 0.1 :
# - first release
#
# =============================================================================
VERSION="0.5"
NAME="autoauth"
import weechat
weechat.register (NAME, VERSION, "", "Auto authentification while changing nick")
weechat.add_message_handler("NOTICE", "auth_notice_check")
weechat.add_command_handler(
"auth",
"auth_command",
"Auto authentification while changing nick",
"{ add $nick $pass [$server=current] | del $nick [$server=current] | list | cmd [$command [$server=current]] }",
" add : add authorization for $nick with password $pass for $server\n"
" del : del authorization for $nick for $server\n"
" list : list all authorization settings\n"
" cmd : command(s) (separated by '|') to run when identified for $server\n"
" %n will be replaced by current nick in each command",
"add|del|list|cmd %- %S %S"
)
def auth_cmdlist():
cmd = ''
cmds = weechat.get_plugin_config("commands")
if cmds == '':
weechat.prnt("[%s] commands (empty)" % (NAME))
else:
weechat.prnt("[%s] commands (list)" % (NAME))
for c in cmds.split("####"):
weechat.prnt(" --> %s : '%s' " % (c.split(":::")[0], c.split(":::")[1]))
def auth_cmdget(server):
cmd = ''
cmds = weechat.get_plugin_config("commands")
if cmds != '':
for c in cmds.split("####"):
if c.find(":::") != -1:
if c.split(":::")[0] == server:
cmd = ":::".join(c.split(":::")[1:])
break
return cmd
def auth_cmdset(server, command):
cmds = weechat.get_plugin_config("commands")
found = False
conf = []
if cmds != '':
for c in cmds.split("####"):
if c.find(":::") != -1:
if c.split(":::")[0] == server:
found = True
conf.append("%s:::%s" % (server, command))
else:
conf.append(c)
if not found:
conf.append("%s:::%s" % (server, command))
weechat.set_plugin_config("commands", "####".join(conf))
weechat.prnt("[%s] command '%s' successfully added for server %s" % (NAME, command, server))
def auth_cmdunset(server):
cmds = weechat.get_plugin_config("commands")
found = False
conf = []
if cmds != '':
for c in cmds.split("####"):
if c.find(":::") != -1:
if c.split(":::")[0] != server:
conf.append(c)
else:
found = True
if found:
weechat.prnt("[%s] command for server '%s' successfully removed" % (NAME, server))
weechat.set_plugin_config("commands", "####".join(conf))
def auth_cmd(args, server):
if server == '':
if args == '':
auth_cmdlist()
else:
weechat.prnt("[%s] error while setting command, can't find a server" % (NAME))
else:
if args == '':
auth_cmdunset(server)
else:
auth_cmdset(server, args)
def auth_list():
data = weechat.get_plugin_config("data")
if data == "":
weechat.prnt("[%s] accounts (empty)" % (NAME))
else:
weechat.prnt("[%s] accounts (list)" % (NAME))
for e in data.split(","):
if e.find("=") == -1:
continue
(serv_nick, passwd) = e.split("=")
(server, nick) = serv_nick.split(".")
weechat.prnt(" --> %s@%s " % (nick, server))
def auth_notice_check(server, args):
if args.find("If this is your nickname, type /msg NickServ") != -1 or args.find("This nickname is registered and protected.") != -1 :
passwd = auth_get(weechat.get_info("nick"), server)
if passwd != None:
weechat.command("/quote nickserv identify %s" % (passwd), "", server)
commands = auth_cmdget(server)
if commands != '':
for c in commands.split("|"):
weechat.command(c.strip().replace("%n", weechat.get_info('nick')))
return weechat.PLUGIN_RC_OK
def auth_del(the_nick, the_server):
data = weechat.get_plugin_config("data")
found = False
conf = []
for e in data.split(","):
if e.find("=") == -1:
continue
(serv_nick, passwd) = e.split("=")
(server, nick) = serv_nick.split(".")
if the_nick == nick and the_server == server:
found = True
else:
conf.append("%s.%s=%s" % (server, nick, passwd))
if found:
weechat.set_plugin_config("data", ",".join(conf))
weechat.prnt("[%s] nick '%s@%s' successfully remove" % (NAME, the_nick, the_server))
else:
weechat.prnt("[%s] an error occured while removing nick '%s@%s' (not found)" % (NAME, the_nick, the_server))
def auth_add(the_nick, the_passwd, the_server):
data = weechat.get_plugin_config("data")
found = False
conf = []
for e in data.split(","):
if e.find("=") == -1:
continue
(serv_nick, passwd) = e.split("=")
(server, nick) = serv_nick.split(".")
if the_nick == nick and the_server == server:
passwd = the_passwd
found = True
conf.append("%s.%s=%s" % (server, nick, passwd))
if not found:
conf.append("%s.%s=%s" % (the_server, the_nick, the_passwd))
weechat.set_plugin_config("data", ",".join(conf))
weechat.prnt("[%s] nick '%s@%s' successfully added" % (NAME, the_nick, the_server))
def auth_get(the_nick, the_server):
data = weechat.get_plugin_config("data")
for e in data.split(","):
if e.find("=") == -1:
continue
(serv_nick, passwd) = e.split("=")
(server, nick) = serv_nick.split(".")
if the_nick == nick and the_server == server:
return passwd
return None
def auth_command(server, args):
list_args = args.split(" ")
#strip spaces
while '' in list_args:
list_args.remove('')
while ' ' in list_args:
list_args.remove(' ')
if len(list_args) == 0:
weechat.command("/help auth")
elif list_args[0] not in ["add", "del", "list", "cmd"]:
weechat.prnt("[%s] bad option while using /auth command, try '/help auth' for more info" % (NAME))
elif list_args[0] == "cmd":
if len(list_args[1:]) == 1 and list_args[1] in weechat.get_server_info().keys():
auth_cmd("", list_args[1])
elif len(list_args[1:]) == 1:
auth_cmd(list_args[1], weechat.get_info('server'))
elif len(list_args[1:]) >= 2:
if list_args[-1] in weechat.get_server_info().keys():
auth_cmd(" ".join(list_args[1:-1]), list_args[-1])
else:
auth_cmd(" ".join(list_args[1:]), weechat.get_info('server'))
else:
auth_cmd(" ".join(list_args[1:]), weechat.get_info(server))
elif list_args[0] == "list":
auth_list()
elif list_args[0] == "add":
if len(list_args) < 3 or (len(list_args) == 3 and weechat.get_info("server") == ''):
weechat.prnt("[%s] bad option while using /auth command, try '/help auth' for more info" % (NAME))
else:
if len(list_args) == 3:
auth_add(list_args[1], list_args[2], weechat.get_info("server"))
else:
auth_add(list_args[1], list_args[2], list_args[3])
elif list_args[0] == "del":
if len(list_args) < 2:
weechat.prnt("[%s] bad option while using /auth command, try '/help auth' for more info" % (NAME))
else:
if len(list_args) == 2:
auth_del(list_args[1], weechat.get_info("server"))
else:
auth_del(list_args[1], list_args[2])
else:
pass
return weechat.PLUGIN_RC_OK
+153
View File
@@ -0,0 +1,153 @@
# --------------------------------------------------------------------
#
# Copyright (c) 2006 by Gwenn Gueguen <weechat@grumly.info>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# --------------------------------------------------------------------
# This script automatically sets away after a period of inactivity
# --------------------------------------------------------------------
import weechat
"""
/autoaway [time [message]]
/autoaway whithout any parameter disables autoaway
Script config:
time:
number of minutes of inactivity after which a user will be marked as away
message:
message that will be passed to the /away command
enabled:
is autoaway enabled ?
"""
SCRIPT_NAME="autoaway"
SCRIPT_VERSION="0.2"
SCRIPT_DESC="autoaway script for weechat"
# Names of the settings
CONFIG_TIME="time"
CONFIG_MESSAGE="message"
CONFIG_ENABLED="enabled"
# Name of the command
CMD_AUTOAWAY="autoaway"
# Default settings
DEFAULT_TIME="15"
DEFAULT_MESSAGE="idle"
# Interval (in seconds) between checks
TIMER_VALUE=15
def print_settings():
weechat.prnt("AutoAway settings:")
weechat.prnt(" time: %s minute(s)" % weechat.get_plugin_config(CONFIG_TIME))
weechat.prnt(" message: %s" % weechat.get_plugin_config(CONFIG_MESSAGE))
if weechat.get_plugin_config(CONFIG_ENABLED) == "true":
weechat.prnt(" enabled")
else:
weechat.prnt(" disabled")
def autoaway(server, args):
weechat.remove_timer_handler("timer_handler")
params = args.split(None, 1)
if len(params) == 0:
weechat.set_plugin_config(CONFIG_ENABLED, "false")
else:
weechat.set_plugin_config(CONFIG_ENABLED, "true")
weechat.set_plugin_config(CONFIG_TIME, params[0])
if len(params) > 1:
weechat.set_plugin_config(CONFIG_MESSAGE, params[1])
previous_inactivity = int(weechat.get_info("inactivity"))
weechat.add_timer_handler(TIMER_VALUE, "timer_handler")
print_settings()
return weechat.PLUGIN_RC_OK
def timer_handler():
global previous_inactivity, previous_state
# Get current away status
away_flag = int(weechat.get_info("away"))
# Get number of seconds of inactivity
idle_time = int(weechat.get_info("inactivity"))
if away_flag == previous_state:
# away flag was not changed outside this script
if away_flag and idle_time < previous_inactivity:
# Inactivity was reset (or overflowed ?)
weechat.command("/away -all")
elif not away_flag and idle_time >= (60 * int(weechat.get_plugin_config(CONFIG_TIME))):
# Time to go away
weechat.command("/away -all %s" % weechat.get_plugin_config(CONFIG_MESSAGE))
previous_state = int(weechat.get_info("away"))
previous_inactivity = idle_time
return weechat.PLUGIN_RC_OK
if weechat.register(SCRIPT_NAME, SCRIPT_VERSION, "", SCRIPT_DESC):
try:
previous_state = int(weechat.get_info("away"))
except ValueError:
previous_state = 0
# Set config to default values if undefined
try:
idle_time = int(weechat.get_plugin_config(CONFIG_TIME))
except ValueError:
weechat.set_plugin_config(CONFIG_TIME, DEFAULT_TIME)
if weechat.get_plugin_config(CONFIG_MESSAGE) == None:
weechat.set_plugin_config(CONFIG_MESSAGE, DEFAULT_MESSAGE)
if weechat.get_plugin_config(CONFIG_ENABLED) == None:
weechat.set_plugin_config(CONFIG_ENABLED, "false")
# Display a summary of the settings
print_settings()
# Start the timer if necessary
if weechat.get_plugin_config(CONFIG_ENABLED) == "true":
previous_inactivity = int(weechat.get_info("inactivity"))
weechat.add_timer_handler(TIMER_VALUE, "timer_handler")
weechat.add_command_handler(CMD_AUTOAWAY, "autoaway", "Set autoaway",
"[time [message]]",
"time: number of minutes before being marked as away\n"
+ "message: away message\n"
+ "\n"
+ "whithout any argument, autoaway will be disabled\n")
+76
View File
@@ -0,0 +1,76 @@
"""
This script shows buffer list in infobar. Nothing more.
It's inspired by `awl.pl` irssi script, but is less advanced. :)
The script is in the public domain.
Leonid Evdokimov (weechat at darkk dot net dot ru)
http://darkk.net.ru/weechat/awl.py
0.1 - initial commit
0.2 - added `show_servers` option
0.3 - infobar is actually redrawed only if that's necessary
"""
#######################################################################
import weechat
from itertools import ifilter
VERSION = "0.3"
NAME = "awl"
# how often to refresh infobar
timer_interval = 1
blist = ()
def cleanup():
weechat.remove_infobar(-1)
return weechat.PLUGIN_RC_OK
def cfg_boolean(key, default = False):
map = {True: 'ON', False: 'OFF'}
value = weechat.get_plugin_config(key).upper()
if not value in map.values():
if value:
weechat.prnt("[%s]: invalid %s value (%s), resetting to %s" % (NAME, key, value, map[default]))
weechat.set_plugin_config(key, map[default])
value = default
else:
value = ifilter(lambda p: p[1] == value, map.iteritems()).next()[0]
return value
def update_channels():
global blist
names = ()
buffers = weechat.get_buffer_info()
if buffers != None:
for index, buffer in buffers.iteritems():
#**** info for buffer no 8 ****
# > log_filename, notify_level, server, num_displayed, type, channel
if len(buffer['channel']):
name = buffer['channel']
elif len(buffer['server']):
if cfg_boolean('show_servers'):
name = "[" + buffer['server'] + "]"
else:
continue
else:
name = "?"
names += ("%i:%s" % (index, name), )
if (names != blist):
the_string = " ".join(names)
blist = names
weechat.remove_infobar(-1)
weechat.print_infobar(0, the_string);
def on_timer():
update_channels()
return weechat.PLUGIN_RC_OK
if weechat.register(NAME, VERSION, "cleanup", "bufferlist in infobar"):
#message handlers are called __before__ buflist is changed, so we don't use them
weechat.add_timer_handler(timer_interval, "on_timer")
cfg_boolean('show_servers', False)
update_channels()
# vim:set tabstop=4 softtabstop=4 shiftwidth=4:
# vim:set expandtab:
+910
View File
@@ -0,0 +1,910 @@
# Catapult v0.2 - less ordinary abuse generator
# Copyright (C) 2007 Pavel Shevchuk <stlwrt@gmail.com>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import weechat
import random
weechat.register("Catapult", "0.2", "", "Less ordinary abuse generator.")
weechat.add_command_handler("slap", "slapper", "Creative slapper", "<target>", "", "%n")
weechat.add_command_handler("give", "giver", "Creative giver", "<target>", "", "%n")
weechat.add_command_handler("hate", "hater", "Creative hater", "<target>", "", "%n")
weechat.add_command_handler("love", "lover", "Creative lover", "<target>", "", "%n")
weechat.add_command_handler("dance", "dancer", "Creative dancer", "<target>", "", "%n")
weechat.add_command_handler("excuse", "excuser", "BOFH excuses")
weechat.add_command_handler("fortune", "fortune", "Fortune cookies!")
weechat.add_command_handler("winjoke", "winjoke", "Windoze jokes")
weechat.add_command_handler("linjoke", "linjoke", "Linux jokes")
# slapper
def slapper(server, args):
objects = [
"a rather large squid",
"a hydraulic pump",
"a book by Stephen King",
"a 10mbit network card",
"a ladies handbag",
"some girl scouts",
"a football team",
"a bottle",
"a yellow marshmellow",
"a match",
"the queen of England",
"a taxi",
"100 feet of wire",
"a bag of Cheerios",
"a hat",
"a fist",
"the back hand",
"with the forehead",
"a computer moniter",
"a coconut",
"a microfone",
"a cellphone",
"a snowplough",
"a doggy",
"Bill Clinton",
"a stone",
"a club. With a nail in it",
"a small asteroid, rich in iron",
"a small interstellar spaceship",
"a fresh zuccini",
"a laptop",
"a big dictionary",
"a baseball bat",
"NeverNet",
"some porn",
"a mIRC script",
"a canoe",
"a tortoise",
"a horse",
"the book of Kells",
"a whale",
"a rubber dildo",
"a well groomed poodle",
"a channel operator",
"a news paper (New York Times Sunday Edition)",
"a gnarly werewolf",
"a vampire. They really suck",
"a perl script",
"a bag of doggie chow",
"a fat walrus",
"an IP adress",
"a catholic priest",
"James Dean",
"Ronald MacDonald (he *IS* good for something)",
"Autoconf version 2.13",
"a PRIVMSG",
"an email adress",
"some ANSI color codes",
"a thermonuclear weapon. Yehaw",
"the hitch hikers guide to the galaxy, revised edition",
"Nessie, the Loch Ness monster",
"a tuna. Still in the can! *BONK* That will leave a mark",
"a few fluffy pillows",
"a red chinese dragon",
"a linux-manual (signed by L. Torvalds)",
"Stage1",
"Bill Gates underpants",
"GM Abraham and the whole OW-Staff",
"Sphere 1.0",
"a Linuxkernel",
"Lenin's Collected Works",
"Stalin's Collected Works",
"a iron Tux",
"a glowing 23",
"your mum (CLEAN YOUR ROOM!)",
"a complete GNOME-Documentation",
"a Portagetree",
"thand[Z]'s transparent Tanga",
"a Kernelpanic",
"Windoze XP",
"an AK-47 (die, you imperialist dog!)",
"a bag full with Michael Jacksons droped noses",
"an NBP-Manifesto (Hail Limonew! Hail our Leader! Hail!)",
"an NBP-Flag (Lead us to freedom, Leader Limonew!)",
"Mein Kampf (Doppelausgabe, Hardcover)",
"Invader Zim's iron fist",
"some ASCII-Arts",
"The Family Learning Channel",
"GOD",
"Dorian Grey's picture",
"some unlocked Grenades *BOOM*",
"the Win2k Buglist",
"a widescreen TV (it can damage your brain!)",
"a chain saw",
"a huge tree",
"a 50'' CRT monitor",
"a warehouse (Quadratisch. Praktisch. Gut.)"
]
if args <> "":
weechat.command("/me slaps %s with %s." % (args, random.choice(objects)))
return weechat.PLUGIN_RC_OK
else:
weechat.prnt("You must specify target")
return weechat.PLUGIN_RC_KO
# giver
def giver(server, args):
objects = [
"a binary four",
"a nice cup of SHUT THE FUCK UP",
"an asskick",
"a sign: 'Please kill yourself'",
"a sign: 'Please go home now'",
"an unlocked Grenade *tick tick BOOM*",
"a gun - do it for mankind!"
]
if args <> "":
weechat.command("/me gives %s %s." % (args, random.choice(objects)))
return weechat.PLUGIN_RC_OK
else:
weechat.prnt("You must specify target")
return weechat.PLUGIN_RC_KO
# hater
def hater(server, args):
objects = [
"so much, that he spits hellfire",
"so much, that he want's to shoot someone",
"SOOOO MUUUUCH!!!"
]
if args <> "":
weechat.command("/me hates %s %s." % (args, random.choice(objects)))
return weechat.PLUGIN_RC_OK
else:
weechat.prnt("You must specify target")
return weechat.PLUGIN_RC_KO
# lover
def lover(server, args):
actions = [
"a *mwah*",
"a wet kiss",
"a tight and long hug",
"an ass-squeeze",
"a tight hug",
"a wet kiss",
"a nice, tight hug",
"a kiss on the cheek",
"a wet, french kiss",
"a kiss",
"a hug",
"sex",
"sweet romance",
"some groping",
"bed actions",
"oral sex",
"a porn-tape",
"anal love",
]
if args <> "":
weechat.command("/me cheers %s with %s.." % (args, random.choice(actions)))
return weechat.PLUGIN_RC_OK
else:
weechat.prnt("You must specify target")
return weechat.PLUGIN_RC_KO
# dancer
def dancer(server, args):
objects = [
"used condoms",
"condoms",
"used tampons",
"tampons",
"roses",
"rosebuds",
"rice",
"uncooked rice",
"bananas",
"little pieces of paper with the text *YAY!* on",
"little pieces of paper with the text *w00t!* on",
"little pieces of paper with the text *WOOHOO!* on",
"little pieces of paper with the text *Kiss my cheek!* on",
"coconuts with faces on",
"little pieces of paper with the text *LOVE ROCKS!* on",
"little pieces of paper with the text *LETS HAVE SEX!* on",
"little pieces of paper with the text *GOD BLESS AMERICA!* on",
"balloons with faces on",
"balloons",
"chocolate cakes",
"english teachers",
"pr0n magazines",
"vietnamese kids",
"snowballs",
"rocks",
"Michael Jackson (naked)",
"unlocked Grenades *BOOM*",
"Nine Inch Nails",
"Bodyparts (bloody, wet & sexy)",
]
if args <> "":
weechat.command("/me dances around %s throwing %s.." % (args, random.choice(objects)))
return weechat.PLUGIN_RC_OK
else:
weechat.prnt("You must specify target")
return weechat.PLUGIN_RC_KO
# BOFH excuser
def excuser(server, args):
excuses = [
"clock speed",
"solar flares",
"electromagnetic radiation from satellite debris",
"static from nylon underwear",
"static from plastic slide rules",
"global warming",
"poor power conditioning",
"static buildup",
"doppler effect",
"hardware stress fractures",
"magnetic interference from money/credit cards",
"dry joints on cable plug",
"we're waiting for [the phone company] to fix that line",
"sounds like a Windows problem, try calling Microsoft support",
"temporary routing anomaly",
"somebody was calculating pi on the server",
"fat electrons in the lines",
"excess surge protection",
"floating point processor overflow",
"divide-by-zero error",
"POSIX compliance problem",
"monitor resolution too high",
"improperly oriented keyboard",
"network packets travelling uphill (use a carrier pigeon)",
"Decreasing electron flux",
"first Saturday after first full moon in Winter",
"radiosity depletion",
"CPU radiator broken",
"It works the way the Wang did, what's the problem",
"positron router malfunction",
"cellular telephone interference",
"techtonic stress",
"piezo-electric interference",
"(l)user error",
"working as designed",
"dynamic software linking table corrupted",
"heavy gravity fluctuation, move computer to floor rapidly",
"secretary plugged hairdryer into UPS",
"terrorist activities",
"not enough memory, go get system upgrade",
"interrupt configuration error",
"spaghetti cable cause packet failure",
"boss forgot system password",
"bank holiday - system operating credits not recharged",
"virus attack, luser responsible",
"waste water tank overflowed onto computer",
"Complete Transient Lockout",
"bad ether in the cables",
"Bogon emissions",
"Change in Earth's rotational speed",
"Cosmic ray particles crashed through the hard disk platter",
"Smell from unhygienic janitorial staff wrecked the tape heads",
"Little hamster in running wheel had coronary; waiting for replacement to be Fedexed from Wyoming",
"Evil dogs hypnotised the night shift",
"Plumber mistook routing panel for decorative wall fixture",
"Electricians made popcorn in the power supply",
"Groundskeepers stole the root password",
"high pressure system failure",
"failed trials, system needs redesigned",
"system has been recalled",
"not approved by the FCC",
"need to wrap system in aluminum foil to fix problem",
"not properly grounded, please bury computer",
"CPU needs recalibration",
"system needs to be rebooted",
"bit bucket overflow",
"descramble code needed from software company",
"only available on a need to know basis",
"knot in cables caused data stream to become twisted and kinked",
"nesting roaches shorted out the ether cable",
"The file system is full of it",
"Satan did it",
"Daemons did it",
"You're out of memory",
"There isn't any problem",
"Unoptimized hard drive",
"Typo in the code",
"Yes, yes, its called a design limitation",
"Look, buddy: Windows 3.1 IS A General Protection Fault.",
"That's a great computer you have there; have you considered how it would work as a BSD machine?",
"Please excuse me, I have to circuit an AC line through my head to get this database working.",
"Yeah, yo mama dresses you funny and you need a mouse to delete files.",
"Support staff hung over, send aspirin and come back LATER.",
"Someone is standing on the ethernet cable, causing a kink in the cable",
"Windows 95 undocumented \"feature\"",
"Runt packets",
"Password is too complex to decrypt",
"Boss' kid fucked up the machine",
"Electromagnetic energy loss",
"Budget cuts",
"Mouse chewed through power cable",
"Stale file handle (next time use Tupperware(tm)!)",
"Feature not yet implemented",
"Internet outage",
"Pentium FDIV bug",
"Vendor no longer supports the product",
"Small animal kamikaze attack on power supplies",
"The vendor put the bug there.",
"SIMM crosstalk.",
"IRQ dropout",
"Collapsed Backbone",
"Power company testing new voltage spike (creation) equipment",
"operators on strike due to broken coffee machine",
"backup tape overwritten with copy of system manager's favourite CD",
"UPS interrupted the server's power",
"The electrician didn't know what the yellow cable was so he yanked the ethernet out.",
"The keyboard isn't plugged in",
"The air conditioning water supply pipe ruptured over the machine room",
"The electricity substation in the car park blew up.",
"The rolling stones concert down the road caused a brown out",
"The salesman drove over the CPU board.",
"The monitor is plugged into the serial port",
"Root nameservers are out of sync",
"electro-magnetic pulses from French above ground nuke testing.",
"your keyboard's space bar is generating spurious keycodes.",
"the real ttys became pseudo ttys and vice-versa.",
"the printer thinks its a router.",
"the router thinks its a printer.",
"evil hackers from Serbia.",
"we just switched to FDDI.",
"halon system went off and killed the operators.",
"because Bill Gates is a Jehovah's witness and so nothing can work on St. Swithin's day.",
"user to computer ratio too high.",
"user to computer ration too low.",
"we just switched to Sprint.",
"it has Intel Inside",
"Sticky bits on disk.",
"Power Company having EMP problems with their reactor",
"The ring needs another token",
"new management",
"telnet: Unable to connect to remote host: Connection refused",
"SCSI Chain overterminated",
"It's not plugged in.",
"because of network lag due to too many people playing deathmatch",
"You put the disk in upside down.",
"Daemons loose in system.",
"User was distributing pornography on server; system seized by FBI.",
"BNC (brain not connected)",
"UBNC (user brain not connected)",
"LBNC (luser brain not connected)",
"disks spinning backwards - toggle the hemisphere jumper.",
"new guy cross-connected phone lines with ac power bus.",
"had to use hammer to free stuck disk drive heads.",
"Too few computrons available.",
"Flat tire on station wagon with tapes. (\"Never underestimate the bandwidth of a station wagon full of tapes hurling down the highway\" Andrew S. Tannenbaum) ",
"Communications satellite used by the military for star wars.",
"Party-bug in the Aloha protocol.",
"Insert coin for new game",
"Dew on the telephone lines.",
"Arcserve crashed the server again.",
"Some one needed the powerstrip, so they pulled the switch plug.",
"My pony-tail hit the on/off switch on the power strip.",
"Big to little endian conversion error",
"You can tune a file system, but you can't tune a fish (from most tunefs man pages)",
"Dumb terminal",
"Zombie processes haunting the computer",
"Incorrect time synchronization",
"Defunct processes",
"Stubborn processes",
"non-redundant fan failure ",
"monitor VLF leakage",
"bugs in the RAID",
"no \"any\" key on keyboard",
"root rot",
"Backbone Scoliosis",
"/pub/lunch",
"excessive collisions & not enough packet ambulances",
"le0: no carrier: transceiver cable problem?",
"broadcast packets on wrong frequency",
"popper unable to process jumbo kernel",
"NOTICE: alloc: /dev/null: filesystem full",
"pseudo-user on a pseudo-terminal",
"Recursive traversal of loopback mount points",
"Backbone adjustment",
"OS swapped to disk",
"vapors from evaporating sticky-note adhesives",
"sticktion",
"short leg on process table",
"multicasts on broken packets",
"ether leak",
"Atilla the Hub",
"endothermal recalibration",
"filesystem not big enough for Jumbo Kernel Patch",
"loop found in loop in redundant loopback",
"system consumed all the paper for paging",
"permission denied",
"Reformatting Page. Wait...",
"..disk or the processor is on fire.",
"SCSI's too wide.",
"Proprietary Information.",
"Just type 'mv * /dev/null'.",
"runaway cat on system.",
"Did you pay the new Support Fee?",
"We only support a 1200 bps connection.",
"We only support a 28000 bps connection.",
"Me no internet, only janitor, me just wax floors.",
"I'm sorry a pentium won't do, you need an SGI to connect with us.",
"Post-it Note Sludge leaked into the monitor.",
"the curls in your keyboard cord are losing electricity.",
"The monitor needs another box of pixels.",
"RPC_PMAP_FAILURE",
"kernel panic: write-only-memory (/dev/wom0) capacity exceeded.",
"Write-only-memory subsystem too slow for this machine. Contact your local dealer.",
"Just pick up the phone and give modem connect sounds. \"Well you said we should get more lines so we don't have voice lines.\"",
"Quantum dynamics are affecting the transistors",
"Police are examining all internet packets in the search for a narco-net-trafficker",
"We are currently trying a new concept of using a live mouse. Unfortunately, one has yet to survive being hooked up to the computer.....please bear with us.",
"Your mail is being routed through Germany ... and they're censoring us.",
"Only people with names beginning with 'A' are getting mail this week (a la Microsoft)",
"We didn't pay the Internet bill and it's been cut off.",
"Lightning strikes.",
"Of course it doesn't work. We've performed a software upgrade.",
"Change your language to Finnish.",
"Fluorescent lights are generating negative ions. If turning them off doesn't work, take them out and put tin foil on the ends.",
"High nuclear activity in your area.",
"What office are you in? Oh, that one. Did you know that your building was built over the universities first nuclear research site? And wow, aren't you the lucky one, your office is right over where the core is buried!",
"The MGs ran out of gas.",
"The UPS doesn't have a battery backup.",
"Recursivity. Call back if it happens again.",
"Someone thought The Big Red Button was a light switch.",
"The mainframe needs to rest. It's getting old, you know.",
"I'm not sure. Try calling the Internet's head office -- it's in the book.",
"The lines are all busy (busied out, that is -- why let them in to begin with?).",
"Jan 9 16:41:27 huber su: 'su root' succeeded for .... on /dev/pts/1",
"It's those computer people in X {city of world}. They keep stuffing things up.",
"A star wars satellite accidently blew up the WAN.",
"Fatal error right in front of screen",
"That function is not currently supported, but Bill Gates assures us it will be featured in the next upgrade.",
"wrong polarity of neutron flow",
"Lusers learning curve appears to be fractal",
"We had to turn off that service to comply with the CDA Bill.",
"Ionization from the air-conditioning",
"TCP/IP UDP alarm threshold is set too low.",
"Someone is broadcasting pygmy packets and the router doesn't know how to deal with them.",
"The new frame relay network hasn't bedded down the software loop transmitter yet. ",
"Fanout dropping voltage too much, try cutting some of those little traces",
"Plate voltage too low on demodulator tube",
"You did wha... oh _dear_....",
"CPU needs bearings repacked",
"Too many little pins on CPU confusing it, bend back and forth until 10-20% are neatly removed. Do _not_ leave metal bits visible!",
"_Rosin_ core solder? But...",
"Software uses US measurements, but the OS is in metric...",
"The computer fleetly, mouse and all.",
"Your cat tried to eat the mouse.",
"The Borg tried to assimilate your system. Resistance is futile.",
"It must have been the lightning storm we had (yesterday) (last week) (last month)",
"Due to Federal Budget problems we have been forced to cut back on the number of users able to access the system at one time. (namely none allowed....)",
"Too much radiation coming from the soil.",
"Unfortunately we have run out of bits/bytes/whatever. Don't worry, the next supply will be coming next week.",
"Program load too heavy for processor to lift.",
"Processes running slowly due to weak power supply",
"Our ISP is having {switching,routing,SMDS,frame relay} problems",
"We've run out of licenses",
"Interference from lunar radiation",
"Standing room only on the bus.",
"You need to install an RTFM interface.",
"That would be because the software doesn't work.",
"That's easy to fix, but I can't be bothered.",
"Someone's tie is caught in the printer, and if anything else gets printed, he'll be in it too.",
"We're upgrading /dev/null",
"The Usenet news is out of date",
"Our POP server was kidnapped by a weasel.",
"It's stuck in the Web.",
"Your modem doesn't speak English.",
"The mouse escaped.",
"All of the packets are empty.",
"The UPS is on strike.",
"Neutrino overload on the nameserver",
"Melting hard drives",
"Someone has messed up the kernel pointers",
"The kernel license has expired",
"Netscape has crashed",
"The cord jumped over and hit the power switch.",
"It was OK before you touched it.",
"Bit rot",
"U.S. Postal Service",
"Your Flux Capacitor has gone bad.",
"The Dilithium Crystals need to be rotated.",
"The static electricity routing is acting up...",
"Traceroute says that there is a routing problem in the backbone. It's not our problem.",
"The co-locator cannot verify the frame-relay gateway to the ISDN server.",
"High altitude condensation from U.S.A.F prototype aircraft has contaminated the primary subnet mask. Turn off your computer for 9 days to avoid damaging it.",
"Lawn mower blade in your fan need sharpening",
"Electrons on a bender",
"Telecommunications is upgrading. ",
"Telecommunications is downgrading.",
"Telecommunications is downshifting.",
"Hard drive sleeping. Let it wake up on it's own...",
"Interference between the keyboard and the chair.",
"The CPU has shifted, and become decentralized.",
"Due to the CDA, we no longer have a root account.",
"We ran out of dial tone and we're and waiting for the phone company to deliver another bottle.",
"You must've hit the wrong any key.",
"PCMCIA slave driver",
"The Token fell out of the ring. Call us when you find it.",
"The hardware bus needs a new token.",
"Too many interrupts",
"Not enough interrupts",
"The data on your hard drive is out of balance.",
"Digital Manipulator exceeding velocity parameters",
"appears to be a Slow/Narrow SCSI-0 Interface problem",
"microelectronic Riemannian curved-space fault in write-only file system",
"fractal radiation jamming the backbone",
"routing problems on the neural net",
"IRQ-problems with the Un-Interruptible-Power-Supply",
"CPU-angle has to be adjusted because of vibrations coming from the nearby road",
"emissions from GSM-phones",
"CD-ROM server needs recalibration",
"firewall needs cooling",
"asynchronous inode failure",
"transient bus protocol violation",
"incompatible bit-registration operators",
"your process is not ISO 9000 compliant",
"You need to upgrade your VESA local bus to a MasterCard local bus.",
"The recent proliferation of Nuclear Testing",
"Elves on strike. (Why do they call EMAG Elf Magic)",
"Internet exceeded Luser level, please wait until a luser logs off before attempting to log back on.",
"Your EMAIL is now being delivered by the USPS.",
"Your computer hasn't been returning all the bits it gets from the Internet.",
"You've been infected by the Telescoping Hubble virus.",
"Scheduled global CPU outage",
"Your Pentium has a heating problem - try cooling it with ice cold water.(Do not turn off your computer, you do not want to cool down the Pentium Chip while he isn't working, do you?)",
"Your processor has processed too many instructions. Turn it off immediately, do not type any commands!!",
"Your packets were eaten by the terminator",
"Your processor does not develop enough heat.",
"We need a licensed electrician to replace the light bulbs in the computer room.",
"The POP server is out of Coke",
"Fiber optics caused gas main leak",
"Server depressed, needs Prozac",
"quantum decoherence",
"those damn raccoons!",
"suboptimal routing experience",
"A plumber is needed, the network drain is clogged",
"50% of the manual is in .pdf readme files",
"the AA battery in the wallclock sends magnetic interference",
"the xy axis in the trackball is coordinated with the summer solstice",
"the butane lighter causes the pincushioning",
"old inkjet cartridges emanate barium-based fumes",
"manager in the cable duct",
"We'll fix that in the next (upgrade, update, patch release, service pack).",
"HTTPD Error 666 : BOFH was here",
"HTTPD Error 4004 : very old Intel cpu - insufficient processing power",
"The ATM board has run out of 10 pound notes. We are having a whip round to refill it, care to contribute ?",
"Network failure - call NBC",
"Having to manually track the satellite.",
"Your/our computer(s) had suffered a memory leak, and we are waiting for them to be topped up.",
"The rubber band broke",
"We're on Token Ring, and it looks like the token got loose.",
"Stray Alpha Particles from memory packaging caused Hard Memory Error on Server.",
"paradigm shift...without a clutch",
"PEBKAC (Problem Exists Between Keyboard And Chair)",
"The cables are not the same length.",
"Second-system effect.",
"Chewing gum on /dev/sd3c",
"Boredom in the Kernel.",
"the daemons! the daemons! the terrible daemons!",
"I'd love to help you -- it's just that the Boss won't let me near the computer. ",
"struck by the Good Times virus",
"YOU HAVE AN I/O ERROR -> Incompetent Operator error",
"Your parity check is overdrawn and you're out of cache.",
"Communist revolutionaries taking over the server room and demanding all the computers in the building or they shoot the sysadmin. Poor misguided fools.",
"Plasma conduit breach",
"Out of cards on drive D:",
"Sand fleas eating the Internet cables",
"parallel processors running perpendicular today",
"ATM cell has no roaming feature turned on, notebooks can't connect",
"Webmasters kidnapped by evil cult.",
"Failure to adjust for daylight savings time.",
"Virus transmitted from computer to sysadmins.",
"Virus due to computers having unsafe sex.",
"Incorrectly configured static routes on the corerouters.",
"Forced to support NT servers; sysadmins quit.",
"Suspicious pointer corrupted virtual machine",
"It's the InterNIC's fault.",
"Root name servers corrupted.",
"Budget cuts forced us to sell all the power cords for the servers.",
"Someone hooked the twisted pair wires into the answering machine.",
"Operators killed by year 2000 bug bite.",
"We've picked COBOL as the language of choice.",
"Operators killed when huge stack of backup tapes fell over.",
"Robotic tape changer mistook operator's tie for a backup tape.",
"Someone was smoking in the computer room and set off the halon systems.",
"Your processor has taken a ride to Heaven's Gate on the UFO behind Hale-Bopp's comet.",
"it's an ID-10-T error",
"Dyslexics retyping hosts file on servers",
"The Internet is being scanned for viruses.",
"Your computer's union contract is set to expire at midnight.",
"Bad user karma.",
"/dev/clue was linked to /dev/null",
"Increased sunspot activity.",
"We already sent around a notice about that.",
"It's union rules. There's nothing we can do about it. Sorry.",
"Interference from the Van Allen Belt.",
"Jupiter is aligned with Mars.",
"Redundant ACLs. ",
"Mail server hit by UniSpammer.",
"T-1's congested due to porn traffic to the news server.",
"Data for intranet got routed through the extranet and landed on the internet.",
"We are a 100% Microsoft Shop.",
"We are Microsoft. What you are experiencing is not a problem; it is an undocumented feature.",
"Sales staff sold a product we don't offer.",
"Secretary sent chain letter to all 5000 employees.",
"Sysadmin didn't hear pager go off due to loud music from bar-room speakers.",
"Sysadmin accidentally destroyed pager with a large hammer.",
"Sysadmins unavailable because they are in a meeting talking about why they are unavailable so much.",
"Bad cafeteria food landed all the sysadmins in the hospital.",
"Route flapping at the NAP.",
"Computers under water due to SYN flooding.",
"The vulcan-death-grip ping has been applied.",
"Electrical conduits in machine room are melting.",
"Traffic jam on the Information Superhighway.",
"Radial Telemetry Infiltration",
"Cow-tippers tipped a cow onto the server.",
"tachyon emissions overloading the system",
"Maintenance window broken",
"We're out of slots on the server",
"Computer room being moved. Our systems are down for the weekend.",
"Sysadmins busy fighting SPAM.",
"Repeated reboots of the system failed to solve problem",
"Feature was not beta tested",
"Domain controller not responding",
"Someone else stole your IP address, call the Internet detectives!",
"It's not RFC-822 compliant.",
"operation failed because: there is no message for this error (#1014)",
"stop bit received",
"internet is needed to catch the etherbunny",
"network down, IP packets delivered via UPS",
"Firmware update in the coffee machine",
"Temporal anomaly",
"Mouse has out-of-cheese-error",
"Borg implants are failing",
"Borg nanites have infested the server",
"error: one bad user found in front of screen",
"Please state the nature of the technical emergency",
"Internet shut down due to maintenance",
"Daemon escaped from pentagram",
"crop circles in the corn shell",
"sticky bit has come loose",
"Hot Java has gone cold",
"Cache miss - please take better aim next time",
"Hash table has woodworm",
"Trojan horse ran out of hay",
"Zombie processes detected, machine is haunted.",
"overflow error in /dev/null",
"Browser's cookie is corrupted -- someone's been nibbling on it.",
"Mailer-daemon is busy burning your message in hell.",
"According to Microsoft, it's by design",
"vi needs to be upgraded to vii",
"greenpeace free'd the mallocs",
"Terrorists crashed an airplane into the server room, have to remove /bin/laden. (rm -rf /bin/laden)",
"astropneumatic oscillations in the water-cooling",
"Somebody ran the operating system through a spelling checker.",
"Rhythmic variations in the voltage reaching the power supply.",
"Keyboard Actuator Failure. Order and Replace.",
"Packet held up at customs.",
"Propagation delay.",
"High line impedance.",
"Someone set us up the bomb.",
"Power surges on the Underground."
]
weechat.command(random.choice(excuses))
return weechat.PLUGIN_RC_OK
# fortune cookies
def fortune(server, args):
fortunes = [
"There are three kinds of people: men, women, and unix.",
"BOFH Excuse #118: the router thinks its a printer.",
"CHUBBY CHECKER just had a CHICKEN SANDWICH in downtown DULUTH!",
"Think big. Pollute the Mississippi.",
"An optimist is a man who looks forward to marriage. A pessimist is a married optimist.",
"There are never any bugs you haven't found yet.",
"It don't mean a THING if you ain't got that SWING!!",
"Atomic batteries to power, turbines to speed. -- Robin, The Boy Wonder",
"Two wrongs don't make a right, but three lefts do.",
"A log may float in a river, but that does not make it a crocodile.",
"Art is Nature speeded up and God slowed down. -- Chazal",
"Texas law forbids anyone to have a pair of pliers in his possession.",
"UFOs are for real: the Air Force doesn't exist.",
"Expansion means complexity; and complexity decay.",
"I came, I saw, I deleted all your files.",
"The Magic of Windows: Turns a 486 back into a PC/XT.",
"Our vision is to speed up time, eventually eliminating it. -- Alex Schure",
"Breaking Windows isn't just for kids anymore...",
"Neckties strangle clear thinking. -- Lin Yutang",
"I'm prepared for all emergencies but totally unprepared for everyday life.",
"Yow! I just went below the poverty line!",
"Break into jail and claim police brutality.",
"BOFH Excuse #290: The CPU has shifted, and become decentralized.",
"Did you hear about the model who sat on a broken bottle and cut a nice figure?",
"We have a equal opportunity Calculus class -- it's fully integrated.",
"BOFH Excuse #170: popper unable to process jumbo kernel",
"It's later than you think.",
"My Aunt MAUREEN was a military advisor to IKE & TINA TURNER!!",
"Everyone hates me because I'm paranoid.",
"When you are in it up to your ears, keep your mouth shut.",
"Theory is gray, but the golden tree of life is green. -- Goethe",
"Most Texans think Hanukkah is some sort of duck call. -- Richard Lewis",
"grasshopotomaus: A creature that can leap to tremendous heights... once.",
"It takes both a weapon, and two people, to commit a murder.",
"Facts are the enemy of truth. -- Don Quixote",
"Forty two.",
"BOFH Excuse #424: operation failed because: there is no message for this error (#1014)",
"Never leave anything to chance; make sure all your crimes are premeditated.",
"BOFH Excuse #60: system has been recalled",
"Science and religion are in full accord but science and faith are in complete discord.",
"A likely impossibility is always preferable to an unconvincing possibility. -- Aristotle",
"The angry man always thinks he can do more than he can. -- Albertano of Brescia",
"Hello again, Peabody here... -- Mister Peabody",
"Nobody ever died from oven crude poisoning.",
"Dogs crawl under fences... software crawls under Windows 95.",
"Say something you'll be sorry for, I love receiving apologies.",
"NOTICE: -- THE ELEVATORS WILL BE OUT OF ORDER TODAY -- (The nearest working elevator is in the building across the street.)",
"THERE ARE PLENTY OF BUSINESSES LIKE SHOW BUSINESS -- Bart Simpson on chalkboard in episode 1F19",
"Life is what happens to you while you're busy making other plans. -- John Lennon, Beautiful Boy",
"While having never invented a sin, I'm trying to perfect several.",
"Emacs, n.: A slow-moving parody of a text editor.",
" ... with liberty and justice for all ... who can afford it.",
"Princess Leia: Aren't you a little short for a stormtrooper?",
"The Official Colorado State Vegetable is now the 'state legislator'",
"Abandon the search for Truth; settle for a good fantasy.",
"There's nothing to writing. All you do is sit at a typewriter and open a vein. -- Red Smith",
"Our OS who art in CPU, UNIX be thy name. Thy programs run, thy syscalls done, In kernel as it is in user!",
"All hope abandon, ye who enter here! -- Dante Alighieri",
"The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.",
"Professor: 'If a dog craps anywhere in the universe, you can bet I won't be out of loop.'",
"I WILL NOT MAKE FLATUENT NOISES IN CLASS -- Bart Simpson on chalkboard in episode 7F13",
"Listen you donkey raping shit eater.",
"In specifications, Murphy's Law supersedes Ohm's.",
"One of Bender's kids: Our dad is a giant toy!",
"I am a jelly donut. I am a jelly donut.",
"We are all in the gutter, but some of us are looking at the stars. -- Oscar Wilde",
"Bender to Zoidberg: 'You're looking less nuts, crabby.'",
"Things will be bright in P.M. A cop will shine a light in your face.",
"A journey of a thousand miles begins with a cash advance.",
"Everything that can be invented has been invented. -- Charles Duell, Director of U.S. Patent Office, 1899",
"Vote anarchist.",
"paranoia, n.: A healthy understanding of the way the universe works.",
"BOFH Excuse #401: Sales staff sold a product we don't offer.",
"BOFH Excuse #200: The monitor needs another box of pixels.",
"The important thing is not to stop questioning.",
"Not all men who drink are poets. Some of us drink because we aren't poets.",
"Oh my god, dude!",
"BOFH Excuse #441: Hash table has woodworm",
"BOFH Excuse #112: The monitor is plugged into the serial port",
"There's so much to say but your eyes keep interrupting me.",
"For the next hour, WE will control all that you see and hear.",
"Reality continues to ruin my life. -- Calvin",
"The shortest distance between two points is under construction. -- Noelie Alito",
"BOFH Excuse #192: runaway cat on system.",
"My haircut is totally traditional!",
"You! What PLANET is this! -- McCoy, 'The City on the Edge of Forever', stardate 3134.0",
"BOFH Excuse #433: error: one bad user found in front of screen",
"Dyslexics have more fnu.",
"I'm not stupid, I'm not expendable, and I'M NOT GOING!",
"It's clever, but is it art?",
"His life was formal; his actions seemed ruled with a ruler.",
"Yeah. Except for being entirely different, they're pretty much the same.",
"Oh, I get it!! 'The BEACH goes on', huh, SONNY??",
"Ban the bomb. Save the world for conventional warfare.",
"Everything that you know is wrong, but you can be straightened out.",
"If I pull this SWITCH I'll be RITA HAYWORTH!! Or a SCIENTOLOGIST!",
"Tex SEX! The HOME of WHEELS! The dripping of COFFEE!! Take me to Minnesota but don't EMBARRASS me!!",
"clovek, ktory si ako prvy kupil fax musel byt strasny kokot.",
"Are you a turtle?",
"You will be the last person to buy a Chrysler.",
"If in doubt, mumble.",
"Nice guys don't finish nice.",
"You cannot use your friends and have them too.",
"Microsoft is to Software as McDonalds is to Cuisine.",
"panic: can't find /",
"I used to be an agnostic, but now I'm not so sure.",
"May your SO always know when you need a hug.",
"We are MicroSoft. You will be assimilated. Resistance is futile. (Attributed to B.G., Gill Bates)",
"Life is a whim of several billion cells to be you for a while.",
"BOFH Excuse #347: The rubber band broke",
"Death has been proven to be 99% fatal in laboratory rats.",
"There are only two kinds of tequila. Good and better.",
"C for yourself.",
"Tact, n.: The unsaid part of what you're thinking.",
"Shit Happens."
]
weechat.command(("Wanda the Fish says: %s") % random.choice(fortunes))
return weechat.PLUGIN_RC_OK
# winjoke
def winjoke(server, args):
winjokes = [
"Windows NT, from the people who invented EDLIN!",
"Windows: Microsoft's tax on computer illiterates.",
"The nice thing about Windows is - It does not just crash, it displays a dialog box and lets you press 'OK' first.",
"Why use Windows, since there is a door?",
"In a world without fences who needs Gates?",
"Another name for a Windows tutorial is crash course!",
"Failure is not an option -- it comes bundled with Windows.",
"NT... the last two letters of bowel movement",
"Some software money can't buy. For everything else there's Micros~1.",
"Sticks and Stones may break my bones but FUD will never concern me.",
"Every program expands until it can send mail. ...Except Exchange. ",
"Microsoft: 'You've got questions. We've got dancing paperclips.'",
".vbs = Virus Bearing Script?",
"Technology is positive when the creators put the interests of their users before their bottom line.",
"Have you ever noticed that at trade shows Microsoft is always the one giving away stress balls?",
"Do you remember when you only had to pay for windows when *you* broke them? (Submitted by Noel Maddy)",
"National Weather Service advice for those threatened by severe thunderstorms: 'Go inside a sturdy building and stay away from WINDOWS!' (Submitted by Ben Bullock)",
"Microsoft is to Software as McDonalds is to Cuisine.",
"Microsoft should switch to the vacuum cleaner business where people actually want products that suck. (Submitted by Bruno Bratti)",
"Everyone seems so impatient and angry these days. I think it's because so many people use Windows at work -- do you think you'd be Politeness Man after working on Windows 8 hrs. or more? (Submitted by Chip Atkinson)",
"NT 5.0 so vaporous it's in danger of being added to the periodic table as a noble gas. (Spotted in a Slashdot discussion)",
"My Beowulf cluster will beat your Windows NT network any day. (Submitted by wbogardt[at]gte.net)",
"It's no wonder they call it WinNT; WNT = VMS++; (Submitted by Chris Abbey)",
"Double your disk space - delete Windows! (Submitted by Albert Dorofeev)",
"The Edsel. New Coke. Windows 2000. All mandatory case studies for bizschool students in 2020. (From a LinuxToday post by Bear Giles)",
"I will never trust someone called GATES that sells WINDOWS. (Submitted by Federico Roman)",
"'Microsoft technology' -- isn't that an oxymoron?",
"MCSE == Mentally Challenged Slave of the Empire.",
"Windows NT -- it'll drive you buggy!",
"Where do you want to go today? Don't ask Microsoft for directions.",
"MS and Y2K: Windows 95, 98, ... and back again to 01",
"There's the light at the end of the the Windows.",
"People use dummies for crash-tests. Windows is so difficult they had to educate the dummies first -- by giving them 'Windows for Dummies' books!",
"Windows: The first user interface where you click Start to turn it off.",
"NT == No Thanks",
"With Windows Millennium, Microsoft was able to get the boot time down to 25 seconds. That's almost as short as it's uptime.",
"Windows 2000: Designed for the Internet. The Internet: Designed for UNIX.",
"MCSE = Minesweeper Consultant, Solitaire Expert",
"MCSE = Meaningless Certificate, Software Expired",
"I'm not a programmer, but I play one at Microsoft.",
"Microsoft Zen - Become one with the blue screen.",
"The next hot technology from Microsoft will be object-oriented assembly."
]
weechat.command(("Wanda the Fish says: %s") % random.choice(winjokes))
return weechat.PLUGIN_RC_OK
# linjoke
def linjoke(server, args):
linjokes = [
"Got Linux?",
"Microsoft gives you Windows... Linux gives you the whole house.",
"Linux, DOS, Windows NT -- The Good, the Bad, and the Ugly",
"Linux: the operating system with a CLUE... Command Line User Environment",
"If Bill Gates is the Devil then Linus Torvalds must be the Messiah.",
"Linux. Where do you want to go tomorrow?",
"Linux: The choice of a GNU generation",
"When you say I wrote a program that crashed Windows, people just stare at you blankly and say Hey, I got those with the system, *for free*. -- Linus Torvalds",
"We all know Linux is great...it does infinite loops in 5 seconds. -- Linus Torvalds",
"Some people have told me they dont think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. Theyd be a lot more careful about what they say if they had. -- Linus Torvalds",
"Veni, vidi, Linux!",
"Type cat vmlinuz > /dev/audio to hear the Voice of God.",
"Linux: Because a PC is a terrible thing to waste.",
"Linux: Because rebooting is for adding new hardware",
"We are Linux. Resistance is measured in Ohms.",
"Free Software: the Software by the People, of the People and for the People. Develop! Share! Enhance! and Enjoy! (Submitted by Andy Tai)",
"Get it up, keep it up... LINUX: Viagra for the PC. (Submitted by Chris Abbey)",
"Peace, Love and Compile the kernel.... (Submitted by Justin L. Herreman)",
"Free your software, and your ass will follow",
"Reset button? Which reset button? - Linux, the OS that never sleeps.",
"Linux: Where do you want to GO... Oh, Im already there!",
"Windows contains FAT. Use Linux -- you wont ever have to worry about your weight.",
"Oh My God! They Killed init! You Bastards!",
"Unix: Where /sbin/init is still Job 1."
]
weechat.command(("Wanda the Fish says: %s") % random.choice(linjokes))
return weechat.PLUGIN_RC_OK
+168
View File
@@ -0,0 +1,168 @@
#
# Copyright (c) 2006 by SpideR <spider312@free.fr> http://spiderou.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# WeeChat clone scanner
# Scans clones on a chan when you ask it to do (/clones)
# Able to scan for a nick's clones on each join, if you ask it to do (/autoclones)
import weechat
SCRIPT_NAME="clonescan"
SCRIPT_VERSION="0.1"
SCRIPT_DESC="clonescan script for weechat"
SCRIPT_DISP=SCRIPT_NAME+" v"+SCRIPT_VERSION
# Register, Handlers, config check/creation
if weechat.register(SCRIPT_NAME, SCRIPT_VERSION, "unload", SCRIPT_DESC):
weechat.add_command_handler("clones","scanchan",
"Scans clones on specified or current chan",
"[#chan]")
weechat.add_command_handler("autoclones","toggleauto",
"Manage auto clone-scanning",
"[enable|disable|show]")
weechat.add_message_handler ("join", "scanjoin")
autoscan = weechat.get_plugin_config("autoscan")
if ( ( autoscan != "true" ) and ( autoscan != "false" ) ):
weechat.set_plugin_config("autoscan","false")
weechat.prnt("Unconfigured autoscan set to 'disabled', to enable : /autoclones enable")
weechat.prnt(SCRIPT_DISP+" loaded")
else:
weechat.prnt(SCRIPT_DISP+" not loaded")
# Unload handler
def unload():
weechat.prnt("starting "+SCRIPT_DISP+" unload ...")
return 0
# Auto scan on JOIN
def scanjoin(server,args):
result = weechat.PLUGIN_RC_OK
if ( weechat.get_plugin_config("autoscan") == "true" ):
try: # Cut args because it contains nick, host and chan
nothing, user, chan = args.split(":") # :Mag!Magali@RS2I-35243B84.ipt.aol.com JOIN :#bringue
nick, next = user.split("!") # Mag!Magali@RS2I-35243B84.ipt.aol.com JOIN
userathost, nothing = next.split(" JOIN ") # Magali@RS2I-35243B84.ipt.aol.com JOIN
host = removeuser(userathost) # Magali@RS2I-35243B84.ipt.aol.com
# Problems with IPv6 hosts' ":" :
# [:higuita!n=higuita@2001:b18:400f:0:211:d8ff:fe82:b10e JOIN :#weechat]
except ValueError:
result = weechat.PLUGIN_RC_KO
weechat.prnt("Eror parsing args : ["+args+"]",server,server)
else:
clones = scannick(server,chan,nick,host) # Scan for that user's clones
if ( len(clones) > 0):
disp = "Clone sur "+chan+"@"+server+" : "+dispclones(nick,clones,host)
weechat.print_infobar(5,disp) # Display on infobar
weechat.prnt(disp) # Display on current buffer
weechat.prnt(disp,server,server) # Display on server buffer
return result
# Config auto scan
def toggleauto(server,args):
# Get current value
autoscan = weechat.get_plugin_config("autoscan")
# Testing / repairing
if ( autoscan == "true" ):
auto = True
elif ( autoscan == "false" ):
auto = False
else:
weechat.prnt("Unknown value ["+autoscan+"], disabling")
weechat.set_plugin_config("autoscan","false")
auto = False
# managing arg
if ( args == "enable" ):
if auto:
weechat.prnt("Auto clone scanning remain enabled")
else:
weechat.set_plugin_config("autoscan","true")
weechat.prnt("Auto clone scanning is now enabled")
elif ( args == "disable" ):
if auto:
weechat.set_plugin_config("autoscan","false")
weechat.prnt("Auto clone scanning is now disabled")
else:
weechat.prnt("Auto clone scanning remain disabled")
elif ( args == "break" ):
weechat.set_plugin_config("autoscan","blah")
else:
if auto:
weechat.prnt("Auto clone scanning enabled")
else:
weechat.prnt("Auto clone scanning disabled")
return weechat.PLUGIN_RC_OK
# Manual channel scan
def scanchan(server,args):
# Defining chan to scan (contained in args, current chan otherwise)
if ( args == "" ):
chan = weechat.get_info("channel",server)
else:
chan = args
# Scan
if ( chan != "" ):
nicks = weechat.get_nick_info(server,chan)
allclones = [] # List containing all detected clones, for not to re-scan them
nbclones = 0 # number of clones
if nicks != None:
if nicks != {}:
weechat.prnt("Scanning "+chan+" ...")
for nick in nicks:
if nick not in allclones:
host = removeuser(nicks[nick]["host"])
clones = scannick(server,chan,nick,host)
if ( len(clones) > 0 ):
allclones = allclones + clones
nbclones = nbclones+1
weechat.prnt(" - "+dispclones(nick,clones,host))
weechat.prnt(str(nbclones)+" clones found")
else:
weechat.prnt("Nobody on "+chan+", are you sure it's a chan and you are present on it ?")
else:
weechat.prnt("Eror reading nick list")
else:
weechat.prnt("Not on a chan")
return weechat.PLUGIN_RC_OK
# Scan of a nick
# Returns list of nick clones (not containing nick himself)
def scannick(server,chan,nick,host):
cloneof = []
compares = weechat.get_nick_info(server,chan)
if compares != None:
if compares != {}:
for compare in compares:
if ( ( nick != compare ) and ( host == removeuser(compares[compare]["host"])) ):
cloneof.append(compare)
else:
weechat.prnt("pas de pseudo")
else:
weechat.prnt("erreur de lecture des pseudos")
return cloneof
# Display of one clone line
def dispclones(nick,clones,host):
clones.append(nick)
clones.sort()
return str(clones)+" ("+host+")"
# Return host by user@host
def removeuser(userathost):
splitted = userathost.split("@")
return splitted[1]

Some files were not shown because too many files have changed in this diff Show More