1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

Compare commits

...

871 Commits

Author SHA1 Message Date
Sebastien Helleu 1314c8e78e Version 0.1.8 2006-03-18 09:03:14 +00:00
Sebastien Helleu 0277a1eb62 Ruby changes forgotten in ChangeLog 2006-03-17 14:09:34 +00:00
Sebastien Helleu c4bafd3eef Fixed translations 2006-03-16 11:57:10 +00:00
Sebastien Helleu d006811b8e Fixed typos 2006-03-16 10:36:27 +00:00
Sebastien Helleu 2c894b89e7 Fixed /set command when internal server name contains one or many dots 2006-03-14 13:06:48 +00:00
Sebastien Helleu 02d4287ad0 Added missing IRC command "378" 2006-03-14 12:44:42 +00:00
Sebastien Helleu 7fa3dcbb2e Fixed plugin get_info bug when no server at all is opened 2006-03-14 12:43:02 +00:00
Sebastien Helleu 031fab21b0 Fixed display bug when top of buffer is displayed and first line is removed
(according to "history_max_lines" setting)
2006-03-11 07:33:54 +00:00
Sebastien Helleu ea06fca69c Fixed "+I" mode output 2006-03-10 23:19:11 +00:00
Sebastien Helleu 4181fa3f74 Fixed /mode command output 2006-03-10 22:44:21 +00:00
Julien Louis b9e247794e Fix typo in french translation 2006-03-10 20:11:41 +00:00
Sebastien Helleu d6e562ed7e Fixed completion for /away and /nick commands 2006-03-10 09:04:29 +00:00
Sebastien Helleu 227c05447f Improved alias completion (now uses target command for completion) 2006-03-08 15:31:26 +00:00
Sebastien Helleu 1005890db2 Fixed completion bug with commands in pv (nick completion, for example with /me) 2006-03-06 21:09:09 +00:00
Sebastien Helleu 8f714033ac Fixed chmod on home (now chmod is not executed when a directory is user's home) 2006-03-06 20:58:08 +00:00
Sebastien Helleu 1a510e1598 Added missing IRC command "487" 2006-03-04 23:20:41 +00:00
Sebastien Helleu 650805f204 Using new default value for DCC download dir (created at startup), fixed logs dir creation 2006-03-04 15:37:20 +00:00
Sebastien Helleu 919800c37c Added inactivity time, available for plugins via get_info("inactivity") 2006-03-04 14:27:14 +00:00
Sebastien Helleu 92db79989e Keys alt-{home|end} to scroll top/bottom, alt-{f11-f12} to scroll nicklist top/bottom 2006-03-03 10:40:43 +00:00
Sebastien Helleu 5d32ac0d57 Added special names for plugin message handlers: weechat_pv, weechat_highlight, weechat_ctcp, weechat_dcc 2006-03-02 21:54:33 +00:00
Sebastien Helleu bd1685a8fe Updated TODO 2006-03-02 21:54:00 +00:00
Sebastien Helleu 312ad619ae Fixed bug with dl library detection (for FreeBSD and maybe other systems) 2006-03-02 15:58:10 +00:00
Sebastien Helleu e4cc182105 Script plugins now load scripts in WeeChat system share directory 2006-02-28 21:11:34 +00:00
Sebastien Helleu 8c662f69f9 /msg command does not open any buffer any more 2006-02-28 15:59:33 +00:00
Sebastien Helleu 5c29def9d9 Fixed crash when using global history (when older entry is removed) 2006-02-26 11:27:43 +00:00
Sebastien Helleu c0a1673060 Added IRC raw data buffer 2006-02-22 11:58:11 +00:00
Emmanuel Bouthenot 3a79e32dbb fix minor bug and improve backtrace display on errors 2006-02-21 22:43:48 +00:00
Sebastien Helleu 349d9d1028 Fixed display bugs with /kill command 2006-02-21 10:23:35 +00:00
Sebastien Helleu 13ddcc3adc Added infobar_remove in C plugin API 2006-02-20 21:55:51 +00:00
Sebastien Helleu 9373a7a47e Added new plugin API function: remove_infobar 2006-02-20 17:01:18 +00:00
Sebastien Helleu e0c97562a5 Fixed bug in /lua command for timer handlers 2006-02-19 11:17:14 +00:00
Sebastien Helleu 3a213f38ec Added timer handler for plugins 2006-02-19 10:43:47 +00:00
Sebastien Helleu 484274d65f Plugin messages handlers now called when message is ignored; new behaviour for
messages ignored by a message handler: now WeeChat executes standard handler,
treating message as "ignored"
2006-02-18 13:35:06 +00:00
Sebastien Helleu 4f81254e40 Fixed message displayed when a command handler failed (now "failed" instead of
"command not found")
2006-02-18 12:50:55 +00:00
Sebastien Helleu da3f8ade08 Fixed Ruby function "log" (argument count) 2006-02-18 12:50:03 +00:00
Sebastien Helleu 271d1c905f Fixed scripts examples with server/channel/nick info 2006-02-17 15:00:00 +00:00
Sebastien Helleu ae0e17cfe2 Commands allowed when not connected to any server, fixed get_config: now needs exact option name to return value 2006-02-17 14:59:07 +00:00
Sebastien Helleu d69c634d2f Fixed typos 2006-02-17 14:58:01 +00:00
Emmanuel Bouthenot 14c9afb990 fix typo in parsing args for weechat_python_add_command_handler 2006-02-16 21:14:36 +00:00
Sebastien Helleu c491b39388 Updated doc, renamed functions in plugins API 2006-02-16 20:27:28 +00:00
Emmanuel Bouthenot 8855d39f44 make possible to log with plugins / scripts 2006-02-16 16:10:25 +00:00
Sebastien Helleu 91af3fe728 Updated translations 2006-02-16 10:19:07 +00:00
Emmanuel Bouthenot a62a002522 clean code while parsing commands in server_command and make possible to run many (irc or weechat) commands with alias 2006-02-16 09:51:08 +00:00
Sebastien Helleu f79653db8e Updated czech translations 2006-02-14 08:02:47 +00:00
Sebastien Helleu 0538215157 Updated doc for server_command setting 2006-02-12 22:12:05 +00:00
Emmanuel Bouthenot fa02f128ec make possible to run more than one command when connecting to server 2006-02-12 21:50:31 +00:00
Emmanuel Bouthenot 06ecdfdd35 fix some crash (unprotected code execution) and display some kind of backtrace when errors occurs 2006-02-12 01:33:36 +00:00
Emmanuel Bouthenot 00eef1c1bc clean some code 2006-02-12 01:31:35 +00:00
Sebastien Helleu e7fd1a0cb7 Auto-detect all components, and compile if found by default 2006-02-11 10:11:10 +00:00
Sebastien Helleu 321a8a65ad Added Lua 2006-02-11 10:10:26 +00:00
Sebastien Helleu e7f730387f Enable plugins compilation if Lua is enabled (like Perl/Python/Ruby) 2006-02-11 10:09:59 +00:00
Emmanuel Bouthenot e4eeaaf1dd clean code to avoid warning and errors when compiling with gcc-2.95 2006-02-10 12:44:10 +00:00
Sebastien Helleu 4c34ac5d8f Added Lua script plugin 2006-02-09 20:47:16 +00:00
Emmanuel Bouthenot 73990d8caa fix weechat_lua_remove_handler : now really use function args 2006-02-09 10:50:46 +00:00
Emmanuel Bouthenot d4e755a641 fix weechat_lua_add_message_handler : now really use function args 2006-02-09 10:33:48 +00:00
Sebastien Helleu 4a4daf6931 Added lua script plugin, new functions in plugins API 2006-02-08 21:37:17 +00:00
Emmanuel Bouthenot 8ddc5afb21 adding lua plugin/scripts support 2006-02-08 13:14:23 +00:00
Emmanuel Bouthenot a5cef6abde lua plugin/scripts support 2006-02-08 12:06:24 +00:00
Emmanuel Bouthenot 13a6d5b833 adding lua plugin/script 2006-02-08 11:49:04 +00:00
Sebastien Helleu 47b7b1d578 Added new API functions for scripts (list of servers, channels, nicks) 2006-02-08 11:13:49 +00:00
Sebastien Helleu c0a7e4445c Added hungarian translation (thanks to voroskoi) 2006-02-08 10:27:10 +00:00
Sebastien Helleu 80d6b1d952 Fixed XML typos 2006-02-07 21:10:11 +00:00
Sebastien Helleu 75eb47ee9e Added new plugins API functions (get_server_info, free_server_info, get_channel_info, free_channel_info, get_nick_info, free_nick_info) 2006-02-05 20:57:42 +00:00
Sebastien Helleu 6013e43292 Minor changes on server/channel/nick info API functions 2006-02-04 15:25:18 +00:00
Emmanuel Bouthenot 9150cff430 fix minor bugs while detecting lua 2006-02-03 08:31:15 +00:00
Sebastien Helleu 480974b8de Gtk GUI changes, now compile is ok 2006-02-03 00:36:03 +00:00
Emmanuel Bouthenot abeb5a2f48 Move previous GNU/hurd fix
Add lua script/plugin (detect libs and headers)
2006-02-03 00:29:38 +00:00
Emmanuel Bouthenot 4aac135244 fix a missing link in GNU/Hurd by force linking with pthread 2006-02-01 07:33:34 +00:00
Emmanuel Bouthenot f222a6ad7a extending plugins/scripts API by adding get_server_info, get_channel_info and get_nick_info 2006-01-31 13:54:27 +00:00
Sebastien Helleu fe5731dc84 Added options "look_open_near_server" and "look_nick_complete_first" (patch from Gwenn) 2006-01-30 20:42:53 +00:00
Sebastien Helleu 70ad116c0f Added options "look_open_near_server" and "look_nick_complete_first" (patch from Gwenn) 2006-01-30 20:22:40 +00:00
Sebastien Helleu 99a3434733 Fixed bug with elapsed time when away if computer clock was changed (displays 0 if elapsed time is negative) 2006-01-26 16:49:21 +00:00
Sebastien Helleu 0e91f0c208 Fixed bug with /upgrade when servers buffer (with one buffer for all servers) is moved to buffer # > 1 2006-01-26 13:57:27 +00:00
Sebastien Helleu 7711d548c0 Fixed typos 2006-01-26 11:18:59 +00:00
Sebastien Helleu a7479272f0 Fixed bug with "get_dcc_info" plugin interface function 2006-01-26 10:18:50 +00:00
Sebastien Helleu 2e1c6023d7 Fixed bug with option "irc_away_check_max_nicks" (now channels are refreshed when nicks count changed) 2006-01-26 10:04:57 +00:00
Sebastien Helleu 464fc8abdf Added new scroll keys for a few lines up/down (default: meta-pgup/pgdn) (patch from Pistos) 2006-01-25 17:52:11 +00:00
Sebastien Helleu 1e4c1a7073 Fixed compilation problem with debug messages 2006-01-25 17:09:24 +00:00
Sebastien Helleu 1607c44e75 Added new option "irc_away_check_max_nicks" to disable away check on channels with high number of nicks (patch from Gwenn) 2006-01-25 10:31:22 +00:00
Sebastien Helleu 364d774ded Added new command line argument for setting WeeChat homedir (-d or --dir) (patch from Gwenn) 2006-01-25 08:55:24 +00:00
Sebastien Helleu 6972b057d9 Fixed bug with charset in infobar highlights 2006-01-24 15:08:03 +00:00
Sebastien Helleu 8cd8410448 Fixed bugs: buffer detection in plugins/scripts commands, and /history command 2006-01-22 21:30:19 +00:00
Julien Louis 1cbdbffa40 Update debian packaging 2006-01-22 18:34:32 +00:00
Sebastien Helleu 3c16d49d2d Added some info for commands and options help 2006-01-21 21:26:24 +00:00
Sebastien Helleu 083ede73fd Added command line section in doc 2006-01-21 16:49:25 +00:00
Sebastien Helleu 5aeb7921fe Added option "irc_show_away_once", to show away message only once in pv 2006-01-21 11:56:58 +00:00
Sebastien Helleu e907b3b7a5 Version 0.1.8-cvs 2006-01-14 13:05:25 +00:00
Sebastien Helleu be6594afb7 Version 0.1.7 2006-01-14 12:09:38 +00:00
Sebastien Helleu f6d46b8792 Reverse order for unloading plugins (fixes crash on FreeBSD) 2006-01-14 12:09:04 +00:00
Sebastien Helleu 83852ca3ab Fixed charset decoding bug when displaying topic of a channel 2006-01-14 08:26:10 +00:00
Sebastien Helleu a4695f5ba2 New values for "irc_display_away" (off, local, channel) 2006-01-12 15:05:35 +00:00
Sebastien Helleu 8c54d55611 Fixed msg command (now allowed in private buffer with "*" as target) 2006-01-10 08:52:09 +00:00
Sebastien Helleu 8b5137ddeb Fixed bug with alt+k followed by an UTF-8 char coded on more than one byte 2006-01-08 22:08:24 +00:00
Sebastien Helleu b3b1ab104b Fixed hotlist display bug with server buffer when all servers are displayed on
same buffer (display was current server instead of server with activity)
2006-01-08 19:26:51 +00:00
Sebastien Helleu 05992a34f3 Encode commands like text with channel's encoding charset 2006-01-08 19:13:59 +00:00
Sebastien Helleu 224cd3ff59 Updated translations 2006-01-08 01:24:49 +00:00
Sebastien Helleu b1f83dce8a Removed "irc_default_msg_away" setting, for RFC 2812 conformity (/away command
wihtout argument only removes away status)
2006-01-08 01:22:25 +00:00
Sebastien Helleu dd39ac2432 Fixed infobar_printf interface function, security problem with string format 2006-01-08 00:07:24 +00:00
Sebastien Helleu 05456cc54e Fixed infobar_printf interface function, security problem with string format 2006-01-07 23:58:07 +00:00
Sebastien Helleu 3fd569a83e Fixed refresh bug with Solaris when term size is changed 2006-01-07 23:54:22 +00:00
Sebastien Helleu 978efc0d4f Secured some code with color management in messages 2006-01-07 23:44:19 +00:00
Sebastien Helleu b409b42470 Updated BUGS 2006-01-06 12:51:14 +00:00
Sebastien Helleu 0369660c0e Option "irc_display_away" is now set to OFF by default 2006-01-05 10:26:27 +00:00
Sebastien Helleu 457c786fbe Fixed typos in doc 2006-01-04 14:12:44 +00:00
Sebastien Helleu 4d62625894 New year in copyright, FSF address changed 2006-01-04 08:56:00 +00:00
Sebastien Helleu d875b52124 Updated ChangeLog 2006-01-03 15:10:17 +00:00
Sebastien Helleu 1704595452 Added XML files needed by XML doc 2006-01-02 22:31:18 +00:00
Sebastien Helleu d06e847efe Added a contributor 2006-01-02 22:18:25 +00:00
Sebastien Helleu b10b53c689 Replaced Texinfo doc by XML Docbook 2006-01-02 22:16:54 +00:00
Sebastien Helleu 96a9a1df90 Replaced Texinfo doc by XML Docbook 2006-01-02 22:08:41 +00:00
Julien Louis 70e0f05ff2 oops, really commit the corrected file 2005-12-26 15:40:55 +00:00
Julien Louis 43093b13fa Proofreading by Guillaume Delacour 2005-12-26 15:35:25 +00:00
Sebastien Helleu c771db23fe Added missing translations 2005-12-25 11:20:46 +00:00
Sebastien Helleu 18e47000f4 Added uptime save in session file (for /upgrade command) 2005-12-25 10:40:52 +00:00
Sebastien Helleu ac8c68bd68 Added spanish translations 2005-12-25 09:33:30 +00:00
Sebastien Helleu 4f0dc2984b Added color for windows separators, fixed minor refresh bug when changing some colors 2005-12-22 16:33:04 +00:00
Sebastien Helleu 88ee7addbc Removed "&" for XML doc 2005-12-21 13:57:04 +00:00
Sebastien Helleu d3bfff3d65 Fixed typos in some command helps ("&" now forbidden for XML doc) 2005-12-21 11:39:49 +00:00
Sebastien Helleu b0d10367d3 Fixed typo 2005-12-21 00:10:27 +00:00
Sebastien Helleu 63d728a6a1 Added Czech translations 2005-12-20 23:53:14 +00:00
Sebastien Helleu 503350f46b Changed some command outputs for doc 2005-12-20 14:37:35 +00:00
Sebastien Helleu 7c1c8cd874 Fixed completion bugs with nick completion in commmands ("%n") 2005-12-20 11:47:24 +00:00
Sebastien Helleu d280bf2a92 Fixed segfault when changing buffer number with only one buffer 2005-12-19 10:20:33 +00:00
Sebastien Helleu f4513bbadd Added include of <sys/types.h> for time_t 2005-12-18 23:46:15 +00:00
Sebastien Helleu 77b504cd3f Fixed encoding bug ("encode" var was not used since new command /charset was introduced) 2005-12-18 00:22:51 +00:00
Sebastien Helleu 04fda8a314 Fixed FIFO pipe buffer detection, away message (301) now displayed in query if
exists, otherwise on server buffer
2005-12-17 11:54:41 +00:00
Sebastien Helleu d5b58ff068 Added completion system for plugins/scripts commands, fixed plugins autoload 2005-12-16 14:16:03 +00:00
Sebastien Helleu 6eabc3aa61 Added missing args for add_command_handler 2005-12-15 12:44:25 +00:00
Julien Louis c08c40a1c6 use AC_PATH_PROGS instead of AC_PATH_PROG for binary search 2005-12-15 12:32:36 +00:00
Sebastien Helleu 1c4056a3b6 Added missing #ifdef HAVE_GNUTLS 2005-12-12 14:05:18 +00:00
Sebastien Helleu 756f7354e9 Added up/down/left/right args to /window command completion, help & doc 2005-12-12 11:38:15 +00:00
Sebastien Helleu ceaf9fa287 Fixed minor bug with session reload (nicks count for channels now ok) 2005-12-11 14:33:02 +00:00
Sebastien Helleu 54baad1848 After a /upgrade, load session before plugins 2005-12-11 13:59:50 +00:00
Sebastien Helleu 11da868d70 Upgrade when one or more servers are connected with gnutls (SSL) is now
forbidden (temporary solution while gnutls save/load thru session is not ok)
2005-12-11 13:56:39 +00:00
Emmanuel Bouthenot acb40634b0 fix: shutdown function was not lauched 2005-12-11 10:56:13 +00:00
Sebastien Helleu 290c603321 Fixed bug with windows/buffers and some commands manipulating current window 2005-12-11 10:41:55 +00:00
Sebastien Helleu 77e00d0381 Added charset by server and channel, new command: /charset 2005-12-11 00:52:32 +00:00
Emmanuel Bouthenot b8662d79c2 rewrite ruby funcalls 2005-12-10 22:28:18 +00:00
Sebastien Helleu f9a4a0dd01 Added "--with-debug=0" option for ./configure 2005-12-10 11:18:29 +00:00
Sebastien Helleu 59f6997cf0 Debug info is now added by default (--with-debug=1 for ./configure) 2005-12-10 11:13:57 +00:00
Julien Louis 76891f9037 Fix typo restaur -> restaure 2005-12-10 10:42:52 +00:00
Sebastien Helleu b7286b7e9f Fixed bugs with /upgrade command (FIFO pipe now closed before upgrade, and
WeeChat log file descriptor closed too)
2005-12-10 09:41:18 +00:00
Sebastien Helleu c1b4ccace4 Fixed scroll bug (sometimes new lines were not displayed after a scroll up/down) 2005-12-10 09:28:34 +00:00
Sebastien Helleu 1984e7f0f5 Added Ruby script plugin to ChangeLog 2005-12-09 09:23:37 +00:00
Emmanuel Bouthenot 7a80558d0f fix various minor bugs in plugins scripts 2005-12-06 22:38:06 +00:00
Sebastien Helleu 0ef010d211 added /upgrade command, added ETA for DCC files 2005-12-06 18:20:59 +00:00
Julien Louis 6c7a71976b enable the ruby plugin in debian packages 2005-12-05 13:18:28 +00:00
Emmanuel Bouthenot 74b84ae163 make ruby plugin functionnal 2005-12-02 22:28:21 +00:00
Emmanuel Bouthenot 81224d9397 fix some typos and improve get_dcc_info 2005-12-02 22:26:40 +00:00
Sebastien Helleu a114b7adc3 Fixed arguments for "get_info" function 2005-11-29 22:43:14 +00:00
Sebastien Helleu 8e696af49a Removed "look_color_nicks" option, using "col_nick_color1" if "look_color_nicks_number" is set to 1 2005-11-29 21:44:50 +00:00
Sebastien Helleu 4f1e90f68f Fixed display bug 2005-11-29 16:15:21 +00:00
Sebastien Helleu 6efb8e4439 /nick command is now allowed when not connected to server 2005-11-29 10:11:21 +00:00
Sebastien Helleu c005d8c4d3 Added server/channel arg to /buffer command for jumping to buffer 2005-11-29 08:23:03 +00:00
Emmanuel Bouthenot 816fac5084 fix typo with perl_current_script_filename 2005-11-28 20:08:50 +00:00
Emmanuel Bouthenot b821783bbf remove unused perl_current_script_filename variable 2005-11-28 19:32:48 +00:00
Sebastien Helleu 62bc46cb1d Fixed display bug with long lines 2005-11-26 14:35:29 +00:00
Sebastien Helleu a477f29cf8 Fixed display bug in chat window when a message length equals to window width 2005-11-26 13:45:32 +00:00
Sebastien Helleu ea3d7c278d Fixed bug with use of nick1 with a new server ("weechat_user" was used instead of nick1) 2005-11-23 15:44:01 +00:00
Julien Louis 6cfb01f363 Correct weechat-plugins typo in dh_fixperms call 2005-11-23 08:09:47 +00:00
Julien Louis f035f768ad Add weechat-plugins.install 2005-11-23 07:54:23 +00:00
Sebastien Helleu b38f7b6d17 Fixed potential bug in printf internal function 2005-11-22 23:38:33 +00:00
Emmanuel Bouthenot 163ded5658 display python trackback on errors 2005-11-22 20:47:53 +00:00
Julien Louis 80ed16c3c0 Move symlink creation from weechat-curses.links to rules 2005-11-22 19:35:45 +00:00
Julien Louis 1b7f628457 Fix lintian warnings 2005-11-22 19:01:14 +00:00
Emmanuel Bouthenot 578a57812f improve ruby detection 2005-11-22 14:36:20 +00:00
Julien Louis 83b82e1d7d Add a new package called weechat-plugins 2005-11-22 14:07:58 +00:00
Sebastien Helleu 4ea27db1d7 Added new keys for switching to other windows: alt-w followed by alt-{arrow} 2005-11-22 13:43:54 +00:00
Sebastien Helleu 470e8a0296 alt-U scrolls to read marker only if read marker is enabled 2005-11-21 10:43:39 +00:00
Sebastien Helleu 9f0aedd319 Added new keys: alt-U (scroll to read marker), alt-P / alt-N (scroll to
previous/next highlight)
2005-11-20 18:13:24 +00:00
Sebastien Helleu c71f869106 Updated spanish translations 2005-11-20 13:27:08 +00:00
Sebastien Helleu e750eaecfa Updated doc 2005-11-20 08:16:20 +00:00
Sebastien Helleu 5a970dffbb Renamed options "col_chat_marker*" to "col_chat_read_marker*" 2005-11-20 08:01:59 +00:00
Sebastien Helleu d5affecc23 Added read marker (indicator for first unread line), added quotes and spaces in config files 2005-11-19 22:08:46 +00:00
Sebastien Helleu 967d436a1d Updated known bugs 2005-11-17 11:49:07 +00:00
Emmanuel Bouthenot ef0e468415 fix a bug in plugin scripts : current_script was not set when exec a command 2005-11-16 21:13:56 +00:00
Emmanuel Bouthenot 2229d34110 add Eterm support for gui_window_set_title 2005-11-16 10:20:50 +00:00
Emmanuel Bouthenot f29a08bc47 fix typo in gui_window_set_title 2005-11-16 10:04:26 +00:00
Emmanuel Bouthenot 6d931f27c3 better setting and restting terminal title 2005-11-16 09:02:47 +00:00
Sebastien Helleu 3eaf388bce Fixed startup crash when using terms with no color 2005-11-15 11:32:34 +00:00
Sebastien Helleu cea353d34d Fixed display bug with channel mode changes 2005-11-15 11:28:12 +00:00
Julien Louis 85f20851d8 Add -follow option to the find command to follow lib*.so symlinks 2005-11-14 12:26:35 +00:00
Julien Louis f2402d4be2 Update debian packaging 2005-11-14 12:15:45 +00:00
Sebastien Helleu 0cf9d16bb9 - added "resize" option for /window command
- fixed infinite loop when resizing term to small size
2005-11-13 22:14:06 +00:00
Sebastien Helleu fd7d98134d Updated ChangeLog and translations 2005-11-13 17:30:28 +00:00
Emmanuel Bouthenot 8cab953c6f add command /history 2005-11-13 16:59:40 +00:00
Emmanuel Bouthenot b81fa36a5c add LDFLAGS for solaris 2005-11-13 16:41:44 +00:00
Sebastien Helleu e63da66644 Improved window management: new window may have different size (% of current
window size), window sizes are automatically recomputed when term window is
resized
2005-11-13 15:51:00 +00:00
Sebastien Helleu 3a2fdde999 Fixed bug with "command" interface function: now ok when not connected to server 2005-11-13 15:49:29 +00:00
Sebastien Helleu 4df45530c3 Added file weechat.spec to tarball 2005-11-13 14:10:51 +00:00
Sebastien Helleu d73597d69f Updated .spec file for creating RPM (designed for SuSE) 2005-11-13 00:31:02 +00:00
Sebastien Helleu 47c3266952 Fixed bug with new %O attribute for color reset 2005-11-12 12:00:03 +00:00
Sebastien Helleu b081d831e6 Added color reset attr (%O) for messages encoding 2005-11-12 11:45:59 +00:00
Sebastien Helleu 9b371e9ae7 Updated FAQ 2005-11-12 11:45:14 +00:00
Sebastien Helleu 483d4670e1 Fixed crash when command line is ending by char '%' 2005-11-11 23:01:21 +00:00
Sebastien Helleu 92a2a0774c Version 0.1.7-cvs 2005-11-11 16:10:06 +00:00
Sebastien Helleu f5a20d282e Fixed some bugs in RPM build 2005-11-11 13:00:56 +00:00
Sebastien Helleu ed76104d42 Version 0.1.6 2005-11-11 11:23:04 +00:00
Sebastien Helleu 04206f8032 Fixed minor display bug with /set command 2005-11-11 10:56:47 +00:00
Sebastien Helleu 54a5f181b5 Fixed bug with DCC chat close and get_dcc_info plugin function 2005-11-10 22:30:39 +00:00
Sebastien Helleu dd735af7f8 Fixed bug with ctrl-w key (delete previous word) when used in the middle of a line 2005-11-10 15:05:27 +00:00
Sebastien Helleu 87fb462f35 Fixed bug with notify for windows that are not displayed (when using splited windows) 2005-11-10 08:54:45 +00:00
Sebastien Helleu b3018f8ae7 Fixed minor display bug with options help 2005-11-09 14:17:27 +00:00
Sebastien Helleu 1f363eeb24 Previous icon restored 2005-11-09 10:12:03 +00:00
Sebastien Helleu f5ecafd6a8 Fixed bugs with get_plugin_config and set_plugin_config functions (python only) 2005-11-08 09:16:32 +00:00
Julien Louis c8361419b8 Fix second enumeration 2005-11-08 08:23:19 +00:00
Julien Louis 10161cd16c fix enumeration description to fit description format 2005-11-07 13:50:12 +00:00
Sebastien Helleu a83507eb77 Updated package info 2005-11-07 13:04:19 +00:00
Sebastien Helleu 159371cbd9 Commented out code for calling PRIVMSG plugins handlers when user send text to
channel/private (was causing problems with Perl scripts unload)
2005-11-06 22:56:13 +00:00
Sebastien Helleu 78c110ace2 Check only min number of args in perl plugin for all functions, except register
(if too much args given, they're silently ignored)
2005-11-06 22:12:40 +00:00
Sebastien Helleu 83b7741ef2 New WeeChat icon 2005-11-06 19:26:23 +00:00
Sebastien Helleu 64c1dbba0e Fixed bugs in "get_info" and "command" interface functions of plugins 2005-11-06 18:27:20 +00:00
Sebastien Helleu 6eb449b370 Added WeeChat logo 2005-11-06 12:59:32 +00:00
Sebastien Helleu 2bbc2d53eb Added missing translation for /uptime command 2005-11-06 12:23:55 +00:00
Sebastien Helleu 68cf327088 Updated TODO 2005-11-06 12:18:28 +00:00
Sebastien Helleu bf3f696830 Added /uptime command 2005-11-06 12:09:44 +00:00
Emmanuel Bouthenot 3bca573d49 auto detect perl multiplicity at compile time 2005-11-06 11:38:07 +00:00
Sebastien Helleu ba98dca08a Added "col_real_white" option to active real white (useful only if term has not
white background)
2005-11-06 00:46:29 +00:00
Emmanuel Bouthenot 4812123dc5 fix typo 2005-11-05 22:25:02 +00:00
Emmanuel Bouthenot ed1755eacc make possible to use perl plugin with a not threaded Perl 2005-11-05 22:18:15 +00:00
Sebastien Helleu bd80891676 Updated cs.po 2005-11-05 21:16:12 +00:00
Sebastien Helleu 8a2a0ec0ae Added color decode when sending some commands to server (like /me, /msg, ..) 2005-11-05 19:07:07 +00:00
Sebastien Helleu e49b4131f2 Fixed nick completion in private, now completes according to
"look_nick_completion_ignore" option)
2005-11-05 18:33:19 +00:00
Sebastien Helleu a164b85e3a Fixed crash with Alt-S key 2005-11-05 16:04:16 +00:00
Sebastien Helleu b0758b6fac Updated contributors 2005-11-05 15:27:25 +00:00
Sebastien Helleu 5830b0ab40 Fixed server detection when using "command" interface function from scripts 2005-11-05 15:14:17 +00:00
Sebastien Helleu d94a7d05ea Convert colors codes to %B, %C with /topic completion (if option irc_colors_send
is ON)
2005-11-05 13:21:48 +00:00
Sebastien Helleu bea5769a05 Fixed some bugs with color codes:
- colors are now removed in topic for display in title bar
- completion of /topic command now strips color codes
- color codes are encoded in commands (not only text sent to channel/pv)
- double '%' is replaced by single '%' in command line (when irc_colors_send is ON)
2005-11-05 11:34:52 +00:00
Sebastien Helleu fd562722d0 Changed help for "irc_colors_receive" option 2005-11-05 10:46:23 +00:00
Sebastien Helleu 639d8b3ba9 Updated with last contributors 2005-11-05 10:10:38 +00:00
Sebastien Helleu b536a8a491 Added message for /buffer notify completion 2005-11-04 22:53:10 +00:00
Emmanuel Bouthenot 51cacc0fdb remove unused comment 2005-11-04 22:33:26 +00:00
Emmanuel Bouthenot e07859395f improve PYTHON LDFLAGS 2005-11-04 22:30:23 +00:00
Emmanuel Bouthenot 7cf7e5b9ff fix a dead lock 2005-11-04 22:26:53 +00:00
Sebastien Helleu 87e934766b Fixed cursor position bug when using history with up/down keys 2005-11-04 21:40:34 +00:00
Sebastien Helleu e4b59681b2 Fixed crash with /buffer command 2005-11-04 20:13:26 +00:00
Sebastien Helleu dd8ce32004 Removed debug messages 2005-11-04 20:12:28 +00:00
Sebastien Helleu b575a4f578 Fixed scroll problem when one line is bigger than screen size 2005-11-04 16:14:28 +00:00
Sebastien Helleu 6b1f5a4a92 Fixed crash when doing "/msg nickserv identify ..." 2005-11-04 13:41:05 +00:00
Sebastien Helleu dd3977367f Fixed log problem with new color display system (now color codes are removed in
log file)
2005-11-04 13:11:39 +00:00
Sebastien Helleu 8a9e8ecc88 - added major feature: new color management system (internal to WeeChat), now
colors are displayed by WeeChat (optional by new settings irc_colors_receive
  and irc_colors_send)
- fixed IRC command 367
- added IRC command 382
2005-11-04 11:53:23 +00:00
Emmanuel Bouthenot 5dfab7643d update --enable-perl-nothread config 2005-11-04 11:00:00 +00:00
Emmanuel Bouthenot cea0851071 improve contexts switch in python plugin 2005-11-04 09:23:33 +00:00
Emmanuel Bouthenot 6919005d74 improve python detection 2005-11-01 19:52:29 +00:00
Emmanuel Bouthenot 8497d25d34 add openbsd flags 2005-11-01 18:32:10 +00:00
Sebastien Helleu 4ea734a376 Fixed type used for htonl function (replaced u_int32_t by uint32_t, now OK under
MacOS)
2005-10-31 12:40:34 +00:00
Sebastien Helleu 3369a00959 Added missing intl libs for openbsd 2005-10-31 10:56:32 +00:00
Sebastien Helleu a6d93cf432 Added constants for Perl return codes 2005-10-30 23:51:19 +00:00
Emmanuel Bouthenot e6a1bb4694 add constants for python return codes 2005-10-30 23:39:54 +00:00
Sebastien Helleu 6b6def5890 Fixed "jump to next server" action (was broken by new option "look_one_server_buffer") 2005-10-30 22:56:00 +00:00
Sebastien Helleu be1c9be925 Added command line arguments to disable auto-connect to servers and plugins auto-load 2005-10-30 19:22:53 +00:00
Sebastien Helleu e5754e1fe6 Fixed minor compilation problem (dependency with plugins lib) 2005-10-30 18:37:58 +00:00
Emmanuel Bouthenot c0e4ba60d7 add dependance on automake for libtool 2005-10-30 13:18:05 +00:00
Emmanuel Bouthenot 5f101c3833 fix CFLAGS on openbsd 2005-10-30 13:17:20 +00:00
Sebastien Helleu 079e4a4028 - added new setting (look_one_server_buffer): use same buffer for all servers
- fixed DCC bug when looking for ports in range
2005-10-30 09:56:24 +00:00
Emmanuel Bouthenot 24ceb3bb95 fix type in LDFLAGS 2005-10-29 23:59:44 +00:00
Emmanuel Bouthenot dec92aeba6 fix detection of libgnutls 2005-10-29 17:56:50 +00:00
Emmanuel Bouthenot 5551542566 fix flags on *bsd 2005-10-29 12:11:54 +00:00
Emmanuel Bouthenot 9411a2fad0 fix perl/python sigv and undefined symbols by adding '-pthread' in global CFLAGS on freebsd
add option --enable-perl-nothread to compile perl plugin without Perl without thread or multiplicity support (typically in some *bsd)
2005-10-29 09:36:45 +00:00
Sebastien Helleu ee4f5716d3 Added setting for ignoring some chars when completing nicks 2005-10-28 13:07:32 +00:00
Sebastien Helleu e26772dcdb Added new return codes for plugin handlers, to discard messages for WeeChat, plugins, or both. 2005-10-28 07:31:21 +00:00
Emmanuel Bouthenot 232b5684ca improve python LDFLAGS on *BSD 2005-10-27 15:49:03 +00:00
Sebastien Helleu 93b2be7a41 Clean up of IRC message parser (fixed potential bugs when long messages are received) 2005-10-27 10:28:20 +00:00
Sebastien Helleu b86c95e7dc Added partial match for highlights, patch by Jim Ramsay 2005-10-26 23:15:38 +00:00
Sebastien Helleu 9d52621c44 Fixed Perl bugs with returned values 2005-10-26 23:07:03 +00:00
Sebastien Helleu 0e6b0a3b0c Signal SIGPIPE now ignored by WeeChat 2005-10-26 23:05:35 +00:00
Emmanuel Bouthenot e081a6af17 improve python header and libs detection 2005-10-26 10:20:15 +00:00
Sebastien Helleu 3f3a202739 Removed old functions for removing handlers, replaced by one function, the same for all handlers 2005-10-25 18:27:02 +00:00
Sebastien Helleu 0f055b087a - Added options for /plugin command: autoload, reload, unload
- Added new plugin functions, for C plugins and scripts: set_config, get_plugin_config, set_plugin_config
- Added new script function: remove_handler
2005-10-25 17:37:13 +00:00
Sebastien Helleu 0e531f5e6a Added auto-detection of ncursesw/ncurses lib in configure.in, fall back to ncurses if ncursesw is not found (auto-detect ncurses.h location too) 2005-10-25 09:23:10 +00:00
Emmanuel Bouthenot c2f4bdd0fc add the possibility to (un)load each script one by one 2005-10-24 21:33:48 +00:00
Sebastien Helleu 32a7fbb767 Added new plugins functions: set_config, get_plugin_config, set_plugin_config.
New file is used to store plugin variables (~/.weechat/plugins.rc)
2005-10-23 22:07:18 +00:00
Sebastien Helleu b7484eeea7 Updated doc 2005-10-23 11:34:58 +00:00
Sebastien Helleu f7872a9dd8 Converted old Ruby interface to new plugin system (Ruby plugin still NOT ok!) 2005-10-23 11:33:39 +00:00
Sebastien Helleu cde66456fb Fixed bug with keyboard and "^" key (was inserting two "^") 2005-10-22 16:22:52 +00:00
Sebastien Helleu 6beb8b6465 - added dcc_own_ip and dcc_port_range settings, patch by Jim Ramsay
- fixed bug when exiting DCC buffer (wrong input buffer)
2005-10-22 14:04:26 +00:00
Julien Louis 1a140ab8b5 * update build-depends
* remove automatic update of config.{guess,sub} since it's now handled by
   libtool
 * Add new loadable plugins in weechat-curses package
2005-10-22 08:51:50 +00:00
Sebastien Helleu e148a40ae1 Added "ncursesw/" path for ncurses.h include 2005-10-22 08:22:27 +00:00
Sebastien Helleu ee2951bf11 The "day changed" message does not update hotlist any more 2005-10-21 14:20:22 +00:00
Sebastien Helleu 73359fcc05 Full UTF-8 support, auto-detection of UTF-8 usage (locale) 2005-10-21 13:59:55 +00:00
Emmanuel Bouthenot 0bc32f561b fixes some typos, and a bug which occured when parsing a script fails 2005-10-20 09:19:10 +00:00
Emmanuel Bouthenot d179625e52 correct bad hack for stdout and stderr outputs 2005-10-19 15:43:13 +00:00
Julien Louis bd9cdeec5c Add debian/compat and remove debian/weechat-gtk.* to EXTRA_DIST 2005-10-19 08:48:59 +00:00
Sebastien Helleu a9f04c5fd9 Added "Day changed to [date]" message when day changes 2005-10-18 17:46:54 +00:00
Sebastien Helleu 1e382ab9bd Log options (for server/channel/private) can now be set while WeeChat is running 2005-10-18 15:56:00 +00:00
Julien Louis 2855b71520 Add --copy argument to libtollize call 2005-10-18 08:07:51 +00:00
Sebastien Helleu 7b4453a507 Updated doc with new plugins implementation 2005-10-17 20:54:30 +00:00
Sebastien Helleu aeb7170024 Moved some functions in source code 2005-10-17 17:45:23 +00:00
Sebastien Helleu 357d7c5a2f Changes in plugins and scripts plugins:
- get_info("version") now returns only version
- added get_config() function to read config options
2005-10-17 14:30:03 +00:00
Sebastien Helleu b2ec60110c Auto-load plugins in user's plugins path (before WeeChat system lib dir) 2005-10-17 11:53:46 +00:00
Sebastien Helleu 9eb142036e When dlopen function is found without dl lib, do not link with -ldl (now ok
under FreeBSD)
2005-10-17 10:36:09 +00:00
Sebastien Helleu fa54807ef6 Added "weechatdir" info for compatibility with old scripts (now DEPRECATED, use
"weechat_dir" instead)
2005-10-16 21:47:43 +00:00
Sebastien Helleu 11d77e6168 Added channel modes +e/+f, IRC commands 348,349,470 2005-10-16 21:46:31 +00:00
Sebastien Helleu 2ca5b4f651 Added Py_Finalise when Python plugin is unloaded 2005-10-16 17:38:50 +00:00
Sebastien Helleu 38e2003a17 Commented out WxWidget lib detection since WxWidgets GUI is not developed today 2005-10-16 17:20:46 +00:00
Sebastien Helleu 7bb815a540 Fixed but when no parameter given for /perl and /python options 2005-10-16 15:39:20 +00:00
Sebastien Helleu 5a3976d6a5 Changed help messages for options 2005-10-16 15:38:47 +00:00
Sebastien Helleu cdc33d08b0 New plugin interface (loads dynamic C libraries) 2005-10-15 12:34:21 +00:00
Sebastien Helleu 5130b1dc4f Removed old ruby interface 2005-10-15 12:27:49 +00:00
Sebastien Helleu cdfc5b6c5a Removed old python interface 2005-10-15 12:27:22 +00:00
Sebastien Helleu 50ef2b0306 Removed old perl interface 2005-10-15 12:25:24 +00:00
Sebastien Helleu b25824eb4f Removed obsolete file 2005-10-15 12:21:41 +00:00
Sebastien Helleu 97a1d0e79d Updated TODO 2005-10-06 21:03:50 +00:00
Sebastien Helleu 219e9d443a Added auto-creation of ~/.weechat/{perl|python}/config directories 2005-10-03 12:35:15 +00:00
Sebastien Helleu 77d50aef98 Added IRC commands: 008 and 381 2005-10-03 12:27:09 +00:00
Sebastien Helleu eea49832ea Changed default color for delimiters in input window (from cyan to lightgreen) 2005-10-03 09:37:25 +00:00
Sebastien Helleu 16389e0728 Added colors for input buffer and current channel of status bar 2005-10-02 20:52:38 +00:00
Sebastien Helleu 4a7b3436ae Added online help for config options (with /set full_option_name) 2005-10-02 08:16:12 +00:00
Sebastien Helleu 799bb14928 Updated doc with new options 2005-10-01 22:05:27 +00:00
Sebastien Helleu 75c58c423c Added "smart" hotlist 2005-10-01 13:41:10 +00:00
Julien Louis 63e73b30ad Fix ruby ldflags add 2005-09-30 15:48:01 +00:00
Sebastien Helleu 29006d8cec Fixed /server command help (3 nicks are mandatory if -nicks used) 2005-09-28 12:58:41 +00:00
Julien Louis 85b1702077 Update debian/changelog 2005-09-25 13:32:19 +00:00
Sebastien Helleu caff3dd011 Fixed typo in autojoin option help 2005-09-25 07:49:09 +00:00
Sebastien Helleu 9d4300c0d7 Added doc (info format) in rpm build 2005-09-25 07:48:03 +00:00
Sebastien Helleu 8aa7e3e3e6 Version 0.1.6-cvs 2005-09-24 12:17:05 +00:00
Sebastien Helleu 150c5e9749 Version 0.1.5 2005-09-24 11:35:13 +00:00
Sebastien Helleu 6bec96cd4d Replaced gettext with macro "_" 2005-09-23 21:49:02 +00:00
Sebastien Helleu 068284dd19 Added /ame command (send CTCP action to all channels of all connected servers) 2005-09-23 09:57:45 +00:00
Sebastien Helleu 38a8c321c0 Added czech translations 2005-09-22 17:22:30 +00:00
Sebastien Helleu 0094d143b3 Updated doc 2005-09-22 14:20:17 +00:00
Sebastien Helleu 530dc9fb67 Added setting "irc_notice_as_pv" to see notices as pv 2005-09-22 08:21:53 +00:00
Sebastien Helleu 96a69fd7f3 Updated doc 2005-09-21 08:34:48 +00:00
Sebastien Helleu 938915d387 Added nicks colors in setup file 2005-09-20 17:44:44 +00:00
Sebastien Helleu 25bbe3d284 Fixed DCC bug: delete failed file only if really empty (on disk) 2005-09-20 16:14:04 +00:00
Sebastien Helleu 9c7d05f605 Fixed IRC message parser bug 2005-09-15 14:02:38 +00:00
Sebastien Helleu c953db4d64 Fixed window swtich functions (was changing windows buffer and should not) 2005-09-15 13:07:52 +00:00
Sebastien Helleu 9d6ca20478 Fixed window switch functions and bug when line is removed and that a window uses this line at scroll start point 2005-09-15 11:36:50 +00:00
Sebastien Helleu 7f4a213239 Fixed scroll problem (screen moving when scrolling and new line displayed) 2005-09-15 08:21:36 +00:00
Sebastien Helleu e18f14e5d3 One bug removed! 2005-09-14 08:59:49 +00:00
Sebastien Helleu 8f3455d0a9 Fixed infinite loop when scrolling back and displaying long lines 2005-09-14 08:39:14 +00:00
Sebastien Helleu dfbea2850a Fixed minor refresh bug in buffer clear function 2005-09-13 17:10:18 +00:00
Sebastien Helleu 8a299adb3b Fixed crash when closing a buffer used by more than one window 2005-09-13 17:04:34 +00:00
Sebastien Helleu a29416e352 Updated TODO 2005-09-13 07:00:33 +00:00
Sebastien Helleu c346216e34 Added missing "return 0" in handler for IRC command 221 2005-09-11 16:39:37 +00:00
Sebastien Helleu da7df57b1a Added global history keys (ctrl+up/down) 2005-09-11 16:30:51 +00:00
Sebastien Helleu 61fac4d49e Updated bugs 2005-09-11 14:32:07 +00:00
Sebastien Helleu 4f5c1b6e09 Updated Czech translations 2005-09-11 13:54:44 +00:00
Sebastien Helleu 2962a8e6c8 Added IRC commands: 042, 344, 345, 484 2005-09-10 08:53:35 +00:00
Sebastien Helleu 76263dc7cf Added IRC command "221" 2005-09-07 14:17:10 +00:00
Sebastien Helleu 554fa728ae Fixed command "331" ("no topic set for channel") 2005-09-07 10:16:00 +00:00
Sebastien Helleu 5881048405 Fixed DCC display bug (now decodes strings according to charset) 2005-09-07 10:14:07 +00:00
Sebastien Helleu c517253a72 Updated doc 2005-09-05 15:52:16 +00:00
Sebastien Helleu fe16f6d48f Added czech translation file 2005-09-04 19:21:30 +00:00
Sebastien Helleu f276fd9494 Fixed bug with nick change 2005-09-04 13:39:24 +00:00
Sebastien Helleu 517de7ab94 Removed nick color in nicklist when away and away check for nicks is disabled (= 0) 2005-09-04 13:20:56 +00:00
Sebastien Helleu 06463e5937 Added /ignore and /unignore commands 2005-09-04 12:55:25 +00:00
Sebastien Helleu d80c8e9e57 Fixed bug with strings comparison (str[n]casecmp) and some locales (like turkish), now using ASCII comparison 2005-09-03 12:37:20 +00:00
Sebastien Helleu f74b280a1f Added "505" IRC command 2005-09-02 08:17:17 +00:00
Sebastien Helleu cd4f50c136 Signal SIGQUIT is now ignored 2005-09-02 08:16:52 +00:00
Sebastien Helleu 767e378c53 Set non blockant socket for dcc connection (as it was made before) 2005-08-26 22:32:02 +00:00
Sebastien Helleu 60503d9383 Added command "020" 2005-08-22 11:43:43 +00:00
Sebastien Helleu 11321acb96 Added Ruby plugins skeleton 2005-08-21 16:32:48 +00:00
Sebastien Helleu 84b1a27265 Fixed empty private buffer when unknown CTCP is received 2005-08-21 09:49:58 +00:00
Sebastien Helleu 51322e7917 Fixed refresh bug when one line is bigger than screen size 2005-08-17 16:54:05 +00:00
Sebastien Helleu d256d72eef Fixed look_nicklist_min_size and look_nicklist_max_size options 2005-08-16 21:01:32 +00:00
Sebastien Helleu 8a61b0eee0 Updated TODO 2005-08-16 19:33:58 +00:00
Sebastien Helleu d4ecb032d4 Added example in server_autojoin description 2005-08-16 15:03:44 +00:00
Sebastien Helleu 3f946e304d Added completion for internal functions with /key command 2005-08-16 15:02:01 +00:00
Sebastien Helleu 97b6bbcb9e Revert code for irc_cmd_send_join function code (to prevent lag when sending
many /join commands to IRC server)
2005-08-15 21:52:15 +00:00
Sebastien Helleu 357edc193e Fixed bug and memory leak in irc_cmd_send_join function 2005-08-14 06:56:45 +00:00
Emmanuel Bouthenot ace03b808d add half (due to dcc) dcc support with proxies (only in ipv4 ) 2005-08-04 19:01:29 +00:00
Emmanuel Bouthenot 428cfbc297 fix an error in socket() while using ipv6 proxy 2005-08-03 19:18:28 +00:00
Julien Louis 02cd829c4c Update debian stuff 2005-08-01 19:54:39 +00:00
Emmanuel Bouthenot 17973de52a fix a stupid error about previous commit 2005-08-01 09:11:29 +00:00
Emmanuel Bouthenot 364667f788 improve support of keys when joining channel and with server autojoin 2005-07-31 23:01:14 +00:00
Sebastien Helleu 10d7c6c34a Fixed refrech bug when changing channel modes 2005-07-31 12:29:49 +00:00
Sebastien Helleu 38fa7c93ac Jump to next server now saves current channel buffer for each server 2005-07-31 11:32:28 +00:00
Sebastien Helleu 9e328d3fef ctrl-up/ctrl-down keys added to call previous/next command in global history (common to all buffers) 2005-07-30 18:41:48 +00:00
Sebastien Helleu 312d8015f5 Version 0.1.5-cvs 2005-07-30 09:05:09 +00:00
Sebastien Helleu 110aa59ca8 Version 0.1.4 2005-07-30 09:04:09 +00:00
Sebastien Helleu 89b955c79e Version 0.1.4 2005-07-30 08:28:43 +00:00
Sebastien Helleu 3d724fb634 Join and part/quit prefixes (arrows) now displayed with different colors 2005-07-22 08:11:39 +00:00
Sebastien Helleu 29d0225e4a Fixed CTCP ACTION bug and now replies to CTCP PING on channels 2005-07-20 15:04:49 +00:00
Sebastien Helleu 8416212077 Updated TODO 2005-07-20 13:49:33 +00:00
Sebastien Helleu c36f08d7d7 Highlights with "irc_highlight" setting now case insensitive 2005-07-19 19:50:10 +00:00
Sebastien Helleu 1230735c5f Added "irc_highlight" setting, fixed crash when doing /part on an active DCC chat buffer 2005-07-19 17:35:51 +00:00
Sebastien Helleu 77d7b703de Fixed typo (wrong accent) 2005-07-19 14:17:08 +00:00
Sebastien Helleu 60db73c19a Updated translations 2005-07-19 12:20:40 +00:00
Sebastien Helleu a9ca2987bb Commands /halfop, /voice, /deop, /dehalfop, /devoice are ok for self nick (no arg) 2005-07-19 12:19:06 +00:00
Sebastien Helleu 220308e1fa Fixed hotlist for privates: now quit message is displayed as part/join/quit, not standard message 2005-07-19 10:17:17 +00:00
Sebastien Helleu 8166d15235 Fixed auto-rejoin for channels with key 2005-07-19 09:46:23 +00:00
Sebastien Helleu 575525d965 Reverted to previous code 2005-07-18 09:30:55 +00:00
Emmanuel Bouthenot 6271304832 change signatures in proxy functions 2005-07-17 23:10:17 +00:00
Sebastien Helleu bdf9eadf43 Fixed /ctcp command (now any command/data allowed) 2005-07-17 11:03:00 +00:00
Julien Louis 15ea11b57b Update path of weechat-curses.1 manpages in debian/rules 2005-07-17 08:59:27 +00:00
Sebastien Helleu f3390da5e3 Previous behaviour restored for key "^" (now inserted in buffer) 2005-07-17 00:15:48 +00:00
Sebastien Helleu eeff957278 Added /amsg command (send text to all channels of all connected servers) 2005-07-17 00:02:40 +00:00
Sebastien Helleu 1eac6d8fdd Added /amsg command (send text to all channels of all connected servers) 2005-07-16 23:26:01 +00:00
Sebastien Helleu 23696b44da Documentation is now included in source package and installed with standard process 2005-07-16 22:46:01 +00:00
Sebastien Helleu 63ffae72af Image not used any more in pdf version of doc 2005-07-16 22:44:06 +00:00
Sebastien Helleu 376c8a29d6 Makefile replaced by Makefile.am 2005-07-16 22:40:42 +00:00
Sebastien Helleu 8b1e3b9890 Man page moved to doc/ directory 2005-07-16 22:38:49 +00:00
Julien Louis 1b2c5571e6 Add @documentencoding macro to enable localized info files 2005-07-16 16:51:59 +00:00
Sebastien Helleu 4c6c367557 - added alt-j + alt-l key (switch to last buffer)
- added message for +q mode changing on a nick
2005-07-16 12:37:30 +00:00
Sebastien Helleu 99ad719ab9 Fixed segfault when switching to DCC buffer 2005-07-16 11:32:23 +00:00
Sebastien Helleu a68a1f8192 Added alt-k key to grab a key and insert result into input buffer 2005-07-16 11:14:47 +00:00
Julien Louis 930c40eae1 Sync debian packaging with actual version 2005-07-16 08:58:23 +00:00
Sebastien Helleu 9238a37351 Fixed minor typos 2005-07-15 12:16:14 +00:00
Sebastien Helleu a7c4c7237c Added control in clipboard copy function 2005-07-14 16:35:59 +00:00
Sebastien Helleu a9912cd266 - fixed SIGSEGV handler (now write a core file by aborting program)
- fixed statusbar & infobar background refresh problem with some systems
2005-07-14 07:04:45 +00:00
Sebastien Helleu 1d07964d17 Added color for private in hotlist (different than color for highlight) 2005-07-13 17:40:20 +00:00
Sebastien Helleu 06bd0f9f0e Special chars (between 01 and 31 decimal) not displayed any more on buffers (replaced by spaces) 2005-07-13 16:40:42 +00:00
Sebastien Helleu 4b1679900a Setting "dcc_auto_resume" now used, and fixed address & pos conversion to unsigned long for DCC 2005-07-13 16:39:49 +00:00
Sebastien Helleu 99f03cd2a3 Added DCC resume 2005-07-13 16:24:47 +00:00
Emmanuel Bouthenot 3d41a3fa2f correct bugs in clipboard management 2005-07-13 08:32:02 +00:00
Emmanuel Bouthenot 089b167573 close bug when using delete_end_line in empty line 2005-07-13 07:33:29 +00:00
Sebastien Helleu fc2d9732e5 When DCC failed, do not display local filename if transfer failed before starting 2005-07-12 19:28:09 +00:00
Sebastien Helleu 94a3b5e1ae Added message on server buffer when DCC file transfer failed (or was aborted) 2005-07-12 17:17:37 +00:00
Sebastien Helleu 6b12f19083 - added DCC timeout
- fixed FIFO pipe (command now authorized on a buffer not connected to an IRC server)
- fixed Perl bug with info reading functions
2005-07-12 17:05:01 +00:00
Emmanuel Bouthenot 8a6d35cf12 change return type from tuple to list for get_info('dccs') feature 2005-07-12 14:58:42 +00:00
Emmanuel Bouthenot d286f3922c adding getinfo feature about dccs 2005-07-12 14:46:44 +00:00
Emmanuel Bouthenot 505b43d15b add some gui_input features : clipboard and a 'translate_chars' function 2005-07-12 10:06:10 +00:00
Sebastien Helleu 07a820ced6 Added function for Perl/Python to get DCC list 2005-07-12 08:35:58 +00:00
Sebastien Helleu df6a41566b Updated spanish translation 2005-07-12 08:20:25 +00:00
Sebastien Helleu 263606fffb Updated TODO 2005-07-11 15:05:10 +00:00
Sebastien Helleu d4d065253e Topic completion now decodes UTF-8 string 2005-07-11 14:34:20 +00:00
Sebastien Helleu 673e7680af Fixed bug with IRC URL on command line (irc://) 2005-07-11 12:14:57 +00:00
Sebastien Helleu ad1120c84c Updated doc with new kayboard management 2005-07-09 22:23:41 +00:00
Sebastien Helleu f2a78ebc16 Updated TODO 2005-07-09 22:01:26 +00:00
Sebastien Helleu fef0932c1d Changed two shortcuts (jump to server and jump to next server, now prefixed by meta-j) 2005-07-09 17:50:04 +00:00
Sebastien Helleu 96bd473887 Internal functions descriptions for keys are now displayed and translated 2005-07-09 17:08:26 +00:00
Sebastien Helleu 89d107c1a9 Fixed typo on a color number 2005-07-09 15:58:54 +00:00
Sebastien Helleu 54d4fc12a6 - new keyboard management: keys are setup in config file, new command /key was added and some new default keys were added
- added seconds in infobar time (optional with new config flag)
- fixed some curses refreshs
2005-07-09 15:30:51 +00:00
Sebastien Helleu 55125beee4 Channels auto-prefixed by "#" (if no prefix found) for /join command 2005-07-06 07:13:03 +00:00
Julien Louis a724278215 Update packaging stuff 2005-07-04 04:50:59 +00:00
Sebastien Helleu e3799797ef Version 0.1.4-cvs 2005-07-02 18:22:40 +00:00
Sebastien Helleu b738f4c8aa Version 0.1.3 2005-07-02 17:21:50 +00:00
Sebastien Helleu 6f3b6d9e50 Version 0.1.3 2005-07-02 17:03:23 +00:00
Sebastien Helleu def35c5a66 Updated doc 2005-07-02 16:07:52 +00:00
Sebastien Helleu da4ee1a6ee Added tests after getaddrinfo function 2005-07-02 16:01:02 +00:00
Sebastien Helleu 7c31dd9189 gnutls lib now optional, configure goes on if lib is not found 2005-07-02 15:59:44 +00:00
Sebastien Helleu dbad2a0206 Translated some messages and added calls to freeaddrinfo() function 2005-06-30 20:16:07 +00:00
Emmanuel Bouthenot ec1d57063c - proxy support (http, socks4, socks5) with authentification for http, socks5 2005-06-30 19:22:01 +00:00
Sebastien Helleu 5bd56f86c6 * commands from users outside channel now authorized (if special user or channel without "n" flag)
* completion added for config option (with /set command)
2005-06-30 12:55:36 +00:00
Sebastien Helleu 2fab4da03d Updated TODO with SSL and IPv6 2005-06-28 08:33:13 +00:00
Sebastien Helleu c69c77507c Added IPv6 and SSL options for command line IRC url 2005-06-28 08:24:43 +00:00
Sebastien Helleu b330ec3dae Added IPv6 support 2005-06-27 16:27:31 +00:00
Sebastien Helleu ae8f8a5700 gnutls code compiled according to pre-processor var HAVE_GNUTLS 2005-06-22 21:08:21 +00:00
Julien Louis 5e8b47f187 * Add --disable-gnutls option to turn off gnutls support
* Remove wxwidgets checks when --enable-wxwidgets arg is not given
2005-06-22 18:50:24 +00:00
Sebastien Helleu f4abd0bf59 Added certificate management in SSL (connection now ok with SSL server) 2005-06-21 08:05:58 +00:00
Sebastien Helleu abe7e08147 kill command now received and displayed 2005-06-20 14:04:17 +00:00
Sebastien Helleu 4e9193a943 Added SSL support with gnutls lib 2005-06-19 20:55:10 +00:00
Julien Louis bbd373c44d Update debian/changelog 2005-06-19 19:44:01 +00:00
Sebastien Helleu 6b011234cf Added kolter and ptitlouis 2005-06-19 15:51:22 +00:00
Sebastien Helleu 71a76ada48 Channel notify levels are saved in config file 2005-06-19 14:22:11 +00:00
Sebastien Helleu a7ddb89076 Updated README 2005-06-18 20:27:05 +00:00
Sebastien Helleu 6fe262c131 File automatically updated 2005-06-18 11:44:37 +00:00
Julien Louis 0a32bc5326 Fix wrong debhelper version dependency. 2005-06-18 09:38:59 +00:00
Sebastien Helleu 70fe8e9472 part message now accepts %v (replaced by WeeChat version), like quit message 2005-06-18 09:28:16 +00:00
Julien Louis b0310b6e78 Set debhelper compatibility to avoid warnings during package build 2005-06-18 09:25:30 +00:00
Julien Louis 8218316502 Sync with official debian package 2005-06-18 08:42:08 +00:00
Emmanuel Bouthenot d00c99f292 errors while loading perl scripts are now displayed in server buffer (instead of current buffer) 2005-06-16 17:02:37 +00:00
Emmanuel Bouthenot f72e5952f2 in python scripts, all messages written in stdin and stderr are redirect in server window 2005-06-16 16:52:17 +00:00
Emmanuel Bouthenot ebf5f9e66d in python scripts, all messages written in stdin and stderr are redirect in server window 2005-06-16 16:41:41 +00:00
Emmanuel Bouthenot 7330dc862a fix a filename error while loading a python script manually 2005-06-16 16:38:36 +00:00
Sebastien Helleu 9eb1422bb7 Fixed plugins "print" and "prnt" functions: now ok for writing on server buffers 2005-06-16 11:02:19 +00:00
Sebastien Helleu d86a783b6a Fixed color problem with new libcurses version 2005-06-15 17:17:45 +00:00
Sebastien Helleu 5b3f96dace Display message content when nick is not found for an incoming "PRIVMSG" message 2005-06-15 17:16:35 +00:00
Emmanuel Bouthenot 821c2e87c8 update examples in python API 2005-06-05 12:54:31 +00:00
Sebastien Helleu 1de7b52aa2 Fixed crash when using alt-S or alt-X keys on DCC buffer (alt-D) 2005-05-31 15:09:54 +00:00
Sebastien Helleu 4d4a667094 Fixed crash when using alt-S or alt-X keys on DCC buffer (alt-D) 2005-05-31 07:55:17 +00:00
Emmanuel Bouthenot 0eb3d45582 Fix python library detection on FreeBSD 2005-05-29 15:15:12 +00:00
Sebastien Helleu 7c63a73999 Added cast to prevent problems with AMD64 where size_t is not int 2005-05-29 07:20:15 +00:00
Sebastien Helleu 2ab3467c05 Added cast for away time display (to prevent problems with *BSD, where time_t is int and not long int) 2005-05-29 06:46:01 +00:00
Emmanuel Bouthenot 37d74c4941 Fix perl headers and library detection on various systems 2005-05-24 15:14:54 +00:00
Sebastien Helleu 01186c6c8b Fixed startup crash when weechat config file is not found 2005-05-24 14:10:56 +00:00
Emmanuel Bouthenot 29ffe7e0d8 Remove unused $PERL_LIB var due to an impoved libperl detection 2005-05-23 21:52:53 +00:00
Emmanuel Bouthenot a8619181b7 Fix libperl and libpython detection 2005-05-23 21:45:50 +00:00
Julien Louis 5a90270a79 Fix configure args handling 2005-05-22 17:40:25 +00:00
Sebastien Helleu 3900a0f5ae Version 0.1.3-cvs 2005-05-22 16:12:24 +00:00
Sebastien Helleu 5f46617b11 Version 0.1.2 2005-05-21 07:04:11 +00:00
Sebastien Helleu 68ec2acbb3 Empty sources added for wxWidgets GUI 2005-05-21 05:29:50 +00:00
Sebastien Helleu e7041a467b Added "++++" at bottom of nicklist if end of nicklist is not displayed 2005-05-18 19:03:34 +00:00
Julien Louis ee2121b917 Remove weechat-gtk dependency since GTK gui does not exist 2005-05-12 19:56:53 +00:00
Sebastien Helleu bff5f95056 Plugin message handler is now called for own messages (as "privmsg" IRC command, with "localhost" as host to differenciate from other messages) 2005-05-08 12:19:47 +00:00
Sebastien Helleu 2b178c73fa Updated doc with new Perl/Python script interface 2005-05-07 22:53:05 +00:00
Sebastien Helleu 13d8a4f093 Fixed buffer detection for Perl/Python "print" and "command" functions 2005-05-07 11:26:31 +00:00
Sebastien Helleu b935a02ceb Perl and Python libraries now cheked in configure script 2005-05-07 09:29:26 +00:00
Sebastien Helleu e7c899014c Fixed nicklist sort mode: now modes are not cumulated any more (so for example all op will be sorted together) 2005-05-07 06:56:01 +00:00
Sebastien Helleu f88b75b241 Allow only server (with blank channel) for buffer search (for print & command functions) 2005-05-05 16:41:22 +00:00
Sebastien Helleu c8ad30020b Improved Perl interface and some changes in Python:
- function "print_with_channel" was removed
- function "command" now runs weechat command or send text to channel
- Perl functions are now called with weechat::name (instead of IRC::name)
- IRC::xxx functions are still active for compatibility with old scripts
2005-05-05 16:26:34 +00:00
Sebastien Helleu c6fc8bd147 Added Python plugin support 2005-05-01 19:03:15 +00:00
Sebastien Helleu eda55fbdb4 Added Python plugin support 2005-05-01 18:53:23 +00:00
Sebastien Helleu dca4064502 Added nicklist scroll keys (Alt+{home/end/pgup/pgdn} or F11/F12) 2005-04-30 19:21:28 +00:00
Sebastien Helleu 8a3d30b03a Changes for Mac OS X platform (now ok) 2005-04-30 10:29:54 +00:00
Sebastien Helleu 40d02fdffd Added IRC command "671" 2005-04-28 18:34:12 +00:00
Sebastien Helleu 7cc2635652 wxWidgets CFLAGS & libs are used for wxWidgets GUI only 2005-04-24 18:33:26 +00:00
Sebastien Helleu df2f164ffc wxWidgets missing error is now displayed only if this frontend is selected with --enable-wxwidgets switch 2005-04-24 12:01:23 +00:00
Benoit Papillault eb0b722ee5 Added WxWidgets frontend (no source files) 2005-04-24 11:08:22 +00:00
Sebastien Helleu 04d6257224 Backup and restore Makefile.am before and after gettextize 2005-04-24 08:48:54 +00:00
Sebastien Helleu 73c69d2d71 Added transfer rate for DCC files 2005-04-23 18:13:25 +00:00
Sebastien Helleu 2f9f37bed6 Updated autogen.sh script 2005-04-23 15:03:27 +00:00
Sebastien Helleu d90587c443 Fixed call to "has_color" in gui_window_set_color function 2005-04-22 16:47:02 +00:00
Sebastien Helleu 992632857f Added "485" IRC command 2005-04-20 21:27:44 +00:00
Sebastien Helleu 5ebab583f6 Added "-all" option for /nick command, added "341" IRC command (for invitation) 2005-04-19 21:02:59 +00:00
Sebastien Helleu ca117dbb24 Added config.rpath in extra dist 2005-04-19 20:08:19 +00:00
Sebastien Helleu 40c348df7a Removed debian/files from extra dist (not used) 2005-04-17 21:58:03 +00:00
Sebastien Helleu 0b781f96f7 Improved gettext installation (now ok under BSD) 2005-04-17 19:01:18 +00:00
Sebastien Helleu 5090689a76 Buffers timestamp can now be changed (new option in config file) 2005-04-09 11:34:15 +00:00
Sebastien Helleu a92ca4961b Hotlist not changed when self away or nick change 2005-04-09 08:03:53 +00:00
Sebastien Helleu ae8a4633ef Allow nick completion in private buffer with /me command 2005-04-07 18:58:01 +00:00
Sebastien Helleu 38505d02dd Fixed display bug with "-MORE-" in private or server buffers 2005-04-05 18:21:01 +00:00
Sebastien Helleu 20dcc4f56e Fixed crash when purging old DCC 2005-04-03 17:12:12 +00:00
Sebastien Helleu 36b2e10497 Fixed crash with 64-bits arch (like AMD64) when converting UTF-8, added weechat version in log at startup 2005-03-24 16:42:24 +00:00
Sebastien Helleu cec88e0047 "FIFO pipe" chapter translated to spanish 2005-03-21 21:57:16 +00:00
Sebastien Helleu 3198879ff2 Added missing IRC command 307 2005-03-21 06:18:03 +00:00
Sebastien Helleu 88a6fc7f16 Updated file 2005-03-20 10:17:30 +00:00
Sebastien Helleu fbcd5b3673 Remove compilation in parent dir for gui dir 2005-03-20 10:09:42 +00:00
Sebastien Helleu 7fe5afe3cb Check return codes in autogen.sh, remove compilation in parent dir for gui dir 2005-03-20 10:04:51 +00:00
Sebastien Helleu 212ca071c6 Version 0.1.2-cvs 2005-03-20 09:52:24 +00:00
Sebastien Helleu f5074da156 Version 0.1.1 2005-03-20 07:22:53 +00:00
Sebastien Helleu a23af790df Option irc_away_check is now 0 by default (waiting for fix) 2005-03-20 07:19:16 +00:00
Sebastien Helleu 6d1d1a7b90 Fixed display bug when halfop flag is set/unset 2005-03-17 21:40:54 +00:00
Sebastien Helleu 0b78294f1a Added /halfop & /dehalfop commands, fixed halfop display bug in nicklist 2005-03-16 21:49:49 +00:00
Sebastien Helleu 2580406aa7 Fixed translation 2005-03-15 22:52:18 +00:00
Sebastien Helleu bbd4011020 Added nicks count for channel buffers 2005-03-15 21:15:36 +00:00
Sebastien Helleu 1524432007 More explicit message when channel or nick not found 2005-03-15 19:01:58 +00:00
Sebastien Helleu 09242c3ba6 Added /ban, /unban and /kickban commands, fixed /kick command 2005-03-13 23:36:45 +00:00
Sebastien Helleu bba97304a0 Do not highlight server buffer for notices from memoserv 2005-03-13 09:22:48 +00:00
Sebastien Helleu 32851b7758 Do not highlight server buffer for notices from nickserv and chanserv 2005-03-13 09:05:53 +00:00
Sebastien Helleu 4322501ebd Fixed /invite command (and now invite requests are displayed) 2005-03-12 20:08:08 +00:00
Sebastien Helleu 39d14185a1 FIFO command/text not authorized on special buffers like DCC 2005-03-12 18:52:29 +00:00
Sebastien Helleu c3f5e88286 Added FIFO pipe for remote control 2005-03-12 03:16:30 +00:00
Sebastien Helleu 89c311646f Updated doc 2005-03-11 20:05:43 +00:00
Sebastien Helleu bcd4623a6d Added WeeChat & IRC commands to doc 2005-03-10 17:30:34 +00:00
Sebastien Helleu 8270b50548 Added spanish doc 2005-03-10 17:28:52 +00:00
Sebastien Helleu 6e253245fe Fixed some commands help for doc 2005-03-10 17:20:14 +00:00
Sebastien Helleu 47d03e7dee Fixed list of commands output 2005-03-10 15:49:49 +00:00
Sebastien Helleu 9fbd33faaf Added --irc-commands and --weechat-commands command line options 2005-03-10 15:40:18 +00:00
Sebastien Helleu 5301c75021 Fixed type used for Mac OS (replaced uint32_t by u_int32_t) 2005-03-10 14:49:50 +00:00
Sebastien Helleu 7f165b4c7c Display "Disconnected" only on connected servers 2005-03-09 13:59:12 +00:00
Sebastien Helleu 9526e4a79d Fixed crash when cancelling DCC CHAT that was not started 2005-03-09 13:56:05 +00:00
Sebastien Helleu 2b79d0fe5c Properly display CTCP SOUND on channel 2005-03-07 19:21:28 +00:00
Sebastien Helleu de43c7984a Fixed bug in server messages parser 2005-03-06 22:28:11 +00:00
Sebastien Helleu f78eb88e5a Crash message modified 2005-03-06 20:56:24 +00:00
Sebastien Helleu 4b5b5354da Fixed display bug with empty strings 2005-03-05 22:42:31 +00:00
Sebastien Helleu ac446e9c1f Nick completion with nothing as base word is disabled 2005-03-05 19:19:37 +00:00
Sebastien Helleu 951ec2e7be Fixed crash when a line is ending by lot of spaces 2005-03-05 19:19:12 +00:00
Sebastien Helleu bce7a0e961 Server errors are now displayed on appropriate buffers (default is server buffer) 2005-03-05 17:23:45 +00:00
Sebastien Helleu 7433015842 Added crash dump when WeeChat receives SIGSEGV (Segmentation fault) 2005-03-05 17:03:15 +00:00
Sebastien Helleu 57daa68be5 Fixed some translations 2005-02-28 10:45:09 +00:00
Sebastien Helleu d310a8e960 Fixed display bug when many windows are opened 2005-02-27 23:12:34 +00:00
Sebastien Helleu 4281d09a95 Fixed some translations 2005-02-27 22:49:38 +00:00
Sebastien Helleu 7dedba18bf Fixed typo 2005-02-27 13:43:44 +00:00
Sebastien Helleu 90e4e34f8c Added spanish translation 2005-02-27 13:25:36 +00:00
Sebastien Helleu 12026ef17e Fixed bug with disconnection (was causing high cpu usage) 2005-02-27 10:27:03 +00:00
Sebastien Helleu 46234f0504 Fixed completion bug: now allows command completion in private buffers 2005-02-27 10:16:51 +00:00
Sebastien Helleu 4d4d697b17 Added date/time for DCC CHAT on DCC buffer 2005-02-27 10:08:45 +00:00
Sebastien Helleu 3686d92cb5 Added DCC CHAT (send & recv) 2005-02-27 02:40:11 +00:00
Sebastien Helleu 64c33a8295 Improved display: align messages after prefixes (for example: "-@-" or "-=-") 2005-02-26 11:52:40 +00:00
Sebastien Helleu 7596736ae9 Added new display engine: doesn't cut words at end of lines 2005-02-26 11:10:20 +00:00
Sebastien Helleu 8f55d297e6 Don't check for away on channels when connection to server is down 2005-02-24 21:27:03 +00:00
Sebastien Helleu 5238dba084 Remove brackets after nick in status bar for private buffers 2005-02-22 22:31:57 +00:00
Sebastien Helleu 81e700ea43 Added key for previous window (now: F5/F6 = switch buffer, F7/F8 = switch window) 2005-02-22 21:58:40 +00:00
Sebastien Helleu a13f301d49 Added key for previous window (now: F5/F6 = switch buffer, F7/F8 = switch window) 2005-02-22 21:48:26 +00:00
Sebastien Helleu 575565371b Nicklist now refreshed when using multiple windows 2005-02-22 19:35:52 +00:00
Sebastien Helleu 24d0c49ae4 Fixed crash when quitting WeeChat 2005-02-22 19:32:37 +00:00
Sebastien Helleu 559b651669 Fixed /connect and /disconnect commands, improved output of some commands 2005-02-21 20:29:55 +00:00
Sebastien Helleu 6199f9b629 /set command does not add "=" any more after completed option name 2005-02-20 15:01:41 +00:00
Sebastien Helleu 6e60c95056 Fixed minor display bug 2005-02-20 13:41:07 +00:00
Sebastien Helleu 73f6606771 Connection to IRC server is now made by child process (non blocking) 2005-02-20 13:37:47 +00:00
Sebastien Helleu e3088336ab Fixed translation 2005-02-20 00:18:12 +00:00
Sebastien Helleu 3e81666752 Added DCC send 2005-02-20 00:08:22 +00:00
Sebastien Helleu 6d0be7db4b Added test of HAVE_ICONV, so compile is ok if iconv is not found 2005-02-19 00:32:11 +00:00
Sebastien Helleu 5cdcfdebb7 Improved /help command output 2005-02-17 22:48:44 +00:00
Sebastien Helleu ca50f2c8fc Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC (was causing troubles with cross-compile) 2005-02-17 20:33:37 +00:00
Sebastien Helleu 84f84823c9 Added support for UnrealIrcd ("~" for chan owner, "&" for chan admin) 2005-02-15 20:03:35 +00:00
Sebastien Helleu 0d21ca207d Fixed /buffer close command (now ok when disconnected from server) 2005-02-15 18:41:47 +00:00
Sebastien Helleu 235d96d728 Fixed /help command (display bug) 2005-02-14 22:42:23 +00:00
Sebastien Helleu 58417dddc6 Fixed infobar display bug when multpile windows are opened 2005-02-13 20:25:52 +00:00
Sebastien Helleu b3d66118b4 Fixed display bugs when many windows are opened 2005-02-13 19:59:11 +00:00
Sebastien Helleu 0473d2c8db Plugins messages are logged with new config option (log_plugin_msg); on server buffer, only server messages are logged 2005-02-12 21:21:54 +00:00
Sebastien Helleu 34ce958df9 Version 0.1.1-cvs 2005-02-12 13:32:42 +00:00
Sebastien Helleu dfc1c0370d Version 0.1.0 2005-02-12 12:59:32 +00:00
Sebastien Helleu 89d9fb641e Default decoded charset is UTF-8 2005-02-12 11:12:46 +00:00
Sebastien Helleu a55da76244 Fixed display bug for nicklist window when using multiple windows 2005-02-10 18:42:14 +00:00
Sebastien Helleu e90e206b35 Updated french translations 2005-02-06 16:04:59 +00:00
Sebastien Helleu 8ede80b2b6 Nick window separator is now a single line (instead of colored space) 2005-02-06 15:56:32 +00:00
Sebastien Helleu 1af0359046 Fixed charset conversions when locale is UTF-8 (added "look_charset_internal" option) 2005-02-06 13:15:47 +00:00
Sebastien Helleu 9c67fdf3ea Fixed display bug when resizing term with many windows 2005-02-06 10:34:51 +00:00
Sebastien Helleu 0c695733b3 Improved /window command: now split and merge are ok, fixed crash when resizing terminal to small size 2005-02-06 03:13:33 +00:00
Sebastien Helleu df4ed3eeba Updated documentation and french translations 2005-02-05 18:07:12 +00:00
Sebastien Helleu 85bd530a88 Away check is now customizable (with new irc_away_check option) 2005-02-05 17:39:48 +00:00
Sebastien Helleu 8921e45815 Fixed many memory leaks 2005-01-31 23:33:59 +00:00
Sebastien Helleu 74b83e5294 Fixed small color bug in nicks 2005-01-27 22:28:30 +00:00
Sebastien Helleu 4fa9edeb56 Fixed bug when sending automatically who command during server split 2005-01-27 13:37:55 +00:00
Sebastien Helleu 4d3e76eb3e Fixed bug in message parser when connected to many servers 2005-01-27 00:11:06 +00:00
Sebastien Helleu c48ee3cd73 Fixed bug in message parser when connected to many servers 2005-01-26 23:54:29 +00:00
Sebastien Helleu 9a7b7af41c Away nicks are now displayed with another color 2005-01-26 22:21:58 +00:00
Sebastien Helleu 7debba0eca Added away indicator 2005-01-25 20:54:22 +00:00
Sebastien Helleu a0255a0a3a Updated doc with new config options 2005-01-23 18:29:20 +00:00
Sebastien Helleu 159fa3d806 Improved completion for /set command (now adds '=' at the end) 2005-01-23 18:24:08 +00:00
Sebastien Helleu 07686bf69b Min value for "irc_lag_min_show" is now 0 2005-01-23 17:59:18 +00:00
Sebastien Helleu f877e8be51 Fixed display bug for lag (missing space) 2005-01-23 17:31:53 +00:00
Sebastien Helleu 757d00ab48 Fixed crash when closing some private buffers 2005-01-23 16:32:40 +00:00
Sebastien Helleu ecb6ed6707 Wait "irc_lag_check" seconds for 1st lag check after connection to server 2005-01-23 10:05:38 +00:00
Sebastien Helleu 9d0b6fad72 Added lag indicator 2005-01-23 02:14:37 +00:00
Sebastien Helleu 63d6ee1007 Added nick completion in private buffers 2005-01-19 17:05:34 +00:00
Sebastien Helleu 6a1230de54 Added charset conversion in infobar 2005-01-19 17:04:55 +00:00
Sebastien Helleu 684f43298e Updated french translation 2005-01-19 06:25:07 +00:00
Sebastien Helleu 26af7b49fd Fixed possible crash with "/server del" and "/buffer close" commands 2005-01-19 06:21:27 +00:00
Sebastien Helleu 1ee8e1edb2 Allow nick completion for /quote command 2005-01-17 22:03:33 +00:00
Sebastien Helleu a5bbd513b7 Allow nick completion for /me command 2005-01-16 19:29:40 +00:00
Sebastien Helleu 88930e50dd Improved completion (now completes commands args), fixed color bug (gray removed, replaced by default), fixed crash when unknown section with option(s) in config file, fixed IRC commands: /op, /deop, /voice, /devoice 2005-01-16 11:52:22 +00:00
Sebastien Helleu 555999534e Fixed /quit command with arg and %v 2005-01-09 12:03:07 +00:00
Sebastien Helleu 64601fc662 Fixed /me command (now ok without parameter) 2005-01-08 17:37:23 +00:00
Sebastien Helleu d8360af103 Fixed display bug for title in first server buffer 2005-01-08 11:53:10 +00:00
Sebastien Helleu 55c042d604 Logs are now disabled by default (server/channel/private) 2005-01-08 11:40:23 +00:00
Sebastien Helleu 6d3c24361d Improved /set command: new colors, server options can be changed while WeeChat is running 2005-01-05 23:07:08 +00:00
Sebastien Helleu 2f5c9a8fd4 Fixed /away command, new [irc] config section, option "look_display_away" moved to "irc_display_away", added default away/part/quit messages in config file 2005-01-04 22:48:40 +00:00
Sebastien Helleu 96fc2c9aec Server & error messages now prefixed, /server command modified, ~/.weechat/logs dir can be read/write by user only 2005-01-03 23:40:22 +00:00
Sebastien Helleu aca19813ad Added chmod on ~/.weeechat/weechat.rc file (only onwer can read/write) 2005-01-02 16:22:20 +00:00
Sebastien Helleu 7dbaec1abf Replaced "curses" by "ncurses" 2005-01-02 13:07:19 +00:00
Sebastien Helleu 3b05b6bafe Reset away time when disconnected from server 2005-01-02 12:26:20 +00:00
Sebastien Helleu 82265b629b Fixed /away command (now ok when not away) 2005-01-02 11:44:33 +00:00
Sebastien Helleu a3e3113e4e Fixed /set command (now empty strings are allowed) 2005-01-02 02:45:06 +00:00
Sebastien Helleu b2c5317e17 Added new options look_charset_decode/look_charset_encode and /unset command. 2005-01-02 02:10:10 +00:00
Sebastien Helleu 9adb547b36 Version 0.1.0-cvs 2005-01-01 13:27:54 +00:00
Sebastien Helleu 14e833c257 Version 0.0.9 2005-01-01 12:31:19 +00:00
Sebastien Helleu de5af8a3b1 Added /buffer close, new keys: Alt-S (switch to server buffer), Alt-X (switch to first channel of next server) 2004-12-31 15:59:58 +00:00
Sebastien Helleu 37a2f80fae Fixed bug when parsing messages, now looking for for \r\n and \n to cut messages 2004-12-28 08:21:53 +00:00
Sebastien Helleu 0f95a48854 Fixed bug in notice display when no '!' is found in host 2004-12-28 07:52:56 +00:00
Sebastien Helleu 39b5f07d6f Inline help is now translated with gettext 2004-12-27 17:15:59 +00:00
Sebastien Helleu f4f2ec3668 auto-reconnection to server (new options: server_autoreconnect (on/off), server_autoreconnect_delay (in seconds)), disconnections are now managed without problem by WeeChat 2004-12-27 16:22:39 +00:00
Sebastien Helleu 486e55be02 Updated french translation 2004-12-27 12:53:58 +00:00
Sebastien Helleu c35f841b58 Major bug fixed when socket is closed by server (100% CPU usage fixed) 2004-12-27 12:50:51 +00:00
Sebastien Helleu 209fe89d27 Fixed bug when resizing window (input not displayed after resize) 2004-12-24 12:46:00 +00:00
Sebastien Helleu fca4840c4a Colors suppression in incoming messages is now ok (option look_remove_colors_from_msgs) 2004-12-23 11:31:34 +00:00
Sebastien Helleu 97ef63e2e6 Updated ChangeLog 2004-12-22 13:39:39 +00:00
Sebastien Helleu 17b409afe8 Fixed notice command (to server and display when received), fixed display of nick mode changes 2004-12-22 13:34:24 +00:00
Sebastien Helleu bf4bcd3b8c Updated doc for version 0.0.9-pre1 2004-12-22 10:57:45 +00:00
Sebastien Helleu 5233063825 Added keys: Ctrl+A (=home), Ctrl+E (=end), Ctrl+W (=ctrl+backspace) 2004-12-22 09:31:08 +00:00
Sebastien Helleu 9eeece2ccb Fixed typo 2004-12-22 01:16:27 +00:00
Sebastien Helleu 9e8f42c141 French translation for new config option "server_command_delay" 2004-12-21 19:55:21 +00:00
Sebastien Helleu 996343fc1d Added server_command_delay config option (delay in seconds after startup command) 2004-12-21 19:35:09 +00:00
Sebastien Helleu ecafff21ce Changes in main event loop: treats keyboard input & servers messages at same time 2004-12-21 19:11:38 +00:00
Sebastien Helleu cf9d394e3a Modified CFLAGS management (can now be customized) 2004-11-05 21:05:32 +00:00
Sebastien Helleu 0955167b6b Version 0.0.9-pre1 2004-10-30 12:14:14 +00:00
Sebastien Helleu 2b96cacd51 Version 0.0.8 2004-10-30 09:57:16 +00:00
Sebastien Helleu 45f7cdda18 Added debian dir 2004-10-30 09:53:47 +00:00
Sebastien Helleu dcf0119264 Removed file 2004-10-30 09:49:22 +00:00
Sebastien Helleu c98365803d Renamed man page weechat.1 to weechat-curses.1 2004-10-30 09:47:51 +00:00
Sebastien Helleu ebcf17c78d Fixed bug with /kick command (now ok with many words as reason) 2004-10-29 08:02:07 +00:00
Sebastien Helleu 022bf4d070 Fixed bug with /kick command (now ok with many words as reason) 2004-10-24 19:27:02 +00:00
Sebastien Helleu d37ec4791c Changed xahlexx mail 2004-10-22 19:45:41 +00:00
Sebastien Helleu e5038b4119 nickserv passwords hidden (new config option: log_hide_nickserv_pwd on/off) 2004-10-17 11:33:21 +00:00
Sebastien Helleu 482d327562 nickserv passwords hidden (new config option: log_hide_nickserv_pwd on/off) 2004-10-17 11:28:03 +00:00
Sebastien Helleu cb5269404c Fixed display bug with channel name and privates when kicked 2004-10-17 09:24:27 +00:00
Sebastien Helleu 76c4d4d427 Auto-rejoin channels when kicked (new config option: server_autorejoin on/off) 2004-10-17 09:13:54 +00:00
Sebastien Helleu 34c6051ffc Updated doc for version 0.0.8-pre2 2004-10-03 19:51:22 +00:00
Sebastien Helleu e69afa1401 Fixed call to plugin_exec_command when server is NULL 2004-10-03 16:40:16 +00:00
Sebastien Helleu 2a227141c4 Fixed bug in wee_perl_exec() when server == NULL 2004-10-03 16:37:56 +00:00
Sebastien Helleu 7ef14b95b6 Added IRC::command function for Perl scripts 2004-10-03 16:29:05 +00:00
Sebastien Helleu 4e5f1698ba Fixed bug when adding alias with same name as other 2004-10-03 12:43:32 +00:00
Sebastien Helleu 0a6945b6ed Command "/buffer notify" 2004-10-03 01:56:30 +00:00
Sebastien Helleu 046452b7e0 Perl plugin interface available 2004-10-01 12:40:39 +00:00
Sebastien Helleu d79dc3233a Fixed display bug: now redraws all DCC view when one or more DCC status are modified 2004-09-28 21:33:54 +00:00
Sebastien Helleu ce7f24ecc1 Log server/channel/private to file 2004-09-19 20:26:15 +00:00
Sebastien Helleu 0f718bf2c0 Commands "/buffer (list)" and "/buffer move" now ok 2004-09-19 09:46:11 +00:00
Sebastien Helleu a9e05f57ee Commands "/buffer (list)" and "/buffer move" now ok 2004-09-19 09:21:50 +00:00
Sebastien Helleu 24508e733c Fixed path for included .h files 2004-09-19 06:59:18 +00:00
Sebastien Helleu 9f5c71ca98 Fixed typo in french translation 2004-09-18 16:03:20 +00:00
Sebastien Helleu 491dff4238 Redraw status bar when closing DCC view 2004-09-18 16:02:50 +00:00
Sebastien Helleu 7b84ab4b71 Added some options for ./configure script 2004-09-16 22:08:03 +00:00
Sebastien Helleu c656661812 Added DCC control keys (Accept, Cancel, Remove, Close DCC view) 2004-09-16 20:01:56 +00:00
Sebastien Helleu 6753591f86 New /perl autoload command 2004-09-13 19:48:22 +00:00
Sebastien Helleu 4e8ed66a1e Updated french translations 2004-09-12 17:33:16 +00:00
Sebastien Helleu 0e47caf091 Away now announced in channels, and config option "look_display_away" added to enable/disable this feature 2004-09-12 17:22:45 +00:00
Sebastien Helleu 6100af949b Updated french translations 2004-09-12 11:47:36 +00:00
Sebastien Helleu 4b3d25175f Display DCC progress in realtime, added selected DCC color config option, move into DCC list is ok (scroll) 2004-09-11 14:54:11 +00:00
Sebastien Helleu b3fd00fc23 Removed debug message 2004-09-09 22:24:08 +00:00
Sebastien Helleu 1484e17ce1 DCC not auto accepted (depending on config), "~" replaced by home in dcc download dir, suffix displayed in filename received (if file is renamed), highlight for DCC buffer 2004-09-09 21:41:54 +00:00
Sebastien Helleu 9759d72d3d Incoming DCC file 2004-09-08 21:48:45 +00:00
Sebastien Helleu 92eb995917 Receive DCC packets (for DCC file) 2004-09-08 16:56:56 +00:00
Sebastien Helleu 1425ee40f4 Fixed crash when resizing terminal to very small size, "-MORE-" message is now erased when switching to another buffer 2004-09-08 16:41:15 +00:00
Sebastien Helleu c8eae742b9 Version 0.0.8-pre2: DCC window with Alt-D, /query command now reopens private buffer if already opened 2004-08-31 22:53:33 +00:00
Sebastien Helleu 441dd2313f Updated doc for v0.0.7 (date) 2004-08-27 20:55:36 +00:00
Sebastien Helleu aea603b6ed Added DCC buffer type 2004-08-26 22:20:04 +00:00
Sebastien Helleu 9c6f2fcb8c Added Ctrl-L key to redraw terminal 2004-08-25 20:51:25 +00:00
Sebastien Helleu 74ee53c102 Added Ctrl-L key to redraw terminal 2004-08-25 20:51:25 +00:00
Sebastien Helleu 649fd216ed After hotlist clear, initial buffer for loop is current buffer 2004-08-10 18:07:43 +00:00
Sebastien Helleu 9278198964 Added key for clearing hotlist (Alt-R) 2004-08-10 18:02:38 +00:00
Sebastien Helleu 2ff30b15f2 Version 0.0.8-pre1 2004-08-08 21:25:52 +00:00
Sebastien Helleu c94e1204aa Version 0.0.7 2004-08-08 19:49:15 +00:00
Sebastien Helleu 2d438492d7 Fixed typo in french translation 2004-07-13 19:32:08 +00:00
Sebastien Helleu 8959ba9759 Fixed bug with hotlist when closing buffer 2004-07-13 18:15:04 +00:00
Sebastien Helleu b9e5c94032 Free all buffers when exiting from WeeChat 2004-07-10 15:39:39 +00:00
Sebastien Helleu 4c660ad565 Free all buffers when exiting from WeeChat 2004-07-10 12:29:20 +00:00
Sebastien Helleu ab393805fb Alt-0 now switches to buffer #10 2004-07-10 07:39:06 +00:00
Sebastien Helleu dea586e5f1 Fixed crash when opening second server window 2004-07-09 22:26:30 +00:00
Sebastien Helleu e1afa31563 Fixed bug when closing window (new numbers for next buffers if any) 2004-07-06 19:54:31 +00:00
Sebastien Helleu 750a5cbc6d Added "col_status_delimiters" config option 2004-07-05 22:31:26 +00:00
Sebastien Helleu 77fab4ae29 Fixed nick color when nick is changed (now uses always same color) 2004-07-05 17:43:42 +00:00
Sebastien Helleu 622a18fb3f Removed "?" when system date not found 2004-07-04 21:03:39 +00:00
Sebastien Helleu 97b34b36fc DCC skeleton 2004-07-04 16:04:00 +00:00
Sebastien Helleu fb21a1c7f9 Hotlist management (buffers with activity) 2004-07-04 15:58:40 +00:00
Sebastien Helleu f02ba717a0 Added /buffer command, jump to buffer by number (alt-digit), actions now ok in private buffers 2004-07-04 15:39:49 +00:00
Sebastien Helleu 9e6938bdf7 Added auto-switch to active channels (alt-a) 2004-07-03 14:07:09 +00:00
Sebastien Helleu b9a40bbe21 Buffers ordered by number, unique color for each nick, action messages now like messages (not crappy msgs), --enable-debug replaced by --with-debug for ./configure script 2004-07-02 23:19:36 +00:00
Sebastien Helleu 062e5ea1ae Window management 2004-07-01 20:43:57 +00:00
Sebastien Helleu 66ff97166f Version 0.0.7-pre2 - window management 2004-06-22 22:21:22 +00:00
Sebastien Helleu 095f296529 Fixed display bug when nicklist is displayed at bottom of screen 2004-06-17 18:48:01 +00:00
Sebastien Helleu 340176d635 Added history limit (text buffer & commands) 2004-06-13 00:40:30 +00:00
Sebastien Helleu fed6c36d19 Added Gentoo install command 2004-06-12 14:01:28 +00:00
Sebastien Helleu 3f84a8456a Version 0.0.7-pre1 2004-06-05 16:56:59 +00:00
Sebastien Helleu fc95f86528 v0.0.6 doc 2004-06-05 10:59:14 +00:00
Sebastien Helleu d7287a71e5 Version 0.0.6 2004-06-05 09:20:35 +00:00
Sebastien Helleu b861403369 Updated FAQ, added french FAQ 2004-05-31 21:13:55 +00:00
Sebastien Helleu d8a790e8eb New license for doc (FDL => GPL) 2004-05-31 16:26:45 +00:00
Sebastien Helleu 9211a67fb4 Improved channel highlight (priority to message vs join/part) 2004-05-31 15:16:34 +00:00
Sebastien Helleu d0babb2896 Fixed bug in /away command 2004-05-31 15:14:06 +00:00
Sebastien Helleu ad345c0bce Added WeeChat forum URL. 2004-05-13 15:58:04 +00:00
Sebastien Helleu 3b7b459522 Updated TODO 2004-04-25 10:46:33 +00:00
Sebastien Helleu a99e6f3d95 Fixed bug when a user changes nick (do not change private window name if nick is not the same) 2004-04-19 21:53:12 +00:00
Sebastien Helleu 35d6c43f85 Fixed bug when opened private win and remote user changes his nick 2004-03-27 15:09:36 +00:00
Sebastien Helleu db235b23fa /query command added, IRC messages 476, 477 now displayed 2004-03-20 11:19:00 +00:00
Sebastien Helleu a4ed5069c1 Fixed IRC channel for support 2004-03-07 19:04:18 +00:00
Sebastien Helleu 0bd38072f2 Display channel modes when joining channel that already exists (i.e. with modes already set) 2004-02-29 21:16:22 +00:00
Sebastien Helleu 81da0f41d7 Added modes channel (and /mode command is now ok), dcc skeleton, fixed display bug for nicklist 2004-02-29 16:31:26 +00:00
Sebastien Helleu 070e1b6ec7 Fixed display bug (text was blinking when scrolling) 2004-02-24 23:29:58 +00:00
Sebastien Helleu 4e86ff9682 CTCP Version reply is now in english only and doesn't show host (security reason) 2004-02-21 13:26:28 +00:00
Sebastien Helleu 867b881bac Version 0.0.6-pre1 2004-02-07 21:25:53 +00:00
Sebastien Helleu 2c31a11aeb Version 0.0.5 2004-02-07 19:35:26 +00:00
Sebastien Helleu 1d2a83b055 Version 0.0.5 2004-02-07 19:22:53 +00:00
Sebastien Helleu 915ea408f0 Updated doc 2004-01-25 14:13:42 +00:00
Sebastien Helleu c9a469f51b Channel can be specified at the end of command line URL with /channel 2004-01-24 21:53:22 +00:00
Sebastien Helleu 69cb87251e /set command is now ok 2004-01-24 20:17:01 +00:00
Sebastien Helleu 8bcbc3dcae Secured code to prevent buffer overflows and memory leaks 2004-01-24 12:59:57 +00:00
Sebastien Helleu dcb3b6fc7e Secured code to prevent buffer overflows and memory leaks 2004-01-24 02:22:16 +00:00
Sebastien Helleu 16717f8322 Fixed memory leak in exec_weechat_command() 2004-01-23 19:44:59 +00:00
Sebastien Helleu dc38b59849 Infobar highlight notifications 2004-01-21 18:40:13 +00:00
Sebastien Helleu 7d91cdcbb3 Updated bugs 2004-01-21 15:57:20 +00:00
Sebastien Helleu 885fe7434f Fixed QUIT command: now sent to all connected servers (not only current) 2004-01-21 15:55:25 +00:00
Sebastien Helleu 84677f2835 Added IRC::print_infobar Perl function 2004-01-21 15:29:43 +00:00
Sebastien Helleu c20a3fdfa4 Added look_infobar_timestamp config option 2004-01-19 23:16:07 +00:00
Sebastien Helleu f97a5555ca Removed unused variables 2004-01-19 00:00:43 +00:00
Sebastien Helleu 59bd0b825d Fixed minor typo 2004-01-19 00:00:13 +00:00
Sebastien Helleu 38bf163c17 Servers allowed on command line (irc://nick:passwd@irc.example.org:port) 2004-01-18 23:53:34 +00:00
Sebastien Helleu 09a36a5d8e Changed default color for info bar 2004-01-18 19:03:28 +00:00
Sebastien Helleu 10f0236ea9 Added info bar 2004-01-18 18:59:34 +00:00
Sebastien Helleu 6d7afb96c1 Fixed crash with /oper command 2004-01-18 18:58:38 +00:00
Sebastien Helleu 48941e3646 Updated ChangeLog 2004-01-17 10:47:37 +00:00
Sebastien Helleu 72cb070ee4 Fixed bug when un*x realname (in /etc/passwd) is not set 2004-01-17 10:33:11 +00:00
Sebastien Helleu 390a097718 Added check of sys/types.h pwd.h and errno.h 2004-01-17 10:23:01 +00:00
Sebastien Helleu f4733b970a Updated french translations 2004-01-17 10:17:21 +00:00
Sebastien Helleu b80086cfac Nick for default config file is now based on un*x user 2004-01-17 10:15:27 +00:00
Sebastien Helleu 984eaaf826 Updated Changelog 2004-01-15 23:09:18 +00:00
Sebastien Helleu 0dddf86ab7 Fixed crash when config file can not be created 2004-01-15 21:51:55 +00:00
Sebastien Helleu c057937c7b Create plugin directories only if plugin is built when WeeChat is compiled 2004-01-15 21:33:18 +00:00
Sebastien Helleu 938cc50f5e Added LOCALEDIR define 2004-01-15 21:00:27 +00:00
Sebastien Helleu aac1a0a08c Added default values for --config option 2004-01-11 22:54:20 +00:00
Sebastien Helleu b77e441dc4 Added config file options 2004-01-11 22:53:13 +00:00
Sebastien Helleu f9279df092 Added -c (--config) command line parameter to see config file options 2004-01-11 17:45:37 +00:00
Sebastien Helleu d84b1fa58f Added -c (--config) command line parameter to see config file options 2004-01-11 17:29:56 +00:00
Sebastien Helleu 12941227d7 Updated doc for v0.0.4 2004-01-03 10:37:33 +00:00
Sebastien Helleu 25f79c7bba Highlight action messages 2004-01-01 23:14:20 +00:00
Sebastien Helleu ac3f6dfa7b Version 0.0.5-pre1 2004-01-01 23:13:42 +00:00
Sebastien Helleu 65704c6fea Added --enable-perl for ./configure and Perl dependency for Debian package (for building v0.0.4 RPM & Debian packages) 2004-01-01 11:48:46 +00:00
Sebastien Helleu 85c32048cf Modified revision date 2004-01-01 11:22:27 +00:00
Sebastien Helleu ffbc4c0b0c Version 0.0.4 2004-01-01 11:10:22 +00:00
Sebastien Helleu 4e138f3dca Removed Qt sources (not used today) 2004-01-01 10:57:13 +00:00
Sebastien Helleu df66856a28 New copyright 2003-12-31 17:02:57 +00:00
Sebastien Helleu 6950745079 New copyright 2003-12-31 16:56:11 +00:00
Sebastien Helleu 3b6bf81ad6 Updated FAQ. 2003-12-31 16:45:50 +00:00
Sebastien Helleu fd3e94070a When private window is created (another user is talking), WeeChat does not switch to this window 2003-12-31 16:00:20 +00:00
uid67137 0708f1a571 Added highlight (when our nick is written in a channel/private window), added "col_chat_highlight" configuration option 2003-12-26 19:36:52 +00:00
uid67137 3ea696bbc0 Perl scripts auto-load, if no path given, look in ~/.weechat/perl when loading Perl script, auto create plugin directories at startup (~/.weechat/perl, /perl/autoload, /python, /python/autoload, /ruby, /ruby/autoload) 2003-12-26 12:59:31 +00:00
uid67137 57e00428ca Added problem with WeeChat and KDE Konsole 2003-12-24 09:28:49 +00:00
uid67137 555a4191d4 Updated Portuguese doc. 2003-12-23 21:20:02 +00:00
Sebastien Helleu a1f09df80f - added IRC::get_info function for Perl scripts
- cleanup code in main() function of weechat.c
- fixed bug when unloading all Perl scripts (now end and restart Perl interpreter)
2003-11-30 19:18:06 +00:00
Sebastien Helleu c8c5ff3d68 Added "Perl scripts unloaded" message when unloading all Perl scripts 2003-11-30 15:09:04 +00:00
Sebastien Helleu e2e384df49 Added "print_with_channel" function (for Perl scripts) 2003-11-29 16:18:02 +00:00
Sebastien Helleu 507a5c17c0 Added plugin prefix ("=P=") in front of scripts messages 2003-11-29 10:37:37 +00:00
Sebastien Helleu 4f23a3c621 SIGINT signal (Ctrl-C) intercepted, handler does nothing 2003-11-28 23:15:17 +00:00
Sebastien Helleu ba618d3276 Updated TODO 2003-11-23 17:41:13 +00:00
Sebastien Helleu 2f1af3b53e Updated french translation 2003-11-23 17:40:58 +00:00
Sebastien Helleu 10a170bf7d - Perl unloading is now ok (unload all scripts),
- /perl prints all Perl scripts,
- error if registering 2 Perl scripts with same (internal) name.
2003-11-23 17:40:19 +00:00
Sebastien Helleu 7a3ee901a4 Updated doc 2003-11-23 17:29:18 +00:00
Sebastien Helleu e469f0ef48 WeeChat documentation 2003-11-23 13:15:27 +00:00
Sebastien Helleu ba65f5ec30 Renamed PLUGIN_* macros and fixed bug in "IRC::add_message_handler" function 2003-11-22 16:55:56 +00:00
Sebastien Helleu 7779b2f78e Added Perl command handlers 2003-11-22 14:14:30 +00:00
Sebastien Helleu edcc01bcf0 Added Perl message handlers 2003-11-17 21:07:17 +00:00
Sebastien Helleu fe4ca01615 Added Perl handlers 2003-11-16 23:46:48 +00:00
Sebastien Helleu 62fabde373 Removed perl.c 2003-11-16 19:52:43 +00:00
Sebastien Helleu 8758555b19 Updated (Perl interface ok) 2003-11-16 19:47:14 +00:00
Sebastien Helleu d4ec2e46aa Perl plugin support 2003-11-16 19:40:36 +00:00
Sebastien Helleu fd9512bbbc Perl plugin skeleton 2003-11-09 00:08:01 +00:00
Sebastien Helleu 176198fdc6 DEBUG macro moved to config.h 2003-11-09 00:03:57 +00:00
Sebastien Helleu 97d5c9bd0e Fixed display bug in --help and --license options 2003-11-03 22:59:36 +00:00
Sebastien Helleu 13949e2ace Version 0.0.4-pre1 2003-11-03 22:59:16 +00:00
Sebastien Helleu 1e1f2ca5b8 Version 0.0.3 2003-11-03 22:03:47 +00:00
Sebastien Helleu 8676230eef Updated file. 2003-11-02 23:04:20 +00:00
Sebastien Helleu bde34ecd57 Fixed bug on some IRC servers (when nick too long and nicklist problem) 2003-11-02 23:00:34 +00:00
Sebastien Helleu f245ec3759 Fixed display bug when resizing term window 2003-11-02 19:56:46 +00:00
Sebastien Helleu 5839cc6bfd Now builds many Debian packages (common and one for each GUI) 2003-11-02 19:05:54 +00:00
Sebastien Helleu 476054fb4f Removed file 2003-11-02 19:04:31 +00:00
Sebastien Helleu be8b44a2d7 Updated file 2003-11-02 00:16:41 +00:00
Sebastien Helleu 8d33ef0168 Fixed crash with /set command 2003-11-01 23:21:25 +00:00
Sebastien Helleu 2b16f8c0d5 Added #ifdef ENABLE_NLS (do not translate if ./configure --disable-nls) 2003-11-01 23:19:01 +00:00
Sebastien Helleu 273f4860fe Fixed bug for locale directory 2003-11-01 22:49:35 +00:00
Sebastien Helleu 6af18b3dbc Removes Qt sources (GUI not developed) 2003-11-01 22:19:41 +00:00
Sebastien Helleu c488066e33 Added MSGID_BUGS_ADDRESS 2003-11-01 22:13:21 +00:00
Sebastien Helleu 9746520a24 Added missing files 2003-11-01 22:07:58 +00:00
Sebastien Helleu fb7a6efb5a New file for po translations and autoconf 2003-11-01 20:50:13 +00:00
Sebastien Helleu dc8368815e Added po translations to autoconf/automake process 2003-11-01 20:42:16 +00:00
Sebastien Helleu a81f58f3f1 Fixed sort bug (op, halfop, voice, normal) 2003-10-27 21:02:18 +00:00
Sebastien Helleu 338e460be9 Updated file 2003-10-26 23:36:10 +00:00
Sebastien Helleu 324077c333 Added WeeChat man page 2003-10-26 22:49:49 +00:00
Sebastien Helleu 1ba27c760b Only Curses interface is built by default 2003-10-26 22:49:01 +00:00
Sebastien Helleu c60a693f42 Renamed to weeconfig.c and weeconfig.h 2003-10-26 13:33:27 +00:00
Sebastien Helleu 65c9a79603 Added #include "config.h" with #ifdef HAVE_CONFIG_H 2003-10-26 13:21:07 +00:00
Sebastien Helleu cafd93dcdd Code cleanup 2003-10-26 11:52:22 +00:00
Sebastien Helleu 6d6eafa82a Fixed AM_CONFIG_HEADER problem 2003-10-25 23:13:40 +00:00
Sebastien Helleu d2d14ffb8f Added autogen.sh to build autoconf/automake files 2003-10-25 14:50:23 +00:00
Sebastien Helleu f966b6a829 Added ./configure script to build WeeChat 2003-10-25 14:49:18 +00:00
Sebastien Helleu b837017ba6 Removed old Makefile 2003-10-25 14:40:39 +00:00
Sebastien Helleu ee3bb0d14f File moved to src/common directory 2003-10-25 14:38:17 +00:00
Sebastien Helleu 13716a5228 New gtk features 2003-10-13 21:51:34 +00:00
Sebastien Helleu ecd92ae24d Added Gtk window creation 2003-10-12 22:29:28 +00:00
Sebastien Helleu 836d7a139a Added CTCP Ping command (and display correctly when reply is received). 2003-10-12 17:03:38 +00:00
Sebastien Helleu c67cfeaa87 Common functions for all GUI. 2003-10-12 14:15:15 +00:00
Sebastien Helleu d92955a533 Version 0.0.3-pre2; added Gtk core functions. 2003-10-12 14:13:48 +00:00
Sebastien Helleu b12527cf90 Removed old Gtk sources. 2003-10-12 14:10:02 +00:00
Sebastien Helleu 509c5738ff Fixed sort bug (nicks are now correctly sorted: op, halfop, voice, other) 2003-10-12 09:20:22 +00:00
Sebastien Helleu 7a8edd3cea Removed old text interface. 2003-10-12 00:05:29 +00:00
Sebastien Helleu 737b422552 Removed old text interface. 2003-10-11 23:22:57 +00:00
Sebastien Helleu 67428a1aaf Fixed crash when entering text without any server connection 2003-10-11 17:38:38 +00:00
Sebastien Helleu 384b8780b0 Added french translation for WeeChat 2003-10-11 12:45:59 +00:00
Sebastien Helleu c6a53ea8ee Added commands: die, summon, users, wallops, userhost, ison ; fixed display bug (blinking text when scrolling) 2003-10-11 00:25:46 +00:00
Sebastien Helleu d3fc2646a7 Added commands: info, servlist, squery, who and whowas 2003-10-09 22:19:56 +00:00
Sebastien Helleu 2b305f378f Added commands: service, squit, motd, lusers, links, time, trace and admin 2003-10-08 22:24:23 +00:00
Sebastien Helleu 64acebf3b5 Updated TODO 2003-10-07 22:06:12 +00:00
Sebastien Helleu f0ddea9313 New function to modify config parameters ; code cleanup 2003-10-07 22:05:06 +00:00
Sebastien Helleu 954f1b98bf Added /stats command, splited irc-commands.c in 3 files (commands, send, recv) 2003-10-06 22:24:19 +00:00
Sebastien Helleu 641e5cd05a Fixed typo errors 2003-10-05 17:28:36 +00:00
Sebastien Helleu 6668e362c1 Version 0.0.3-pre1 2003-10-05 10:56:09 +00:00
Sebastien Helleu 627e0a24eb Version 0.0.2 2003-10-05 09:06:39 +00:00
Sebastien Helleu ab6ca9a0b4 Updated files 2003-10-04 23:23:24 +00:00
Sebastien Helleu 7e069ec3e2 Messages normalized for gettext usage. 2003-10-04 23:22:46 +00:00
Sebastien Helleu ddd798a65a Messages normalized for gettext usage. 2003-10-04 14:35:12 +00:00
Sebastien Helleu 4fde90e418 Fixed bug in /server command (only first arg was parsed) 2003-10-04 12:51:29 +00:00
Sebastien Helleu 65c146e9c6 Added /rehash and /restart commands 2003-10-04 12:15:58 +00:00
Sebastien Helleu d6454184e4 Updated WeeChat man page 2003-10-04 11:52:11 +00:00
Sebastien Helleu 53efa7d6af Fixed bug when allocating command and autojoin strings 2003-10-04 11:30:16 +00:00
Sebastien Helleu 073b1d0bd4 Added locale.h header, and version is now 0.0.2-pre3 2003-10-04 11:29:51 +00:00
Sebastien Helleu 2968e61d97 Added command & autojoin channels when connected to server 2003-10-04 10:47:11 +00:00
Sebastien Helleu ede76f7b44 Added "look_set_title" option in config file 2003-10-04 08:53:10 +00:00
Sebastien Helleu db5ee98418 Fixed month for release 0.0.1 (Jun => Sep) 2003-10-03 21:45:05 +00:00
Sebastien Helleu a148073391 Updated Makefile (dependencies) 2003-10-03 21:13:11 +00:00
Sebastien Helleu 2db87e36b8 Aliases for missing commands are comments in config file 2003-10-03 20:31:16 +00:00
Nicolas Cavigneaux e0fb9723a7 Added some standard aliases 2003-10-03 20:20:48 +00:00
Sebastien Helleu 3782ef828a Added control of alias when config file is loaded 2003-10-03 19:50:37 +00:00
Sebastien Helleu cec899898a Added parameters for alias and alias section in config file 2003-10-03 19:33:59 +00:00
Sebastien Helleu 106bdb1d4a Added /alias and /unalias commands 2003-10-02 22:42:51 +00:00
Sebastien Helleu ef4e6b93e0 "/msg *" sends message to current channel 2003-10-02 21:50:15 +00:00
Sebastien Helleu d0bb1e0c2a Fixed bug when destroying last server 2003-10-01 21:50:50 +00:00
Sebastien Helleu 77e0d01d7a Config is now saved and added /save command 2003-09-30 22:04:10 +00:00
Sebastien Helleu b4ff775f03 Updated files 2003-09-29 21:46:34 +00:00
Sebastien Helleu 9f1fd921f7 Updated files 2003-09-28 22:14:09 +00:00
Sebastien Helleu 13c7cb9dd4 Added /connect and /disconnect commands 2003-09-28 22:05:06 +00:00
Sebastien Helleu a5ae266ee4 Added /server command 2003-09-28 11:17:16 +00:00
Sebastien Helleu a353a6d228 Updated files 2003-09-27 22:33:27 +00:00
Sebastien Helleu 4ad98ebc52 Fixed nicklist display bug and added term window title 2003-09-27 19:49:06 +00:00
Sebastien Helleu c32bc12d8e Fixed /topic command bug 2003-09-27 19:20:48 +00:00
Sebastien Helleu 70cd53af86 Updated files 2003-09-27 18:45:40 +00:00
Sebastien Helleu ac42b65177 Fixed /privmsg command 2003-09-27 14:32:24 +00:00
Sebastien Helleu c3bb49501c Fixed bug when sending command which cannot be sent (crash WeeChat) 2003-09-27 14:27:18 +00:00
Sebastien Helleu 625480e448 Fixed display bug when nicklist is auto-resized. 2003-09-27 12:53:32 +00:00
Sebastien Helleu ab6921ff85 Version is now 0.0.2-pre1 2003-09-27 12:14:56 +00:00
Sebastien Helleu a7091f895d Command CTCP VERSION completed. 2003-09-27 12:11:41 +00:00
293 changed files with 181765 additions and 17901 deletions
+996
View File
@@ -0,0 +1,996 @@
1 Notes on the Free Translation Project
***************************************
Free software is going international! The Free Translation Project is
a way to get maintainers of free software, translators, and users all
together, so that free software will gradually become able to speak many
languages. A few packages already provide translations for their
messages.
If you found this `ABOUT-NLS' file inside a distribution, you may
assume that the distributed package does use GNU `gettext' internally,
itself available at your nearest GNU archive site. But you do _not_
need to install GNU `gettext' prior to configuring, installing or using
this package with messages translated.
Installers will find here some useful hints. These notes also
explain how users should proceed for getting the programs to use the
available translations. They tell how people wanting to contribute and
work on translations can contact the appropriate team.
When reporting bugs in the `intl/' directory or bugs which may be
related to internationalization, you should tell about the version of
`gettext' which is used. The information can be found in the
`intl/VERSION' file, in internationalized packages.
1.1 Quick configuration advice
==============================
If you want to exploit the full power of internationalization, you
should configure it using
./configure --with-included-gettext
to force usage of internationalizing routines provided within this
package, despite the existence of internationalizing capabilities in the
operating system where this package is being installed. So far, only
the `gettext' implementation in the GNU C library version 2 provides as
many features (such as locale alias, message inheritance, automatic
charset conversion or plural form handling) as the implementation here.
It is also not possible to offer this additional functionality on top
of a `catgets' implementation. Future versions of GNU `gettext' will
very likely convey even more functionality. So it might be a good idea
to change to GNU `gettext' as soon as possible.
So you need _not_ provide this option if you are using GNU libc 2 or
you have installed a recent copy of the GNU gettext package with the
included `libintl'.
1.2 INSTALL Matters
===================
Some packages are "localizable" when properly installed; the programs
they contain can be made to speak your own native language. Most such
packages use GNU `gettext'. Other packages have their own ways to
internationalization, predating GNU `gettext'.
By default, this package will be installed to allow translation of
messages. It will automatically detect whether the system already
provides the GNU `gettext' functions. If not, the included GNU
`gettext' library will be used. This library is wholly contained
within this package, usually in the `intl/' subdirectory, so prior
installation of the GNU `gettext' package is _not_ required.
Installers may use special options at configuration time for changing
the default behaviour. The commands:
./configure --with-included-gettext
./configure --disable-nls
will, respectively, bypass any pre-existing `gettext' to use the
internationalizing routines provided within this package, or else,
_totally_ disable translation of messages.
When you already have GNU `gettext' installed on your system and run
configure without an option for your new package, `configure' will
probably detect the previously built and installed `libintl.a' file and
will decide to use this. This might not be desirable. You should use
the more recent version of the GNU `gettext' library. I.e. if the file
`intl/VERSION' shows that the library which comes with this package is
more recent, you should use
./configure --with-included-gettext
to prevent auto-detection.
The configuration process will not test for the `catgets' function
and therefore it will not be used. The reason is that even an
emulation of `gettext' on top of `catgets' could not provide all the
extensions of the GNU `gettext' library.
Internationalized packages usually have many `po/LL.po' files, where
LL gives an ISO 639 two-letter code identifying the language. Unless
translations have been forbidden at `configure' time by using the
`--disable-nls' switch, all available translations are installed
together with the package. However, the environment variable `LINGUAS'
may be set, prior to configuration, to limit the installed set.
`LINGUAS' should then contain a space separated list of two-letter
codes, stating which languages are allowed.
1.3 Using This Package
======================
As a user, if your language has been installed for this package, you
only have to set the `LANG' environment variable to the appropriate
`LL_CC' combination. Here `LL' is an ISO 639 two-letter language code,
and `CC' is an ISO 3166 two-letter country code. For example, let's
suppose that you speak German and live in Germany. At the shell
prompt, merely execute `setenv LANG de_DE' (in `csh'),
`export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash').
This can be done from your `.login' or `.profile' file, once and for
all.
You might think that the country code specification is redundant.
But in fact, some languages have dialects in different countries. For
example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The
country code serves to distinguish the dialects.
The locale naming convention of `LL_CC', with `LL' denoting the
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''.
Not all programs have translations for all languages. By default, an
English message is shown in place of a nonexistent translation. If you
understand other languages, you can set up a priority list of languages.
This is done through a different environment variable, called
`LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG'
for the purpose of message handling, but you still need to have `LANG'
set to the primary language; this is required by other parts of the
system libraries. For example, some Swedish users who would rather
read translations in German than English for when Swedish is not
available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'.
Special advice for Norwegian users: The language code for Norwegian
bokma*l changed from `no' to `nb' recently (in 2003). During the
transition period, while some message catalogs for this language are
installed under `nb' and some older ones under `no', it's recommended
for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and
older translations are used.
In the `LANGUAGE' environment variable, but not in the `LANG'
environment variable, `LL_CC' combinations can be abbreviated as `LL'
to denote the language's main dialect. For example, `de' is equivalent
to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT'
(Portuguese as spoken in Portugal) in this context.
1.4 Translating Teams
=====================
For the Free Translation Project to be a success, we need interested
people who like their own language and write it well, and who are also
able to synergize with other translators speaking the same language.
Each translation team has its own mailing list. The up-to-date list of
teams can be found at the Free Translation Project's homepage,
`http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams"
area.
If you'd like to volunteer to _work_ at translating messages, you
should become a member of the translating team for your own language.
The subscribing address is _not_ the same as the list itself, it has
`-request' appended. For example, speakers of Swedish can send a
message to `sv-request@li.org', having this message body:
subscribe
Keep in mind that team members are expected to participate
_actively_ in translations, or at solving translational difficulties,
rather than merely lurking around. If your team does not exist yet and
you want to start one, or if you are unsure about what to do or how to
get started, please write to `translation@iro.umontreal.ca' to reach the
coordinator for all translator teams.
The English team is special. It works at improving and uniformizing
the terminology in use. Proven linguistic skill are praised more than
programming skill, here.
1.5 Available Packages
======================
Languages are not equally supported in all packages. The following
matrix shows the current state of internationalization, as of May 2005.
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%.
Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB
+-------------------------------------------------+
GNUnet | |
a2ps | [] [] [] [] [] |
aegis | () |
ant-phone | () |
anubis | [] |
ap-utils | |
aspell | [] [] [] [] |
bash | [] [] |
batchelor | [] |
bfd | |
bibshelf | [] |
binutils | [] |
bison | [] [] |
bluez-pin | [] [] [] [] |
clisp | [] [] |
console-tools | [] [] |
coreutils | [] [] [] [] |
cpio | |
cpplib | [] [] [] |
darkstat | [] () [] |
dialog | [] [] [] [] [] [] |
diffutils | [] [] [] [] [] |
doodle | [] |
e2fsprogs | [] [] |
enscript | [] [] [] [] |
error | [] [] [] [] |
fetchmail | [] [] () [] |
fileutils | [] [] |
findutils | [] [] [] |
flex | [] [] [] |
fslint | [] |
gas | |
gawk | [] [] [] |
gbiff | [] |
gcal | [] |
gcc | [] |
gettext-examples | [] [] [] [] |
gettext-runtime | [] [] [] [] |
gettext-tools | [] [] |
gimp-print | [] [] [] [] |
gip | |
gliv | [] |
glunarclock | |
gmult | [] [] |
gnubiff | () |
gnucash | [] () () [] |
gnucash-glossary | [] () |
gpe-aerial | [] [] |
gpe-beam | [] [] |
gpe-calendar | [] [] |
gpe-clock | [] [] |
gpe-conf | [] [] |
gpe-contacts | |
gpe-edit | [] |
gpe-go | [] |
gpe-login | [] [] |
gpe-ownerinfo | [] [] |
gpe-sketchbook | [] [] |
gpe-su | [] [] |
gpe-taskmanager | [] [] |
gpe-timesheet | [] |
gpe-today | [] [] |
gpe-todo | [] [] |
gphoto2 | [] [] [] [] |
gprof | [] [] |
gpsdrive | () () |
gramadoir | [] [] |
grep | [] [] [] [] [] [] |
gretl | |
gsasl | [] |
gss | |
gst-plugins | [] [] [] [] [] [] |
gstreamer | [] [] [] [] [] |
gtick | [] () |
gtkspell | [] [] [] |
hello | [] [] [] [] |
id-utils | [] [] |
impost | |
indent | [] [] |
iso_3166 | |
iso_3166_1 | [] [] [] [] [] |
iso_3166_2 | |
iso_3166_3 | [] |
iso_4217 | |
iso_639 | |
jpilot | [] |
jtag | |
jwhois | |
kbd | [] [] [] [] |
latrine | () |
ld | [] |
libc | [] [] [] [] [] |
libextractor | |
libgpewidget | [] [] [] |
libgphoto2 | [] |
libgphoto2_port | [] |
libgsasl | |
libiconv | [] [] [] [] [] |
libidn | |
lifelines | [] () |
lilypond | [] |
lingoteach | |
lynx | [] [] [] [] |
m4 | [] [] [] [] |
mailutils | [] |
make | [] [] |
man-db | [] () [] [] |
minicom | [] [] |
mysecretdiary | [] [] |
nano | [] () [] |
nano_1_0 | [] () [] [] |
opcodes | [] |
parted | [] [] [] [] |
psmisc | |
ptx | [] [] [] |
pwdutils | |
python | |
radius | [] |
recode | [] [] [] [] [] |
rpm | [] [] |
screem | |
scrollkeeper | [] [] [] [] [] [] [] [] |
sed | [] [] |
sh-utils | [] [] |
shared-mime-info | [] [] |
sharutils | [] [] [] [] [] |
silky | |
skencil | [] () |
sketch | [] () |
solfege | [] |
soundtracker | [] [] |
sp | [] |
stardict | [] |
tar | |
texinfo | [] [] |
textutils | [] [] [] |
tin | () () |
tp-robot | [] |
tuxpaint | [] [] [] [] [] [] [] |
unicode-han-tra... | |
unicode-transla... | |
util-linux | [] [] [] [] |
vorbis-tools | [] [] [] [] |
wastesedge | () |
wdiff | [] [] [] [] |
wget | |
xchat | [] [] [] [] [] |
xkeyboard-config | |
xpad | |
+-------------------------------------------------+
af am ar az be bg bs ca cs cy da de el en en_GB
10 0 0 2 7 5 0 40 43 2 51 91 19 1 14
eo es et eu fa fi fr ga gl he hi hr hu id is
+-----------------------------------------------+
GNUnet | |
a2ps | [] [] [] |
aegis | |
ant-phone | [] |
anubis | [] |
ap-utils | [] |
aspell | [] [] |
bash | [] [] [] [] |
batchelor | [] [] |
bfd | [] |
bibshelf | [] [] |
binutils | [] [] |
bison | [] [] [] [] [] |
bluez-pin | [] [] [] [] [] [] |
clisp | [] [] |
console-tools | |
coreutils | [] [] [] [] [] |
cpio | [] [] |
cpplib | [] [] |
darkstat | [] () [] [] [] |
dialog | [] [] [] [] [] [] [] |
diffutils | [] [] [] [] [] [] [] [] [] |
doodle | [] |
e2fsprogs | [] [] |
enscript | [] [] |
error | [] [] [] [] [] |
fetchmail | [] |
fileutils | [] [] [] [] [] |
findutils | [] [] [] [] |
flex | [] [] [] |
fslint | [] |
gas | [] [] |
gawk | [] [] [] [] |
gbiff | [] |
gcal | [] [] |
gcc | [] |
gettext-examples | [] [] [] |
gettext-runtime | [] [] [] [] [] |
gettext-tools | [] [] |
gimp-print | [] [] |
gip | [] [] [] |
gliv | () |
glunarclock | [] [] [] |
gmult | [] [] |
gnubiff | () |
gnucash | [] () |
gnucash-glossary | [] |
gpe-aerial | [] [] |
gpe-beam | [] [] |
gpe-calendar | [] [] [] [] |
gpe-clock | [] [] [] |
gpe-conf | [] |
gpe-contacts | [] |
gpe-edit | [] [] |
gpe-go | [] [] |
gpe-login | [] [] [] |
gpe-ownerinfo | [] [] [] [] [] |
gpe-sketchbook | [] [] |
gpe-su | [] [] [] |
gpe-taskmanager | [] [] [] |
gpe-timesheet | [] [] [] [] |
gpe-today | [] [] [] [] |
gpe-todo | [] [] [] |
gphoto2 | [] [] [] [] |
gprof | [] [] [] |
gpsdrive | () () [] |
gramadoir | [] [] |
grep | [] [] [] [] [] [] [] [] [] [] [] |
gretl | [] [] |
gsasl | [] [] [] |
gss | [] |
gst-plugins | [] [] |
gstreamer | |
gtick | [] [] [] [] |
gtkspell | [] [] [] [] [] |
hello | [] [] [] [] [] [] [] [] [] [] [] [] [] |
id-utils | [] [] [] |
impost | [] [] |
indent | [] [] [] [] [] [] [] [] [] [] |
iso_3166 | [] [] [] |
iso_3166_1 | [] [] [] [] [] [] [] |
iso_3166_2 | [] |
iso_3166_3 | [] |
iso_4217 | [] [] [] |
iso_639 | [] [] [] [] |
jpilot | [] [] |
jtag | [] |
jwhois | [] [] [] [] |
kbd | [] [] |
latrine | [] [] |
ld | [] [] |
libc | [] [] [] [] [] |
libextractor | |
libgpewidget | [] [] [] [] [] |
libgphoto2 | [] [] [] |
libgphoto2_port | [] |
libgsasl | [] [] |
libiconv | [] [] [] [] [] [] [] [] [] [] |
libidn | [] [] |
lifelines | () |
lilypond | |
lingoteach | [] [] |
lynx | [] [] |
m4 | [] [] [] [] |
mailutils | [] [] |
make | [] [] [] [] [] [] [] |
man-db | () |
minicom | [] [] [] [] |
mysecretdiary | [] [] [] |
nano | [] [] () [] |
nano_1_0 | [] [] [] [] |
opcodes | [] [] [] |
parted | [] [] [] |
psmisc | [] |
ptx | [] [] [] [] [] [] [] [] [] |
pwdutils | |
python | |
radius | [] [] |
recode | [] [] [] [] [] [] [] |
rpm | [] |
screem | |
scrollkeeper | [] [] [] |
sed | [] [] [] [] [] [] |
sh-utils | [] [] [] [] [] [] |
shared-mime-info | [] [] [] [] [] [] |
sharutils | [] [] [] [] [] [] |
silky | [] |
skencil | [] [] |
sketch | [] [] |
solfege | |
soundtracker | [] [] |
sp | [] |
stardict | [] |
tar | [] [] [] [] |
texinfo | [] [] [] |
textutils | [] [] [] [] [] |
tin | [] () |
tp-robot | [] [] |
tuxpaint | [] [] [] [] [] [] [] [] |
unicode-han-tra... | |
unicode-transla... | [] [] |
util-linux | [] [] [] [] [] |
vorbis-tools | [] [] |
wastesedge | () |
wdiff | [] [] [] [] [] [] [] |
wget | [] [] [] [] |
xchat | [] [] [] [] [] |
xkeyboard-config | |
xpad | [] [] [] |
+-----------------------------------------------+
eo es et eu fa fi fr ga gl he hi hr hu id is
15 85 21 15 2 35 115 45 16 8 1 6 40 27 1
it ja ko ku lg lt lv mk mn ms mt nb nl nn no nso
+--------------------------------------------------+
GNUnet | |
a2ps | () () [] [] () |
aegis | () |
ant-phone | [] |
anubis | [] [] [] |
ap-utils | |
aspell | [] [] |
bash | [] |
batchelor | [] |
bfd | |
bibshelf | [] |
binutils | |
bison | [] [] [] [] |
bluez-pin | [] [] |
clisp | [] |
console-tools | |
coreutils | [] [] |
cpio | |
cpplib | [] |
darkstat | [] [] |
dialog | [] [] |
diffutils | [] [] [] [] |
doodle | [] |
e2fsprogs | [] |
enscript | [] |
error | [] |
fetchmail | [] [] |
fileutils | [] [] [] |
findutils | [] [] |
flex | [] [] |
fslint | [] |
gas | |
gawk | [] [] |
gbiff | [] |
gcal | |
gcc | |
gettext-examples | [] [] [] |
gettext-runtime | [] [] [] [] |
gettext-tools | [] [] [] |
gimp-print | [] [] |
gip | [] |
gliv | [] |
glunarclock | [] [] |
gmult | [] [] |
gnubiff | () |
gnucash | [] () () [] |
gnucash-glossary | [] [] |
gpe-aerial | [] |
gpe-beam | [] |
gpe-calendar | [] |
gpe-clock | [] |
gpe-conf | [] |
gpe-contacts | |
gpe-edit | [] |
gpe-go | [] |
gpe-login | [] |
gpe-ownerinfo | [] |
gpe-sketchbook | [] |
gpe-su | [] |
gpe-taskmanager | [] [] |
gpe-timesheet | [] |
gpe-today | [] |
gpe-todo | [] |
gphoto2 | [] [] [] |
gprof | |
gpsdrive | () () () () |
gramadoir | () |
grep | [] [] [] [] |
gretl | [] |
gsasl | [] |
gss | |
gst-plugins | [] [] |
gstreamer | [] [] |
gtick | [] [] |
gtkspell | [] [] [] |
hello | [] [] [] [] [] [] [] [] [] |
id-utils | [] [] |
impost | |
indent | [] [] [] |
iso_3166 | [] |
iso_3166_1 | [] [] |
iso_3166_2 | [] |
iso_3166_3 | [] |
iso_4217 | [] [] [] |
iso_639 | [] [] [] |
jpilot | () () () |
jtag | |
jwhois | [] [] |
kbd | [] |
latrine | [] [] |
ld | |
libc | [] [] [] [] [] |
libextractor | |
libgpewidget | [] |
libgphoto2 | [] [] |
libgphoto2_port | [] [] |
libgsasl | [] |
libiconv | [] [] |
libidn | [] |
lifelines | [] |
lilypond | |
lingoteach | [] [] |
lynx | [] [] [] |
m4 | [] [] |
mailutils | |
make | [] [] [] |
man-db | () |
minicom | [] |
mysecretdiary | [] |
nano | [] [] [] |
nano_1_0 | [] [] [] [] |
opcodes | [] |
parted | [] [] [] [] |
psmisc | [] [] [] |
ptx | [] [] [] |
pwdutils | |
python | |
radius | |
recode | [] [] |
rpm | [] [] |
screem | [] |
scrollkeeper | [] [] [] |
sed | [] [] |
sh-utils | [] [] [] |
shared-mime-info | [] [] [] [] |
sharutils | [] [] [] |
silky | [] |
skencil | |
sketch | |
solfege | [] [] [] |
soundtracker | [] |
sp | () |
stardict | [] [] |
tar | [] [] [] |
texinfo | [] [] [] |
textutils | [] [] [] |
tin | |
tp-robot | [] |
tuxpaint | [] [] [] [] [] [] [] |
unicode-han-tra... | |
unicode-transla... | |
util-linux | [] [] [] |
vorbis-tools | [] |
wastesedge | [] |
wdiff | [] [] [] |
wget | [] |
xchat | [] [] [] [] [] |
xkeyboard-config | [] |
xpad | [] |
+--------------------------------------------------+
it ja ko ku lg lt lv mk mn ms mt nb nl nn no nso
46 35 11 2 1 1 2 2 3 11 0 15 96 7 5 0
or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv
+----------------------------------------------+
GNUnet | |
a2ps | () [] [] [] [] [] [] |
aegis | () () |
ant-phone | [] |
anubis | [] [] [] |
ap-utils | () |
aspell | [] [] |
bash | [] [] [] |
batchelor | [] |
bfd | |
bibshelf | |
binutils | [] [] |
bison | [] [] [] [] [] |
bluez-pin | [] [] [] [] [] [] [] [] |
clisp | [] |
console-tools | [] |
coreutils | [] [] [] [] |
cpio | [] [] |
cpplib | |
darkstat | [] [] [] [] [] [] |
dialog | [] [] [] [] [] [] [] |
diffutils | [] [] [] [] [] [] |
doodle | [] |
e2fsprogs | [] [] |
enscript | [] [] [] [] |
error | [] [] [] |
fetchmail | [] [] [] [] |
fileutils | [] [] [] [] [] |
findutils | [] [] [] [] [] [] |
flex | [] [] [] [] [] |
fslint | [] [] [] |
gas | |
gawk | [] [] [] [] |
gbiff | [] |
gcal | [] |
gcc | |
gettext-examples | [] [] [] [] [] [] |
gettext-runtime | [] [] [] [] [] [] [] |
gettext-tools | [] [] [] [] [] [] [] |
gimp-print | [] [] |
gip | [] [] [] |
gliv | [] [] [] |
glunarclock | [] [] [] [] [] [] |
gmult | [] [] [] [] |
gnubiff | () [] |
gnucash | () [] [] [] [] |
gnucash-glossary | [] [] [] |
gpe-aerial | [] [] [] [] [] [] |
gpe-beam | [] [] [] [] [] [] |
gpe-calendar | [] [] [] [] [] [] [] |
gpe-clock | [] [] [] [] [] [] [] |
gpe-conf | [] [] [] [] [] [] |
gpe-contacts | [] [] [] [] |
gpe-edit | [] [] [] [] [] [] [] |
gpe-go | [] [] [] [] [] |
gpe-login | [] [] [] [] [] [] [] |
gpe-ownerinfo | [] [] [] [] [] [] [] |
gpe-sketchbook | [] [] [] [] [] [] [] |
gpe-su | [] [] [] [] [] [] [] |
gpe-taskmanager | [] [] [] [] [] [] [] |
gpe-timesheet | [] [] [] [] [] [] [] |
gpe-today | [] [] [] [] [] [] [] |
gpe-todo | [] [] [] [] [] [] [] [] |
gphoto2 | [] [] [] [] |
gprof | [] [] [] |
gpsdrive | [] [] |
gramadoir | [] |
grep | [] [] [] [] [] [] [] |
gretl | [] |
gsasl | [] [] [] [] [] |
gss | [] [] [] |
gst-plugins | [] [] [] [] |
gstreamer | [] [] [] [] |
gtick | [] [] [] |
gtkspell | [] [] [] [] [] [] |
hello | [] [] [] [] [] [] [] |
id-utils | [] [] [] [] |
impost | |
indent | [] [] [] [] [] [] |
iso_3166 | [] [] [] [] [] |
iso_3166_1 | [] [] [] [] |
iso_3166_2 | |
iso_3166_3 | [] [] [] |
iso_4217 | [] [] |
iso_639 | [] [] [] |
jpilot | |
jtag | [] |
jwhois | [] [] [] () () |
kbd | [] [] [] |
latrine | [] [] |
ld | [] |
libc | [] [] [] [] [] |
libextractor | [] |
libgpewidget | [] [] [] [] [] [] |
libgphoto2 | [] [] |
libgphoto2_port | [] |
libgsasl | [] [] [] |
libiconv | [] [] [] [] [] [] [] [] [] [] |
libidn | [] () |
lifelines | [] [] |
lilypond | |
lingoteach | [] |
lynx | [] [] [] |
m4 | [] [] [] [] [] |
mailutils | [] [] [] |
make | [] [] [] [] |
man-db | [] [] |
minicom | [] [] [] [] |
mysecretdiary | [] [] [] [] |
nano | [] [] [] |
nano_1_0 | [] [] [] [] |
opcodes | [] [] |
parted | [] [] [] [] |
psmisc | [] [] |
ptx | [] [] [] [] [] [] |
pwdutils | [] |
python | |
radius | [] [] |
recode | [] [] [] [] [] [] |
rpm | [] [] [] [] |
screem | |
scrollkeeper | [] [] [] [] [] [] [] |
sed | [] [] [] [] [] [] [] [] |
sh-utils | [] [] [] |
shared-mime-info | [] [] [] [] [] [] |
sharutils | [] [] [] |
silky | [] |
skencil | [] [] [] |
sketch | [] [] [] |
solfege | |
soundtracker | [] [] |
sp | |
stardict | [] [] |
tar | [] [] [] [] |
texinfo | [] [] [] [] |
textutils | [] [] [] |
tin | |
tp-robot | [] |
tuxpaint | [] [] [] [] [] [] [] [] |
unicode-han-tra... | |
unicode-transla... | |
util-linux | [] [] [] |
vorbis-tools | [] [] |
wastesedge | |
wdiff | [] [] [] [] [] [] |
wget | |
xchat | [] [] [] [] [] [] [] |
xkeyboard-config | |
xpad | |
+----------------------------------------------+
or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv
1 3 47 29 57 6 78 73 5 44 12 12 50 85
ta tg th tk tr uk ven vi wa xh zh_CN zh_TW zu
+-----------------------------------------------+
GNUnet | | 0
a2ps | [] [] [] | 19
aegis | | 0
ant-phone | [] [] | 5
anubis | [] [] [] | 11
ap-utils | () [] | 2
aspell | [] [] [] | 13
bash | [] | 11
batchelor | [] [] | 7
bfd | | 1
bibshelf | [] | 5
binutils | [] | 6
bison | [] [] | 18
bluez-pin | [] [] [] [] [] | 25
clisp | | 7
console-tools | [] [] | 5
coreutils | [] [] | 17
cpio | [] [] [] | 7
cpplib | [] [] | 8
darkstat | [] () () | 15
dialog | [] [] [] | 25
diffutils | [] [] [] [] | 28
doodle | [] | 5
e2fsprogs | [] | 8
enscript | [] | 12
error | [] [] [] | 16
fetchmail | [] | 12
fileutils | [] [] [] | 18
findutils | [] [] | 17
flex | [] [] | 15
fslint | [] | 7
gas | [] | 3
gawk | [] | 14
gbiff | [] | 5
gcal | [] | 5
gcc | [] [] | 4
gettext-examples | [] [] [] [] [] | 21
gettext-runtime | [] [] [] [] [] | 25
gettext-tools | [] [] [] [] [] | 19
gimp-print | [] | 11
gip | [] | 8
gliv | [] [] | 7
glunarclock | [] [] | 13
gmult | [] [] [] | 13
gnubiff | [] | 3
gnucash | () [] | 10
gnucash-glossary | [] [] | 9
gpe-aerial | [] [] | 13
gpe-beam | [] [] | 13
gpe-calendar | [] [] [] [] | 18
gpe-clock | [] [] [] [] | 17
gpe-conf | [] [] | 12
gpe-contacts | [] [] | 7
gpe-edit | [] [] [] [] | 15
gpe-go | [] [] | 11
gpe-login | [] [] [] [] [] | 18
gpe-ownerinfo | [] [] [] [] | 19
gpe-sketchbook | [] [] | 14
gpe-su | [] [] [] | 16
gpe-taskmanager | [] [] [] | 17
gpe-timesheet | [] [] [] [] | 17
gpe-today | [] [] [] [] [] | 19
gpe-todo | [] [] [] | 17
gphoto2 | [] [] [] | 18
gprof | [] [] | 10
gpsdrive | | 3
gramadoir | [] | 6
grep | [] [] [] [] | 32
gretl | | 4
gsasl | [] [] | 12
gss | [] | 5
gst-plugins | [] [] [] | 17
gstreamer | [] [] [] [] | 15
gtick | [] | 11
gtkspell | [] [] [] [] | 21
hello | [] [] [] [] | 37
id-utils | [] [] | 13
impost | [] | 3
indent | [] [] [] [] | 25
iso_3166 | [] [] [] | 12
iso_3166_1 | [] [] | 20
iso_3166_2 | | 2
iso_3166_3 | [] [] | 8
iso_4217 | [] [] | 10
iso_639 | [] [] | 12
jpilot | [] [] [] | 6
jtag | | 2
jwhois | [] [] [] | 12
kbd | [] [] | 12
latrine | [] [] | 8
ld | [] | 5
libc | [] [] | 22
libextractor | | 1
libgpewidget | [] [] | 17
libgphoto2 | [] | 9
libgphoto2_port | | 5
libgsasl | [] | 7
libiconv | [] [] [] [] [] | 32
libidn | [] [] | 6
lifelines | | 4
lilypond | | 1
lingoteach | [] | 6
lynx | [] [] [] | 15
m4 | [] [] | 17
mailutils | [] | 7
make | [] [] | 18
man-db | | 5
minicom | | 11
mysecretdiary | [] [] | 12
nano | [] [] | 13
nano_1_0 | [] [] [] | 18
opcodes | [] [] | 9
parted | [] [] [] | 18
psmisc | [] | 7
ptx | [] [] | 23
pwdutils | | 1
python | | 0
radius | [] | 6
recode | [] [] | 22
rpm | [] [] | 11
screem | | 1
scrollkeeper | [] [] [] | 24
sed | [] [] [] | 21
sh-utils | [] | 15
shared-mime-info | [] [] [] | 21
sharutils | [] [] [] | 20
silky | | 3
skencil | | 6
sketch | | 6
solfege | | 4
soundtracker | [] | 8
sp | [] | 3
stardict | [] [] [] [] | 10
tar | [] [] [] [] | 15
texinfo | [] [] | 14
textutils | [] [] [] | 17
tin | | 1
tp-robot | [] [] [] | 8
tuxpaint | [] [] [] [] | 34
unicode-han-tra... | | 0
unicode-transla... | | 2
util-linux | [] [] [] | 18
vorbis-tools | [] | 10
wastesedge | | 1
wdiff | [] [] | 22
wget | [] [] | 7
xchat | [] [] [] [] | 26
xkeyboard-config | [] | 2
xpad | [] | 5
+-----------------------------------------------+
73 teams ta tg th tk tr uk ven vi wa xh zh_CN zh_TW zu
149 domains 0 0 0 1 77 30 0 92 16 0 42 32 0 1746
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
used for implementing regional variants of languages, or language
dialects.
For a PO file in the matrix above to be effective, the package to
which it applies should also have been internationalized and
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 May 2005 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'.
1.6 Using `gettext' in new packages
===================================
If you are writing a freely available program and want to
internationalize it you are welcome to use GNU `gettext' in your
package. Of course you have to respect the GNU Library General Public
License which covers the use of the GNU `gettext' library. This means
in particular that even non-free programs can use `libintl' as a shared
library, whereas only free software can use `libintl' as a static
library or use modified versions of `libintl'.
Once the sources are changed appropriately and the setup can handle
the use of `gettext' the only thing missing are the translations. The
Free Translation Project is also available for packages which are not
developed inside the GNU project. Therefore the information given above
applies also for every other Free Software Project. Contact
`translation@iro.umontreal.ca' to make the `.pot' files available to
the translation teams.
+39 -19
View File
@@ -4,26 +4,46 @@ WeeChat - Wee Enhanced Environment for Chat
Developers:
----------
All developers are connected to IRC:
* General code
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@free.fr>
Web : http://kolter.free.fr
IRC : nick is "kolter" @ irc.freenode.net
Jabber: kolter@jabber.org
Debian packager:
---------------
Julien Louis <ptitlouis@sysif.net>
IRC : nick is "ptitlouis" @ irc.freenode.net
Jabber: ptitlouis@amessage.info
Contributors:
------------
Rudolf Polzer <rpolzer-rp@durchnull.de> (IRC: "divVerent")
Jiri Golembiovsky <golemj@gmail.com> (IRC: "GolemJ")
Jim Ramsay <i.am@jimramsay.com> (IRC: "lack")
Odin <odin@dtdm.org> (IRC: "[Odin]")
Pistos (IRC: "pistos")
=====
Whole team is connected to IRC:
server: irc.freenode.net, channel: #weechat
FlashCode <flashcode@flashtux.org>
Web : http://www.flashtux.org
IRC : nick is "FlashCode"
Jabber: flashcode@jabber.org
ICQ : 160677660
AIM : FlashCode AIM
Yahoo : FlashCode_Y
Bounga <bounga@altern.org>
Web : http://bounga.ath.cx
IRC : nick is "Bounga"
Jabber: Bounga@jabber.org
ICQ : 178297842
Xahlexx <xahlexx@tuxisland.org>
Web : http://www.tuxisland.org
IRC : nick is "xahlexx"
See README file for licence detail.
+10 -13
View File
@@ -1,17 +1,14 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
WeeChat known bugs, 2003-09-27
WeeChat known bugs, 2006-03-18
- too much nicks in the channel (> height of window) => display bug
- some IRC commands are marked as 'unknown' when received
(irc protocol is under dev!)
- bug in nicklist resize (sometimes resize doesn't work and there is display
problem)
- alias/unalias commands doesn't work
- config is not saved (to ~/.weechat/weechatrc)
- intercept Ctrl-C (do not quit immediately if Ctrl-C pressed!)
- program is stopped when bad option in config file (it should not, only display
warning)
- too much opened channel => display bug
- when kicked, channel is not prefixed by '(' and sufixed by ')'
- display bugs with UTF-8 chars coded on more than 2 bytes
- divide long messages (> 512 bytes) into more messages so IRC server can
parse them correctly
- some refresh bugs with splited windows
- command name for /server can not contain spaces
- when many WeeChat are launched, log file is not properly written
(cleared by each WeeChat at startup)
- WeeChat may crash if too much nicks in nicklist when position is top
or bottom
+2 -2
View File
@@ -2,7 +2,7 @@
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -305,7 +305,7 @@ the "copyright" line and a pointer to where the full notice is found.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
+339 -72
View File
@@ -1,88 +1,355 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2003-09-27
ChangeLog - 2006-03-18
* 2003-09-27:
- WeeChat 0.0.1 released!
* 2003-09-26:
- added completor prefix (in config: look_nick_completor)
- fixef log_printf command (bug with year & month)
- added "/kill" command
- fixed /version and /ctcp commands (missing ":" before message)
Version 0.1.8 (2006-03-18):
* improved Ruby plugin
* fixed /set command when internal server name contains one or many dots
* fixed get_info plugin API function when no server at all is opened
* fixed display bug when top of buffer is displayed and first line is
removed (according to "history_max_lines" setting)
* fixed /mode command output
* improved alias completion (now uses target command for completion)
* fixed completion problem in private with nicks
* added missing IRC command (487)
* added inactivity time, available for plugins via get_info("inactivity")
* keys alt-{home|end} to scroll top/bottom, alt-{f11-f12} to scroll
nicklist top/bottom
* added special names for plugin message handlers: weechat_pv,
weechat_highlight, weechat_ctcp, weechat_dcc
* script plugins now load scripts in WeeChat system share directory
* /msg command does not open any buffer any more
* fixed crash when using global history (when older entry is removed)
* added IRC raw data buffer (new key: alt-J + alt-R)
* fixed display bug with /kill command
* added new plugins functions: add_timer_handler, remove_timer_handler,
remove_infobar
* plugin messages handlers now called when message is ignored (by /ignore)
* new behaviour for messages ignored by a message handler: now WeeChat
executes standard handler, treating message as "ignored"
* many commands allowed for aliases
* many commands allowed when connecting to server
* added Lua script plugin
* added functions in plugins API: get_server_info, free_server_info,
get_channel_info, free_channel_info, get_nick_info, free_nick_info
* added option "look_nick_complete_first" (patch from Gwenn)
* added option "look_open_near_server" (patch from Gwenn)
* fixed bug with /upgrade and servers buffer
* fixed bug with "get_dcc_info" plugin interface function
* added new scroll keys for a few lines up/down (default: meta-pgup/pgdn)
(patch from Pistos)
* added new option "irc_away_check_max_nicks" to disable away check on
channels with high number of nicks (patch from Gwenn)
* added new command line argument for setting WeeChat homedir (-d or --dir)
(patch from Gwenn)
* fixed bug with charset in infobar highlights
* fixed bug with buffer detection in plugins/scripts commands
* fixed bug with /history command
* added option "irc_show_away_once", to show away message only once in pv
* added partial hungarian translation
* 2003-09-25:
- added "/kick" command
- added IRC errors 402 to 407
- added "/invite" command
Version 0.1.7 (2006-01-14):
* fixed msg command (now allowed in private buffer with "*" as target)
* removed "irc_default_msg_away" setting, for RFC 2812 conformity
(/away command wihtout argument only removes away status),
new values for "irc_display_away" (off, local, channel)
* fixed refresh bug with Solaris when term size is changed
* replaced Texinfo doc by XML Docbook
* added color for window separators (when splited)
* added completion system for plugins/scripts commands
* fixed plugins autoload
* added charset by server and channel, new command: /charset
* added Ruby script plugin
* added /upgrade command
* added ETA (Estimated Time of Arrival) for DCC files
* /nick command is now allowed when not connected to server
* added server/channel arg to /buffer command for jumping to buffer
* fixed display bug in chat window when a message length equals to window
width
* added new keys for switching to other windows: alt-W followed by
alt-{arrow}
* added new keys for scrolling to previous/next highlight: alt-P / alt-N
* added "read marker": an indicator for first unread line in a
server or channel buffer (new key alt-U to scroll to marker)
* new window maganement: custom size for windows, auto resize when
terminal is resized
* fixed infinite loop when resizing term to small size
* added /history command
* 2003-09-24:
- "ctcp version" received is now correctly displayed
- "/version" command is ok
Version 0.1.6 (2005-11-11):
* new color management system, IRC colors are now correctly
displayed and can be removed by new options irc_colors_receive
and irc_colors_send
* fixed scroll problem when one line is bigger than screen size
* added setting for having one server buffer for all servers
(look_one_server_buffer)
* added setting for ignoring some chars when completing nicks
* fixed IRC message parser bug
* signal SIGPIPE is now ignored
* added partial match for highlights
* added dcc_own_ip and dcc_port_range settings
* full UTF-8 support, auto-detection of UTF-8 usage (locale)
* added "Day changed to [date]" message when day changes
* new plugin interface, rewritten from scratch: now loads dynamic C
library, and perl/python are script plugins
* log options (for server/channel/private) can now be set while
WeeChat is running
* added channel modes +e and +f
* added some missing IRC commands, fixed command 367
* added colors for input buffer and current channel of status bar
* added online help for config options (with /set full_option_name)
* enhanced "smart" hotlist, with names (new options:
look_hotlist_names_{count|level|length})
* 2003-09-23:
- log file (~/.weechat/weechat.log)
- renamed config file (~/.weechat/weechatrc to ~/.weechat/weechat.rc)
Version 0.1.5 (2005-09-24):
* added /ame command (send CTCP action to all channels of all
connected servers)
* added setting "irc_notice_as_pv" to see notices as pv
* added nicks colors in setup file
* fixed DCC bug: delete failed file only if really empty (on disk)
* fixed IRC message parser bug
* fixed scroll problem (screen moving when scrolling and new line
displayed)
* fixed infinite loop when scrolling back and displaying long lines
* fixed crash when closing a buffer used by more than one window
* added some missing IRC commands
* fixed DCC display bug (now decodes string according to charset)
* added /ignore and /unignore commands
* fixed bug with strings comparison (str[n]casecmp) and some locales
(like turkish), now using ASCII comparison (thanks to roktas)
* signal SIGQUIT is now ignored
* fixed refresh bug when one line is bigger than screen size
* fixed look_nicklist_min_size and look_nicklist_max_size options
* fixed refresh bug when changing channel modes
* jump to next server now saves current channel buffer for each server
* ctrl-up/ctrl-down keys added to call previous/next command in global
history (common to all buffers)
* 2003-09-21:
- "demi-highlight": 2 types of windows highlight: lightred for windows with
unread messages (from other users), lightmagenta for windows with other
unread data (join, part, quit, away, ...)
- "320" IRC message management
- "/clear" command
Version 0.1.4 (2005-07-30):
* join and part/quit prefixes (arrows) now displayed with different colors
* added "irc_highlight" setting, to get highlight with any word
* fixed auto-rejoin for channels with key
* fixed /ctcp command (now any command/data allowed)
* added /amsg command (send text to all channels of all connected servers)
* fixed SIGSEGV handler (now write a core file by aborting program)
* fixed statusbar & infobar background refresh problem with some systems
* added color for private in hotlist (different than color for highlight)
* added DCC resume and timeout
* added function for Perl/Python to get DCC list
* fixed FIFO pipe (command now authorized on a buffer not connected
to an IRC server)
* topic completion now decodes UTF-8 string
* fixed bug with IRC URL on command line (irc://)
* new keyboard management: keys are setup in config file, new command
/key was added and some new default keys were added, alt-K key is
used to grab key (useful for /key command)
* added seconds in infobar time (optional thanks to new setting)
* fixed some curses refreshs
* channels auto-prefixed by "#" (if no prefix found) for /join command
* 2003-09-19:
- préparation des sources pour l'internationalisation avec gettext
- "301" IRC command (away message)
- functions renamed in rc-commands.c, irc-server.c,
command.c and config.c (all functions are beginning with a prefix:
irc_cmd_recv_xxx, irc_cmd_send_xxx, server_xxx, weechat_cmd_xxx and
config_xxx). Moreover, all commands (sent and received) return a value
(success or not)
- "/quote" command
- "/whois" command (and colored display of /whois result in server window)
Version 0.1.3 (2005-07-02):
* proxy support (http, socks4, socks5) with authentification (http, socks5)
and ipv6 support (client to proxy)
* completion added for config option (with /set command)
* commands from users outside channel now authorized (if special user or
channel without "n" flag)
* added IPv6 support
* kill command now received and displayed
* added SSL support
* channel notify levels are saved in config file (new option
"server_notify_levels" for server sections)
* part message now accepts %v (replaced by WeeChat version), like quit message
* errors while loading perl scripts are now displayed in server buffer
(instead of current buffer)
* in python scripts, all messages written in stdin and stderr are redirected
in server buffer
* fix a filename error while loading a python script manually
* fixed plugins "print" and "prnt" functions: now ok for writing on server
buffers
* fixed color problem with new libcurses version
* fixed crash when using alt-S or alt-X on DCC buffer (alt-D)
* fixed startup crash when config file (~/.weechat/weechat.rc) is not found
* improved Perl/Python libs detection for ./configure script
* 2003-09-18:
- use of alternate nickname (and 2nd alternate) if nick is already used
on server (changed/added in config file: options "nick1", "nick2", "nick3"
for a server, all are mandatory)
- "433" IRC error management (nickname already in use)
- "mode" command received correctly for "channel flags" and
op/deop/voice/devoice actions for a nick
- "401" IRC error management (no such nick/channel)
- private windows management (when received and opened, with /privmsg),
"/privmsg" completed consequently
Version 0.1.2 (2005-05-21):
* added Python plugin support, improved Perl interface (and now Perl/Python
libraries are checked by configure script)
* added nicklist scroll keys (alt+{home/end/pgup/pgdn} or F11/F12)
* added transfer rate for DCC files
* added "-all" option for /nick command
* buffers timestamp can now be changed (new option in config file)
* WeeChat now ok under *BSD and Mac OS X
* fixed nicklist sort
* fixed crash when purging old DCC
* fixed crash with 64-bits arch (like AMD64) when converting UTF-8
* added missing IRC commands (307, 341, 485, 671)
* 2003-09-17:
- nickmode display ((half)op/voice) before nicks (as option, look at config
options beginning with "look_nickmode")
- windows history is now ok (pgup/pgdn on any window type)
- "/me" command (and OK when received)
- display nicks count when joining channel or with "/names" command
(total, ops, halfops, voices et normaux)
Version 0.1.1 (2005-03-20):
* added nicks count for channel buffers
* added FIFO pipe for remote control
* added crash dump when WeeChat receives SIGSEGV (Segmentation fault)
* added new display engine: doesn't cut words at end of lines
* added DCC send and DCC chat
* added /halfop & /dehalfop commands, fixed halfop display bug in nicklist
* added /ban, /unban and /kickban commands
* added spanish translation
* added --irc-commands and --weechat-commands command line options
* connection to IRC server is now made by child process (non blocking)
* added support for UnrealIrcd ("~" for chan owner, "&" for chan admin)
* new key for window switch (now: F5/F6=switch buffer, F7/F8=switch window)
* on server buffer, only server messages are logged
* improved /help command output
* plugins messages are logged with new config option (log_plugin_msg)
* fixed /kick command
* fixed /invite command (and now invite requests are displayed)
* fixed /buffer close command (now ok when disconnected from server)
* fixed display bugs when many windows are opened
* 2003-09-16:
- added and normalized chat window colors
(new colors in config file)
- "/topic" command
- nicklist can be moved on top, bottom, left or right of window
Version 0.1.0 (2005-02-12):
* improved /window command: now split and merge are ok
* away nicks are now displayed with another color (new option: "irc_away_check")
* added away indicator in status bar
* added lag indicator (and auto-disconnect after a delay if important lag)
* improved completion: now completes commands arguments (IRC and internal),
when only one completion matches, completion mechanism is stoped (to
complete command arg for example)
* improved /set command: empty strings are allowed, new colors, server
options can be changed while WeeChat is running
* added default away/part/quit messages in config file
* new [irc] section in config file, option "look_display_away" moved to
"irc_display_away"
* server messages & errors are all prefixed (by 3 chars, like '-@-')
* added new options for charset (UTF-8 support): look_charset_decode,
look_charset_encode and look_charset_internal
* fixed many memory leaks
* fixed colors bug: removed "gray" color (replaced by "default"), colors are
ok when terminal has white (or light) background
* fixed crash when resizing terminal to small size
* fixed crash when multiple servers and big messages received from server
* fixed crash when closing some private buffers
* fixed crash when unknown section with option(s) in config file
* fixed /op, /deop, /voice, /devoice (now ok with many nicks)
* fixed /me command (now ok without parameter)
* fixed /away command (now ok if not away)
* logs are now disabled by default (server/channel/private)
* 2003-09-15:
- auto-resize of nicklist, according to nick max length
- IRC multi-servers is OK
Version 0.0.9 (2005-01-01):
* auto-reconnection to server (new options: server_autoreconnect (on/off),
server_autoreconnect_delay (in seconds))
* major bug fixed when socket is closed by server (100% CPU usage fixed),
and disconnections are now ok (all channels are "closed", history is still
visible, and buffer will be used again if reconnection to server)
* option "look_remove_colors_from_msgs" is now working
* fixed display of nick mode changes
* new command "/buffer close" (close any server/channel/private buffer)
* /notice command fixed (and display when received from server)
* new keys: ctrl+A (=home), ctrl+E (=end), ctrl+W (= ctrl+Backspace),
alt-S (switch to server buffer), alt-X (switch to first channel of next
server)
* added new config option: "server_command_delay" (delay in seconds after
startup command for each server)
* 2003-09-14:
- no hangup if "/part" command is executed on server window
- continue if no server is declared in config file
(empty window will be opened for executing WeeChat commands)
- string array for strings in config file
example: cfg_look_nicklist_position can take values "left", "right",
"top", "bottom", which are converted to int (from 0 for "left" to 3 for
"bottom")
- messages are aligned under time (server window) or under time + nick
(channel window)
Version 0.0.8 (2004-10-30):
* /kick command fixed: now ok with many words as reason
* nickserv passwords hidden (new config option: log_hide_nickserv_pwd on/off)
* auto-rejoin channels when kicked (new config option: server_autorejoin on/off)
* added IRC::command function for Perl scripts
* fixed bug when adding alias with same name as other
* /buffer command developed (buffers list, move and notify)
* logging buffers to disk (server/channel/private according to user prefs)
* Away now announced in channels, and config option "look_display_away" added
to enable/disable this feature
* Fixed crash when resizing terminal to very small size
* "-MORE-" message is now erased when switching to another buffer
* DCC file receive ok (alt-D for DCC view)
* /query command now reopens private buffer if already opened
* added key for redrawing terminal (ctrl-L)
* added key for clearing hotlist (alt-R)
* 2003-09-13:
- sources exploded in many directories: ./irc, ./gui/curses, ./gui/gtk,
./gui/qt and ./gui/text
Version 0.0.7 (2004-08-08):
* new "col_status_delimiters" config option
* /buffer command added, buffers ordered by number, auto-jump to active
buffers (alt-A), jump to buffers by number (alt-number)
* /window command added, split terminal horizontally/vertically
* unique color for each nick (based on nickname)
* action messages are now considered as messages, not crappy joins/parts
* fixed display bug when nicklist is displayed at bottom of screen
* added history limit (text buffer & commands)
* replaced --enable-debug with --with-debug option for ./configure, which is
now integer: 1 = compiler debug flag, 2 = same 1 with verbose debug messages
in WeeChat (default: 0 = no debug)
Version 0.0.6 (2004-06-05):
* improved channel highlight (priority to message vs join/part)
* fixed bug when opened private win and remote user changes his nick
* /query command added (starts private conversation)
* IRC messages 476, 477 added
* /mode command is now ok and channel flags are displayed in status bar
* fixed display bug (text was blinking when scrolling)
* CTCP Version reply is now in english only and doesn't show host (security reason)
Version 0.0.5 (2004-02-07):
* /set command to modify config options when WeeChat is running
* fixed look_nicklist config option, now enables/disables nicklist
* secured code to prevent buffer overflows and memory leaks
* fixed QUIT IRC command: now sent to all connected servers (not only current)
* URL command line parameter to connect to server(s)
* new Perl script function to display message in info bar ("IRC::print_infobar")
* info bar highlight notifications
* info bar timestamp is added to config ("look_infobar_timestamp")
* added info bar (optional, "look_infobar" to enable it, "on" by default)
* fixed crash with /oper command
* for default config file, nick is now based on un*x username (thanks to Witukind)
* fixed crash when config file cannot be written
* -c (or --config) command line parameter added to see config file options
* highlight action messages
Version 0.0.4 (2004-01-01):
* Perl plugin, with auto-load
* when private window is created (another user is talking), WeeChat does not
switch to this window
* highlight when our nick is written in a channel/private window
* ctrl-C now intercepted (ignored)
* debug messages can be enabled via ./configure --enbale-debug option
Version 0.0.3 (2003-11-03):
* ./configure script to build WeeChat
* nicks are now correctly sorted (op, halfop, voice, other)
* fixed problem with '353' IRC message (nicklist)
* fixed problem when nick is truncated by server
* fixed crash when entering text without any server connection
* fixed crash when /set command is executed
* fixed display bug (text was blinking when scrolling)
* french translation
* new IRC command: /stats, /service, /squit, /motd, /lusers, /links, /time,
/trace, /admin, /info, /servlist, /squery, /who, /whowas, /die, /summon,
/users, /wallops, /userhost, /ison, /ctcp ping
* code cleanup
Version 0.0.2 (2003-10-05):
* added commands /rehash and /restart
* command & auto-join channels when connected to server
* new commands for alias: /alias, /unalias (new section in config file)
* config is now saved automatically when quitting WeeChat, /save command added
* new commands for servers: /server, /connect, /disconnect
* added autoconnect flag for each server in config file
* added "look_set_title" option in config file
* term window title is modified with WeeChat name and version
* fixed nicklist display bug
* fixed crash when sending command which can only be received
* CTCP version returns more info (about OS)
Version 0.0.1 (2003-09-27):
* ncurses GUI with color output
* multi-servers
* channel windows, with nicklist (position: top, bottom, left or right)
* private windows
* IRC commands: away, ctcp, deop, devoice, invite, join, kick, kill, list,
me, mode, msg, names, nick, notice, op, oper, part, ping, pong, quit,
quote, topic, version, voice, whois
* WeeChat commands: clear, help, set (partial)
* many config options
* log file (~/.weechat/weechat.log)
* nicklist can be moved on top, bottom, left or right of window
+208 -4
View File
@@ -1,6 +1,210 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
WeeChat FAQ, 2006-03-18
=======================
WeeChat FAQ, 2003-09-19
Intended audience:
All WeeChat users.
<<< TO DO ! >>>
Before reading the following:
the following Q/A list is *not* exhaustive.
It is also possible that you won't find any Q/A that matches your problem.
Please read them anyway, they may provide you help in fixing your problem
anyway.
And even if your problem is listed below, it is possible that the answers don't
help you anymore to solve it. Then, please contact us, we will try to help you
finding a solution.
1 - Compiling
2 - Using WeeChat
3 - Development
1.1
================================================================================
Q: I heard about many GUI for WeeChat. How can I compile/use them?
A: Curses GUI is built by default.
To build Gtk, wxWidgets or Qt GUI you've to specify extra options to
./configure script:
--enable-gtk to enable Gtk GUI
--enable-wxwidgets to enable wxWidgets GUI
--enable-qt to enable Qt QUI
Type ./configure --help to see available options.
WARNING: only Curses GUI is ok today. Other GUI are under development!
1.2
================================================================================
Q: I can't compile WeeChat CVS.
A: Check that you have latest version of autoconf and automake.
WeeChat has been developed with autoconf version 2.59 and automake
version 1.9.5.
You should have at least these versions in order to compile WeeChat CVS.
If you can't or don't want to install these versions, you can download and
install "devel package", a package built almost every day, based on CVS.
Note that this package may not correspond exactly to CVS base.
2.1
================================================================================
Q: Why using WeeChat ? X-Chat and Irssi are so good...
A: Because WeeChat is very light and has new features.
Some new features:
* many GUI (Curses, Gtk, wxWidgets, Qt)
* available in many languages
* nicklist available in all GUI
* extensible with plugins (C, Perl, Python, Ruby, Lua)
* horizontal and vertical window split
* infobar highlight
* FIFO pipe for remote control
* developed from scratch (not based on any other IRC client)
* multi-platform
* 100% GPL and free
This is the "geekest" IRC client ;)
More info on this page: http://weechat.flashtux.org/features.php
2.2
================================================================================
Q: I've launched WeeChat, but I'm lost, what can I do?
A: For help you can type /help. For help about a command, type /help command.
Keys and commands are listed in documentation.
2.3
================================================================================
Q: I don't see come chars with accents, what can I do?
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).
2.4
================================================================================
Q: How can I customize key bindings?
A: Key bindings are customizable with /key command.
Default key Meta-k (usually Alt-k) lets you grab key code and insert it
in input zone.
2.5
================================================================================
Q: How can I load Perl scripts?
Are Perl scripts compatible with other IRC clients ?
A: You can use /perl command to load scripts (default path is
~/.weechat/perl).
Note that scripts in ~/.weechat/perl/autoload are automatically loaded
when WeeChat is starting up.
Perl scripts are not compatible with other IRC clients.
2.6
================================================================================
Q: How can I load Python scripts?
Are Python scripts compatible with other IRC clients ?
A: You can use /python command to load scripts (default path is
~/.weechat/python).
Note that scripts in ~/.weechat/python/autoload are automatically loaded
when WeeChat is starting up.
Python scripts are not compatible with other IRC clients.
2.7
================================================================================
Q: How can I load Ruby scripts?
Are Ruby scripts compatible with other IRC clients ?
A: You can use /ruby command to load scripts (default path is
~/.weechat/ruby).
Note that scripts in ~/.weechat/ruby/autoload are automatically loaded
when WeeChat is starting up.
Ruby scripts are not compatible with other IRC clients.
2.8
================================================================================
Q: How can I load Lua scripts?
Are Lua scripts compatible with other IRC clients ?
A: You can use /lua command to load scripts (default path is
~/.weechat/lua).
Note that scripts in ~/.weechat/lua/autoload are automatically loaded
when WeeChat is starting up.
Lua scripts are not compatible with other IRC clients.
3.1
================================================================================
Q: How should I report bugs?
A: There is 3 ways to report bugs:
1. you can join us on IRC: irc.freenode.net, channel #weechat
2. you can submit your bug at this URL:
http://savannah.nongnu.org/bugs/?func=addbug&group=weechat
3. you can mail your problem, look at support page for developer's mails:
http://weechat.flashtux.org/support.php
(you can subscribe and send to "support" mailing list)
3.2
================================================================================
Q: How should I submit patches?
A: There is 3 ways to submit patches:
1. you can join us on IRC: irc.freenode.net, channel #weechat
2. you can submit your patch at this URL:
http://savannah.nongnu.org/patch/?func=addpatch&group=weechat
3. you can mail your patch, look at support page for developer's mails:
http://weechat.flashtux.org/support.php
(you can subscribe and send to "support" mailing list)
3.3
================================================================================
Q: How should I submit new feature request?
A: There is 2 ways to submit your feature request:
1. you can join us on IRC: irc.freenode.net, channel #weechat
2. you can mail your feature request, look at support page for developer's
mails:
http://weechat.flashtux.org/support.php
(you can subscribe and send to "support" mailing list)
3.4
================================================================================
Q: What is the list of supported platforms for WeeChat?
A: Full list is on this page:
http://weechat.flashtux.org/download.php?lang=en&view=supported_os
3.5
================================================================================
Q: Will WeeChat be ported to QNX or other operating systems?
A: Yes. Future versions will be available for these OS.
We need help for such systems, any help is welcome :)
3.6
================================================================================
Q: I want to help WeeChat developers. What can I do?
A: There's many tasks to do (code, documentation, ...)
Please contact us with IRC or mail, look at support page:
http://weechat.flashtux.org/support.php
3.7
================================================================================
Q: Can I give money or other things to WeeChat developers?
A: You can give us money to help development.
Details on http://weechat.flashtux.org/donate.php?lang=en
+222
View File
@@ -0,0 +1,222 @@
WeeChat FAQ, 2006-03-18
=======================
Public concerné :
Tous les utilisateurs de WeeChat.
Avant de lire la suite ceci :
la liste suivante de questions/réponses n'est *pas* exhaustive.
Il est donc possible que vous ne trouviez pas de question/réponse correspondant
à votre problème.
Lisez les quand même SVP, elles peuvent vous aider à corriger votre problème.
Et même si votre problème est mentionné ci-dessous, il est possible que la
réponse ne vous aide pas à corriger le problème. Dans ce cas, contactez-nous,
nous essaierons de vous aider Ă  trouver une solution.
1 - Compilation
2 - Utilisation de WeeChat
3 - Développement
1.1
================================================================================
Q: J'ai entendu parler de plusieurs interfaces pour WeeChat.
Comment puis-je les compiler/utiliser ?
R: L'interface Curses est construite par défaut.
Pour construire l'interface Gtk, wxWidgets ou Qt, vous devez spécifier des
options pour le script ./configure :
--enable-gtk pour activer l'interface Gtk
--enable-wxwidgets pour activer l'interface wxWidgets
--enable-qt pour activer l'interface Qt
Tapez ./configure --help pour voir les options disponibles.
ATTENTION : seule l'interface Curses est ok aujourd'hui.
Les autres interfaces sont en développement.
1.2
================================================================================
Q: Je ne peux pas compiler le CVS WeeChat.
R: Vérifiez que vous avez bien la dernière version d'autoconf et automake.
WeeChat a été développé avec autoconf version 2.59 et automake
version 1.9.5.
Vous devez avoir au moins ces versions pour compiler le CVS WeeChat.
Si vous n'avez pas ou ne souhaitez pas installer ces versions, vous
pouvez télécharger et installer le paquet "devel", un paquet construit
quasiment tous les jours, basé sur le CVS.
Notez que ce paquet peut ne pas correspondre exactement Ă  la base CVS.
2.1
================================================================================
Q: Pourquoi utiliser WeeChat ? X-Chat et Irssi sont si bien...
R: Parce que WeeChat est très léger et a de nouvelles fonctionnalités.
Quelques nouvelles fonctionnalités :
* plusieurs interfaces (Curses, Gtk, wxWidgets, Qt)
* disponible en plusieurs langues
* liste des pseudos disponible dans toutes les interfaces
* extensible par des extensions (C, Perl, Python, Ruby, Lua)
* découpage de la fenêtre horizontalement et verticalement
* highlight dans la barre d'infos
* tube FIFO pour contrĂ´le Ă  distance
* développé à partir de zéro (non basé sur un quelconque client IRC)
* multi-platformes
* 100% GPL et libre
C'est le client IRC le plus "geek" ;)
Plus d'infos sur cette page: http://weechat.flashtux.org/features.php
2.2
================================================================================
Q: J'ai lancé WeeChat, mais je suis perdu, que puis-je faire ?
R: Pour obtenir de l'aide tapez /help. Pour de l'aide sur une commande,
tapez /help commande.
Les touches et commandes sont listées dans la documentation.
2.3
================================================================================
Q: Je ne vois pas bien certains accents dans WeeChat, que faire ?
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).
2.4
================================================================================
Q: Comment puis-je configurer les raccourcis clavier ?
R: Les raccourcis clavier sont modifiables avec la commande /key.
La touche par défaut Meta-k (souvent Alt-k) permet de capturer le code
d'une touche et de l'inclure dans la zone de saisie.
2.5
================================================================================
Q: Comment puis-je charger des scripts Perl ?
Les scripts Perl sont-ils compatibles avec d'autres clients IRC ?
R: La commande /perl permet de charger les scripts Perl (le chemin par défaut
est ~/.weechat/perl).
Notez que les scripts dans ~/.weechat/perl/autoload sont automatiquement
chargés par WeeChat lorsqu'il démarre.
Les scripts Perl ne sont pas compatibles avec d'autres clients IRC.
2.6
================================================================================
Q: Comment puis-je charger les scripts Python ?
Les scripts Python sont-ils compatibles avec d'autres clients IRC ?
R: La commande /python permet de charger les scripts Python (le chemin par
défaut est ~/.weechat/python).
Notez que les scripts dans ~/.weechat/python/autoload sont automatiquement
chargés par WeeChat lorsqu'il démarre.
Les scripts Python ne sont pas compatibles avec d'autres clients IRC.
2.7
================================================================================
Q: Comment puis-je charger des scripts Ruby ?
Les scripts Ruby sont-ils compatibles avec d'autres clients IRC ?
R: La commande /ruby permet de charger les scripts Ruby (le chemin par
défaut est ~/.weechat/ruby).
Notez que les scripts dans ~/.weechat/ruby/autoload sont automatiquement
chargés par WeeChat lorsqu'il démarre.
Les scripts Ruby ne sont pas compatibles avec d'autres clients IRC.
2.8
================================================================================
Q: Comment puis-je charger des scripts Lua ?
Les scripts Lua sont-ils compatibles avec d'autres clients IRC ?
R: La commande /lua permet de charger les scripts Lua (le chemin par
défaut est ~/.weechat/lua).
Notez que les scripts dans ~/.weechat/lua/autoload sont automatiquement
chargés par WeeChat lorsqu'il démarre.
Les scripts Lua ne sont pas compatibles avec d'autres clients IRC.
3.1
================================================================================
Q: Comment dois-je reporter les bugs ?
R: Il y a 3 manières de reporter les bugs :
1. vous pouvez nous joindre sur IRC: irc.freenode.net, canal #weechat
2. vous pouvez soumettre votre bug Ă  cette adresse :
http://savannah.nongnu.org/bugs/?func=addbug&group=weechat
3. vous pouvez envoyer votre problème par mail, consultez la page
support pour les mails des développeurs :
http://weechat.flashtux.org/support.php
(vous pouvez souscrire et envoyer Ă  la liste de diffusion
"support")
3.2
================================================================================
Q: Comment dois-je soumettre les patches ?
R: Il y a 3 manières de soumettre les patches :
1. vous pouvez nous joindre sur IRC: irc.freenode.net, canal #weechat
2. vous pouvez soumettre votre patch Ă  cette adresse :
http://savannah.nongnu.org/patch/?func=addpatch&group=weechat
3. vous pouvez envoyer votre patch par mail, consultez la page
support pour les mails des développeurs :
http://weechat.flashtux.org/support.php
(vous pouvez souscrire et envoyer Ă  la liste de diffusion
"support")
3.3
================================================================================
Q: Comment dois-je soumettre les demandes de nouvelles fonctionnalités ?
R: Il y a 2 manières :
1. vous pouvez nous joindre sur IRC: irc.freenode.net, channel #weechat
2. vous pouvez envoyer un mail, consultez la page support pour les
mails des développeurs :
http://weechat.flashtux.org/support.php
(vous pouvez souscrire et envoyer Ă  la liste de diffusion
"support")
3.4
================================================================================
Q: Quelle est la liste des plate-formes supportées par WeeChat ?
R: La liste complète est sur cette page :
http://weechat.flashtux.org/download.php?lang=fr&view=supported_os
3.5
================================================================================
Q: WeeChat sera-t-il porté sur QNX ou d'autres systèmes d'exploitation ?
R: Oui. Les futures versions seront disponibles pour ces OS.
Nous avons besoin d'aide pour ces systèmes, toute aide est la bienvenue :)
3.6
================================================================================
Q: Je souhaiterai aider les développeurs WeeChat. Que puis-je faire ?
R: Il y a plusieurs choses Ă  faire (code, documentation, ...)
Merci de prendre contact avec nous par IRC ou mail, consultez la page
support :
http://weechat.flashtux.org/support.php
3.7
================================================================================
Q: Puis-je donner de l'argent ou d'autres choses aux développeurs WeeChat ?
R: Vous pouvez donner de l'argent pour aider le développement.
Plus de détails sur http://weechat.flashtux.org/donate.php
+7 -4
View File
@@ -1,10 +1,13 @@
WeeChat - Installation instructions
===================================
1) Run 'make'
1) Run './configure'
(./configure --help so see options)
2) As root, run 'make install'
2) Run 'make'
3) Enjoy ! :-)
3) As root, run 'make install'
See AUTHORS for any support, feel free to contact us for any problem ;)
4) Enjoy ! :-)
See AUTHORS for support, feel free to contact us for any problem.
+29
View File
@@ -0,0 +1,29 @@
# Copyright (c) 2003-2006 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
# (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
#
SUBDIRS = po doc intl src
EXTRA_DIST = config.rpath BUGS FAQ FAQ.fr \
debian/changelog debian/control \
debian/copyright debian/compat \
debian/rules debian/weechat-common.docs \
debian/weechat-common.install debian/weechat-curses.dirs \
debian/weechat-curses.install debian/weechat-plugins.install \
debian/weechat-curses.menu debian/NEWS \
weechat.spec weechat_icon_32.png
ACLOCAL_AMFLAGS = -I m4
+108 -2
View File
@@ -1,6 +1,112 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
FlashCode, 2003-09-27
* FlashCode, 2006-03-03 (draft)
WeeChat 0.0.1 released.
Important release notes for 0.1.8 (draft):
- it is recommended for users of version 0.1.7 (or any older), to
replace values in setup file (~/.weechat/weechat.rc) :
- option: log_path: replace "~/.weechat/logs" by "%h/logs"
- option: plugins_path: replace "~/.weechat/plugins" by "%h/plugins"
"%h" is replaced by WeeChat home (default: ~/.weechat, may be overriden
by new command line arg --dir)
- after installing 0.1.8 (or with /upgrade), issue both commands (if you
didn't redefined these keys (alt-home/end):
/key unbind meta-meta2-1~
/key unbind meta-meta2-4~
then launch again WeeChat (or issue /upgrade).
Alt-home/end were used for nicklist scroll, they're now replaced by
Alt-F11/F12.
* FlashCode, 2006-01-14
WeeChat 0.1.7 released.
Important release notes:
- Ruby script plugin has been added but is experimental in this release.
You're warned!
- "/away" command was changed to be RFC 2812 compliant.
Now argument is required to set away, and no argument means
remove away ("back"). Setting "irc_default_msg_away" has been removed.
* FlashCode, 2005-11-11
WeeChat 0.1.6 released.
Important release notes:
- incompatibility with some old scripts: now all handlers have to return
a code for completion, and to do some actions about message to ignore
(please look at documentation for detail)
- on OpenBSD, the new option "plugins_extension" should be set to ".so.0.0"
since the plugins names are ending by ".so.0.0" and not ".so"
- with new and full UTF-8 support, the option "look_charset_internal"
should be set to blank for most cases. Forces it only if your locale is
not properly detected by WeeChat (you can set "UTF-8" or "ISO-8859-15"
for example, depending on your locale). WeeChat is looking for "UTF-8" in
your locale name at startup.
* FlashCode, 2005-09-24
WeeChat 0.1.5 released.
* FlashCode, 2005-07-30
WeeChat 0.1.4 released.
* FlashCode, 2005-07-02
WeeChat 0.1.3 released.
* FlashCode, 2005-05-21
WeeChat 0.1.2 released.
* FlashCode, 2005-03-20
WeeChat 0.1.1 released.
* FlashCode, 2005-02-12
WeeChat 0.1.0 released.
* FlashCode, 2005-01-01
WeeChat 0.0.9 released.
* FlashCode, 2004-10-30
WeeChat 0.0.8 released.
* FlashCode, 2004-08-08
WeeChat 0.0.7 released.
* FlashCode, 2004-06-05
WeeChat 0.0.6 released.
* FlashCode, 2004-02-07
WeeChat 0.0.5 released.
* FlashCode, 2004-01-01
WeeChat 0.0.4 released.
* FlashCode, 2003-11-03
WeeChat 0.0.3 released.
* FlashCode, 2003-10-05
WeeChat 0.0.2 released.
* FlashCode, 2003-09-27
WeeChat 0.0.1 released.
+8 -11
View File
@@ -10,21 +10,19 @@ It is customizable and extensible with scripts.
Features
--------
* IRC chat client with multi-server connection
* many GUI (curses, text, Gtk, QT) (1)
* many GUI (curses, Gtk, Qt) (1)
* small, fast and very light
* customizable and extensible with scripts (Perl, Python, Ruby) (2)
* customizable and extensible with plugins (C, Perl, Python, Ruby, Lua)
* compliant with RFC 1459,2810,2811,2812,2813
* multi-platform (GNU/Linux, *BSD, Windows & other) (3)
* developed from scratch
* multi-platform (GNU/Linux, *BSD, Mac OS X, QNX, Windows & other) (2)
* 100% GPL & free
Copyright
---------
WeeChat (c) Copyright 2003
by: FlashCode <flashcode@flashtux.org>
Xahlexx <xahlex@tuxisland.org>
Bounga <bounga@altern.org>
WeeChat (c) Copyright 2003-2006 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):
@@ -41,10 +39,9 @@ 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
---
(1) only curses & text interfaces are available today
(2) plugin interfaces are not yet developed
(3) only GNU/Linux version is available today
(1) only Curses interface is available today
(2) Windows version is under construction
+70 -109
View File
@@ -1,7 +1,7 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
TODO - 2003-09-27
TODO - 2006-03-18
Legend:
# done
@@ -10,121 +10,82 @@ Legend:
? is this really necessary?
v0.0.1:
* General:
+ Windows version
# Solaris version
* IRC protocol:
# "/quote" command: send a raw string to the server without parsing it
# "/me" command (for user actions description)
# "/away" command (to toggle the away status)
# "/op", "/deop", "/voice", "/devoice" commands
# "/invite" command
# "/kick", "/ban", "/unban" commands
# "/kill" command
# "/list" command: list of channels
# "/names" command: view who is on a given channel without being
on it (for example /names #weechat gives all the nicks present on
#weechat, except those who have the +i flag (server side))
# "/oper" command: become operator on the irc network
# "/topic" command: change the topic of a channel
# "/version" command: give the irc client version (CTCP VERSION)
of a given nick/channel (without parameter: gives WeeChat version)
# "/whois" command
* WeeChat commands:
# "/clear": to clear window content
* Interface:
# "demi-highlight" when joins/quits etc
# log messages/warning/errors to ~/.weechat/log file
# improve editing zone (left arrow <> backspace)
# sort nick list
# choose nick list position (top, left, right (default), bottom)
# auto-resize nicklist (when nick too long)
# do pretty cutting of long lines (align on the nick or after hour for server)
# keep history of commands and call them again with up/down arrow
# text GUI
# ncurses GUI:
# one window for each channel
# color display
# private windows
# redraw window when term size is modified
# chat history (pgup/pgdn for displaying history)
# switch to other channel window
+ Gtk GUI
? Qt GUI
+ internationalization (traduce WeeChat in many languages)
- add dark colors (demi intensity)
- understand incomplete commands if unambigous (for example: /he for /help is ok)
- interpret 'old-school' special chars in messages: *bold* _underline_ /italic/
- minimal width of nick in text area
- display number of highlights since last buffer read (pink square)
- add "*" on the side of message buffer when alt-j or other meta modifier is on
- completion with tab key for all words starting with "#" by opened chans names
- completion when input line is empty should add last nick that wrote to me
# open new channels near server (not at the end of buffers)
- add filename completion (for example with /dcc send)
- have only one info_bar common to all windows
- be able to search in history and global history (as with <Ctrl+r> in bash)
* TCP/IP communication:
# IPv4 protocol implementation
* Configuration:
# write default config file
Future versions:
* IRC protocol:
- implement RFC 2812
+ "/mode" command: change the user/channels modes
- "/dcc" command (for chat and sending/receiving files)
- manage "halfop" status
- complete "/list" command: add regexp search, display only channels that
match regexp
- "/connect" and "/disconnect" commands (for multiservers use)
- "/ignore" and "/unignore" commands: hide all that is write by a given
nick/host
- when we're away, WeeChat should log all the lines begenning by our nick.
When we come back from our away it should print it to the current window
- "/rehash" command: tell the server to reload its config file
- "/restart" command: tell the server to restart itself
- "/notify" and "/unnotify" command to be warn by WeeChat when a given
nick/host connect to the given irc network
- "/wallops" command: write the same string to all the
persons with the flag +w enable
* WeeChat commands:
* WeeChat commands
- be able to bind a key on more than one command
# be able to make an alias running more than one command
- host with "*" possible with /ignore command
- "/completion" command: do shortcuts (for example when we type "u"
in the text bar it send it to the server as "you")
- "/exec" command: execute a command as if we was in shell
and show us the output on the current window. An option to exec
like -o could send the output to the server, on the current
channel/private
- "/reload" command: reload the WeeChat's config file
- "/set" command: allow the user to set the WeeChat variables
under WeeChat without editing the config file (colours, time
format, etc)
- "/highlight" command: highlight a given word when it appears on
channels/privates
- "/last": command to look for text in previous messages
- get help on config settings with /help option instead of /set option (since
many options can be displayed and help is not displayed in this case)
- "/cycle": do a /part then /join on current channel
- be able to save the current buffer with a single command
(/buffer dump /path/to/file), or to make it possible to write a script
that does so (see plugins)
- "/reconnect": reconnect to all servers, without waiting for
auto-reconnect delay after disconnection
- save hotlist when doing /upgrade
* Interface:
- display current channel modes (example : #weechat(+nt))
- interpret ^B in messages (this means bold text)
- internationalization (traduce WeeChat in many languages)
- many channel windows in one window/term (window split)
- add lag indicator
- log chats to file
- forget some old lines that were displayed long time ago (now all is saved,
if WeeChat is running for long time, a lot of memory is used!)
- improve completion (for example complete command parameters when possible)
- understand incomplete commands if unambigous (for example: /he for /help is ok)
- add clock (in status bar?)
- Gtk GUI
? Qt GUI
* IRC protocol:
- complete "/list" command: add regexp search, display only channels that
match regexp
- when we're away, WeeChat should log all the lines begenning by our nick.
When we come back from our away it should print it to the current window
- "/notify" and "/unnotify" command to be warn by WeeChat when a given
nick/host connect to the given irc network
- display one time away message of remote user in private (optional)
# add max number of nicks for away check (do not check away nicks on
channels with high number of nicks)
- add anti-flood mechanism, when pasting more than N lines
- add mask for /ban command, and ban types (host, nick)
* TCP/IP communication:
- IPv6 protocol implementation
* Configuration:
- add key bindings to config file
- add missing options for config file
- write config file
- add an option for each server in order to run commands on join
(example: /msg nickserv identify password)
- channel list for auto-join (for each server)
- do not stop program if problem with options in config file
- load config file after GUI (so init values by default (colors, ...) before
loading config)
# be able to launch more than one command when connecting to server
# use ~/.weechat/dcc by default for DCC incoming files (and create
directory at startup if not found)
- add global username/realname, used if server values are not filled
# add command line arg (--dir) to choose weechat home dir
(~/.weechat by default)
- be able to set more than one server address for network
- save buffer numbers (order) to config file and restore them when
opened, or make it possible by script
* Plugins:
- add Perl plugin
- add Python plugin
- add Ruby plugin
- "/load" and "/unload" commands to (un)load extension scripts
(perl, python, ruby, ...)
- allow print function to write on all buffers or all channels of a server
- add "outgoing" message event so scripts can edit user-input text before
it is sent to the channel
# add a timer function so scripts can do things like timeouts, delayed
processing, etc.
- allow print function to write on all buffers or all channels of a server
# allow plugins to perform actions on "highlight" messages
# get_servers(), get_channels(server), get_nicks(server,channel)
# Lua plugin
? Tcl plugin
? Php plugin (maybe if possible)
? "fish" plugin (cf http://fish.sekure.us/)
# script plugins (perl, python, ruby, ..) should load scripts in system dir,
not only ~/.weechat/xxxx/autoload/
- allow plugins to get the contents of a specified (or at least the
"current") buffer.
Executable
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
# gettextize updates Makefile.am, configure.in
cp configure.in configure.in.old
cp Makefile.am Makefile.am.old
gettextize --copy --force --intl --no-changelog &&
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
+615
View File
@@ -0,0 +1,615 @@
# Copyright (c) 2003-2006 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
# (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
#
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.56)
AC_INIT(WeeChat, 0.1.8, flashcode@flashtux.org)
AC_CONFIG_SRCDIR([src/common/weechat.c])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([weechat], [0.1.8])
# Checks for programs
AC_PROG_CC
AC_PROG_MAKE_SET
AM_PROG_LIBTOOL
# Add some flags for some OS
case "$host_os" in
freebsd* | openbsd*)
LDFLAGS="$LDFLAGS -L/usr/local/lib"
;;
netbsd*)
CFLAGS="$CFLAGS -I/usr/pkg/include"
LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
;;
solaris*)
LDFLAGS="$LDFLAGS -lsocket -lxnet"
;;
*)
;;
esac
# Gettext
ALL_LINGUAS="fr es cs hu"
AM_GNU_GETTEXT
# Checks for libraries
AC_CHECK_LIB(ncurses, initscr, LIBNCURSES_FOUND=1, LIBNCURSES_FOUND=0)
AC_CHECK_LIB(ncursesw, initscr, LIBNCURSESW_FOUND=1, LIBNCURSESW_FOUND=0)
# Checks for header files
AC_HEADER_STDC
AC_CHECK_HEADERS([arpa/inet.h libintl.h limits.h locale.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h sys/types.h unistd.h pwd.h errno.h])
# Checks for typedefs, structures, and compiler characteristics
AC_HEADER_TIME
AC_STRUCT_TM
AC_MSG_CHECKING([for socklen_t])
AC_CACHE_VAL(ac_cv_type_socklen_t,
[AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>],
[socklen_t t;],
ac_cv_type_socklen_t=yes,
ac_cv_type_socklen_t=no,
)])
if test $ac_cv_type_socklen_t = no; then
AC_DEFINE(socklen_t, int, Define to 'int' if <sys/socket.h> doesn't define.)
fi
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])
# Variables in config.h
AH_VERBATIM([PREFIX], [#undef PREFIX])
AH_VERBATIM([WEECHAT_LIBDIR], [#undef WEECHAT_LIBDIR])
AH_VERBATIM([WEECHAT_SHAREDIR], [#undef WEECHAT_SHAREDIR])
AH_VERBATIM([PLUGINS], [#undef PLUGINS])
AH_VERBATIM([PLUGIN_PERL], [#undef PLUGIN_PERL])
AH_VERBATIM([PLUGIN_PYTHON], [#undef PLUGIN_PYTHON])
AH_VERBATIM([PLUGIN_RUBY], [#undef PLUGIN_RUBY])
AH_VERBATIM([PLUGIN_LUA], [#undef PLUGIN_LUA])
AH_VERBATIM([HAVE_GNUTLS], [#undef HAVE_GNUTLS])
AH_VERBATIM([DEBUG], [#undef DEBUG])
# Arguments for ./configure
AC_ARG_ENABLE(ncurses, [ --disable-ncurses Turn off ncurses interface (default=compiled if found)],enable_ncurses=$enableval,enable_ncurses=yes)
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(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)
AC_ARG_ENABLE(ruby, [ --disable-ruby Turn off Ruby script plugin (default=compiled if found)],enable_ruby=$enableval,enable_ruby=yes)
AC_ARG_ENABLE(lua, [ --disable-lua Turn off Lua script plugin (default=compiled if found)],enable_lua=$enableval,enable_lua=yes)
AC_ARG_WITH(lua-inc, [ --with-lua-inc=DIR, Lua include files are in DIR (default=autodetect)],lua_inc=$withval,lua_inc='')
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(gnutls, [ --disable-gnutls Turn off gnutls support (default=compiled if found)],enable_gnutls=$enableval,enable_gnutls=yes)
AC_ARG_WITH(debug, [ --with-debug Debugging: 0=no debug, 1=debug compilation, 2=debug compilation + verbose msgs (default=1)],debug=$withval,debug=1)
not_found=""
# ------------------------------------------------------------------------------
# GUI
# ------------------------------------------------------------------------------
if test "x$enable_ncurses" = "xyes" ; then
if test "$LIBNCURSESW_FOUND" = "0" ; then
if test "$LIBNCURSES_FOUND" = "0" ; then
AC_MSG_WARN([
*** ncurses library not found!
*** WeeChat will be built without ncurses support.])
enable_ncurses="no"
not_found="$not_found ncurses"
else
AC_MSG_WARN([
*** ncursesw library not found! Falling back to "ncurses"
*** Be careful, UTF-8 display may not work properly if your locale is UTF-8.])
NCURSES_LIBS="-lncurses"
fi
else
NCURSES_LIBS="-lncursesw"
AC_CHECK_HEADERS(ncursesw/curses.h)
fi
AC_SUBST(NCURSES_LIBS)
fi
#if test "x$enable_wxwidgets" = "xyes" ; then
# AM_OPTIONS_WXCONFIG
# AM_PATH_WXCONFIG(2.3.4, wxWin=1)
#
# if test "$wxWin" != 1; then
# AC_MSG_ERROR([
#*** wxWindows must be installed on your system
#*** but wx-config script couldn't be found.
#
#*** Please check that wx-config is in path, the directory
#*** where wxWindows libraries are installed (returned by
#*** 'wx-config --libs' command) is in LD_LIBRARY_PATH or
#*** equivalent variable and wxWindows version is 2.3.4 or above.
# ])
# fi
#
# CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
# CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY"
# CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
# LDFLAGS="$LDFLAGS $WX_LIBS"
#
# WXWIDGETS_CFLAGS=""
# WXWIDGETS_LIBS=""
#fi
if test "x$enable_gtk" = "xyes" ; then
AM_PATH_GTK_2_0(2.4.0, LIBGTK_FOUND=1, LIBGTK_FOUND=0)
if test "$LIBGTK_FOUND" = "0" ; then
AC_MSG_WARN([
*** Gtk library not found!
*** WeeChat will be built without Gtk support.])
enable_gtk="no"
not_found="$not_found gtk"
else
GTK_CFLAGS=`pkg-config --cflags gtk+-2.0`
GTK_LIBS=`pkg-config --libs gtk+-2.0`
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
fi
fi
# ------------------------------------------------------------------------------
# plugins
# ------------------------------------------------------------------------------
PLUGINS_LIBS=
if test "x$enable_perl" = "xyes" ; then
enable_plugins="yes"
AC_PATH_PROGS(PERL, perl perl5)
if test -z $PERL ; then
AC_MSG_WARN([
*** Perl must be installed on your system but perl interpreter couldn't be found in path.
*** Please check that perl is in path, or install it with your software package manager.
*** WeeChat will be built without Perl support.])
enable_perl="no"
not_found="$not_found perl"
else
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`
if test "x$PERL_HEADER_TEST" = "x0" ; then
PERL_CFLAGS=`$PERL -MExtUtils::Embed -e ccopts`
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
PERL_LFLAGS=`$PERL -MExtUtils::Embed -e ldopts`
AC_MSG_RESULT(found)
else
AC_MSG_WARN([
*** Perl library couldn't be found in your system.
*** Try to install it with your software package manager.
*** WeeChat will be built without Perl support.])
enable_perl="no"
not_found="$not_found perl"
fi
else
AC_MSG_WARN([
*** Perl headers couldn't be found in your system.
*** Try to install it with your software package manager.
*** WeeChat will be built without Perl support.])
enable_perl="no"
not_found="$not_found perl"
fi
fi
fi
if test "x$enable_perl" = "xyes" ; then
AC_SUBST(PERL_CFLAGS)
AC_SUBST(PERL_LFLAGS)
AC_DEFINE(PLUGIN_PERL)
fi
if test "x$enable_python" = "xyes" ; then
enable_plugins="yes"
AC_PATH_PROGS(PYTHON, python 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.
*** Please check that python is in path, or install it with your software package manager.
*** WeeChat will be built without Python support.])
enable_python="no"
not_found="$not_found python"
else
PYTHON_SYSPREFIX=`$PYTHON -c 'import sys; print "%s" % sys.prefix'`
PYTHON_VERSION=`$PYTHON -c 'import sys ; print sys.version[[:3]]'`
PYTHON_INCLUDE=`$PYTHON -c "import distutils.sysconfig,string; print distutils.sysconfig.get_config_var('CONFINCLUDEPY')"`
AC_MSG_CHECKING(for Python header files)
if test -r "$PYTHON_INCLUDE/Python.h"; then
PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
AC_MSG_RESULT(found)
PYTHON_LIB=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"`
PYTHON_LFLAGS="-lpython$PYTHON_VERSION "`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBS')+' '+distutils.sysconfig.get_config_var('SYSLIBS')+' '+distutils.sysconfig.get_config_var('LINKFORSHARED')"`
AC_MSG_CHECKING(for Python library)
if test -r "$PYTHON_LIB/libpython$PYTHON_VERSION.so"; then
PYTHON_LFLAGS="-L$PYTHON_LIB $PYTHON_LFLAGS"
AC_MSG_RESULT(found)
elif test -r "$PYTHON_LIB/libpython$PYTHON_VERSION.a"; then
PYTHON_LFLAGS="-L$PYTHON_LIB $PYTHON_LFLAGS"
AC_MSG_RESULT(found)
elif test -r "$PYTHON_SYSPREFIX/lib/libpython$PYTHON_VERSION.so"; then
PYTHON_LFLAGS="-L$PYTHON_SYSPREFIX/lib/ $PYTHON_LFLAGS"
AC_MSG_RESULT(found)
else
AC_MSG_WARN([
*** Python library couldn't be found in your system.
*** Try to install it with your software package manager.
*** WeeChat will be built without Python support.])
enable_python="no"
not_found="$not_found python"
fi
else
AC_MSG_WARN([
*** Python header files couldn't be found in your system.
*** Try to install them with your software package manager.
*** WeeChat will be built without Python support.])
enable_python="no"
not_found="$not_found python"
fi
fi
fi
if test "x$enable_python" = "xyes" ; then
AC_SUBST(PYTHON_CFLAGS)
AC_SUBST(PYTHON_LFLAGS)
AC_DEFINE(PLUGIN_PYTHON)
fi
if test "x$enable_ruby" = "xyes" ; then
enable_plugins="yes"
AC_PATH_PROGS(RUBY, ruby ruby1.8 ruby1.9)
if test -z $RUBY ; then
AC_MSG_WARN([
*** Ruby must be installed on your system but ruby interpreter couldn't be found in path.
*** Please check that ruby is in path, or install it with your software package manager.
*** WeeChat will be built without Ruby support.])
enable_ruby="no"
not_found="$not_found ruby"
else
RUBY_INCLUDE=`$RUBY -rrbconfig -e "puts Config::CONFIG[['archdir']]"`
AC_MSG_CHECKING(for Ruby header files)
if test -r "$RUBY_INCLUDE/ruby.h"; then
RUBY_CFLAGS="-I$RUBY_INCLUDE"
else
AC_MSG_WARN([
*** Ruby header files couldn't be found in your system.
*** Try to install them with your software package manager.
*** WeeChat will be built without Ruby support.])
enable_ruby="no"
not_found="$not_found ruby"
fi
AC_MSG_RESULT(found)
RUBY_LFLAGS=`$RUBY -rrbconfig -e "puts Config::CONFIG[['LIBRUBYARG_SHARED']]"`
fi
fi
if test "x$enable_ruby" = "xyes" ; then
AC_SUBST(RUBY_CFLAGS)
AC_SUBST(RUBY_LFLAGS)
AC_DEFINE(PLUGIN_RUBY)
fi
if test "x$enable_lua" = "xyes" ; then
enable_plugins="yes"
ac_save_CPPFLAGS="$CPPFLAGS"
ac_save_CFLAGS="$CFLAGS"
ac_save_LFLAGS="$LFLAGS"
LUA_CFLAGS=""
LUA_LFLAGS=""
if test -n "$lua_inc"; then
CFLAGS="$CFLAGS -I$lua_inc"
CPPFLAGS="$CPPFLAGS -I$lua_inc"
fi
if test -n "$lua_lib"; then
LFLAGS="$LFLAGS -L$lua_lib"
fi
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
PKGCONFIG=""
AC_CHECK_PROGS(PKGCONFIG, pkg-config)
if test "x$PKGCONFIG" != "x"; then
AC_MSG_CHECKING(for Lua headers and librairies with pkg-config)
for l in "$lua_suffix" "" "50" "5.0" ; do
pkgconfig_lua_found=`$PKGCONFIG --exists lua$l && $PKGCONFIG --exists lualib$l`
if test "x$?" = "x0" ; then
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`
break
fi
done
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
AC_MSG_RESULT(found)
fi
fi
fi
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
LUACONFIG=""
AC_CHECK_PROGS(LUACONFIG, lua-config lua-config50 lua-config5.0)
if test "x$LUACONFIG" != "x" ; then
AC_MSG_CHECKING(for Lua headers and librairies with lua-config)
LUA_CFLAGS=`$LUACONFIG --include`
LUA_LFLAGS=`$LUACONFIG --libs`
fi
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
AC_MSG_RESULT(found)
fi
fi
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
AC_MSG_CHECKING(for Lua headers and librairies)
AC_CHECK_HEADER(lua.h,ac_found_lua_header="yes",ac_found_lua_header="no")
AC_CHECK_HEADER(lualib.h,ac_found_liblua_header="yes",ac_found_liblua_header="no")
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" ; do
AC_CHECK_LIB(lua$l,lua_open,ac_found_lua_lib="yes",ac_found_lua_lib="no")
AC_CHECK_LIB(lualib$l,luaopen_base,ac_found_liblua_lib="yes",ac_found_liblua_lib="no")
if test "x$ac_found_lua_lib" = "xyes" ; then
LUA_LFLAGS="$LFLAGS -llua$l"
break
fi
if test "x$ac_found_liblua_lib" = "xyes" ; then
LUA_LFLAGS="$LUA_LFLAGS -llualib$l"
break
fi
done
fi
CFLAGS="$ac_save_CFLAGS"
CPPFLAGS="$ac_save_CPPFLAGS"
LFLAGS="$ac_save_LFLAGS"
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
AC_MSG_WARN([
*** Lua (>=5.0) headers and librairies couldn't be found in your system.
*** Try to install liblua, liblualib and liblua-dev with your software package manager.
*** WeeChat will be built without Lua support.])
enable_lua="no"
not_found="$not_found lua"
else
AC_MSG_RESULT(found)
fi
fi
if test "x$enable_lua" = "xyes" ; then
AC_SUBST(LUA_CFLAGS)
AC_SUBST(LUA_LFLAGS)
AC_DEFINE(PLUGIN_LUA)
fi
if test "x$enable_plugins" = "xyes" ; then
AC_CHECK_FUNCS(dlopen, LIBDL_FOUND=yes, LIBDL_FOUND=no)
if test "$LIBDL_FOUND" != "yes"; then
AC_CHECK_LIB(dl, dlopen, [LIBDL_FOUND=yes; PLUGINS_LIBS=-ldl], LIBDL_FOUND=no)
fi
if test "$LIBDL_FOUND" = "yes"; then
AC_DEFINE(PLUGINS)
AC_SUBST(PLUGINS_LIBS)
else
AC_MSG_WARN([
*** "dl" library (dynamic library loader) couldn't be found in your system.
*** Try to install it with your software package manager or disable plugins.
*** WeeChat will be built without any plugin.])
enable_plugins="no"
enable_perl="no"
enable_python="no"
enable_ruby="no"
enable_lua="no"
not_found="$not_found plugins"
fi
fi
# ------------------------------------------------------------------------------
# gnutls
# ------------------------------------------------------------------------------
if test "x$enable_gnutls" = "xyes" ; then
found_gnutls="no"
AM_PATH_LIBGNUTLS( 1.0.0, found_gnutls=yes, 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`
AC_SUBST(GNUTLS_CFLAGS)
AC_SUBST(GNUTLS_LFLAGS)
AC_DEFINE(HAVE_GNUTLS)
else
enable_gnutls="no"
not_found="$not_found gnutls"
fi
fi
# ------------------------------------------------------------------------------
# general vars
# ------------------------------------------------------------------------------
if test "x$prefix" = "xNONE" ; then
prefix="$ac_default_prefix"
fi
if test "x$exec_prefix" = "xNONE" ; then
exec_prefix="$prefix"
fi
AC_DEFINE_UNQUOTED(PREFIX, "${prefix}")
WEECHAT_LIBDIR=`eval echo ${libdir}/weechat`
AC_DEFINE_UNQUOTED(WEECHAT_LIBDIR, "$WEECHAT_LIBDIR")
WEECHAT_SHAREDIR=`eval echo ${datadir}/weechat`
AC_DEFINE_UNQUOTED(WEECHAT_SHAREDIR, "$WEECHAT_SHAREDIR")
weechat_libdir=${libdir}/weechat
AC_SUBST(weechat_libdir)
CFLAGS=`echo $CFLAGS | sed s/-g//g`
if test "x$CFLAGS" = "x" ; then
CFLAGS="-O2"
fi
if test "x$debug" = "x1" || test "x$debug" = "x2" ; then
CFLAGS="-Wall -W $CFLAGS -pipe -g"
else
CFLAGS="-Wall -W $CFLAGS -pipe"
fi
if test "x$debug" = "x2" ; then
AC_DEFINE(DEBUG)
fi
LIBS="$LIBS $INTLLIBS"
case "$host_os" in
freebsd* | netbsd*)
if test "x$enable_perl" = "xyes" -o "x$enable_python" = "xyes" ; then
CFLAGS="$CFLAGS -pthread"
fi
CFLAGS="$CFLAGS $CPPFLAGS"
;;
openbsd*)
if test "x$enable_python" = "xyes" ; then
CFLAGS="$CFLAGS -pthread"
fi
;;
gnu*)
if test "x$enable_plugins" = "xyes" ; then
LDFLAGS="$LDFLAGS -lpthread"
fi
;;
*)
;;
esac
# ------------------------------------------------------------------------------
# output Makefiles
# ------------------------------------------------------------------------------
AM_CONDITIONAL(GUI_NCURSES, test "$enable_ncurses" = "yes")
AM_CONDITIONAL(GUI_WXWIDGETS, test "$enable_wxwidgets" = "yes")
AM_CONDITIONAL(GUI_GTK, test "$enable_gtk" = "yes")
AM_CONDITIONAL(GUI_QT, test "$enable_qt" = "yes")
AM_CONDITIONAL(PLUGINS, test "$enable_plugins" = "yes")
AM_CONDITIONAL(PLUGIN_PERL, test "$enable_perl" = "yes")
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(HAVE_GNUTLS, test "$enable_gnutls" = "yes")
AC_OUTPUT([Makefile
doc/Makefile
doc/fr/Makefile
doc/en/Makefile
src/Makefile
src/common/Makefile
src/irc/Makefile
src/plugins/Makefile
src/plugins/scripts/Makefile
src/plugins/scripts/perl/Makefile
src/plugins/scripts/python/Makefile
src/plugins/scripts/ruby/Makefile
src/plugins/scripts/lua/Makefile
src/gui/Makefile
src/gui/curses/Makefile
src/gui/wxwidgets/Makefile
src/gui/gtk/Makefile
src/gui/qt/Makefile
intl/Makefile
po/Makefile.in])
# ------------------------------------------------------------------------------
# end message
# ------------------------------------------------------------------------------
listgui=""
if test "x$enable_ncurses" = "xyes" ; then
listgui="$listgui ncurses"
fi
if test "x$enable_wxwidgets" = "xyes"; then
listgui="$listgui WxWidgets"
fi
if test "x$enable_gtk" = "xyes" ; then
listgui="$listgui Gtk"
fi
if test "x$enable_qt" = "xyes" ; then
listgui="$listgui Qt"
fi
if test "x$listgui" = "x" ; then
AC_MSG_ERROR([
*** No interface specified...
*** Please enable at least ncurses, WxWidgets, Gtk or Qt.])
fi
if test "x$not_found" != "x" ; then
echo ""
echo "Following components were asked but not found, they will not be built:"
echo "$not_found"
fi
msg_debug_compiler="no"
msg_debug_verbose="no"
if test "x$debug" = "x1" || test "x$debug" = "x2" ; then
msg_debug_compiler="yes"
fi
if test "x$debug" = "x2" ; then
msg_debug_verbose="yes"
fi
echo ""
echo "Interfaces........................ :$listgui"
echo "Build with GNUtls support......... : $enable_gnutls"
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 "Compile with debug info........... : $msg_debug_compiler"
echo "Print debugging messages.......... : $msg_debug_verbose"
echo ""
eval echo "WeeChat will be installed in $bindir."
echo ""
echo "configure complete, now type 'make' to build WeeChat $VERSION"
echo ""
Vendored
+6
View File
@@ -0,0 +1,6 @@
weechat (0.1.6-1) unstable; urgency=low
This release introduces some incompatible changes with old scripts and locale
support, you can read the upstream NEWS file for more information.
-- Julien Louis <ptitlouis@sysif.net> Fri, 11 Nov 2005 20:45:46 +0100
+269 -1
View File
@@ -1,5 +1,273 @@
weechat (0.1.7-1) unstable; urgency=low
* New upstream release
-- Julien Louis <ptitlouis@sysif.net> Sat, 14 Jan 2006 14:14:29 +0100
weechat (0.1.6-2) unstable; urgency=low
* Apply path to fix segfault when removing server.
* Move plugins in a separate package
-- Julien Louis <ptitlouis@sysif.net> Tue, 22 Nov 2005 08:33:09 +0100
weechat (0.1.6-1) unstable; urgency=low
* New upstream release
* Add menu entry
* Move libperl5.8 and python2.3 from Depends to Recommends
-- Julien Louis <ptitlouis@sysif.net> Fri, 11 Nov 2005 22:21:08 +0100
weechat (0.1.5-1) unstable; urgency=low
* New upstream release
-- Julien Louis <ptitlouis@sysif.net> Sat, 24 Sep 2005 14:08:55 +0200
weechat (0.1.4-2) unstable; urgency=low
* Add autotools-dev to Build-Depends.
* update autotools stuff automatically to always
have up-to-date config.{guess,sub}
* Update Build-Depends: libgnutls11-dev -> libgnutls-dev
-- Julien Louis <ptitlouis@sysif.net> Mon, 1 Aug 2005 11:46:39 +0200
weechat (0.1.4-1) unstable; urgency=low
* New upstream release.
-- Julien Louis <ptitlouis@sysif.net> Sat, 30 Jul 2005 16:26:55 +0200
weechat (0.1.3-2) unstable; urgency=low
* Update config.{guess,sub} to fix FTBFS on k*BSD (Closes: #316791)
-- Julien Louis <ptitlouis@sysif.net> Fri, 8 Jul 2005 21:30:38 +0200
weechat (0.1.3-1) unstable; urgency=low
* New upstream release.
-- Julien Louis <ptitlouis@sysif.net> Sat, 2 Jul 2005 20:06:29 +0200
weechat (0.1.2-3) unstable; urgency=low
* Apply patch against gui-display.c to fix curses color bug.
* remove dh_install --sourcedir to allow builds on woody.
-- Julien Louis <ptitlouis@sysif.net> Sun, 19 Jun 2005 22:37:11 +0200
weechat (0.1.2-2) unstable; urgency=low
* Patch src/gui/curse/gui-display.c to fix segfault
when config file does not exists (Closes: #310589).
-- Julien Louis <ptitlouis@sysif.net> Tue, 24 May 2005 20:55:02 +0200
weechat (0.1.2-1) unstable; urgency=low
* WeeChat version 0.1.2, see ChangeLog for detail.
-- Sebastien Helleu <flashcode@flashtux.org> Sat, 21 May 2005 08:00:00 +0200
weechat (0.1.1-2) unstable; urgency=low
* debian/control:
- Add myself to uploaders.
- Remove unecessary dependency on weechat-gtk (Closes: #308287).
-- Julien Louis <ptitlouis@sysif.net> Tue, 10 May 2005 22:38:52 +0200
weechat (0.1.1-1) unstable; urgency=low
* WeeChat version 0.1.1, see ChangeLog for detail (closes: #306492)
-- Sebastien Helleu <flashcode@flashtux.org> Sat, 20 Mar 2005 08:00:00 +0200
weechat (0.1.0-1) unstable; urgency=low
* WeeChat version 0.1.0, see ChangeLog for detail.
-- Sebastien Helleu <flashcode@flashtux.org> Sat, 12 Feb 2005 12:00:00 +0200
weechat (0.0.9-1) unstable; urgency=low
* WeeChat version 0.0.9, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Sat, 01 Jan 2005 13:00:00 +0200
weechat (0.0.8-1) unstable; urgency=low
* WeeChat version 0.0.8, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Sat, 30 Oct 2004 11:40:00 +0200
weechat (0.0.7-1) unstable; urgency=low
* WeeChat version 0.0.7, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Sat, 08 Aug 2004 21:00:00 +0200
weechat (0.0.6-1) unstable; urgency=low
* WeeChat version 0.0.6, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Sat, 05 Jun 2004 11:30:00 +0200
weechat (0.0.5-1) unstable; urgency=low
* WeeChat version 0.0.5, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Sat, 07 Feb 2004 20:30:00 +0200
weechat (0.0.4-1) unstable; urgency=low
* WeeChat version 0.0.4, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Thu, 01 Jan 2004 13:00:00 +0200
weechat (0.0.3-1) unstable; urgency=low
* WeeChat version 0.0.3, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Mon, 03 Nov 2003 23:15:00 +0200
weechat (0.0.2-1) unstable; urgency=low
* WeeChat version 0.0.2, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Sun, 05 Oct 2003 12:00:00 +0200
weechat (0.0.1-1) unstable; urgency=low
* First version.
-- FlashCode <flashcode@flashtux.org> Sat, 27 Jun 2003 12:00:00 +0200
-- FlashCode <flashcode@flashtux.org> Sat, 27 Sep 2003 12:00:00 +0200
weechat (0.1.5-1) unstable; urgency=low
* New upstream release
-- Julien Louis <ptitlouis@sysif.net> Sat, 24 Sep 2005 14:08:55 +0200
weechat (0.1.4-2) unstable; urgency=low
* Add autotools-dev to Build-Depends.
* update autotools stuff automatically to always
have up-to-date config.{guess,sub}
* Update Build-Depends: libgnutls11-dev -> libgnutls-dev
-- Julien Louis <ptitlouis@sysif.net> Mon, 1 Aug 2005 11:46:39 +0200
weechat (0.1.4-1) unstable; urgency=low
* New upstream release.
-- Julien Louis <ptitlouis@sysif.net> Sat, 30 Jul 2005 16:26:55 +0200
weechat (0.1.3-2) unstable; urgency=low
* Update config.{guess,sub} to fix FTBFS on k*BSD (Closes: #316791)
-- Julien Louis <ptitlouis@sysif.net> Fri, 8 Jul 2005 21:30:38 +0200
weechat (0.1.3-1) unstable; urgency=low
* New upstream release.
-- Julien Louis <ptitlouis@sysif.net> Sat, 2 Jul 2005 20:06:29 +0200
weechat (0.1.2-3) unstable; urgency=low
* Apply patch against gui-display.c to fix curses color bug.
* remove dh_install --sourcedir to allow builds on woody.
-- Julien Louis <ptitlouis@sysif.net> Sun, 19 Jun 2005 22:37:11 +0200
weechat (0.1.2-2) unstable; urgency=low
* Patch src/gui/curse/gui-display.c to fix segfault
when config file does not exists (Closes: #310589).
-- Julien Louis <ptitlouis@sysif.net> Tue, 24 May 2005 20:55:02 +0200
weechat (0.1.2-1) unstable; urgency=low
* WeeChat version 0.1.2, see ChangeLog for detail.
-- Sebastien Helleu <flashcode@flashtux.org> Sat, 21 May 2005 08:00:00 +0200
weechat (0.1.1-2) unstable; urgency=low
* debian/control:
- Add myself to uploaders.
- Remove unecessary dependency on weechat-gtk (Closes: #308287).
-- Julien Louis <ptitlouis@sysif.net> Tue, 10 May 2005 22:38:52 +0200
weechat (0.1.1-1) unstable; urgency=low
* WeeChat version 0.1.1, see ChangeLog for detail (closes: #306492)
-- Sebastien Helleu <flashcode@flashtux.org> Sat, 20 Mar 2005 08:00:00 +0200
weechat (0.1.0-1) unstable; urgency=low
* WeeChat version 0.1.0, see ChangeLog for detail.
-- Sebastien Helleu <flashcode@flashtux.org> Sat, 12 Feb 2005 12:00:00 +0200
weechat (0.0.9-1) unstable; urgency=low
* WeeChat version 0.0.9, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Sat, 01 Jan 2005 13:00:00 +0200
weechat (0.0.8-1) unstable; urgency=low
* WeeChat version 0.0.8, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Sat, 30 Oct 2004 11:40:00 +0200
weechat (0.0.7-1) unstable; urgency=low
* WeeChat version 0.0.7, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Sat, 08 Aug 2004 21:00:00 +0200
weechat (0.0.6-1) unstable; urgency=low
* WeeChat version 0.0.6, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Sat, 05 Jun 2004 11:30:00 +0200
weechat (0.0.5-1) unstable; urgency=low
* WeeChat version 0.0.5, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Sat, 07 Feb 2004 20:30:00 +0200
weechat (0.0.4-1) unstable; urgency=low
* WeeChat version 0.0.4, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Thu, 01 Jan 2004 13:00:00 +0200
weechat (0.0.3-1) unstable; urgency=low
* WeeChat version 0.0.3, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Mon, 03 Nov 2003 23:15:00 +0200
weechat (0.0.2-1) unstable; urgency=low
* WeeChat version 0.0.2, see ChangeLog for detail.
-- FlashCode <flashcode@flashtux.org> Sun, 05 Oct 2003 12:00:00 +0200
weechat (0.0.1-1) unstable; urgency=low
* First version.
-- FlashCode <flashcode@flashtux.org> Sat, 27 Sep 2003 12:00:00 +0200
+49 -6
View File
@@ -1,14 +1,57 @@
Source: weechat
Section: net
Priority: optional
Maintainer: FlashCode <flashcode@flashtux.org>
Build-Depends: debhelper (>> 4.0.0)
Standards-Version: 3.5.8
Maintainer: Sebastien Helleu <flashcode@flashtux.org>
Uploaders: Julien Louis <ptitlouis@sysif.net>
Build-Depends: debhelper (>> 4.0.0), libncursesw5-dev, ruby, ruby1.8-dev, libperl-dev, python-dev, libgnutls-dev, libtool, xsltproc, docbook-xsl
Standards-Version: 3.6.2
Package: weechat
Architecture: any
Depends: ${shlibs:Depends}
Architecture: all
Depends: weechat-common (= ${Source-Version}), weechat-curses (= ${Source-Version})
Description: Fast, light and extensible IRC client
WeeChat (Wee Enhanced Environment for Chat) is a fast and light IRC client
for many operating systems. Everything can be done with a keyboard.
It is customizable and extensible with scripts.
It is customizable and extensible with plugins/scripts, and includes:
- nicklist
- smart hotlist
- infobar with highlight notification
- horizontal and vertical split
- double charset support (decode/encode)
- FIFO pipe for remote control
- and much more!
.
Homepage: http://weechat.flashtux.org/
Package: weechat-curses
Architecture: any
Depends: ${shlibs:Depends}, weechat-common (= ${Source-Version})
Recommends: weechat-plugins (= ${Source-Version})
Description: Fast, light and extensible IRC client
WeeChat (Wee Enhanced Environment for Chat) is a fast and light IRC client
for many operating systems. Everything can be done with a keyboard.
It is customizable and extensible with plugins/scripts, and includes:
- nicklist
- smart hotlist
- infobar with highlight notification
- horizontal and vertical split
- double charset support (decode/encode)
- FIFO pipe for remote control
- and much more!
.
Homepage: http://weechat.flashtux.org/
Package: weechat-common
Architecture: all
Replaces: weechat
Recommends: weechat-curses
Description: Common files for WeeChat
Documentation, examples, and locale files for WeeChat - fast, light and
extensible IRC client. It is useless without weechat-curses.
Package: weechat-plugins
Architecture: any
Depends: ${shlibs:Depends}
Description: Plugins for WeeChat
This package provides some plugins to enhance weechat with scripting languages
such as perl python or ruby.
+2 -2
View File
@@ -1,9 +1,9 @@
This package was debianized by FlashCode <flashcode@flashtux.org> on
Sat, 27 Sep 2003 10:00:00 +0200.
Sat, 21 May 2005 08:00:00 +0200.
It was downloaded from http://weechat.flashtux.org/download
Upstream Author(s): FlashCode <flashcode@flashtux.org>
Upstream Author: FlashCode <flashcode@flashtux.org>
Copyright:
-1
View File
@@ -1 +0,0 @@
weechat_0.0.1-1_i386.deb net optional
+38 -50
View File
@@ -1,15 +1,7 @@
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
@@ -22,8 +14,9 @@ endif
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
./configure --prefix=/usr --sysconfdir=/etc --mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info --enable-perl --enable-python --enable-ruby \
--with-debug=0
touch configure-stamp
@@ -31,21 +24,14 @@ build: build-stamp
build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
$(MAKE)
#/usr/bin/docbook-to-man debian/weechat.sgml > weechat.1
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
-$(MAKE) clean
-$(MAKE) distclean
dh_clean
install: build
@@ -53,45 +39,47 @@ install: build
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/weechat.
$(MAKE) install DESTDIR=$(CURDIR)/debian/weechat
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
dh_install
# install -o root -g root -m 755 src/gui/curses/weechat-curses $(CURDIR)/debian/weechat-curses/usr/bin
# install -o root -g root -m 755 src/gui/gtk/weechat-gtk $(CURDIR)/debian/weechat-gtk/usr/bin
install -D -o root -g root -m 644 weechat_icon_32.png $(CURDIR)/debian/weechat-common/usr/share/pixmaps/weechat_icon_32.png
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
dh_testdir -pweechat-common -pweechat
dh_testroot -pweechat-common -pweechat
dh_installchangelogs ChangeLog -pweechat-common
dh_installdocs -pweechat-common
dh_installinfo -pweechat-common
dh_installexamples -pweechat-common
dh_compress -pweechat-common -pweechat
dh_link -pweechat usr/share/doc/weechat-common usr/share/doc/weechat
dh_fixperms -pweechat-common -pweechat
dh_installdeb -pweechat-common -pweechat
dh_shlibdeps -pweechat-common -pweechat
dh_gencontrol -pweechat-common -pweechat
dh_md5sums -pweechat-common -pweechat
dh_builddeb -pweechat-common -pweechat
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
# dh_install
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman weechat.1
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# dh_python
# dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
dh_testdir -a -pweechat-curses -pweechat-plugins
dh_testroot -a -pweechat-curses -pweechat-plugins
dh_installchangelogs ChangeLog -pweechat-plugins
dh_installdocs -pweechat-plugins
dh_installman doc/weechat-curses.1 -pweechat-curses
dh_link -pweechat-curses usr/share/doc/weechat-common usr/share/doc/weechat-curses
dh_installmenu -pweechat-curses
dh_strip -a -pweechat-curses -pweechat-plugins --exclude=libperl.a
dh_compress -a -pweechat-curses -p weechat-plugins
dh_fixperms -a -pweechat-curses -pweechat-plugins
dh_installdeb -a -pweechat-curses -pweechat-plugins
dh_shlibdeps -a -pweechat-curses -pweechat-plugins
dh_gencontrol -a -pweechat-curses -pweechat-plugins
dh_md5sums -a -pweechat-curses -pweechat-plugins
dh_builddeb -a -pweechat-curses -pweechat-plugins
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
+2
View File
@@ -0,0 +1,2 @@
version=2
http://weechat.flashtux.org/download/weechat-(\d.*)\.tar\.bz2
+1 -3
View File
@@ -1,9 +1,7 @@
AUTHORS
BUGS
ChangeLog
COPYING
FAQ
INSTALL
FAQ.fr
NEWS
README
TODO
+2
View File
@@ -0,0 +1,2 @@
debian/tmp/usr/share/locale/
debian/tmp/usr/share/doc/weechat/html usr/share/doc/weechat-common
View File
+1
View File
@@ -0,0 +1 @@
debian/tmp/usr/bin/weechat-curses
+1
View File
@@ -0,0 +1 @@
usr/share/doc/weechat-common usr/share/doc/weechat-curses
+4
View File
@@ -0,0 +1,4 @@
?package(weechat-curses):needs="text" section="Apps/Net" \
title="weechat-curses" \
icon="/usr/share/pixmaps/weechat_icon_32.png" \
command="/usr/bin/weechat-curses"
+1
View File
@@ -0,0 +1 @@
usr/bin/weechat-gtk
+1
View File
@@ -0,0 +1 @@
usr/lib
+1
View File
@@ -0,0 +1 @@
debian/tmp/usr/lib
-1
View File
@@ -1 +0,0 @@
shlibs:Depends=libc6 (>= 2.3.2-1), libncurses5 (>= 5.3.20030510-1)
+22
View File
@@ -0,0 +1,22 @@
# Copyright (c) 2003-2006 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
# (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
#
SUBDIRS = fr en
man_MANS = weechat-curses.1
EXTRA_DIST = $(man_MANS) weechat-doc.css weechat-html-one.xsl weechat-html.xsl
+175
View File
@@ -0,0 +1,175 @@
#!/usr/bin/perl
#
# Copyright (c) 2003-2006 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
# (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
#
#
# Build some XML code for WeeChat doc
# with weechat-curses command
#
@all_lang = ("fr_FR", "en_US");
%all_encodings = ("fr_FR" => "iso-8859-1",
"en_US" => "iso-8859-1");
%all_types = ("fr_FR" => "type",
"en_US" => "type",
"es_ES" => "tipo");
%all_values = ("fr_FR" => "valeurs",
"en_US" => "values",
"es_ES" => "valores");
%all_default = ("fr_FR" => "valeur par défaut",
"en_US" => "default value",
"es_ES" => "valor por defecto");
%all_desc = ("fr_FR" => "description",
"en_US" => "description",
"es_ES" => "descripciĂłn");
$warning_do_not_edit = "\n<!-- ********* WARNING! *********\n\n"
." This file is automatically built with a Perl script. DO NOT EDIT!\n"
."-->\n\n";
foreach $lng (@all_lang)
{
create_commands ($lng, $all_encodings{$lng},
"weechat-curses -w | tail +3", "weechat_commands");
create_commands ($lng, $all_encodings{$lng},
"weechat-curses -i | tail +3", "irc_commands");
create_key_func ($lng, $all_encodings{$lng},
"weechat-curses -f | tail +3", "key_functions");
create_config ($lng, $all_encodings{$lng},
"weechat-curses -c | tail +3", "config");
print "\n";
}
sub create_commands
{
$lang = $_[0];
$lang2 = substr ($lang, 0, 2);
$encoding = $_[1];
$command = $_[2];
$file = $_[3];
print "Creating $lang2/$file.xml ($lang)...\n";
open XML, ">$lang2/$file.xml" or die "Error: can't write file!";
print XML "<?xml version=\"1.0\" encoding=\"$encoding\"?>\n";
print XML $warning_do_not_edit;
$started = 0;
$ENV{"LANG"} = $lang;
foreach (`$command`)
{
if (/\* (.*)/)
{
print XML "</programlisting>\n" if ($started == 1);
$started = 1;
print XML "<command>$1</command>\n";
print XML "<programlisting>";
}
else
{
chomp ($_);
print XML "$_\n";
}
}
print XML "</programlisting>\n";
close XML;
iconv_file ($lang2."/".$file, $encoding);
}
sub create_key_func
{
$lang = $_[0];
$lang2 = substr ($lang, 0, 2);
$encoding = $_[1];
$command = $_[2];
$file = $_[3];
print "Creating $lang2/$file.xml ($lang)...\n";
open XML, ">$lang2/$file.xml" or die "Error: can't write file!";
print XML "<?xml version=\"1.0\" encoding=\"$encoding\"?>\n";
print XML $warning_do_not_edit;
$ENV{"LANG"} = $lang;
foreach (`$command`)
{
if (/\* (.*): (.*)/)
{
print XML "<row>\n";
print XML " <entry><literal>$1</literal></entry>\n";
print XML " <entry>$2</entry>\n";
print XML "</row>\n";
}
}
close XML;
iconv_file ($lang2."/".$file, $encoding);
}
sub create_config
{
$lang = $_[0];
$lang2 = substr ($lang, 0, 2);
$encoding = $_[1];
$command = $_[2];
$file = $_[3];
print "Creating $lang2/$file.xml ($lang)...\n";
open XML, ">$lang2/$file.xml" or die "Error: can't write file!";
print XML "<?xml version=\"1.0\" encoding=\"$encoding\"?>\n";
print XML $warning_do_not_edit;
$type = "";
$values = "";
$default = "";
$desc = "";
$ENV{"LANG"} = $lang;
foreach (`weechat-curses -c`)
{
if (/\* (.*):/)
{
print XML "<row>\n";
print XML " <entry><option>$1</option></entry>\n";
}
elsif (/ \. $all_types{$lang}: (.*)/)
{
$type = $1;
}
elsif (/ \. $all_values{$lang}: (.*)/)
{
$values = $1;
}
elsif (/ \. $all_default{$lang}: (.*)/)
{
$default = $1;
}
elsif (/ \. $all_desc{$lang}: (.*)/)
{
$_ = $1;
s/(.*)/\u$1/;
$desc = $_;
print XML " <entry>".$type."</entry>\n";
print XML " <entry>".$values."</entry>\n";
print XML " <entry>".$default."</entry>\n";
print XML " <entry>".$desc."</entry>\n";
print XML "</row>\n";
}
}
close XML;
iconv_file ($lang2."/".$file, $encoding);
}
sub iconv_file
{
print "Converting $_[0].xml to $_[1]...\n";
system ("iconv -t $encoding -o $_[0].xml.$_[1] $_[0].xml");
system ("mv $_[0].xml.$_[1] $_[0].xml");
}
+59
View File
@@ -0,0 +1,59 @@
# Copyright (c) 2003-2006 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
# (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
#
LANGCODE = en
BOOK = weechat.$(LANGCODE)
BOOK_INCLUDE = weechat_commands.xml irc_commands.xml key_functions.xml config.xml
EXTRA_DIST = $(BOOK).xml $(BOOK_INCLUDE)
docdir = $(datadir)/doc/$(PACKAGE)
all-local: html-stamp
# HTML output with chunks (many pages)
html: html-stamp
html-stamp: $(BOOK).xml $(BOOK_INCLUDE) ../weechat-html.xsl ../weechat-doc.css
mkdir -p html/
xsltproc -o html/ ../weechat-html.xsl $(BOOK).xml || true
cp ../weechat-doc.css html/
touch html-stamp
# HTML output, all in one page
html1: html1-stamp
html1-stamp: $(BOOK).xml $(BOOK_INCLUDE) ../weechat-html-one.xsl ../weechat-doc.css
mkdir -p html1/
xsltproc -o html1/$(BOOK).html ../weechat-html-one.xsl $(BOOK).xml || true
cp ../weechat-doc.css html1/
touch html1-stamp
# install docs
install-data-hook:
$(mkinstalldirs) $(DESTDIR)$(docdir)/html/$(LANGCODE)/
$(INSTALL_DATA) html/* $(DESTDIR)$(docdir)/html/$(LANGCODE)/
# clean
clean-local:
-rm -f *.html *.pdf *.txt
-rm -rf html/ html1/
-rm -f html-stamp html1-stamp
+1183
View File
File diff suppressed because it is too large Load Diff
+444
View File
@@ -0,0 +1,444 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- ********* WARNING! *********
This file is automatically built with a Perl script. DO NOT EDIT!
-->
<command>admin [target]</command>
<programlisting>
find information about the administrator of the server
target: server
</programlisting>
<command>ame message</command>
<programlisting>
send a CTCP action to all channels of all connected servers
message: message to send
</programlisting>
<command>amsg text</command>
<programlisting>
send message to all channels of all connected servers
text: text to send
</programlisting>
<command>away [-all] [message]</command>
<programlisting>
toggle away status
-all: toggle away status on all connected servers
message: message for away (if no message is given, away status is removed)
</programlisting>
<command>ban [channel] [nickname [nickname ...]]</command>
<programlisting>
bans nicks or hosts
channel: channel for ban
nickname: user or host to ban
</programlisting>
<command>ctcp nickname type [arguments]</command>
<programlisting>
send a CTCP message (Client-To-Client Protocol)
nickname: user to send CTCP to
type: CTCP type (examples: "version", "ping", ..)
arguments: arguments for CTCP
</programlisting>
<command>dcc action [nickname [file]]</command>
<programlisting>
starts DCC (file or chat) or close chat
action: 'send' (file) or 'chat' or 'close' (chat)
nickname: nickname to send file or chat
file: filename (on local host)
</programlisting>
<command>dehalfop [nickname [nickname]]</command>
<programlisting>
removes half channel operator status from nickname(s)
</programlisting>
<command>deop [nickname [nickname]]</command>
<programlisting>
removes channel operator status from nickname(s)
</programlisting>
<command>devoice [nickname [nickname]]</command>
<programlisting>
removes voice from nickname(s)
</programlisting>
<command>die</command>
<programlisting>
shutdown the server
</programlisting>
<command>halfop [nickname [nickname]]</command>
<programlisting>
gives half channel operator status to nickname(s)
</programlisting>
<command>info [target]</command>
<programlisting>
get information describing the server
target: server name
</programlisting>
<command>invite nickname channel</command>
<programlisting>
invite a nick on a channel
nickname: nick to invite
channel: channel to invite
</programlisting>
<command>ison nickname [nickname ...]</command>
<programlisting>
check if a nickname is currently on IRC
nickname: nickname
</programlisting>
<command>join channel[,channel] [key[,key]]</command>
<programlisting>
join a channel
channel: channel name to join
key: key to join the channel
</programlisting>
<command>kick [channel] nickname [comment]</command>
<programlisting>
forcibly remove a user from a channel
channel: channel where user is
nickname: nickname to kick
comment: comment for kick
</programlisting>
<command>kickban [channel] nickname [comment]</command>
<programlisting>
kicks and bans a nick from a channel
channel: channel where user is
nickname: nickname to kick and ban
comment: comment for kick
</programlisting>
<command>kill nickname comment</command>
<programlisting>
close client-server connection
nickname: nickname
comment: comment for kill
</programlisting>
<command>links [[server] server_mask]</command>
<programlisting>
list all servernames which are known by the server answering the query
server: this server should answer the query
server_mask: list of servers must match this mask
</programlisting>
<command>list [channel[,channel] [server]]</command>
<programlisting>
list channels and their topic
channel: channel to list
server: server name
</programlisting>
<command>lusers [mask [target]]</command>
<programlisting>
get statistics about the size of the IRC network
mask: servers matching the mask only
target: server for forwarding request
</programlisting>
<command>me message</command>
<programlisting>
send a CTCP action to the current channel
message: message to send
</programlisting>
<command>mode { channel {[+|-]|o|p|s|i|t|n|b|v} [limit] [user] [ban mask] } | { nickname {[+|-]|i|w|s|o} }</command>
<programlisting>
change channel or user mode
channel modes:
channel: channel name to modify
o: give/take channel operator privileges
p: private channel flag
s: secret channel flag
i: invite-only channel flag
t: topic settable by channel operator only flag
n: no messages to channel from clients on the outside
m: moderated channel
l: set the user limit to channel
b: set a ban mask to keep users out
e: set exception mask
v: give/take the ability to speak on a moderated channel
k: set a channel key (password)
user modes:
nickname: nickname to modify
i: mark a user as invisible
s: mark a user for receive server notices
w: user receives wallops
o: operator flag
</programlisting>
<command>motd [target]</command>
<programlisting>
get the "Message Of The Day"
target: server name
</programlisting>
<command>msg receiver[,receiver] text</command>
<programlisting>
send message to a nick or channel
receiver: nick or channel (may be mask, '*' = current channel)
text: text to send
</programlisting>
<command>names [channel[,channel]]</command>
<programlisting>
list nicknames on channels
channel: channel name
</programlisting>
<command>nick [-all] nickname</command>
<programlisting>
change current nickname
-all: set new nickname for all connected servers
nickname: new nickname
</programlisting>
<command>notice nickname text</command>
<programlisting>
send notice message to user
nickname: user to send notice to
text: text to send
</programlisting>
<command>op nickname [nickname]</command>
<programlisting>
gives channel operator status to nickname(s)
</programlisting>
<command>oper user password</command>
<programlisting>
get operator privileges
user/password: used to get privileges on current IRC server
</programlisting>
<command>part [channel[,channel]] [part_message]</command>
<programlisting>
leave a channel
channel: channel name to leave
part_message: part message (displayed to other users)
</programlisting>
<command>ping server1 [server2]</command>
<programlisting>
ping server
server1: server to ping
server2: forward ping to this server
</programlisting>
<command>pong daemon [daemon2]</command>
<programlisting>
answer to a ping message
daemon: daemon who has responded to Ping message
daemon2: forward message to this daemon
</programlisting>
<command>query nickname [text]</command>
<programlisting>
send a private message to a nick
nickname: nickname for private conversation
text: text to send
</programlisting>
<command>quit [quit_message]</command>
<programlisting>
close all connections and quit
quit_message: quit message (displayed to other users)
</programlisting>
<command>quote data</command>
<programlisting>
send raw data to server without parsing
data: raw data to send
</programlisting>
<command>rehash</command>
<programlisting>
tell the server to reload its config file
</programlisting>
<command>restart</command>
<programlisting>
tell the server to restart itself
</programlisting>
<command>service nickname reserved distribution type reserved info</command>
<programlisting>
register a new service
distribution: visibility of service
type: reserved for future usage
</programlisting>
<command>servlist [mask [type]]</command>
<programlisting>
list services currently connected to the network
mask: list only services matching this mask
type: list only services of this type
</programlisting>
<command>squery service text</command>
<programlisting>
deliver a message to a service
service: name of service
text: text to send
</programlisting>
<command>squit server comment</command>
<programlisting>
disconnect server links
server: server name
comment: comment for quit
</programlisting>
<command>stats [query [server]]</command>
<programlisting>
query statistics about server
query: c/h/i/k/l/m/o/y/u (see RFC1459)
server: server name
</programlisting>
<command>summon user [target [channel]]</command>
<programlisting>
give users who are on a host running an IRC server a message asking them to please join IRC
user: username
target: server name
channel: channel name
</programlisting>
<command>time [target]</command>
<programlisting>
query local time from server
target: query time from specified server
</programlisting>
<command>topic [channel] [topic]</command>
<programlisting>
get/set channel topic
channel: channel name
topic: new topic for channel (if topic is "-delete" then topic is deleted)
</programlisting>
<command>trace [target]</command>
<programlisting>
find the route to specific server
target: server
</programlisting>
<command>unban [channel] nickname [nickname ...]</command>
<programlisting>
unbans nicks or hosts
channel: channel for unban
nickname: user or host to unban
</programlisting>
<command>userhost nickname [nickname ...]</command>
<programlisting>
return a list of information about nicknames
nickname: nickname
</programlisting>
<command>users [target]</command>
<programlisting>
list of users logged into the server
target: server
</programlisting>
<command>version [server | nickname]</command>
<programlisting>
gives the version info of nick or server (current or specified)
server: server name
nickname: nickname
</programlisting>
<command>voice [nickname [nickname]]</command>
<programlisting>
gives voice to nickname(s)
</programlisting>
<command>wallops text</command>
<programlisting>
send a message to all currently connected users who have set the 'w' user mode for themselves
text to send
</programlisting>
<command>who [mask ["o"]]</command>
<programlisting>
generate a query which returns a list of information
mask: only information which match this mask
o: only operators are returned according to the mask supplied
</programlisting>
<command>whois [server] nickname[,nickname]</command>
<programlisting>
query information about user(s)
server: server name
nickname: nickname (may be a mask)
</programlisting>
<command>whowas nickname [,nickname [,nickname ...]] [count [target]]</command>
<programlisting>
ask for information about a nickname which no longer exists
nickname: nickname to search
count: number of replies to return (full search if negative number)
target: reply should match this mask
</programlisting>
+187
View File
@@ -0,0 +1,187 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- ********* WARNING! *********
This file is automatically built with a Perl script. DO NOT EDIT!
-->
<row>
<entry><literal>return</literal></entry>
<entry>terminate line</entry>
</row>
<row>
<entry><literal>tab</literal></entry>
<entry>complete word</entry>
</row>
<row>
<entry><literal>backspace</literal></entry>
<entry>delete previous char</entry>
</row>
<row>
<entry><literal>delete</literal></entry>
<entry>delete next char</entry>
</row>
<row>
<entry><literal>delete_end_line</literal></entry>
<entry>delete until end of line</entry>
</row>
<row>
<entry><literal>delete_beginning_line</literal></entry>
<entry>delete until beginning of line</entry>
</row>
<row>
<entry><literal>delete_line</literal></entry>
<entry>delete entire line</entry>
</row>
<row>
<entry><literal>delete_previous_word</literal></entry>
<entry>delete previous word</entry>
</row>
<row>
<entry><literal>delete_next_word</literal></entry>
<entry>delete next word</entry>
</row>
<row>
<entry><literal>clipboard_paste</literal></entry>
<entry>paste current clipboard content</entry>
</row>
<row>
<entry><literal>transpose_chars</literal></entry>
<entry>transpose chars</entry>
</row>
<row>
<entry><literal>home</literal></entry>
<entry>go to beginning of line</entry>
</row>
<row>
<entry><literal>end</literal></entry>
<entry>go to end of line</entry>
</row>
<row>
<entry><literal>left</literal></entry>
<entry>move one char left</entry>
</row>
<row>
<entry><literal>previous_word</literal></entry>
<entry>move to previous word</entry>
</row>
<row>
<entry><literal>right</literal></entry>
<entry>move one char right</entry>
</row>
<row>
<entry><literal>next_word</literal></entry>
<entry>move to next word</entry>
</row>
<row>
<entry><literal>up</literal></entry>
<entry>call previous command in history</entry>
</row>
<row>
<entry><literal>up_global</literal></entry>
<entry>call previous command in global history</entry>
</row>
<row>
<entry><literal>down</literal></entry>
<entry>call next command in history</entry>
</row>
<row>
<entry><literal>down_global</literal></entry>
<entry>call next command in global history</entry>
</row>
<row>
<entry><literal>page_up</literal></entry>
<entry>scroll one page up</entry>
</row>
<row>
<entry><literal>page_down</literal></entry>
<entry>scroll one page down</entry>
</row>
<row>
<entry><literal>scroll_up</literal></entry>
<entry>scroll a few lines up</entry>
</row>
<row>
<entry><literal>scroll_down</literal></entry>
<entry>scroll a few lines down</entry>
</row>
<row>
<entry><literal>scroll_top</literal></entry>
<entry>scroll to top of buffer</entry>
</row>
<row>
<entry><literal>scroll_bottom</literal></entry>
<entry>scroll to bottom of buffer</entry>
</row>
<row>
<entry><literal>nick_beginning</literal></entry>
<entry>display beginning of nicklist</entry>
</row>
<row>
<entry><literal>nick_end</literal></entry>
<entry>display end of nicklist</entry>
</row>
<row>
<entry><literal>nick_page_up</literal></entry>
<entry>scroll nicklist one page up</entry>
</row>
<row>
<entry><literal>nick_page_down</literal></entry>
<entry>scroll nicklist one page down</entry>
</row>
<row>
<entry><literal>jump_smart</literal></entry>
<entry>jump to buffer with activity</entry>
</row>
<row>
<entry><literal>jump_dcc</literal></entry>
<entry>jump to DCC buffer</entry>
</row>
<row>
<entry><literal>jump_raw_data</literal></entry>
<entry>jump to raw IRC data buffer</entry>
</row>
<row>
<entry><literal>jump_last_buffer</literal></entry>
<entry>jump to last buffer</entry>
</row>
<row>
<entry><literal>jump_server</literal></entry>
<entry>jump to server buffer</entry>
</row>
<row>
<entry><literal>jump_next_server</literal></entry>
<entry>jump to next server</entry>
</row>
<row>
<entry><literal>switch_server</literal></entry>
<entry>switch active server on servers buffer</entry>
</row>
<row>
<entry><literal>scroll_previous_highlight</literal></entry>
<entry>scroll to previous highlight in buffer</entry>
</row>
<row>
<entry><literal>scroll_next_highlight</literal></entry>
<entry>scroll to next highlight in buffer</entry>
</row>
<row>
<entry><literal>scroll_unread</literal></entry>
<entry>scroll to first unread line in buffer</entry>
</row>
<row>
<entry><literal>hotlist_clear</literal></entry>
<entry>clear hotlist</entry>
</row>
<row>
<entry><literal>infobar_clear</literal></entry>
<entry>clear infobar</entry>
</row>
<row>
<entry><literal>refresh</literal></entry>
<entry>refresh screen</entry>
</row>
<row>
<entry><literal>grab_key</literal></entry>
<entry>grab a key</entry>
</row>
File diff suppressed because it is too large Load Diff
+205
View File
@@ -0,0 +1,205 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- ********* WARNING! *********
This file is automatically built with a Perl script. DO NOT EDIT!
-->
<command>alias [alias_name [command [arguments]]</command>
<programlisting>
create an alias for a command
alias_name: name of alias
command: command name (WeeChat or IRC command, without first '/')
arguments: arguments for command
</programlisting>
<command>buffer [action | number | [[server] [channel]]]</command>
<programlisting>
manage buffers
action: action to do:
move: move buffer in the list (may be relative, for example -1)
close: close buffer (for channel: same as /part without part message)
list: list opened 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
number: jump to buffer by number
</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>
<programlisting>
clear window(s)
-all: clear all windows
</programlisting>
<command>connect [servername]</command>
<programlisting>
connect to a server
servername: server name to connect
</programlisting>
<command>disconnect [servername]</command>
<programlisting>
disconnect from a server
servername: server name to disconnect
</programlisting>
<command>debug dump | windows</command>
<programlisting>
print debug messages
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
windows: display windows tree
</programlisting>
<command>help [command]</command>
<programlisting>
display help about commands
command: name of a WeeChat or IRC command
</programlisting>
<command>history [clear | value]</command>
<programlisting>
show buffer command history
clear: clear history
value: number of history entries to show
</programlisting>
<command>ignore [mask [[type | command] [channel [server]]]]</command>
<programlisting>
ignore IRC messages and/or hosts
mask: nick or host mask to ignore
type: type of message to ignore (action, ctcp, dcc, pv)
command: IRC command
channel: name of channel for ignore
server: name of server for ignore
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>
<programlisting>
bind/unbind keys
key: bind this key to an internal function or a command (beginning by "/")
unbind: unbind a key
functions: list internal functions for key bindings
reset: restore bindings to the default values and delete ALL personal bindings (use carefully!)
</programlisting>
<command>plugin [load filename] | [autoload] | [reload] | [unload]</command>
<programlisting>
list/load/unload plugins
filename: WeeChat plugin (file) to load
Without argument, /plugin command lists all 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>
<programlisting>
list, add or remove servers
servername: server name, for internal and display use
hostname: name or IP address of server
port: port for server (integer)
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
</programlisting>
<command>save [file]</command>
<programlisting>
save config to disk
file: filename for writing config
</programlisting>
<command>set [option [ = value]]</command>
<programlisting>
set config parameters
option: name of an option (if name is full and no value is given, then help is displayed on option)
value: value for option
</programlisting>
<command>unalias alias_name</command>
<programlisting>
remove an alias
alias_name: name of alias to remove
</programlisting>
<command>unignore [number | [mask [[type | command] [channel [server]]]]]</command>
<programlisting>
unignore IRC messages and/or hosts
number: # of ignore to unignore (number is displayed by list of ignore)
mask: nick or host mask to unignore
type: type of message to unignore (action, ctcp, dcc, pv)
command: IRC command
channel: name of channel for unignore
server: name of server for unignore
For each argument, '*' means all.
Without argument, /unignore command lists all defined ignore.
</programlisting>
<command>upgrade</command>
<programlisting>
upgrade WeeChat without disconnecting from servers
This command run again WeeChat binary, so it should have been compiled installed with a package manager before running this command.
</programlisting>
<command>uptime [-o]</command>
<programlisting>
show WeeChat uptime
-o: send uptime on current channel as an IRC message
</programlisting>
<command>window [list | -1 | +1 | b# | up | down | left | right | splith [pct] | splitv [pct] | resize pct | merge [all]]</command>
<programlisting>
manage windows
list: list opened windows (no parameter implies this list)
-1: jump to previous window
+1: jump to next window
b#: jump to next window displaying buffer number #
up: switch to window above current one
down: switch to window below current one
left: switch to window on the left
right: switch to window on the right
splith: split current window horizontally
splitv: split current window vertically
resize: resize window size, new size is pct%% of parent window
merge: merge window with another (all = keep only one window)
For splith and splitv, pct is a pourcentage which represents size of new window, computed with current window as size reference. For example 25 means create a new window with size = current_size / 4
</programlisting>
+59
View File
@@ -0,0 +1,59 @@
# Copyright (c) 2003-2006 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
# (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
#
LANGCODE = fr
BOOK = weechat.$(LANGCODE)
BOOK_INCLUDE = weechat_commands.xml irc_commands.xml key_functions.xml config.xml
EXTRA_DIST = $(BOOK).xml $(BOOK_INCLUDE)
docdir = $(datadir)/doc/$(PACKAGE)
all-local: html-stamp
# HTML output with chunks (many pages)
html: html-stamp
html-stamp: $(BOOK).xml $(BOOK_INCLUDE) ../weechat-html.xsl ../weechat-doc.css
mkdir -p html/
xsltproc -o html/ ../weechat-html.xsl $(BOOK).xml || true
cp ../weechat-doc.css html/
touch html-stamp
# HTML output, all in one page
html1: html1-stamp
html1-stamp: $(BOOK).xml $(BOOK_INCLUDE) ../weechat-html-one.xsl ../weechat-doc.css
mkdir -p html1/
xsltproc -o html1/$(BOOK).html ../weechat-html-one.xsl $(BOOK).xml || true
cp ../weechat-doc.css html1/
touch html1-stamp
# install docs
install-data-hook:
$(mkinstalldirs) $(DESTDIR)$(docdir)/html/$(LANGCODE)/
$(INSTALL_DATA) html/* $(DESTDIR)$(docdir)/html/$(LANGCODE)/
# clean
clean-local:
-rm -f *.html *.pdf *.txt
-rm -rf html/ html1/
-rm -f html-stamp html1-stamp
+1183
View File
File diff suppressed because it is too large Load Diff
+444
View File
@@ -0,0 +1,444 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- ********* WARNING! *********
This file is automatically built with a Perl script. DO NOT EDIT!
-->
<command>admin [cible]</command>
<programlisting>
trouver les informations sur l'administrateur du serveur
cible: serveur
</programlisting>
<command>ame message</command>
<programlisting>
envoyer une action CTCP à tous les canaux de tous les serveurs connectés
message: message Ă  envoyer
</programlisting>
<command>amsg texte</command>
<programlisting>
envoyer un message à tous les canaux de tous les serveurs connectés
texte: texte Ă  envoyer
</programlisting>
<command>away [-all] [message]</command>
<programlisting>
basculer le statut absent
-all: basculer le statut absent sur tous les serveurs connectés
message: message pour l'absence (si pas de message donné, le statut d'absence est supprimé)
</programlisting>
<command>ban [canal] [pseudo [pseudo ...]]</command>
<programlisting>
bannit des pseudos ou masques
canal: nom du canal pour le bannissement
pseudo: pseudo ou masque pour le bannissement
</programlisting>
<command>ctcp pseudo type [arguments]</command>
<programlisting>
envoyer un message CTCP (Client-To-Client Protocol)
pseudo: utilisateur Ă  qui envoyer le CTCP
type: type de CTCP (exemples: "version", "ping", etc...)
arguments: arguments pour le CTCP
</programlisting>
<command>dcc action [pseudo [fichier]]</command>
<programlisting>
démarre le DCC (fichier ou discussion) ou ferme une discussion
action: 'send' (envoi de fichier) ou 'chat' (discussion) ou 'close' (fermeture discussion)
pseudo: pseudo pour envoyer le fichier ou discuter
fichier: nom du fichier (sur la machine locale)
</programlisting>
<command>dehalfop [pseudo [pseudo]]</command>
<programlisting>
retire le statut de demi-opérateur du canal à/aux nick(s)
</programlisting>
<command>deop [pseudo [pseudo]]</command>
<programlisting>
retire le statut d'opérateur du canal à/aux nick(s)
</programlisting>
<command>devoice [pseudo [pseudo]]</command>
<programlisting>
retire la voix du/des pseudo(s)
</programlisting>
<command>die</command>
<programlisting>
arrĂŞter le serveur
</programlisting>
<command>halfop [pseudo [pseudo]]</command>
<programlisting>
donner le statut de demi-opérateur à un/des utilisateur(s)
</programlisting>
<command>info [cible]</command>
<programlisting>
voir les informations décrivant le serveur
cible: nom du serveur
</programlisting>
<command>invite pseudo canal</command>
<programlisting>
inviter un utilisateur sur un canal
pseudo: utilisateur Ă  inviter
channel: canal pour l'invitation
</programlisting>
<command>ison pseudo [pseudo ...]</command>
<programlisting>
vérifier si un utilisateur est actuellement sur IRC
pseudo: pseudo
</programlisting>
<command>join canal[,canal] [clé[,clé]]</command>
<programlisting>
joindre un canal
canal: nom du canal Ă  rejoindre
clé: clé pour rejoindre le canal
</programlisting>
<command>kick [canal] pseudo [commentaire]</command>
<programlisting>
retirer par la force un utilisateur d'un canal
canal: canal oĂą l'utilisateur se trouve
pseudo: utilisateur à é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
canal: canal oĂą l'utilisateur se trouve
pseudo: utilisateur à éliminer et bannir
commentaire: commentaire pour l'élimination
</programlisting>
<command>kill pseudo commentaire</command>
<programlisting>
fermer la connexion client-serveur
pseudo: utilisateur
commentaire: commentaire pour la mort
</programlisting>
<command>links [[serveur] masque_serveur]</command>
<programlisting>
lister tous les noms de serveurs connus du serveur qui répondent à la requête
serveur: ce serveur doit répondre à la requête
masque_serveur: liste des serveurs correspondant au masque
</programlisting>
<command>list [canal[,canall] [serveur]]</command>
<programlisting>
lister les canaux et leur sujet
canal: canal Ă  lister
serveur: nom du serveur
</programlisting>
<command>lusers [masque [cible]]</command>
<programlisting>
obtenir des statistiques sur la taille du réseau IRC
masque: serveurs qui correspondent au masque seulement
cible: serveur pour faire suivre la requĂŞte
</programlisting>
<command>me message</command>
<programlisting>
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>
<programlisting>
changer le mode du canal ou de l'utilisateur
modes de canaux :
canal: nom du canal Ă  modifier
o: donner/reprendre le statut privilégié d'opérateur
p: indicateur de canal privé
s: indicateur de canal secret
i: indicateur de canal avec invitation seulement
t: le titre est modifiable seulement par un opérateur du canal
n: aucun message au canal depuis l'extérieur
m: canal modéré
l: fixer la limite d'utilisateurs pour le canal
b: paramétrer un masque de banissement pour garder des utilisateurs dehors
e: paramétrer un masque d'exception
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
i: marquer un utilisateur comme invisible
s: marquer un utilisateur pour recevoir les notices du serveur
w: l'utilisateur reçoit les wallops
o: drapeau opérateur
</programlisting>
<command>motd [cible]</command>
<programlisting>
obtenir le message du jour
cible: nom du serveur
</programlisting>
<command>msg cible[,cible] texte</command>
<programlisting>
envoyer un message Ă  un utilisateur ou canal
cible: utilisateur ou canal (peut-ĂŞtre un masque, '*' = canal courant)
texte: texte Ă  envoyer
</programlisting>
<command>names [canal[,canal]]</command>
<programlisting>
lister les utilisateurs sur des canaux
canal: nom du canal
</programlisting>
<command>nick [-all] pseudo</command>
<programlisting>
changer le pseudo courant
-all: définir le nouveau pseudo sur tous les serveurs connectés
pseudo: nouveau pseudo
</programlisting>
<command>notice pseudo texte</command>
<programlisting>
envoyer un message notice Ă  un utilisateur
pseudo: utilisateur cible pour la notice
texte: texte Ă  envoyer
</programlisting>
<command>op pseudo [pseudo]</command>
<programlisting>
donner le statut opérateur à un/des utilisateur(s)
</programlisting>
<command>oper utilisateur mot_de_passe</command>
<programlisting>
obtenir le statut d'opérateur
utilisateur/mot_de_passe: utilisé pour obtenir les privilèges sur le serveur IRC courant
</programlisting>
<command>part [canal[,canall] [message_de_fin]</command>
<programlisting>
quitter un canal
canal: canal Ă  quitter
message_de_fin: message de fin (affiché aux autres utilisateurs)
</programlisting>
<command>ping serveur1 [serveur2]</command>
<programlisting>
pinguer un serveur
serveur1: serveur Ă  pinguer
serveur2: faire suivre le ping Ă  ce serveur
</programlisting>
<command>pong démon [démon2]</command>
<programlisting>
répondre à un message ping
démon: démon qui a répondu au message Ping
démon2: faire suivre le message à ce démon
</programlisting>
<command>query pseudo [texte]</command>
<programlisting>
envoyer un message privé à un utilisateur
pseudo: utilisateur pour la conversation privée
texte: texte Ă  envoyer
</programlisting>
<command>quit [message_de_fin]</command>
<programlisting>
fermer toutes les connexions et quitter
message_de_fin: message de fin (affiché aux autres utilisateurs)
</programlisting>
<command>quote données</command>
<programlisting>
envoyer des données brutes au serveur sans analyse
données: données brutes à envoyer
</programlisting>
<command>rehash</command>
<programlisting>
demander au serveur de recharger son fichier de configuration
</programlisting>
<command>restart</command>
<programlisting>
demander au serveur de redémarrer
</programlisting>
<command>service pseudo réservé distribution type réservé info</command>
<programlisting>
enregister un nouveau service
distribution: visibilité du service
type: réservé pour une utilisation future
</programlisting>
<command>servlist [masque [type]]</command>
<programlisting>
lister les services actuellement connectés au réseau
masque: lister seulement les services qui correspondent Ă  ce masque
type: lister seulement les services de ce type
</programlisting>
<command>squery service texte</command>
<programlisting>
envoyer un message Ă  un service
service: nom du service
texte: texte Ă  envoyer
</programlisting>
<command>squit serveur commentaire</command>
<programlisting>
déconnecter les liens vers un serveur
serveur: nom du serveur
commentaire: commentaire pour quitter
</programlisting>
<command>stats [requĂŞte [serveur]]</command>
<programlisting>
demander des statistiques sur le serveur
requĂŞte: c/h/i/k/l/m/o/y/u (voir la RFC1459)
serveur: nom du serveur
</programlisting>
<command>summon utilisateur [cible [canal]]</command>
<programlisting>
envoyer aux utilisateurs d'un serveur IRC un message leur demandant de rejoindre IRC
utilisateur: nom d'utilisateur
cible: nom du serveur
canal: nom du canal
</programlisting>
<command>time [cible]</command>
<programlisting>
demander l'heure locale de serveur
cible: demander l'heure de ce serveur
</programlisting>
<command>topic [canal] [titre]</command>
<programlisting>
recevoir/définir le titre du canal
canal: nom du canal
titre: nouveau titre pour le canal (si le titre est "-delete" alors le titre est supprimé)
</programlisting>
<command>trace [cible]</command>
<programlisting>
trouver le chemin jusqu'à un serveur spécifique
cible: serveur
</programlisting>
<command>unban [canal] pseudo [pseudo ...]</command>
<programlisting>
supprime le bannissement sur des pseudos ou masques
canal: nom du canal pour supprimer le bannissement
pseudo: pseudo ou masque pour supprimer le bannissement
</programlisting>
<command>userhost pseudo [pseudo ...]</command>
<programlisting>
retourne une liste d'informations sur des utilisateurs
pseudo: pseudo
</programlisting>
<command>users [cible]</command>
<programlisting>
liste des utilisateurs connectés au serveur
cible: serveur
</programlisting>
<command>version [serveur | pseudo]</command>
<programlisting>
retourne la version de l'utilisateur ou du serveur (courant ou spécifié)
serveur: nom du serveur
pseudo: utilisateur
</programlisting>
<command>voice [pseudo [pseudo]]</command>
<programlisting>
donne la voix Ă /aux utilisateur(s)
</programlisting>
<command>wallops texte</command>
<programlisting>
envoyer un message à tous les utilisateurs connectés qui ont activé le mode utilisateur 'w' pour eux-mêmes
texte Ă  envoyer
</programlisting>
<command>who [masque ["o"]]</command>
<programlisting>
génère une requête qui retourne une liste d'information
masque: information qui correspond Ă  ce masque uniquement
o: seul les opérateurs sont retournés correspondant au masque fourni
</programlisting>
<command>whois [serveur] pseudo[,pseudo]</command>
<programlisting>
demande les informations sur le(s) utilisateur(s)
serveur: nom du serveur
pseudo: utilisateur (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
pseudo: pseudo Ă  chercher
nombre: nombre de réponses à retourner (recherche complète si nombre négatif)
cible: la réponse doit correspondre à ce masque
</programlisting>
+187
View File
@@ -0,0 +1,187 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- ********* WARNING! *********
This file is automatically built with a Perl script. DO NOT EDIT!
-->
<row>
<entry><literal>return</literal></entry>
<entry>terminer la ligne</entry>
</row>
<row>
<entry><literal>tab</literal></entry>
<entry>compléter le mot</entry>
</row>
<row>
<entry><literal>backspace</literal></entry>
<entry>effacer le caractère précédent</entry>
</row>
<row>
<entry><literal>delete</literal></entry>
<entry>effacer le caractère suivant</entry>
</row>
<row>
<entry><literal>delete_end_line</literal></entry>
<entry>effacer jusqu'Ă  la fin de la ligne</entry>
</row>
<row>
<entry><literal>delete_beginning_line</literal></entry>
<entry>effacer jusqu'au début de la ligne</entry>
</row>
<row>
<entry><literal>delete_line</literal></entry>
<entry>effacer la ligne entière</entry>
</row>
<row>
<entry><literal>delete_previous_word</literal></entry>
<entry>effacer le mot précédent</entry>
</row>
<row>
<entry><literal>delete_next_word</literal></entry>
<entry>effacer le mot suivant</entry>
</row>
<row>
<entry><literal>clipboard_paste</literal></entry>
<entry>coller le contenu du presse-papier</entry>
</row>
<row>
<entry><literal>transpose_chars</literal></entry>
<entry>inverser les caractères</entry>
</row>
<row>
<entry><literal>home</literal></entry>
<entry>aller au début de la ligne</entry>
</row>
<row>
<entry><literal>end</literal></entry>
<entry>aller Ă  la fin de la ligne</entry>
</row>
<row>
<entry><literal>left</literal></entry>
<entry>se déplacer d'un caractère à gauche</entry>
</row>
<row>
<entry><literal>previous_word</literal></entry>
<entry>se déplacer au mot précédent</entry>
</row>
<row>
<entry><literal>right</literal></entry>
<entry>se déplacer d'un caractère à droite</entry>
</row>
<row>
<entry><literal>next_word</literal></entry>
<entry>se déplacer au mot suivant</entry>
</row>
<row>
<entry><literal>up</literal></entry>
<entry>appeler la commande précédente dans l'historique</entry>
</row>
<row>
<entry><literal>up_global</literal></entry>
<entry>appeler la commande précédente dans l'historique global</entry>
</row>
<row>
<entry><literal>down</literal></entry>
<entry>appeler la commande suivante dans l'historique</entry>
</row>
<row>
<entry><literal>down_global</literal></entry>
<entry>appeler la commande suivante dans l'historique global</entry>
</row>
<row>
<entry><literal>page_up</literal></entry>
<entry>faire défiler d'une page vers le haut</entry>
</row>
<row>
<entry><literal>page_down</literal></entry>
<entry>faire défiler d'une page vers le bas</entry>
</row>
<row>
<entry><literal>scroll_up</literal></entry>
<entry>faire défiler de quelques lignes vers le haut</entry>
</row>
<row>
<entry><literal>scroll_down</literal></entry>
<entry>faire défiler de quelques lignes vers le bas</entry>
</row>
<row>
<entry><literal>scroll_top</literal></entry>
<entry>faire défiler jusqu'au début du tampon</entry>
</row>
<row>
<entry><literal>scroll_bottom</literal></entry>
<entry>faire défiler jusqu'à la fin du tampon</entry>
</row>
<row>
<entry><literal>nick_beginning</literal></entry>
<entry>afficher le début de la liste des pseudos</entry>
</row>
<row>
<entry><literal>nick_end</literal></entry>
<entry>afficher la fin de la liste des pseudos</entry>
</row>
<row>
<entry><literal>nick_page_up</literal></entry>
<entry>faire défiler la liste des pseudos d'une page vers le haut</entry>
</row>
<row>
<entry><literal>nick_page_down</literal></entry>
<entry>faire défiler la liste des pseudos d'une page vers le bas</entry>
</row>
<row>
<entry><literal>jump_smart</literal></entry>
<entry>sauter au tampon avec de l'activité</entry>
</row>
<row>
<entry><literal>jump_dcc</literal></entry>
<entry>sauter au tampon DCC</entry>
</row>
<row>
<entry><literal>jump_raw_data</literal></entry>
<entry>sauter au tampon IRC brut</entry>
</row>
<row>
<entry><literal>jump_last_buffer</literal></entry>
<entry>sauter au dernier tampon</entry>
</row>
<row>
<entry><literal>jump_server</literal></entry>
<entry>sauter au tampon du serveur</entry>
</row>
<row>
<entry><literal>jump_next_server</literal></entry>
<entry>sauter au prochain serveur</entry>
</row>
<row>
<entry><literal>switch_server</literal></entry>
<entry>bascule de serveur actif sur le tampon des serveurs</entry>
</row>
<row>
<entry><literal>scroll_previous_highlight</literal></entry>
<entry>scroller 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>
</row>
<row>
<entry><literal>scroll_unread</literal></entry>
<entry>scroller jusqu'à la première ligne non lue du tampon</entry>
</row>
<row>
<entry><literal>hotlist_clear</literal></entry>
<entry>effacer la liste d'activité</entry>
</row>
<row>
<entry><literal>infobar_clear</literal></entry>
<entry>effacer la barre d'infos</entry>
</row>
<row>
<entry><literal>refresh</literal></entry>
<entry>rafraîchir l'écran</entry>
</row>
<row>
<entry><literal>grab_key</literal></entry>
<entry>capturer une touche</entry>
</row>
File diff suppressed because it is too large Load Diff
+205
View File
@@ -0,0 +1,205 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- ********* WARNING! *********
This file is automatically built with a Perl script. DO NOT EDIT!
-->
<command>alias [nom_alias [commande [paramètres]]</command>
<programlisting>
créer un alias pour une commande
nom_alias: nom de l'alias
commande: nom de la commande (commande WeeChat ou IRC, sans le premier '/')
paramètres: paramètres pour la commande
</programlisting>
<command>buffer [action | nombre | [[serveur] [canal]]]</command>
<programlisting>
gestion des tampons
action: action Ă  effectuer:
move: déplacer le tampon dans la liste (peut être relatif, par exemple -1)
close: fermer le tampon (pour un canal: équivalent à /part sans message de fin)
list: liste les tampons ouverts (pas de paramètre affiche cette liste)
notify: fixer le niveau de notification (0=jamais, 1=highlight, 2=1+msg, 3=2+join/part)
serveur
canal: sauter au tampon par serveur et/ou nom de canal
nombre: sauter au tampon qui a ce numéro
</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>
<programlisting>
effacer la/les fenĂŞtre(s)
-all: effacer toutes les fenĂŞtres
</programlisting>
<command>connect [nom_serveur]</command>
<programlisting>
se connecter Ă  un serveur
nom_serveur: nom du serveur pour se connecter
</programlisting>
<command>disconnect [nom_serveur]</command>
<programlisting>
se déconnecter d'un serveur
nom_serveur: nom du serveur pour se déconnecter
</programlisting>
<command>debug dump | 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)
windows: affiche l'arbre des fenĂŞtres
</programlisting>
<command>help [commande]</command>
<programlisting>
afficher l'aide sur les commandes
commande: nom d'une commande WeeChat ou IRC
</programlisting>
<command>history [clear | valeur]</command>
<programlisting>
affiche l'historique des commandes du tampon
clear: effacer l'historique
valeur: nombre d'entrées dans l'historique à afficher
</programlisting>
<command>ignore [masque [[type | commande] [canal [serveur]]]]</command>
<programlisting>
ignorer des messages IRC et/ou des masques
masque: pseudo ou masque Ă  ignorer
type: type de message Ă  ignorer (action, ctcp, dcc, pv)
commande: commande IRC
canal: nom du canal pour le ignore
serveur: nom du serveur pour le ignore
Pour chaque paramètre, '*' signifie tou(te)s.
Sans paramètres, la commande /ignore liste les ignore définis.
</programlisting>
<command>key [touche fonction/commande] [unbind touche] [functions] [reset -yes]</command>
<programlisting>
associer/libérer des touches
touche: 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
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>
<programlisting>
liste/charge/décharge des extensions
fichier: extension WeeChat (fichier) Ă  charger
Sans paramètre, la commande /plugin liste toutes 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>
<programlisting>
liste, ajoute ou retire des serveurs
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)
ipv6: utiliser le protocole IPv6
ssl: utiliser le protocole SSL
mot_de_passe: mot de passe pour le serveur
pseudo1: premier pseudo pour le serveur
pseudo2: pseudo alternatif pour le serveur
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
</programlisting>
<command>set [option [ = valeur]]</command>
<programlisting>
modifier des paramètres de configuration
option: nom de l'option (si le nom est complet et qu'aucune valeur n'est donnée, alors l'aide sur l'option est affichée)
valeur: valeur pour l'option
</programlisting>
<command>unalias nom_alias</command>
<programlisting>
supprimer un alias
nom_alias: nom de l'alias Ă  supprimer
</programlisting>
<command>unignore [nombre | [masque [[type | commande] [canal [serveur]]]]]</command>
<programlisting>
supprimer le ignore des messages IRC et/ou des masques
nombre: numéro de ignore à supprimer (le nombre est affiché sur la liste des ignore)
masque: pseudo ou masque Ă  ignorer
type: type de message Ă  ignorer (action, ctcp, dcc, pv)
commande: commande IRC
canal: nom du canal pour le ignore
serveur: nom du serveur pour le ignore
Pour chaque paramètre, '*' signifie tou(te)s.
Sans paramètre, /ignore liste les ignore définis.
</programlisting>
<command>upgrade</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.
</programlisting>
<command>uptime [-o]</command>
<programlisting>
montrer l'uptime de WeeChat
-o: envoyer l'uptime sur le canal courant en tant que message IRC
</programlisting>
<command>window [list | -1 | +1 | b# | up | down | left | right | splith [pct] | splitv [ptc] | resize pct | merge [all]]</command>
<programlisting>
gestion des fenĂŞtres
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 n°#
up: saute Ă  la fenĂŞtre au dessus
down: saute Ă  la fenĂŞtre au dessous
left: saute Ă  la fenĂŞtre Ă  gauche
right: saute Ă  la fenĂŞtre Ă  droite
splith: éclate la fenêtre en deux horizontalement
splitv: éclate la fenêtre en deux verticalement
resize: redimensionne une fenĂŞtre, la nouvelle taille est pct%% de la fenĂŞtre parent
merge: fusionne la fenĂŞtre avec une autre
Pour splith et splitv, pct est un pourcentage qui représente la taille de la nouvelle fenêtre, calculée par rapport à la taille de la fenêtre courante. Par exemple 25 signifie créer une fenêtre qui a pour taille: taille_courante / 4
</programlisting>
+93
View File
@@ -0,0 +1,93 @@
.TH WEECHAT 1 "March 2006" "FlashCode"
.SH NAME
weechat-curses \- Wee Enhanced Environment for Chat (Curses version)
.SH SYNOPSIS
.B weechat-curses
.RI [ options... ]
or
.RI [ url... ]
.br
.SH DESCRIPTION
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).
It is compliant with RFCs 1459, 2810, 2811, 2812, and 2813.
.SH OPTIONS
.TP
.B \-a, \-\-no\-connect
.br
disable auto-connect to servers at startup
.TP
.B \-c, \-\-config
.br
display config file help (list of options)
.TP
.B \-d, \-\-dir <dir>
.br
set WeeChat home dir
.TP
.B \-f, \-\-key\-functions
.br
display internal functions for keys
.TP
.B \-h, \-\-help
.br
display summary of options
.TP
.B \-i, \-\-irc\-commands
.br
display IRC commands
.TP
.B \-k, \-\-keys
.br
display default keys
.TP
.B \-l, \-\-license
.br
display program license
.TP
.B \-p, \-\-no\-plugin
.br
don't load any plugin at startup
.TP
.B \-v, \-\-version
.br
display WeeChat version
.TP
.B \-w, \-\-weechat\-commands
.br
display WeeChat commands
.SH URL
WeeChat can use an URL (Uniform Resource Locator) to automatically connect
to an IRC server. These are in the following form:
.TP
.B irc[6][s]://[[nickname][:password]@]server[:port][/[#&+!]channel[,channel...]]
.TP
Exemple to join WeeChat channel support with nick "FlashCode":
irc://FlashCode@irc.freenode.net/weechat
.SH FILES
.TP
.B $HOME/.weechat/weechat.rc
configuration file for WeeChat
.TP
.B $HOME/.weechat/weechat.log
WeeChat log file
.SH AUTHOR
WeeChat is written by FlashCode <flashcode@flashtux.org>
.br
WeeChat on the web:
.UR
http://weechat.flashtux.org
.br
Get support there:
.UR
http://weechat.flashtux.org/support.php
.UE
+50
View File
@@ -0,0 +1,50 @@
/*
* WeeChat doc CSS
* (c) 2006 by FlashCode <flashcode@flashtux.org>
*/
body {
font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
font-size: 12px;
}
table {
font-size: 12px;
}
.informaltable table {
font-size: 11px;
font-family: Verdana;
border-collapse: collapse;
}
.informaltable table th {
padding: 2px 5px 2px 5px;
border: solid 1px #AAAAAA;
background-color: #DDDDFF;
}
.informaltable table td {
padding: 2px 5px 2px 5px;
border: solid 1px #AAAAAA;
}
.oddrow {
background-color: #F0F0F0;
}
.synopsis {
font-size: 11px;
}
.programlisting {
font-size: 11px;
}
pre.screen {
font-size: 11px;
background-color: #F5F5F5;
border: solid 1px #CCCCCC;
padding: 4px;
margin: 0 40px 0 40px;
}
+27
View File
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl"/>
<xsl:output indent="yes"/>
<xsl:param name="chunk.section.depth" select="2"/>
<xsl:param name="chunk.quietly" select="1"/>
<xsl:param name="chunk.first.sections" select="1"/>
<xsl:param name="generate.section.toc.level" select="3"/>
<xsl:param name="html.stylesheet">weechat-doc.css</xsl:param>
<xsl:template name="tr.attributes">
<xsl:param name="row" select="."/>
<xsl:param name="rownum" select="0"/>
<xsl:if test="not(ancestor::table/@tabstyle = 'unstriped')">
<xsl:if test="$rownum mod 2 = 0">
<xsl:attribute name="class">oddrow</xsl:attribute>
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
+27
View File
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl"/>
<xsl:output indent="yes"/>
<xsl:param name="chunk.section.depth" select="2"/>
<xsl:param name="chunk.quietly" select="1"/>
<xsl:param name="chunk.first.sections" select="1"/>
<xsl:param name="generate.section.toc.level" select="3"/>
<xsl:param name="html.stylesheet">weechat-doc.css</xsl:param>
<xsl:template name="tr.attributes">
<xsl:param name="row" select="."/>
<xsl:param name="rownum" select="0"/>
<xsl:if test="not(ancestor::table/@tabstyle = 'unstriped')">
<xsl:if test="$rownum mod 2 = 0">
<xsl:attribute name="class">oddrow</xsl:attribute>
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
+7
View File
@@ -0,0 +1,7 @@
DOMAIN = $(PACKAGE)
subdir = po
top_builddir = ..
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
COPYRIGHT_HOLDER =
EXTRA_LOCALE_CATEGORIES =
MSGID_BUGS_ADDRESS = flashcode@flashtux.org
+46
View File
@@ -0,0 +1,46 @@
./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-input.c
./src/gui/curses/gui-display.c
./src/gui/gtk/gui-display.c
./src/gui/gtk/gui-input.c
./src/gui/gui-action.c
./src/gui/gui-common.c
./src/gui/gui-keyboard.c
./src/gui/gui.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/weechat.c
./src/common/weechat.h
./src/common/weeconfig.c
./src/common/weeconfig.h
./src/common/weelist.c
./src/common/weelist.h
+5365
View File
File diff suppressed because it is too large Load Diff
+5438
View File
File diff suppressed because it is too large Load Diff
+5429
View File
File diff suppressed because it is too large Load Diff
+5331
View File
File diff suppressed because it is too large Load Diff
+19
View File
@@ -0,0 +1,19 @@
# Sed script that remove the POT-Creation-Date line in the header entry
# from a POT file.
#
# The distinction between the first and the following occurrences of the
# pattern is achieved by looking at the hold space.
/^"POT-Creation-Date: .*"$/{
x
# Test if the hold space is empty.
s/P/P/
ta
# Yes it was empty. First occurrence. Remove the line.
g
d
bb
:a
# The hold space was nonempty. Following occurrences. Do nothing.
x
:b
}
+4999
View File
File diff suppressed because it is too large Load Diff
-91
View File
@@ -1,91 +0,0 @@
# Copyright (c) 2003 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
# (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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
CC=gcc
OPTIONS=-Wall -W -pipe -O2
OUTPUT=weechat
OBJS=weechat.o config.o command.o completion.o history.o
OBJS_IRC=irc/irc.a
OBJS_GUI=gui/gui.a
# WeeChat with Curses interface
ifeq ($(GUI), curses)
LIBS_CURSES=-lcurses
DEFINES=WEE_CURSES
curses: $(OBJS) $(OBJS_IRC) $(OBJS_GUI)
$(CC) $(OPTIONS) $(OBJS) $(OBJS_IRC) $(OBJS_GUI) -o $(OUTPUT) $(LIBS_CURSES)
endif
# WeeChat with Gtk+ interface
ifeq ($(GUI), gtk)
OBJS_GTK=gui-gtk.o
LIBS_GTK=
DEFINES=WEE_GTK
gtk: $(OBJS) $(OBJS_IRC) $(OBJS_GUI)
$(CC) $(OPTIONS) $(OBJS) $(OBJS_IRC) $(OBJS_GUI) -o $(OUTPUT) $(LIBS_GTK)
endif
# WeeChat with Qt interface
ifeq ($(GUI), qt)
OBJS_QT=gui-qt.o
LIBS_QT=
DEFINES=WEE_QT
qt: $(OBJS) $(OBJS_IRC) $(OBJS_GUI)
$(CC) $(OPTIONS) $(OBJS) $(OBJS_IRC) $(OBJS_GUI) -o $(OUTPUT) $(LIBS_QT)
endif
# WeeChat with Text interface
ifeq ($(GUI), text)
OBJS_TEXT=gui-text.o
LIBS_TEXT=
DEFINES=WEE_TEXT
text: $(OBJS) $(OBJS_IRC) $(OBJS_GUI)
$(CC) $(OPTIONS) $(OBJS) $(OBJS_IRC) $(OBJS_GUI) -o $(OUTPUT) $(LIBS_TEXT)
endif
all:
make curses GUI=curses
$(OBJS):
$(CC) $(OPTIONS) -o $@ -c $< $(INCLUDES) -D$(DEFINES)
irc/irc.a:
cd irc && make
gui/gui.a:
cd gui && make $(GUI) GUI=$(GUI)
clean:
rm -f *.o *.a *~ core $(OUTPUT)
cd irc && make clean
cd gui && make clean
command.o: command.c weechat.h command.h irc/irc.h gui/gui.h completion.h \
history.h config.h
completion.o: completion.c weechat.h completion.h irc/irc.h gui/gui.h \
history.h command.h
config.o: config.c weechat.h config.h irc/irc.h gui/gui.h completion.h \
history.h
history.o: history.c weechat.h history.h gui/gui.h completion.h
weechat.o: weechat.c weechat.h config.h command.h irc/irc.h gui/gui.h \
completion.h history.h
+18
View File
@@ -0,0 +1,18 @@
# Copyright (c) 2003-2006 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
# (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
#
SUBDIRS = common irc plugins gui
-670
View File
@@ -1,670 +0,0 @@
/*
* Copyright (c) 2003 by FlashCode <flashcode@flashtux.org>
* Bounga <bounga@altern.org>
* Xahlexx <xahlexx@tuxisland.org>
* See README for License detail.
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* command.c: WeeChat internal commands */
#include <stdlib.h>
#include <string.h>
#include "weechat.h"
#include "command.h"
#include "irc/irc.h"
#include "config.h"
#include "gui/gui.h"
/* WeeChat internal commands */
t_weechat_command weechat_commands[] =
{ { "alias", N_("create an alias for a command"),
N_("[alias_name [command [arguments]]"),
N_("alias_name: name of alias\ncommand: command name (" WEECHAT_NAME
" or IRC command)\n" "arguments: arguments for command"),
0, MAX_ARGS, weechat_cmd_alias, NULL },
{ "clear", N_("clear window(s)"),
N_("[-all]"),
N_("-all: clear all windows"),
0, 1, weechat_cmd_clear, NULL },
{ "help", N_("display help about commands"),
N_("[command]"), N_("command: name of a " WEECHAT_NAME " or IRC command"),
0, 1, weechat_cmd_help, NULL },
{ "set", N_("set config parameters"),
N_("[option [value]]"), N_("option: name of an option\nvalue: value for option"),
0, 2, weechat_cmd_set, NULL },
{ "unalias", N_("remove an alias"),
N_("alias_name"), N_("alias_name: name of alias to remove"),
1, 1, weechat_cmd_unalias, NULL },
{ NULL, NULL, NULL, NULL, 0, 0, NULL, NULL }
};
t_index_command *index_commands;
t_index_command *last_index_command;
/*
* index_find_pos: find position for a command index (for sorting index)
*/
t_index_command *
index_command_find_pos (char *command)
{
t_index_command *ptr_index;
for (ptr_index = index_commands; ptr_index; ptr_index = ptr_index->next_index)
{
if (strcasecmp (command, ptr_index->command_name) < 0)
return ptr_index;
}
return NULL;
}
/*
* index_command_insert_sorted: insert index into sorted list
*/
void
index_command_insert_sorted (t_index_command *index)
{
t_index_command *pos_index;
pos_index = index_command_find_pos (index->command_name);
if (index_commands)
{
if (pos_index)
{
/* insert index into the list (before index found) */
index->prev_index = pos_index->prev_index;
index->next_index = pos_index;
if (pos_index->prev_index)
pos_index->prev_index->next_index = index;
else
index_commands = index;
pos_index->prev_index = index;
}
else
{
/* add index to the end */
index->prev_index = last_index_command;
index->next_index = NULL;
last_index_command->next_index = index;
last_index_command = index;
}
}
else
{
index->prev_index = NULL;
index->next_index = NULL;
index_commands = index;
last_index_command = index;
}
return;
}
/*
* index_command_build: build an index of commands (internal, irc and alias)
* This list will be sorted, and used for completion
*/
void
index_command_build ()
{
int i;
t_index_command *new_index;
index_commands = NULL;
last_index_command = NULL;
i = 0;
while (weechat_commands[i].command_name)
{
if ((new_index = ((t_index_command *) malloc (sizeof (t_index_command)))))
{
new_index->command_name = strdup (weechat_commands[i].command_name);
index_command_insert_sorted (new_index);
}
i++;
}
i = 0;
while (irc_commands[i].command_name)
{
if (irc_commands[i].cmd_function_args || irc_commands[i].cmd_function_1arg)
{
if ((new_index = ((t_index_command *) malloc (sizeof (t_index_command)))))
{
new_index->command_name = strdup (irc_commands[i].command_name);
index_command_insert_sorted (new_index);
}
}
i++;
}
}
/*
* explode_string: explode a string according to separators
*/
char **
explode_string (char *string, char *separators, int num_items_max,
int *num_items)
{
int i, n_items;
char **array;
char *ptr, *ptr1, *ptr2;
if (num_items != NULL)
*num_items = 0;
n_items = num_items_max;
if (string == NULL)
return NULL;
if (num_items_max == 0)
{
/* calculate number of items */
ptr = string;
i = 1;
while ((ptr = strpbrk (ptr, separators)))
{
while (strchr (separators, ptr[0]) != NULL)
ptr++;
i++;
}
n_items = i;
}
array =
(char **) malloc ((num_items_max ? n_items : n_items + 1) *
sizeof (char *));
ptr1 = string;
ptr2 = string;
for (i = 0; i < n_items; i++)
{
while (strchr (separators, ptr1[0]) != NULL)
ptr1++;
if (i == (n_items - 1) || (ptr2 = strpbrk (ptr1, separators)) == NULL)
if ((ptr2 = strchr (ptr1, '\r')) == NULL)
if ((ptr2 = strchr (ptr1, '\n')) == NULL)
ptr2 = strchr (ptr1, '\0');
if ((ptr1 == NULL) || (ptr2 == NULL))
{
array[i] = NULL;
}
else
{
if (ptr2 - ptr1 > 0)
{
array[i] =
(char *) malloc ((ptr2 - ptr1 + 1) * sizeof (char));
array[i] = strncpy (array[i], ptr1, ptr2 - ptr1);
array[i][ptr2 - ptr1] = '\0';
ptr1 = ++ptr2;
}
else
{
array[i] = NULL;
}
}
}
if (num_items_max == 0)
{
array[i] = NULL;
if (num_items != NULL)
*num_items = i;
}
else
{
if (num_items != NULL)
*num_items = num_items_max;
}
return array;
}
/*
* exec_weechat_command: executes a command (WeeChat internal or IRC)
* returns: 1 if command was executed succesfully
* 0 if error (command not executed)
*/
int
exec_weechat_command (t_irc_server *server, char *string)
{
int i, j, argc, return_code;
char *pos, *ptr_args, **argv;
if ((!string[0]) || (string[0] != '/'))
return 0;
/* look for end of command */
ptr_args = NULL;
pos = strchr (string, ' ');
if (pos)
{
pos[0] = '\0';
pos++;
while (pos[0] == ' ')
pos++;
ptr_args = pos;
if (!ptr_args[0])
ptr_args = NULL;
}
argv = explode_string (ptr_args, " ", 0, &argc);
for (i = 0; weechat_commands[i].command_name; i++)
{
if (strcasecmp (weechat_commands[i].command_name, string + 1) == 0)
{
if ((argc < weechat_commands[i].min_arg)
|| (argc > weechat_commands[i].max_arg))
{
if (weechat_commands[i].min_arg ==
weechat_commands[i].max_arg)
gui_printf (NULL,
_("%s wrong argument count for "
WEECHAT_NAME " command '%s' "
"(expected: %d arg%s)\n"),
WEECHAT_ERROR,
string + 1,
weechat_commands[i].max_arg,
(weechat_commands[i].max_arg >
1) ? "s" : "");
else
gui_printf (NULL,
_("%s wrong argument count for "
WEECHAT_NAME " command '%s' "
"(expected: between %d and %d arg%s)\n"),
WEECHAT_ERROR,
string + 1,
weechat_commands[i].min_arg,
weechat_commands[i].max_arg,
(weechat_commands[i].max_arg >
1) ? "s" : "");
}
else
{
if (weechat_commands[i].cmd_function_args != NULL)
return_code = (int) (weechat_commands[i].cmd_function_args)
(argc, argv);
else
return_code = (int) (weechat_commands[i].cmd_function_1arg)
(ptr_args);
if (return_code < 0)
gui_printf (NULL,
_("%s " WEECHAT_NAME " command \"%s\" failed\n"),
WEECHAT_ERROR, string + 1);
}
if (argv)
{
for (j = 0; argv[j]; j++)
free (argv[j]);
free (argv);
}
return 1;
}
}
for (i = 0; irc_commands[i].command_name; i++)
{
if (strcasecmp (irc_commands[i].command_name, string + 1) == 0)
{
if ((argc < irc_commands[i].min_arg)
|| (argc > irc_commands[i].max_arg))
{
if (irc_commands[i].min_arg == irc_commands[i].max_arg)
gui_printf
(NULL,
_("%s wrong argument count for IRC command '%s' "
"(expected: %d arg%s)\n"),
WEECHAT_ERROR,
string + 1,
irc_commands[i].max_arg,
(irc_commands[i].max_arg > 1) ? "s" : "");
else
gui_printf
(NULL,
_("%s wrong argument count for IRC command '%s' "
"(expected: between %d and %d arg%s)\n"),
WEECHAT_ERROR,
string + 1,
irc_commands[i].min_arg, irc_commands[i].max_arg,
(irc_commands[i].max_arg > 1) ? "s" : "");
}
else
{
if ((irc_commands[i].need_connection) &&
((!server) || (!server->is_connected)))
{
gui_printf (NULL,
_("%s command '%s' needs a server connection!\n"),
WEECHAT_ERROR, irc_commands[i].command_name);
return 0;
}
if (irc_commands[i].cmd_function_args != NULL)
return_code = (int) (irc_commands[i].cmd_function_args)
(server, argc, argv);
else
return_code = (int) (irc_commands[i].cmd_function_1arg)
(server, ptr_args);
if (return_code < 0)
gui_printf (NULL,
_("%s IRC command \"%s\" failed\n"),
WEECHAT_ERROR, string + 1);
}
if (argv)
{
for (j = 0; argv[j]; j++)
free (argv[j]);
free (argv);
}
return 1;
}
}
gui_printf (server->window,
_("%s unknown command '%s' (type /help for help)\n"),
WEECHAT_ERROR,
string + 1);
if (argv)
{
for (j = 0; argv[j]; j++)
free (argv[j]);
free (argv);
}
return 0;
}
/*
* user_command: interprets user command (if beginning with '/')
* any other text is sent to the server, if connected
*/
void
user_command (t_irc_server *server, char *command)
{
t_irc_nick *ptr_nick;
if ((!command) || (command[0] == '\r') || (command[0] == '\n'))
return;
if ((command[0] == '/') && (command[1] != '/'))
{
/* WeeChat internal command (or IRC command) */
exec_weechat_command (server, command);
}
else
{
if ((command[0] == '/') && (command[1] == '/'))
command++;
if (!WIN_IS_SERVER(gui_current_window))
{
server_sendf (server, "PRIVMSG %s :%s\r\n",
CHANNEL(gui_current_window)->name,
command);
if (WIN_IS_PRIVATE(gui_current_window))
{
gui_printf_color_type (CHANNEL(gui_current_window)->window,
MSG_TYPE_NICK,
COLOR_WIN_CHAT_DARK, "<");
gui_printf_color_type (CHANNEL(gui_current_window)->window,
MSG_TYPE_NICK,
COLOR_WIN_NICK_SELF,
"%s", server->nick);
gui_printf_color_type (CHANNEL(gui_current_window)->window,
MSG_TYPE_NICK,
COLOR_WIN_CHAT_DARK, "> ");
gui_printf_color_type (CHANNEL(gui_current_window)->window,
MSG_TYPE_MSG,
COLOR_WIN_CHAT, "%s\n", command);
}
else
{
ptr_nick = nick_search (CHANNEL(gui_current_window), server->nick);
if (ptr_nick)
{
irc_display_nick (CHANNEL(gui_current_window)->window, ptr_nick,
MSG_TYPE_NICK, 1, 1, 0);
gui_printf_color (CHANNEL(gui_current_window)->window,
COLOR_WIN_CHAT, "%s\n", command);
}
else
gui_printf (server->window,
_("%s cannot find nick for sending message\n"),
WEECHAT_ERROR);
}
}
else
gui_printf (server->window, _("This window is not a channel!\n"));
}
}
/*
* weechat_cmd_alias: display or create alias
*/
int
weechat_cmd_alias (int argc, char **argv)
{
if (argc == 0)
{
/* List all aliases */
}
argv = NULL;
gui_printf (NULL, _("(TODO) \"/alias\" command not developed!\n"));
return 0;
}
/*
* weechat_cmd_clear: display or create alias
*/
int
weechat_cmd_clear (int argc, char **argv)
{
if (argc == 1)
{
if (strcmp (argv[0], "-all") == 0)
gui_window_clear_all ();
else
{
gui_printf (NULL,
_("unknown parameter \"%s\" for /clear command\n"),
argv[0]);
return -1;
}
}
else
gui_window_clear (gui_current_window);
return 0;
}
/*
* weechat_cmd_help: display help
*/
int
weechat_cmd_help (int argc, char **argv)
{
int i;
if (argc == 0)
{
gui_printf (NULL,
_("> List of " WEECHAT_NAME " internal commands:\n"));
for (i = 0; weechat_commands[i].command_name; i++)
gui_printf (NULL, " %s - %s\n",
weechat_commands[i].command_name,
weechat_commands[i].command_description);
gui_printf (NULL, _("> List of IRC commands:\n"));
for (i = 0; irc_commands[i].command_name; i++)
if (irc_commands[i].cmd_function_args || irc_commands[i].cmd_function_1arg)
gui_printf (NULL, " %s - %s\n",
irc_commands[i].command_name,
irc_commands[i].command_description);
}
if (argc == 1)
{
for (i = 0; weechat_commands[i].command_name; i++)
{
if (strcasecmp (weechat_commands[i].command_name, argv[0]) == 0)
{
gui_printf
(NULL,
_("> Help on " WEECHAT_NAME " internal command '%s':\n"),
weechat_commands[i].command_name);
gui_printf (NULL,
_("Syntax: /%s %s\n"),
weechat_commands[i].command_name,
(weechat_commands[i].
arguments) ? weechat_commands[i].
arguments : "");
if (weechat_commands[i].arguments_description)
{
gui_printf (NULL, "%s\n",
weechat_commands[i].
arguments_description);
}
return 0;
}
}
for (i = 0; irc_commands[i].command_name; i++)
{
if (strcasecmp (irc_commands[i].command_name, argv[0]) == 0)
{
gui_printf (NULL,
_("> Help on IRC command '%s':\n"),
irc_commands[i].command_name);
gui_printf (NULL, _("Syntax: /%s %s\n"),
irc_commands[i].command_name,
(irc_commands[i].arguments) ?
irc_commands[i].arguments : "");
if (irc_commands[i].arguments_description)
{
gui_printf (NULL, "%s\n",
irc_commands[i].
arguments_description);
}
return 0;
}
}
gui_printf (NULL,
_("No help available, \"%s\" is an unknown command\n"),
argv[0]);
}
return 0;
}
/*
* weechat_cmd_set: set options
*/
int
weechat_cmd_set (int argc, char **argv)
{
int i, j, section_displayed;
char *color_name;
/* TODO: complete /set command */
for (i = 0; i < CONFIG_NUMBER_SECTIONS; i++)
{
section_displayed = 0;
if (i != CONFIG_SECTION_SERVER)
{
for (j = 0; weechat_options[i][j].option_name; j++)
{
if ((argc == 0) ||
((argc > 0)
&& (strstr (weechat_options[i][j].option_name, argv[0])
!= NULL)))
{
if (!section_displayed)
{
gui_printf (NULL, "[%s]\n",
config_sections[i].section_name);
section_displayed = 1;
}
switch (weechat_options[i][j].option_type)
{
case OPTION_TYPE_BOOLEAN:
gui_printf (NULL, " %s = %s\n",
weechat_options[i][j].option_name,
(*weechat_options[i][j].ptr_int) ?
"ON" : "OFF");
break;
case OPTION_TYPE_INT:
gui_printf (NULL,
" %s = %d\n",
weechat_options[i][j].option_name,
*weechat_options[i][j].ptr_int);
break;
case OPTION_TYPE_INT_WITH_STRING:
gui_printf (NULL,
" %s = %s\n",
weechat_options[i][j].option_name,
weechat_options[i][j].array_values[*weechat_options[i][j].ptr_int]);
break;
case OPTION_TYPE_COLOR:
color_name = gui_get_color_by_value (*weechat_options[i][j].ptr_int);
gui_printf (NULL,
" %s = %s\n",
weechat_options[i][j].option_name,
(color_name) ? color_name : _("(unknown)"));
break;
case OPTION_TYPE_STRING:
gui_printf (NULL, " %s = %s\n",
weechat_options[i][j].
option_name,
(*weechat_options[i][j].
ptr_string) ?
*weechat_options[i][j].
ptr_string : "");
break;
}
}
}
}
}
gui_printf (NULL, _("(TODO) \"/set\" command not developed!\n"));
return 0;
}
/*
* cmd_unalias: remove an alias
*/
int
weechat_cmd_unalias (int argc, char **argv)
{
if (argc != 1)
{
gui_printf
(NULL,
_("Wrong argument count for unalias function (expexted: 1 arg)\n"));
return -1;
}
argv = NULL;
gui_printf (NULL, _("(TODO) \"/unalias\" not developed!\n"));
return 0;
}
-63
View File
@@ -1,63 +0,0 @@
/*
* Copyright (c) 2003 by FlashCode <flashcode@flashtux.org>
* Bounga <bounga@altern.org>
* Xahlexx <xahlexx@tuxisland.org>
* See README for License detail.
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __WEECHAT_COMMAND_H
#define __WEECHAT_COMMAND_H 1
#include "irc/irc.h"
#define MAX_ARGS 8192
typedef struct t_weechat_command t_weechat_command;
struct t_weechat_command
{
char *command_name;
char *command_description;
char *arguments;
char *arguments_description;
int min_arg, max_arg;
int (*cmd_function_args)(int, char **);
int (*cmd_function_1arg)(char *);
};
typedef struct t_index_command t_index_command;
struct t_index_command
{
char *command_name;
t_index_command *prev_index;
t_index_command *next_index;
};
extern t_index_command *index_commands;
extern void index_command_build ();
extern int exec_weechat_command (t_irc_server *, char *);
extern void user_command (t_irc_server *, char *);
extern int weechat_cmd_alias(int, char **);
extern int weechat_cmd_clear(int, char **);
extern int weechat_cmd_help (int, char **);
extern int weechat_cmd_set (int, char **);
extern int weechat_cmd_unalias (int, char **);
#endif /* command.h */
+43
View File
@@ -0,0 +1,43 @@
# Copyright (c) 2003-2006 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
# (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
#
INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\" $(GNUTLS_CFLAGS)
noinst_LIBRARIES = lib_weechat_main.a
lib_weechat_main_a_SOURCES = weechat.c \
weechat.h \
command.c \
command.h \
completion.c \
completion.h \
weelist.c \
weelist.h \
weeconfig.c \
weeconfig.h \
history.c \
history.h \
hotlist.c \
hotlist.h \
log.c \
log.h \
fifo.c \
fifo.h \
session.c \
session.h \
utf8.c \
utf8.h
+3639
View File
File diff suppressed because it is too large Load Diff
+98
View File
@@ -0,0 +1,98 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
#ifndef __WEECHAT_COMMAND_H
#define __WEECHAT_COMMAND_H 1
#include "weelist.h"
#include "../irc/irc.h"
#include "../gui/gui.h"
#define MAX_ARGS 8192
typedef struct t_weechat_command t_weechat_command;
struct t_weechat_command
{
char *command_name; /* WeeChat (internal) command name */
char *command_description; /* command description (for /help) */
char *arguments; /* command arguments (for /help) */
char *arguments_description; /* arguments description (for /help) */
char *completion_template; /* template for completion */
/* NULL=no completion, ""=default (nick) */
int min_arg, max_arg; /* min & max number of arguments */
int (*cmd_function_args)(t_irc_server *, t_irc_channel *, int, char **);
/* function called when user enters cmd */
int (*cmd_function_1arg)(t_irc_server *, t_irc_channel *, char *);
/* function called when user enters cmd */
};
typedef struct t_weechat_alias t_weechat_alias;
struct t_weechat_alias
{
char *alias_name;
char *alias_command;
int running;
t_weechat_alias *prev_alias;
t_weechat_alias *next_alias;
};
extern t_weechat_command weechat_commands[];
extern t_weechat_alias *weechat_alias;
extern t_weelist *index_commands;
extern t_weelist *last_index_command;
extern void command_index_build ();
extern void command_index_free ();
extern t_weechat_alias *alias_search (char *);
extern t_weechat_alias *alias_new (char *, char *);
extern char *alias_get_final_command (t_weechat_alias *);
extern void alias_free_all ();
extern char **explode_string (char *, char *, int, int *);
extern void free_exploded_string (char **);
extern char **split_multi_command (char *, char);
extern void free_multi_command (char **);
extern int exec_weechat_command (t_irc_server *, t_irc_channel *, char *);
extern void user_command (t_irc_server *, t_irc_channel *, char *);
extern int weechat_cmd_alias (t_irc_server *, t_irc_channel *, char *);
extern int weechat_cmd_buffer (t_irc_server *, t_irc_channel *, int, char **);
extern int weechat_cmd_charset (t_irc_server *, t_irc_channel *, int, char **);
extern int weechat_cmd_clear (t_irc_server *, t_irc_channel *, int, char **);
extern int weechat_cmd_connect (t_irc_server *, t_irc_channel *, int, char **);
extern int weechat_cmd_debug (t_irc_server *, t_irc_channel *, int, char **);
extern int weechat_cmd_disconnect (t_irc_server *, t_irc_channel *, int, char **);
extern int weechat_cmd_help (t_irc_server *, t_irc_channel *, int, char **);
extern int weechat_cmd_history (t_irc_server *, t_irc_channel *, int, char **);
extern void weechat_cmd_ignore_display (char *, t_irc_ignore *);
extern int weechat_cmd_ignore (t_irc_server *, t_irc_channel *, int, char **);
extern int weechat_cmd_key (t_irc_server *, t_irc_channel *, char *);
extern int weechat_cmd_plugin (t_irc_server *, t_irc_channel *, int, char **);
extern int weechat_cmd_save (t_irc_server *, t_irc_channel *, int, char **);
extern int weechat_cmd_server (t_irc_server *, t_irc_channel *, int, char **);
extern int weechat_cmd_set (t_irc_server *, t_irc_channel *, char *);
extern int weechat_cmd_unalias (t_irc_server *, t_irc_channel *, char *);
extern int weechat_cmd_unignore (t_irc_server *, t_irc_channel *, int, char **);
extern int weechat_cmd_upgrade (t_irc_server *, t_irc_channel *, int, char **);
extern int weechat_cmd_uptime (t_irc_server *, t_irc_channel *, int, char **);
extern int weechat_cmd_window (t_irc_server *, t_irc_channel *, int, char **);
#endif /* command.h */
File diff suppressed because it is too large Load Diff
+62
View File
@@ -0,0 +1,62 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
#ifndef __WEECHAT_COMPLETION_H
#define __WEECHAT_COMPLETION_H 1
#include "weelist.h"
#define COMPLETION_NULL 0
#define COMPLETION_NICK 1
#define COMPLETION_COMMAND 2
#define COMPLETION_COMMAND_ARG 3
typedef struct t_completion t_completion;
struct t_completion
{
/* completion context */
void *server; /* server pointer */
void *channel; /* channel pointer */
int context; /* context: null, nick, command, cmd arg */
char *base_command; /* command with arg to complete (can be NULL) */
int base_command_arg; /* # arg to complete (if context is cmd arg) */
int arg_is_nick; /* argument is nick */
char *base_word; /* word to complete (when Tab was pressed) */
int base_word_pos; /* beggining of base word */
int position; /* position where Tab was pressed */
char *args; /* command line args (including base word) */
/* for command argument completion */
t_weelist *completion_list; /* data list for completion */
t_weelist *last_completion; /* last data element for completion */
/* completion found */
char *word_found; /* word found (to replace base word) */
int position_replace; /* position where word has to be replaced */
int diff_size; /* size difference (< 0 = char(s) deleted) */
int diff_length; /* length difference (<= diff_size) */
};
extern void completion_init (t_completion *, void *, void *);
extern void completion_free (t_completion *);
extern void completion_search (t_completion *, char *, int, int);
#endif /* completion.h */
+291
View File
@@ -0,0 +1,291 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
/* fifo.c: FIFO pipe for WeeChat remote control */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "weechat.h"
#include "fifo.h"
#include "command.h"
#include "weeconfig.h"
#include "../gui/gui.h"
int weechat_fifo = -1;
char *weechat_fifo_filename = NULL;
char *weechat_fifo_unterminated = NULL;
/*
* fifo_create: create FIFO pipe for remote control
*/
void
fifo_create ()
{
int filename_length;
if (cfg_irc_fifo_pipe)
{
/* build FIFO filename: "<weechat_home>/weechat_fifo_" + process PID */
if (!weechat_fifo_filename)
{
filename_length = strlen (weechat_home) + 64;
weechat_fifo_filename = (char *) malloc (filename_length * sizeof (char));
snprintf (weechat_fifo_filename, filename_length, "%s/weechat_fifo_%d",
weechat_home, (int) getpid());
}
/* create FIFO pipe, writable for user only */
if ((weechat_fifo = mkfifo (weechat_fifo_filename, 0600)) != 0)
{
weechat_fifo = -1;
gui_printf (NULL,
_("%s unable to create FIFO pipe for remote control (%s)\n"),
WEECHAT_ERROR, weechat_fifo_filename);
weechat_log_printf (_("%s unable to create FIFO pipe for "
"remote control (%s)\n"),
WEECHAT_ERROR, weechat_fifo_filename);
return;
}
/* open FIFO pipe in read-only (for WeeChat), non nlobking mode */
if ((weechat_fifo = open (weechat_fifo_filename, O_RDONLY | O_NONBLOCK)) == -1)
{
gui_printf (NULL,
_("%s unable to open FIFO pipe (%s) for reading\n"),
WEECHAT_ERROR, weechat_fifo_filename);
weechat_log_printf (_("%s unable to open FIFO pipe (%s) for reading\n"),
WEECHAT_ERROR, weechat_fifo_filename);
return;
}
weechat_log_printf (_("FIFO pipe is open\n"));
}
}
/*
* fifo_exec: execute a command/text received by FIFO pipe
*/
void
fifo_exec (char *text)
{
char *pos_msg, *pos;
t_irc_server *ptr_server;
t_irc_channel *ptr_channel;
pos = NULL;
ptr_server = NULL;
ptr_channel = NULL;
/* look for server/channel at beginning of text */
/* text may be: "server,channel *text" or "server *text" or "*text" */
if (text[0] == '*')
{
pos_msg = text + 1;
if (gui_current_window->buffer->has_input)
{
ptr_server = SERVER(gui_current_window->buffer);
ptr_channel = CHANNEL(gui_current_window->buffer);
}
else
{
ptr_server = SERVER(gui_buffers);
ptr_channel = NULL;
}
}
else
{
pos_msg = strstr (text, " *");
if (!pos_msg)
{
irc_display_prefix (NULL, NULL, PREFIX_ERROR);
gui_printf (NULL, _("%s invalid text received on FIFO pipe\n"),
WEECHAT_WARNING);
return;
}
pos_msg[0] = '\0';
pos = pos_msg - 1;
pos_msg += 2;
while ((pos >= text) && (pos[0] == ' '))
{
pos[0] = '\0';
pos--;
}
if (text[0])
{
pos = strchr (text, ',');
if (pos)
pos[0] = '\0';
ptr_server = server_search (text);
if (!ptr_server || !ptr_server->buffer)
{
irc_display_prefix (NULL, NULL, PREFIX_ERROR);
gui_printf (NULL, _("%s server \"%s\" not found (FIFO pipe data)\n"),
WEECHAT_WARNING, text);
return;
}
if (ptr_server && pos)
{
ptr_channel = channel_search (ptr_server, pos + 1);
if (!ptr_channel)
{
irc_display_prefix (NULL, NULL, PREFIX_ERROR);
gui_printf (NULL,
_("%s channel \"%s\" not found (FIFO pipe data)\n"),
WEECHAT_WARNING, pos + 1);
return;
}
}
}
}
user_command (ptr_server, ptr_channel, pos_msg);
}
/*
* fifo_read: read data in FIFO pipe
*/
void
fifo_read ()
{
static char buffer[4096 + 2];
char *buf2, *pos, *ptr_buf, *next_ptr_buf;
int num_read;
num_read = read (weechat_fifo, buffer, sizeof (buffer) - 2);
if (num_read > 0)
{
buffer[num_read] = '\0';
buf2 = NULL;
ptr_buf = buffer;
if (weechat_fifo_unterminated)
{
buf2 = (char *) malloc (strlen (weechat_fifo_unterminated) +
strlen (buffer) + 1);
if (buf2)
{
strcpy (buf2, weechat_fifo_unterminated);
strcat (buf2, buffer);
}
ptr_buf = buf2;
free (weechat_fifo_unterminated);
weechat_fifo_unterminated = NULL;
}
while (ptr_buf && ptr_buf[0])
{
next_ptr_buf = NULL;
pos = strstr (ptr_buf, "\r\n");
if (pos)
{
pos[0] = '\0';
next_ptr_buf = pos + 2;
}
else
{
pos = strstr (ptr_buf, "\n");
if (pos)
{
pos[0] = '\0';
next_ptr_buf = pos + 1;
}
else
{
weechat_fifo_unterminated = strdup (ptr_buf);
ptr_buf = NULL;
next_ptr_buf = NULL;
}
}
if (ptr_buf)
fifo_exec (ptr_buf);
ptr_buf = next_ptr_buf;
}
if (buf2)
free (buf2);
}
else
{
if (num_read < 0)
{
gui_printf (NULL,
_("%s error reading FIFO pipe, closing it\n"),
WEECHAT_ERROR);
weechat_log_printf (_("%s error reading FIFO pipe, closing it\n"),
WEECHAT_ERROR);
fifo_remove ();
}
else
{
close (weechat_fifo);
weechat_fifo = open (weechat_fifo_filename, O_RDONLY | O_NONBLOCK);
}
}
}
/*
* fifo_remove: remove FIFO pipe
*/
void
fifo_remove ()
{
if (weechat_fifo != -1)
{
/* close FIFO pipe */
close (weechat_fifo);
weechat_fifo = -1;
}
/* remove FIFO from disk */
if (weechat_fifo_filename)
unlink (weechat_fifo_filename);
if (weechat_fifo_unterminated)
{
free (weechat_fifo_unterminated);
weechat_fifo_unterminated = NULL;
}
if (weechat_fifo_filename)
{
free (weechat_fifo_filename);
weechat_fifo_filename = NULL;
}
weechat_log_printf (_("FIFO pipe is closed\n"));
}
@@ -1,8 +1,6 @@
/*
* Copyright (c) 2003 by FlashCode <flashcode@flashtux.org>
* Bounga <bounga@altern.org>
* Xahlexx <xahlexx@tuxisland.org>
* See README for License detail.
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,11 +14,17 @@
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* gui-gtk.c: Gtk+ GUI for WeeChat */
#ifndef __WEECHAT_FIFO_H
#define __WEECHAT_FIFO_H 1
extern int weechat_fifo;
/* ***** Gtk+ GUI for WeeChat, NOT developed! ***** */
extern void fifo_create ();
extern void fifo_read ();
extern void fifo_remove ();
#endif /* fifo.h */
+207
View File
@@ -0,0 +1,207 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
/* history.c: memorize commands or text */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <string.h>
#include "weechat.h"
#include "history.h"
#include "weeconfig.h"
#include "../gui/gui.h"
t_history *history_global = NULL;
t_history *history_global_last = NULL;
t_history *history_global_ptr = NULL;
int num_history_global = 0;
/*
* history_hide_password: hide a nickserv password
*/
void
history_hide_password (char *string)
{
char *pos_pwd;
if (strstr (string, "nickserv "))
{
pos_pwd = strstr (string, "identify ");
if (!pos_pwd)
pos_pwd = strstr (string, "register ");
if (pos_pwd)
{
pos_pwd += 9;
while (pos_pwd[0])
{
pos_pwd[0] = '*';
pos_pwd++;
}
}
}
}
/*
* history_buffer_add: add a text/command to buffer's history
*/
void
history_buffer_add (void *buffer, char *string)
{
t_history *new_history, *ptr_history;
if ( !((t_gui_buffer *)(buffer))->history
|| ( ((t_gui_buffer *)(buffer))->history
&& ascii_strcasecmp (((t_gui_buffer *)(buffer))->history->text, string) != 0))
{
new_history = (t_history *)malloc (sizeof (t_history));
if (new_history)
{
new_history->text = strdup (string);
if (cfg_log_hide_nickserv_pwd)
history_hide_password (new_history->text);
if (((t_gui_buffer *)(buffer))->history)
((t_gui_buffer *)(buffer))->history->prev_history = new_history;
else
((t_gui_buffer *)(buffer))->last_history = new_history;
new_history->next_history = ((t_gui_buffer *)(buffer))->history;
new_history->prev_history = NULL;
((t_gui_buffer *)buffer)->history = new_history;
((t_gui_buffer *)buffer)->num_history++;
/* remove one command if necessary */
if ((cfg_history_max_commands > 0)
&& (((t_gui_buffer *)(buffer))->num_history > cfg_history_max_commands))
{
ptr_history = ((t_gui_buffer *)buffer)->last_history->prev_history;
if (((t_gui_buffer *)buffer)->ptr_history == ((t_gui_buffer *)buffer)->last_history)
((t_gui_buffer *)buffer)->ptr_history = ptr_history;
((t_gui_buffer *)buffer)->last_history->prev_history->next_history = NULL;
if (((t_gui_buffer *)buffer)->last_history->text)
free (((t_gui_buffer *)buffer)->last_history->text);
free (((t_gui_buffer *)buffer)->last_history);
((t_gui_buffer *)buffer)->last_history = ptr_history;
((t_gui_buffer *)(buffer))->num_history++;
}
}
}
}
/*
* history_global_add: add a text/command to buffer's history
*/
void
history_global_add (char *string)
{
t_history *new_history, *ptr_history;
if (!history_global
|| (history_global
&& ascii_strcasecmp (history_global->text, string) != 0))
{
new_history = (t_history *)malloc (sizeof (t_history));
if (new_history)
{
new_history->text = strdup (string);
if (cfg_log_hide_nickserv_pwd)
history_hide_password (new_history->text);
if (history_global)
history_global->prev_history = new_history;
else
history_global_last = new_history;
new_history->next_history = history_global;
new_history->prev_history = NULL;
history_global = new_history;
num_history_global++;
/* remove one command if necessary */
if ((cfg_history_max_commands > 0)
&& (num_history_global > cfg_history_max_commands))
{
ptr_history = history_global_last->prev_history;
if (history_global_ptr == history_global_last)
history_global_ptr = ptr_history;
history_global_last->prev_history->next_history = NULL;
if (history_global_last->text)
free (history_global_last->text);
free (history_global_last);
history_global_last = ptr_history;
num_history_global--;
}
}
}
}
/*
* history_global_free: free global history
*/
void
history_global_free ()
{
t_history *ptr_history;
while (history_global)
{
ptr_history = history_global->next_history;
if (history_global->text)
free (history_global->text);
free (history_global);
history_global = ptr_history;
}
history_global = NULL;
history_global_last = NULL;
history_global_ptr = NULL;
num_history_global = 0;
}
/*
* history_buffer_free: free history for a buffer
*/
void
history_buffer_free (void *buffer)
{
t_history *ptr_history;
while (((t_gui_buffer *)(buffer))->history)
{
ptr_history = ((t_gui_buffer *)(buffer))->history->next_history;
if (((t_gui_buffer *)(buffer))->history->text)
free (((t_gui_buffer *)(buffer))->history->text);
free (((t_gui_buffer *)(buffer))->history);
((t_gui_buffer *)(buffer))->history = ptr_history;
}
((t_gui_buffer *)(buffer))->history = NULL;
((t_gui_buffer *)(buffer))->last_history = NULL;
((t_gui_buffer *)(buffer))->ptr_history = NULL;
((t_gui_buffer *)(buffer))->num_history = 0;
}
@@ -1,8 +1,6 @@
/*
* Copyright (c) 2003 by FlashCode <flashcode@flashtux.org>
* Bounga <bounga@altern.org>
* Xahlexx <xahlexx@tuxisland.org>
* See README for License detail.
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,7 +14,7 @@
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -32,6 +30,13 @@ struct t_history
t_history *prev_history; /* link to previous text/command */
};
extern void history_add (void *, char *);
extern t_history *history_global;
extern t_history *history_global_last;
extern t_history *history_global_ptr;
extern void history_buffer_add (void *, char *);
extern void history_global_add (char *);
extern void history_global_free ();
extern void history_buffer_free (void *);
#endif /* history.h */
+194
View File
@@ -0,0 +1,194 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
/* hotlist.c: WeeChat hotlist (buffers with activity) */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include "weechat.h"
#include "hotlist.h"
#include "../irc/irc.h"
#include "../gui/gui.h"
t_weechat_hotlist *hotlist = NULL;
t_weechat_hotlist *last_hotlist = NULL;
t_gui_buffer *hotlist_initial_buffer = NULL;
/*
* hotlist_search: find hotlist with buffer pointer
*/
t_weechat_hotlist *
hotlist_search (t_gui_buffer *buffer)
{
t_weechat_hotlist *ptr_hotlist;
for (ptr_hotlist = hotlist; ptr_hotlist; ptr_hotlist = ptr_hotlist->next_hotlist)
{
if (ptr_hotlist->buffer == buffer)
return ptr_hotlist;
}
return NULL;
}
/*
* hotlist_find_pos: find position for a inserting in hotlist (for sorting hotlist)
*/
t_weechat_hotlist *
hotlist_find_pos (t_weechat_hotlist *new_hotlist)
{
t_weechat_hotlist *ptr_hotlist;
for (ptr_hotlist = hotlist; ptr_hotlist; ptr_hotlist = ptr_hotlist->next_hotlist)
{
if (new_hotlist->priority > ptr_hotlist->priority)
return ptr_hotlist;
}
return NULL;
}
/*
* hotlist_add: add a buffer to hotlist, with priority
*/
void
hotlist_add (int priority, t_irc_server *server, t_gui_buffer *buffer)
{
t_weechat_hotlist *new_hotlist, *pos_hotlist;
if (!buffer)
return;
/* do not highlight current buffer */
if (buffer == gui_current_window->buffer)
return;
if ((pos_hotlist = hotlist_search (buffer)))
{
/* return if priority is greater or equal than the one to add */
if (pos_hotlist->priority >= priority)
return;
/* remove buffer if present with lower priority and go on */
hotlist_free (pos_hotlist);
}
if ((new_hotlist = (t_weechat_hotlist *) malloc (sizeof (t_weechat_hotlist))) == NULL)
{
gui_printf (NULL,
_("%s cannot add a buffer to hotlist\n"), WEECHAT_ERROR);
return;
}
new_hotlist->priority = priority;
new_hotlist->server = server;
new_hotlist->buffer = buffer;
if (hotlist)
{
pos_hotlist = hotlist_find_pos (new_hotlist);
if (pos_hotlist)
{
/* insert hotlist into the hotlist (before hotlist found) */
new_hotlist->prev_hotlist = pos_hotlist->prev_hotlist;
new_hotlist->next_hotlist = pos_hotlist;
if (pos_hotlist->prev_hotlist)
pos_hotlist->prev_hotlist->next_hotlist = new_hotlist;
else
hotlist = new_hotlist;
pos_hotlist->prev_hotlist = new_hotlist;
}
else
{
/* add hotlist to the end */
new_hotlist->prev_hotlist = last_hotlist;
new_hotlist->next_hotlist = NULL;
last_hotlist->next_hotlist = new_hotlist;
last_hotlist = new_hotlist;
}
}
else
{
new_hotlist->prev_hotlist = NULL;
new_hotlist->next_hotlist = NULL;
hotlist = new_hotlist;
last_hotlist = new_hotlist;
}
}
/*
* hotlist_free: free a hotlist and remove it from hotlist queue
*/
void
hotlist_free (t_weechat_hotlist *ptr_hotlist)
{
t_weechat_hotlist *new_hotlist;
/* remove hotlist from queue */
if (last_hotlist == ptr_hotlist)
last_hotlist = ptr_hotlist->prev_hotlist;
if (ptr_hotlist->prev_hotlist)
{
(ptr_hotlist->prev_hotlist)->next_hotlist = ptr_hotlist->next_hotlist;
new_hotlist = hotlist;
}
else
new_hotlist = ptr_hotlist->next_hotlist;
if (ptr_hotlist->next_hotlist)
(ptr_hotlist->next_hotlist)->prev_hotlist = ptr_hotlist->prev_hotlist;
free (ptr_hotlist);
hotlist = new_hotlist;
}
/*
* hotlist_free_all: free all hotlists
*/
void
hotlist_free_all ()
{
/* remove all hotlists */
while (hotlist)
hotlist_free (hotlist);
}
/*
* hotlist_remove_buffer: remove a buffer from hotlist
*/
void
hotlist_remove_buffer (t_gui_buffer *buffer)
{
t_weechat_hotlist *pos_hotlist;
pos_hotlist = hotlist_search (buffer);
if (pos_hotlist)
hotlist_free (pos_hotlist);
}
+51
View File
@@ -0,0 +1,51 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
#ifndef __WEECHAT_HOTLIST_H
#define __WEECHAT_HOTLIST_H 1
#include "../irc/irc.h"
#define HOTLIST_LOW 0
#define HOTLIST_MSG 1
#define HOTLIST_PRIVATE 2
#define HOTLIST_HIGHLIGHT 3
typedef struct t_weechat_hotlist t_weechat_hotlist;
struct t_weechat_hotlist
{
int priority; /* 0=crappy msg (join/part), 1=msg, */
/* 2=pv, 3=nick highlight */
t_irc_server *server; /* associated server */
t_gui_buffer *buffer; /* associated buffer */
t_weechat_hotlist *prev_hotlist; /* link to previous hotlist */
t_weechat_hotlist *next_hotlist; /* link to next hotlist */
};
extern t_weechat_hotlist *hotlist;
extern t_gui_buffer *hotlist_initial_buffer;
extern void hotlist_add (int, t_irc_server *, t_gui_buffer *);
extern void hotlist_free (t_weechat_hotlist *);
extern void hotlist_free_all ();
extern void hotlist_remove_buffer (t_gui_buffer *);
#endif /* hotlist.h */
+189
View File
@@ -0,0 +1,189 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
/* log.c: log buffers to files */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "weechat.h"
#include "log.h"
#include "weeconfig.h"
#include "../gui/gui.h"
/*
* log_write_date: writes date to log file
*/
void
log_write_date (t_gui_buffer *buffer)
{
static char buf_time[256];
static time_t seconds;
struct tm *date_tmp;
if (buffer->log_file)
{
seconds = time (NULL);
date_tmp = localtime (&seconds);
if (date_tmp)
{
strftime (buf_time, sizeof (buf_time) - 1, cfg_log_timestamp, date_tmp);
fprintf (buffer->log_file, "%s ", buf_time);
fflush (buffer->log_file);
}
}
}
/*
* log_write_line: writes a line to log file
*/
void
log_write_line (t_gui_buffer *buffer, char *message)
{
char *msg_no_color;
if (buffer->log_file)
{
msg_no_color = (char *)gui_color_decode ((unsigned char *)message, 0);
log_write_date (buffer);
fprintf (buffer->log_file, "%s\n",
(msg_no_color) ? msg_no_color : message);
fflush (buffer->log_file);
if (msg_no_color)
free (msg_no_color);
}
}
/*
* log_write: writes a message to log file
*/
void
log_write (t_gui_buffer *buffer, char *message)
{
char *msg_no_color;
if (buffer->log_file)
{
msg_no_color = (char *)gui_color_decode ((unsigned char *)message, 0);
fprintf (buffer->log_file, "%s",
(msg_no_color) ? msg_no_color : message);
fflush (buffer->log_file);
if (msg_no_color)
free (msg_no_color);
}
}
/*
* log_start: starts a log
*/
void
log_start (t_gui_buffer *buffer)
{
int length;
char *log_path, *log_path2;
log_path = weechat_strreplace (cfg_log_path, "~", getenv ("HOME"));
log_path2 = weechat_strreplace (log_path, "%h", weechat_home);
if (!log_path || !log_path2)
{
weechat_log_printf (_("Not enough memory to write log file for a buffer\n"));
if (log_path)
free (log_path);
if (log_path2)
free (log_path2);
return;
}
length = strlen (log_path2) + 64;
if (SERVER(buffer))
length += strlen (SERVER(buffer)->name);
if (CHANNEL(buffer))
length += strlen (CHANNEL(buffer)->name);
buffer->log_filename = (char *) malloc (length);
if (!buffer->log_filename)
{
weechat_log_printf (_("Not enough memory to write log file for a buffer\n"));
if (log_path)
free (log_path);
if (log_path2)
free (log_path2);
return;
}
strcpy (buffer->log_filename, log_path2);
if (log_path)
free (log_path);
if (log_path2)
free (log_path2);
if (buffer->log_filename[strlen (buffer->log_filename) - 1] != DIR_SEPARATOR_CHAR)
strcat (buffer->log_filename, DIR_SEPARATOR);
if (SERVER(buffer))
{
strcat (buffer->log_filename, SERVER(buffer)->name);
strcat (buffer->log_filename, ".");
}
if (CHANNEL(buffer))
{
strcat (buffer->log_filename, CHANNEL(buffer)->name);
strcat (buffer->log_filename, ".");
}
strcat (buffer->log_filename, "weechatlog");
buffer->log_file = fopen (buffer->log_filename, "a");
if (!buffer->log_file)
{
weechat_log_printf (_("Unable to write log file for a buffer\n"));
free (buffer->log_filename);
return;
}
log_write (buffer, _("**** Beginning of log "));
log_write_date (buffer);
log_write (buffer, "****\n");
}
/*
* log_end: ends a log
*/
void
log_end (t_gui_buffer *buffer)
{
if (buffer->log_file)
{
log_write (buffer, _("**** End of log "));
log_write_date (buffer);
log_write (buffer, "****\n");
fclose (buffer->log_file);
buffer->log_file = NULL;
}
if (buffer->log_filename)
free (buffer->log_filename);
}
+33
View File
@@ -0,0 +1,33 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
#ifndef __WEECHAT_LOG_H
#define __WEECHAT_LOG_H 1
#include "../irc/irc.h"
#include "../gui/gui.h"
extern void log_write_date (t_gui_buffer *);
extern void log_write_line (t_gui_buffer *, char *);
extern void log_write (t_gui_buffer *, char *);
extern void log_start (t_gui_buffer *);
extern void log_end (t_gui_buffer *);
#endif /* log.h */
+1682
View File
File diff suppressed because it is too large Load Diff
+181
View File
@@ -0,0 +1,181 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
#ifndef __WEECHAT_SESSION_H
#define __WEECHAT_SESSION_H 1
#define WEECHAT_SESSION_NAME "weechat_session.bin"
#define SESSION_SIGNATURE "== WeeChat Upgrade file v1.0 - binary, do not edit! =="
/* For developers: please add new values ONLY AT THE END of enums */
enum t_session_type
{
SESSION_TYPE_INT = 0,
SESSION_TYPE_STR,
SESSION_TYPE_BUF
};
enum t_session_object
{
SESSION_OBJ_END = 0,
SESSION_OBJ_SERVER,
SESSION_OBJ_CHANNEL,
SESSION_OBJ_NICK,
SESSION_OBJ_DCC,
SESSION_OBJ_HISTORY,
SESSION_OBJ_BUFFER,
SESSION_OBJ_LINE,
SESSION_OBJ_UPTIME
};
enum t_session_server
{
SESSION_SERV_END = 0,
SESSION_SERV_NAME,
SESSION_SERV_AUTOCONNECT,
SESSION_SERV_AUTORECONNECT,
SESSION_SERV_AUTORECONNECT_DELAY,
SESSION_SERV_COMMAND_LINE,
SESSION_SERV_ADDRESS,
SESSION_SERV_PORT,
SESSION_SERV_IPV6,
SESSION_SERV_SSL,
SESSION_SERV_PASSWORD,
SESSION_SERV_NICK1,
SESSION_SERV_NICK2,
SESSION_SERV_NICK3,
SESSION_SERV_USERNAME,
SESSION_SERV_REALNAME,
SESSION_SERV_COMMAND,
SESSION_SERV_COMMAND_DELAY,
SESSION_SERV_AUTOJOIN,
SESSION_SERV_AUTOREJOIN,
SESSION_SERV_NOTIFY_LEVELS,
SESSION_SERV_CHILD_PID,
SESSION_SERV_CHILD_READ,
SESSION_SERV_CHILD_WRITE,
SESSION_SERV_SOCK,
SESSION_SERV_IS_CONNECTED,
SESSION_SERV_SSL_CONNECTED,
SESSION_SERV_GNUTLS_SESS,
SESSION_SERV_UNTERMINATED_MESSAGE,
SESSION_SERV_NICK,
SESSION_SERV_RECONNECT_START,
SESSION_SERV_RECONNECT_JOIN,
SESSION_SERV_IS_AWAY,
SESSION_SERV_AWAY_TIME,
SESSION_SERV_LAG,
SESSION_SERV_LAG_CHECK_TIME,
SESSION_SERV_LAG_NEXT_CHECK,
SESSION_SERV_CHARSET_DECODE_ISO,
SESSION_SERV_CHARSET_DECODE_UTF,
SESSION_SERV_CHARSET_ENCODE
};
enum t_session_channel
{
SESSION_CHAN_END = 0,
SESSION_CHAN_TYPE,
SESSION_CHAN_NAME,
SESSION_CHAN_TOPIC,
SESSION_CHAN_MODES,
SESSION_CHAN_LIMIT,
SESSION_CHAN_KEY,
SESSION_CHAN_NICKS_COUNT,
SESSION_CHAN_CHECKING_AWAY,
SESSION_CHAN_AWAY_MESSAGE
};
enum t_session_nick
{
SESSION_NICK_END = 0,
SESSION_NICK_NICK,
SESSION_NICK_FLAGS,
SESSION_NICK_COLOR
};
enum t_session_dcc
{
SESSION_DCC_END = 0,
SESSION_DCC_SERVER,
SESSION_DCC_CHANNEL,
SESSION_DCC_TYPE,
SESSION_DCC_STATUS,
SESSION_DCC_START_TIME,
SESSION_DCC_START_TRANSFER,
SESSION_DCC_ADDR,
SESSION_DCC_PORT,
SESSION_DCC_NICK,
SESSION_DCC_SOCK,
SESSION_DCC_UNTERMINATED_MESSAGE,
SESSION_DCC_FILE,
SESSION_DCC_FILENAME,
SESSION_DCC_LOCAL_FILENAME,
SESSION_DCC_FILENAME_SUFFIX,
SESSION_DCC_SIZE,
SESSION_DCC_POS,
SESSION_DCC_ACK,
SESSION_DCC_START_RESUME,
SESSION_DCC_LAST_CHECK_TIME,
SESSION_DCC_LAST_CHECK_POS,
SESSION_DCC_LAST_ACTIVITY,
SESSION_DCC_BYTES_PER_SEC,
SESSION_DCC_ETA
};
enum t_session_history
{
SESSION_HIST_END = 0,
SESSION_HIST_TEXT
};
enum t_session_buffer
{
SESSION_BUFF_END = 0,
SESSION_BUFF_SERVER,
SESSION_BUFF_CHANNEL,
SESSION_BUFF_TYPE,
SESSION_BUFF_ALL_SERVERS
};
enum t_session_line
{
SESSION_LINE_END = 0,
SESSION_LINE_LENGTH,
SESSION_LINE_LENGTH_ALIGN,
SESSION_LINE_LOG_WRITE,
SESSION_LINE_WITH_MESSAGE,
SESSION_LINE_WITH_HIGHLIGHT,
SESSION_LINE_DATA,
SESSION_LINE_OFS_AFTER_DATE
};
enum t_session_uptime
{
SESSION_UPT_END = 0,
SESSION_UPT_START_TIME
};
int session_save (char *filename);
int session_load (char *filename);
#endif /* session.h */
+330
View File
@@ -0,0 +1,330 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
/* utf8.c: UTF-8 string functions for WeeChat */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string.h>
#include "weechat.h"
#include "utf8.h"
#include "weeconfig.h"
int local_utf8 = 0;
/*
* utf8_init: initializes UTF-8 in WeeChat
*/
void
utf8_init ()
{
local_utf8 = 0;
if (cfg_look_charset_internal && cfg_look_charset_internal[0])
{
if (strstr (cfg_look_charset_internal, "UTF-8")
|| strstr (cfg_look_charset_internal, "utf-8"))
local_utf8 = 1;
}
else if ((local_charset)
&& ((strstr (local_charset, "UTF-8")
|| strstr (local_charset, "utf-8"))))
local_utf8 = 1;
}
/*
* utf8_is_valid: return 1 if UTF-8 string is valid, 0 otherwise
*/
int
utf8_is_valid (char *string)
{
while (string[0])
{
/* UTF-8, 2 bytes, should be: 110vvvvv 10vvvvvv */
if (((unsigned char)(string[0]) & 0xE0) == 0xC0)
{
if (!string[1] || (((unsigned char)(string[1]) & 0xC0) != 0x80))
return 0;
string += 2;
}
/* UTF-8, 3 bytes, should be: 1110vvvv 10vvvvvv 10vvvvvv */
else if (((unsigned char)(string[0]) & 0xF0) == 0xE0)
{
if (!string[1] || !string[2]
|| (((unsigned char)(string[1]) & 0xC0) != 0x80)
|| (((unsigned char)(string[2]) & 0xC0) != 0x80))
return 0;
string += 3;
}
/* UTF-8, 4 bytes, should be: 11110vvv 10vvvvvv 10vvvvvv 10vvvvvv */
else if (((unsigned char)(string[0]) & 0xF8) == 0xF0)
{
if (!string[1] || !string[2] || !string[3]
|| (((unsigned char)(string[1]) & 0xC0) != 0x80)
|| (((unsigned char)(string[2]) & 0xC0) != 0x80)
|| (((unsigned char)(string[3]) & 0xC0) != 0x80))
return 0;
string += 4;
}
/* UTF-8, 1 byte, should be: 0vvvvvvv */
else if ((unsigned char)(string[0]) >= 0x80)
return 0;
else
string++;
}
return 1;
}
/*
* utf8_prev_char: return previous UTF-8 char in a string
*/
char *
utf8_prev_char (char *string_start, char *string)
{
if (!string || (string <= string_start))
return NULL;
string--;
if (!local_utf8)
return string;
if (((unsigned char)(string[0]) & 0xC0) == 0x80)
{
/* UTF-8, at least 2 bytes */
string--;
if (string < string_start)
return string + 1;
if (((unsigned char)(string[0]) & 0xC0) == 0x80)
{
/* UTF-8, at least 3 bytes */
string--;
if (string < string_start)
return string + 1;
if (((unsigned char)(string[0]) & 0xC0) == 0x80)
{
/* UTF-8, 4 bytes */
string--;
if (string < string_start)
return string + 1;
return string;
}
else
return string;
}
else
return string;
}
return string;
}
/*
* utf8_next_char: return next UTF-8 char in a string
*/
char *
utf8_next_char (char *string)
{
if (!string)
return NULL;
if (!local_utf8)
return string + 1;
/* UTF-8, 2 bytes: 110vvvvv 10vvvvvv */
if (((unsigned char)(string[0]) & 0xE0) == 0xC0)
{
if (!string[1])
return string + 1;
return string + 2;
}
/* UTF-8, 3 bytes: 1110vvvv 10vvvvvv 10vvvvvv */
else if (((unsigned char)(string[0]) & 0xF0) == 0xE0)
{
if (!string[1])
return string + 1;
if (!string[2])
return string + 2;
return string + 3;
}
/* UTF-8, 4 bytes: 11110vvv 10vvvvvv 10vvvvvv 10vvvvvv */
else if (((unsigned char)(string[0]) & 0xF8) == 0xF0)
{
if (!string[1])
return string + 1;
if (!string[2])
return string + 2;
if (!string[3])
return string + 3;
return string + 4;
}
/* UTF-8, 1 byte: 0vvvvvvv */
return string + 1;
}
/*
* utf8_char_size: return UTF-8 char size
*/
int
utf8_char_size (char *string)
{
if (!string)
return 0;
return utf8_next_char (string) - string;
}
/*
* utf8_strlen: return length of an UTF-8 string (<= strlen(string))
*/
int
utf8_strlen (char *string)
{
int length;
if (!string)
return 0;
if (!local_utf8)
return strlen (string);
length = 0;
while (string[0])
{
string = utf8_next_char (string);
length++;
}
return length;
}
/*
* utf8_strlen: return length of an UTF-8 string, for N bytes
*/
int
utf8_strnlen (char *string, int bytes)
{
char *start;
int length;
if (!string)
return 0;
if (!local_utf8)
{
length = strlen (string);
if (bytes > length)
return length;
return bytes;
}
start = string;
length = 0;
while (string[0] && (string - start < bytes))
{
string = utf8_next_char (string);
length++;
}
return length;
}
/*
* utf8_add_offset: moves forward N chars in an UTF-8 string
*/
char *
utf8_add_offset (char *string, int offset)
{
int count;
if (!string)
return string;
if (!local_utf8)
return string + offset;
count = 0;
while (string[0] && (count < offset))
{
string = utf8_next_char (string);
count++;
}
return string;
}
/*
* utf8_real_pos: get real position in UTF-8
* for example: ("aébc", 2) returns 3
*/
int
utf8_real_pos (char *string, int pos)
{
int count, real_pos;
char *next_char;
if (!string || !local_utf8)
return pos;
count = 0;
real_pos = 0;
while (string[0] && (count < pos))
{
next_char = utf8_next_char (string);
real_pos += (next_char - string);
string = next_char;
count++;
}
return real_pos;
}
/*
* utf8_pos: get position in UTF-8
* for example: ("aébc", 3) returns 2
*/
int
utf8_pos (char *string, int real_pos)
{
int count;
char *limit;
if (!string || !local_charset)
return real_pos;
count = 0;
limit = string + real_pos;
while (string[0] && (string < limit))
{
string = utf8_next_char (string);
count++;
}
return count;
}
+37
View File
@@ -0,0 +1,37 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
#ifndef __WEECHAT_UTF8_H
#define __WEECHAT_UTF8_H 1
extern int local_utf8;
extern void utf8_init ();
extern int utf8_is_valid (char *);
extern char *utf8_prev_char (char *, char *);
extern char *utf8_next_char (char *);
extern int utf8_char_size (char *);
extern int utf8_strlen (char *);
extern int utf8_strnlen (char *, int);
extern char *utf8_add_offset (char *, int);
extern int utf8_real_pos (char *, int);
extern int utf8_pos (char *, int);
#endif /* utf8.h */
+1101
View File
File diff suppressed because it is too large Load Diff
+117
View File
@@ -0,0 +1,117 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
#ifndef __WEECHAT_H
#define __WEECHAT_H 1
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <sys/time.h>
#ifdef HAVE_GNUTLS
#include <gnutls/gnutls.h>
#endif
#if defined(ENABLE_NLS) && !defined(_)
#include <locale.h>
#ifdef HAVE_LIBINTL_H
#include <libintl.h>
#else
#include "../../intl/libintl.h"
#endif
#define _(x) gettext(x)
#ifdef gettext_noop
#define N_(string) gettext_noop (string)
#else
#define N_(string) (string)
#endif
#endif
#if !defined(_)
#define _(x) (x)
#define N_(string) (string)
#endif
#define WEECHAT_COPYRIGHT_DATE "(c) 2003-2006"
#define WEECHAT_WEBSITE "http://weechat.flashtux.org"
#define WEECHAT_ERROR _("WeeChat Error:")
#define WEECHAT_WARNING _("WeeChat Warning:")
/* log file */
#define WEECHAT_LOG_NAME "weechat.log"
/* license */
#define WEE_LICENSE \
PACKAGE_STRING " (c) Copyright 2003-2006, compiled on " __DATE__ " " __TIME__ \
"\nDeveloped by FlashCode <flashcode@flashtux.org> - " WEECHAT_WEBSITE "\n\n" \
"This program is free software; you can redistribute it and/or modify\n" \
"it under the terms of the GNU General Public License as published by\n" \
"the Free Software Foundation; either version 2 of the License, or\n" \
"(at your option) any later version.\n" \
"\n", \
\
"This program is distributed in the hope that it will be useful,\n" \
"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" \
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" \
"GNU General Public License for more details.\n" \
"\n" \
"You should have received a copy of the GNU General Public License\n" \
"along with this program; if not, write to the Free Software\n" \
"Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n\n"
/* directory separator, depending on OS */
#ifdef _WIN32
#define DIR_SEPARATOR "\\"
#define DIR_SEPARATOR_CHAR '\\'
#else
#define DIR_SEPARATOR "/"
#define DIR_SEPARATOR_CHAR '/'
#endif
/* global variables and functions */
extern char *weechat_argv0;
extern time_t weechat_start_time;
extern int quit_weechat;
extern char *weechat_home;
extern FILE *weechat_log_file;
extern char *local_charset;
#ifdef HAVE_GNUTLS
extern gnutls_certificate_credentials gnutls_xcred;
#endif
extern int ascii_strcasecmp (char *, char *);
extern int ascii_strncasecmp (char *, char *, int);
extern void weechat_log_printf (char *, ...);
extern char *weechat_iconv (char *, char *, char *);
extern char *weechat_strreplace (char *, char *, char *);
extern void weechat_dump (int);
extern long get_timeval_diff (struct timeval *, struct timeval *);
extern void weechat_shutdown (int, int);
#endif /* weechat.h */
File diff suppressed because it is too large Load Diff
+262
View File
@@ -0,0 +1,262 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
#ifndef __WEECHAT_CONFIG_H
#define __WEECHAT_CONFIG_H 1
#include "../irc/irc.h"
#define WEECHAT_CONFIG_NAME "weechat.rc"
#define CONFIG_SECTION_NONE -1
#define CONFIG_SECTION_LOOK 0
#define CONFIG_SECTION_COLORS 1
#define CONFIG_SECTION_HISTORY 2
#define CONFIG_SECTION_LOG 3
#define CONFIG_SECTION_IRC 4
#define CONFIG_SECTION_DCC 5
#define CONFIG_SECTION_PROXY 6
#define CONFIG_SECTION_PLUGINS 7
#define CONFIG_SECTION_KEYS 8
#define CONFIG_SECTION_ALIAS 9
#define CONFIG_SECTION_IGNORE 10
#define CONFIG_SECTION_SERVER 11
#define CONFIG_NUMBER_SECTIONS 12
#define OPTION_TYPE_BOOLEAN 1 /* values: on/off */
#define OPTION_TYPE_INT 2 /* values: from min to max */
#define OPTION_TYPE_INT_WITH_STRING 3 /* values: one from **array_values */
#define OPTION_TYPE_COLOR 4 /* values: a color name */
#define OPTION_TYPE_STRING 5 /* values: any string, may be empty */
#define BOOL_FALSE 0
#define BOOL_TRUE 1
#define CFG_LOOK_NICKLIST_LEFT 0
#define CFG_LOOK_NICKLIST_RIGHT 1
#define CFG_LOOK_NICKLIST_TOP 2
#define CFG_LOOK_NICKLIST_BOTTOM 3
#define CFG_IRC_DISPLAY_AWAY_OFF 0
#define CFG_IRC_DISPLAY_AWAY_LOCAL 1
#define CFG_IRC_DISPLAY_AWAY_CHANNEL 2
typedef struct t_config_section t_config_section;
struct t_config_section
{
int section_number;
char *section_name;
};
typedef struct t_config_option t_config_option;
struct t_config_option
{
char *option_name;
char *short_description;
char *long_description;
int option_type;
int min, max;
int default_int;
char *default_string;
char **array_values;
int *ptr_int;
char **ptr_string;
void (*handler_change)();
};
extern int cfg_look_set_title;
extern int cfg_look_startup_logo;
extern int cfg_look_startup_version;
extern char *cfg_look_weechat_slogan;
extern char *cfg_look_charset_decode_iso;
extern char *cfg_look_charset_decode_utf;
extern char *cfg_look_charset_encode;
extern char *cfg_look_charset_internal;
extern int cfg_look_one_server_buffer;
extern int cfg_look_open_near_server;
extern int cfg_look_scroll_amount;
extern char *cfg_look_buffer_timestamp;
extern int cfg_look_color_nicks_number;
extern int cfg_look_color_actions;
extern int cfg_look_nicklist;
extern int cfg_look_nicklist_position;
extern int cfg_look_nicklist_min_size;
extern int cfg_look_nicklist_max_size;
extern int cfg_look_nickmode;
extern int cfg_look_nickmode_empty;
extern char *cfg_look_no_nickname;
extern char *cfg_look_completor;
extern char *cfg_look_nick_completion_ignore;
extern int cfg_look_nick_complete_first;
extern int cfg_look_infobar;
extern char *cfg_look_infobar_timestamp;
extern int cfg_look_infobar_seconds;
extern int cfg_look_infobar_delay_highlight;
extern int cfg_look_hotlist_names_count;
extern int cfg_look_hotlist_names_level;
extern int cfg_look_hotlist_names_length;
extern int cfg_look_day_change;
extern char *cfg_look_day_change_timestamp;
extern char *cfg_look_read_marker;
extern int cfg_col_real_white;
extern int cfg_col_separator;
extern int cfg_col_title;
extern int cfg_col_title_bg;
extern int cfg_col_chat;
extern int cfg_col_chat_time;
extern int cfg_col_chat_time_sep;
extern int cfg_col_chat_prefix1;
extern int cfg_col_chat_prefix2;
extern int cfg_col_chat_server;
extern int cfg_col_chat_join;
extern int cfg_col_chat_part;
extern int cfg_col_chat_nick;
extern int cfg_col_chat_host;
extern int cfg_col_chat_channel;
extern int cfg_col_chat_dark;
extern int cfg_col_chat_highlight;
extern int cfg_col_chat_bg;
extern int cfg_col_chat_read_marker;
extern int cfg_col_chat_read_marker_bg;
extern int cfg_col_status;
extern int cfg_col_status_delimiters;
extern int cfg_col_status_channel;
extern int cfg_col_status_data_msg;
extern int cfg_col_status_data_private;
extern int cfg_col_status_data_highlight;
extern int cfg_col_status_data_other;
extern int cfg_col_status_more;
extern int cfg_col_status_bg;
extern int cfg_col_infobar;
extern int cfg_col_infobar_delimiters;
extern int cfg_col_infobar_highlight;
extern int cfg_col_infobar_bg;
extern int cfg_col_input;
extern int cfg_col_input_channel;
extern int cfg_col_input_nick;
extern int cfg_col_input_delimiters;
extern int cfg_col_input_bg;
extern int cfg_col_nick;
extern int cfg_col_nick_away;
extern int cfg_col_nick_chanowner;
extern int cfg_col_nick_chanadmin;
extern int cfg_col_nick_op;
extern int cfg_col_nick_halfop;
extern int cfg_col_nick_voice;
extern int cfg_col_nick_more;
extern int cfg_col_nick_sep;
extern int cfg_col_nick_self;
extern int cfg_col_nick_colors[COLOR_WIN_NICK_NUMBER];
extern int cfg_col_nick_private;
extern int cfg_col_nick_bg;
extern int cfg_col_dcc_selected;
extern int cfg_col_dcc_waiting;
extern int cfg_col_dcc_connecting;
extern int cfg_col_dcc_active;
extern int cfg_col_dcc_done;
extern int cfg_col_dcc_failed;
extern int cfg_col_dcc_aborted;
extern int cfg_history_max_lines;
extern int cfg_history_max_commands;
extern int cfg_history_display_default;
extern int cfg_log_auto_server;
extern int cfg_log_auto_channel;
extern int cfg_log_auto_private;
extern int cfg_log_plugin_msg;
extern char *cfg_log_path;
extern char *cfg_log_timestamp;
extern int cfg_log_hide_nickserv_pwd;
extern int cfg_irc_display_away;
extern int cfg_irc_show_away_once;
extern char *cfg_irc_default_msg_part;
extern char *cfg_irc_default_msg_quit;
extern int cfg_irc_notice_as_pv;
extern int cfg_irc_away_check;
extern int cfg_irc_away_check_max_nicks;
extern int cfg_irc_lag_check;
extern int cfg_irc_lag_min_show;
extern int cfg_irc_lag_disconnect;
extern int cfg_irc_fifo_pipe;
extern char *cfg_irc_highlight;
extern int cfg_irc_colors_receive;
extern int cfg_irc_colors_send;
extern int cfg_dcc_auto_accept_files;
extern int cfg_dcc_auto_accept_chats;
extern int cfg_dcc_timeout;
extern int cfg_dcc_blocksize;
extern char *cfg_dcc_port_range;
extern char *cfg_dcc_own_ip;
extern char *cfg_dcc_download_path;
extern char *cfg_dcc_upload_path;
extern int cfg_dcc_convert_spaces;
extern int cfg_dcc_auto_rename;
extern int cfg_dcc_auto_resume;
extern int cfg_proxy_use;
extern int cfg_proxy_type;
extern char *cfg_proxy_type_values[];
extern int cfg_proxy_ipv6;
extern char *cfg_proxy_address;
extern int cfg_proxy_port;
extern char *cfg_proxy_username;
extern char *cfg_proxy_password;
extern char *cfg_plugins_path;
extern char *cfg_plugins_autoload;
extern char *cfg_plugins_extension;
extern t_config_section config_sections [CONFIG_NUMBER_SECTIONS];
extern t_config_option * weechat_options [CONFIG_NUMBER_SECTIONS];
extern char *config_get_section ();
extern void config_change_noop ();
extern void config_change_title ();
extern void config_change_buffers ();
extern void config_change_buffer_content ();
extern void config_change_read_marker ();
extern void config_change_charset ();
extern void config_change_one_server_buffer ();
extern void config_change_color ();
extern void config_change_nicks_colors ();
extern void config_change_away_check ();
extern void config_change_fifo_pipe ();
extern void config_change_notify_levels ();
extern void config_change_log ();
extern int config_option_set_value (t_config_option *, char *);
extern void config_option_list_remove (char **, char *);
extern void config_option_list_set (char **, char *, char *);
extern void config_option_list_get_value (char **, char *, char **, int *);
extern t_config_option *config_option_search (char *);
extern void config_option_search_option_value (char *, t_config_option **, void **);
extern int config_set_value (char *, char *);
extern void *config_get_server_option_ptr (t_irc_server *, char *);
extern int config_set_server_value (t_irc_server *, char *, char *);
extern int config_read ();
extern int config_create_default ();
extern int config_write ();
#endif /* weeconfig.h */
+165
View File
@@ -0,0 +1,165 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
/* weelist.c: sorted lists management */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <string.h>
#include "weechat.h"
#include "weelist.h"
/*
* weelist_search: search date in a list
*/
t_weelist *
weelist_search (t_weelist *weelist, char *data)
{
t_weelist *ptr_weelist;
for (ptr_weelist = weelist; ptr_weelist; ptr_weelist = ptr_weelist->next_weelist)
{
if (ascii_strcasecmp (data, ptr_weelist->data) == 0)
return ptr_weelist;
}
/* word not found in list */
return NULL;
}
/*
* weelist_find_pos: find position for data (keeping list sorted)
*/
t_weelist *
weelist_find_pos (t_weelist *weelist, char *data)
{
t_weelist *ptr_weelist;
for (ptr_weelist = weelist; ptr_weelist; ptr_weelist = ptr_weelist->next_weelist)
{
if (ascii_strcasecmp (data, ptr_weelist->data) < 0)
return ptr_weelist;
}
/* position not found, best position is at the end */
return NULL;
}
/*
* weelist_insert: insert an element to the list (at good position)
*/
void
weelist_insert (t_weelist **weelist, t_weelist **last_weelist, t_weelist *element)
{
t_weelist *pos_weelist;
pos_weelist = weelist_find_pos (*weelist, element->data);
if (*weelist)
{
if (pos_weelist)
{
/* insert data into the list (before position found) */
element->prev_weelist = pos_weelist->prev_weelist;
element->next_weelist = pos_weelist;
if (pos_weelist->prev_weelist)
pos_weelist->prev_weelist->next_weelist = element;
else
*weelist = element;
pos_weelist->prev_weelist = element;
}
else
{
/* add data to the end */
element->prev_weelist = *last_weelist;
element->next_weelist = NULL;
(*last_weelist)->next_weelist = element;
*last_weelist = element;
}
}
else
{
element->prev_weelist = NULL;
element->next_weelist = NULL;
*weelist = element;
*last_weelist = element;
}
}
/*
* weelist_add: create new data and add it to list
*/
t_weelist *
weelist_add (t_weelist **weelist, t_weelist **last_weelist, char *data)
{
t_weelist *new_weelist;
if (!data || (!data[0]))
return NULL;
if ((new_weelist = ((t_weelist *) malloc (sizeof (t_weelist)))))
{
new_weelist->data = strdup (data);
weelist_insert (weelist, last_weelist, new_weelist);
return new_weelist;
}
/* failed to allocate new element */
return NULL;
}
/*
* weelist_remove: free an element in a list
*/
void
weelist_remove (t_weelist **weelist, t_weelist **last_weelist, t_weelist *element)
{
t_weelist *new_weelist;
if (!element)
return;
/* remove element from list */
if (*last_weelist == element)
*last_weelist = element->prev_weelist;
if (element->prev_weelist)
{
(element->prev_weelist)->next_weelist = element->next_weelist;
new_weelist = *weelist;
}
else
new_weelist = element->next_weelist;
if (element->next_weelist)
(element->next_weelist)->prev_weelist = element->prev_weelist;
/* free data */
if (element->data)
free (element->data);
free (element);
*weelist = new_weelist;
}
+37
View File
@@ -0,0 +1,37 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
#ifndef __WEECHAT_LIST_H
#define __WEECHAT_LIST_H 1
typedef struct t_weelist t_weelist;
struct t_weelist
{
char *data;
t_weelist *prev_weelist;
t_weelist *next_weelist;
};
t_weelist *weelist_search (t_weelist *, char *);
t_weelist *weelist_add (t_weelist **, t_weelist **, char *);
void weelist_remove (t_weelist **, t_weelist **, t_weelist *);
#endif /* weelist.h */
-199
View File
@@ -1,199 +0,0 @@
/*
* Copyright (c) 2003 by FlashCode <flashcode@flashtux.org>
* Bounga <bounga@altern.org>
* Xahlexx <xahlexx@tuxisland.org>
* See README for License detail.
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* completion.c: completes words according to context (cmd/nick) */
#include <stdlib.h>
#include <string.h>
#include "weechat.h"
#include "completion.h"
#include "irc/irc.h"
#include "command.h"
/*
* completion_init: init completion
*/
void
completion_init (t_completion *completion)
{
completion->position = -1;
completion->base_word = NULL;
}
/*
* completion_command: complete a command
*/
void
completion_command (t_completion *completion)
{
int length, word_found_seen;
t_index_command *ptr_index;
length = strlen (completion->base_word) - 1;
word_found_seen = 0;
for (ptr_index = index_commands; ptr_index; ptr_index = ptr_index->next_index)
{
if (strncasecmp (ptr_index->command_name, completion->base_word + 1, length) == 0)
{
if ((!completion->word_found) || word_found_seen)
{
completion->word_found = ptr_index->command_name;
return;
}
}
if (completion->word_found &&
(strcasecmp (ptr_index->command_name, completion->word_found) == 0))
word_found_seen = 1;
}
if (completion->word_found)
{
completion->word_found = NULL;
completion_command (completion);
}
}
/*
* completion_nick: complete a nick
*/
void
completion_nick (t_completion *completion, t_irc_channel *channel)
{
int length, word_found_seen;
t_irc_nick *ptr_nick;
length = strlen (completion->base_word);
word_found_seen = 0;
for (ptr_nick = channel->nicks; ptr_nick; ptr_nick = ptr_nick->next_nick)
{
if (strncasecmp (ptr_nick->nick, completion->base_word, length) == 0)
{
if ((!completion->word_found) || word_found_seen)
{
completion->word_found = ptr_nick->nick;
return;
}
}
if (completion->word_found &&
(strcasecmp (ptr_nick->nick, completion->word_found) == 0))
word_found_seen = 1;
}
if (completion->word_found)
{
completion->word_found = NULL;
completion_nick (completion, channel);
}
}
/*
* completion_search: complete word according to context
*/
void
completion_search (t_completion *completion, void *channel,
char *buffer, int size, int pos)
{
int i, pos_start, pos_end;
char *old_word_found;
/* TODO: complete when no word is there with command according to context */
if (size == 0)
{
completion->word_found = NULL;
return;
}
/* if new complation => look for base word */
if (pos != completion->position)
{
completion->word_found = NULL;
if ((pos == size) || (buffer[pos-1] != ' '))
pos--;
if ((pos > 0) && (buffer[pos] == ' '))
return;
i = pos;
while ((i >= 0) && (buffer[i] != ' '))
i--;
pos_start = i + 1;
i = pos;
while ((i < size) && (buffer[i] != ' '))
i++;
pos_end = i - 1;
if (pos_start > pos_end)
return;
completion->base_word_pos = pos_start;
if (completion->base_word)
free (completion->base_word);
completion->base_word = (char *) malloc (pos_end - pos_start + 2);
for (i = pos_start; i <= pos_end; i++)
completion->base_word[i - pos_start] = buffer[i];
completion->base_word[pos_end - pos_start + 1] = '\0';
if (completion->base_word[0] == '/')
completion->position_replace = pos_start + 1;
else
completion->position_replace = pos_start;
}
/* completion */
old_word_found = completion->word_found;
if (completion->base_word[0] == '/')
{
completion_command (completion);
if (completion->word_found)
{
if (old_word_found)
completion->diff_size = strlen (completion->word_found) -
strlen (old_word_found);
else
completion->diff_size = strlen (completion->word_found) -
strlen (completion->base_word) + 1;
}
}
else
{
if (channel)
{
completion_nick (completion, (t_irc_channel *)channel);
if (completion->word_found)
{
if (old_word_found)
completion->diff_size = strlen (completion->word_found) -
strlen (old_word_found);
else
completion->diff_size = strlen (completion->word_found) -
strlen (completion->base_word);
}
}
}
}
-41
View File
@@ -1,41 +0,0 @@
/*
* Copyright (c) 2003 by FlashCode <flashcode@flashtux.org>
* Bounga <bounga@altern.org>
* Xahlexx <xahlexx@tuxisland.org>
* See README for License detail.
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __WEECHAT_COMPLETION_H
#define __WEECHAT_COMPLETION_H 1
typedef struct t_completion t_completion;
struct t_completion
{
char *base_word; /* word to complete (when Tab was pressed) */
int base_word_pos; /* beggining of base word */
int position; /* position where we shoud complete */
char *word_found; /* word found (to replace base word) */
int position_replace; /* position where word should be replaced */
int diff_size; /* size difference (< 0 = char(s) deleted) */
};
extern void completion_init (t_completion *);
extern void completion_search (t_completion *, void *, char *, int, int);
#endif /* completion.h */
-1021
View File
File diff suppressed because it is too large Load Diff
-155
View File
@@ -1,155 +0,0 @@
/*
* Copyright (c) 2003 by FlashCode <flashcode@flashtux.org>
* Bounga <bounga@altern.org>
* Xahlexx <xahlexx@tuxisland.org>
* See README for License detail.
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __WEECHAT_CONFIG_H
#define __WEECHAT_CONFIG_H 1
#define WEECHAT_CONFIG_NAME "weechat.rc"
#define CONFIG_SECTION_NONE -1
#define CONFIG_SECTION_LOOK 0
#define CONFIG_SECTION_COLORS 1
#define CONFIG_SECTION_HISTORY 2
#define CONFIG_SECTION_LOG 3
#define CONFIG_SECTION_DCC 4
#define CONFIG_SECTION_PROXY 5
#define CONFIG_SECTION_SERVER 6
#define CONFIG_NUMBER_SECTIONS 7
#define OPTION_TYPE_BOOLEAN 1 /* values: on/off */
#define OPTION_TYPE_INT 2 /* values: from min to max */
#define OPTION_TYPE_INT_WITH_STRING 3 /* values: one from **array_values */
#define OPTION_TYPE_COLOR 4 /* values: a color name */
#define OPTION_TYPE_STRING 5 /* values: any string, may be empty */
#define BOOL_FALSE 0
#define BOOL_TRUE 1
#define CFG_LOOK_NICKLIST_LEFT 0
#define CFG_LOOK_NICKLIST_RIGHT 1
#define CFG_LOOK_NICKLIST_TOP 2
#define CFG_LOOK_NICKLIST_BOTTOM 3
typedef struct t_config_section t_config_section;
struct t_config_section
{
int section_number;
char *section_name;
};
typedef struct t_config_option t_config_option;
struct t_config_option
{
char *option_name;
char *short_description;
char *long_description;
int option_type;
int min, max;
int default_int;
char *default_string;
char **array_values;
int *ptr_int;
char **ptr_string;
int (*handler_change)(int *, char **);
};
extern int cfg_look_startup_logo;
extern int cfg_look_startup_version;
extern char *cfg_look_weechat_slogan;
extern int cfg_look_color_nicks;
extern int cfg_look_color_actions;
extern int cfg_look_remove_colors_from_msgs;
extern int cfg_look_nicklist;
extern int cfg_look_nicklist_position;
extern int cfg_look_nicklist_min_size;
extern int cfg_look_nicklist_max_size;
extern int cfg_look_nickmode;
extern int cfg_look_nickmode_empty;
extern char *cfg_look_no_nickname;
extern char *cfg_look_completor;
extern int cfg_col_title;
extern int cfg_col_title_bg;
extern int cfg_col_chat;
extern int cfg_col_chat_time;
extern int cfg_col_chat_time_sep;
extern int cfg_col_chat_prefix1;
extern int cfg_col_chat_prefix2;
extern int cfg_col_chat_nick;
extern int cfg_col_chat_host;
extern int cfg_col_chat_channel;
extern int cfg_col_chat_dark;
extern int cfg_col_chat_bg;
extern int cfg_col_status;
extern int cfg_col_status_active;
extern int cfg_col_status_data_msg;
extern int cfg_col_status_data_other;
extern int cfg_col_status_more;
extern int cfg_col_status_bg;
extern int cfg_col_input;
extern int cfg_col_input_channel;
extern int cfg_col_input_nick;
extern int cfg_col_input_bg;
extern int cfg_col_nick;
extern int cfg_col_nick_op;
extern int cfg_col_nick_halfop;
extern int cfg_col_nick_voice;
extern int cfg_col_nick_sep;
extern int cfg_col_nick_self;
extern int cfg_col_nick_private;
extern int cfg_col_nick_bg;
extern int cfg_history_max_lines;
extern int cfg_history_max_commands;
extern int cfg_log_auto_channels;
extern int cfg_log_auto_private;
extern char *cfg_log_path;
extern char *cfg_log_name;
extern char *cfg_log_timestamp;
extern char *cfg_log_start_string;
extern char *cfg_log_end_string;
extern int cfg_dcc_auto_accept_files;
extern int cfg_dcc_auto_accept_max_size;
extern int cfg_dcc_auto_accept_chats;
extern int cfg_dcc_timeout;
extern char *cfg_dcc_download_path;
extern char *cfg_dcc_upload_path;
extern int cfg_dcc_auto_rename;
extern int cfg_dcc_auto_resume;
extern int cfg_proxy_use;
extern char *cfg_proxy_address;
extern int cfg_proxy_port;
extern char *cfg_proxy_password;
extern t_config_section config_sections [CONFIG_NUMBER_SECTIONS];
extern t_config_option * weechat_options [CONFIG_NUMBER_SECTIONS];
extern int config_read ();
extern int config_create_default ();
extern void config_write ();
#endif /* config.h */
-55
View File
@@ -1,55 +0,0 @@
# Copyright (c) 2003 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
# (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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# WeeChat with Curses interface
ifeq ($(GUI), curses)
curses: curses/gui.a
curses/gui.a:
cd curses && make
endif
# WeeChat with Gtk+ interface
ifeq ($(GUI), gtk)
gtk: gtk/gui.a
gtk/gui.a:
cd gtk && make
endif
# WeeChat with Qt interface
ifeq ($(GUI), qt)
qt: qt/gui.a
qt/gui.a:
cd qt && make
endif
# WeeChat with Text interface
ifeq ($(GUI), text)
text: text/gui.a
text/gui.a:
cd text && make
endif
all:
make curses GUI=curses
clean:
rm -f *.o *.a *~ core
cd curses && make clean
cd gtk && make clean
cd qt && make clean
cd text && make clean
+43
View File
@@ -0,0 +1,43 @@
# Copyright (c) 2003-2006 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
# (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
#
INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\"
noinst_LIBRARIES = lib_weechat_gui_common.a
lib_weechat_gui_common_a_SOURCES = gui-common.c \
gui-action.c \
gui-keyboard.c \
gui.h
if GUI_NCURSES
curses_dir=curses
endif
if GUI_WXWIDGETS
wxwidgets_dir=wxwidgets
endif
if GUI_GTK
gtk_dir=gtk
endif
if GUI_QT
qt_dir=qt
endif
SUBDIRS = . $(curses_dir) $(wxwidgets_dir) $(gtk_dir) $(qt_dir)
-38
View File
@@ -1,38 +0,0 @@
# Copyright (c) 2003 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
# (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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
CC=gcc
OPTIONS=-Wall -W -pipe -O2
OUTPUT=../gui.a
OBJS=gui-display.o gui-input.o
DEFINES=WEE_CURSES
all: $(OBJS)
ar r $(OUTPUT) $(OBJS)
$(OBJS):
$(CC) $(OPTIONS) -o $@ -c $< $(INCLUDES) -D$(DEFINES)
clean:
rm -f *.o *.a *~ core
gui-display.o: gui-display.c ../../weechat.h ../gui.h ../../completion.h \
../../history.h ../../config.h ../../irc/irc.h ../../gui/gui.h
gui-input.o: gui-input.c ../../weechat.h ../gui.h ../../completion.h \
../../history.h ../../command.h ../../irc/irc.h ../../gui/gui.h
+42
View File
@@ -0,0 +1,42 @@
# Copyright (c) 2003-2006 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
# (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
#
INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\"
bin_PROGRAMS = weechat-curses
if PLUGINS
weechat_curses_LDADD = ../gui-common.o ../gui-keyboard.o \
../gui-action.o \
../../common/lib_weechat_main.a \
../../irc/lib_weechat_irc.a \
../../plugins/lib_weechat_plugins.a \
$(PLUGINS_LIBS) \
$(NCURSES_LIBS) \
$(GNUTLS_LFLAGS)
else
weechat_curses_LDADD = ../gui-common.o ../gui-keyboard.o \
../gui-action.o \
../../common/lib_weechat_main.a \
../../irc/lib_weechat_irc.a \
$(PLUGINS_LIBS) \
$(NCURSES_LIBS) \
$(GNUTLS_LFLAGS)
endif
weechat_curses_SOURCES = gui-display.c \
gui-input.c
+3288 -1309
View File
File diff suppressed because it is too large Load Diff
+395 -449
View File
@@ -1,8 +1,6 @@
/*
* Copyright (c) 2003 by FlashCode <flashcode@flashtux.org>
* Bounga <bounga@altern.org>
* Xahlexx <xahlexx@tuxisland.org>
* See README for License detail.
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -16,13 +14,16 @@
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* gui-input: user input functions for Curses GUI */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
@@ -30,469 +31,273 @@
#include <signal.h>
#include <time.h>
#include <sys/socket.h>
#include <curses.h>
#include "../../weechat.h"
#ifdef HAVE_NCURSESW_CURSES_H
#include <ncursesw/ncurses.h>
#else
#include <ncurses.h>
#endif
#include "../../common/weechat.h"
#include "../gui.h"
#include "../../config.h"
#include "../../command.h"
#include "../../common/weeconfig.h"
#include "../../common/command.h"
#include "../../common/hotlist.h"
#include "../../common/fifo.h"
#include "../../common/utf8.h"
#include "../../irc/irc.h"
#include "../../plugins/plugins.h"
/*
* gui_optimize_input_buffer_size: optimize input buffer size by adding
* or deleting data block (predefined size)
* gui_input_default_key_bindings: create default key bindings
*/
void
gui_optimize_input_buffer_size (t_gui_window *window)
gui_input_default_key_bindings ()
{
int optimal_size;
int i;
char key_str[32], command[32];
optimal_size = ((window->input_buffer_size / INPUT_BUFFER_BLOCK_SIZE) *
INPUT_BUFFER_BLOCK_SIZE) + INPUT_BUFFER_BLOCK_SIZE;
if (window->input_buffer_alloc != optimal_size)
/* keys binded with internal functions */
gui_key_bind ( /* RC */ "ctrl-M", "return");
gui_key_bind ( /* RC */ "ctrl-J", "return");
gui_key_bind ( /* tab */ "ctrl-I", "tab");
gui_key_bind ( /* basckp */ "ctrl-H", "backspace");
gui_key_bind ( /* basckp */ "ctrl-?", "backspace");
gui_key_bind ( /* del */ "meta2-3~", "delete");
gui_key_bind ( /* ^K */ "ctrl-K", "delete_end_line");
gui_key_bind ( /* ^U */ "ctrl-U", "delete_beginning_line");
gui_key_bind ( /* ^W */ "ctrl-W", "delete_previous_word");
gui_key_bind ( /* ^Y */ "ctrl-Y", "clipboard_paste");
gui_key_bind ( /* ^T */ "ctrl-T", "transpose_chars");
gui_key_bind ( /* home */ "meta2-1~", "home");
gui_key_bind ( /* home */ "meta2-H", "home");
gui_key_bind ( /* home */ "meta2-7~", "home");
gui_key_bind ( /* ^A */ "ctrl-A", "home");
gui_key_bind ( /* end */ "meta2-4~", "end");
gui_key_bind ( /* end */ "meta2-F", "end");
gui_key_bind ( /* end */ "meta2-8~", "end");
gui_key_bind ( /* ^E */ "ctrl-E", "end");
gui_key_bind ( /* left */ "meta2-D", "left");
gui_key_bind ( /* right */ "meta2-C", "right");
gui_key_bind ( /* up */ "meta2-A", "up");
gui_key_bind ( /* ^up */ "meta-Oa", "up_global");
gui_key_bind ( /* down */ "meta2-B", "down");
gui_key_bind ( /* ^down */ "meta-Ob", "down_global");
gui_key_bind ( /* pgup */ "meta2-5~", "page_up");
gui_key_bind ( /* pgdn */ "meta2-6~", "page_down");
gui_key_bind ( /* m-pgup */ "meta-meta2-5~", "scroll_up");
gui_key_bind ( /* m-pgdn */ "meta-meta2-6~", "scroll_down");
gui_key_bind ( /* m-home */ "meta-meta2-1~", "scroll_top");
gui_key_bind ( /* m-end */ "meta-meta2-4~", "scroll_bottom");
gui_key_bind ( /* F10 */ "meta2-21~", "infobar_clear");
gui_key_bind ( /* F11 */ "meta2-23~", "nick_page_up");
gui_key_bind ( /* F12 */ "meta2-24~", "nick_page_down");
gui_key_bind ( /* m-F11 */ "meta-meta2-23~", "nick_beginning");
gui_key_bind ( /* m-F12 */ "meta-meta2-24~", "nick_end");
gui_key_bind ( /* ^L */ "ctrl-L", "refresh");
gui_key_bind ( /* m-a */ "meta-a", "jump_smart");
gui_key_bind ( /* m-b */ "meta-b", "previous_word");
gui_key_bind ( /* ^left */ "meta-Od", "previous_word");
gui_key_bind ( /* m-d */ "meta-d", "delete_next_word");
gui_key_bind ( /* m-f */ "meta-f", "next_word");
gui_key_bind ( /* ^right */ "meta-Oc", "next_word");
gui_key_bind ( /* m-h */ "meta-h", "hotlist_clear");
gui_key_bind ( /* m-j,m-d */ "meta-jmeta-d", "jump_dcc");
gui_key_bind ( /* m-j,m-l */ "meta-jmeta-l", "jump_last_buffer");
gui_key_bind ( /* m-j,m-s */ "meta-jmeta-s", "jump_server");
gui_key_bind ( /* m-j,m-x */ "meta-jmeta-x", "jump_next_server");
gui_key_bind ( /* m-j,m-r */ "meta-jmeta-r", "jump_raw_data");
gui_key_bind ( /* m-k */ "meta-k", "grab_key");
gui_key_bind ( /* m-n */ "meta-n", "scroll_next_highlight");
gui_key_bind ( /* m-p */ "meta-p", "scroll_previous_highlight");
gui_key_bind ( /* m-r */ "meta-r", "delete_line");
gui_key_bind ( /* m-s */ "meta-s", "switch_server");
gui_key_bind ( /* m-u */ "meta-u", "scroll_unread");
/* keys binded with commands */
gui_key_bind ( /* m-left */ "meta-meta2-D", "/buffer -1");
gui_key_bind ( /* F5 */ "meta2-15~", "/buffer -1");
gui_key_bind ( /* m-right */ "meta-meta2-C", "/buffer +1");
gui_key_bind ( /* F6 */ "meta2-17~", "/buffer +1");
gui_key_bind ( /* F7 */ "meta2-18~", "/window -1");
gui_key_bind ( /* F8 */ "meta2-19~", "/window +1");
gui_key_bind ( /* m-w,m-up */ "meta-wmeta-meta2-A", "/window up");
gui_key_bind ( /* m-w,m-down */ "meta-wmeta-meta2-B", "/window down");
gui_key_bind ( /* m-w,m-left */ "meta-wmeta-meta2-D", "/window left");
gui_key_bind ( /* m-w,m-right */ "meta-wmeta-meta2-C", "/window right");
gui_key_bind ( /* m-0 */ "meta-0", "/buffer 10");
gui_key_bind ( /* m-1 */ "meta-1", "/buffer 1");
gui_key_bind ( /* m-2 */ "meta-2", "/buffer 2");
gui_key_bind ( /* m-3 */ "meta-3", "/buffer 3");
gui_key_bind ( /* m-4 */ "meta-4", "/buffer 4");
gui_key_bind ( /* m-5 */ "meta-5", "/buffer 5");
gui_key_bind ( /* m-6 */ "meta-6", "/buffer 6");
gui_key_bind ( /* m-7 */ "meta-7", "/buffer 7");
gui_key_bind ( /* m-8 */ "meta-8", "/buffer 8");
gui_key_bind ( /* m-9 */ "meta-9", "/buffer 9");
/* bind meta-j + {01..99} to switch to buffers # > 10 */
for (i = 1; i < 100; i++)
{
window->input_buffer_alloc = optimal_size;
window->input_buffer = realloc (window->input_buffer, optimal_size);
sprintf (key_str, "meta-j%02d", i);
sprintf (command, "/buffer %d", i);
gui_key_bind (key_str, command);
}
}
/*
* gui_delete_previous_word: delete previous word
* gui_input_grab_end: insert grabbed key in input buffer
*/
void
gui_delete_previous_word ()
gui_input_grab_end ()
{
int i, j, num_char_deleted, num_char_end;
char *expanded_key;
/* get expanded name (for example: ^U => ctrl-u) */
expanded_key = gui_key_get_expanded_name (gui_key_buffer);
if (gui_current_window->input_buffer_pos > 0)
if (expanded_key)
{
i = gui_current_window->input_buffer_pos - 1;
while ((i >= 0) &&
(gui_current_window->input_buffer[i] == ' '))
i--;
if (i >= 0)
if (gui_current_window->buffer->has_input)
{
while ((i >= 0) &&
(gui_current_window->input_buffer[i] != ' '))
i--;
if (i >= 0)
gui_insert_string_input (gui_current_window, expanded_key, -1);
gui_current_window->buffer->input_buffer_pos += utf8_strlen (expanded_key);
gui_draw_buffer_input (gui_current_window->buffer, 1);
}
free (expanded_key);
}
/* end grab mode */
gui_key_grab = 0;
gui_key_grab_count = 0;
gui_key_buffer[0] = '\0';
}
/*
* gui_input_read: read keyboard chars
*/
void
gui_input_read ()
{
int key, i, insert_ok;
char key_str[32];
i = 0;
/* do not loop too much here (for example when big paste was made),
to read also socket & co */
while (i < 8)
{
if (gui_key_grab && (gui_key_grab_count > 10))
gui_input_grab_end ();
key = getch ();
insert_ok = 1;
if (key == ERR)
{
if (gui_key_grab && (gui_key_grab_count > 0))
gui_input_grab_end ();
break;
}
if (key == KEY_RESIZE)
{
gui_refresh_screen ();
continue;
}
gui_last_activity_time = time (NULL);
if (key < 32)
{
insert_ok = 0;
key_str[0] = '^';
key_str[1] = (char) key + '@';
key_str[2] = '\0';
}
else if (key == 127)
{
key_str[0] = '^';
key_str[1] = '?';
key_str[2] = '\0';
}
else
{
if (local_utf8)
{
while ((i >= 0) &&
(gui_current_window->input_buffer[i] == ' '))
i--;
/* 1 char: 0vvvvvvv */
if (key < 0x80)
{
key_str[0] = (char) key;
key_str[1] = '\0';
}
/* 2 chars: 110vvvvv 10vvvvvv */
else if ((key & 0xE0) == 0xC0)
{
key_str[0] = (char) key;
key_str[1] = (char) (getch ());
key_str[2] = '\0';
}
/* 3 chars: 1110vvvv 10vvvvvv 10vvvvvv */
else if ((key & 0xF0) == 0xE0)
{
key_str[0] = (char) key;
key_str[1] = (char) (getch ());
key_str[2] = (char) (getch ());
key_str[3] = '\0';
}
/* 4 chars: 11110vvv 10vvvvvv 10vvvvvv 10vvvvvv */
else if ((key & 0xF8) == 0xF0)
{
key_str[0] = (char) key;
key_str[1] = (char) (getch ());
key_str[2] = (char) (getch ());
key_str[3] = (char) (getch ());
key_str[4] = '\0';
}
}
else
{
key_str[0] = (char) key;
key_str[1] = '\0';
}
}
if (i >= 0)
i++;
i++;
num_char_deleted = gui_current_window->input_buffer_pos - i;
num_char_end = gui_current_window->input_buffer_size -
gui_current_window->input_buffer_pos;
for (j = 0; j < num_char_end; j++)
gui_current_window->input_buffer[i + j] =
gui_current_window->input_buffer[gui_current_window->input_buffer_pos + j];
gui_current_window->input_buffer_size -= num_char_deleted;
gui_current_window->input_buffer[gui_current_window->input_buffer_size] = '\0';
gui_current_window->input_buffer_pos = i;
gui_draw_window_input (gui_current_window);
gui_optimize_input_buffer_size (gui_current_window);
gui_current_window->completion.position = -1;
}
}
/*
* gui_move_previous_word: move to beginning of previous word
*/
void
gui_move_previous_word ()
{
int i;
if (gui_current_window->input_buffer_pos > 0)
{
i = gui_current_window->input_buffer_pos - 1;
while ((i >= 0) &&
(gui_current_window->input_buffer[i] == ' '))
i--;
if (i < 0)
gui_current_window->input_buffer_pos = 0;
else
if (strcmp (key_str, "^") == 0)
{
while ((i >= 0) &&
(gui_current_window->input_buffer[i] != ' '))
i--;
gui_current_window->input_buffer_pos = i + 1;
key_str[1] = '^';
key_str[2] = '\0';
}
gui_draw_window_input (gui_current_window);
}
}
/*
* gui_move_next_word: move to the end of next
*/
void
gui_move_next_word ()
{
int i;
if (gui_current_window->input_buffer_pos <
gui_current_window->input_buffer_size + 1)
{
i = gui_current_window->input_buffer_pos;
while ((i <= gui_current_window->input_buffer_size) &&
(gui_current_window->input_buffer[i] == ' '))
i++;
if (i > gui_current_window->input_buffer_size)
gui_current_window->input_buffer_pos = i - 1;
else
/*gui_printf (gui_current_window->buffer, "gui_input_read: key = %s (%d)\n", key_str, key);*/
if ((gui_key_pressed (key_str) != 0) && (insert_ok))
{
while ((i <= gui_current_window->input_buffer_size) &&
(gui_current_window->input_buffer[i] != ' '))
i++;
if (i > gui_current_window->input_buffer_size)
gui_current_window->input_buffer_pos =
gui_current_window->input_buffer_size;
else
gui_current_window->input_buffer_pos = i;
if (strcmp (key_str, "^^") == 0)
key_str[1] = '\0';
switch (gui_current_window->buffer->type)
{
case BUFFER_TYPE_STANDARD:
gui_insert_string_input (gui_current_window, key_str, -1);
gui_current_window->buffer->input_buffer_pos += utf8_strlen (key_str);
gui_draw_buffer_input (gui_current_window->buffer, 0);
gui_current_window->buffer->completion.position = -1;
break;
case BUFFER_TYPE_DCC:
gui_exec_action_dcc (gui_current_window, key_str);
break;
case BUFFER_TYPE_RAW_DATA:
gui_exec_action_raw_data (gui_current_window, key_str);
break;
}
}
gui_draw_window_input (gui_current_window);
}
}
/*
* gui_buffer_insert_string: insert a string into the input buffer
*/
void
gui_buffer_insert_string (char *string, int pos)
{
int i, start, end, length;
length = strlen (string);
/* increase buffer size */
gui_current_window->input_buffer_size += length;
gui_optimize_input_buffer_size (gui_current_window);
gui_current_window->input_buffer[gui_current_window->input_buffer_size] = '\0';
/* move end of string to the right */
start = pos + length;
end = gui_current_window->input_buffer_size - 1;
for (i = end; i >= start; i--)
gui_current_window->input_buffer[i] =
gui_current_window->input_buffer[i - length];
/* insert new string */
strncpy (gui_current_window->input_buffer + pos, string, length);
}
/*
* gui_read_keyb: read keyboard line
*/
void
gui_read_keyb ()
{
int key, i;
t_gui_window *ptr_window;
char new_char[2];
key = getch ();
if (key != ERR)
{
switch (key)
{
/* resize event: do nothing */
case KEY_RESIZE:
gui_redraw_window (gui_current_window);
break;
case KEY_F(6):
gui_switch_to_previous_window ();
break;
/* next window */
case KEY_F(7):
gui_switch_to_next_window ();
break;
/* cursor up */
case KEY_UP:
if (gui_current_window->ptr_history)
{
gui_current_window->ptr_history =
gui_current_window->ptr_history->next_history;
if (!gui_current_window->ptr_history)
gui_current_window->ptr_history =
gui_current_window->history;
}
else
gui_current_window->ptr_history =
gui_current_window->history;
if (gui_current_window->ptr_history)
{
gui_current_window->input_buffer_size =
strlen (gui_current_window->ptr_history->text);
gui_optimize_input_buffer_size (gui_current_window);
gui_current_window->input_buffer_pos =
gui_current_window->input_buffer_size;
strcpy (gui_current_window->input_buffer,
gui_current_window->ptr_history->text);
gui_draw_window_input (gui_current_window);
}
break;
/* cursor down */
case KEY_DOWN:
if (gui_current_window->ptr_history)
{
gui_current_window->ptr_history =
gui_current_window->ptr_history->prev_history;
if (gui_current_window->ptr_history)
gui_current_window->input_buffer_size =
strlen (gui_current_window->ptr_history->text);
else
gui_current_window->input_buffer_size = 0;
gui_optimize_input_buffer_size (gui_current_window);
gui_current_window->input_buffer_pos =
gui_current_window->input_buffer_size;
if (gui_current_window->ptr_history)
strcpy (gui_current_window->input_buffer,
gui_current_window->ptr_history->text);
gui_draw_window_input (gui_current_window);
}
break;
/* cursor left */
case KEY_LEFT:
if (gui_current_window->input_buffer_pos > 0)
{
gui_current_window->input_buffer_pos--;
gui_draw_window_input (gui_current_window);
}
break;
/* cursor right */
case KEY_RIGHT:
if (gui_current_window->input_buffer_pos <
gui_current_window->input_buffer_size)
{
gui_current_window->input_buffer_pos++;
gui_draw_window_input (gui_current_window);
}
break;
/* home key */
case KEY_HOME:
if (gui_current_window->input_buffer_pos > 0)
{
gui_current_window->input_buffer_pos = 0;
gui_draw_window_input (gui_current_window);
}
break;
/* end key */
case KEY_END:
if (gui_current_window->input_buffer_pos <
gui_current_window->input_buffer_size)
{
gui_current_window->input_buffer_pos =
gui_current_window->input_buffer_size;
gui_draw_window_input (gui_current_window);
}
break;
/* page up */
case KEY_PPAGE:
gui_move_page_up ();
break;
/* page down */
case KEY_NPAGE:
gui_move_page_down ();
break;
/* erase before cursor and move cursor to the left */
case 127:
case KEY_BACKSPACE:
if (gui_current_window->input_buffer_pos > 0)
{
i = gui_current_window->input_buffer_pos-1;
while (gui_current_window->input_buffer[i])
{
gui_current_window->input_buffer[i] =
gui_current_window->input_buffer[i+1];
i++;
}
gui_current_window->input_buffer_size--;
gui_current_window->input_buffer_pos--;
gui_current_window->input_buffer[gui_current_window->input_buffer_size] = '\0';
gui_draw_window_input (gui_current_window);
gui_optimize_input_buffer_size (gui_current_window);
gui_current_window->completion.position = -1;
}
break;
/* Control + Backspace */
case 0x08:
gui_delete_previous_word ();
break;
/* erase char under cursor */
case KEY_DC:
if (gui_current_window->input_buffer_pos <
gui_current_window->input_buffer_size)
{
i = gui_current_window->input_buffer_pos;
while (gui_current_window->input_buffer[i])
{
gui_current_window->input_buffer[i] =
gui_current_window->input_buffer[i+1];
i++;
}
gui_current_window->input_buffer_size--;
gui_current_window->input_buffer[gui_current_window->input_buffer_size] = '\0';
gui_draw_window_input (gui_current_window);
gui_optimize_input_buffer_size (gui_current_window);
gui_current_window->completion.position = -1;
}
break;
/* Tab : completion */
case '\t':
completion_search (&(gui_current_window->completion),
CHANNEL(gui_current_window),
gui_current_window->input_buffer,
gui_current_window->input_buffer_size,
gui_current_window->input_buffer_pos);
if (gui_current_window->completion.word_found)
{
// replace word with new completed word into input buffer
gui_current_window->input_buffer_size +=
gui_current_window->completion.diff_size;
gui_optimize_input_buffer_size (gui_current_window);
gui_current_window->input_buffer[gui_current_window->input_buffer_size] = '\0';
if (gui_current_window->completion.diff_size > 0)
{
for (i = gui_current_window->input_buffer_size - 1;
i >= gui_current_window->completion.position_replace +
(int)strlen (gui_current_window->completion.word_found); i--)
gui_current_window->input_buffer[i] =
gui_current_window->input_buffer[i -
gui_current_window->completion.diff_size];
}
else
{
for (i = gui_current_window->completion.position_replace +
strlen (gui_current_window->completion.word_found);
i < gui_current_window->input_buffer_size; i++)
gui_current_window->input_buffer[i] =
gui_current_window->input_buffer[i -
gui_current_window->completion.diff_size];
}
strncpy (gui_current_window->input_buffer + gui_current_window->completion.position_replace,
gui_current_window->completion.word_found,
strlen (gui_current_window->completion.word_found));
gui_current_window->input_buffer_pos =
gui_current_window->completion.position_replace +
strlen (gui_current_window->completion.word_found);
gui_current_window->completion.position =
gui_current_window->input_buffer_pos;
/* add space or completor to the end of completion, if needed */
if (gui_current_window->completion.base_word[0] == '/')
{
if (gui_current_window->input_buffer[gui_current_window->input_buffer_pos] != ' ')
gui_buffer_insert_string (" ",
gui_current_window->input_buffer_pos);
gui_current_window->completion.position++;
gui_current_window->input_buffer_pos++;
}
else
{
if (gui_current_window->completion.base_word_pos == 0)
{
if (strncmp (gui_current_window->input_buffer + gui_current_window->input_buffer_pos,
cfg_look_completor, strlen (cfg_look_completor)) != 0)
gui_buffer_insert_string (cfg_look_completor,
gui_current_window->input_buffer_pos);
gui_current_window->completion.position += strlen (cfg_look_completor);
gui_current_window->input_buffer_pos += strlen (cfg_look_completor);
if (gui_current_window->input_buffer[gui_current_window->input_buffer_pos] != ' ')
gui_buffer_insert_string (" ",
gui_current_window->input_buffer_pos);
gui_current_window->completion.position++;
gui_current_window->input_buffer_pos++;
}
}
gui_draw_window_input (gui_current_window);
}
break;
/* escape code (for control-key) */
case KEY_ESCAPE:
if ((key = getch()) != ERR)
{
switch (key)
{
case KEY_LEFT:
gui_switch_to_previous_window ();
break;
case KEY_RIGHT:
gui_switch_to_next_window ();
break;
case 79:
/* TODO: replace 79 by constant name! */
if (key == 79)
{
if ((key = getch()) != ERR)
{
switch (key)
{
/* Control + Right */
case 99:
gui_move_next_word ();
break;
/* Control + Left */
case 100:
gui_move_previous_word ();
break;
}
}
}
break;
}
}
break;
/* send command/message */
case '\n':
if (gui_current_window->input_buffer_size > 0)
{
gui_current_window->input_buffer[gui_current_window->input_buffer_size] = '\0';
history_add (gui_current_window, gui_current_window->input_buffer);
gui_current_window->input_buffer_size = 0;
gui_current_window->input_buffer_pos = 0;
gui_current_window->input_buffer_1st_display = 0;
gui_current_window->completion.position = -1;
gui_current_window->ptr_history = NULL;
ptr_window = gui_current_window;
user_command (SERVER(gui_current_window),
gui_current_window->input_buffer);
if (ptr_window == gui_current_window)
gui_draw_window_input (ptr_window);
if (ptr_window)
ptr_window->input_buffer[0] = '\0';
}
break;
/* other key => add to input buffer */
default:
/*gui_printf (gui_current_window,
"[Debug] key pressed = %d, as octal: %o\n", key, key);*/
new_char[0] = key;
new_char[1] = '\0';
gui_buffer_insert_string (new_char,
gui_current_window->input_buffer_pos);
gui_current_window->input_buffer_pos++;
gui_draw_window_input (gui_current_window);
gui_current_window->completion.position = -1;
break;
}
i++;
}
}
@@ -504,38 +309,179 @@ void
gui_main_loop ()
{
fd_set read_fd;
static struct timeval timeout;
static struct timeval timeout, tv;
static struct timezone tz;
t_irc_server *ptr_server;
t_gui_buffer *ptr_buffer;
int old_day, old_min, old_sec, diff;
char text_time[1024];
time_t new_time;
struct tm *local_time;
quit_weechat = 0;
new_time = time (NULL);
gui_last_activity_time = new_time;
local_time = localtime (&new_time);
old_day = local_time->tm_mday;
old_min = -1;
old_sec = -1;
check_away = 0;
while (!quit_weechat)
{
new_time = time (NULL);
local_time = localtime (&new_time);
/* minute has changed ? => redraw infobar */
if (local_time->tm_min != old_min)
{
old_min = local_time->tm_min;
gui_draw_buffer_infobar (gui_current_window->buffer, 1);
if (cfg_look_day_change
&& (local_time->tm_mday != old_day))
{
strftime (text_time, sizeof (text_time),
cfg_look_day_change_timestamp, local_time);
gui_add_hotlist = 0;
for (ptr_buffer = gui_buffers; ptr_buffer;
ptr_buffer = ptr_buffer->next_buffer)
{
if (ptr_buffer->type == BUFFER_TYPE_STANDARD)
gui_printf_nolog_notime (ptr_buffer,
_("Day changed to %s\n"),
text_time);
}
gui_add_hotlist = 1;
}
old_day = local_time->tm_mday;
}
/* second has changed ? */
if (local_time->tm_sec != old_sec)
{
old_sec = local_time->tm_sec;
if (cfg_look_infobar_seconds)
{
gui_draw_buffer_infobar_time (gui_current_window->buffer);
wmove (gui_current_window->win_input,
0, gui_current_window->win_input_x);
wrefresh (gui_current_window->win_input);
}
/* infobar count down */
if (gui_infobar && gui_infobar->remaining_time > 0)
{
gui_infobar->remaining_time--;
if (gui_infobar->remaining_time == 0)
{
gui_infobar_remove ();
gui_draw_buffer_infobar (gui_current_window->buffer, 1);
}
}
/* away check */
if (cfg_irc_away_check != 0)
{
check_away++;
if (check_away >= (cfg_irc_away_check * 60))
{
check_away = 0;
server_check_away ();
}
}
/* call timer handlers */
plugin_timer_handler_exec ();
}
FD_ZERO (&read_fd);
FD_SET (STDIN_FILENO, &read_fd);
if (weechat_fifo != -1)
FD_SET (weechat_fifo, &read_fd);
timeout.tv_sec = 0;
timeout.tv_usec = 10000;
FD_ZERO (&read_fd);
FD_SET (STDIN_FILENO, &read_fd);
for (ptr_server = irc_servers; ptr_server;
ptr_server = ptr_server->next_server)
{
if (ptr_server->sock4 >= 0)
FD_SET (ptr_server->sock4, &read_fd);
/* check if reconnection is pending */
if ((!ptr_server->is_connected)
&& (ptr_server->reconnect_start > 0)
&& (new_time >= (ptr_server->reconnect_start + ptr_server->autoreconnect_delay)))
server_reconnect (ptr_server);
else
{
if (ptr_server->is_connected)
{
/* check for lag */
if ((ptr_server->lag_check_time.tv_sec == 0)
&& (new_time >= ptr_server->lag_next_check))
{
server_sendf (ptr_server, "PING %s\r\n", ptr_server->address);
gettimeofday (&(ptr_server->lag_check_time), &tz);
}
/* lag timeout => disconnect */
if ((ptr_server->lag_check_time.tv_sec != 0)
&& (cfg_irc_lag_disconnect > 0))
{
gettimeofday (&tv, &tz);
diff = (int) get_timeval_diff (&(ptr_server->lag_check_time), &tv);
if (diff / 1000 > cfg_irc_lag_disconnect * 60)
{
irc_display_prefix (ptr_server, ptr_server->buffer, PREFIX_ERROR);
gui_printf (ptr_server->buffer,
_("%s lag is high, disconnecting from server...\n"),
WEECHAT_WARNING);
server_disconnect (ptr_server, 1);
continue;
}
}
}
if (!ptr_server->is_connected && (ptr_server->child_pid > 0))
FD_SET (ptr_server->child_read, &read_fd);
else
{
if (ptr_server->sock >= 0)
FD_SET (ptr_server->sock, &read_fd);
}
}
}
if (select (FD_SETSIZE, &read_fd, NULL, NULL, &timeout))
if (select (FD_SETSIZE, &read_fd, NULL, NULL, &timeout) > 0)
{
if (FD_ISSET (STDIN_FILENO, &read_fd))
{
gui_read_keyb ();
gui_input_read ();
}
else
if ((weechat_fifo != -1) && (FD_ISSET (weechat_fifo, &read_fd)))
{
for (ptr_server = irc_servers; ptr_server;
ptr_server = ptr_server->next_server)
fifo_read ();
}
for (ptr_server = irc_servers; ptr_server;
ptr_server = ptr_server->next_server)
{
if (!ptr_server->is_connected && (ptr_server->child_pid > 0))
{
if ((ptr_server->sock4 >= 0) &&
(FD_ISSET (ptr_server->sock4, &read_fd)))
if (FD_ISSET (ptr_server->child_read, &read_fd))
server_child_read (ptr_server);
}
else
{
if ((ptr_server->sock >= 0) &&
(FD_ISSET (ptr_server->sock, &read_fd)))
server_recv (ptr_server);
}
}
}
/* manages active DCC */
dcc_handle ();
}
}
+42
View File
@@ -0,0 +1,42 @@
# Copyright (c) 2003-2006 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
# (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
#
INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\" $(GTK_CFLAGS)
bin_PROGRAMS = weechat-gtk
if PLUGINS
weechat_gtk_LDADD = ../gui-common.o ../gui-keyboard.o \
../gui-action.o \
../../common/lib_weechat_main.a \
../../irc/lib_weechat_irc.a \
../../plugins/lib_weechat_plugins.a \
$(PLUGINS_LIBS) \
$(GTK_LIBS) \
$(GNUTLS_LFLAGS)
else
weechat_gtk_LDADD = ../gui-common.o ../gui-keyboard.o \
../gui-action.o \
../../common/lib_weechat_main.a \
../../irc/lib_weechat_irc.a \
$(PLUGINS_LIBS) \
$(GTK_LIBS) \
$(GNUTLS_LFLAGS)
endif
weechat_gtk_SOURCES = gui-display.c \
gui-input.c
File diff suppressed because it is too large Load Diff
+190
View File
@@ -0,0 +1,190 @@
/*
* Copyright (c) 2003-2006 by FlashCode <flashcode@flashtux.org>
* See README for License detail, AUTHORS for developers list.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 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
*/
/* gui-input: user input functions for Gtk GUI */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <time.h>
#include <sys/socket.h>
#include <gtk/gtk.h>
#include "../../common/weechat.h"
#include "../gui.h"
#include "../../common/weeconfig.h"
#include "../../common/command.h"
#include "../../common/hotlist.h"
#include "../../common/fifo.h"
#include "../../common/utf8.h"
#include "../../irc/irc.h"
/*
* gui_input_default_key_bindings: create default key bindings
*/
void
gui_input_default_key_bindings ()
{
int i;
char key_str[32], command[32];
/* keys binded with internal functions */
gui_key_bind ( /* RC */ "ctrl-M", "return");
gui_key_bind ( /* RC */ "ctrl-J", "return");
gui_key_bind ( /* tab */ "ctrl-I", "tab");
gui_key_bind ( /* basckp */ "ctrl-H", "backspace");
gui_key_bind ( /* basckp */ "ctrl-?", "backspace");
gui_key_bind ( /* del */ "meta2-3~", "delete");
gui_key_bind ( /* ^K */ "ctrl-K", "delete_end_line");
gui_key_bind ( /* ^U */ "ctrl-U", "delete_beginning_line");
gui_key_bind ( /* ^W */ "ctrl-W", "delete_previous_word");
gui_key_bind ( /* ^Y */ "ctrl-Y", "clipboard_paste");
gui_key_bind ( /* ^T */ "ctrl-T", "transpose_chars");
gui_key_bind ( /* home */ "meta2-1~", "home");
gui_key_bind ( /* home */ "meta2-H", "home");
gui_key_bind ( /* home */ "meta2-7~", "home");
gui_key_bind ( /* ^A */ "ctrl-A", "home");
gui_key_bind ( /* end */ "meta2-4~", "end");
gui_key_bind ( /* end */ "meta2-F", "end");
gui_key_bind ( /* end */ "meta2-8~", "end");
gui_key_bind ( /* ^E */ "ctrl-E", "end");
gui_key_bind ( /* left */ "meta2-D", "left");
gui_key_bind ( /* right */ "meta2-C", "right");
gui_key_bind ( /* up */ "meta2-A", "up");
gui_key_bind ( /* ^up */ "meta-Oa", "up_global");
gui_key_bind ( /* down */ "meta2-B", "down");
gui_key_bind ( /* ^down */ "meta-Ob", "down_global");
gui_key_bind ( /* pgup */ "meta2-5~", "page_up");
gui_key_bind ( /* pgdn */ "meta2-6~", "page_down");
gui_key_bind ( /* m-pgup */ "meta-meta2-5~", "scroll_up");
gui_key_bind ( /* m-pgdn */ "meta-meta2-6~", "scroll_down");
gui_key_bind ( /* F10 */ "meta2-21~", "infobar_clear");
gui_key_bind ( /* F11 */ "meta2-23~", "nick_page_up");
gui_key_bind ( /* F12 */ "meta2-24~", "nick_page_down");
gui_key_bind ( /* m-F11 */ "meta-meta2-1~", "nick_beginning");
gui_key_bind ( /* m-F12 */ "meta-meta2-4~", "nick_end");
gui_key_bind ( /* ^L */ "ctrl-L", "refresh");
gui_key_bind ( /* m-a */ "meta-a", "jump_smart");
gui_key_bind ( /* m-b */ "meta-b", "previous_word");
gui_key_bind ( /* ^left */ "meta-Od", "previous_word");
gui_key_bind ( /* m-d */ "meta-d", "delete_next_word");
gui_key_bind ( /* m-f */ "meta-f", "next_word");
gui_key_bind ( /* ^right */ "meta-Oc", "next_word");
gui_key_bind ( /* m-h */ "meta-h", "hotlist_clear");
gui_key_bind ( /* m-j,m-d */ "meta-jmeta-d", "jump_dcc");
gui_key_bind ( /* m-j,m-l */ "meta-jmeta-l", "jump_last_buffer");
gui_key_bind ( /* m-j,m-s */ "meta-jmeta-s", "jump_server");
gui_key_bind ( /* m-j,m-x */ "meta-jmeta-x", "jump_next_server");
gui_key_bind ( /* m-k */ "meta-k", "grab_key");
gui_key_bind ( /* m-n */ "meta-n", "scroll_next_highlight");
gui_key_bind ( /* m-p */ "meta-p", "scroll_previous_highlight");
gui_key_bind ( /* m-r */ "meta-r", "delete_line");
gui_key_bind ( /* m-s */ "meta-s", "switch_server");
gui_key_bind ( /* m-u */ "meta-u", "scroll_unread");
/* keys binded with commands */
gui_key_bind ( /* m-left */ "meta-meta2-D", "/buffer -1");
gui_key_bind ( /* F5 */ "meta2-15~", "/buffer -1");
gui_key_bind ( /* m-right */ "meta-meta2-C", "/buffer +1");
gui_key_bind ( /* F6 */ "meta2-17~", "/buffer +1");
gui_key_bind ( /* F7 */ "meta2-18~", "/window -1");
gui_key_bind ( /* F8 */ "meta2-19~", "/window +1");
gui_key_bind ( /* m-w,m-up */ "meta-wmeta-meta2-A", "/window up");
gui_key_bind ( /* m-w,m-down */ "meta-wmeta-meta2-B", "/window down");
gui_key_bind ( /* m-w,m-left */ "meta-wmeta-meta2-D", "/window left");
gui_key_bind ( /* m-w,m-right */ "meta-wmeta-meta2-C", "/window right");
gui_key_bind ( /* m-0 */ "meta-0", "/buffer 10");
gui_key_bind ( /* m-1 */ "meta-1", "/buffer 1");
gui_key_bind ( /* m-2 */ "meta-2", "/buffer 2");
gui_key_bind ( /* m-3 */ "meta-3", "/buffer 3");
gui_key_bind ( /* m-4 */ "meta-4", "/buffer 4");
gui_key_bind ( /* m-5 */ "meta-5", "/buffer 5");
gui_key_bind ( /* m-6 */ "meta-6", "/buffer 6");
gui_key_bind ( /* m-7 */ "meta-7", "/buffer 7");
gui_key_bind ( /* m-8 */ "meta-8", "/buffer 8");
gui_key_bind ( /* m-9 */ "meta-9", "/buffer 9");
/* bind meta-j + {01..99} to switch to buffers # > 10 */
for (i = 1; i < 100; i++)
{
sprintf (key_str, "meta-j%02d", i);
sprintf (command, "/buffer %d", i);
gui_key_bind (key_str, command);
}
}
/*
* gui_input_grab_end: insert grabbed key in input buffer
*/
void
gui_input_grab_end ()
{
char *expanded_key;
/* get expanded name (for example: ^U => ctrl-u) */
expanded_key = gui_key_get_expanded_name (gui_key_buffer);
if (expanded_key)
{
if (gui_current_window->buffer->has_input)
{
gui_insert_string_input (gui_current_window, expanded_key, -1);
gui_current_window->buffer->input_buffer_pos += utf8_strlen (expanded_key);
gui_draw_buffer_input (gui_current_window->buffer, 1);
}
free (expanded_key);
}
/* end grab mode */
gui_key_grab = 0;
gui_key_grab_count = 0;
gui_key_buffer[0] = '\0';
}
/*
* gui_input_read: read keyboard chars
*/
void
gui_input_read ()
{
/* TODO: write this function for Gtk */
}
/*
* gui_main_loop: main loop for WeeChat with ncurses GUI
*/
void
gui_main_loop ()
{
/* TODO: write this function for Gtk */
gtk_main ();
}
+1251
View File
File diff suppressed because it is too large Load Diff
+1922
View File
File diff suppressed because it is too large Load Diff

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