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

Compare commits

...

2508 Commits

Author SHA1 Message Date
Sébastien Helleu 8b5da3c6cb core: add CVE id in ChangeLog 2021-09-07 20:33:44 +02:00
Sébastien Helleu e852cef92a core: force version 18.04 of Ubuntu in CI 2021-09-04 23:14:48 +02:00
Sébastien Helleu 84e44632e5 relay: fix crash when decoding a malformed websocket frame 2021-09-04 23:09:19 +02:00
Sébastien Helleu 77bbd5f875 Version 3.0.2-dev 2021-09-04 23:06:58 +02:00
Sébastien Helleu 93f5371cf8 Version 3.0.1 2021-01-31 10:07:53 +01:00
Sébastien Helleu 9db6255a84 Revert "exec: return NULL immediately if the task id is invalid"
This reverts commit dff1bf6f0f.

(cherry picked from commit 08ebc99dea)
2020-12-06 13:42:30 +01:00
Sébastien Helleu 03d36f13af spell: fix refresh of bar item "spell_suggest" when the input becomes empty (issue #1586)
When the input is empty, length of string is zero: when sending zero to
function weechat_string_dyn_alloc, the function returns NULL and therefore we
return immediately instead of handling the empty input, which is a valid value.

The regression was introduced by the use of dynamic strings, commit:
299f74bfef

(cherry picked from commit eb90a73fe8)
2020-11-20 22:21:59 +01:00
Sébastien Helleu b1fe88d5d4 spell: fix crash with IRC color codes in command line (issue #1589)
(cherry picked from commit ee24fac586)
2020-11-20 22:14:22 +01:00
Sébastien Helleu dcccfa2255 Version 3.0.1-dev 2020-11-20 22:14:12 +01:00
Sébastien Helleu 72936fd3be Version 3.0 2020-11-11 08:46:53 +01:00
Sébastien Helleu 3da91d702e debian: update changelog 2020-11-10 18:32:26 +01:00
Sébastien Helleu 43d9b3a723 Version 3.0-rc1 2020-11-01 10:09:17 +01:00
Nils Görs 5beb5d7052 doc: update German documentation 2020-10-30 12:55:53 +01:00
Sébastien Helleu 0ff08e54f5 trigger: add variable "tg_argc" in data set by command trigger (closes #1576) 2020-10-21 19:10:37 +02:00
Sébastien Helleu 30e48336f4 irc: remove SASL timeout message displayed by error after successful SASL authentication (closes #1515)
The SASL timer is removed immediately when the SASL authentication is
successful or has failed.
2020-10-18 09:35:04 +02:00
Sébastien Helleu 2807a8374b doc: update German auto-generated file 2020-10-16 21:15:43 +02:00
Nils Görs da934d9818 core: update German translations 2020-10-16 16:38:50 +02:00
Sébastien Helleu 939b16230c script: allow command /script list when option script.scripts.download_enabled is set to off (closes #1574) 2020-10-15 20:38:43 +02:00
Trygve Aaberge c3707bb6e1 doc: Update hotlist example to match hotlist_prefix
hotlist_prefix defaults to "H: ", so the example should show the same to
make it easier to understand what it is.
2020-10-15 13:46:27 +02:00
Sébastien Helleu fa46a2fe2d exec: add option "-oerr" to send stderr to buffer (now disabled by default) (closes #1566) 2020-10-11 16:33:50 +02:00
Sébastien Helleu 4d696d7cc8 exec: add missing option "-oc" in /help exec 2020-10-11 15:55:40 +02:00
Sébastien Helleu c8f2ebcea3 core: add terminal and terminal multiplexer in GitHub issue template 2020-10-11 08:52:54 +02:00
Sébastien Helleu 72fdd689a2 core: update ChangeLog (issue #1567) 2020-10-10 13:36:26 +02:00
Sébastien Helleu 2384dbe193 trigger: add a function to set variables common to all triggers (issue #1567) 2020-10-10 13:32:36 +02:00
Sébastien Helleu fd72226a71 doc: translate tg_trigger_name variable under triggers (issue #1567) 2020-10-10 13:22:49 +02:00
Simmo Saan 765d2dd277 doc: add tg_trigger_name variable under triggers (issue #1567) 2020-10-10 10:13:42 +03:00
Simmo Saan 8c87b7a1f0 trigger: add tg_trigger_name variable to all triggers (closes #1567) 2020-10-10 10:13:42 +03:00
Sébastien Helleu 07565a4aa6 doc: update German auto-generated file 2020-10-07 20:32:51 +02:00
Nils Görs 79f71a0e1a core: update German translations 2020-10-05 12:22:21 +02:00
Sébastien Helleu c016e7ea87 core: use apt-get option --no-install-recommends instead of modifying config file /etc/apt/apt.conf 2020-10-04 19:11:39 +02:00
Sébastien Helleu bb82dbc0ec tests: add missing braces around if/else in macro WEE_NICK_STRDUP_FOR_COLOR (issue #1565) 2020-10-04 08:53:08 +02:00
Sébastien Helleu f8403c76db api: add optional list of colors in infos "nick_color" and "nick_color_name" (closes #1565) 2020-10-04 08:46:36 +02:00
Sébastien Helleu 657e659c42 core: add argument "num_colors" in function gui_nick_hash_color, add tests on nick functions (issue #1565)
Functions tested:

- gui_nick_hash_djb2_64
- gui_nick_hash_djb2_32
- gui_nick_hash_sum_64
- gui_nick_hash_sum_32
- gui_nick_get_forced_color
- gui_nick_strdup_for_color
- gui_nick_find_color
- gui_nick_find_color_name
2020-10-04 08:46:25 +02:00
Sébastien Helleu 1c5e5824e7 tests: run callback when resetting options in tests 2020-10-03 14:40:59 +02:00
Sébastien Helleu b32f561f77 irc: fix again typo in English plural form of "normal" 2020-09-12 18:49:42 +02:00
Sébastien Helleu 1745b78b57 irc: fix typo in English plural form of "normal" (normals -> normal) 2020-09-12 18:08:13 +02:00
Sébastien Helleu 7ce5dce8f9 doc: update German auto-generated file 2020-09-12 17:22:19 +02:00
Nils Görs 8544d9ef0b core: update German translations 2020-09-08 13:15:31 +02:00
Sébastien Helleu 3c987f3a1c script: add option script.scripts.download_enabled (closes #1548) 2020-09-06 19:15:15 +02:00
Sébastien Helleu 9ccf62979f script: do not automatically download list of scripts on startup if the file is too old (closes #1548)
The repository file is downloaded anyway if too old on any /script action.
2020-09-02 19:22:56 +02:00
Sébastien Helleu 579af1b265 tests: fix compilation with CppUTest ≥ 4.0
MemoryLeakWarningPlugin::turnOnNewDeleteOverloads is replaced by
MemoryLeakWarningPlugin::turnOnThreadSafeNewDeleteOverloads, which is available
in both CppUTest 3.x and 4.0.
2020-08-29 10:18:50 +02:00
Sébastien Helleu 54b7c88553 spell: also skip IRC color attributes codes when checking words in input (issue #1547) 2020-08-28 18:32:50 +02:00
Sébastien Helleu aac14f28dd irc: add comments in functions irc_color_decode and irc_color_encode 2020-08-25 19:37:47 +02:00
Sébastien Helleu e25c364790 spell: skip IRC color codes when checking words in input (closes #1547) 2020-08-25 19:37:42 +02:00
Sébastien Helleu 299f74bfef spell: use dynamic string functions to return modified string 2020-08-24 22:12:45 +02:00
Sébastien Helleu cfd221014c api: add argument "bytes" in function string_dyn_concat 2020-08-23 23:27:57 +02:00
Sébastien Helleu b459dab84b spell: properly skip WeeChat color codes when checking words in input (closes #1547) 2020-08-22 08:56:21 +02:00
Sébastien Helleu 268aa631c6 api: add function string_color_code_size (issue #1547) 2020-08-22 08:55:16 +02:00
Sébastien Helleu 7dd5abd625 fset: fix refresh of option values in fset buffer (issue #1553) 2020-08-20 20:31:07 +02:00
Sébastien Helleu d53fb92a30 irc: replace calls to malloc by calloc
After these calls to malloc the memory is set to zero, so it's better to call
calloc that does it already.
2020-08-17 20:06:17 +02:00
Sébastien Helleu fbc2438c1c core: replace calls to malloc by calloc
After these calls to malloc the memory is set to zero, so it's better to call
calloc that does it already.
2020-08-17 19:57:10 +02:00
Sébastien Helleu fca5a4b42c core: set notify_level to 3 if highlight is forced in gui_line_hook_update (only if tag "notify_none" is not in the line) (issue #1529) 2020-08-16 12:40:41 +02:00
Sébastien Helleu 330d7d50d2 core: set notify_level to 3 in case of highlight in gui_line_hook_update only if tag "notify_none" is not in the line (issue #1529) 2020-08-16 12:40:01 +02:00
Sébastien Helleu 786072806b core: set notify_level to 3 in case of highlight only if tag "notify_none" is not in the line (issue #1529) 2020-08-16 08:27:00 +02:00
Sébastien Helleu d15db0ecbb core: set "notify_level" to 3 if there is a highlight in the line (closes #1529) 2020-08-15 14:02:40 +02:00
Sébastien Helleu 45ce1d7604 doc: update German auto-generated file 2020-08-13 08:38:45 +02:00
Nils Görs 0e1a59cbef core: update German translations 2020-08-11 18:47:46 +02:00
Sébastien Helleu 1054cdf1e9 fset: add option fset.look.auto_refresh (closes #1553) 2020-08-09 10:56:03 +02:00
Sébastien Helleu 0cc5df6649 irc: send all channels in a single JOIN command when reconnecting to the server (closes #1551) 2020-08-05 20:05:36 +02:00
Sébastien Helleu 36c55f6973 tests: fix name of some unit tests 2020-08-05 07:28:30 +02:00
Sébastien Helleu 00c34b0ba8 core: replace "unit" by module for changes in unit tests 2020-08-05 07:22:38 +02:00
Sébastien Helleu 8cf56dfdf9 tests: add tests on GUI line functions
Functions tested:

- gui_line_lines_alloc
- gui_line_lines_free
- gui_line_tags_alloc
- gui_line_tags_free
- gui_line_is_displayed
- gui_line_has_tag_no_filter
- gui_line_search_tag_starting_with
- gui_line_get_nick_tag
2020-08-04 23:42:20 +02:00
Sébastien Helleu 0ab44c02a4 core: check that line is not NULL in functions gui_line_is_displayed and gui_line_get_nick_tag 2020-08-04 23:12:18 +02:00
Sébastien Helleu 6704825d7b core: check that line_data is not NULL in functions gui_line_tags_alloc and gui_line_has_tag_no_filter 2020-08-04 22:56:02 +02:00
Sébastien Helleu ec898732a1 core: rename functions to allocate/free lines 2020-08-04 22:42:59 +02:00
Sébastien Helleu 9262720a65 doc: add instructions to build WeeChat with address sanitizer (user's guide) 2020-08-01 09:53:47 +02:00
Sébastien Helleu 26085575d5 core: disable debug by default in autotools build 2020-08-01 01:41:40 +02:00
Sébastien Helleu 7412f5815c trigger: fix recursive calls to triggers using regex (closes #1546) 2020-07-31 20:50:33 +02:00
Sébastien Helleu 00e25af470 doc: update German auto-generated file 2020-07-21 18:28:38 +02:00
Nils Görs 6fc40fb8d4 core: update German translations 2020-07-21 11:36:35 +02:00
Sébastien Helleu 3e6c8b6a88 core: update ChangeLog (issue #1535, issue #1538) 2020-07-21 08:29:03 +02:00
Sébastien Helleu c002c5f77f doc: add "irc_nick" in hashtable sent to hook_focus callback (plugin API reference) (issue #1538) 2020-07-21 08:28:01 +02:00
Simmo Saan b69e47d0a2 irc: add pointer "irc_nick" in hashtable sent to hook focus callback (closes #1535) 2020-07-21 08:18:43 +02:00
Sébastien Helleu 84e30438d4 irc: allow to send text on buffers with commands /allchan, /allpv and /allserv 2020-07-20 22:39:28 +02:00
Sébastien Helleu ee3a4a1fc0 irc: evaluate command executed by commands /allchan, /allpv and /allserv (closes #1536)
The extra variables are now replaced (in addition to `$server`, `$channel` and
`$nick`):

- `${irc_server.xxx}`: variable xxx in server
- `${irc_channel.xxx}`: variable xxx in channel
2020-07-20 22:20:22 +02:00
Sébastien Helleu 5bf571c60f doc: improve description of tags "notify_xxx" in chapter on lines tags (user's guide) (issue #1529) 2020-07-20 21:48:20 +02:00
Sébastien Helleu e0e905ca7f trigger: check that tag "notify_none" is not present in message to run command of default trigger beep (issue #1529) 2020-07-20 21:08:59 +02:00
Sébastien Helleu 2b16036f08 core: do not add line with highlight and tag "notify_none" to hotlist (closes #1529) 2020-07-20 09:26:36 +02:00
Sébastien Helleu 9ef793fd65 Version 3.0-dev 2020-07-18 14:27:37 +02:00
Sébastien Helleu c096750e96 Version 2.9 2020-07-18 13:59:02 +02:00
Sébastien Helleu 0ebed7e7b0 doc: replace wildcard command by list of included files in Makefile.am files
This fixes the `make distcheck` command.
2020-07-11 12:23:14 +02:00
Sébastien Helleu cef0a77ace core: add contributor in AUTHORS.adoc (issue #1537) 2020-07-07 20:29:03 +02:00
Sébastien Helleu 19e98e7599 core: update ChangeLog (issue #1537) 2020-07-07 20:27:57 +02:00
Marco Sirabella ab7104e34c Add $weechat_sharedir/python for global python package import
Related: #1461

Some scripts (eg weechat-matrix) ship directories that need to be
imported from the script.

Rather than globally installing the python packages to python's
`site-packages` the directories can be installed alongside the script in
`WEECHAT_SHAREDIR/python`.

This change adds that directory to the `$PYTHONPATH` to import
successfully.
2020-07-07 20:26:17 +02:00
Sébastien Helleu af03f8ab50 Version 2.9-rc1 2020-07-05 23:27:57 +02:00
Sébastien Helleu dfcf1f0398 doc: update German auto-generated file 2020-07-04 17:32:55 +02:00
Nils Görs d75e747dff core: update German translations 2020-07-04 14:10:30 +02:00
Sébastien Helleu bde4b30021 doc: fix description of "_chat_bol" and "_chat_eol" in function hook_focus (plugin API reference) 2020-06-30 21:01:11 +02:00
Sébastien Helleu 9510301f46 doc: harmonize example of pointers in plugin API reference and relay protocol 2020-06-30 20:54:31 +02:00
Sébastien Helleu b17e1bcf89 api: add pointer "_bar_window" in hashtable sent to hook focus callback (closes #1450) 2020-06-30 20:16:19 +02:00
Sébastien Helleu c868a4d3f8 doc: fix typo (relay protocol) 2020-06-29 22:08:00 +02:00
Sébastien Helleu ee91d38965 doc: fix flake8 errors in docgen.py 2020-06-28 10:26:04 +02:00
Sébastien Helleu acfb5a7638 relay: add missing field "notify_level" in message "_buffer_line_added" (issue #1529) 2020-06-26 08:03:15 +02:00
Sébastien Helleu b0ecbdbf1d core: add bar option "color_bg_inactive" (issue #732) 2020-06-21 18:59:54 +02:00
Sébastien Helleu 5b151d1639 irc: check that the first nick char is not a prefix char or chantype in function irc_nick_is_nick 2020-06-21 10:22:37 +02:00
Sébastien Helleu 4a42cda3a5 irc: change default chantypes from "#&+!" to "#&"
The default chantypes was conflicting with
irc_server_prefix_chars_default ("@+").
2020-06-21 10:22:04 +02:00
Sébastien Helleu 9446610452 tests: add test of function irc_nick_is_nick with invalid UTF-8 string 2020-06-20 17:44:48 +02:00
Sébastien Helleu 12051a506d irc: add support of UTF8MAPPING, add support of optional server in info "irc_is_nick" (closes #1528) 2020-06-20 17:28:28 +02:00
Sébastien Helleu bf964de939 tests: add tests on IRC function irc_channel_is_channel 2020-06-20 12:04:40 +02:00
Sébastien Helleu 2a60a25443 irc: return NULL in info "irc_is_channel" if arguments is NULL or empty string 2020-06-20 10:04:40 +02:00
Sébastien Helleu 86cb2d4256 doc: update German auto-generated file 2020-06-17 23:35:05 +02:00
Nils Görs 2dc3676af5 core: update German translations 2020-06-16 18:34:40 +02:00
Sébastien Helleu e41eeaf203 tests: add tests on IRC command ACCOUNT with colon before the account name 2020-06-16 08:07:55 +02:00
Sébastien Helleu eba9c31da0 irc: fix display of ACCOUNT message when the account name is ":*" (closes #1526) 2020-06-15 23:03:58 +02:00
Sébastien Helleu d0ae0fea49 irc: skip semicolon before account name in ACCOUNT message 2020-06-15 07:12:06 +02:00
Sébastien Helleu 340d6646a6 javascript: disable build by default and remove Debian packaging of JavaScript plugin (issue #360) 2020-06-13 14:34:13 +02:00
Sébastien Helleu 99a324b76f buflist: add "window" pointer in bar item evaluation only if it's not NULL (if bar type is "window") 2020-06-10 20:39:07 +02:00
Sébastien Helleu fad07d1ff2 core: update ChangeLog (issue #1514) 2020-06-07 11:10:06 +02:00
Sébastien Helleu 5034798e7a core: add contributor in AUTHORS.adoc (issue #1514) 2020-06-07 11:08:33 +02:00
Sébastien Helleu 08a00739f2 guile: fix compiler warning (issue #1514) 2020-06-07 11:07:48 +02:00
Joram Schrijver 297a140bea guile: fix memory leak in output port 2020-06-07 11:07:03 +02:00
Joram Schrijver cb5d90dcc7 guile: re-enable "/guile eval" (issue #1098)
With the output port now properly implemented for Guile >= 2.2, this
command works again.
2020-06-07 11:07:03 +02:00
Joram Schrijver cac45aab46 guile: fix printing of output to buffer (issue #1098)
The support for Guile 2.2 did not implement the custom port correctly,
and did not configure it to be the default output port. This caused
output from Guile to be printed straight to the TTY, breaking the
WeeChat interface.

Note that the port is unbuffered, so that code like

    (display "test")

immediately results in output, without an explicit call to force-output.
2020-06-07 11:07:03 +02:00
Sébastien Helleu e784a994b5 api: fix use of pointer after free in function key_unbind 2020-06-07 09:11:24 +02:00
Sébastien Helleu f52c706ee0 doc: remove tag "translation missing" in French plugin API reference 2020-06-06 08:59:25 +02:00
Sébastien Helleu 52b4f07414 doc: add URL to the Debian download page in user's guide 2020-06-06 08:54:15 +02:00
Sébastien Helleu 196a4e28aa irc: fix add of ignore with flags in regex, display full ignore mask in list of ignores (closes #1518) 2020-06-04 08:05:57 +02:00
Sébastien Helleu f41b17563f doc: update auto-generated files (issue #1250) 2020-06-03 08:00:24 +02:00
Sébastien Helleu 207642a3ec core: update translations (issue #1250) 2020-06-03 07:59:04 +02:00
Sébastien Helleu e80bf16d4a core: update ChangeLog (issue #1250) 2020-06-03 07:59:04 +02:00
Max Teufel 0027c23b7e irc: display account messages in buffers 2020-06-03 07:59:04 +02:00
Sébastien Helleu 1f2d90b643 core: update ChangeLog (issue #1517) 2020-06-02 23:33:27 +02:00
Sébastien Helleu 41cd8a438f core: add contributor in AUTHORS.adoc (issue #1517) 2020-06-02 23:32:19 +02:00
Christian Duerr c35e31cad2 Add Alacritty title escape sequence support 2020-06-02 23:27:51 +02:00
Sébastien Helleu 1dacb2de7f doc: add missing p-path pointer in hdata example (relay protocol) 2020-06-01 23:18:44 +02:00
Sébastien Helleu 03724423da doc: fix example of NULL pointer (relay protocol) 2020-06-01 23:18:16 +02:00
Sébastien Helleu 8818fbb233 tests: fix memory leak in test of function string_hex_dump 2020-05-31 14:51:41 +02:00
Sébastien Helleu 527aa3c563 doc: use a single line for some object examples (relay protocol) 2020-05-30 09:46:48 +02:00
Nils Görs e6e7339a69 doc: update German documentation 2020-05-29 15:41:24 +02:00
Sébastien Helleu b56843de87 doc: mention callback argument "callback_pointer" in differences with C API (scripting guide) 2020-05-27 22:26:31 +02:00
Sébastien Helleu c4832737e9 core: add CI with GitHub Actions, move codecov.io upload to GitHub Actions 2020-05-22 19:04:12 +02:00
Sébastien Helleu a43b0f074c doc: update German auto-generated files 2020-05-22 18:17:51 +02:00
Nils Görs a86c447972 core: update German translations 2020-05-22 17:34:12 +02:00
Sébastien Helleu 7f02e1804b doc: add missing "id" in commands input, sync, desync, ping and quit (relay protocol) 2020-05-21 10:49:41 +02:00
Sébastien Helleu aaa49d3188 tests: add tests on function string_input_for_buffer with custom command chars 2020-05-21 10:06:51 +02:00
Sébastien Helleu f4913d0a6b tests: add tests on function string_is_command_char with custom command chars 2020-05-21 10:06:42 +02:00
Sébastien Helleu 99b13aa671 tests: add test on function string_base64_decode with truncated base64 string 2020-05-21 09:56:35 +02:00
Sébastien Helleu a997893cfe tests: add test on function string_base16_decode with a char >= 0xA0 2020-05-21 09:55:40 +02:00
Sébastien Helleu 66d4590dab core: add base 16/32/64 encoding/decoding in evaluation of expressions 2020-05-21 09:36:35 +02:00
Sébastien Helleu 1994d5641d core: move functions string_base_encode and string_base_decode from plugin-api.c to wee-string.c 2020-05-21 00:02:24 +02:00
Sébastien Helleu 0ac936a5cf core: return -1 in case of error in functions string_base16_decode and string_base64_decode 2020-05-21 00:01:35 +02:00
Sébastien Helleu 8f308ea918 core: split function eval_replace_vars_cb into multiple functions 2020-05-20 00:04:45 +02:00
Sébastien Helleu 4a67c4a1ab irc: do not remove spaces at the end of users messages received (closes #1513)
The regression was introduced in version 2.5 by commit
2b70d71aa1.
2020-05-19 20:12:27 +02:00
Sébastien Helleu d1d3be6fd5 doc: add missing non-breaking spaces before colons and semicolons in French docs 2020-05-18 23:50:03 +02:00
Sébastien Helleu 62ccee9505 tests: run tests on plugins only if the plugins are enabled and compiled 2020-05-17 15:29:06 +02:00
Sébastien Helleu a489fa6eb4 core: update ChangeLog (issue #592) 2020-05-17 09:49:43 +02:00
Sébastien Helleu 0aa9f7de64 trigger: add (void) before calls to trigger_callback_execute when the returned value is ignored 2020-05-17 09:48:07 +02:00
Simmo Saan b14cf0ac3d trigger: only return trigger's return code when condition evaluates to true 2020-05-17 09:46:10 +02:00
Sébastien Helleu 8f6cc60a3f core: update ChangeLog (issue #1509) 2020-05-16 19:58:48 +02:00
Trygve Aaberge 40b5cf7ab0 Fix /window scroll_beyond_end when buffer has fewer lines than terminal height 2020-05-16 19:56:27 +02:00
Sébastien Helleu f500c972dd core: update translations (closes #1245, closes #1257) 2020-05-16 14:40:19 +02:00
Sébastien Helleu aa86d82796 core: rename info_hashtable "gui_focus_info" to "focus_info" (issue #1257) 2020-05-16 14:23:18 +02:00
Sébastien Helleu a3747fefcd core: move creation of info_hashtable from gui-focus.c to plugin-api-info.c (issue #1257) 2020-05-16 14:23:09 +02:00
Simmo Saan a5b851826e gui: make key optional in gui_focus_to_hashtable 2020-05-16 14:23:09 +02:00
Simmo Saan 3f0c6ac96b gui: add gui_focus_info hashtable info (#1245) 2020-05-16 14:23:09 +02:00
Sébastien Helleu 5e5e1c0cd7 core: update ChangeLog (issue #1505) 2020-05-16 13:41:11 +02:00
Sébastien Helleu dba94f0c5d core: add color in /buffer output for notification level, update translations (issue #1505) 2020-05-16 13:40:08 +02:00
Trygve Aaberge d2f49755c7 core: Allow displaying notify level with /buffer notify 2020-05-16 13:35:36 +02:00
Sébastien Helleu 1d357533b9 core: add bar items with nicklist groups and nicks/groups (closes #1506)
The bar item "buffer_nicklist_count" is now the number of displayed nicks
only (not groups).

New bar items:

- "buffer_nicklist_count_groups": number of groups displayed
- "buffer_nicklist_count_all": number of nicks and groups displayed
2020-05-16 11:27:41 +02:00
Sébastien Helleu 45a9ba3e9e doc: add missing arguments in "info" command (English and Japanese relay protocol) 2020-05-16 10:55:38 +02:00
Sébastien Helleu 40a14b4574 core: force buffer property "time_for_each_line" to 0 for buffers with free content (closes #1485) 2020-05-14 18:21:42 +02:00
Sébastien Helleu 4f4f32b9ed relay: increase default limits for IRC backlog options
Default value is changed for the following options:

* relay.irc.backlog_max_minutes: from 1440 to 0 (unlimited)
* relay.irc.backlog_max_number: from 256 to 1024
2020-05-12 18:56:40 +02:00
Nils Görs 2c303d1698 doc: update German documentation 2020-05-10 15:02:35 +02:00
Sébastien Helleu ec1b381521 core: set default size for input bar to 0 (automatic) (issue #1498) 2020-05-10 10:43:07 +02:00
Sébastien Helleu b2d1f37782 core: add default key alt-enter to insert a newline (issue #1498) 2020-05-10 10:39:57 +02:00
Sébastien Helleu 1c269e9a81 core: don't collapse consecutive newlines in lines displayed before the first buffer is created 2020-05-10 10:29:01 +02:00
Sébastien Helleu 8712e557d6 core: update ChangeLog ((issue #1500) 2020-05-10 10:08:57 +02:00
Trygve Aaberge d5e7cb2487 core: Don't remove consecutive newlines when pasting
Relates to #1498
2020-05-10 10:07:53 +02:00
Trygve Aaberge 1e2a8c4682 core: Don't collapse consecutive newlines in bar content
This allows blank lines to be displayed in the input bar when you input
multiple consecutive newlines.

Relates to #1498
2020-05-10 10:07:53 +02:00
Trygve Aaberge 867e07aa18 core: properly display newlines in input for all buffers
Supporting multiple lines in the input bar is useful even for buffers
without input_multiline set, because it enables you to compose multiple
lines at once, even if it is sent as multiple messages. It is
particularly useful when you paste multiple lines and want to edit some
of it before you send the message.
2020-05-10 00:10:38 +02:00
Sébastien Helleu 09f4f98ad9 core: update ChangeLog (issue #1497) 2020-05-09 19:43:24 +02:00
Simmo Saan 517c4c2903 irc: fix realname delimiter color in WHO/WHOX response 2020-05-09 19:31:34 +02:00
Sébastien Helleu f987e445ec core: properly display newlines in input when multiline is enabled in buffer (issue #984, issue #1063) 2020-05-09 18:23:33 +02:00
Trygve Aaberge 63714855d3 core: add an option for multiline input in a buffer (closes #984)
This allows the input callback function for a buffer to receive multiple
lines at once, instead of the message being split on newline before
being sent to the callback. It adds a new flag, input_multiline, to
control this. This flag defaults to 0 which is the current behavior.
2020-05-09 18:07:36 +02:00
Sébastien Helleu 30afb3debe core: add contributor in AUTHORS.adoc (issue #1456) 2020-05-09 15:29:47 +02:00
Sébastien Helleu 2c5a26b882 core: update ChangeLog (issue #1454, issue #1456) 2020-05-09 15:28:50 +02:00
Sébastien Helleu 1ed82fb93f core: remove top/left shadow in WeeChat logo (issue #1454, issue #1456) 2020-05-09 15:28:27 +02:00
Shun Sakai 702cc21810 Regenerate icons
- Inkscape SVG icon -> plain SVG icon
- regenerate PNG icons from SVG icon
2020-05-09 15:16:18 +02:00
Shun Sakai 4c71d4903e Add Inkscape SVG format icon 2020-05-09 15:16:18 +02:00
Sébastien Helleu 72dbae0d43 core: add note about triggers and argument "modifier_data" of weechat_print modifier callback 2020-05-09 10:22:33 +02:00
Sébastien Helleu 3505324096 api: use buffer pointer in argument "modifier_data" sent to weechat_print modifier callback (closes #42) 2020-05-09 10:08:18 +02:00
Sébastien Helleu 7f1aeae5fb core: update GnuTLS section in release notes 2020-05-08 20:01:15 +02:00
Sébastien Helleu 7aed668468 doc: update German auto-generated file 2020-05-08 19:59:07 +02:00
Nils Görs f3d5b06e48 core: update German translations 2020-05-08 19:38:00 +02:00
Sébastien Helleu 4c050b343d irc: reuse a buffer with wrong type "channel" when a private message is received (closes #869) 2020-05-08 13:27:20 +02:00
Sébastien Helleu 88bef0b1b1 core: rename functions hook_completion_{get_string|list_add} to completion_{get_string|list_add}
Old functions are kept for compatibility reasons.
2020-05-08 10:51:30 +02:00
Sébastien Helleu b7765ed960 trigger: fix truncated trigger command with commands /trigger input|output|recreate 2020-05-07 08:19:31 +02:00
Sébastien Helleu b1c3a29ac7 core: add include comparison operators in evaluation of expressions
New comparison operators:

- "==*": is matching mask, case sensitive (wildcard "*" is allowed)
- "!!*": is NOT matching mask, case sensitive (wildcard "*" is allowed)
- "==-": is included, case sensitive
- "!!-": is NOT included, case sensitive
- "=-": is included, case insensitive
- "!-": is NOT included, case insensitive
2020-05-05 20:43:45 +02:00
Sébastien Helleu 8df8d20f81 tests: replace compiler by different env lines (Travis CI) 2020-05-03 23:24:39 +02:00
Sébastien Helleu 162efe1f1b tests: switch to Ubuntu Bionic, use pylint3 to lint Python scripts (Travis CI) 2020-05-03 23:24:39 +02:00
Sébastien Helleu 2b05b64cc1 tests: fix pylint errors 2020-05-03 20:22:21 +02:00
Sébastien Helleu dff1bf6f0f exec: return NULL immediately if the task id is invalid 2020-05-03 16:33:02 +02:00
Sébastien Helleu 5438f62f74 exec: fix use of same task id for different tasks (closes #1491) 2020-05-03 16:07:11 +02:00
Sébastien Helleu df26301d03 doc: fix pylint errors 2020-05-03 14:48:25 +02:00
Sébastien Helleu 0cc76fbe72 core: update ChangeLog 2020-05-03 14:14:16 +02:00
Sébastien Helleu 6e3ffab2ef doc: remove extra separator lines in auto-generated files 2020-05-03 14:12:21 +02:00
Sébastien Helleu 505a91c600 doc: merge 53 autogen files into 11 files, move them to includes directory 2020-05-03 14:05:18 +02:00
Sébastien Helleu 7bcb8ff0d8 core: disable pylint of script docgen.py (Travis CI) 2020-05-03 11:55:13 +02:00
Sébastien Helleu c910b431f8 Revert "core: use pylint3 to lint Python scripts (Travis CI)"
This reverts commit 03ec80f7d3.
2020-05-03 11:54:25 +02:00
Sébastien Helleu 03ec80f7d3 core: use pylint3 to lint Python scripts (Travis CI) 2020-05-03 11:46:13 +02:00
Sébastien Helleu 15735b6cba doc: drop Python 2 support in script docgen.py
The script now requires Python 3.6+.
2020-05-02 17:23:31 +02:00
Sébastien Helleu 2c76343bda doc: fix path of cmdline_options.XX.adoc and man.XX.adoc (developer's guide) 2020-05-02 15:20:40 +02:00
Sébastien Helleu 6c93d1d711 doc: move files cmdline_options.xx.adoc and man.xx.adoc into "includes" directory 2020-05-02 15:13:13 +02:00
Sébastien Helleu 2ff18a8d46 doc: merge files man_*.xx.adoc into a single file man.xx.adoc 2020-05-02 14:48:10 +02:00
Sébastien Helleu 9e8cdd5e40 doc: merge files cmdline_options_debug.xx.adoc into cmdline_options.xx.adoc 2020-05-02 14:18:43 +02:00
Sébastien Helleu 71aa3dd451 doc: add missing key "compression" in handshake responses (relay protocol) 2020-05-02 12:50:49 +02:00
Sébastien Helleu 7699c0b757 relay: add "compression" in response to handshake command (weechat protocol)
The value can be "zlib" (default in relay) or "off".
2020-05-02 12:45:47 +02:00
Sébastien Helleu 46a2979aa1 doc: add examples of command responses in relay protocol 2020-05-02 12:28:14 +02:00
Sébastien Helleu 5b4d690ed7 relay: fix slow send of data to clients when SSL is enabled 2020-05-01 18:52:08 +02:00
Sébastien Helleu b3478fa712 doc: improve indenting in examples (relay protocol) 2020-04-29 19:12:58 +02:00
Sébastien Helleu 8353959e9a doc: update German auto-generated files 2020-04-29 19:12:40 +02:00
Nils Görs b3dc2a662f core: update German translations 2020-04-29 09:24:05 +02:00
Sébastien Helleu 909a976cee core: update translations 2020-04-28 16:40:41 +02:00
Sébastien Helleu 8c9eeb7fd4 core: update ChangeLog (issue #713) 2020-04-28 16:38:32 +02:00
Quentin Glidic f697a5b295 fifo: Open the fifo for writing too
That will make it survive, avoiding the need to reopen it.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2020-04-28 16:37:39 +02:00
Sébastien Helleu b6cc42cbf7 relay: add command "completion" in weechat relay protocol (closes #1484) 2020-04-28 11:15:30 +02:00
Sébastien Helleu f2507a68a7 core: remove obsolete comment
The completion context can be "GUI_COMPLETION_NULL" if there's no base word
found (for example empty input).
2020-04-28 10:53:49 +02:00
Sébastien Helleu d1a427b67f api: return integer in function gui_completion_search (issue #1484) 2020-04-28 10:46:49 +02:00
Sébastien Helleu 2bd8e91b54 api: add hdata "completion_word" (issue #1484) 2020-04-27 22:18:03 +02:00
Sébastien Helleu d3020976d5 api: add functions completion_new, completion_search and completion_free (issue #1484) 2020-04-27 22:15:42 +02:00
Sébastien Helleu 0f1cee08bf relay: fix error message for an invalid buffer received in a command (weechat protocol) 2020-04-26 23:41:31 +02:00
Sébastien Helleu 6f22b82a7c debian: add patch to build on Ubuntu Groovy 2020-04-26 23:16:53 +02:00
Sébastien Helleu f3b9eb979d doc: protect monospace text with plus characters (relay protocol) 2020-04-25 00:29:31 +02:00
Sébastien Helleu fbb188d323 doc: protect monospace text with plus characters (plugin API reference) 2020-04-25 00:27:33 +02:00
Sébastien Helleu bac0af7494 doc: protect monospace text with plus characters (FAQ) 2020-04-25 00:20:09 +02:00
Sébastien Helleu e12925dc58 doc: protect monospace text with plus characters (scripting guide) 2020-04-25 00:12:51 +02:00
Sébastien Helleu 01eedd4565 doc: protect monospace text with plus characters (user's guide) 2020-04-24 23:53:13 +02:00
Sébastien Helleu 442f6a3bff doc: fix markup error in function hdata_update (plugin API reference) 2020-04-24 22:49:34 +02:00
Sébastien Helleu 33ea747040 core: add default key alt-shift-N to toggle nicklist bar 2020-04-24 22:45:07 +02:00
Sébastien Helleu 0abd0292da buflist: add default key alt-shift-B to toggle buflist 2020-04-24 22:44:13 +02:00
Sébastien Helleu 916c22a3d0 buflist: add options enable/disable/toggle in command /buflist 2020-04-24 22:39:44 +02:00
Sébastien Helleu 6e18f31cb2 core: translate log message when the signal SIGHUP is received 2020-04-21 22:39:51 +02:00
Sébastien Helleu 100440c8a1 core: restore signal "signal_sighup", and if eaten do not reload configuration 2020-04-21 22:34:42 +02:00
Tom Fitzhenry de1e61f7cd core: reload config on SIGHUP
fixes https://github.com/weechat/weechat/issues/1476
2020-04-22 01:25:08 +10:00
Sébastien Helleu 60b75f4677 tests: add tests on functions relay_auth_password_hash_algo_search and relay_auth_generate_nonce 2020-04-20 07:16:08 +02:00
Nils Görs 8ac9336d2a core: update German translations 2020-04-19 12:06:31 +02:00
Sébastien Helleu 5a16a2b49c core: add contributor in AUTHORS.adoc (issue #1477) 2020-04-19 11:34:42 +02:00
Sébastien Helleu 0b994d718d core: add command line option "--stdout" in weechat-headless binary (closes #1475, closes #1477) 2020-04-19 11:28:39 +02:00
Tom Fitzhenry 18a837c55b core: log to stdout, if headless
Fixes https://github.com/weechat/weechat/issues/1475 .
2020-04-19 11:05:22 +02:00
Sébastien Helleu d38701f99f tests: reduce number of iterations in PBKDF2 tests from 100000 to 1000
This speeds up tests by about 30%.
2020-04-19 10:56:25 +02:00
Sébastien Helleu bfe22fc66a tests: remove obsolete file test-relay-weechat-protocol.cpp 2020-04-19 10:56:11 +02:00
Sébastien Helleu 3d8607e34c core: disable build with obsolete autotools option "--disable-gnutls" (Travis CI) 2020-04-19 10:31:09 +02:00
Sébastien Helleu 862cf34ba7 doc: fix asciidoctor options in autotools build 2020-04-18 21:52:50 +02:00
Sébastien Helleu 350227419e doc: fix table sizes on small screens 2020-04-18 20:38:52 +02:00
Sébastien Helleu 3133ea9e79 doc: prevent lines from wrapping in <pre> elements 2020-04-18 20:37:54 +02:00
Sébastien Helleu b847a052c8 doc: update default trigger cmd_pass in user's guide 2020-04-18 15:43:38 +02:00
Sébastien Helleu 0d126c44dd trigger: do not hide values of options with /set command in cmd_pass trigger 2020-04-18 15:38:45 +02:00
Sébastien Helleu 5394ca6e10 doc: update auto-generated files with relay options 2020-04-18 11:35:27 +02:00
Sébastien Helleu e130ee7358 core: make GnuTLS a required dependency 2020-04-18 11:34:59 +02:00
Sébastien Helleu 80693dcea9 relay: move variable nonce in relay client structure 2020-04-18 09:30:51 +02:00
Sébastien Helleu 95b2d686a2 relay: allow only one handshake in weechat protocol 2020-04-18 00:33:15 +02:00
Sébastien Helleu 970c99961c relay: immediately close connection if the handshake failed (weechat protocol) 2020-04-18 00:08:11 +02:00
Sébastien Helleu 242c378290 doc: fix examples of handshake command (relay protocol) 2020-04-17 23:41:12 +02:00
Sébastien Helleu 95c908e83c relay: rename configuration options and keywords in handshake command (weechat protocol)
Configuration options renamed:

* relay.network.auth_password -> relay.network.password_hash_algo
* relay.network.hash_iterations -> relay.network.password_hash_iterations

Handshake command options renamed:

* password -> password_hash_algo

Handshake reply keys renamed:

* auth_password -> password_hash_algo
* hash_iterations -> password_hash_iterations
2020-04-17 23:34:27 +02:00
Sébastien Helleu 86a941e28e doc: use real nonce values in handshake/init examples (relay protocol) 2020-04-17 22:02:43 +02:00
Sébastien Helleu 94c6233100 doc: add missing "(id)" in commands handshake and init (relay protocol) 2020-04-17 21:25:37 +02:00
Sébastien Helleu 853a91d870 doc: replace "safest" by "most secure" (relay protocol) 2020-04-17 21:21:25 +02:00
Sébastien Helleu a5770a224a doc: add example of option "compression" in command "handshake" (relay protocol) 2020-04-17 21:06:21 +02:00
Sébastien Helleu 4f2b2700bc doc: update German auto-generated files 2020-04-17 20:59:36 +02:00
Sébastien Helleu de2c91609c doc: fix examples of password hashes in commands handshake and init (relay protocol) 2020-04-17 10:01:00 +02:00
Nils Görs c9f540e229 core: update German translations 2020-04-17 00:45:34 +02:00
Sébastien Helleu 4cc557f421 relay: fix "id" sent in response to handshake command (weechat protocol) 2020-04-16 10:27:37 +02:00
Sébastien Helleu 8560b09dad relay: add missing gcrypt lib in CMake and autotools files
This fixes build on Cygwin.
2020-04-15 22:50:27 +02:00
Sébastien Helleu 0c7d7c3fdc doc: revert arrows chars in relay protocol 2020-04-14 22:16:48 +02:00
Sébastien Helleu 9fa3609c85 relay: add command "handshake" in weechat relay protocol and nonce to prevent replay attacks (closes #1474)
This introduces a new command called "handshake" in the weechat relay protocol.
It should be sent by the client before the "init" command, to negotiate the way
to authenticate with a password.

3 new options are added:

* relay.network.auth_password
* relay.network.hash_iterations
* relay.network.nonce_size
2020-04-14 21:38:12 +02:00
Sébastien Helleu ccd45e4921 relay: update message displayed when the client is connected/authenticated 2020-04-12 20:24:39 +02:00
Sébastien Helleu 6d99f5da45 core: move line from "Bug fixes" to "New features" (issue #1358) 2020-04-12 19:42:58 +02:00
Sébastien Helleu b947512c9a relay: add option relay.network.auth_timeout 2020-04-12 19:36:12 +02:00
Sébastien Helleu fb6fc22c74 relay: add a function to send outqueue to the client 2020-04-12 19:25:21 +02:00
Sébastien Helleu 9f55f90bbf relay: update default colors for client status
Colors changed:

* relay.color.status_active: lightblue -> green
* relay.color.status_auth_failed: lightred -> lightmagenta
* relay.color.status_connecting: yellow -> white
* relay.color.status_waiting_auth: brown -> yellow

The color relay.color.status_disconnected remains lightred by default.
2020-04-12 18:02:27 +02:00
Sébastien Helleu 7ddc815726 relay: actually use the client status "waiting_auth" in irc and weechat protocols (closes #1358)
Now the status "waiting_auth" is used and displayed in the relay buffer.

When a client connects, there are now 2 messages (except for irc protocol if
there's no password required):

relay: new client on port 9000: 1/weechat/1.2.3.4 (waiting auth)
relay: client 1/weechat/1.2.3.4 authenticated

If the authentication fails, the messages are:

relay: new client on port 9000: 1/weechat/1.2.3.4 (waiting auth)
=!= relay: authentication failed with client 1/weechat/1.2.3.4
2020-04-12 17:46:46 +02:00
Sébastien Helleu 07505bb53c relay: add comments in truct t_relay_weechat_data 2020-04-12 15:35:03 +02:00
Sébastien Helleu b781dd92fb core: update ChangeLog (issue #1461) 2020-04-12 10:19:01 +02:00
Sébastien Helleu b907f6b643 core: fix indentation 2020-04-12 10:17:03 +02:00
Eli Schwartz 973a4b2e77 cmake: fix bugged WEECHAT_SHAREDIR definition exposed by DATAROOTDIR rename
configure.ac defines this to /usr/share/weechat, which means scripts can
load from this directory as a fallback for $HOME/.weechat/, but cmake
defines this instead as /usr/share, which means system-installed
fallback scripts would need to be installed to /usr/share/python/foo.py
instead, and that's completely insane!

Fix this discrepancy by creating a cmake define specifically for
WEECHAT_SHAREDIR based on the datarootdir, just like autotools does it.
2020-04-12 10:16:41 +02:00
Eli Schwartz 683464626d cmake: rename internal variable SHAREDIR to DATAROOTDIR
This is how other build systems (e.g. autotools) see the variable, and
cmake's own GNUInstallDirs defines the same. It more clearly describes
what this setting does vs. the ambiguous "sharedir".
2020-04-12 10:16:41 +02:00
Sébastien Helleu 8bdd540df7 trigger: evaluate arguments of command when the trigger is created (closes #1472) 2020-04-12 09:30:56 +02:00
Sébastien Helleu c9329f6fb1 core: add contributor in AUTHORS.adoc (issue #1460) 2020-04-11 09:51:10 +02:00
Sébastien Helleu 28ef93905b core: update ChangeLog (issue #1460) 2020-04-11 09:50:38 +02:00
Sébastien Helleu aa4a0bb272 core: remove file cmake/FindPackageHandleStandardArgs.cmake from top Makefile.am (issue #1460) 2020-04-11 09:50:33 +02:00
Danilo Spinella 62b61cef07 cmake: removed vendored FindPackageHandleStandardArgs 2020-04-11 09:48:20 +02:00
Sébastien Helleu 7fbd4c1079 tests: add missing include of locale.h
This fixes build of tests on FreeBSD.
2020-04-11 00:01:31 +02:00
Sébastien Helleu 9afe63b77a tests: fix name of tests 2020-04-10 23:43:27 +02:00
Sébastien Helleu 007fd03bc8 tests: add tests on calc functions
Functions tested:

- calc_operator_precedence
- calc_pop_value
- calc_list_free_cb
- calc_operation
- calc_operation_stacks
2020-04-08 21:38:51 +02:00
Sébastien Helleu a693125c81 tests: add missing include of stdio.h (issue #1469) 2020-04-07 22:20:11 +02:00
Sébastien Helleu d78ac827e9 core: fix memory leak in calculation of expression on FreeBSD (closes #1469)
The memory leak was caused by a bug in function setlocale on FreeBSD:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243195

The fix is the following:

* Remove the calls to setlocale when formatting the result.
* The function snprintf is still called, and then is now locale dependent,
  for example in French the decimal separator is a comma instead of a dot.
* A new function calc_sanitize_decimal_number is introduced to "sanitize" a
  decimal number: keep only the decimal separator (replace it by a dot) and
  remove any other separator found.

Unit tests are added on these functions:

* calc_sanitize_decimal_number
* calc_format_result
2020-04-07 21:37:48 +02:00
Sébastien Helleu e998417f5c core: fix resize of a bar when its size is 0 (automatic) (closes #1470) 2020-04-07 19:00:33 +02:00
Sébastien Helleu fdd39c6b97 buflist: evaluate option buflist.look.sort (closes #1465)
The evaluation allows to use different sort for the bar items, for example with
such value:

    ${if:${bar_item.name}==buflist?number:short_name}

This sorts by number on the first bar item and by short name on the two other
bar items.
2020-04-06 20:49:17 +02:00
Sébastien Helleu a072d769fd doc: update Polish auto-generated files 2020-04-05 19:59:22 +02:00
Krzysztof Korościk b50f100dbb doc: update polish translation 2020-04-05 19:34:41 +02:00
Krzysztof Korościk e4892ff6f4 po: update polish translation 2020-04-05 13:45:24 +02:00
Sébastien Helleu 62fc851d81 doc: fix broken literal blocks in Japanese docs with Firefox (closes #1466) 2020-04-05 12:25:39 +02:00
Sébastien Helleu fae149b361 python: fix crash when invalid UTF-8 string is in a WeeChat hashtable converted to a Python dict (closes #1463) 2020-04-04 18:10:02 +02:00
Sébastien Helleu e4bd582a97 doc: update German auto-generated file 2020-04-03 20:56:07 +02:00
Nils Görs 7322561ccc core: update German translations 2020-04-03 20:04:48 +02:00
Sébastien Helleu 2f8fd4c0ef fset: fix help on options fset.format.option1 and fset.format.option2 2020-04-02 20:38:37 +02:00
Sébastien Helleu c59f812c74 tests: add tests on function irc_protocol_cb_353 with option irc.look.color_nicks_in_names set to on 2020-03-31 21:16:09 +02:00
Sébastien Helleu eb7b12f0da tests: add tests on IRC color functions
Functions tested:

- irc_color_convert_rgb2irc
- irc_color_convert_term2irc
- irc_color_for_tags
- irc_color_modifier_cb
- irc_color_weechat_add_to_infolist
2020-03-30 20:58:16 +02:00
Sébastien Helleu 052d4d1fc0 tests: add test with remapped color in function irc_color_decode 2020-03-30 20:55:43 +02:00
Sébastien Helleu 4481b93d35 irc: add missing modifier "irc_color_decode_ansi" in comment on function irc_color_modifier_cb 2020-03-30 07:31:11 +02:00
Sébastien Helleu 1098e157c9 core: remove directory usr/share/applications/ from cygport file 2020-03-29 11:55:20 +02:00
Sébastien Helleu 1ec6fd1116 Version 2.9-dev 2020-03-29 09:58:29 +02:00
Sébastien Helleu 7d5dc53cd9 Version 2.8 2020-03-29 09:39:36 +02:00
Sébastien Helleu e086bc44f5 core: add version 2.7.1 in weechat.spec 2020-03-29 09:30:35 +02:00
Sébastien Helleu 8738196b68 tests: add tests on remaining IRC protocol functions and callbacks 2020-03-28 16:06:45 +01:00
Sébastien Helleu f072eb8d78 tests: add tests on function irc_protocol_get_message_tags 2020-03-28 13:40:39 +01:00
Sébastien Helleu 03ffd396a4 irc: move functions irc_protocol_get_message_tags and irc_protocol_parse_time before protocol callbacks 2020-03-28 13:39:48 +01:00
Sébastien Helleu 2efad93220 irc: remove empty lines 2020-03-28 10:36:10 +01:00
Sébastien Helleu 349251feb1 irc: fix typo in description of message 001 2020-03-27 22:51:15 +01:00
Sébastien Helleu 0834286843 irc: add examples of NOTICE and PRIVMSG messages to channel ops 2020-03-27 22:50:52 +01:00
Sébastien Helleu 4245641767 tests: add tests on function irc_protocol_cb_ping 2020-03-26 23:05:34 +01:00
Nils Görs 359253f610 doc: update German documentation 2020-03-26 11:09:12 +01:00
Sébastien Helleu b82a887f2a tests: add tests on function irc_protocol_cb_part 2020-03-25 20:48:54 +01:00
Sébastien Helleu cecbad1803 tests: add test with no arguments for AWAY command 2020-03-24 16:58:11 +01:00
Sébastien Helleu 9fac350b3f tests: add tests on IRC protocol functions with not enough arguments 2020-03-24 16:56:57 +01:00
Sébastien Helleu fa931b46eb core: fix compiler warnings on Cygwin 2020-03-23 07:23:08 +01:00
Sébastien Helleu e6723bb5a8 doc: add question about configuration for a small terminal size in FAQ 2020-03-22 19:23:37 +01:00
Sébastien Helleu dcebdd6a55 doc: fix font size in literal blocks 2020-03-22 19:10:25 +01:00
Sébastien Helleu 186a465575 doc: update German auto-generated file 2020-03-22 14:25:44 +01:00
Nils Görs c6c485df43 core: update German translations 2020-03-22 14:09:43 +01:00
Sébastien Helleu d8f57628b7 Version 2.8-rc1 2020-03-22 11:10:15 +01:00
Sébastien Helleu d2f3e98f37 core: fix C++ compiler flags with autotools 2020-03-22 11:09:27 +01:00
Sébastien Helleu 8a9b6c1554 php: add detection of PHP 7.4 in autotools
Support of PHP 7.4 was added for CMake (in commit
72b107a970) but was still missing in autotools.
2020-03-22 10:58:09 +01:00
Sébastien Helleu 5ca64fc389 ruby: fix compiler warning on third argument of function weechat_ruby_hash_foreach_cb 2020-03-22 10:29:53 +01:00
Sébastien Helleu c14d5ba004 irc: use larger buffer for message in function irc_message_split_authenticate, just in case 2020-03-21 14:31:53 +01:00
Sébastien Helleu 4480c7b7cc irc: split AUTHENTICATE message in 400-byte chunks (closes #1459) 2020-03-21 14:28:53 +01:00
Sébastien Helleu bf42a1ebc5 irc: replace "char *" by "const char *" in arguments of split functions 2020-03-21 14:27:47 +01:00
Sébastien Helleu c29b45a0f2 api: add info "auto_connect" (closes #1453) 2020-03-20 20:42:05 +01:00
Sébastien Helleu c05cb595dc doc: add note about call to "free" on result of info_get (plugin API reference) 2020-03-20 07:08:14 +01:00
Sébastien Helleu 5c1dfcbe5b tests: add tests on functions irc_protocol_cb_mode and irc_protocol_cb_nick 2020-03-19 23:01:59 +01:00
Sébastien Helleu b45d461c3a tests: add tests on functions irc_protocol_cb_kick and irc_protocol_cb_kill 2020-03-18 22:27:15 +01:00
Sébastien Helleu a709dd05a6 tests: add tests on function irc_protocol_cb_join 2020-03-17 20:54:07 +01:00
Sébastien Helleu 332a4adc26 tests: add tests on function irc_protocol_cb_chghost 2020-03-16 20:49:50 +01:00
Sébastien Helleu f33cfc89a0 doc: update German auto-generated file 2020-03-15 07:20:57 +01:00
Sébastien Helleu e3ffe8c785 irc: set channel modes to NULL instead of "+" when no modes are remaining 2020-03-15 07:19:16 +01:00
Sébastien Helleu 851d1fb00a tests: rename function run_cmd_server to server_recv 2020-03-15 07:19:16 +01:00
Sébastien Helleu 4033c55fa2 irc: add another example of MODE message 2020-03-15 07:19:16 +01:00
Sébastien Helleu 00913de02f irc: remove unused variable "modes" from function irc_bar_item_buffer_name_content 2020-03-15 07:19:16 +01:00
Nils Görs 042c8fb02f core: update German translations 2020-03-14 21:20:12 +01:00
Sébastien Helleu aa3941fee2 tests: always run callback in calls to function config_file_option_set 2020-03-13 23:12:22 +01:00
Sébastien Helleu ba70173a2e irc: fix variable name in function irc_server_connect when GnuTLS is disabled 2020-03-12 07:35:04 +01:00
Sébastien Helleu 9545d37ab0 tests: add tests on IRC protocol functions and some callbacks
Functions tested:

* irc_protocol_is_numeric_command
* irc_protocol_log_level_for_command
* irc_protocol_tags
* irc_protocol_nick_address
* irc_protocol_cb_account
* irc_protocol_cb_away
* irc_protocol_cb_001
* irc_protocol_cb_005
2020-03-11 20:53:49 +01:00
Sébastien Helleu 5f94636b91 irc: rename argument in function irc_protocol_is_numeric_command 2020-03-10 19:19:38 +01:00
Sébastien Helleu 2fe27584ff irc: return 0 in function irc_protocol_is_numeric_command if the command is NULL or empty 2020-03-10 19:15:59 +01:00
Sébastien Helleu 8a5046f0a1 irc: add support of fake servers (no I/O, for testing purposes) 2020-03-09 21:09:55 +01:00
Sébastien Helleu 3590302183 irc: copy temporary server flag in command /server copy 2020-03-08 13:56:30 +01:00
Sébastien Helleu dcd10657b1 tests: add tests on functions weecrypto_totp_generate and weecrypto_totp_validate 2020-03-05 22:21:48 +01:00
Sébastien Helleu dabf32f213 tests: add tests on functions weecrypto_hash and weecrypto_hash_pbkdf2 with NULL hash 2020-03-04 08:24:46 +01:00
Sébastien Helleu c48815673d core: update ChangeLog (issue #1455) 2020-03-03 21:51:03 +01:00
Sébastien Helleu 91fe8da039 core: add detection of Ruby 2.7 in autotools 2020-03-03 21:50:17 +01:00
Lucas Kanashiro 60e86f929d core: add detection for Ruby 2.7 2020-03-03 21:49:32 +01:00
Sébastien Helleu 4afaacd34e tests: add tests on function weecrypto_get_hash_algo 2020-03-03 21:29:44 +01:00
Sébastien Helleu 7af8e6c652 core: add minimum libgcypt version 1.7.0 for SHA3 algorithms in comment of function weecrypto_hash 2020-03-02 22:57:44 +01:00
Sébastien Helleu 8ffe9be8a7 core: fix ChangeLog entry 2020-03-02 22:57:44 +01:00
Sébastien Helleu 3604abba7d core: fix copyright date in wee-crypto sources 2020-03-02 22:57:39 +01:00
Sébastien Helleu 2d7829b2d5 core: require libgcrypt >= 1.7.0 for SHA3 algorithms 2020-03-02 21:49:30 +01:00
Sébastien Helleu c6757f642f tests: fix generation of test scripts with Python 3.8 2020-03-02 21:39:27 +01:00
Sébastien Helleu dc7f1e81fb core: add CVE ids in ChangeLog 2020-03-02 20:42:26 +01:00
Sébastien Helleu 2d2b49bfaa relay: accept hash of password in init command with option "password_hash"
Allowed algorithms are:

* PBKDF2 (SHA256 or SHA512, salt, iterations)
* SHA256
* SHA512
2020-03-02 00:46:10 +01:00
Sébastien Helleu 1882686f8a script: rename variable length_hash to hash_size 2020-03-01 23:14:55 +01:00
Sébastien Helleu 0271eacbe5 relay: rename variable length_hash to hash_size 2020-03-01 23:14:55 +01:00
Sébastien Helleu 3157d1f06e api: add function crypto_hash_pbkdf2 2020-03-01 23:14:55 +01:00
Sébastien Helleu 9a6a27ef58 core: move crypto functions to wee-crypto.c, rename API function string_hash to crypto_hash 2020-03-01 21:24:27 +01:00
Sébastien Helleu c4ef3d6c2e core: merge functions string_hash_binary and string_hash into a single function string_hash 2020-03-01 16:41:28 +01:00
Sébastien Helleu 1ae2591458 core: add function secure_hash_pbkdf2 2020-03-01 14:26:24 +01:00
Sébastien Helleu 3472793d24 script: call function string_hash in script_repo_sha512sum_file to compute SHA512 hash
This removes dependency on libgcrypt in script plugin.
2020-03-01 09:08:48 +01:00
Sébastien Helleu bb363ab27f relay: call function string_hash_binary in relay_websocket_build_handshake to compute SHA1 hash
This removes dependency on libgcrypt in relay plugin.
2020-03-01 09:03:49 +01:00
Sébastien Helleu 7449bc8827 core: add support of CRC32 algorithm in hash functions 2020-02-29 21:12:13 +01:00
Sébastien Helleu 410a5b341f api: add functions string_hash_binary and string_hash 2020-02-29 21:02:42 +01:00
Sébastien Helleu 7e808e2ef7 core: call function secure_hash_binary in secure_derive_key to compute SHA512 hash 2020-02-29 15:46:25 +01:00
Sébastien Helleu 600c43dcf5 tests: add tests on function secure_derive_key 2020-02-29 15:46:25 +01:00
Sébastien Helleu 45fd04ee72 core: return 0 in case of invalid parameters received in function secure_derive_key 2020-02-29 15:46:25 +01:00
Sébastien Helleu e2135fc3eb core: add functions to compute binary/hex hash of data 2020-02-29 15:46:25 +01:00
Sébastien Helleu 91701cbdb4 php: fix crash when loading script with PHP 7.4 (closes #1452) 2020-02-28 21:28:29 +01:00
Nils Görs 3f67cfecc8 django.po: Update German translations 2020-02-26 15:38:23 +01:00
Sébastien Helleu 5655778afa core: update stable version in version.sh 2020-02-21 16:09:22 +01:00
Sébastien Helleu ff4e9d6e69 core: add version 2.7.1 in release notes 2020-02-20 22:17:05 +01:00
Sébastien Helleu a4fcd5570f core: add version 2.7.1 in ChangeLog 2020-02-20 22:14:28 +01:00
Sébastien Helleu 7352ddfcf0 build: ignore file usr/share/applications/weechat.desktop in Cygwin build 2020-02-20 22:09:12 +01:00
Sébastien Helleu 6daa09b0b8 script: fix memory leak in read of script repository file if it has invalid content 2020-02-18 21:04:21 +01:00
Sébastien Helleu c6e9e18aaa script: fix unexpected display of scripts list in buffer with command /script list -i 2020-02-16 08:04:58 +01:00
Sébastien Helleu 3fc0f1957e script: remove dead assignment of variable length in function script_action_list_input 2020-02-16 07:59:02 +01:00
Sébastien Helleu 4cb0e2dc55 doc: update auto-generated files 2020-02-15 07:39:41 +01:00
Nils Görs 774345cea9 core: update German translations 2020-02-14 18:54:36 +01:00
Sébastien Helleu 09aa6dbf06 core: add CVE-2020-8955 in ChangeLog 2020-02-14 07:41:56 +01:00
Sébastien Helleu 230f648584 irc: use irc_server_prefix_chars_default if server->prefix_chars is NULL 2020-02-10 21:18:47 +01:00
Sébastien Helleu 9904cb6d2e irc: fix crash when receiving a malformed message 352 (who)
Thanks to Stuart Nevans Locke for reporting the issue.
2020-02-10 07:37:11 +01:00
Sébastien Helleu 40ccacb433 irc: fix crash when a new message 005 is received with longer nick prefixes
Thanks to Stuart Nevans Locke for reporting the issue.
2020-02-09 20:04:45 +01:00
Sébastien Helleu 5edbeea338 core: fix unlikely memory leak in completion 2020-02-09 06:56:53 +01:00
Sébastien Helleu 7fde75797c doc: remove reference to obsolete script shell.py in FAQ 2020-02-08 21:59:14 +01:00
Sébastien Helleu 40e8e928cd doc: add question about timezone in FAQ 2020-02-08 21:59:14 +01:00
Sébastien Helleu 6f4f147d8e irc: fix crash when receiving a malformed message 324 (channel mode)
Thanks to Stuart Nevans Locke for reporting the issue.
2020-02-08 20:24:50 +01:00
Sébastien Helleu 39f2591cf5 tests: add tests on ANSI default text/background colors 2020-02-08 10:29:07 +01:00
Sébastien Helleu 2769989751 irc: remove nested switches in function irc_color_decode_ansi_cb 2020-02-07 21:29:46 +01:00
Sébastien Helleu b8d7af54e3 doc: add keys and actions on fset and script buffers in user's guide 2020-02-06 21:17:54 +01:00
Sébastien Helleu 60f2734184 irc: use dynamic string in function irc_color_encode 2020-02-05 21:51:11 +01:00
Sébastien Helleu 5b902eb804 irc: replace realloc by dynamic string in function irc_color_decode 2020-02-05 21:50:39 +01:00
Sébastien Helleu 6f69d98ee9 core: fix typo in French translation of /help fset 2020-02-04 22:04:18 +01:00
Sébastien Helleu 84648a5cd8 tests: add eval tests with debug enabled 2020-02-04 20:56:59 +01:00
Sébastien Helleu 15f7d7aeb1 core: update ChangeLog 2020-02-03 21:41:25 +01:00
Sébastien Helleu f76a5a8b57 tests: add unit tests on function util_file_get_content 2020-02-03 21:39:06 +01:00
Sébastien Helleu 3edae5af86 tests: add unit tests on function util_get_time_diff 2020-02-02 13:58:35 +01:00
Sébastien Helleu 27266ccd02 core: rename function util_get_uptime to util_get_time_diff
The two times must be sent as parameters, which makes the function not specific
to uptime. It is now easier to test the function in unit tests.
2020-02-02 13:57:39 +01:00
Sébastien Helleu 4e2718d234 irc: add nick changes in the hotlist (except self nick change) 2020-02-01 23:02:55 +01:00
Sébastien Helleu 95e34c71d6 core: update ChangeLog (issue #1442) 2020-01-30 22:07:32 +01:00
orbea 6d2d304136 Fix the build with guile-3.0.0.
v2: Update configure.ac too.

Signed-off-by: orbea <orbea@riseup.net>
2020-01-30 22:05:43 +01:00
Sébastien Helleu d2dda92daf tests: add eval tests with hdata variables of different types 2020-01-27 23:04:24 +01:00
Sébastien Helleu b7c09ed084 tests: add eval tests on conditions with text after closing parenthesis 2020-01-27 23:04:24 +01:00
Sébastien Helleu a6a6fb74c2 tests: add eval tests on conditions with leading and trailing spaces (ignored) 2020-01-27 23:04:24 +01:00
Sébastien Helleu 2839dc7ddf tests: add eval tests on "regex not matching" comparison 2020-01-27 23:04:24 +01:00
Sébastien Helleu 0975c407e0 tests: add eval tests with hdata list name and pointer 2020-01-27 23:04:24 +01:00
Sébastien Helleu 201b4da169 tests: add eval tests with buffer local variables 2020-01-27 23:04:24 +01:00
Sébastien Helleu 8107b5d162 tests: add eval tests on options with different types 2020-01-27 23:04:24 +01:00
Sébastien Helleu dd13393896 tests: add eval test with empty value for "date:" 2020-01-27 23:04:24 +01:00
Sébastien Helleu 70f0c81a2c tests: add eval tests with invalid values for "modifier:" 2020-01-27 23:04:24 +01:00
Sébastien Helleu 6d9a247df3 tests: add eval tests with invalid values for "repeat:" 2020-01-27 23:04:24 +01:00
Sébastien Helleu 1914ceb74f tests: add eval tests with invalid values for "cut:" and "cutscr:" 2020-01-27 23:04:22 +01:00
Sébastien Helleu 34bb43379a tests: add eval test with invalid value for "hide:" 2020-01-27 21:21:01 +01:00
Sébastien Helleu 070e86bd6e tests: add eval test with invalid regex group 2020-01-27 21:17:17 +01:00
Sébastien Helleu 1d77b9742e tests: add evaluation tests with ternary operator and escape of prefix ("$") 2020-01-27 21:09:54 +01:00
Sébastien Helleu d91d1ebb8c tests: add other calc tests with multiple operators
The order of operators are different from the initial test, so this increases
the code coverage in wee-calc.c.
2020-01-27 20:54:23 +01:00
Sébastien Helleu f980820395 logger: fix crash when disabling logging on a buffer (closes #1444)
Crash happens if the log file was deleted before disabling logging and if the
option logger.file.info_lines is on.
2020-01-25 13:42:12 +01:00
Sébastien Helleu 4d67af399d core: flush stdout/stderr before forking in hook_process function (closes #1441) 2020-01-20 21:15:15 +01:00
Sébastien Helleu 7cd566e8d3 core: reset variable "old_full_name" after send of signal "buffer_renamed" (issue #1428) 2020-01-12 17:09:47 +01:00
Sébastien Helleu b79cd6d546 relay: update buffers synchronization when buffers are renamed (closes #1428) 2020-01-12 17:03:16 +01:00
Sébastien Helleu 1fac6fd404 core: add variable "old_full_name" in buffer, set before the buffer is renamed (issue #1428) 2020-01-12 16:57:08 +01:00
Sébastien Helleu 4f9c4fecd3 irc: case-insensitive comparison on incoming CTCP command, force upper case on CTCP replies (closes #1439) 2020-01-11 11:02:41 +01:00
Sébastien Helleu 4f42f407c1 doc: remove space in example of hsignal irc_redirect_command (plugin API reference) 2020-01-05 09:15:40 +01:00
Sébastien Helleu 9ac4639c8c xfer: send signal "xfer_ended" after the received file has been renamed (closes #1438) 2020-01-04 11:19:47 +01:00
Sébastien Helleu feb6258910 core: update copyright dates 2020-01-04 10:41:26 +01:00
Sébastien Helleu 481da803cb buflist: add pointer "window" in bar item evaluation 2019-12-26 22:44:19 +01:00
Sébastien Helleu e11075e2cd doc: update German auto-generated file 2019-12-23 22:14:33 +01:00
Nils Görs cc7ac1284d core: update German translations 2019-12-23 20:00:02 +01:00
Sébastien Helleu 330149b9b6 relay: reject client with weechat protocol if password or totp is received in init command but not set in WeeChat (closes #1435) 2019-12-21 10:47:35 +01:00
Sébastien Helleu e612e63140 core: fix evaluation of condition with nested "if" (closes #1434) 2019-12-18 21:22:36 +01:00
Sébastien Helleu a13099aa63 core: add debug option "-d" in command /eval (issue #1434) 2019-12-18 21:18:59 +01:00
Sébastien Helleu 7e833ee60b core: add missing variable "proxy" in function hook_connect_print_log 2019-12-18 07:55:39 +01:00
Sébastien Helleu 72da71880c doc: update German auto-generated files 2019-12-15 21:22:51 +01:00
Nils Görs b341432887 core: update German translations 2019-12-15 21:17:33 +01:00
Sébastien Helleu bb62485aa9 irc: fix memory leak when the channel topic is changed 2019-12-15 07:27:45 +01:00
Sébastien Helleu 72b107a970 php: add detection of PHP 7.4 2019-12-14 11:25:07 +01:00
Sébastien Helleu 019bc79b0f core: update ChangeLog (issue #1433) 2019-12-13 21:34:01 +01:00
Sébastien Helleu 517bdaa4a8 core: update translations (issue #1433) 2019-12-13 21:33:48 +01:00
Sébastien Helleu 00485af7c9 core: add contributor in AUTHORS.adoc (issue #1433) 2019-12-13 21:31:30 +01:00
Matthew Horan f966329862 api: add info "weechat_headless" 2019-12-13 21:30:54 +01:00
Sébastien Helleu 5ae0485404 core: fix version in ChangeLog 2019-12-13 21:27:02 +01:00
Sébastien Helleu 60fa5a7555 core: update ChangeLog (issue #1431) 2019-12-13 21:22:45 +01:00
Sébastien Helleu 8d107912d6 core: update translations 2019-12-13 21:21:02 +01:00
Simmo Saan c487965e8b irc: add GnuTLS >= 3.1.0 requirement to ssl_password option help (issue #115) 2019-12-13 21:18:22 +01:00
Simmo Saan 139a7053e4 irc: fix compilation with GnuTLS < 3.1.0 (issue #115)
Due to this ssl_password will be partially unused with GnuTLS < 3.1.0.
In that case an encrypted SSL client cert import will simply fail.
2019-12-13 21:18:22 +01:00
Sébastien Helleu 9c227de6bf core: add directory /usr/share/applications/ in cygwin package "weechat" 2019-12-08 15:56:23 +01:00
Sébastien Helleu da28c392ea Version 2.8-dev 2019-12-08 10:18:33 +01:00
Sébastien Helleu 236dbe3f62 Version 2.7 2019-12-08 09:48:53 +01:00
Sébastien Helleu 632755d51d core: remove obsolete file FindTCL.cmake from root Makefile.am 2019-12-08 09:23:35 +01:00
Sébastien Helleu ee52c8ceae debian: fix debian/wheezy and ubuntu/trusty patches 2019-12-08 09:13:46 +01:00
Sébastien Helleu dda3ac7963 debian: update changelog 2019-12-08 08:23:07 +01:00
Sébastien Helleu e81d0787e4 debian: bump Standards-Version to 4.4.0 2019-12-08 08:22:45 +01:00
Sébastien Helleu 54aa8b82b3 doc: update Polish auto-generated files 2019-12-01 18:03:07 +01:00
Krzysztof Korościk 39ae55322d doc: updated polish traslation 2019-12-01 17:14:12 +01:00
Krzysztof Korościk 10f4e16695 po: update polish translation 2019-12-01 16:24:32 +01:00
Sébastien Helleu cfd7d31f95 doc: update German auto-generated files 2019-12-01 11:42:49 +01:00
Nils Görs 621b87ea8a core: update German translations 2019-11-29 09:17:37 +01:00
Sébastien Helleu c947d1575f core: exit makedist.sh script if command "cd" failed 2019-11-28 21:28:07 +01:00
Sébastien Helleu d876ec49fc core: replace "! -z" by "-n" in build-debian.sh 2019-11-28 21:27:43 +01:00
Sébastien Helleu d2300e62af core: replace "-o" by "||" in tools scripts 2019-11-28 21:26:45 +01:00
Sébastien Helleu a727516e0d core: run command and check return code on same line in tools scripts 2019-11-28 21:25:47 +01:00
Sébastien Helleu c0e48b0370 core: double quote variables in tools scripts 2019-11-28 21:23:59 +01:00
Sébastien Helleu 45509c3560 core: double quote variables in script autogen.sh 2019-11-27 20:17:48 +01:00
Sébastien Helleu fb8f0590b0 Version 2.7-rc1 2019-11-26 20:10:18 +01:00
Sébastien Helleu 3dab07d659 tests: add unit tests on hash algorithms with salt (issue #635) 2019-11-25 23:02:05 +01:00
Sébastien Helleu cd53fc61cf core: fix typo in French translation (issue #635) 2019-11-25 22:43:55 +01:00
Sébastien Helleu d66a02ca9d core: move each hash algorithm in a separate function (issue #635) 2019-11-25 22:31:36 +01:00
Sébastien Helleu 771b932dec doc: update auto-generated files with WeeChat options (issue #635) 2019-11-25 21:44:27 +01:00
Sébastien Helleu 41911babd3 core: remove obsolete translations 2019-11-25 21:42:57 +01:00
Sébastien Helleu f69079e3d0 core: update ChangeLog (issue #635) 2019-11-25 21:39:02 +01:00
Sébastien Helleu b43ab911fd core: add more info in /help weechat.look.nick_color_hash_salt (issue #635) 2019-11-25 21:38:58 +01:00
Sébastien Helleu 0044fa1902 core: remove allocation of string when salt is used (issue #635) 2019-11-25 21:38:55 +01:00
Simmo Saan 1a00368888 core: add option weechat.look.nick_color_hash_salt to allow for reshuffling of colors (issue #635) 2019-11-25 21:38:20 +01:00
Sébastien Helleu c634d6c56e doc: list the things removed by WeeChat on /plugin unload (user's guide) 2019-11-24 09:40:53 +01:00
Sébastien Helleu 661ef1e653 doc: fix translations in French plugin API reference 2019-11-24 09:32:35 +01:00
Sébastien Helleu 8223263e0e doc: remove flags "translation missing" in French docs 2019-11-24 09:29:02 +01:00
Sébastien Helleu a843e8fb14 doc: bump version of documentation generator 2019-11-22 21:01:14 +01:00
Sébastien Helleu e1692ab7e9 doc: add function to print counters, add separator lines (documentation generator) 2019-11-22 21:00:58 +01:00
Sébastien Helleu 73b3ff1491 doc: simplify function to compute SHA256 checksum, move function outside class AutogenDoc (documentation generator) 2019-11-22 20:59:58 +01:00
Sébastien Helleu 178b3eb8a6 doc: sort locales in documentation generator 2019-11-22 20:59:06 +01:00
Sébastien Helleu 2f99033384 doc: remove path option in documentation generator 2019-11-22 20:57:59 +01:00
Sébastien Helleu f1641604b0 doc: remove obsolete ignored options/completions in documentation generator 2019-11-22 20:57:52 +01:00
Sébastien Helleu e743e731ec irc: do not automatically open a channel with name "0" (closes #1429)
"0" is a special channel name which causes a client to leave all the channels
it is presently on.

Note that when option irc.look.buffer_open_before_join is on, WeeChat may still
open channel buffers with an invalid channel name like "1".  The server should
reply something like that, displayed on the server buffer:

  1: No such channel
2019-11-21 20:35:32 +01:00
Sébastien Helleu 64aae8b959 core: update build directories in .gitignore 2019-11-19 07:40:11 +01:00
Sébastien Helleu e4a9f95e38 core: remove arguments for endforeach() in CMake files 2019-11-18 20:18:54 +01:00
Sébastien Helleu 7aa24ecd88 core: add different icons sizes (16x16 to 512x512) (closes #1347) 2019-11-18 20:05:43 +01:00
Sébastien Helleu 8cde654c6f core: set buffer name, short name and title only if the value has changed
This fix reduces the number of messages "_buffer_title_changed" sent to the
weechat relay clients in IRC private buffers (this message was sent for every
new message received in the private buffer).
2019-11-17 21:48:17 +01:00
Sébastien Helleu 9a40aa04f8 core: rename label "enhancement" to "feature" 2019-11-15 21:06:15 +01:00
Sébastien Helleu 3a03184d7a irc: mention /filter command in /help irc.look.smart_filter 2019-11-15 08:38:40 +01:00
Sébastien Helleu b5804bd64d core: add labels in GitHub issue templates 2019-11-14 07:24:54 +01:00
Sébastien Helleu 005e5fd8f5 core: fix French translation of "uptime" 2019-11-13 21:17:14 +01:00
Sébastien Helleu fe7a05cb1f core: update ChangeLog 2019-11-12 21:20:43 +01:00
Eli Schwartz 76c6f52e8c build: support python 3.8
In python 3.8, in order to link to -lpython3.8, you need to use the
exported pkg-config interface 'python3-embed' (or 'python3-config --libs
--embed'), see https://bugs.python.org/issue36721 for details.
2019-11-12 21:19:47 +01:00
Eli Schwartz 5c8ac69f73 python: use more idiomatic cmake pkg-config linking
cmake documentation is absolutely atrocious, and I don't know why they
mention all the wrong things to use, and the cargo cult of successfully
writing a cmake build definition (copy-pasting what works from other
projects) also uses all the wrong things. But it turns out it is
possible to correctly link a PkgConfig target despite all that, at
least, *iff* you use cmake >= 3.13. I've chosen option 2, which is to
vendor in cmake >= 3.13's FindPkgConfig module in the previous commit.

Using IMPORTED_TARGET GLOBAL in a pkg-config check will result in a
proper linker target being created. For comparison, this is like using
meson's dependency() target, except meson forces you to do this by
default. The result is that the build system's internal representation
of how to link something, is used instead of manually passing build
flags defined in variables.

This is an important distinction to make, because cmake does not have a
list datatype, and instead turns lists into strings separated by ';'
which are indistinguishable from, like, strings which contain ';'
characters. When you pass the resulting list-which-isn't-really-a-list
to link an executable/library, you either need to preprocess the
variable to replace ';' with ' ' (just in case there are multiple
elements) or use cmake functions which magically know to do this
themselves -- or at least, I assume there are cmake functions that
correctly handle so-called "lists", or there would be no need for
"lists" to exist.

The IMPORTED_TARGET will define a bunch of INTERFACE_* properties which
do seem to do exactly this. The resulting build definition should
actually, correctly, link python, thereby fixing #1398 in a better way.
2019-11-12 21:19:47 +01:00
Eli Schwartz 682e558f76 cmake: vendor in a new version of FindPkgConfig
The current one is anciently ancient, and dates back to commit
4d2925ef1c which vendored this "for old
versions of cmake". Well, currently it just stops using new versions of
FindPkgConfig, so we're stuck on the 2006 version from cmake 2.5.0.

Instead of deleting it entirely (the minimum version of cmake is
currently 3.0) make this vendored file continue to be useful by using it
to vendor in the latest version of FindPkgConfig from cmake 3.16.0-rc3
with a bunch of useful improvements.
2019-11-12 21:19:47 +01:00
Sébastien Helleu a36e17abf9 debian: disable javascript plugin on Debian Sid and Ubuntu Eoan 2019-11-11 08:38:05 +01:00
Sébastien Helleu 38bb297d91 core: update ChangeLog (issue #1420) 2019-11-10 11:06:49 +01:00
Sébastien Helleu 421d6481da core: link with libnetwork and not libpthread on Haiku (autotools) (issue #1420) 2019-11-10 11:06:39 +01:00
Jerome Duval 8d991f1284 Haiku: link libnetwork, not libpthread. 2019-11-10 11:04:47 +01:00
Sébastien Helleu 9f8162651f irc: set option irc.look.display_pv_warning_address to off by default (issue #892)
This is because the bitlbee server causes the warning to be displayed when it
is not expected (the address of remote nick changes multiple times on login).
2019-11-08 21:27:12 +01:00
Sébastien Helleu 17d3032b73 core: move line from "New features" to "Bug fixes" 2019-11-07 19:46:55 +01:00
Sébastien Helleu 90aec7bec7 core: update URL of WeeChat blog 2019-11-05 07:50:30 +01:00
Sébastien Helleu 07577194c5 doc: add examples of division in ${calc:...} (plugin API reference) 2019-11-04 19:01:31 +01:00
Sébastien Helleu 9264de9ce0 doc: fix list of "updated in" versions in function string_eval_expression (plugin API reference) 2019-11-04 18:59:32 +01:00
Sébastien Helleu 4f7a51f72b core: fix sentence in release notes 2019-11-03 21:10:48 +01:00
Sébastien Helleu 6507544947 irc: fix typo and examples in /help server 2019-11-03 14:54:45 +01:00
Nils Görs cdcbdc94e0 core: update German translations 2019-11-03 14:48:43 +01:00
Sébastien Helleu 10f85df867 irc: set raw filter to "*" if local variable "filter" was not set after /upgrade on raw buffer 2019-11-03 09:55:09 +01:00
Sébastien Helleu 7e07954fbf irc: restore irc raw filter after /upgrade (issue #1000) 2019-11-03 09:28:16 +01:00
Sébastien Helleu 015ae4a94b irc: add filters on raw buffer (closes #1000) 2019-11-03 09:01:44 +01:00
Sébastien Helleu 4a86ab55d8 fset: add comment on filter by evaluated expression 2019-10-30 19:41:56 +01:00
Sébastien Helleu 7cac32fc1f fset: fix filter variable used to match filter string 2019-10-30 19:41:31 +01:00
Sébastien Helleu c6161d0e4a plugins: sort options added in configuration sections 2019-10-23 19:45:06 +02:00
Sébastien Helleu ecc7edda9e core: optimize search of options in configuration sections
Since options are sorted in sections, it is faster to search from the last
option to the first one.

For configuration files with many options in a single section (like
plugins.conf), the load of configuration file is about 2 to 3x faster.
2019-10-23 19:45:06 +02:00
Sébastien Helleu fbc9faed42 doc: add keys to type for the example message with color codes (user's guide) 2019-10-22 07:54:50 +02:00
Sébastien Helleu c99889cb15 core: fix typo in French translation of /help fset 2019-10-21 19:14:31 +02:00
Sébastien Helleu f85f097c25 debian: disable javascript plugin on Ubuntu Focal 2019-10-20 21:27:21 +02:00
Sébastien Helleu 5d4220a91f core: fix scrolling up in bare mode when switched to bare mode at the top of the buffer (closes #899, issue #978) 2019-10-14 20:44:15 +02:00
Sébastien Helleu 7e6d933d74 doc: update German auto-generated file 2019-10-13 21:05:32 +02:00
Nils Görs 92853e1b47 core: update German translations 2019-10-13 18:54:48 +02:00
Sébastien Helleu 577a932201 core: add info about Python 3 and strings in release notes 2019-10-13 08:18:38 +02:00
Sébastien Helleu 899550ca94 doc: fix typo in scripting guide 2019-10-13 08:18:30 +02:00
Sébastien Helleu ab6a991de2 doc: fix language in links to plugin API reference (scripting guide) 2019-10-12 23:26:16 +02:00
Sébastien Helleu 2dbc283023 doc: add links on signals and hsignals (plugin API reference) 2019-10-12 23:17:33 +02:00
Sébastien Helleu 513f5a1ee7 python: send "bytes" instead of "str" to callbacks in Python 3 when the string is not UTF-8 valid (issue #1220, closes #1389) 2019-10-12 22:21:48 +02:00
Sébastien Helleu 8fc8f728d4 core: add reverse of string for screen in evaluation of expressions with "revscr:" 2019-10-12 20:14:36 +02:00
Sébastien Helleu 9535f4a70b doc: update German auto-generated file 2019-10-11 22:45:08 +02:00
Nils Görs f85adf5cf1 core: update German translations 2019-10-11 22:41:19 +02:00
Sébastien Helleu 876a0a1609 irc: add option irc.look.display_pv_warning_address (closes #892)
If the address of remote nick changes in a private buffer, a warning is
displayed.
2019-10-11 20:26:34 +02:00
Sébastien Helleu 1dda5ffd02 doc: add value -1 for notify level in function hook_line (plugin API reference) 2019-10-10 18:39:31 +02:00
Sébastien Helleu dc9964ccc6 irc: add server option "ssl_password" (issue #115, issue #1416) 2019-10-09 21:40:43 +02:00
Sébastien Helleu 37415e61d5 core: update translations (issue #115, issue #1416) 2019-10-09 21:39:25 +02:00
Simmo Saan 116150c2fc irc: add server option ssl_password for SSL certificate private key password (closes #115) 2019-10-09 21:37:41 +02:00
Sébastien Helleu 5398f5d566 irc: fix compiler warning on uninitialized variable 2019-10-09 07:17:32 +02:00
Nils Görs 02c63beef9 core: add German translations in weechat.desktop 2019-10-08 20:54:25 +02:00
Sébastien Helleu 6619219297 doc: add value -1 for notify level in trigger of type line (user's guide) 2019-10-08 20:30:59 +02:00
Sébastien Helleu 6fa0f49a28 core: update ChangeLog (issue #982, issue #408) 2019-10-07 21:06:55 +02:00
Sébastien Helleu afe64aefbf core: add keywords in weechat.desktop (issue #982, issue #408) 2019-10-07 21:06:55 +02:00
Sébastien Helleu 85f9ead7b8 core: add French translations in weechat.desktop (issue #982, issue #408) 2019-10-07 21:06:55 +02:00
Sébastien Helleu b35c94cc91 core: install weechat.desktop with autotools (issue #982, issue #408) 2019-10-07 21:06:50 +02:00
Lucas Hoffmann 8054cb0ee1 core: add a desktop file (closes #982, closes #408) 2019-10-07 20:47:43 +02:00
Sébastien Helleu cbeecc0cde core: ensure completion_item is not NULL before using it 2019-10-06 21:47:56 +02:00
Sébastien Helleu 528c769e71 core: fix crash in completion of filenames 2019-10-06 21:45:27 +02:00
Sébastien Helleu d2a63b2b44 doc: update German auto-generated files 2019-10-06 19:17:15 +02:00
Sébastien Helleu 86e623a554 doc: fix chapter on IRC server connection in quickstart guide 2019-10-06 19:12:47 +02:00
Sébastien Helleu c391fe5fa5 core: update ChangeLog (closes #630) 2019-10-06 19:11:15 +02:00
Sébastien Helleu c3b33859ae core: fix long lines 2019-10-06 19:09:29 +02:00
Sébastien Helleu f2551b8403 Merge remote-tracking branch 'origin/pr/630' 2019-10-06 19:07:25 +02:00
Sébastien Helleu 98d9dc1a03 core: update ChangeLog (closes #610, closes #617, closes #619) 2019-10-06 18:14:50 +02:00
Sébastien Helleu e6570d6e3a core: fix line too long, add comment on argument "with_suffix" 2019-10-06 18:11:58 +02:00
Sébastien Helleu e47002884a core: count suffix in alignment computed for context info 2019-10-06 18:08:52 +02:00
Sébastien Helleu c77bccba87 Merge remote-tracking branch 'origin/pr/619' 2019-10-06 18:08:17 +02:00
Sébastien Helleu af5951c123 Merge pull request #1415 from ingank/doc-de-improve-pr
doc: update German documentation
2019-10-06 17:25:00 +02:00
Ingolf Ankert 1eb54f4065 doc: update German documentation
Reviewed: from @flashcode
2019-10-06 17:14:07 +02:00
Sébastien Helleu de0209e6d6 Merge pull request #1414 from ingank/improve-po-de
core: update German translations
2019-10-06 17:03:27 +02:00
Ingolf Ankert 903cb0baf3 doc: update German documentation
fix: typos in doc/de/weechat_faq.de.adoc
fix: typos, spelling, grammar in doc/de/weechat_quickstart.de.adoc
2019-10-06 16:55:26 +02:00
Ingolf Ankert 5518b56561 core: update German translations 2019-10-06 15:53:57 +02:00
Sébastien Helleu 53360a7909 logger: fix write in log file if it has been deleted or renamed (closes #123) 2019-10-06 13:36:35 +02:00
Sébastien Helleu 529af39612 doc: translate description of logger masks in user's guide 2019-10-06 10:19:01 +02:00
Sébastien Helleu 79e124d6e4 Merge pull request #1413 from FiXato/patch-2
Added introductory description of Logger masks
2019-10-06 10:18:32 +02:00
Sébastien Helleu d3254262ac doc: fix styles in plugin API reference 2019-10-06 10:01:49 +02:00
Sébastien Helleu 587f5bf15b irc: use path from option xfer.file.upload_path to complete filename in command "/dcc send" (closes #60) 2019-10-06 09:38:52 +02:00
Sébastien Helleu 6e382d26a9 core: add optional default path (evaluated) in completion "filename" (issue #60) 2019-10-06 09:38:20 +02:00
Sébastien Helleu 88aa82d672 core: add support of modifiers in evaluation of expressions with "modifier:name,data,string" (issue #60) 2019-10-06 09:13:35 +02:00
Sébastien Helleu 1a0ba4a9dc api: add modifier "eval_path_home" (issue #60) 2019-10-06 09:06:55 +02:00
Sébastien Helleu e921b9f432 core: fix comments on modifier callback functions in plugin API 2019-10-06 08:56:12 +02:00
Filip H.F. "FiXato" Slagter 86dcbc09c0 Added introductory description of Logger masks
While the documentation for Logger filename masks contained examples, it didn't actually describe it would try to match in order of descending specificity.
2019-10-05 20:43:29 +02:00
Sébastien Helleu 587ddf7222 core: add reference to issue #66 for hook_line function in ChangeLog 2019-10-05 18:55:27 +02:00
Sébastien Helleu c521392207 core: add quotes around commands with arguments in ChangeLog 2019-10-05 18:18:07 +02:00
Sébastien Helleu 1da5b9126e core: fix typo in ChangeLog 2019-10-05 18:17:49 +02:00
Sébastien Helleu 3c0bdc18f3 xfer: add option xfer.file.download_temporary_suffix with default value ".part" (closes #1237) 2019-10-05 18:11:39 +02:00
Sébastien Helleu 6c23f632b1 xfer: fix memory leak when a xfer is freed and when the plugin is unloaded 2019-10-05 17:49:07 +02:00
Sébastien Helleu 3e189fa60d irc: fix typo in /help links 2019-10-04 20:44:09 +02:00
Sébastien Helleu f9dcb573ca doc: update German auto-generated files 2019-10-03 20:39:48 +02:00
Sébastien Helleu 8c31306f30 Merge pull request #1410 from ingank/ingank/german-translation
core: update German translations
2019-10-03 20:32:37 +02:00
Sébastien Helleu d2be0e8e1d Merge pull request #1409 from ingank/master
doc: update German documentation
2019-10-03 20:32:10 +02:00
Ingolf Ankert b03a4e192c core: update German translations 2019-10-03 15:25:42 +02:00
Sébastien Helleu 70fd722278 logger: add option logger.file.color_lines (closes #528, closes #621) 2019-10-02 20:44:12 +02:00
Ingolf Ankert f3376f4264 doc: update German documentation 2019-10-01 21:48:44 +02:00
Sébastien Helleu e386965aba api: add modifier "color_encode_ansi" (issue #528) 2019-10-01 18:31:41 +02:00
Sébastien Helleu 90f711a965 core: add function to convert WeeChat colors to ANSI colors (issue #528) 2019-10-01 18:31:41 +02:00
Sébastien Helleu 177fa6c528 core: add support of reverse video in ANSI color codes 2019-10-01 18:31:41 +02:00
Sébastien Helleu a8ca4b5b3a tests: add tests on GUI color functions 2019-10-01 18:31:41 +02:00
Sébastien Helleu daad558291 core: fix typos in comments 2019-10-01 18:31:41 +02:00
Sébastien Helleu baf8f635ff core: fix style in CMake files 2019-10-01 18:31:41 +02:00
Sébastien Helleu 779420d50d core: fix typo in ChangeLog 2019-10-01 18:29:59 +02:00
Sébastien Helleu 92cad366a2 core: fix typos in French translations 2019-09-30 21:46:56 +02:00
Sébastien Helleu cddb314a10 doc: update German auto-generated files 2019-09-28 15:06:11 +02:00
Ingolf Ankert 45a55895fb core: update German translations 2019-09-28 14:42:32 +02:00
Sébastien Helleu 2067136506 core: add contributor in AUTHORS.adoc (issue #1406) 2019-09-27 20:56:17 +02:00
Sébastien Helleu 41cf758864 core: update ChangeLog (issue #1406) 2019-09-27 20:56:17 +02:00
Kyle Sabo 0678e0c9b3 core: fix build on Alpine (closes #1406) 2019-09-27 20:56:09 +02:00
Sébastien Helleu ae38b11407 irc: add "user" in output of irc_message_parse (closes #136) 2019-09-27 20:52:00 +02:00
Sébastien Helleu 3f33b327b1 logger: move logger backlog functions to logger-backlog.c 2019-09-26 21:26:23 +02:00
Sébastien Helleu 8ab6422520 debian: switch to Guile 2.2 in Debian build
Guile 2.2 is now used by default in Debian/Ubuntu builds, except on these old
distribution versions where only Guile 2.0 is available:

- Debian Stretch
- Debian Jessie
- Debian Wheezy
- Ubuntu Xenial
- Ubuntu Trusty
2019-09-25 20:58:22 +02:00
Nils Görs 4b0e6d5da2 core: update German translations 2019-09-24 21:43:30 +02:00
Sébastien Helleu 3a356f109f core: add power operator "**" in calc expressions (issue #997) 2019-09-24 21:03:56 +02:00
Sébastien Helleu 7d795c4d53 core: fix wrong results with the unary minus in calc expressions 2019-09-24 20:49:48 +02:00
Sébastien Helleu dc5e334f5c doc: update German auto-generated file 2019-09-23 23:10:40 +02:00
Nils Görs aa45748bff core: update German translations 2019-09-23 22:07:41 +02:00
Sébastien Helleu fe193a350b core: update translations (issue #683) 2019-09-23 21:31:09 +02:00
Simmo Saan e437613acb irc: add separate options for kick/kill message coloring (closes #683)
Add new options irc.color.message_kick and irc.color.reason_kick to be used
for coloring KICK and KILL messages.
2019-09-23 21:22:49 +02:00
Sébastien Helleu c5ffc3917f doc: update German auto-generated files 2019-09-22 21:37:23 +02:00
Nils Görs 6942444a2b core: update German translations 2019-09-22 21:32:46 +02:00
Sébastien Helleu 39b6fb6137 irc: remove option irc.network.channel_encode, add server option "charset_message" (closes #832)
This new option controls which part of the IRC message is decoded/encoded to
the target charset, and the new default behavior is to decode/encode the whole
IRC message (behavior in WeeChat >= 1.3 was to decode/encode only the text by
default).
2019-09-22 20:41:00 +02:00
Sébastien Helleu 12ee9cb75c core: build with Guile 2.2 on Cygwin (issue #1098) 2019-09-21 15:54:12 +02:00
Sébastien Helleu bed26f42a1 core: remove detection of Ruby 1.8, since Ruby >= 1.9.1 is now required (issue #1404) 2019-09-21 15:42:23 +02:00
Sébastien Helleu fbb0e85525 core: update ChangeLog (closes #1098) 2019-09-21 14:53:52 +02:00
Sébastien Helleu afce4804f5 guile: disable "/guile eval" as this does not (yet) work with Guile >= 2.2 (issue #1098) 2019-09-21 14:48:09 +02:00
Sébastien Helleu 387a44f5ec guile: add support of Guile 2.2 (issue #1098) 2019-09-21 14:48:05 +02:00
Sébastien Helleu e1a4612797 core: ignore color codes in ${length:xxx} and ${lengthscr:xxx} 2019-09-21 13:54:36 +02:00
Nils Görs de45636388 core: update German translations 2019-09-21 08:31:40 +02:00
Sébastien Helleu dcfc4e8ed5 core: add "length:xxx" and "lengthscr:xxx" in evaluation of expressions 2019-09-21 07:56:21 +02:00
Nils Görs 1919f23c2d core: update German translations 2019-09-20 23:13:03 +02:00
Sébastien Helleu bd3f1b5f00 doc: add file test-core-calc.cpp in developer's guide 2019-09-20 21:42:44 +02:00
Sébastien Helleu 92ecbe29ae core: move bugs below new features in ChangeLog 2019-09-20 21:37:21 +02:00
Sébastien Helleu 997894edc0 core: add calculation of expression in evaluation of expressions with "calc:..." (issue #997) 2019-09-20 21:37:01 +02:00
Sébastien Helleu 0109c51937 core: add chapter about CMake fatal errors on missing dependencies in release notes 2019-09-20 09:25:26 +02:00
Sébastien Helleu a81d266b31 doc: update auto-generated files 2019-09-20 09:25:03 +02:00
Nils Görs 4fca523b17 core: update German translations 2019-09-19 21:56:38 +02:00
Sébastien Helleu 5cf419dd63 core: remove extra spaces in arguments of /help uptime and /help version 2019-09-19 21:25:27 +02:00
Sébastien Helleu 85f6c5eeda script: add options "-ol" and "-il" in command /script, display "No scripts loaded" if no scripts are loaded 2019-09-19 21:20:55 +02:00
Sébastien Helleu 8a3ffda0a2 doc: set minimum Ruby version to 1.9.1 in user's guide (closes #1404)
This is now required after the changes introduced by commit
156d855787 in version 2.6.
2019-09-18 21:18:40 +02:00
Sébastien Helleu e04c30f00b doc: update German auto-generated files 2019-09-18 13:58:56 +02:00
Nils Görs 4324ff7c4b Merge branch 'master' of github.com:weechat/weechat 2019-09-18 13:52:31 +02:00
Nils Görs 29cd012627 core: update German translations 2019-09-18 13:51:46 +02:00
Sébastien Helleu d26893a70d core: update ChangeLog (closes #1400) 2019-09-17 21:29:28 +02:00
Tobias Stoeckmann f7b84fcc67 Fixed segfault during excessive evaluation.
It is possible to trigger a segmentation fault while processing
an evaluation of repeating string. On a Linux 64 bit system,
enter this (or adjust arguments for 32 bit accordingly):

/eval -n ${repeat:1073741824,----}

It will overflow an integer calculation because int instead of
size_t is used. Proper check of int limitations fixes this issue.

I haven't changed this specific piece of code to size_t because it
would crash in other parts of the code tree instead. For now, int
is a limitating factor when it comes to strings (and should be
enough for sane use cases).

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2019-09-17 21:26:52 +02:00
Sébastien Helleu 63a05d72d9 buflist: fix extra spaces between buffers when conditions are used to hide buffers (closes #1403)
This is a regression introduced in version 2.6 by commit
bf21ca072d.
2019-09-17 21:21:28 +02:00
Sébastien Helleu 40eb257d0d doc: update German auto-generated file 2019-09-17 09:02:45 +02:00
Nils Görs 8e267ad9f3 core: update German translations 2019-09-17 08:41:54 +02:00
Sébastien Helleu e8be4f62af core: mention possible background color in /help weechat.look.nick_color_force 2019-09-16 20:58:12 +02:00
Sébastien Helleu ea0bdbab1b debian: fix build of packages on Debian Jessie (issue #916, issue #956)
With the new errors on missing libraries in CMake, the PHP plugin must be
explicitly disabled.
2019-09-16 08:46:00 +02:00
Sébastien Helleu d690544499 core: update ChangeLog 2019-09-15 14:53:02 +02:00
Sébastien Helleu ab768ce902 core: remove obsolete file FindTCL.cmake (issue #916, issue #956)
This is file is provided by CMake and is not needed any more.  Moreover, it
causes an error on FreeBSD (TCL not found), even if TCL was properly detected
and used during the build.
2019-09-15 14:48:52 +02:00
Sébastien Helleu bff40e4c26 core: display an error on missing dependency in CMake (closes #916, closes #956) 2019-09-15 07:49:03 +02:00
Sébastien Helleu 9cb6857672 Version 2.7-dev 2019-09-08 08:33:06 +02:00
Sébastien Helleu 7477845205 Version 2.6 2019-09-08 08:13:58 +02:00
Sébastien Helleu ea139e7fdb doc: update Polish auto-generated files 2019-09-07 16:04:57 +02:00
Krzysztof Korościk 2d2d349d3c update polish translation 2019-09-07 15:54:13 +02:00
Sébastien Helleu 948caf0857 Version 2.6-rc2 2019-09-01 11:27:07 +02:00
Sébastien Helleu f24538646f core: update python dependency from python2-devel to python3-devel in cygport file 2019-08-31 20:49:42 +02:00
Sébastien Helleu 1beebdf01e core: fix compilation with autotools on FreeBSD 12.0 2019-08-31 14:18:55 +02:00
Sébastien Helleu 8bb4549494 core: fix compilation of Python plugin on FreeBSD 12.0 (closes #1398) 2019-08-31 14:13:58 +02:00
Sébastien Helleu 63902ef52d debian: add Python version in description of python plugin package 2019-08-30 18:34:31 +02:00
Sébastien Helleu 93775de7ff Version 2.6-rc1 2019-08-27 22:31:43 +02:00
Sébastien Helleu 62944b7168 core: disable option "-Werror-implicit-function-declaration" for C++ compiler
This option is valid for C compiler only.
2019-08-27 22:26:57 +02:00
Sébastien Helleu f0001ed670 doc: update German auto-generated file 2019-08-25 21:01:46 +02:00
Nils Görs e11f6e3046 core: update German translations 2019-08-25 20:05:18 +02:00
Sébastien Helleu 68d6f1b415 api: add infos "term_colors" and "term_color_pairs" 2019-08-25 19:10:32 +02:00
Sébastien Helleu f0685dd1b1 ruby: remove unused variable "ruby_hide_errors" 2019-08-25 07:14:42 +02:00
Sébastien Helleu 0884c9b33c core: move "Python 3 by default" as first item in the release notes 2019-08-24 17:43:49 +02:00
Sébastien Helleu 3938328375 doc: update German auto-generated file 2019-08-24 08:36:52 +02:00
Nils Görs 16592fdbbb core: update German translations 2019-08-24 08:06:44 +02:00
Sébastien Helleu bad8db720e irc: fix parsing of message 346, 348 and 728 when there is a colon before the timestamp (issue #1396)
IRC Messages:
- 346: invite list
- 348: exception list
- 728: quiet list
2019-08-24 07:19:01 +02:00
Sébastien Helleu 61c5d08320 fset: add filters "h=xxx" and "he=xxx" to filter options by description (translated or in English) 2019-08-24 07:13:34 +02:00
Sébastien Helleu 04162214d4 doc: update German auto-generated file 2019-08-22 07:45:10 +02:00
Nils Görs 2fa33b102b core: update German translations 2019-08-21 21:58:47 +02:00
iwalkalone 1e7232b8c2 irc: fix parsing of message 367 (banlist) when there is a colon before the timestamp (closes #1396) 2019-08-21 08:21:07 +02:00
Sébastien Helleu 608ec9f483 core: add values djb2_32 and sum_32 for option weechat.look.nick_color_hash (issue #1394) 2019-08-20 21:20:33 +02:00
Sébastien Helleu 21dca71ee0 ruby: fix compilation with Ruby < 2.3 2019-08-20 07:57:01 +02:00
Sébastien Helleu 7f62985f89 core: use fixed-width integer for computing hashtable DJB2 key hash (closes #1394) 2019-08-19 23:29:22 +02:00
Sébastien Helleu 80f103b68a core: use fixed-width integer for computing nick hash (issue #1394) 2019-08-19 23:27:11 +02:00
Sébastien Helleu 156d855787 ruby: fix conversion of big integers on 32bit architecture (closes #1395) 2019-08-19 23:21:12 +02:00
Sébastien Helleu bf21ca072d buflist: use extra variables in option buflist.look.display_conditions (closes #1393) 2019-08-17 08:57:40 +02:00
Sébastien Helleu a3e8163f37 Revert "buflist: mention variables available for option buflist.look.display_conditions in its help and in /help buflist (closes #1393)"
This reverts commit 39e5b0574c.
2019-08-17 08:43:22 +02:00
Nils Görs ceb579653f doc: update German documentation 2019-08-17 08:28:27 +02:00
Sébastien Helleu 39e5b0574c buflist: mention variables available for option buflist.look.display_conditions in its help and in /help buflist (closes #1393) 2019-08-17 08:17:11 +02:00
Sébastien Helleu 05744f3b61 doc: translate new Freenode Tor Hidden Service (user's guide) 2019-08-15 23:09:39 +02:00
Alfredo Ramos 783aebfd53 doc: use the new Freenode Tor Hidden Service (user's guide)
And add a note for users using an old version of Tor
2019-08-15 23:09:35 +02:00
Sébastien Helleu c411ee475a core: create or update option weechat.notify.xxx when function buffer_set is called with "notify" property (closes #1390) 2019-08-10 17:48:34 +02:00
Sébastien Helleu a409080d8b doc: update German auto-generated file 2019-08-10 17:33:59 +02:00
weechatter b1ae6ad1c6 core: update German translations 2019-08-10 17:22:00 +02:00
Andrew Potter 0957231d30 api: add function list_user_data (issue #666) 2019-08-10 12:55:43 +02:00
Sébastien Helleu 464d31155a core: update ChangeLog (issue #615) 2019-08-10 11:23:51 +02:00
Sébastien Helleu 5f1b895f27 irc: replace calls to strcpy and strcat with a call to snprintf 2019-08-10 11:20:43 +02:00
Sébastien Helleu dfcbb6b058 irc: rename variable vars_replaced to command2, remove fallback on *ptr_command 2019-08-10 11:16:21 +02:00
Sébastien Helleu dd133af522 Merge remote-tracking branch 'origin/pr/615' 2019-08-10 11:12:13 +02:00
Sébastien Helleu befa97ea81 core: mention there's no fallback on the other Python version in release notes 2019-08-10 10:42:53 +02:00
Sébastien Helleu a906afc3d7 core: replace python-dev by python3-dev in dependencies (user's guide) 2019-08-06 22:48:59 +02:00
Sébastien Helleu b4215ee466 tests: add tests on IRC function irc_nick_is_nick 2019-08-06 22:13:10 +02:00
Sébastien Helleu 210e864899 irc: fix memory leak when removing a server 2019-08-05 20:58:24 +02:00
Sébastien Helleu 47010dd9c6 doc: update auto-generated files with hdata 2019-08-04 16:43:48 +02:00
Sébastien Helleu b6cc5ef70f irc: fix length of user/nick/host in split of messages (closes #1387) 2019-08-04 16:39:18 +02:00
Sébastien Helleu 59ba378eec tests: add missing space after name of function 2019-08-04 14:39:58 +02:00
Sébastien Helleu 0bf5a5ae9c irc: add variables "user_max_length" and "host_max_length" in server structure (issue #1387) 2019-08-04 14:39:58 +02:00
Sébastien Helleu 4fa62a83f1 tests: add unit tests on IRC functions irc_message_split* (issue #1387) 2019-08-04 14:39:58 +02:00
Sébastien Helleu 067f237ec3 tests: add unit tests on IRC function irc_message_convert_charset 2019-08-04 14:04:45 +02:00
Sébastien Helleu fbc022a77a core: return NULL immediately if string is NULL in function hook_modifier_exec 2019-08-04 13:30:53 +02:00
Sébastien Helleu c46255b1d0 tests: add unit tests on IRC functions irc_message_parse and irc_message_parse_to_hashtable 2019-08-03 13:57:50 +02:00
Sébastien Helleu d79e0cbd31 tests: add unit tests on IRC function irc_message_replace_vars 2019-08-03 11:34:42 +02:00
Sébastien Helleu 28d79d0c93 tests: add unit tests on IRC functions irc_message_get_{nick,address}_from_host 2019-08-03 11:30:35 +02:00
Sébastien Helleu 478ca22054 irc: return NULL in function irc_message_get_address_from_host if the received host is NULL 2019-08-03 10:53:17 +02:00
Sébastien Helleu 1f52101a41 doc: update German auto-generated files 2019-08-03 10:52:58 +02:00
Sébastien Helleu 9be225b201 core: fix description of changes on Python build in release notes
There's no fallback on the other Python version:
- with no option: build with Python 3 only
- with option ENABLE_PYTHON2: build with Python 2 only.
2019-08-03 08:31:57 +02:00
weechatter 07878046d2 doc: update German documentation 2019-08-01 18:45:49 +02:00
Sébastien Helleu 2e07121457 core: update ChangeLog (issue #1384) 2019-07-31 22:55:40 +02:00
Sébastien Helleu f8b8669d2e Merge pull request #1384 from l2dy/memory
core: fix memory leak in case of error
2019-07-31 22:51:12 +02:00
Sébastien Helleu f3426f4388 doc: update note on Python recommended version in user's guide 2019-07-31 22:42:38 +02:00
Sébastien Helleu ad64fd16e1 core: update ChangeLog (issue #1382) 2019-07-31 22:17:28 +02:00
Sébastien Helleu 99bb662bc5 core: add contributor in AUTHORS.adoc 2019-07-31 22:16:42 +02:00
Sébastien Helleu 8bc5725278 core: remove obsolete checks of old Python version in configure, properly set Python version (issue #1382) 2019-07-31 21:53:16 +02:00
Sébastien Helleu 8897e04c0d core: fix help on python to build with Python 2 (issue #1382) 2019-07-31 21:24:36 +02:00
Eli Schwartz 4744c3fa41 work around broken travis environment variables
See: https://github.com/travis-ci/travis-ci/issues/5301
2019-07-31 20:46:02 +02:00
Eli Schwartz ad7d16a5b3 build: use pkg-config to properly link python
fixes incorrect (non)detection of libpython3.Ym.so due to PEP 3149 since
python's officially exported build flags know how to correctly link to
python.
2019-07-31 20:45:59 +02:00
weechatter b8d69307ee core: update German translations 2019-07-30 22:56:52 +02:00
Sébastien Helleu 015ec85f10 core: add some missing default keys in /help cursor 2019-07-29 22:49:29 +02:00
Zero King acbf021330 core: fix memory leak in case of error 2019-07-27 18:51:29 +00:00
Sébastien Helleu 93cd05bdd8 core: fix French translations on IRC ignores 2019-07-24 18:46:25 +02:00
Sébastien Helleu 5eeb98e40c buflist: use existing variable buflist_hdata_buffer to check buffer pointers in infolist "buflist" 2019-07-13 22:16:25 +02:00
Sébastien Helleu f6bc6fec2e doc: add function "register" in the plugin API reference 2019-07-11 21:12:33 +02:00
Sébastien Helleu c463b84421 doc: add Python prototype for function window_get_string (plugin API reference) 2019-07-11 20:51:52 +02:00
Sébastien Helleu 6461aefcae doc: fix return value of function window_get_string (plugin API reference) 2019-07-11 20:51:48 +02:00
Sébastien Helleu 643376fc1d core: update translations (issue #1375) 2019-07-11 07:30:01 +02:00
Sébastien Helleu 26c0b1270f core: update ChangeLog (issue #1375) 2019-07-11 07:29:56 +02:00
Sébastien Helleu ccaf99ff40 buflist: check validity of buffer pointers in info "buflist" (issue #1375) 2019-07-11 07:29:54 +02:00
Simmo Saan 0fdf2c13a5 buflist: add infolist "buflist" (issue #1375) 2019-07-11 07:29:46 +02:00
Sébastien Helleu fd592c2323 irc: quote NICK command argument sent to the server only if there's a ":" in the nick (closes #1376, issue #1319) 2019-07-11 07:08:36 +02:00
Sébastien Helleu 82a92bd4e9 irc: add unit tests on ignore functions 2019-07-10 19:20:09 +02:00
Sébastien Helleu 162ca1fade irc: split function irc_ignore_check into three functions 2019-07-10 19:19:35 +02:00
Sébastien Helleu e56c7e8c9b debian: disable Javascript plugin on Debian Buster/Bullseye (closes #1374) 2019-07-08 18:29:50 +02:00
Sébastien Helleu 5e9efeb2e3 debian: switch from Lua 5.1 to 5.3 in Debian build 2019-07-07 14:14:37 +02:00
Sébastien Helleu 965173ded5 doc: fix typos in examples of function hook_process_hashtable (plugin API reference) 2019-07-06 20:39:02 +02:00
Sébastien Helleu 768c0d9acc core: move line from "New features" to "Bug fixes" in ChangeLog 2019-07-05 08:43:29 +02:00
Sébastien Helleu 15ce4b2be5 irc: return all arguments in the PONG response to a PING (closes #1369) 2019-07-04 18:48:46 +02:00
Sébastien Helleu 789fa972f8 core: add Python 3 in release notes 2019-07-01 22:16:23 +02:00
Sébastien Helleu 179b00b4a3 doc: update auto-generated files with hdata 2019-07-01 22:09:58 +02:00
Sébastien Helleu 45fc8f1012 doc: rename option ENABLE_PYTHON3 to ENABLE_PYTHON2 in user's guide 2019-07-01 22:04:02 +02:00
Sébastien Helleu c99dd0f611 core: remove pyenv in Travis CI 2019-07-01 21:28:33 +02:00
Sébastien Helleu ab81128a7a core: compile with Python 3 by default
The CMake option ENABLE_PYTHON3 is renamed to ENABLE_PYTHON2, to use Python 2
first then fallback on Python 3.

In the same way, the configure option --enable-python3 is renamed to
--enable-python2, to use Python 2 first then fallback on Python 3.
2019-07-01 21:28:33 +02:00
Sébastien Helleu f9b6f359dd doc: update chapter on colors in user's guide (issue #1343, issue #1345) 2019-06-28 20:58:00 +02:00
Sébastien Helleu a9a1066e63 core: update ChangeLog (closes #1343, closes #1345) 2019-06-28 20:47:07 +02:00
Sébastien Helleu d540ea91ae Merge remote-tracking branch 'origin/pr/1345' 2019-06-28 20:43:21 +02:00
Sébastien Helleu b1ab2a0c50 doc: add description of arguments sent to the weechat_plugin_init plugin function (plugin API reference) 2019-06-26 21:20:01 +02:00
Sébastien Helleu 33ee803609 core: send command line parameter to plugins only if the name starts with the plugin name followed by a colon 2019-06-26 21:13:36 +02:00
Sébastien Helleu 1d6714e428 core: auto disable upgrade process (command line option "--upgrade") if the file weechat.upgrade is not found 2019-06-24 21:35:37 +02:00
Sébastien Helleu 98b5e90469 doc: update German auto-generated file 2019-06-22 08:43:24 +02:00
Sébastien Helleu b0ad684f6b irc: fix help of /connect command: the server is optional 2019-06-22 08:42:38 +02:00
weechatter ca73fabc72 core: update German translations 2019-06-18 19:15:15 +02:00
Sébastien Helleu f15a24b2ec core: add option "close" in command /window (closes #853) 2019-06-17 21:08:07 +02:00
Sébastien Helleu e5f963f78a doc: update auto-generated files with URL options 2019-06-16 23:03:48 +02:00
Sébastien Helleu 087d4c7af3 core: add Curl options for versions 7.53.0 to 7.63.0 2019-06-16 22:28:08 +02:00
Sébastien Helleu 07a8c4a0ec doc: update German auto-generated file 2019-06-16 16:13:17 +02:00
weechatter eb2535982c core: update German translations 2019-06-16 14:10:11 +02:00
Sébastien Helleu fe90a5ed4e core: replace newlines by spaces in argument "completion" of function hook_command (closes #538) 2019-06-16 08:14:24 +02:00
Sébastien Helleu 60c61c3962 irc: disable server reconnection when the server buffer is closed (closes #236) 2019-06-15 22:46:14 +02:00
Sébastien Helleu 0d9b7ec954 irc: strip spaces at beginning/end of addresses in server option "addresses" (closes #195) 2019-06-15 20:50:48 +02:00
Sébastien Helleu 9178156354 api: add argument "strip_items" in function string_split 2019-06-15 20:47:14 +02:00
Sébastien Helleu 866a29c7e6 core: check that string pointer is not NULL in function "string_shared_get" 2019-06-15 17:21:06 +02:00
Sébastien Helleu 95cbf3a48b irc: remove capability from cap_list when a client capability is disabled (issue #151) 2019-06-15 08:56:48 +02:00
Sébastien Helleu b6c304ac87 irc: fix display of enabled/disabled client capabilities received in command CAP ACK (closes #151) 2019-06-15 08:14:22 +02:00
Sébastien Helleu 31d0742aed doc: remove obsolete options for "brew install" command (user's guide) 2019-06-12 23:37:17 +02:00
Sébastien Helleu 7d24dd5a6c core: add contributor in AUTHORS.adoc 2019-06-12 23:34:36 +02:00
Johan Rylander 6c114bbba7 doc: remove obsolete options for "brew install" command (FAQ) 2019-06-12 23:33:33 +02:00
Sébastien Helleu 4b90549b86 doc: improve tree with log files in user's guide 2019-06-12 23:07:32 +02:00
Sébastien Helleu 04fd587fff exec: evaluate option exec.command.shell, change default value to "${env:SHELL}" (closes #1356) 2019-06-12 18:29:07 +02:00
Sébastien Helleu eb216de9b8 core: add contributor in AUTHORS.adoc 2019-06-07 21:36:58 +02:00
Sébastien Helleu 4d8785289d core: update ChangeLog 2019-06-07 21:36:28 +02:00
jesopo 4ea193c981 alias: remove default aliases /AME and /AMSG 2019-06-07 21:35:15 +02:00
Sébastien Helleu 7aa82db471 core: replace char "," by "~" in color codes to separate foreground from background (closes #1264) 2019-06-07 21:29:05 +02:00
Sébastien Helleu f065b43b71 doc: replace "cmake" by "CMake" 2019-06-07 21:14:17 +02:00
Sébastien Helleu 96d1276446 Version 2.6-dev 2019-06-06 21:03:56 +02:00
Sébastien Helleu 2904a2e811 Version 2.5 2019-06-06 20:43:20 +02:00
Sébastien Helleu c64cbe1a84 doc: update French auto-generated file 2019-06-06 20:09:08 +02:00
Sébastien Helleu 40f12ec20f core: add FUNDING.yml 2019-06-05 21:32:54 +02:00
Sébastien Helleu 4c9b61755b Version 2.5-rc2 2019-06-04 23:12:40 +02:00
Sébastien Helleu 22895f3f5e relay: set socket option SO_KEEPALIVE only for TCP sockets when creating the socket (issue #733) 2019-06-04 22:59:42 +02:00
Sébastien Helleu 479d234ced relay: set socket option SO_REUSEADDR only for TCP sockets when creating the socket (issue #733) 2019-06-04 22:54:00 +02:00
Sébastien Helleu 86d9cb1e41 relay: set socket option SO_REUSEADDR only for TCP sockets (issue #733) 2019-06-04 22:45:54 +02:00
Sébastien Helleu b4dadd6d98 relay: add UNIX domain socket completion for command /relay add (issue #733) 2019-06-04 22:29:18 +02:00
Sébastien Helleu bfbb511169 relay: fix typo in French translation of /help relay (issue #733) 2019-06-04 22:27:03 +02:00
Sébastien Helleu 22e6777aed relay: fix crash when deleting a relay (issue #733) 2019-06-04 22:19:39 +02:00
Sébastien Helleu 66011b4bee relay: fix truncated path when the unix socket path is longer than the authorized one (issue #733) 2019-06-04 22:19:31 +02:00
Sébastien Helleu 917b2ddf69 spell: add a warning if aspell.conf is still present (on first spell load) 2019-06-04 20:56:05 +02:00
Sébastien Helleu c4a482e067 core: sort changes by importance instead of commit date in release notes 2019-06-04 07:52:42 +02:00
Sébastien Helleu 5edf6ff1c5 doc: update Polish auto-generated files 2019-06-02 06:01:05 +02:00
Krzysztof Korościk a6f44be396 po: upated polish translation 2019-06-01 00:15:12 +02:00
Krzysztof Korościk 5e1174d135 doc: updated polish translation 2019-05-31 23:18:12 +02:00
weechatter 2ab08885be doc: update German documentation 2019-05-27 22:49:17 +02:00
Sébastien Helleu 99bb53f693 doc: add example of WeeChat command to setup the password in a WeeChat IRC relay client (user's guide) 2019-05-27 21:40:01 +02:00
Sébastien Helleu a599e0328b doc: disambiguate key binding "l", which is lower "L" (not "1") 2019-05-27 21:38:39 +02:00
weechatter f3f5bf1d31 core: update German translations 2019-05-26 15:00:15 +02:00
Sébastien Helleu 92a4948666 doc: add extra left/right margins on key sequences 2019-05-26 14:52:00 +02:00
Sébastien Helleu c0bb243541 doc: add links to WeeChat directories and files (user's guide) 2019-05-26 14:51:14 +02:00
Sébastien Helleu f1f1474fda doc: update Japanese auto-generated file 2019-05-26 13:22:17 +02:00
Sébastien Helleu b0554c7415 Merge pull request #1349 from l/master/translation/ja_JP
core: update Japanese translations
2019-05-26 13:21:35 +02:00
AYANOKOUZI, Ryuunosuke 26c844cd25 core: update Japanese translations 2019-05-26 09:00:00 +09:00
Sébastien Helleu ad40118469 doc: increase font size for key bindings 2019-05-25 16:10:23 +02:00
Sébastien Helleu bea63c7b60 doc: remove extra spaces before colons 2019-05-24 21:53:41 +02:00
Sébastien Helleu d3c3e97a0d doc: remove extra space in python dict (scripting guide) 2019-05-24 21:53:17 +02:00
Sébastien Helleu 7cf4585690 doc: fix styles in user's guide 2019-05-24 21:52:35 +02:00
Sébastien Helleu c9762c84e1 doc: fix style in bar items chapter (user's guide) 2019-05-23 21:12:40 +02:00
Sébastien Helleu c716ec1398 doc: update German auto-generated file 2019-05-16 22:02:52 +02:00
weechatter 403555d1be core: update German translations 2019-05-16 20:55:13 +02:00
Sébastien Helleu b6d56d4972 Version 2.5-rc1 2019-05-14 20:31:36 +02:00
Sébastien Helleu 34adcde2ff irc: add extra check on argument "nick" in functions "irc_nick_set_*" 2019-05-14 07:26:48 +02:00
Sébastien Helleu f6d6f7bac5 irc: fix crash when the nick in incoming message is not found in channel 2019-05-14 07:25:04 +02:00
Sébastien Helleu 90610c55c8 relay: remove useless condition
This fixes a compilation warning on FreeBSD.
2019-05-13 22:08:35 +02:00
Sébastien Helleu 828710737a core: update ChangeLog (closes #733, closes #1333) 2019-05-13 21:57:42 +02:00
Sébastien Helleu ec5aca81e7 relay: set address to "local" if not known 2019-05-13 21:57:23 +02:00
Sébastien Helleu 9ed89beaa0 core: update translations 2019-05-13 21:43:11 +02:00
Sébastien Helleu 8121747e7b relay: rename variables in function relay_config_check_path_length 2019-05-13 20:50:13 +02:00
Simmo Saan 5988d17d2d gui: simplify and revert FindNcurses using PATH_SUFFIXES for system default search 2019-05-13 14:18:02 +00:00
Simmo Saan 980d26956f gui: fix wide ncurses header on FreeBSD (issue #1343) 2019-05-13 13:48:39 +00:00
Sébastien Helleu 6f3e563f8b relay: fix comment 2019-05-12 22:57:25 +02:00
Sébastien Helleu 4d156ed8d7 doc: update chapter on relay unix domain sockets; add translations (user's guide) 2019-05-12 22:52:33 +02:00
Sébastien Helleu d1577b34da relay: set mode 700 on the unix socket file (only the owner can use it) 2019-05-12 22:27:43 +02:00
Sébastien Helleu ef1fcbd183 relay: do not overwrite a file if it's not a socket, display an error when the socket can not be created 2019-05-12 22:18:42 +02:00
Sébastien Helleu 585eb337e8 relay: evaluate path of unix socket relay 2019-05-12 21:53:23 +02:00
Sébastien Helleu b228ccdfc3 relay: rename function relay_config_check_path_len to relay_config_check_path_length 2019-05-12 21:39:22 +02:00
Sébastien Helleu ade52cdc7d relay: fix update of port/path variables in relay server when options relay.port.* and relay.path.* are changed with /set 2019-05-12 21:39:22 +02:00
Sébastien Helleu eacc08f2e1 relay: fix section used when the unix relay does not start with "unix." 2019-05-12 21:39:22 +02:00
Sébastien Helleu f273487688 relay: add unix relay format in /help relay 2019-05-12 21:39:22 +02:00
Sébastien Helleu 170c523c84 relay: remove extra newline at the end of /help relay 2019-05-12 21:39:22 +02:00
Sébastien Helleu c4230ecece relay: remove local variable ptr_server from function relay_config_check_path_cb (not needed) 2019-05-12 21:39:22 +02:00
Sébastien Helleu c1af2702b8 relay: improve message displayed on a new client 2019-05-12 21:39:22 +02:00
Sébastien Helleu 78fda01dd5 relay: improve message displayed when the relay is removed 2019-05-12 21:39:22 +02:00
Sébastien Helleu 9d04bc5801 relay: improve message displayed when the relay is added 2019-05-12 21:39:22 +02:00
Sébastien Helleu abe85999d8 relay: rename function relay_config_create_option_port to relay_config_create_option_port_path 2019-05-12 21:39:22 +02:00
Sébastien Helleu df3848e1f0 relay: fix code style 2019-05-12 21:39:22 +02:00
Sébastien Helleu c78fb8dc7c relay: rename variable "un" to "unix_socket" 2019-05-12 18:52:22 +02:00
Ryan Farley ffefd1b785 relay: add UNIX socket support (closes #733) 2019-05-12 18:51:13 +02:00
Nils Görs 5f87112ec5 doc: update German documentation 2019-05-12 14:28:40 +02:00
Sébastien Helleu 01795251f9 doc: fix typo in French scripting guide 2019-05-12 09:27:43 +02:00
Sébastien Helleu 1d3d0aa66e doc: add chapter about WeeChat architecture in scripting guide 2019-05-12 09:25:45 +02:00
Sébastien Helleu a24817b141 irc: rename server variable "nick_host" to "host" 2019-05-12 07:46:01 +02:00
Sébastien Helleu e1fb8433ce core: update ChangeLog (issue #1346) 2019-05-11 20:33:37 +02:00
Sébastien Helleu e3c38d7163 core: add detection of Ruby 2.6 in autotools 2019-05-11 20:32:45 +02:00
Sébastien Helleu b66655b1de Merge pull request #1346 from J0WI/patch-1
core: add detection for Ruby 2.6
2019-05-11 20:31:30 +02:00
J0WI 38b195214b core: add detection for Ruby 2.6 2019-05-11 13:31:34 +02:00
Sébastien Helleu 26ba04b454 irc: set buffer local variable "nick_host" when a channel buffer is opened 2019-05-10 22:25:56 +02:00
Sébastien Helleu 35237c8088 irc: add bar items "irc_nick", "irc_host" and "irc_nick_host" 2019-05-10 22:00:33 +02:00
Sébastien Helleu 06aa7034fb irc: add variable "nick_host" in server structure 2019-05-10 21:59:31 +02:00
Sébastien Helleu 2073408b86 irc: fix parsing of MODE command when there are colons after the first mode argument (closes #1296) 2019-05-10 19:29:58 +02:00
Simmo Saan 5910bcf3c8 gui: fix wbkgrndset for non-wide ncurses by fallback to wbkgdset (issue #1343)
cchar_t, setcchar and wbkgrndset are actually widec ncurses features,
not ext-colors features, but NCURSES_WIDECHAR doesn't accurately reflect
their existence so NCURSES_EXT_COLORS is used instead.
2019-05-04 14:31:11 +03:00
Simmo Saan c7b242ffd9 gui: readd color buffer table zero padding and dashes (issue #1343) 2019-05-02 21:16:57 +03:00
Simmo Saan bf1462d7a1 gui: change command line option "-c" color pairs table to match (issue #1343) 2019-05-02 21:06:42 +03:00
Simmo Saan f5f6cf028c gui: change color buffer pairs table to only show allocated pairs (issue #1343) 2019-05-02 19:30:22 +03:00
Simmo Saan d392b406c5 gui: increase ncurses color pair limit from 255 to 32767 (issue #1343) 2019-05-02 19:30:22 +03:00
Simmo Saan 08719963de gui: replace ncurses COLOR_PAIR attribute usage with special functions (issue #1343) 2019-05-02 19:30:22 +03:00
Sébastien Helleu 141b42817f core: update ChangeLog (issue #1341, issue #1342) 2019-05-01 08:35:07 +02:00
Sébastien Helleu 4ddfbc9714 core: add contributor in AUTHORS.adoc 2019-05-01 08:33:47 +02:00
Sébastien Helleu 2712f0991b core: replace CMAKE_INSTALL_PREFIX by ${prefix} in libdir (weechat.pc) 2019-05-01 08:32:36 +02:00
Sébastien Helleu 1102f8ccf0 Merge pull request #1342 from ryan-farley/libdir_fix
cmake: allow custom libdir (fix #1341)
2019-05-01 08:29:59 +02:00
Ryan Farley 8df3ad3d26 cmake: allow custom libdir (fix #1341)
Allows for custom LIBDIR to specified with cmake builds. WEECHAT_LIBDIR
is used for a custom Weechat directory, or set from LIBDIR (as LIBDIR
used to be set).
2019-04-25 16:53:55 -05:00
Sébastien Helleu 38535686f8 core: update ChangeLog 2019-04-20 11:00:29 +02:00
Sébastien Helleu ece92efd81 tests: add link with iconv library (if found)
This fixes a compilation error on FreeBSD.
2019-04-20 10:15:01 +02:00
Nils Görs 4718112c1c doc: update German documentation 2019-04-19 23:07:36 +02:00
Sébastien Helleu d9d1fa7210 doc: translate quickstart changes in other languages 2019-04-19 21:25:33 +02:00
Sébastien Helleu 7f00a51e19 Merge remote-tracking branch 'origin/pr/1340' 2019-04-19 20:55:23 +02:00
Michael Siegel 0b330762fa quick start guide: make two separate sections out of section 2 2019-04-19 18:18:47 +00:00
Nils Görs 88404452e0 doc: update German documentation 2019-04-19 07:12:45 +02:00
Sébastien Helleu ebff142511 core: add contributor in AUTHORS.adoc 2019-04-17 07:45:00 +02:00
Sébastien Helleu a706ee976c doc: translate quickstart changes in other languages 2019-04-17 07:44:03 +02:00
Sébastien Helleu 1e63cdcd9f Merge remote-tracking branch 'origin/pr/1339' 2019-04-17 07:32:03 +02:00
Michael Siegel ec337a7601 quick start guide: rearrange content in section 2
Put everything help-related first, then explain how to set options.
2019-04-16 22:02:19 +00:00
Sébastien Helleu 1582d923e6 core: use getopt to parse command line arguments
Multiple options can now be given in a single flag, for example:

  weechat -ast

Following formats were allowed for command line argument with a value:

  weechat -d /tmp/weechat
  weechat --dir /tmp/weechat

Now these extra formats are supported as well:

  weechat -d/tmp/weechat
  weechat --dir=/tmp/weechat
2019-04-14 13:35:47 +02:00
Sébastien Helleu cc2a6db335 doc: update Japanese auto-generated files 2019-04-14 13:21:09 +02:00
Sébastien Helleu cb28372dd7 Merge pull request #1337 from l/master/translation/ja_JP
core: update Japanese translations
2019-04-14 13:20:03 +02:00
Sébastien Helleu b376f9f013 Merge pull request #1336 from msiism/master
quick start guide: insert “the” where missing
2019-04-14 09:11:33 +02:00
Sébastien Helleu 0e2baa56cf doc: update German auto-generated files 2019-04-14 08:55:19 +02:00
AYANOKOUZI, Ryuunosuke 1876e84c82 core: update Japanese translations 2019-04-14 09:00:00 +09:00
Michael Siegel b4ecfa0159 quick start guide: insert “the” where missing 2019-04-13 20:22:17 +00:00
Nils Görs 2b65c351a8 core: update German translations 2019-04-13 21:18:56 +02:00
Sébastien Helleu 4063abc86b core: bump API version
This is required after changes on functions hook_info and info_get.
2019-04-13 20:48:42 +02:00
Sébastien Helleu dbf6691243 core: add contributor in AUTHORS.adoc (issue #931) 2019-04-13 20:48:11 +02:00
Sébastien Helleu ebf38f142e core: merge functions gui_line_prefix_is_same_nick_as_{previous|next} (issue #931) 2019-04-13 20:46:05 +02:00
Sébastien Helleu 573377e2d9 core: fix /help weechat.look.buffer_time_same 2019-04-13 20:38:19 +02:00
Adrian Bjugård 0b5bff9ef5 core: add option weechat.look.prefix_same_nick_middle (closes #930, closes #931) 2019-04-13 20:36:41 +02:00
Nils Görs 36fc3fdc3b core: update German translations 2019-04-13 18:48:08 +02:00
Nils Görs 92e3217cf5 core: update German translations 2019-04-13 17:40:47 +02:00
Simmo Saan 97e9046918 core: add option weechat.look.buffer_time_same (closes #1127) 2019-04-13 14:45:53 +02:00
Sébastien Helleu 63c992922c Merge pull request #1334 from msiism/master
Improve intro of “Start WeeChat” section
2019-04-13 13:54:27 +02:00
Sébastien Helleu 30768d4d24 trigger: add hook "info_hashtable" 2019-04-13 13:53:16 +02:00
Sébastien Helleu 8bc06ea101 trigger: add hook "info" 2019-04-13 08:52:40 +02:00
Sébastien Helleu 299c308f00 irc: fix memory leak in infos "irc_server_isupport" and "irc_server_isupport_value" 2019-04-13 08:42:45 +02:00
Sébastien Helleu 3d95217745 api: return allocated string in hook_info callback and function info_get 2019-04-13 08:42:45 +02:00
Michael Siegel beb04085d8 Improve intro of “Start WeeChat” section 2019-04-11 21:58:09 +00:00
Sébastien Helleu c80dc2a5ca Merge pull request #1332 from msiism/master
Two grammar fixes for WeeChat user’s guide
2019-04-11 22:40:56 +02:00
Michael Siegel 20c4cb5ae4 Improve grammar in “Screen layout” section 2019-04-11 19:46:57 +00:00
Michael Siegel 734d17993c Add missing “the” to footnote in “Files and directories” 2019-04-11 19:34:27 +00:00
Sébastien Helleu f701caf5bb doc: fix styles in user guide and plugin API reference 2019-04-11 20:56:35 +02:00
Sébastien Helleu 5440c9d91c doc: update German auto-generated file 2019-04-07 10:22:31 +02:00
Nils Görs 1f170bd7f3 core: update German translations 2019-04-06 22:15:58 +02:00
Sébastien Helleu a84c32cf30 xfer: add option xfer.network.speed_limit_recv (closes #269)
For consistency, the option xfer.network.speed_limit has been renamed to
xfer.network.speed_limit_send.
2019-04-06 14:11:07 +02:00
Sébastien Helleu 6ebd97cc63 core: fix typos in README 2019-04-04 20:50:49 +02:00
Sébastien Helleu f8d5776ec9 core: add links to Mastodon and Twitter in README 2019-04-04 20:49:23 +02:00
Sébastien Helleu a34233d54b core: remove link to Google+ in README 2019-04-04 20:49:06 +02:00
Nils Görs 544d006fb7 core: update German translations 2019-04-02 22:08:58 +02:00
Sébastien Helleu 6fa4494aae tests: add test with multiple wildcards in call to function string_match 2019-04-01 00:18:21 +02:00
Sébastien Helleu 5d02ff9a6d tests: add tests on function util_signal_search 2019-04-01 00:15:25 +02:00
Sébastien Helleu d2571ab53b tests: add tests on util_timeval functions 2019-04-01 00:07:32 +02:00
Sébastien Helleu 709334eede tests: add tests on function util_parse_delay with unit "ms" (milliseconds) 2019-04-01 00:02:49 +02:00
Sébastien Helleu 5f1b2722c8 doc: update Japanese auto-generated files 2019-03-31 23:54:50 +02:00
Sébastien Helleu 413aa499cc core: add documentation on command line debug options (in --help and man pages)
Command line debug options are now documented:

* --no-dlclose: do not call the function dlclose after plugins are unloaded
* --no-gnutls: do not call the init and deinit functions of GnuTLS library
* --no-gcrypt: do not call the init and deinit functions of Gcrypt library

These options must not be used in production, they're for debug only and can be
used with tools like Valgrind or electric-fence.
2019-03-31 23:53:54 +02:00
Sébastien Helleu c469f30be5 doc: fix generation of man page weechat-headless with autotools 2019-03-31 23:51:28 +02:00
Sébastien Helleu 5980a4deb8 Merge pull request #1328 from l/master/translation/ja_JP
core: update Japanese translations
2019-03-31 23:46:27 +02:00
AYANOKOUZI, Ryuunosuke 80becc9a29 core: update Japanese translations 2019-04-01 09:00:00 +09:00
Sébastien Helleu c77bffaa52 doc: update German auto-generated file 2019-03-29 23:27:45 +01:00
Sébastien Helleu dad451af34 core: send code coverage only with gcc, not with clang 2019-03-29 23:17:27 +01:00
Sébastien Helleu 3f80ae0ee8 core: add codecov badge 2019-03-29 23:17:09 +01:00
Sébastien Helleu d91954490f core: move coverage.info in parent directory 2019-03-29 23:01:27 +01:00
Sébastien Helleu 56d6b510e6 core: move upload of code coverage from build-test.sh to .travis.yml 2019-03-29 22:53:26 +01:00
Sébastien Helleu 33cefb7daa core: fix upload of code coverage to codecov.io 2019-03-29 22:46:13 +01:00
Sébastien Helleu 3e22bc116b core: upload code coverage on codecov.io in Travis CI 2019-03-29 22:37:03 +01:00
Nils Görs 4df26f391d core: update German translations 2019-03-29 22:34:33 +01:00
Sébastien Helleu b97fc2bd0f core: don't execute command scheduled by /repeat if the buffer does not exist any more 2019-03-29 20:42:00 +01:00
Sébastien Helleu 2571d17cb9 core: don't execute command scheduled by /wait if the buffer does not exist any more 2019-03-29 20:37:18 +01:00
Sébastien Helleu f1d18f4c26 core: use seconds by default in /repeat interval, allow unit for the interval 2019-03-29 20:31:19 +01:00
Sébastien Helleu fa5b1eed77 core: move parsing of /wait delay in a separate function, with unit tests 2019-03-29 20:17:26 +01:00
Sébastien Helleu b3cf270d1d core: allow text in addition to a command in command /repeat 2019-03-29 08:37:57 +01:00
Sébastien Helleu 8251f1fd13 core: update ChangeLog 2019-03-28 22:18:16 +01:00
Sébastien Helleu da43e95c75 relay: use option "delay" in call to command_options (closes #1327)
This fixes a crash when sending "/plugin reload relay" from a relay client.
2019-03-28 22:07:25 +01:00
Sébastien Helleu 4e9e5f2652 api: add option "delay" in hashtable options of function command_options (issue #1327) 2019-03-28 22:07:04 +01:00
Sébastien Helleu 2f37de9148 core: make "input_commands_allowed" work with /wait and /repeat commands (issue #928) 2019-03-28 18:45:22 +01:00
Sébastien Helleu 9b4fa10923 core: set CMake minimum version required to 3.0
This is required for add_library() with INTERFACE library type.
2019-03-25 08:52:53 +01:00
Sébastien Helleu c713a0e475 tests: fix scripting API tests on 32-bit arch
The problem is that on 32-bit arch (like GNU/Hurd), the number 42000000000000
is converted to 42000000000000L in Python, which is causing troubles in other
languages like Perl.

The fix is to use a smaller number. Such large size for function
string_format_size is tested in the C++ test suite anyway.
2019-03-25 00:18:55 +01:00
Sébastien Helleu b04d8934ee tests: fix style in CMake file 2019-03-24 13:43:19 +01:00
Sébastien Helleu 96d3a3834c doc: improve description of CMake option ENABLE_PYTHON3 in user's guide 2019-03-24 09:38:43 +01:00
Sébastien Helleu 429fafd42f doc: fix typo Gnutls -> GnuTLS in user's guide 2019-03-24 09:38:43 +01:00
Sébastien Helleu 6c41e627cd doc: fix description of man/doc CMake options in user's guide 2019-03-24 09:38:43 +01:00
Sébastien Helleu 2612adf899 core: add CMake option "ENABLE_CODE_COVERAGE" to compile with code coverage options
This option is OFF by default and should be enabled only for tests, to measure
test coverage.
2019-03-24 09:38:43 +01:00
Sébastien Helleu 47c4329404 debian: update changelog 2019-03-23 22:15:18 +01:00
Sébastien Helleu ecfe6756f8 core: switch from Ubuntu Trusty to Xenial in Travis CI 2019-03-23 22:00:26 +01:00
Sébastien Helleu e68754aafe lua: add detection of Lua 5.3 with autotools 2019-03-23 22:00:03 +01:00
Sébastien Helleu 34bf68d38e tests: remove extra output before/after tests 2019-03-23 20:08:17 +01:00
Sébastien Helleu ff32112396 irc: fix length of string for SHA-512, SHA-256 and SHA-1 in help on ssl_fingerprint option 2019-03-21 23:36:24 +01:00
Sébastien Helleu 2da148eb55 core: add Haiku as supported platform in README 2019-03-21 22:02:31 +01:00
Nils Görs 21e227020f core: update German translations 2019-03-19 23:18:33 +01:00
Sébastien Helleu bb017b2613 irc: display an error with /allchan -current or /allpv -current if the current buffer is not an irc buffer (closes #1325) 2019-03-19 20:37:06 +01:00
Sébastien Helleu 766bea3f9e tests: remove value for first #define in headers 2019-03-19 20:33:30 +01:00
Sébastien Helleu c4bf528b4e php: remove value for first #define in headers 2019-03-19 20:33:16 +01:00
Sébastien Helleu 8f79b1c0fc doc: add missing keys Ctrl+F1 and Ctrl+F2 for buflist (FAQ) 2019-03-19 20:32:27 +01:00
Sébastien Helleu f6c5061590 irc: fix update of channels modes with arguments when joining a channel (closes #1324) 2019-03-18 20:39:42 +01:00
Sébastien Helleu 1ef7a55e72 core: fix typo: Weechat -> WeeChat 2019-03-17 18:34:21 +01:00
Sébastien Helleu 3ee87bcfce core: fix description of Cygwin "weechat" package 2019-03-17 18:12:54 +01:00
Sébastien Helleu 58f4c37a63 core: fix version numbering scheme in cygport file 2019-03-17 14:40:36 +01:00
Sébastien Helleu 413221bc9e doc: update German auto-generated file 2019-03-12 22:58:54 +01:00
Nils Görs 840c815bb0 Merge branch 'master' of github.com:weechat/weechat 2019-03-12 22:43:03 +01:00
Nils Görs 27f33624bd core: update German translations 2019-03-12 22:42:39 +01:00
Sébastien Helleu 78cabc2e06 relay: fix compilation warning when gnutls is not found 2019-03-12 22:26:55 +01:00
Sébastien Helleu 5c2c19c0cd irc: fix compilation warning when gnutls is not found 2019-03-12 22:26:28 +01:00
Sébastien Helleu 99e48d7fa3 core: set max length to 4096 for /secure passphrase (closes #1323) 2019-03-12 21:30:01 +01:00
Sébastien Helleu bc6c1f274c core: improve message displayed when a command is not allowed (issue #928)
The whole command with arguments and the full buffer name are now displayed in
the warning message (in debug mode only).
2019-03-11 21:12:40 +01:00
Sébastien Helleu 92e176ab89 relay: use empty value by default for option relay.weechat.commands (issue #928)
The relay client is supposed to be safe by default, and the relay connection
should be protected by the different ways (restriction on IP address, SSL,
strong password, Time-based One-Time Password, local bind address and use of
SSH tunnel…).

So this option lets the user add extra security by allowing only some
commands (whitelist), or allowing any commands except a list of given
commands (blacklist).
2019-03-11 21:12:23 +01:00
Sébastien Helleu e44c4904c3 relay: add forbidden commands /key and /trigger in weechat protocol (issue #928) 2019-03-10 22:58:50 +01:00
Sébastien Helleu 508f224af9 relay: add forbidden commands /wait and /repeat in weechat protocol (issue #928) 2019-03-10 18:29:22 +01:00
Sébastien Helleu 2b70d71aa1 core: replace argument "keep_eol" by "flags" in function string_split (closes #1322) 2019-03-10 18:29:16 +01:00
Sébastien Helleu 8aa5f5375e core: add value -1 for keep_eol in function string_strip (issue #1322)
The value -1 means it's a standard split, but empty items are kept, and
separators are not removed at beginning/end of string.
2019-03-09 21:56:05 +01:00
Sébastien Helleu 79d0910c08 doc: update German auto-generated file 2019-03-09 20:51:31 +01:00
Nils Görs b925ed5950 core: update German translations 2019-03-09 19:34:40 +01:00
Sébastien Helleu dd44c1db16 relay: add extra forbidden commands in weechat protocol (issue #928)
Commands were already forbidden (option relay.weechat.commands):

- /exec
- /upgrade
- /quit

These extra commands are now forbidden by default:

- /fset
- /set
- /unset
- /plugin
- /script
- /python
- /perl
- /ruby
- /lua
- /tcl
- /guile
- /javascript
- /php
- /secure
2019-03-09 17:54:06 +01:00
Sébastien Helleu 2f5aa3b509 core: use bitwise shift operator to define flag constants 2019-03-02 11:09:52 +01:00
Sébastien Helleu 76290729b7 core: add contributor in AUTHORS.adoc (issue #1319) 2019-03-01 07:42:32 +01:00
Sébastien Helleu b9044f5ca1 core: update ChangeLog (issue #1319) 2019-03-01 07:41:24 +01:00
Sébastien Helleu 7b43d2fe43 Merge pull request #1319 from phy1729/quote-nick
irc: quote argument to NICK
2019-03-01 07:40:42 +01:00
Matthew Martin 77a9322bbf irc: quote argument to NICK 2019-02-28 18:55:26 -06:00
Nils Görs 6a0e9818a9 core: update German translations 2019-02-28 21:41:09 +01:00
Sébastien Helleu 791406f26f doc: fix typo in FAQ 2019-02-28 21:38:05 +01:00
Sébastien Helleu c91e47c414 script: use SHA-512 instead of MD5 for script checksum
Related to weechat/weechat.org@66a8b72ab1
2019-02-28 20:55:10 +01:00
Sébastien Helleu d290de2cba relay: add option relay.weechat.commands (closes #928) 2019-02-28 20:24:25 +01:00
Sébastien Helleu 80b980b2af api: add function command_options (issue #928) 2019-02-28 20:19:18 +01:00
Sébastien Helleu 64043d5a6c php: fix memory leak in functions using hashtable parameters
Functions fixed in PHP plugin:

- string_eval_expression
- string_eval_path_home
- key_bind
- hook_process_hashtable
- hook_hsignal_send
- info_get_hashtable
- hdata_update
2019-02-27 07:51:02 +01:00
Sébastien Helleu c079cc124e doc: fix typo in plugin API reference 2019-02-27 07:46:33 +01:00
Sébastien Helleu 55501b84d6 core: remove function gui_buffer_match_list_split, use function string_match_list 2019-02-27 07:46:29 +01:00
Sébastien Helleu 17a218e6b6 core: use function string_match_list for the autoload of plugins 2019-02-27 07:46:26 +01:00
Sébastien Helleu c2859096cb api: add function string_match_list 2019-02-27 07:46:22 +01:00
Sébastien Helleu e473161c9f core: remove parentheses after function names in ChangeLog 2019-02-26 20:02:21 +01:00
Sébastien Helleu e6850dcf9e Merge pull request #1318 from arza-zara/typos
fset: fix typo in /help fset.format.option2
2019-02-26 19:55:16 +01:00
arza 2af3157dc2 fset: fix typo in /help fset.format.option2 2019-02-26 19:33:03 +02:00
Sébastien Helleu a10769f0f8 doc: move spell chapter after scripts in user's guide 2019-02-26 08:01:42 +01:00
Sébastien Helleu 4ef149b591 core: clarify changes on option weechat.completion.nick_completer in release notes 2019-02-25 18:49:46 +01:00
Sébastien Helleu f1d30dc0b1 core: fix alignment of images in README 2019-02-24 17:03:01 +01:00
Sébastien Helleu a817327b0e core: add WeeChat logo in README 2019-02-24 16:14:57 +01:00
Sébastien Helleu 471f9c61da relay: remove obsolete comment 2019-02-24 16:13:04 +01:00
Sébastien Helleu 466268d5ef doc: update German auto-generated files 2019-02-24 10:03:30 +01:00
Nils Görs 485f5d3e87 core: update German translations 2019-02-23 23:25:22 +01:00
Sébastien Helleu 8eb24f4338 core: update ChangeLog (issue #1055, issue #1312) 2019-02-23 13:41:49 +01:00
Sébastien Helleu 4a13e1ac7e core: update translations (issue #1055, issue #1312) 2019-02-23 13:40:23 +01:00
Simmo Saan c84ac65954 core: add /filter addreplace (closes #1055) 2019-02-23 13:37:46 +01:00
Sébastien Helleu 525417c2c6 core: update ChangeLog (issue #1309, issue #1311) 2019-02-23 11:23:14 +01:00
Sébastien Helleu 68b56291f9 core: merge two comments in a single one (issue #1309, issue #1311) 2019-02-23 11:22:58 +01:00
Sébastien Helleu 7b79fbbd09 Merge remote-tracking branch 'origin/pr/1311' 2019-02-23 11:17:02 +01:00
Sébastien Helleu bdc905df16 core: replace "Desired behavior" by "Expected behavior" in bug report template 2019-02-22 21:46:24 +01:00
Sébastien Helleu baa598276c fset: fix slow refresh of fset buffer during /reload (closes #1313) 2019-02-22 21:33:39 +01:00
Sébastien Helleu 355843b27a core: move "Current behavior" after "Steps to reproduce" in bug report template 2019-02-22 21:00:55 +01:00
Simmo Saan 8ac4a75969 gui: fix use after free bug in /filter del (issue #1309)
Deleting (freeing) a filter also frees its buffers, so refilter must
happen before freeing. Disabling the filter temporarily fixes the bug.

This fix disables the filter before filter_removing signal, though.
2019-02-21 16:15:58 +02:00
Simmo Saan 91936ff583 gui: only refilter affected buffers on filter change (closes #1309) 2019-02-21 16:03:15 +02:00
Sébastien Helleu 33581dd1a7 doc: update German auto-generated files 2019-02-20 08:40:34 +01:00
Nils Görs d2ac854bfa core: update German translations 2019-02-20 08:36:58 +01:00
Nils Görs dd8969413d core: update German translations 2019-02-20 08:25:50 +01:00
Sébastien Helleu 21c02a0378 core: add command to change key alt+s in release notes 2019-02-19 22:42:11 +01:00
Sébastien Helleu 8344f0addc core: add command /spell and default key alt+s in release notes 2019-02-19 22:40:11 +01:00
Sébastien Helleu 7b0507bb47 core: add reason of aspell renaming in release notes 2019-02-19 22:35:08 +01:00
Sébastien Helleu cccd4f07e5 core: add extra instructions about spell plugin in release notes 2019-02-19 22:04:17 +01:00
Sébastien Helleu 3368557cc7 core: update translations (issue #1299) 2019-02-19 21:38:53 +01:00
Sébastien Helleu 27481df277 core: force new API version to prevent the old aspell plugin to load (issue #1299) 2019-02-19 21:21:20 +01:00
Sébastien Helleu 57aa9e060e spell: rename "aspell" plugin to "spell" (issue #1299)
The following things have been renamed:

- file aspell.conf -> spell.conf
- options aspell.* -> spell.*
- bar item aspell_dict -> spell_dict
- bar item and local variable aspell_suggest -> spell_suggest
- info aspell_dict -> spell_dict
2019-02-19 21:15:56 +01:00
Sébastien Helleu e8159298ad core: update ChangeLog (issue #1306, issue #1307) 2019-02-19 20:41:34 +01:00
Sébastien Helleu 9985af8b5d Merge remote-tracking branch 'origin/pr/1307' 2019-02-19 20:38:14 +01:00
Sébastien Helleu 6a9937f08a core: fix compilation on Mac OS (closes #1308)
This adds the missing include "unistd.h" for function "mkdtemp" (required on
Mac OS only).
2019-02-18 19:28:20 +01:00
Simmo Saan 62dfe2ac63 aspell: optimize stripping of nick_completer (issue #1306) 2019-02-18 11:48:48 +02:00
Simmo Saan d512cc324a aspell: strip trailing spaces from nick_completer (closes #1306) 2019-02-18 11:19:42 +02:00
Sébastien Helleu 0a6172c128 Version 2.5-dev 2019-02-17 08:46:20 +01:00
Sébastien Helleu ff6ae69c3f Version 2.4 2019-02-17 08:20:07 +01:00
Sébastien Helleu c76b6c024e core: add contributor in AUTHORS.adoc (issue #1304) 2019-02-16 08:27:30 +01:00
Sébastien Helleu 46a5e1d291 Merge pull request #1304 from ZethJack/patch-1
Fix czech translation kick message
2019-02-16 08:24:23 +01:00
ZethJack 4d4b254d7a Fix czech translation kick message
original: <op> byl vykopnut <user> results in confusing message caused by mistranslation: op was kicked user
proposed fix: <op> vykopnul <user> should result in more understandeable message: op has kicked user
2019-02-15 11:09:01 +01:00
Sébastien Helleu 7d4da3f9e4 doc: update Polish auto-generated files 2019-02-09 21:38:34 +01:00
Krzysztof Korościk 7caaf255b4 updated polish translation 2019-02-09 21:00:59 +01:00
Krzysztof Korościk c2a94d93c5 doc: updated polish translation 2019-02-09 19:50:01 +01:00
Sébastien Helleu 5adf94ffbe Version 2.4-rc1 2019-02-04 20:48:41 +01:00
Sébastien Helleu 87932bcb57 irc: fix parsing of whois messages in notify 2019-02-04 20:47:59 +01:00
Sébastien Helleu a511771802 core: update translations 2019-02-03 19:02:40 +01:00
Sébastien Helleu 4c05648faf Merge pull request #1301 from arza-zara/typos
Fix typo "part or words" -> "part of words"
2019-02-03 19:00:11 +01:00
arza 54c7afa6e2 Fix typo "part or words" -> "part of words" 2019-02-03 19:32:09 +02:00
Sébastien Helleu 82da8a79c4 Merge pull request #1300 from l/master/translation/ja_JP
core: update Japanese translations
2019-02-03 13:42:08 +01:00
AYANOKOUZI, Ryuunosuke c4c4f4d1ef core: update Japanese translations 2019-02-03 09:00:00 +09:00
Sébastien Helleu 5d43b5b80f core: add "travis_retry" on commands that can fail due to network error (Travis CI) 2019-01-31 21:42:07 +01:00
Sébastien Helleu 6932810c70 doc: remove obsolete note about gcrypt in chapter on IRC SASL authentication (user's guide) 2019-01-31 21:34:02 +01:00
Sébastien Helleu 6e09499163 irc: fix crash in parsing of IRC channel modes (issue #1296, closes #1297)
Regression was introduced by commit b38b2abe3b.
2019-01-31 21:13:58 +01:00
Sébastien Helleu b38b2abe3b irc: fix parsing of MODE, 341 (invite) and CHGHOST commands when there are colons (closes #1296) 2019-01-29 21:10:49 +01:00
Sébastien Helleu c869aa3809 relay: fix crash on /upgrade when the real IP is not set (closes #1294) 2019-01-28 20:37:38 +01:00
Nils Görs 50415dfbb7 doc: update German documentation 2019-01-27 15:00:29 +01:00
Sébastien Helleu b955b19388 doc: add example with command "/input set_unread" in question about terminal focus (issue #1295) 2019-01-27 13:23:20 +01:00
Sébastien Helleu 7e547ee70b aspell: look for suggestions only if the misspelled word has changed (closes #1175) 2019-01-27 10:33:12 +01:00
Nils Görs 68bdc5fb09 aspell: set a misspelled word without suggestions in local variable "aspell_suggest" (closes #1288) 2019-01-26 22:38:22 +01:00
Sébastien Helleu 5a681f3c5e core: fix sentence in release notes 2019-01-26 15:34:56 +01:00
Sébastien Helleu 1a34f87163 core: do not automatically add a space when completing "nick:" at the beginning of command line
The space can be added in option weechat.completion.nick_completer
(this is now the default value of the option):

  /set weechat.completion.nick_completer ": "
2019-01-26 14:54:57 +01:00
Sébastien Helleu 4d9fd4c4aa core: fix compilation of empty regular expression (not allowed on FreeBSD) 2019-01-26 10:21:39 +01:00
Sébastien Helleu 6d217ca8c5 doc: fix regex examples to be compatible with FreeBSD
The following special sequences are not supported in regular expressions on
FreeBSD:

- "\w": replaced with "[a-zA-Z0-9_]"
- "\S": replaced with "[^ ]" (it should be "[^ \t\n\r\f\v]", but in practice
  only spaces could be a problem when we use this sequence).
2019-01-26 10:15:35 +01:00
Sébastien Helleu 73a4901fe1 tests: fix evaluation tests on FreeBSD
The following special sequences are not supported in regular expressions on
FreeBSD:

- "\w": replaced with "[a-zA-Z0-9_]"
- "\S": replaced with "[^ ]" (it should be "[^ \t\n\r\f\v]", but in practice
  only spaces could be a problem when we use this sequence).
2019-01-26 10:00:47 +01:00
Sébastien Helleu 507dfec781 tests: fix UTF-8 tests on FreeBSD
Tests for size on screen are made on U+2EE9 (CJK Radical Simplified Yellow)
instead of U+24B62 (CJK Unified Ideograph-24B62) which returns a length of 1 on
FreeBSD and 2 on Linux.
2019-01-26 09:57:30 +01:00
Sébastien Helleu 7e0da4b68a script: add missing input actions "A" and "v" in /help script 2019-01-20 20:13:54 +01:00
Sébastien Helleu eb0828ec6c tests: fix link of tests on GNU Hurd and FreeBSD 2019-01-20 16:53:00 +01:00
Sébastien Helleu 142d312ad7 tests: add missing include of stdio.h 2019-01-20 15:59:04 +01:00
Sébastien Helleu 98249ada86 tests: add tests on IRC color functions
Functions tested:

- irc_color_decode
- irc_color_encode
- irc_color_decode_ansi
2019-01-20 15:17:21 +01:00
Sébastien Helleu fec7d38e3d irc: return IRC color code instead of WeeChat color code when decoding a too short ANSI color sequence 2019-01-20 15:07:21 +01:00
Sébastien Helleu 85ee15d4e2 irc: fix encoding of italic attribute when colors are removed 2019-01-20 15:04:52 +01:00
Sébastien Helleu ada2994062 buflist: add alternate key codes for alt-F1/alt-F2 (xterm) 2019-01-20 01:33:47 +01:00
Sébastien Helleu a199d243ca buflist: fix typo on key code for ctrl-F2 2019-01-20 01:32:09 +01:00
Sébastien Helleu e847068a3c buflist: add default keys ctrl-F1/F2 to scroll up/down one page in buflist (same action as F1/F2) 2019-01-20 01:29:33 +01:00
Sébastien Helleu 9d6ebeda0d core: add default keys ctrl-F11/F12 to scroll up/down one page in nicklist (same action as F11/F12) 2019-01-20 01:29:28 +01:00
Sébastien Helleu 09a124c226 buflist: add alternate key codes for F1/F2 and alt-F1/alt-F2 (compatibility with terminals) 2019-01-20 01:09:26 +01:00
Sébastien Helleu 7d442f8492 irc: fix compiler warning on GNU Hurd
This fixes the following warning:

irc-ctcp.c:411:46: warning: '%s' directive output may be truncated writing up
to 1023 bytes into a region of size between 0 and 1023 [-Wformat-truncation=]
2019-01-13 20:14:11 +01:00
Sébastien Helleu a294b791a8 doc: add missing file test-irc-protocol.cpp in developer's guide 2019-01-13 20:13:30 +01:00
Sébastien Helleu 4fab6dcd05 irc: do not use strptime to parse a time as float number (issue #1289) 2019-01-13 15:25:22 +01:00
Sébastien Helleu 1b26d0608f core: update ChangeLog 2019-01-13 14:48:16 +01:00
Sébastien Helleu 34a6fce134 tests: add tests on function irc_protocol_parse_time 2019-01-13 14:47:35 +01:00
Sébastien Helleu 6343924c16 irc: check return code of calls to strptime (issue #1289) 2019-01-13 14:46:43 +01:00
Nils Görs 1dae5827c6 doc: update German documentation 2019-01-12 22:36:57 +01:00
Sébastien Helleu 0fe6adb269 doc: add question about autojoin option in FAQ (closes #1287) 2019-01-12 21:49:57 +01:00
Sébastien Helleu 8009094717 irc: fix parsing of "time" message tag on FreeBSD (issue #1289) 2019-01-11 22:40:06 +01:00
Sébastien Helleu c96e2f3593 tests: add tests on function irc_config_check_autojoin 2019-01-11 22:27:28 +01:00
Sébastien Helleu 8629bf4b06 debian: switch debhelper compatibility to 12 2019-01-08 22:07:10 +01:00
Sébastien Helleu f8df26f57f debian: bump Standards-Version to 4.3.0 2019-01-08 21:57:31 +01:00
Sébastien Helleu 2b0057239b core: update copyright dates 2019-01-01 15:40:51 +01:00
Sébastien Helleu 169a84384c core: remove obsolete directory from .gitattributes 2018-12-24 15:57:29 +01:00
Sébastien Helleu 4912c46593 doc: update German auto-generated file 2018-12-22 11:03:55 +01:00
Nils Görs b3b58f89a4 core: update German translations 2018-12-22 10:19:49 +01:00
Sébastien Helleu f3db256ce4 core: add note about option sec.crypt.passphrase_file in /help secure (issue #1286) 2018-12-22 09:37:25 +01:00
Sébastien Helleu 237bf80920 doc: update German auto-generated files 2018-12-14 07:31:57 +01:00
Nils Görs cf5aaec3be core: update German translations 2018-12-13 22:38:26 +01:00
Sébastien Helleu d9849b4efe doc: add example of aspell dict for all channels of an IRC server (user's guide) (closes #1284) 2018-12-13 21:24:12 +01:00
Sébastien Helleu c214ca603f doc: update Japanese auto-generated files 2018-12-09 17:06:04 +01:00
Sébastien Helleu 1cd0fb4882 Merge pull request #1283 from l/master/translation/ja_JP
core: update Japanese translations
2018-12-09 17:04:51 +01:00
AYANOKOUZI, Ryuunosuke 8964e994c6 core: update Japanese translations 2018-12-09 09:00:00 +09:00
Sébastien Helleu 4034d07d5a core: use https for links in comments 2018-12-01 08:21:49 +01:00
Nils Görs 89f1f61458 doc: update German documentation 2018-11-30 07:42:25 +01:00
Sébastien Helleu d6e4bbf244 doc: add "WeeChat" term for core command /filter (FAQ) 2018-11-29 23:19:16 +01:00
Sébastien Helleu 342261d35b core: use https for all links where secured http is supported 2018-11-29 23:18:55 +01:00
Sébastien Helleu 4712d0bb06 core: use https for links to GNU GPL license 2018-11-29 23:16:07 +01:00
Sébastien Helleu d9fbf59c6b core: remove obsolete links to wiki in release notes 2018-11-29 23:15:23 +01:00
Nils Görs f6498c14a0 doc: update German documentation 2018-11-24 18:36:27 +01:00
Sébastien Helleu 4803cd62af doc: translate FAQ changes in other languages (issue #1280) 2018-11-19 21:00:21 +01:00
Filip H.F. "FiXato" Slagter fc0a3ef10a doc: add question "How can I disable highlights for specific nicks?" in FAQ (closes #1280) 2018-11-19 20:59:31 +01:00
Sébastien Helleu d8b2be8f91 doc: update German auto-generated file 2018-11-19 20:11:07 +01:00
Nils Görs 968d4ce2af doc: update German documentation 2018-11-18 14:43:16 +01:00
Nils Görs b08155410d Merge branch 'master' of github.com:weechat/weechat 2018-11-18 12:37:46 +01:00
Sébastien Helleu d26380a9bb core: replace "Mac OS X" and "OS X" by "macOS" (issue #1272) 2018-11-18 11:04:29 +01:00
Sébastien Helleu 3c0f72d48b doc: translate FAQ changes in other languages (issue #1272) 2018-11-18 10:55:39 +01:00
Filip H.F. "FiXato" Slagter d8fe89f7e9 doc: spelling/grammar fixes & documentation links added (FAQ) (closes #1272)
A number of spelling/grammar fixes, some restructured sentences to improve
readability and replacement of previous names for Apple Macintosh's OS with the
current 'macOS' name.

Also added some more references to User's guide documentation sections.

Also clarified that a window can not only display 1 buffer, but also a set of
merged buffers.

Finally, added a version note about the /script command.
2018-11-18 10:52:08 +01:00
Nils Görs 4e9203bb7d core: update German translations 2018-11-17 11:58:28 +01:00
Sébastien Helleu 916d99ad40 exec: add option exec.command.shell to customize the shell used with /exec -sh 2018-11-17 11:39:28 +01:00
Sébastien Helleu c94a8f4c68 exec: fix command displayed in debug message 2018-11-17 11:17:37 +01:00
Nils Görs ba9b087ca3 core: update German translations 2018-11-17 11:05:31 +01:00
Sébastien Helleu af382ffb91 core: add test on some WeeChat command line options on Travis CI 2018-11-17 10:46:12 +01:00
Sébastien Helleu 85d7c9b6c5 core: add command line option "-t" (or "--temp-dir") to create a temporary WeeChat home (deleted on exit) 2018-11-17 10:36:58 +01:00
Sébastien Helleu b480c7e7c0 core: add missing include of time.h in wee-secure.h
This fixes a compilation issue on FreeBSD 11.0.
2018-11-17 00:40:34 +01:00
Sébastien Helleu 1355a26920 doc: update German auto-generated file 2018-11-16 23:04:26 +01:00
Nils Görs ecd26fb678 core: update German translations 2018-11-16 16:26:30 +01:00
Sébastien Helleu 34fd37fa50 core: fix forced highlight on messages sent to other buffers (closes #1277)
The C compiler flag "-fsigned--char" is used to force "char" data type to be
always signed (which is what WeeChat expects).

On ARM systems, char is unsigned by default, which is causing problems when
WeeChat stores -1 in the notify_level (type: char).
2018-11-14 22:23:34 +01:00
Sébastien Helleu 638ed2ecf5 core: fix C++ compiler flags (cmake) 2018-11-14 22:06:35 +01:00
Sébastien Helleu 88adc5d703 doc: add missing variable "pointer" to make C compiler really happy (plugin API reference) 2018-11-13 20:48:04 +01:00
Sébastien Helleu b2d9b2f0ba doc: fix name of compiled plugin example (plugin API reference) 2018-11-13 20:43:26 +01:00
Sébastien Helleu 3766beb13e doc: update German auto-generated files 2018-11-12 22:54:56 +01:00
Nils Görs c78f322c9e core: update German translations 2018-11-12 22:44:30 +01:00
Sébastien Helleu 37a0cd0017 core: improve help on option irc.look.server_buffer (closes #1269) 2018-11-12 21:02:25 +01:00
Sébastien Helleu 39abe2fcd9 core: improve help on option weechat.look.nick_color_stop_chars (closes #1268) 2018-11-12 20:57:55 +01:00
Sébastien Helleu de8d640958 relay: add support of close frame in websocket connection (closes #1281) 2018-11-12 20:43:48 +01:00
Sébastien Helleu 594917bff4 core: add fix of memory leak in ChangeLog 2018-11-08 08:42:00 +01:00
Sébastien Helleu 6cdcebed8c buflist: add variable ${number2}, always set with the indented buffer number 2018-11-05 22:21:03 +01:00
Filip H.F. "FiXato" Slagter 5d338fee4e Added documentation links to README 2018-11-04 22:04:39 +01:00
Sébastien Helleu 0285ea785e Merge pull request #1270 from FiXato/patch-1
Make WeeChat screenshots link more descriptive.
2018-11-04 21:57:43 +01:00
Sébastien Helleu 5a132f06fd core: replace ellipses by "etc." (in English) and "etc..." by "etc." in French 2018-11-04 21:53:11 +01:00
Sébastien Helleu dd0b3c5692 core: replace "web site" by "website" 2018-11-04 21:32:35 +01:00
Sébastien Helleu fe586ae662 core: add contributor in AUTHORS.adoc (issue #1273) 2018-11-04 16:55:34 +01:00
Sébastien Helleu ba3d805167 Merge pull request #1273 from half-duplex/master
Fix regex in relay.network.allowed_ips doc
2018-11-04 16:46:11 +01:00
Sébastien Helleu d8ad7e6a8d tests: add missing file test-secure.cpp in autotools 2018-11-04 15:03:54 +01:00
Sébastien Helleu cb73c168b5 core: update translations 2018-11-04 14:50:53 +01:00
Sébastien Helleu dc7d99fa73 core: improve description of infos "totp_generate" and ""totp_validate" 2018-11-04 14:50:53 +01:00
Sébastien Helleu 738535e7f6 relay: add support of Time-based One-Time Password (TOTP) as second authentication factor in weechat protocol 2018-11-04 14:50:53 +01:00
Sébastien Helleu f02fc06dd0 doc: fix styles in relay protocol 2018-11-04 14:50:53 +01:00
Sébastien Helleu ed3f281ba9 api: add functions string_base_{encode,decode}, remove functions string_{encode,decode}_base64 2018-11-04 14:49:11 +01:00
Sébastien Helleu a8b6fa08b7 core: split plugin-api.c into 2 files (API wrappers and infos/infolists) 2018-11-03 23:01:46 +01:00
Sébastien Helleu 6d72868e15 api: return integer in function string_encode_base16 2018-11-02 14:20:16 +01:00
Sébastien Helleu 8848b0e22a api: return integer in function string_encode_base64 2018-11-02 14:09:23 +01:00
Sébastien Helleu 74a17d821f tests: add tests on functions secure_encrypt_data and secure_decrypt_data 2018-11-02 14:06:14 +01:00
Sébastien Helleu d0ea801724 core: add support of TOTP generation/validation (Time-based One-Time Password) 2018-11-02 14:06:14 +01:00
Sébastien Helleu 172736989a doc: add missing source files for tests (developer's guide) 2018-10-27 10:55:57 +02:00
Sébastien Helleu 70c2e27110 core: split wee-secure.c into 3 files (secured data functions, buffer and config) 2018-10-27 08:54:10 +02:00
Sébastien Helleu 3f067f2065 buflist: fix warning displayed when script buffers.pl is loaded (closes #1274) 2018-10-27 08:52:20 +02:00
Sébastien Helleu a6a90aebff doc: add commands to update .po files (developer's guide) 2018-10-25 08:00:14 +02:00
Trevor Bergeron 9121e5812c Fix regex in relay allowed_ips doc 2018-10-23 00:33:01 -04:00
Filip H.F. "FiXato" Slagter c2a2146ad8 Make WeeChat screenshots link more descriptive.
Restructured sentence to avoid using self-non-descriptive 'this page' anchors.
2018-10-23 02:34:56 +02:00
Sébastien Helleu 99ae73066c Version 2.4-dev 2018-10-21 12:53:37 +02:00
Sébastien Helleu 6620f40efa Version 2.3 2018-10-21 11:12:41 +02:00
Sébastien Helleu 438313d331 core: replace call to strncpy by memcpy
This fixes a gcc warning: "warning: ‘strncpy’ output truncated before
terminating nul copying as many bytes from a string as its length
[-Wstringop-truncation]".
2018-10-21 08:54:04 +02:00
Sébastien Helleu eb77c78dad irc: fix uninitialized variables in function irc_protocol_cap_sync 2018-10-21 08:53:22 +02:00
Sébastien Helleu 1a3bd49a46 debian: update changelog 2018-10-21 08:30:35 +02:00
Sébastien Helleu e3e4c89b5e debian: fix copyright Format URI 2018-10-21 08:28:50 +02:00
Sébastien Helleu 5bc37eeee3 debian: bump Standards-Version to 4.1.5 2018-10-21 08:22:31 +02:00
Sébastien Helleu 4939e9659f doc: update Polish auto-generated files 2018-10-19 20:24:35 +02:00
Krzysztof Korościk e9be61b133 po: updated polish translation 2018-10-19 20:17:56 +02:00
Krzysztof Korościk 585257196d doc: updated polish translation 2018-10-19 19:46:23 +02:00
Sébastien Helleu e7cb025e68 php: add detection of PHP 7.3 2018-10-16 23:02:13 +02:00
Sébastien Helleu 9bc9b4c86b core: add contributor in AUTHORS.adoc (issue #1267) 2018-10-14 21:05:09 +02:00
Sébastien Helleu f17cee75dc core: update ChangeLog (issue #1267) 2018-10-14 21:03:56 +02:00
Sébastien Helleu c5ccac9e22 Merge pull request #1267 from emkw/master
lua: mkdir API functions should return ERROR on error.
2018-10-14 21:03:24 +02:00
Sébastien Helleu 37da24ca22 doc: update auto-generated files with IRC options 2018-10-14 21:02:03 +02:00
Nils Görs 21b4294f4e core: update German translations 2018-10-14 20:50:03 +02:00
emk 63e2a3dab9 lua: mkdir API functions should return ERROR on error. 2018-10-14 20:39:00 +02:00
Sébastien Helleu d07701dae6 irc: fix colors 14 and 15 in /help irc.color.mirc_remap (closes #1266) 2018-10-14 20:38:14 +02:00
Sébastien Helleu 8d1dcb666a doc: update Japanese auto-generated file 2018-10-14 09:14:48 +02:00
Sébastien Helleu b348479e4c Merge pull request #1265 from l/master/translation/ja_JP
core: update Japanese translations
2018-10-14 09:13:48 +02:00
AYANOKOUZI, Ryuunosuke 85544ca6dd core: update Japanese translations 2018-10-14 09:00:00 +09:00
Sébastien Helleu a3e0c3f0e4 Version 2.3-rc1 2018-10-13 15:57:20 +02:00
Sébastien Helleu 96938d47f1 doc: update German auto-generated file 2018-10-11 21:09:01 +02:00
Nils Görs 72d5274d54 core: update German translations 2018-10-10 19:27:15 +02:00
Sébastien Helleu 8da3458f4c core: add repeat of string in evaluation of expressions with "repeat:count,string" (closes #958) 2018-10-09 21:12:02 +02:00
Sébastien Helleu 82697714e1 core: fix evaluation of nested ternary operators (closes #1263) 2018-10-08 22:51:08 +02:00
Sébastien Helleu a774ffd4e8 doc: update German auto-generated file 2018-10-08 21:35:39 +02:00
Nils Görs 7f69fff41e core: update German translations 2018-10-08 21:06:18 +02:00
Sébastien Helleu 102fc6662b code: fix issue in docgen.py with hashlib and Python 3 2018-10-06 09:58:22 +02:00
Sébastien Helleu e6e46bcae6 core: update ChangeLog (issue #1259) 2018-10-06 07:13:23 +02:00
Sébastien Helleu 40a87970e1 core: update translations 2018-10-06 07:12:21 +02:00
Sébastien Helleu 5173e19ff3 core: fix style 2018-10-06 07:10:36 +02:00
Sébastien Helleu e688fa4daa Merge remote-tracking branch 'origin/pr/1259' 2018-10-06 07:07:35 +02:00
Sébastien Helleu 5c766317df core: update WeeChat URL in debian NEWS file 2018-10-03 21:39:29 +02:00
Sébastien Helleu 30121ff9df aspell: remove useless test on max_suggestions 2018-10-01 23:00:05 +02:00
Sébastien Helleu ecdbaef288 relay: remove useless test on length 2018-10-01 22:59:05 +02:00
Sébastien Helleu 4b58ea37c0 relay: remove useless test on num_sent 2018-10-01 22:58:25 +02:00
Sébastien Helleu fc63620f1e irc: remove useless test on argc 2018-10-01 22:58:13 +02:00
Sébastien Helleu fb3ca3caae core: fix format of variables in printf-like functions (from int to long and long long) 2018-10-01 22:57:13 +02:00
Sébastien Helleu d6d8b9094f irc: replace call to gmtime by gmtime_r 2018-10-01 22:22:06 +02:00
Sébastien Helleu 56daba869e core: replace call to gmtime by gmtime_r 2018-10-01 22:21:56 +02:00
Sébastien Helleu 50567b0f64 core: add missing argument in call to log_printf 2018-10-01 22:21:43 +02:00
Sébastien Helleu 8abd05fe3d core: replace "long unsigned int" by "unsigned long" 2018-10-01 22:21:25 +02:00
Sébastien Helleu b7f3ba69e1 doc: update Japanese auto-generated file 2018-09-30 10:01:41 +02:00
Sébastien Helleu e28cb00106 relay: add real IP in client description (closes #1256) 2018-09-30 09:59:45 +02:00
Sébastien Helleu 0f782166e2 Merge pull request #1255 from l/master/translation/ja_JP
core: update Japanese translations
2018-09-30 09:01:19 +02:00
AYANOKOUZI, Ryuunosuke 9c96ce825b core: update Japanese translations 2018-09-30 09:00:00 +09:00
Sébastien Helleu eec2e37d20 doc: update German auto-generated file 2018-09-24 23:55:03 +02:00
Nils Görs 6bb0130e7b core: update German translations 2018-09-24 22:28:24 +02:00
Sébastien Helleu ff66a8a161 logger: add more info about log levels in /help logger (closes #1254) 2018-09-24 19:05:46 +02:00
Sébastien Helleu 7b3ec510ca logger: move logger command into a separate source file 2018-09-24 19:05:21 +02:00
Sébastien Helleu 4f0a64cc8b Merge pull request #1251 from l/master/translation/ja_JP
core: update Japanese translations
2018-09-22 08:48:34 +02:00
AYANOKOUZI, Ryuunosuke 4cf86af506 core: update Japanese translations 2018-09-22 09:00:00 +09:00
Sébastien Helleu ce9bcadaa8 doc: update German auto-generated file 2018-09-20 22:32:08 +02:00
Nils Görs a7a04783d4 doc: update German documentation 2018-09-20 21:20:01 +02:00
Sébastien Helleu 126b7d4433 core: update translations 2018-09-20 21:05:26 +02:00
Sébastien Helleu 93b5e60441 irc: display a warning when the value of option irc.server.xxx.autojoin is set to an invalid value 2018-09-20 20:32:47 +02:00
Sébastien Helleu 65f1c82a87 core: allow multiple arguments in command /buffer close 2018-09-18 21:27:44 +02:00
Simmo Saan 54cd82e4a4 core: allow specifying buffer number/name for /buffer localvar 2018-09-09 19:42:31 +03:00
Sébastien Helleu 7b8faf6d97 relay: fix URL to the page with remote interfaces in /help relay 2018-09-09 10:07:16 +02:00
Sébastien Helleu 1ff9d1f52a core: add missing slash at the end of weechat.org URLs 2018-09-09 10:00:53 +02:00
Nils Görs 952640e88c core: update German translations 2018-09-06 22:26:38 +02:00
Sébastien Helleu fcf7469d76 core: allow multiple options "-r" ("--run-command") in command line arguments (closes #1248) 2018-09-06 21:52:02 +02:00
Sébastien Helleu 8945e70f81 doc: add question about aspell dictionaries in FAQ 2018-09-06 21:22:50 +02:00
Sébastien Helleu f0d0612a33 doc: add missing comma in example of function config_new_option (plugin API reference) 2018-09-01 08:14:42 +02:00
Sébastien Helleu 796859b873 core: fix copyright dates 2018-09-01 08:13:12 +02:00
Sébastien Helleu 533dbf972d core: rename variable "plugin_blacklisted" to "plugin_forbidden" 2018-08-30 22:10:46 +02:00
Sébastien Helleu 1d85ff0f8d doc: fix hdata example (relay protocol) (closes #1242) 2018-08-30 22:08:55 +02:00
Nils Görs a9e84bfc52 core: update German translations 2018-08-20 20:40:40 +02:00
Sébastien Helleu b53045281e doc: update Japanese auto-generated file 2018-08-19 19:58:24 +02:00
Sébastien Helleu f4dbc060b8 Merge pull request #1234 from l/master/translation/ja_JP
core: update Japanese translations
2018-08-19 19:57:45 +02:00
AYANOKOUZI, Ryuunosuke 1495ecf6d0 core: update Japanese translations 2018-08-19 09:00:00 +09:00
Sébastien Helleu 6bf0dfddd6 core: fix evaluation of condition when the left operand is an empty string 2018-08-18 15:30:16 +02:00
Sébastien Helleu 97ad48e317 core: fix typo in release notes 2018-08-18 11:05:26 +02:00
Sébastien Helleu 41d5cdd14b core: move "new" info in release notes 2018-08-18 11:01:25 +02:00
Sébastien Helleu 5c9608f05c doc: update German auto-generated file 2018-08-17 21:52:54 +02:00
Nils Görs b4842dd707 Merge branch 'master' of github.com:weechat/weechat 2018-08-17 21:49:00 +02:00
Nils Görs cd5d48fc87 core: update German translations 2018-08-17 21:48:28 +02:00
Sébastien Helleu f4ea802322 doc: fix typo in German user guide 2018-08-17 21:46:39 +02:00
Nils Görs 79f204eeb9 core: update German translations 2018-08-17 20:49:31 +02:00
Sébastien Helleu 466dbbe75b core: add option "-P" (or "--plugins") to customize the plugins to load at startup
If given, the option replaces the option weechat.plugin.autoload.
2018-08-17 19:44:41 +02:00
Sébastien Helleu 822270ccca core: update translations 2018-08-17 19:37:31 +02:00
Sébastien Helleu fad6768318 doc: split list of modifiers into two tables (plugin API reference) 2018-08-17 19:33:46 +02:00
Sébastien Helleu 85681772f0 core: add "line" trigger in ChangeLog 2018-08-17 08:48:09 +02:00
Sébastien Helleu 669aa2741a doc: rename variable "tg_tags" to "tags" in line trigger (user guide) 2018-08-17 08:16:14 +02:00
Sébastien Helleu 968d7ede29 trigger: add variables "tg_prefix_nocolor" and "tg_message_nocolor" in line trigger 2018-08-17 07:59:20 +02:00
Sébastien Helleu e7096810c4 trigger: rename variable "tg_tags" to "tags" in line trigger 2018-08-17 07:43:56 +02:00
Sébastien Helleu 9105c3ba1f trigger: allow creation of temporary variables with the regex 2018-08-16 22:47:47 +02:00
Sébastien Helleu 1a0087a7d7 core: fix string evaluation with regex replacement when the string is empty 2018-08-16 22:45:42 +02:00
Sébastien Helleu ca90f28beb tests: add tests on modifier hook 2018-08-16 18:27:04 +02:00
Sébastien Helleu 6ca2408c99 core: fix weechat_print modifier
All changes:
- always send the Tab char in the weechat_print modifier string
- handle special cases in weechat_print modifier: no prefix (" \t...") or no
  date ("\t\t...")
2018-08-16 18:19:07 +02:00
Sébastien Helleu ec5a5fd73f core: fix use of NULL pointer in command /buffer when the GUI is not yet initialized 2018-08-15 16:24:07 +02:00
Sébastien Helleu f10578b18b core: remove use of pointer "buffer" once the line has been initialized 2018-08-15 16:16:31 +02:00
Sébastien Helleu cfc491f7d1 core: remove unneeded initialization of variable "highlight" 2018-08-15 16:11:27 +02:00
Sébastien Helleu eb64c8d65c irc: add missing initialization of variable "chghost" 2018-08-15 16:02:43 +02:00
Sébastien Helleu 053d432eec doc: update auto-generated files with hdata 2018-08-15 12:36:20 +02:00
Sébastien Helleu 50bedd10b6 core: update translations 2018-08-15 12:36:01 +02:00
Sébastien Helleu cb8b60028b trigger: fix /help trigger 2018-08-15 12:35:42 +02:00
Sébastien Helleu ba820a0172 doc: fix list of variables that can be updated in a hook_line trigger (user guide) 2018-08-15 12:28:15 +02:00
Sébastien Helleu 8c47ca6926 core: add comments in function to print a line 2018-08-15 12:17:42 +02:00
Sébastien Helleu 7b0cced319 core: fix destruction of line prefix in weechat_print modifier 2018-08-15 12:16:52 +02:00
Sébastien Helleu 8e939b089d core: fix comparison of strings in weechat_print modifier 2018-08-15 12:16:06 +02:00
Sébastien Helleu 2f2263afa6 trigger: add missing initialization of variable "tags" in hook line callback 2018-08-15 11:59:26 +02:00
Sébastien Helleu b8ec088fd9 doc: fix typos in plugin API reference 2018-08-15 09:56:18 +02:00
Sébastien Helleu 057f2c3396 tests: properly initialize variable argc before tests on function string_split 2018-08-15 09:43:35 +02:00
Sébastien Helleu cdc7faf93f tests: add test on function string_split with a string having only delimiters 2018-08-15 09:42:59 +02:00
Sébastien Helleu 6d061a9ac0 api: fix memory leak in function string_split 2018-08-15 09:42:43 +02:00
Sébastien Helleu aff752c50b trigger: fix memory leak in hook_line trigger callback 2018-08-15 09:33:25 +02:00
Sébastien Helleu bb8ac59c32 core: fix memory leak when removing a line hook 2018-08-15 09:32:56 +02:00
Sébastien Helleu 51bda896c8 doc: add list of variables that can be updated by type of trigger (user guide) 2018-08-15 09:07:01 +02:00
Sébastien Helleu 66d11b7e46 trigger: add missing values for line trigger 2018-08-15 09:02:58 +02:00
Sébastien Helleu d8c7b3fd5e doc: add more info about line, print and modifier functions for new lines (plugin API reference) 2018-08-15 09:01:55 +02:00
Sébastien Helleu 3bdab1c538 core: fix type of variables "buffer_name" and "buffer_type" sent to the hook_line callback 2018-08-14 14:51:18 +02:00
Sébastien Helleu 49c3e62106 core: split wee-hook.c into multiple sources 2018-08-14 07:15:39 +02:00
Sébastien Helleu 42be1a74a0 api: add function hook_line 2018-08-12 21:45:00 +02:00
Sébastien Helleu 12a6f74ec0 core: fix check of tags in lines
All changes:
- fix check of tags in lines: check lines without tags, fix check of tags with
  negation ("!tag")
- add string functions string_split_tags and string_free_split_tags
- add tests on function gui_line_match_tags
2018-08-12 20:30:13 +02:00
Sébastien Helleu d699ae89aa doc: fix style (relay protocol) 2018-08-12 20:29:26 +02:00
Sébastien Helleu e85bf426c1 doc: add length of field "id" in binary message (relay protocol) (closes #1233) 2018-08-12 20:23:24 +02:00
Sébastien Helleu 48cbf3ad37 doc: add "/msg nickserv set password" in list of commands handled by default trigger "cmd_pass" (user guide) 2018-08-11 09:48:32 +02:00
Sébastien Helleu 737a16b7de doc: fix default conditions of beep trigger (user guide) 2018-08-11 09:38:54 +02:00
Nils Görs 6140aac57f doc: update German documentation 2018-07-29 20:41:17 +02:00
Sébastien Helleu b3fc7c1b1a core: update weechat.org URLs to match latest version of the site 2018-07-29 11:03:24 +02:00
Sébastien Helleu 2047d4f1f7 doc: replace features page with remote interfaces (FAQ) 2018-07-29 10:57:39 +02:00
Sébastien Helleu ac5f26367a core: add contributor in AUTHORS.adoc (issue #1228) 2018-07-28 22:29:19 +02:00
Sébastien Helleu 9b3ec88559 Merge pull request #1228 from Redfoxmoon3/master
don't overwrite user installed GNU auto* files
2018-07-28 22:21:53 +02:00
Ørjan Malde ea4aad0b1d don't overwrite user installed GNU auto* files
autoreconf -f overwrites user installed GNU auto* files like config.sub and config.guess
2018-07-27 21:32:27 +02:00
Sébastien Helleu 9fb8ca649e core: update ChangeLog (issue #1162) 2018-07-27 07:53:17 +02:00
Sébastien Helleu a14973816b Merge pull request #1225 from weechatter/partial_completion
gui: fix uncleared completion item (#1162)
2018-07-27 07:51:36 +02:00
Sébastien Helleu 7d7ca34a41 core: allow partial buffer name in command /buffer close (closes #1226) 2018-07-27 07:48:02 +02:00
Sébastien Helleu b7d6be5936 scripts: fix duplicated lines in output of script eval (python, perl, ruby, lua and guile)
When there was a call to a hook callback during the eval, the output buffer was
cleared too late, and displayed multiple times in the buffer.

This commit clears the buffer even before we display it (this display can
trigger a hook callback).
2018-07-25 20:19:26 +02:00
Nils Görs b934e874d0 gui: fix uncleared completion item (#1162) 2018-07-21 12:50:39 +02:00
Sébastien Helleu df27a3b76a core: send signal "key_pressed" for mouse code only if the string is UTF-8 valid (closes #1220) 2018-07-15 15:09:31 +02:00
Jos Ahrens 738585d9e2 doc: mention there is an option to enable crash core files (user's guide)
For people skimming the section, it will not be immediately clear to
them, especially since everything seems to suggest this option is
enabled by default.
2018-07-15 14:18:07 +02:00
Jos Ahrens 62ad65ef45 core: improve instructions to report the crash 2018-07-15 14:09:34 +02:00
Sébastien Helleu 20a23484ed Merge pull request #1223 from l/master/translation/ja_JP
doc: update Japanese translations
2018-07-14 20:42:39 +02:00
Sébastien Helleu a3179c8c0d Version 2.3-dev 2018-07-14 13:36:04 +02:00
Sébastien Helleu c47916ac8e Version 2.2 2018-07-14 12:35:10 +02:00
AYANOKOUZI, Ryuunosuke dd0b04d057 doc: update Japanese translations 2018-07-14 09:00:00 +09:00
Sébastien Helleu e0cecefb0f tests: fix compiler warnings on calls to snprintf 2018-07-13 22:35:39 +02:00
Sébastien Helleu 2682fb450d lua: fix macros used to return values 2018-07-13 21:25:51 +02:00
Sébastien Helleu bf48efffec relay: fix compiler warnings on calls to snprintf 2018-07-13 21:25:07 +02:00
Sébastien Helleu a205886d7a core: fix compiler warnings on calls to snprintf 2018-07-13 21:24:40 +02:00
Sébastien Helleu a8faa69610 Version 2.2-rc2 2018-07-12 21:37:48 +02:00
Nils Görs 32c698fe21 doc: update German documentation 2018-07-12 20:22:43 +02:00
Krzysztof Korościk 30db245b77 doc: updated polish translation 2018-07-12 19:53:03 +02:00
Sébastien Helleu 184395eeb5 doc: update Japanese auto-generated files 2018-07-12 19:34:44 +02:00
Sébastien Helleu 503f07de8d Merge pull request #1222 from l/master/translation/ja_JP
core: update Japanese translations
2018-07-12 19:33:07 +02:00
Sébastien Helleu de1ade02c3 python: fix crash when loading a script with Python >= 3.7 (closes #1219) 2018-07-12 19:27:37 +02:00
Sébastien Helleu 7554febf7e python: add detection of Python 3.7 2018-07-12 19:24:56 +02:00
Sébastien Helleu 426405c997 doc: add a trigger to jump to buffer number ≥ 100 in FAQ 2018-07-12 07:54:42 +02:00
AYANOKOUZI, Ryuunosuke 72548cb401 core: update Japanese translations 2018-07-12 09:00:00 +09:00
Sébastien Helleu 5b3f2ad466 irc: add nick, host and log tags in message displayed in private buffer when the nick comes back on the server (closes #1221) 2018-07-11 07:36:11 +02:00
Sébastien Helleu 7bd8fb4686 buflist: fix crash when setting the option buflist.look.signals_refresh with a list of signals 2018-07-10 20:30:10 +02:00
Sébastien Helleu 3d0e26ce39 doc: update Polish auto-generated files 2018-07-09 07:04:40 +02:00
Krzysztof Korościk 007a40cb5b po: updated polish translation 2018-07-09 00:51:38 +02:00
Krzysztof Korościk 0834c9c966 doc: updated polish translation 2018-07-08 17:49:28 +02:00
Sébastien Helleu 833d1ebd7d core: add contributor in AUTHORS.adoc (issue #1216) 2018-07-08 15:44:35 +02:00
Jos Ahrens e84d742709 core: split issue template into 3 files (bug report, feature request, question) 2018-07-08 15:43:21 +02:00
Sébastien Helleu d4e9d81a48 Version 2.2-rc1 2018-07-08 14:50:33 +02:00
Sébastien Helleu 14a929341e fset: fix memory leak when switching the format with ctrl-X 2018-07-08 14:48:06 +02:00
Sébastien Helleu c17ab6aa00 fset: fix truncation of option values when the length is greater than 4096 (closes #1218) 2018-07-08 14:46:19 +02:00
Nils Görs 5f17516d59 doc: update German documentation 2018-07-07 22:55:04 +02:00
Sébastien Helleu 7d97b1b85b doc: use /unset command instead of /set xxx null (quickstart guide) 2018-07-07 17:43:50 +02:00
Sébastien Helleu 4aa0e570d0 doc: add default triggers in user's guide 2018-07-07 07:54:11 +02:00
Sébastien Helleu 5decae145f relay: fix socket creation for relay server on OpenBSD (closes #1213)
The socket option IPV6_V6ONLY is not needed on OpenBSD and must not be set (it
is read-only).
2018-07-01 15:39:34 +02:00
Sébastien Helleu 6292896021 irc: add channel color in message 354 with missing parameters (issue #1212) 2018-06-24 09:46:29 +02:00
Sébastien Helleu db690fbf91 irc: do not display message 354 with missing parameters if there's an automatic check of WHOX on the channel (issue #1212) 2018-06-24 08:29:10 +02:00
Sébastien Helleu a5962cf7f5 irc: display message 354 (WHOX) received with missing parameters (closes #1212) 2018-06-23 22:17:18 +02:00
Sébastien Helleu 24d2413fdc core: add default value of option weechat.look.hotlist_add_conditions in release notes 2018-06-22 20:59:35 +02:00
Sébastien Helleu 3319832787 core: update ChangeLog (issue #1208) 2018-06-17 08:17:53 +02:00
Sébastien Helleu b5022d15ad core: add contributor in AUTHORS.adoc (issue #1208) 2018-06-17 08:14:03 +02:00
Chris Hills 664d5e6c59 Update configure.ac for v8 plugin
Explicitly link with -lpthread to fix detection and compilation on some Linux distributions.
2018-06-15 18:31:09 +01:00
Nils Görs 415d7bc0a0 doc: update German documentation 2018-06-15 19:03:33 +02:00
Sébastien Helleu 0f694f57b3 doc: update auto-generated files 2018-06-15 07:05:02 +02:00
Nils Görs 6ab72b0314 core: update German translations 2018-06-14 23:06:16 +02:00
Sébastien Helleu 261cbdae0d core: change default value of option weechat.look.hotlist_add_conditions (closes #1206)
Now if there are at least one relay client connected via weechat protocol,
the buffer is always added to the hotlist.
2018-06-14 22:22:06 +02:00
Sébastien Helleu 744ded04bd relay: add filtering on protocol in info "relay_client_count" (issue #1206) 2018-06-14 21:57:27 +02:00
Sébastien Helleu da507ca85f core: add key alt+"-" in /help filter 2018-06-14 21:44:34 +02:00
Sébastien Helleu 19f37cee6a core: update ChangeLog 2018-06-13 22:22:06 +02:00
Sébastien Helleu 641180caf1 Merge remote-tracking branch 'origin/pr/1196' 2018-06-13 22:19:15 +02:00
Sébastien Helleu dc12f6bef0 fset: fix crash when applying filters after closing the fset buffer (closes #1204) 2018-06-11 23:03:02 +02:00
Sébastien Helleu c1f125cc6f doc: add gnome-terminal option in question about weird chars on screen (FAQ) 2018-06-11 19:51:02 +02:00
Sébastien Helleu c7e2cda249 doc: update Japanese auto-generated files 2018-06-10 21:43:28 +02:00
Sébastien Helleu c8a2330f49 Merge pull request #1203 from l/master/translation/ja_JP
core: update Japanese translations
2018-06-10 21:41:46 +02:00
AYANOKOUZI, Ryuunosuke f64c92ba1a core: update Japanese translations 2018-06-11 09:00:00 +09:00
Sébastien Helleu 91f5035945 doc: update German auto-generated file 2018-06-02 20:30:18 +02:00
Nils Görs e36dfa6a75 core: update German translations 2018-06-02 19:46:31 +02:00
Sébastien Helleu 1abf4040f1 core: add reverse of string in evaluation of expressions with "rev:" (closes #1200) 2018-06-02 16:01:14 +02:00
Sébastien Helleu ab9a0ec2e6 tests: add missing tests on function string_cut 2018-06-02 15:19:16 +02:00
Sébastien Helleu ba19fa9963 core: count number of chars instead of bytes for suffix in function string_cut 2018-06-02 15:18:29 +02:00
Sébastien Helleu 39a291bc53 core: return NULL in function string_cut if string is NULL 2018-06-02 15:14:21 +02:00
Sébastien Helleu 49253bd4d9 tests: fix test of function utf8_strlen_screen on Han char (U+24B62) 2018-06-02 14:42:29 +02:00
Sébastien Helleu 53fedfe4e6 trigger: hide password in display of command "/msg nickserv set password", support the option "-server xxx" 2018-05-31 22:51:23 +02:00
Sébastien Helleu 1587674e9b trigger: hide password in command "/msg nickserv set password" 2018-05-31 21:14:57 +02:00
Sébastien Helleu 4592c9438f core: send buffer pointer (when possible) in signal "hotlist_changed" (closes #1133)
When a buffer is added or updated in the hotlist, the buffer pointer is sent.
When the hotlist is cleared or resorted, the buffer pointer is NULL.
2018-05-31 20:25:10 +02:00
Sébastien Helleu d327e3e75a doc: update Japanese auto-generated files 2018-05-26 10:47:15 +02:00
Sébastien Helleu a2d156774d Merge pull request #1199 from l/master/translation/ja_JP
core: update Japanese translations
2018-05-26 10:45:35 +02:00
AYANOKOUZI, Ryuunosuke 294a3e6a1e core: update Japanese translations 2018-05-26 09:00:00 +09:00
Sébastien Helleu 2026545aaa core: fix delete of previous/next word (keys Ctrl+w and Alt+d) (closes #1195) 2018-05-22 22:26:00 +02:00
Simon Arlott 9aaea09b02 core: unhook TLS handshake fd before calling connect callback
When there are multiple addresses for a server and a TLS handshake failure
occurs, the next server in the list will connect and then timeout without
performing any TLS handshake.

This is because irc_server_close_connection closes server->sock so the next
pipe to be created reuses that fd, but the hook for the handshake fd still
exists when the next connection attempt is started.

The hook for network_connect_child_read_cb is never added because a hook
for the reused fd number still exists.

Resolve this by removing the handshake hook before calling the connect
callback.
2018-05-22 12:27:41 +01:00
Sébastien Helleu 530f73ec71 irc: update ircv3 URLs in comments 2018-05-21 15:48:59 +02:00
Sébastien Helleu aee5ee6f42 core: add issue #219 in ChangeLog 2018-05-21 14:49:45 +02:00
Sébastien Helleu 4885329f7a doc: update German auto-generated files 2018-05-21 14:45:39 +02:00
Sébastien Helleu 555807bc42 core: add contributor in AUTHORS.adoc (issue #826) 2018-05-21 14:44:21 +02:00
Sébastien Helleu 2a229a1b6b core: update ChangeLog 2018-05-21 14:44:21 +02:00
Sébastien Helleu 271e395201 doc: add note about "list" options for curl in function hook_process_hashtable (plugin API reference) 2018-05-21 14:44:21 +02:00
Sébastien Helleu 4f5c7c8b68 doc: add example of URL with custom HTTP headers in function hook_process_hashtable (plugin API reference) 2018-05-21 14:26:20 +02:00
Sébastien Helleu 3b82e8ef1e doc: update auto-generated files with URL options 2018-05-21 11:20:23 +02:00
Sébastien Helleu 2fbd708b47 build: fix path to auto-generated plugin API files in CMakeLists 2018-05-21 11:19:32 +02:00
Sébastien Helleu 9f25d7d347 core: use function string_split to split list items 2018-05-21 10:24:57 +02:00
Sébastien Helleu e4a69406ba core: uncomment CURL option PROXY_SSL_CIPHER_LIST 2018-05-21 10:24:57 +02:00
Joseph Kichline 2542250a21 core: handle lists in hook_process_hashtable for urls (closes #219) 2018-05-21 10:24:57 +02:00
Nils Görs f1308719aa core: update German translations 2018-05-21 09:59:51 +02:00
Sébastien Helleu 275a765de6 core: update ChangeLog 2018-05-21 08:52:34 +02:00
Sébastien Helleu 5d860079d9 core: update translations 2018-05-21 08:50:49 +02:00
Sébastien Helleu 37d870092b irc: display an error if memory can not be allocated in chghost callback 2018-05-21 08:47:19 +02:00
Sébastien Helleu c0cb3a6178 Merge remote-tracking branch 'origin/pr/640' 2018-05-21 08:05:04 +02:00
Sébastien Helleu 7b15ffdb71 irc: add space before capability only if the string is not empty 2018-05-20 22:44:09 +02:00
Sébastien Helleu fe66886398 irc: add missing space between capabilities in display of supported/enabled capabilities 2018-05-20 22:33:58 +02:00
Sébastien Helleu 6b1f3de4b2 core: update ChangeLog 2018-05-20 22:30:13 +02:00
Sébastien Helleu eceb7ec540 core: update translations 2018-05-20 22:29:39 +02:00
Sébastien Helleu 3c29f92e9b Merge remote-tracking branch 'origin/pr/639' 2018-05-20 22:22:20 +02:00
Sébastien Helleu 6b8f45f3bb irc: replace calls to sprintf by snprintf 2018-05-20 21:41:17 +02:00
Sébastien Helleu 393203b13c core: update ChangeLog 2018-05-20 21:36:46 +02:00
Sébastien Helleu c62cc5f497 core: update translations 2018-05-20 21:20:52 +02:00
Sébastien Helleu d033b63d80 doc: update auto-generated files with hdata 2018-05-20 21:20:30 +02:00
Sébastien Helleu eb3eb4fdf3 irc: use dynamic string functions to display supported/enabled capabilities 2018-05-20 21:19:00 +02:00
Sébastien Helleu a6e175f3e9 irc: add missing "cap_extended_join" in comment 2018-05-20 17:29:01 +02:00
Sébastien Helleu c8da268df1 irc: fix code style 2018-05-20 17:29:01 +02:00
Sébastien Helleu 108004be95 irc: do a case-sensitive comparison of CAP command 2018-05-20 16:29:36 +02:00
Sébastien Helleu a3193320a9 core: remove unneeded comment 2018-05-20 16:25:43 +02:00
Sébastien Helleu 8a929c8668 core: fix code style in function hashtable_add_from_infolist 2018-05-20 16:25:43 +02:00
Sébastien Helleu ef1ed1535c core: return an error if the infolist has no pointer to current item in function hashtable_add_from_infolist 2018-05-20 16:19:26 +02:00
Sébastien Helleu dc6ad7b501 doc: add translations for function hashtable_add_from_infolist (plugin API reference) 2018-05-20 16:13:54 +02:00
Sébastien Helleu c1fc590e0a doc: fix styles in plugin API reference 2018-05-20 15:55:37 +02:00
Sébastien Helleu 6356646c25 irc: replace version x.y.z by 2.2 in comment 2018-05-20 15:25:57 +02:00
Sébastien Helleu 498072734f doc: replace version x.y.z by 2.2 in plugin API reference 2018-05-20 15:25:23 +02:00
Sébastien Helleu afb1d03053 Merge remote-tracking branch 'origin/pr/623' into irc-3.2-cap 2018-05-20 15:21:07 +02:00
Sébastien Helleu 0329a9c7cd doc: update German auto-generated files 2018-05-19 15:36:17 +02:00
Nils Görs 7c32942abc core: update German translations 2018-05-19 15:13:35 +02:00
Sébastien Helleu 0f8485f54e buflist: add example of format for two bar items using a ternary operator in /help buflist.format.buffer 2018-05-19 14:47:59 +02:00
Sébastien Helleu 60254ff48d irc: display current nick on connected servers in output of /server list|listfull (closes #1193) 2018-05-19 09:07:08 +02:00
Sébastien Helleu 762e1e6b1e irc: remove unneeded check on variable pos 2018-05-19 08:15:00 +02:00
Sébastien Helleu eb8043f2b4 relay: remove unneeded check on variable irc_argv
The variable "irc_argv" is always set if irc_argc > 0.
2018-05-19 08:14:56 +02:00
Sébastien Helleu 5756892203 exec: fix minimal length of unquoted string 2018-05-19 08:14:52 +02:00
Sébastien Helleu 4b784a631c core: remove unneeded test on variable argv 2018-05-19 08:14:52 +02:00
Sébastien Helleu 25951cf56d core: remove unused variable 2018-05-19 08:13:12 +02:00
Sébastien Helleu 26d972dd57 script: fix memory leak in case of invalid XML content in list of scripts 2018-05-18 23:01:57 +02:00
Sébastien Helleu 4aeed262f8 php: add comments about C compiler happiness 2018-05-17 22:04:19 +02:00
Sébastien Helleu 8b876bd668 scripts: remove double return in info eval callback functions not yet implemented 2018-05-17 22:02:10 +02:00
Sébastien Helleu f3a31f609a php: ensure vbuffer is not NULL before using it 2018-05-17 21:59:20 +02:00
Sébastien Helleu b0fc579955 fset: ensure option_name is not NULL before comparing it 2018-05-17 21:51:09 +02:00
Sébastien Helleu a62fb0dd36 doc: update Japanese auto-generated files 2018-05-03 19:43:47 +02:00
Sébastien Helleu faba5e3958 Merge pull request #1185 from l/master/translation/ja_JP
core: update Japanese translations
2018-05-03 19:30:27 +02:00
AYANOKOUZI, Ryuunosuke 05acadb690 core: update Japanese translations 2018-04-21 09:00:00 +09:00
Sébastien Helleu 3122021167 doc: update German auto-generated file 2018-04-20 19:17:52 +02:00
Nils Görs 6e39a36c3f core: update German translations 2018-04-20 16:11:06 +02:00
Sébastien Helleu 76f3be5260 core: fix infinite loop in evaluation of strings (closes #1183) 2018-04-17 20:27:48 +02:00
Sébastien Helleu 7877e1b8c2 core: add an eval context structure
A pointer to this structure is given as parameter in each eval function called:

- eval_replace_vars
- eval_expression_condition
- eval_replace_regex
2018-04-17 20:27:12 +02:00
Sébastien Helleu ba13d764e6 tests: add tests on eval_expression() with different prefix/suffix 2018-04-17 20:26:45 +02:00
Sébastien Helleu 1a5527cf2e core: do not set terminal title by default (option weechat.look.window_title) (closes #1182) 2018-04-16 21:25:40 +02:00
Sébastien Helleu 648b6374bd doc: update German auto-generated file 2018-04-15 21:29:06 +02:00
Nils Görs 8ce61c25ab core: update German translations 2018-04-15 20:51:55 +02:00
Sébastien Helleu d9425f3765 core: add example of secured data in /help eval 2018-04-15 10:15:17 +02:00
Sébastien Helleu c1dee726d5 tests: turn off memory leak detection only when testing javascript API 2018-04-13 20:57:34 +02:00
Sébastien Helleu 3c97a1abae tests: fix typo in language name 2018-04-13 20:53:34 +02:00
Sébastien Helleu 9265acf879 scripts: fix memory leak in hook_info callback 2018-04-13 19:55:20 +02:00
Sébastien Helleu cc06b95ba7 tests: add tests on infolists 2018-04-12 19:47:42 +02:00
Sébastien Helleu 41d63511b4 scripts: fix return value of hook_infolist callback (pointer instead of string) 2018-04-12 00:12:20 +02:00
Sébastien Helleu 5ae557fa52 tests: fix AST return in TCL 2018-04-11 23:20:12 +02:00
Sébastien Helleu b2344fe5d6 tests: fix AST return in PHP 2018-04-11 23:10:46 +02:00
Sébastien Helleu cb4348df61 tests: fix AST return in Perl 2018-04-11 23:02:02 +02:00
Sébastien Helleu da960e9176 core: initialize size to 0 when it is not used in the infolist variable 2018-04-11 22:44:23 +02:00
Sébastien Helleu 3467d6eb43 scripts: return long integer instead of string in function infolist_time 2018-04-10 21:26:15 +02:00
Sébastien Helleu 9a969c41db core: update ChangeLog 2018-04-10 19:58:03 +02:00
Sébastien Helleu 4001ed956f php: return long instead of int in function hdata_time 2018-04-10 19:34:43 +02:00
Sébastien Helleu 9d83cefdbf php: fix return code of functions config_write_option and config_write_line 2018-04-10 19:34:31 +02:00
Sébastien Helleu ab61ddd4ab scripts: do not allocate memory when converting pointers to strings 2018-04-10 19:33:14 +02:00
Sébastien Helleu c89035327c ruby: fix memory leak in 7 functions returning allocated strings
Fixed functions:

- list_new
- list_add
- list_search
- list_casesearch
- list_get
- list_next
- list_prev
2018-04-10 19:31:39 +02:00
Sébastien Helleu e7b2e3cb02 guile: fix memory leak in 7 functions returning allocated strings
Fixed functions:

- list_new
- list_add
- list_search
- list_casesearch
- list_get
- list_next
- list_prev
2018-04-10 19:31:14 +02:00
Sébastien Helleu c3d1c9734b php: fix memory leak in 72 functions returning allocated strings
Fixed functions:

- iconv_to_internal
- iconv_from_internal
- string_mask_to_regex
- string_format_size
- string_remove_color
- string_eval_expression
- string_eval_path_home
- list_new
- list_add
- list_search
- list_casesearch
- list_get
- list_next
- list_prev
- config_new
- config_new_section
- config_search_section
- config_new_option
- config_search_option
- config_get
- hook_command
- hook_completion
- hook_command_run
- hook_timer
- hook_fd
- hook_process
- hook_process_hashtable
- hook_connect
- hook_print
- hook_signal
- hook_hsignal
- hook_config
- hook_modifier
- hook_modifier_exec
- hook_info
- hook_info_hashtable
- hook_infolist
- hook_focus
- buffer_new
- buffer_search
- buffer_search_main
- current_buffer
- buffer_get_pointer
- buffer_string_replace_local_var
- current_window
- window_search_with_buffer
- window_get_pointer
- nicklist_add_group
- nicklist_search_group
- nicklist_add_nick
- nicklist_search_nick
- nicklist_group_get_pointer
- nicklist_nick_get_pointer
- bar_item_search
- bar_item_new
- bar_search
- bar_new
- infolist_new
- infolist_new_item
- infolist_new_var_integer
- infolist_new_var_string
- infolist_new_var_pointer
- infolist_new_var_time
- infolist_search_var
- infolist_get
- infolist_pointer
- hdata_get
- hdata_get_list
- hdata_move
- hdata_search
- hdata_pointer
- upgrade_new
2018-04-07 21:52:49 +02:00
Sébastien Helleu 64738bcee9 doc: add version 2.2 in Python example for function string_format_size (plugin API reference) 2018-04-07 15:19:13 +02:00
Sébastien Helleu 6de98179bc api: add function string_format_size in scripting API 2018-04-07 13:20:58 +02:00
Sébastien Helleu ea365cccbf doc: update German auto-generated file 2018-04-06 23:56:11 +02:00
Nils Görs c437e271b4 core: update German translations 2018-04-06 22:26:21 +02:00
Sébastien Helleu 974c25df76 irc: replace "server" by "name" in /help server 2018-04-06 21:26:16 +02:00
Sébastien Helleu 8733f23c32 doc: update German auto-generated file 2018-04-06 21:24:49 +02:00
Sébastien Helleu 70892bf71c doc: add a sentence to explain the internal irc server name (quickstart guide) 2018-04-06 21:07:34 +02:00
Sébastien Helleu 7989e52381 core: merge improvements into new features in ChangeLog 2018-04-04 20:30:03 +02:00
Sébastien Helleu 70a930516d irc: always set nick away status on WHO response (sent manually or automatically with server option "away_check") 2018-04-02 10:36:36 +02:00
Sébastien Helleu 8fd2a909b4 core: update ChangeLog 2018-04-02 10:00:03 +02:00
Sébastien Helleu 3ce882daee irc: allocate the string "prefix" in nick
This fixes a crash when calling the function hdata_string on the "prefix"
variable in the nick.
2018-04-02 09:58:08 +02:00
Nils Görs a6d7179462 core: update German translations 2018-04-01 14:13:38 +02:00
Sébastien Helleu bbd6471197 irc: add missing parameter "-server" in /help list (issue #1165) 2018-04-01 08:43:50 +02:00
Sébastien Helleu 5314aa394a irc: add option "-server" in command /list (closes #1165) 2018-04-01 08:38:15 +02:00
Sébastien Helleu fc2395ca4f irc: replace "server" by "target" in help of commands when the argument is not an internal WeeChat server (issue #1165) 2018-04-01 08:00:59 +02:00
Sébastien Helleu dfc27c5eaf Add a template for GitHub issues 2018-03-31 16:46:21 +02:00
Nils Görs b23057f4b4 Merge branch 'master' of https://github.com/weechat/weechat 2018-03-31 16:37:47 +02:00
Nils Görs 6d8ce31901 doc: update German documentation 2018-03-31 16:37:24 +02:00
Sébastien Helleu 8400ec83c3 doc: update German auto-generated file 2018-03-31 16:33:35 +02:00
Nils Görs aeb53a9dc3 core: update German translations 2018-03-31 16:30:16 +02:00
Sébastien Helleu 230e827d24 core: fix help on option weechat.look.hotlist_count_max 2018-03-31 15:57:38 +02:00
Sébastien Helleu e3ff69d669 core: improve help on option weechat.look.hotlist_count_max 2018-03-31 15:37:25 +02:00
Sébastien Helleu 5e1c3b2a28 doc: update German auto-generated file 2018-03-31 15:33:51 +02:00
Nils Görs b0c872626e core: update German translations 2018-03-31 14:35:23 +02:00
Sébastien Helleu f961cc56b8 core: add contributor in AUTHORS.adoc (issue #1171) 2018-03-31 13:59:37 +02:00
Sébastien Helleu 27b89a0e96 core: update ChangeLog (issue #1171) 2018-03-31 13:58:13 +02:00
Sébastien Helleu 11b4186f54 core: update translations (issue #1171) 2018-03-31 13:56:49 +02:00
Sébastien Helleu 4306613536 xfer: improve help on option xfer.network.send_ack (issue #1171) 2018-03-31 13:39:20 +02:00
Sébastien Helleu 5a58b92044 xfer: fix code style and comments (issue #1171) 2018-03-31 13:39:16 +02:00
Sébastien Helleu b32ea2e373 xfer: move option "send_ack" (sort options by name) (issue #1171) 2018-03-31 13:39:04 +02:00
Sébastien Helleu 060ba763f2 Merge remote-tracking branch 'origin/pr/1171' 2018-03-31 13:30:21 +02:00
Sébastien Helleu 7e765d3d8e core: add contributor in AUTHORS.adoc 2018-03-31 12:08:03 +02:00
Sébastien Helleu ce682bb02a Merge pull request #1164 from wking/openssl-ecparam-out
doc: use '-out' instead of shell redirection for openssl ecparam
2018-03-31 12:06:02 +02:00
Sébastien Helleu 32159e68fe core: fix release dates in weechat.spec (issue #1169) 2018-03-31 12:02:41 +02:00
Sébastien Helleu 3d5ea005e0 irc: fix split of messages when server option "split_msg_max_length" is set to 0 (no split) (closes #1173) 2018-03-31 10:06:22 +02:00
Sébastien Helleu 424c1b99fd doc: add note about /fset completion in quickstart guide 2018-03-31 09:44:16 +02:00
Sébastien Helleu 9af0c04b88 doc: add fset plugin in quickstart guide 2018-03-31 09:18:26 +02:00
Sébastien Helleu b143bc6829 doc: add keys F1/F2 to scroll buflist bar in quickstart guide 2018-03-31 09:18:26 +02:00
Sébastien Helleu 25b6dc4bf7 doc: remove sentences about /help in quickstart guide 2018-03-31 09:18:26 +02:00
Sébastien Helleu 298d279754 doc: update Japanese auto-generated files 2018-03-31 09:18:11 +02:00
Sébastien Helleu de2d5fc4c3 Merge pull request #1172 from l/master/translation/ja_JP
core: update Japanese translations
2018-03-31 09:17:29 +02:00
AYANOKOUZI, Ryuunosuke b41ea696fa core: update Japanese translations 2018-03-30 09:00:00 +09:00
Dominique Martinet dd627f3a53 xfer: add xfer.network.send_ack option
This option disables sending acks during transfer, leaving only the final ack,
as would naturally happen if sending ack ever returns EWOULDBLOCK.
2018-03-28 09:35:35 +02:00
Dominique Martinet 57e8c99546 xfer: set TCP_NODELAY on recv side
This works around hangs where only a couple of bytes could be sent
to the socket and retrying to send the last bytes of the ack never
seem to work.

Closes #1167.
2018-03-28 09:32:18 +02:00
Sébastien Helleu 9490c6949b doc: update German auto-generated files 2018-03-27 22:37:28 +02:00
Nils Görs 9c9dcacc84 core: update German translations 2018-03-27 21:51:18 +02:00
Sébastien Helleu 3fc0ce7d3b core: add more info about IRC signals names in release notes 2018-03-26 21:26:42 +02:00
Sébastien Helleu 2802457c02 core: add a note about tags sent in IRC "in" signals in release notes (issue #787) 2018-03-25 22:10:37 +02:00
Sébastien Helleu 54bd959300 core: add missing completion with buffer names for command /buffer merge (issue #1108, issue #1159) 2018-03-25 21:43:20 +02:00
Sébastien Helleu 1be7502e15 core: add missing issue #1108 in ChangeLog 2018-03-25 21:42:03 +02:00
Sébastien Helleu c90572babe irc: send whole IRC message including IRCv3 tags in the signals irc_in, irc_in2, irc_raw_in and irc_raw_in2 (issue #787) 2018-03-25 20:05:12 +02:00
Sébastien Helleu aaad4ca6e5 irc: update URL with IRCv3.2 message tags specification 2018-03-25 17:46:25 +02:00
Sébastien Helleu 9dd8cc0d6a irc: fix memory leak when receiving a message with tags 2018-03-25 17:27:15 +02:00
Sébastien Helleu a38533cb41 core: update ChangeLog 2018-03-25 10:23:34 +02:00
Sébastien Helleu 10f5f6d3ae core: update translations 2018-03-25 10:23:19 +02:00
Sébastien Helleu 91bfd809e6 irc: fix help on commands /unban and /unquiet 2018-03-25 10:09:15 +02:00
Sébastien Helleu 0d74b03004 irc: rename functions to search modelist items 2018-03-25 10:05:58 +02:00
Sébastien Helleu 8f3c9a7378 irc: reorder modelist functions 2018-03-25 10:01:36 +02:00
Sébastien Helleu 126a825924 irc: add completion with modelist numbers for commands /unban and /unquiet 2018-03-25 08:38:42 +02:00
Sébastien Helleu 5793181ead irc: factorize code to set state of modelists in a channel 2018-03-25 08:18:54 +02:00
Sébastien Helleu 1dff661356 irc: clear the modelist if nothing was received before the end of list (invite/exception/ban/quiet) 2018-03-24 19:02:01 +01:00
Sébastien Helleu 4bdda6dd0a irc: fix indenting in debug print of modelist 2018-03-24 18:53:11 +01:00
Sébastien Helleu f457d779a4 irc: fix debug print of modelist item number and pointer 2018-03-24 18:37:06 +01:00
Sébastien Helleu afc1ecdaf9 irc: fix debug print of modelist item datetime value 2018-03-24 18:36:32 +01:00
Sébastien Helleu cbad99356f irc: fix messages on exception to make them easier to translate 2018-03-24 18:36:32 +01:00
Sébastien Helleu a75250b300 irc: mark setter as optional in modelist item 2018-03-24 18:36:32 +01:00
Sébastien Helleu 51b90cbd53 irc: first search the modelist item, then free it if found 2018-03-24 17:11:01 +01:00
Sébastien Helleu de825c9152 irc: check that the modelist item number is valid before using it 2018-03-24 17:10:08 +01:00
Sébastien Helleu 50d39969cb irc: fix some styles 2018-03-24 17:08:56 +01:00
Sébastien Helleu 837eb82edd core: add irc-modelist sources files to generate translations 2018-03-24 17:04:27 +01:00
Sébastien Helleu 6dd97638c3 doc: add irc-modelist.c in translated versions of developer's guide 2018-03-24 17:03:59 +01:00
Simmo Saan d77e1ea499 irc: add indexed ban list, add completion for /unban and /unquiet (closes #597, task #11374, task #10876) 2018-03-24 17:01:50 +01:00
Sébastien Helleu b2f971d4b0 doc: update Japanese auto-generated files 2018-03-24 07:33:24 +01:00
Sébastien Helleu 8216fb1be2 Merge pull request #1168 from l/master/translation/ja_JP
core: update Japanese translations
2018-03-24 07:32:26 +01:00
AYANOKOUZI, Ryuunosuke 71287c44d6 core: update Japanese translations 2018-03-24 09:00:00 +09:00
Sébastien Helleu ea31a950c0 doc: update German auto-generated files 2018-03-22 21:27:57 +01:00
Sébastien Helleu 330e13ac61 doc: update Ruby version in dependencies (user's guide) 2018-03-22 21:25:00 +01:00
Sébastien Helleu 8fd13eefb9 doc: update PHP packages in dependencies (user's guide) 2018-03-22 21:22:32 +01:00
Sébastien Helleu 55bb057319 debian: display the number of patches OK and in error in script build-debian.sh 2018-03-22 21:13:23 +01:00
Sébastien Helleu 3de28af6cd debian: update debian/ubuntu/raspbian patches 2018-03-22 20:46:16 +01:00
Sébastien Helleu 60ee461c43 debian: remove patches for old ubuntu versions: zesty, yakkety, precise 2018-03-22 20:46:16 +01:00
Sébastien Helleu 647b92f6a0 debian: do not build packages with debug symbols in script build-debian.sh 2018-03-22 20:46:15 +01:00
Sébastien Helleu 16d932a671 debian: sync debian files with debian git repository 2018-03-21 22:01:41 +01:00
Sébastien Helleu a72a1ccd51 core: add test of Debian/Ubuntu patches on Travis CI 2018-03-20 22:11:01 +01:00
Sébastien Helleu 846eb90e7d core: add option "test-patches" in script build-debian.sh 2018-03-20 22:09:20 +01:00
Sébastien Helleu 667c9364ed doc: add more info about the reload callback in function config_new (plugin API reference) 2018-03-20 21:51:13 +01:00
Sébastien Helleu 4238fe0e9c debian: update debian/ubuntu/raspbian patches 2018-03-20 20:32:40 +01:00
Nils Görs 66204dfcf2 core: update German translations 2018-03-20 20:11:08 +01:00
W. Trevor King 5d91765da7 doc: use '-out' instead of shell redirection for openssl ecparam
Generated with:

  $ sed -i 's|openssl ecparam -genkey -name prime256v1 >~/.weechat/ecdsa.pem|openssl ecparam -genkey -name prime256v1 -out ~/.weechat/ecdsa.pem|' $(git grep -l 'openssl ecparam')

There's no reason to involve shell redirection, which we've had since
88073243 (doc: add instructions for SASL "ecdsa-nist256p-challenge",
2015-01-21).  We already use -in or -out for our other openssl
invocations, as shown by:

  $ git grep 'openssl.*\(<\|>\|-in\|-out\)'
2018-03-19 15:55:34 -07:00
Sébastien Helleu 062051acb3 core: improve help of option weechat.completion.partial_completion_alert 2018-03-19 21:55:06 +01:00
Sébastien Helleu cd8a98fd1f core: add contributor in AUTHORS.adoc 2018-03-19 21:52:08 +01:00
Sébastien Helleu c9dd8140a4 core: update ChangeLog (closes #1159) 2018-03-19 21:51:32 +01:00
Sébastien Helleu 671ffbe352 core: update translations 2018-03-19 21:50:21 +01:00
Ruslan Bekenev 8582f281f2 core: merge buffer by name 2018-03-19 21:48:24 +01:00
Sébastien Helleu 86998ff358 core: add contributor in AUTHORS.adoc 2018-03-19 21:23:43 +01:00
Sébastien Helleu 402d9e8245 Merge pull request #1163 from fornwall/replace-getdtablesize
Replace getdtablesize() with sysconf(_SC_OPEN_MAX)
2018-03-19 21:22:48 +01:00
Sébastien Helleu 5f2ed55c97 debian: add package weechat-headless with the headless binary and its man page 2018-03-19 19:43:07 +01:00
Sébastien Helleu fc584316da core: split man pages weechat and weechat-headless 2018-03-19 19:38:44 +01:00
Fredrik Fornwall b29352eff6 Replace getdtablesize() with sysconf(_SC_OPEN_MAX)
From the getdtablesize(3) man page:
       It is not specified in POSIX.1; portable applications should
       employ sysconf(_SC_OPEN_MAX) instead of this call.

Specifically, this fixes a compilation problem on Android.
2018-03-18 21:15:12 +01:00
Sébastien Helleu 5e3b6d50bb core: ignore file etc/postinstall/weechat.sh in build with cygport on Cygwin 2018-03-18 12:14:38 +01:00
Sébastien Helleu 8e7f5ea6e8 core: fix build with CMake and Ninja 2018-03-18 11:49:15 +01:00
Sébastien Helleu 352c0408d8 Version 2.2-dev 2018-03-18 08:15:52 +01:00
Sébastien Helleu 47e3825591 Version 2.1 2018-03-18 07:41:40 +01:00
Sébastien Helleu f7f92ce12e doc: update Polish auto-generated files 2018-03-17 18:16:12 +01:00
Krzysztof Korościk fa5d543c5b po: updated polish translations 2018-03-17 18:01:30 +01:00
Krzysztof Korościk a481386025 doc: updated polish translation 2018-03-17 16:06:04 +01:00
Sébastien Helleu 8cf3b09d81 scripts: hide message when the eval script is unloaded
Related to commit 8fbbe8b0d5.
2018-03-17 08:17:41 +01:00
Nils Görs 939c3f7cd0 Merge branch 'master' of https://github.com/weechat/weechat 2018-03-17 08:06:27 +01:00
Nils Görs d9557330bb core: update German translations 2018-03-17 08:05:41 +01:00
Sébastien Helleu 72e920d532 Merge pull request #1161 from l/master/translation/ja_JP
core: update Japanese translations
2018-03-17 08:02:58 +01:00
AYANOKOUZI, Ryuunosuke 92f67df10c core: update Japanese translations 2018-03-17 09:00:00 +09:00
Sébastien Helleu 9be08943ab tests: fix name of target in dependencies 2018-03-16 22:08:11 +01:00
Sébastien Helleu 556b172a55 core: update translations 2018-03-16 20:26:47 +01:00
Sébastien Helleu 71999e17c6 core: quit WeeChat on ctrl-C (signal SIGINT) in headless mode 2018-03-16 20:10:57 +01:00
Sébastien Helleu 84f4e31425 core: fix compilation error on Cygwin 2018-03-16 20:09:35 +01:00
Sébastien Helleu b4cdc29a8f Merge pull request #1158 from l/master/translation/ja_JP
core: update Japanese translations
2018-03-13 19:38:00 +01:00
AYANOKOUZI, Ryuunosuke c3bcc80420 core: update Japanese translations 2018-03-14 09:00:00 +09:00
Sébastien Helleu 72cdcf6ed9 Version 2.1-rc1 2018-03-11 21:38:07 +01:00
Sébastien Helleu 78f5a73d94 doc: replace "rm -f" by "$(RM)" in makefiles 2018-03-11 20:59:41 +01:00
Sébastien Helleu 3dacb43f0c doc: create symbolic links for weechat-headless man page in autotools 2018-03-11 20:59:13 +01:00
Sébastien Helleu 5d6eb3f010 doc: fix cmake target names for man pages 2018-03-11 19:45:29 +01:00
Nils Görs ee87caa933 core: update German translations 2018-03-11 19:38:08 +01:00
Sébastien Helleu 1be74b9683 core: update ChangeLog 2018-03-11 18:36:49 +01:00
Sébastien Helleu c6d4deb8df Revert "core: remove colors from prefix/message only when needed in hook_print_exec"
This reverts commit bfc579cb33.
2018-03-11 18:31:30 +01:00
Sébastien Helleu 985a55cf45 core: fix compilation warning on ignored returned value for function dup() 2018-03-11 10:34:19 +01:00
Sébastien Helleu 805717e9ec core: add binary weechat-headless to run WeeChat without interface (closes #1120)
The optional command line option "--daemon" runs WeeChat like a daemon
(fork, new process group, file descriptors closed).
2018-03-11 09:59:39 +01:00
Sébastien Helleu 0126b03f47 debian: add missing link on Czech man page 2018-03-11 09:56:24 +01:00
Sébastien Helleu 53a9d90059 doc: update Polish auto-generated files 2018-03-10 19:08:38 +01:00
Sébastien Helleu 599388f20d Restore e-mail already used in commits 2018-03-10 19:06:31 +01:00
Krzysztof Korościk 5773db785e po: update few fuzzy translations 2018-03-10 18:18:22 +01:00
Krzysztof Korościk 09ffbcd747 updated e-mail 2018-03-10 18:00:44 +01:00
Krzysztof Korościk afadcf59d4 doc: updated polish translation 2018-03-10 17:59:01 +01:00
Sébastien Helleu 688c9d92d0 tests: fix typo in fake ncurses lib header 2018-03-09 07:35:40 +01:00
Sébastien Helleu 52f1914ca4 doc: update Japanese auto-generated file 2018-03-06 21:58:43 +01:00
Sébastien Helleu 5aa553943d Merge pull request #1155 from l/master/translation/ja_JP
core: update Japanese translations
2018-03-06 21:56:32 +01:00
Sébastien Helleu 0a67458a94 debian: add patch for Ubuntu Artful to use PHP 7.1 2018-03-06 08:59:13 +01:00
AYANOKOUZI, Ryuunosuke f9db9c0212 core: update Japanese translations 2018-03-06 09:00:00 +09:00
Sébastien Helleu 3c01a73df0 debian: replace PHP version 7.1 with 7.2 in debian patches (issue #1154) 2018-03-05 20:51:25 +01:00
Sébastien Helleu 15723bccdf doc: update dependencies for PHP plugin in user's guide (issue #1154) 2018-03-05 20:51:22 +01:00
Sébastien Helleu c4b49508be debian: build with PHP 7.2 by default (issue #1154) 2018-03-05 20:51:04 +01:00
Nils Görs 3d97989c2b doc: update German documentation 2018-03-04 13:17:43 +01:00
Sébastien Helleu 7cd5d76a9f doc: add a question about configuration sharing in FAQ 2018-03-04 07:55:47 +01:00
Sébastien Helleu 5768b2060c doc: add more info about return value of function hdata_move (plugin API reference) 2018-03-01 21:57:46 +01:00
Sébastien Helleu d8b7647275 doc: update German auto-generated file 2018-02-22 21:16:45 +01:00
Nils Görs f55642a753 core: update German translations 2018-02-22 20:55:32 +01:00
Sébastien Helleu ec64137a5b fset: fix remaining typos in translations: alf+f -> alt+f 2018-02-22 07:39:55 +01:00
Sébastien Helleu 3f5d57cc5c Merge pull request #1152 from mumixam/typo-fix
fset: corrected typos
2018-02-22 07:36:20 +01:00
mumixam 620151c657 fset: corrected typos 2018-02-21 19:18:45 -06:00
Sébastien Helleu 2af553cf80 core: fix description of command in /help upgrade 2018-02-19 21:28:09 +01:00
Sébastien Helleu 20f9ca7d4a scripts: display the script name in stdout/stderr output from scripts 2018-02-19 21:27:08 +01:00
Sébastien Helleu 5e3c55bacc doc: update German auto-generated file 2018-02-19 21:26:21 +01:00
Nils Görs a86df82ae8 core: update German translations 2018-02-10 10:15:44 +01:00
Sébastien Helleu 91573cc72b doc: update Japanese auto-generated files 2018-02-10 09:13:27 +01:00
Sébastien Helleu 4f3f1c519f Merge pull request #1147 from l/master/translation/ja_JP
core: update Japanese translations
2018-02-10 09:12:30 +01:00
Sébastien Helleu 24c5db49b1 logger: call fsync even when option logger.file.flush_delay is set to 0 (issue #1145)
This is not recommended anyway to turn on fsync with a delay set to 0, it will
slow down WeeChat a lot, especially with many buffers opened.
2018-02-10 08:27:24 +01:00
Sébastien Helleu 710db5dbcd logger: add option logger.file.fsync (closes #1145) 2018-02-10 08:23:47 +01:00
AYANOKOUZI, Ryuunosuke 8c16d08bdd core: update Japanese translations 2018-02-10 09:00:00 +09:00
Sébastien Helleu 1bd8998d07 doc: update German auto-generated file 2018-02-08 20:46:34 +01:00
Sébastien Helleu 2b275040e7 script: change default value of option script.look.sort from "p,n" to "i,p,n" 2018-02-08 20:46:07 +01:00
Nils Görs 81b7d35349 core: update German translations 2018-02-07 21:39:30 +01:00
Sébastien Helleu d14f925123 exec: add note about piped commands in /help exec for option -sh 2018-02-07 19:59:38 +01:00
Sébastien Helleu ed726787d8 doc: update German auto-generated file 2018-02-07 19:59:22 +01:00
Nils Görs b179654baf core: update German translations 2018-02-06 22:15:38 +01:00
Sébastien Helleu f889306c5e irc: allow ${irc_server.xxx} and ${server} in server evaluated options (closes #1144)
The server option "ssl_fingerprint" is now evaluated when it is used (during
SSL connection), instead of when it is set with command /set.
2018-02-05 21:41:03 +01:00
Sébastien Helleu e2b439d046 core: update color and link to donation page in README 2018-02-04 19:41:09 +01:00
Sébastien Helleu aeec074130 doc: update German auto-generated file 2018-01-30 22:43:58 +01:00
Nils Görs 97c6dcab65 core: update German translations 2018-01-30 20:37:53 +01:00
Sébastien Helleu 03456722ef core: fix typo: scripts manager -> script manager 2018-01-29 21:04:27 +01:00
Sébastien Helleu db448a3e94 php: add OpenSSL licensing in copyright 2018-01-25 22:31:51 +01:00
Sébastien Helleu 0f1d97fd5b doc: update Japanese auto-generated files 2018-01-21 20:37:11 +01:00
Sébastien Helleu 4545cc88b1 doc: rename callback name in example of function hook_process (plugin API reference) 2018-01-21 20:36:24 +01:00
Sébastien Helleu d1179460cf Merge pull request #1139 from l/master/translation/ja_JP
core: update Japanese translations
2018-01-21 13:41:55 +01:00
Sébastien Helleu ffb8350f34 doc: update German and Polish auto-generated files 2018-01-20 15:11:02 +01:00
Krzysztof Korościk 211d5aa7ec doc: updated polish translation 2018-01-20 14:57:29 +01:00
Krzysztof Korościk a10df072f4 po: updated polish translation 2018-01-20 14:57:29 +01:00
Nils Görs 3a405d6dd3 core: update German translations 2018-01-20 14:50:30 +01:00
Sébastien Helleu e9b6d73b0f api: add time in info "date" (WeeChat compilation date/time) (closes #1138) 2018-01-20 08:40:12 +01:00
AYANOKOUZI, Ryuunosuke d798d1c162 core: update Japanese translations 2018-01-20 09:00:00 +09:00
Sébastien Helleu 3a5f97c7a8 doc: update German auto-generated files 2018-01-17 08:52:15 +01:00
Nils Görs f16a8a549a core: update German translations 2018-01-16 20:59:02 +01:00
Sébastien Helleu 257d5fe153 scripts: fix translation of help on option "eval_keep_context" 2018-01-15 22:37:40 +01:00
Sébastien Helleu 8fbbe8b0d5 scripts: add option "eval_keep_context" in script plugins 2018-01-15 22:00:15 +01:00
Sébastien Helleu 21e63e7958 scripts: add configuration file for each script plugin 2018-01-15 21:57:06 +01:00
Sébastien Helleu ee79e11b15 core: add command /help in release notes 2018-01-14 22:00:59 +01:00
Sébastien Helleu ec169f535d core: reinitialize config file pointer to NULL after an error on section creation 2018-01-14 21:47:18 +01:00
Sébastien Helleu eb0560812b scripts: add missing initialization of plugin pointer to NULL 2018-01-14 21:47:18 +01:00
Sébastien Helleu 9cd82686bc doc: update German auto-generated files 2018-01-14 21:46:43 +01:00
Nils Görs 7bf2b6197e core: update German translations 2018-01-14 21:06:47 +01:00
Sébastien Helleu 726e2491cd irc: fix typo in help on server option "split_msg_max_length" 2018-01-14 16:53:23 +01:00
Nils Görs b45c9ceb97 core: update German translations 2018-01-14 15:51:17 +01:00
Sébastien Helleu be3634f22f irc: add server option "split_msg_max_length" 2018-01-13 22:17:13 +01:00
Sébastien Helleu 388319fb59 core: add contributor in AUTHORS.adoc 2018-01-13 16:27:24 +01:00
Sébastien Helleu 233b7bd0e1 Merge pull request #1136 from PapiCZ/fix-typo
Fixed typo in "pzthon"
2018-01-13 16:25:59 +01:00
Patrik Janoušek 1e2bc15e63 Fixed typo in "pzthon" 2018-01-13 14:47:05 +01:00
Sébastien Helleu b916052117 doc: update German and Japanese auto-generated files 2018-01-13 10:22:54 +01:00
Sébastien Helleu 634bf5e062 Merge pull request #1135 from l/master/translation/ja_JP
core: update Japanese translations
2018-01-13 09:50:03 +01:00
AYANOKOUZI, Ryuunosuke 20c3680ede core: update Japanese translations 2018-01-13 09:00:00 +09:00
Nils Görs 32118340de core: update German translations 2018-01-11 20:47:38 +01:00
Nils Görs 363bbd8970 core: update German translations 2018-01-11 20:41:13 +01:00
Sébastien Helleu a4b1952c75 logger: add option logger.look.backlog_conditions (closes #1132) 2018-01-11 16:44:36 +01:00
Sébastien Helleu 9b935836e0 core: add contributor in AUTHORS.adoc 2018-01-11 11:33:05 +01:00
Sébastien Helleu a17ffa8dee doc: improve documentation for focus events in FAQ (translations) 2018-01-11 11:33:05 +01:00
Maxim Baz bb6af05a31 doc: improve documentation for focus events in FAQ (closes #1130) 2018-01-11 11:32:55 +01:00
Sébastien Helleu 5d88d08ef9 core: add options "-newbuffer", "-free" and "-switch" in command /print (issue #1113) 2018-01-08 22:01:11 +01:00
Sébastien Helleu 2ea510cc49 doc: update Japanese auto-generated files 2018-01-08 21:58:35 +01:00
Sébastien Helleu a95c0a43b5 Merge pull request #1129 from l/master/translation/ja_JP
core: update Japanese translations
2018-01-08 21:57:01 +01:00
AYANOKOUZI, Ryuunosuke 31b4e8ed7a core: update Japanese translations 2018-01-08 09:00:00 +09:00
Sébastien Helleu 64d610c0d7 ruby: fix buffer overflow 2018-01-07 19:32:57 +01:00
Sébastien Helleu be7002b70d tests: fix tests on function string_regex_flags 2018-01-07 15:04:24 +01:00
Sébastien Helleu 1999d19ebb doc: update German auto-generated files 2018-01-07 15:04:14 +01:00
Nils Görs 29826725b9 core: update German translations 2018-01-07 14:54:00 +01:00
Nils Görs afebd02286 core: update German translations 2018-01-07 14:19:51 +01:00
Sébastien Helleu f3de26c075 core: set input callback on user buffers after /upgrade 2018-01-07 12:37:04 +01:00
Sébastien Helleu d7ca5f04f6 core: fix typo in ChangeLog 2018-01-07 12:33:11 +01:00
Sébastien Helleu ed0b337505 core: add option "-y" in command /buffer, add support of buffers with free content 2018-01-07 12:01:41 +01:00
Sébastien Helleu da5a75f0cc core: remove invalid completion "-prefix" in command /print 2018-01-07 11:16:55 +01:00
Sébastien Helleu 7ee88fb46c core: fix some styles 2018-01-07 09:11:45 +01:00
Sébastien Helleu 91f792416b core: add option "add" in command /buffer (issue #1113) 2018-01-06 14:19:50 +01:00
Sébastien Helleu c3e2ed91a2 core: update ChangeLog (issue #128) 2018-01-06 14:08:03 +01:00
Sébastien Helleu 9876a8d0a7 core: update translations (issue #128) 2018-01-06 14:07:57 +01:00
Sébastien Helleu bab307bf1b php: fix compiler warning (issue #128) 2018-01-06 14:07:55 +01:00
Sébastien Helleu e87f2e6a46 javascript: fix compiler warning (issue #128) 2018-01-06 14:07:54 +01:00
Sébastien Helleu d23b52efdb tcl: fix compiler warning (issue #128) 2018-01-06 14:07:52 +01:00
Sébastien Helleu eb54230760 lua: add support of eval (issue #128) 2018-01-06 14:07:50 +01:00
Sébastien Helleu 23ec371dae python: fix error message when executing code from string in weechat_python_load (issue #128) 2018-01-06 14:07:48 +01:00
Sébastien Helleu b80e3ff792 perl: do not update message argument in function weechat_perl_output (issue #128) 2018-01-06 14:07:44 +01:00
Sébastien Helleu 414959a474 scripts: add "eval" option in script commands and info "xxx_eval" (issue #128)
For now this works only in python, perl, ruby and guile.
2018-01-06 14:07:35 +01:00
Sébastien Helleu 4884ee6634 core: fix copyright header in German translations 2018-01-05 01:20:34 +01:00
Sébastien Helleu ed4837b2f6 core: update copyright dates 2018-01-05 00:54:18 +01:00
Sébastien Helleu 6931a45946 doc: update Japanese auto-generated files 2017-12-30 15:13:29 +01:00
Sébastien Helleu 2f96abc3f2 Merge pull request #1123 from l/master/translation/ja_JP
core: update Japanese translations
2017-12-30 15:12:42 +01:00
AYANOKOUZI, Ryuunosuke 14675f6756 core: update Japanese translations 2017-12-30 09:00:00 +09:00
Nils Görs 9b748dd0ab doc: update German documentation 2017-12-29 18:33:54 +01:00
Sébastien Helleu ea9de91bcd doc: add note on Mac OS X terminal app and meta key (FAQ) 2017-12-27 23:21:32 +01:00
Sébastien Helleu 8856132df6 core: add contributor in AUTHORS.adoc 2017-12-26 21:58:42 +01:00
Sébastien Helleu 72db3f74f1 core: update ChangeLog 2017-12-26 21:57:14 +01:00
Sébastien Helleu 4a44244422 core: add detection of Ruby 2.5 in autotools (issue #1122) 2017-12-26 21:55:53 +01:00
Sébastien Helleu e1e549b37e Merge pull request #1122 from jirutka/ruby25
core: add detection for Ruby 2.5
2017-12-26 21:53:31 +01:00
Jakub Jirutka cb98f52830 core: add detection for Ruby 2.5 2017-12-26 18:30:36 +01:00
Sébastien Helleu de01364726 doc: update German auto-generated files 2017-12-25 07:39:01 +01:00
Nils Görs d3baee1102 core: update German translations 2017-12-24 19:29:11 +01:00
Sébastien Helleu df11609c13 core: add missing issue in ChangeLog (closes #584) 2017-12-24 13:47:02 +01:00
Sébastien Helleu fbc87573d0 scripts: add infos "xxx_interpreter" and "xxx_version" in script plugins (issue #1075) 2017-12-23 21:21:40 +01:00
Sébastien Helleu c4626bc08a scripts: add option "version" in script commands (closes #1075) 2017-12-23 20:35:30 +01:00
Sébastien Helleu d7122cd6be javascript: fix /javascript command 2017-12-23 19:48:59 +01:00
Sébastien Helleu 87be29ed3d api: add hashtable with variables in plugin structure 2017-12-23 19:47:22 +01:00
Sébastien Helleu aa7a3cf07d core: add missing variables "author" and "license" in dump of plugin 2017-12-23 13:06:51 +01:00
Sébastien Helleu fffd14a099 core: update stable version in script version.sh 2017-12-21 20:21:35 +01:00
Sébastien Helleu 6f64cd0c84 core: add version 2.0.1 in ChangeLog, release notes and weechat.spec 2017-12-20 23:12:23 +01:00
Sébastien Helleu 04926c8c37 doc: replace "/help autosetbuffer" by "/help buffer_autoset" in user's guide (closes #1116) 2017-12-14 07:30:38 +01:00
Nils Görs a60f014078 doc: fix wrong examples in user guide (issue #1116) 2017-12-13 21:17:10 +01:00
Nils Görs 1360a22252 core: update German translations 2017-12-11 21:00:58 +01:00
Sébastien Helleu 364eca7922 doc: update German auto-generated files 2017-12-11 09:35:53 +01:00
Nils Görs 08037bf01d core: update German translations 2017-12-10 15:14:52 +01:00
Sébastien Helleu 52186cae97 Merge pull request #1114 from l/master/translation/ja_JP
doc: update Japanese translations
2017-12-10 09:56:34 +01:00
Sébastien Helleu 6cc7b64af7 core: add link to API doc in /help weechat.completion.partial_completion_templates 2017-12-10 08:31:11 +01:00
AYANOKOUZI, Ryuunosuke 4414eddaaa doc: update Japanese translations 2017-12-10 09:00:00 +09:00
Sébastien Helleu 40749afced core: add option weechat.completion.partial_completion_templates
This option is used to force partial completion on specific templates
(for now only "config_options").
2017-12-09 11:40:14 +01:00
Sébastien Helleu a7522d8e89 core: add fset plugin in release notes of version 2.0 2017-12-08 20:17:50 +01:00
Sébastien Helleu 515334e53b python: fix integer arguments in hook_connect() and hook_fd() callbacks 2017-12-04 22:07:38 +01:00
Sébastien Helleu d4a6758b8b doc: replace download page with a link to relay chapter (user's guide) 2017-12-04 20:50:37 +01:00
Sébastien Helleu 6db7035870 fset: fix typos in French translation of /help fset 2017-12-04 20:50:11 +01:00
Sébastien Helleu d6ce2fabcc Version 2.1-dev 2017-12-03 12:29:55 +01:00
Sébastien Helleu f0a06cc85a Version 2.0 2017-12-03 11:55:08 +01:00
Sébastien Helleu 4edbc7d1da core: add missing versions in weechat.spec 2017-12-03 11:18:12 +01:00
Sébastien Helleu a688ec3d0b core: add missing version 1.9.1 in weechat.spec 2017-12-03 11:11:14 +01:00
Sébastien Helleu e4580a731b buflist: use larger buffer for buflist bar item name 2017-12-03 11:04:28 +01:00
Sébastien Helleu db6f0e030d debian: add "metapackage" info to short description of weechat package 2017-12-03 08:53:41 +01:00
Sébastien Helleu 59e5455659 Merge pull request #1110 from l/master/translation/ja_JP
doc: update Japanese translations
2017-12-03 08:43:29 +01:00
AYANOKOUZI, Ryuunosuke 019ceba4b3 doc: update Japanese translations 2017-12-03 09:00:00 +09:00
Krzysztof Korościk 75099675c7 doc: updated polish faq 2017-12-01 19:30:07 +01:00
Sébastien Helleu ff9a11b1de Version 2.0-rc1 2017-11-29 23:02:59 +01:00
Sébastien Helleu 1f9b83aac4 doc: update German auto-generated files 2017-11-26 21:22:45 +01:00
Nils Görs 2c7708ab60 core: update German translations 2017-11-26 14:06:03 +01:00
Sébastien Helleu af5b8ea165 doc: translate doc on weechat_plugin pointer in other languages (plugin API reference) 2017-11-26 10:22:23 +01:00
Sébastien Helleu 5fcbeb9f3e Merge pull request #1099 from sim642/doc-weechat_plugin
doc: mention weechat_plugin pointer used by plugin header
2017-11-25 14:15:02 +01:00
Sébastien Helleu d0d900395a doc: add a manual way to download the list of scripts, if needed (FAQ) 2017-11-25 09:04:17 +01:00
Sébastien Helleu 829f64a388 doc: add question about command "/script update" in FAQ 2017-11-25 08:28:17 +01:00
Sébastien Helleu ef1c959959 doc: update Japanese auto-generated files 2017-11-21 21:06:29 +01:00
Sébastien Helleu 2682f72094 Merge pull request #1103 from l/master/translation/ja_JP
core: update Japanese translations
2017-11-21 21:05:34 +01:00
Sébastien Helleu ed7237696d doc: update Polish auto-generated files 2017-11-19 22:34:46 +01:00
Krzysztof Korościk c61137f962 po: updated polish translation 2017-11-19 19:00:10 +01:00
Krzysztof Korościk e6c143b6d9 doc: updated polish translation 2017-11-19 14:24:28 +01:00
AYANOKOUZI, Ryuunosuke 2d9981554b core: update Japanese translations 2017-11-18 09:00:00 +09:00
Sébastien Helleu 338e05a2f4 trigger: fix typo in /help trigger 2017-11-15 07:25:17 +01:00
Sébastien Helleu 58a6b564e2 doc: update German auto-generated files 2017-11-11 08:52:28 +01:00
Nils Görs adddddfdb5 core: update German translations 2017-11-11 08:50:23 +01:00
Sébastien Helleu 16309be4ed fset: only toggle boolean values with /fset -toggle or alt+space key 2017-11-11 08:25:54 +01:00
Sébastien Helleu 4dd15157d2 doc: update German auto-generated files 2017-11-07 07:30:18 +01:00
Nils Görs 2aaa8132f4 core: update German translations 2017-11-06 22:14:54 +01:00
Simmo Saan d1f530611c doc: mention weechat_plugin pointer used by plugin header 2017-11-06 18:32:46 +02:00
Sébastien Helleu eca8bce3fd irc: fix help on option irc.look.notice_welcome_redirect (closes #1095) 2017-11-06 07:05:56 +01:00
Simmo Saan d4296a02c0 irc: add invite-notify capability to help and completion 2017-11-05 13:42:28 +02:00
Simmo Saan 8420abe8bb irc: add chghost capability to help and completion 2017-11-05 13:36:45 +02:00
Simmo Saan 227537cbdb irc: add smart filtering for chghost messages 2017-11-05 13:30:33 +02:00
Simmo Saan bf9932bc1d irc: display chghost messages in buffers 2017-11-05 13:28:36 +02:00
Simmo Saan d3c79894e7 irc: add support for IRCv3.2 chghost 2017-11-05 13:24:12 +02:00
Sébastien Helleu b55c158280 core: add split of Debian packages in release notes 2017-11-05 10:29:51 +01:00
Sébastien Helleu dcd00792ca core: add contributor in AUTHORS.adoc 2017-11-04 21:05:17 +01:00
Sébastien Helleu bfc579cb33 core: remove colors from prefix/message only when needed in hook_print_exec 2017-11-04 21:04:03 +01:00
Sébastien Helleu b072586d79 core: add missing includes of stdio.h 2017-11-04 21:03:15 +01:00
Sébastien Helleu 6fb423002b Merge pull request #1094 from coypoop/patch-1
Include stdio.h for FILE
2017-11-04 20:56:12 +01:00
coypoop 5373908539 Include stdio.h for FILE
so this header can be included even if it's not already included
2017-11-04 17:58:38 +02:00
Sébastien Helleu 650242d179 debian: update debian/ubuntu patches 2017-11-04 12:52:39 +01:00
Sébastien Helleu 3d4c52207b debian: force dependency on libphp7.1-embed for package weechat-php (closes #1078) 2017-11-04 12:52:39 +01:00
Sébastien Helleu 152a82eb48 debian: split package weechat-plugins into 9 packages (with one package per scripting language) (issue #1085)
Debian packages with plugins:

- weechat-plugins (aspell, exec, fifo, relay, script, trigger)
- weechat-guile
- weechat-javascript
- weechat-lua
- weechat-perl
- weechat-php
- weechat-python
- weechat-ruby
- weechat-tcl
2017-11-04 12:52:39 +01:00
Sébastien Helleu 1225efe472 doc: add info about strings not translated in functions gettext/ngettext (plugin API reference) 2017-11-03 22:03:02 +01:00
Sébastien Helleu 42d98a6865 doc: fix typo in user's guide 2017-10-31 14:09:25 +01:00
Sébastien Helleu 093af02f0c core: remove useless condition (issue #1092) 2017-10-29 07:35:38 +01:00
Sébastien Helleu 1876af7500 core: move version 1.9.1 below version 2.0 in release notes 2017-10-29 07:23:28 +01:00
Sébastien Helleu 84013b82df core: do not change the chat prefix size when a filtered line is added (closes #1092) 2017-10-29 07:17:30 +01:00
Sébastien Helleu 6b817015e3 core: fix typo in /help key 2017-10-29 06:53:12 +01:00
Sébastien Helleu b8c6a5a2e1 tests: add tests on command/completion hooks scripting API functions 2017-10-28 13:12:00 +02:00
Sébastien Helleu 1c4bb40c93 doc: update Japanese auto-generated files 2017-10-28 08:14:18 +02:00
Sébastien Helleu c8750282a6 Merge pull request #1091 from l/master/translation/ja_JP
core: update Japanese translations
2017-10-28 08:12:44 +02:00
AYANOKOUZI, Ryuunosuke 8c1994cf2c core: update Japanese translations 2017-10-28 09:00:00 +09:00
Sébastien Helleu 022eb12a7d core: add nick name of contributor 2017-10-27 08:35:44 +02:00
Sébastien Helleu 038473b038 core: add bug #41245 in ChangeLog 2017-10-27 01:36:04 +02:00
Sébastien Helleu b189157907 core: update ChangeLog 2017-10-27 01:34:51 +02:00
Sébastien Helleu 7ede264fc7 core: add contributor in AUTHORS.adoc 2017-10-27 01:34:51 +02:00
alyptik 7a17941a5b core: add fix for ncurses with separate tinfo (closes #1090) 2017-10-27 01:34:06 +02:00
Sébastien Helleu 09f3edc2e6 tests: add tests on prefix and color scripting API functions 2017-10-27 01:12:35 +02:00
Sébastien Helleu 0fd1913ae8 tests: add tests on key_bind and key_unbind scripting API functions 2017-10-24 23:33:52 +02:00
Sébastien Helleu 1e6db7b489 tests: fix AST binop in Perl and Lua 2017-10-24 23:32:24 +02:00
Sébastien Helleu 4cff2322a0 tests: fix Tcl assignment 2017-10-24 23:31:51 +02:00
Sébastien Helleu 2b06b53a29 tests: add quotes in Lua tables 2017-10-24 23:30:32 +02:00
Sébastien Helleu a97d734d8b tests: fix Ruby strings 2017-10-24 23:29:38 +02:00
Sébastien Helleu 1cace5588a tests: escape "@" in Perl strings 2017-10-24 23:04:53 +02:00
Sébastien Helleu fe73a38b58 api: add support of prefix "quiet:" in function key_unbind() to quietly remove keys 2017-10-24 23:03:40 +02:00
Sébastien Helleu 759ccc328f core: fix typos in French translations 2017-10-21 19:42:51 +02:00
Sébastien Helleu fab43734e9 doc: update German auto-generated files 2017-10-21 19:42:28 +02:00
Nils Görs 1460d3ab10 core: update German translations 2017-10-21 14:25:23 +02:00
Sébastien Helleu 8025cfb05d core: update ChangeLog 2017-10-21 09:29:28 +02:00
Sébastien Helleu cc5c92ab1e core: set value as optional in help of /buffer set 2017-10-21 09:27:18 +02:00
Simmo Saan 80682fb006 core: allow /buffer set without value with empty default (closes #746) 2017-10-20 21:13:19 +03:00
Sébastien Helleu 285ad0c092 relay: fix typo in French translation of /help relay.network.websocket_allowed_origins 2017-10-20 08:37:49 +02:00
Sébastien Helleu 17554fda68 doc: add bar items "buflist2" and "buflist3" in user's guide 2017-10-19 22:07:47 +02:00
Sébastien Helleu 534dda9094 buflist: add two new bar items using the same format configuration options (closes #990) 2017-10-19 21:51:00 +02:00
Sébastien Helleu b82ce1e15d doc: update German auto-generated files 2017-10-17 22:18:30 +02:00
Nils Görs 4e21b83e7c core: update German translations 2017-10-17 22:05:17 +02:00
Sébastien Helleu 1d56e17b2f core: allow floating point and hexadecimal numbers in comparison of evaluated values 2017-10-17 20:43:40 +02:00
Sébastien Helleu 5233160d82 core: add contributor in AUTHORS.adoc 2017-10-16 20:37:11 +02:00
Grant Wu 4a2a6f7934 doc: clarify "home directory" in user's guide (closes #1086) 2017-10-16 20:36:39 +02:00
Sébastien Helleu 6d8a415bbf debian: fix relay plugin description in control files 2017-10-15 08:21:36 +02:00
Sébastien Helleu aa3b3e3605 doc: update German auto-generated files 2017-10-15 08:06:14 +02:00
Nils Görs 361b506fca core: update German translations 2017-10-14 18:46:43 +02:00
Sébastien Helleu a6e2aeb0c2 doc: update Japanese auto-generated files 2017-10-14 16:31:29 +02:00
Sébastien Helleu 3ea7116602 Merge pull request #1084 from l/master/translation/ja_JP
core: update Japanese translations
2017-10-14 16:30:30 +02:00
Sébastien Helleu 19c36cddc7 build: fix PHP library used to compile PHP plugin (closes #1078)
This was causing a dependency missing in debian packaging.
2017-10-14 11:10:34 +02:00
Sébastien Helleu 0db48c7291 core: add option weechat.look.save_config_with_fsync (closes #1083)
This makes the save of all configuration files about 20 to 200x slower
(according to the storage device speed); so this is disabled by default.
2017-10-14 07:56:02 +02:00
AYANOKOUZI, Ryuunosuke eb8881bccd core: update Japanese translations 2017-10-14 09:00:00 +09:00
Sébastien Helleu d427fc0549 irc: do not clear nicklist when joining an already joined channel if the option irc.look.buffer_open_before_join is on (closes #1081, closes #1082) 2017-10-13 07:44:52 +02:00
Sébastien Helleu 54f0d6b340 doc: add note about Tab and Shift-Tab keys in FAQ 2017-10-12 21:34:41 +02:00
Sébastien Helleu fdeb87bf4e doc: add note about Tab key in quickstart guide 2017-10-11 21:57:23 +02:00
Sébastien Helleu ff443c76b5 tests: add missing docstring 2017-10-10 20:17:15 +02:00
Sébastien Helleu 81a447dbb0 tests: add command /testapi.xx in test script, display elapsed time in scripting API tests 2017-10-10 19:43:47 +02:00
Sébastien Helleu 358297ba8f tests: fix instruction "return" in Perl/Guile/PHP output 2017-10-10 19:42:35 +02:00
Sébastien Helleu ee6f28ef18 tests: remove unused variable 2017-10-10 19:41:34 +02:00
Sébastien Helleu 9ac3097679 tests: fix sort of Unparse classes on line number 2017-10-10 08:23:34 +02:00
Sébastien Helleu bfb8499d61 core: fix display of groups/nicks in nicklist in case of empty groups (issue #1079) 2017-10-09 09:10:36 +02:00
Sébastien Helleu 221b3cd5e4 Merge pull request #1080 from l/master/translation/ja_JP
doc: update Japanese translations
2017-10-09 08:51:43 +02:00
AYANOKOUZI, Ryuunosuke 265b1fbb73 doc: update Japanese translations 2017-10-09 09:00:00 +09:00
Sébastien Helleu 7a452ce8bc core: fix display of nicks in nicklist when they are in a group with sub-groups (closes #1079) 2017-10-08 14:09:02 +02:00
Sébastien Helleu bbfdec0600 core: add PHP plugin in Cygwin packaging 2017-10-08 14:06:18 +02:00
Sébastien Helleu 8a32249507 javascript: fix detection of libv8 with autotools on Ubuntu Trusty 2017-10-07 21:43:18 +02:00
Sébastien Helleu ee19cfbf49 tests: fix scripting API tests when they are run from autotools build directory 2017-10-07 18:45:16 +02:00
Sébastien Helleu 003f5de16b tests: fix compilation of tests with autotools 2017-10-07 18:45:02 +02:00
Sébastien Helleu ca2c11dea7 tests: remove useless __init__ methods 2017-10-07 18:22:33 +02:00
Sébastien Helleu 703534034d tests: fix comments 2017-10-07 17:05:42 +02:00
Sébastien Helleu e8af853624 tests: add scripting API tests (issue #104)
Automatic tests of scripting API are made with Python scripts:

- unparse.py: convert Python code to other languages
- testapigen.py: generate scripts in all languages to test the API
- testapi.py scripting API tests
2017-10-07 16:51:25 +02:00
Sébastien Helleu f6fe6be7a4 doc: reformat PHP dependency in user's guide 2017-10-05 22:38:26 +02:00
Sébastien Helleu 157dc811a4 php: add comments 2017-10-03 21:34:35 +02:00
Sébastien Helleu 0cc44cd986 php: add messages during script loading/unloading 2017-10-03 21:34:20 +02:00
Sébastien Helleu 31dd886390 php: set php_quiet to 1 during plugin end 2017-10-03 21:33:30 +02:00
Sébastien Helleu 33b23c8a74 php: set php_quiet to 1 during plugin initialization 2017-10-03 21:32:02 +02:00
Sébastien Helleu 8dc4f1dd28 php: set php_quiet to 1 when loading/reloading/unloading a script with option "-q" 2017-10-03 21:30:58 +02:00
Sébastien Helleu 7949146687 lua: fix boolean return value (as integer) in API functions 2017-10-03 21:17:22 +02:00
Sébastien Helleu 255e46eaef guile: return integer (0/1) instead of boolean in API functions 2017-10-03 21:16:11 +02:00
Sébastien Helleu 682979bb90 guile: fix return value of static strings 2017-10-02 19:20:26 +02:00
Sébastien Helleu 137d5863e2 tests: run command "/debug libs" in tests instead of Travis CI command 2017-10-01 08:00:39 +02:00
Sébastien Helleu 1ec9453b7e core: add contributor in AUTHORS.adoc 2017-09-28 20:26:54 +02:00
Sébastien Helleu 49a2d49569 Merge pull request #1073 from l/master/translation/ja_JP
doc: update Japanese translations
2017-09-28 20:26:02 +02:00
AYANOKOUZI, Ryuunosuke 50a7bd01fb doc: update Japanese translations 2017-09-28 09:00:00 +09:00
Sébastien Helleu d048f9e7af build: update examples in script build-debian.sh 2017-09-28 01:54:53 +02:00
Sébastien Helleu ddb661cd80 aspell: display "?" if lang is NULL in /aspell listdict
The lang should never be NULL anyway (this fixes a compiler warning).
2017-09-28 01:36:10 +02:00
Sébastien Helleu 1c3e724ec6 build: update Debian patches with libxml2-dev dependency 2017-09-28 01:18:18 +02:00
Sébastien Helleu c13ab756d9 debian: add dependency on libxml2-dev for PHP plugin 2017-09-28 01:11:22 +02:00
Sébastien Helleu 6fc988a647 doc: add dependency libxml2-dev for PHP plugin (user's guide) 2017-09-28 01:09:50 +02:00
Sébastien Helleu 1eefbf6ba5 php: use PHP_VERSION_ID instead of PHP_MAJOR_VERSION and PHP_MINOR_VERSION 2017-09-28 00:51:15 +02:00
Sébastien Helleu b2d6d08c9e php: add comments with PHP version 2017-09-28 00:43:06 +02:00
Sébastien Helleu 7483c2a311 php: fix condition on PHP version to support future PHP versions (>= 8.0) 2017-09-28 00:28:32 +02:00
Sébastien Helleu 3c727cc04c Merge pull request #1069 from adsr/master
php: use find_library to find libphp7.so
2017-09-28 00:21:25 +02:00
Sébastien Helleu 01fff0a0d4 build: update patch for Ubuntu Trusty to not build PHP plugin 2017-09-27 17:17:59 +02:00
Sébastien Helleu 4d69c3be7e build: update patch for Debian Wheezy to not build PHP plugin 2017-09-27 17:09:21 +02:00
Sébastien Helleu b9e4081f3a build: update patch for Debian Jessie to not build PHP plugin 2017-09-27 17:03:12 +02:00
Sébastien Helleu 2c453f9710 build: add patch for Debian Stretch, Raspbian Stretch and Ubuntu Zesty/Yakkety/Xenial to use PHP 7.0 instead of 7.1 2017-09-27 16:59:41 +02:00
Sébastien Helleu cac4107f54 debian: add PHP in debian packaging 2017-09-27 16:58:17 +02:00
Sébastien Helleu d6558f5327 doc: replace php 7.0 by php 7.1 in dependencies (user's guide)
Compilation with PHP 7.0 is still OK, the version in dependencies is the latest
available in Debian Sid (unstable).
2017-09-27 16:58:17 +02:00
Sébastien Helleu 0b4df5d6b8 build: remove patch for Raspbian Jessie
Automatic builds for Raspbian Jessie were stopped three months ago, on June 2017.
2017-09-27 16:58:17 +02:00
Sébastien Helleu 630983b854 build: remove patch for Ubuntu Wily
Automatic builds for Ubuntu Wily were stopped five months ago, on April 2017.
2017-09-27 16:25:10 +02:00
Sébastien Helleu 08856b4c5a build: remove patch for Debian Squeeze
Automatic builds for Debian Squeeze were stopped one year ago, on October 2016.
2017-09-27 15:40:54 +02:00
Sébastien Helleu 01cc63aa45 core: initialize variables attrs and pair before calling wattr_get
This fixes a compiler warning, in some cases wattr_get may not initialize the
variables.
2017-09-25 20:12:31 +02:00
Sébastien Helleu 9a6b107648 core: disable tests with Python 3 until problem is fixed on Travis CI 2017-09-24 15:57:05 +02:00
Sébastien Helleu a8bbb5ab9e core: test with Python 3.5 instead of 3.6 on Travis CI 2017-09-24 15:48:46 +02:00
Sébastien Helleu 30f6b5fadf core: add a workaround for Python 3 issue on Travis CI 2017-09-24 15:45:24 +02:00
Sébastien Helleu 6b0262794f core: add CVE ID in ChangeLog 2017-09-23 22:28:47 +02:00
Sébastien Helleu 8310999b0e core: update stable version in script version.sh 2017-09-23 20:59:16 +02:00
Sébastien Helleu d36bf234c0 doc: move table of contents on the left in FAQ 2017-09-23 17:26:36 +02:00
Sébastien Helleu f95a1b72e7 doc: fix note about function "print" in scripting guide 2017-09-23 16:34:26 +02:00
Sébastien Helleu 92b9533efe core: fix typo: Javascript -> JavaScript 2017-09-23 16:24:52 +02:00
Sébastien Helleu 5aab494dd6 core, plugins: check return code of strftime function 2017-09-23 15:06:28 +02:00
Sébastien Helleu ae66a4d8a5 core: add version 1.9.1 in ChangeLog and release notes 2017-09-23 15:06:00 +02:00
Sébastien Helleu e4cc90f4b4 logger: call strftime before replacing buffer local variables 2017-09-23 15:04:21 +02:00
Sébastien Helleu 5f7b62f835 php: fix crash in API function string_eval_path_home 2017-09-21 21:01:29 +02:00
Adam Saponara 25f79ff2f5 php: use find_library to find libphp7.so 2017-09-17 18:19:35 -04:00
Adam Saponara fd287abe1b php: fix compiler warning for PHP >=7.1 2017-09-17 17:13:45 -04:00
Sébastien Helleu 4d75b5b145 php: fix crash in API function string_eval_expression 2017-09-17 17:36:56 +02:00
Sébastien Helleu 0855873447 doc: update Japanese auto-generated files 2017-09-17 17:36:39 +02:00
Sébastien Helleu 6b88f1de6d Merge pull request #1065 from l/master/translation/ja_JP
core: update Japanese translations
2017-09-17 17:35:49 +02:00
Sébastien Helleu 24bef50ab2 php: fix function plugin_get_name 2017-09-10 20:51:42 +02:00
AYANOKOUZI, Ryuunosuke e213dade9a core: update Japanese translations 2017-09-10 09:00:00 +09:00
Sébastien Helleu 3ff1877001 doc: update German auto-generated files 2017-09-09 17:52:03 +02:00
Nils Görs 4388d25119 core: update German translations 2017-09-09 17:44:35 +02:00
Sébastien Helleu 65a6a6dff2 doc: fix PHP examples in scripting guide 2017-09-09 15:20:38 +02:00
Sébastien Helleu e5acc39770 php: fix arguments of hook_command callback 2017-09-09 15:09:34 +02:00
Sébastien Helleu 1851f6472f php: rename print functions
Rename:
- printf to print
- printf_date_tags to print_date_tags
- printf_y to print_y
- log_printf to log_print
2017-09-07 21:50:20 +02:00
Sébastien Helleu 8bd874a281 python: add/remove some empty lines for readability 2017-09-07 21:40:58 +02:00
Sébastien Helleu 36a9cffa39 php: check that script is registered in API functions, add macros to return values 2017-09-07 21:33:23 +02:00
Sébastien Helleu e10307a3c2 api: check script pointer in scripting API functions 2017-09-07 21:30:36 +02:00
Sébastien Helleu 2a04ae0d65 php: rename API callback functions 2017-09-06 20:58:15 +02:00
Sébastien Helleu 48c9fbec35 php: add missing functions current_buffer and current_window 2017-09-06 20:07:26 +02:00
Sébastien Helleu 776f8e2725 Merge pull request #1064 from adsr/patch-fix-php-cmake
php: ensure CMake script finds PHP 7
2017-09-06 07:28:35 +02:00
Sébastien Helleu 5bec71f891 php: move macro API_FUNC_INIT, aggregate declaration of variables 2017-09-06 00:26:17 +02:00
Adam Saponara 280822b00b php: ensure configure script finds PHP 7 2017-09-05 10:03:12 -04:00
Adam Saponara 7cb928eeb5 php: ensure CMake script finds PHP 7 2017-09-05 01:54:50 -04:00
Sébastien Helleu 4cc3f13066 core: update translations 2017-09-05 07:29:14 +02:00
Sébastien Helleu a1a3822d89 php: remove empty line 2017-09-04 21:10:19 +02:00
Sébastien Helleu 28811c7ebd php: sort functions by topic, remove unused API functions, fix compiler warning
Functions removed (not in scripting API):

- weechat_string_replace
- weechat_hdata_get_var
- weechat_hdata_get_var_type
2017-09-04 21:08:49 +02:00
Sébastien Helleu e317a6856c tests: add PHP plugin in tests 2017-09-03 21:49:48 +02:00
Sébastien Helleu b769c20540 core: add PHP in README 2017-09-03 21:41:29 +02:00
Sébastien Helleu 43624c6d70 php: add comments in code 2017-09-03 15:34:30 +02:00
Sébastien Helleu 586d2a0745 script: add support of PHP scripts 2017-09-03 15:34:30 +02:00
Sébastien Helleu 20f47b9b41 doc: add PHP plugin in plugin API reference 2017-09-03 15:34:30 +02:00
Sébastien Helleu 23c3288cbe doc: add PHP plugin in FAQ 2017-09-03 15:34:30 +02:00
Sébastien Helleu ef193107aa doc: add PHP plugin in developer's guide 2017-09-03 15:34:29 +02:00
Sébastien Helleu 8e41d3b616 doc: add PHP plugin in scripting guide 2017-09-03 15:34:29 +02:00
Sébastien Helleu 997768c4cf doc: add PHP plugin in user's guide 2017-09-03 15:34:29 +02:00
Sébastien Helleu baa1d5fbc9 php: add function "hdata_compare" 2017-09-03 15:34:29 +02:00
Sébastien Helleu 6a45c5e243 php: add "PLUGIN" in headers 2017-09-03 15:34:26 +02:00
Adam Saponara d032ee2159 php: new php plugin
This plugin requires PHP >= 7.0.
2017-09-03 15:33:16 +02:00
Sébastien Helleu 8c046d9be9 buflist: remove recursive evaluation of extra variables (closes #1060) 2017-09-02 14:00:20 +02:00
Sébastien Helleu 24418b30a0 doc: update German auto-generated files 2017-09-02 13:35:43 +02:00
Nils Görs 5b00287756 core: update German translations 2017-09-02 13:18:21 +02:00
Sébastien Helleu 2deea7f53e core: add note about wildcard in /help set 2017-09-01 21:04:25 +02:00
Sébastien Helleu 387ddb98af doc: update Japanese auto-generated files 2017-08-25 19:31:22 +02:00
Sébastien Helleu 6d5c3fdd93 Merge pull request #1057 from l/master/translation/ja_JP
core: update Japanese translations
2017-08-25 19:27:12 +02:00
AYANOKOUZI, Ryuunosuke 47e048dd53 core: update Japanese translations 2017-08-26 09:00:00 +09:00
Sébastien Helleu 6d46daed6c doc: add non-breaking spaces in French messages 2017-08-25 07:45:34 +02:00
Sébastien Helleu bc9fdb87af doc: add non-breaking spaces in French docs 2017-08-24 23:46:14 +02:00
Sébastien Helleu de9f771674 irc: fix CTCP PING reply when the option irc.ctcp.ping is set to non-empty value 2017-08-23 23:11:11 +02:00
Sébastien Helleu 3d8980d91a doc: add links to other docs in plugin API reference 2017-08-22 23:10:41 +02:00
Sébastien Helleu 7a1511001e doc: add links to other docs in scripting guide 2017-08-21 23:35:04 +02:00
Sébastien Helleu 557beb47b5 doc: add links to other docs in FAQ 2017-08-21 23:12:55 +02:00
Sébastien Helleu f1c9ed7714 doc: add links to other docs in developer's guide 2017-08-21 23:12:53 +02:00
Sébastien Helleu a2f2d41dda doc: add links to other docs in user's guide 2017-08-21 23:12:49 +02:00
Sébastien Helleu a9c6964617 core: add note about bar item "input_paste" in /help weechat.look.paste_max_lines (closes #1054) 2017-08-21 07:48:42 +02:00
Sébastien Helleu db0bdc2ac6 core: add flag "input_get_empty" in buffer
The default value is 0 (legacy behavior).
When it is set to 1, an empty input (just by pressing Return with nothing in
input) is sent to the input callback, which receives an empty string.
2017-08-21 07:41:28 +02:00
Sébastien Helleu 8c554d88c9 doc: fix name of dynamic string functions (plugin API reference) 2017-08-20 13:35:32 +02:00
Sébastien Helleu c65137667b tests: improve tests on dynamic strings 2017-08-20 11:26:23 +02:00
Sébastien Helleu 0ad49d1529 doc: add "locale -a" and command to set $LANG in FAQ 2017-08-19 17:26:53 +02:00
Sébastien Helleu a00cbac5c3 doc: update Japanese auto-generated files 2017-08-19 17:15:07 +02:00
Sébastien Helleu cb7d394cc3 Merge pull request #1053 from l/master/translation/ja_JP
core: update Japanese translations
2017-08-19 16:46:32 +02:00
Sébastien Helleu 2ab40e02e6 Revert "irc: do not use away color for nicks in nicklist if option irc.look.color_nicks_in_nicklist is on"
This reverts commit 0c86e742c5.
2017-08-19 12:47:01 +02:00
Sébastien Helleu 0c86e742c5 irc: do not use away color for nicks in nicklist if option irc.look.color_nicks_in_nicklist is on 2017-08-19 11:24:36 +02:00
AYANOKOUZI, Ryuunosuke ce20b1b50c core: update Japanese translations 2017-08-19 09:00:00 +09:00
Sébastien Helleu 835c94db4b core: add signals "buffer_filters_enabled" and "buffer_filters_disabled" 2017-08-18 22:10:17 +02:00
Sébastien Helleu 969432c56e doc: update German auto-generated files 2017-08-15 18:29:56 +02:00
Nils Görs 902da71ff6 core: update German translations 2017-08-14 18:50:19 +02:00
Sébastien Helleu bfef8da84c api: change type of arguments status/gnutls_rc/sock in hook_connect() callback from string to integer (in scripts) 2017-08-13 10:40:01 +02:00
Sébastien Helleu bf0df282a2 doc: remove tag "translation missing" in French plugin API reference 2017-08-13 10:36:40 +02:00
Sébastien Helleu d4254f2162 core: fix anchor in release notes 2017-08-13 09:39:23 +02:00
Sébastien Helleu 71e59b0988 core: add note about function hook_print in version 1.0 (release notes) 2017-08-13 09:35:19 +02:00
Sébastien Helleu 4bea917263 core: update ChangeLog 2017-08-13 09:32:04 +02:00
Sébastien Helleu 5392e3078f api: send file descriptor as integer instead of string to the callback of hook_fd 2017-08-13 09:29:39 +02:00
Sébastien Helleu 2b7ea69d00 doc: add a column "default" in the table with hook_process_hashtable options (plugin API reference) 2017-08-13 08:33:13 +02:00
Sébastien Helleu 86cfce07f0 doc: remove centering in some tables (user's guide) 2017-08-12 18:37:46 +02:00
Sébastien Helleu d6b6a1d85c doc: update titles with options (user's guide) 2017-08-12 18:37:46 +02:00
Sébastien Helleu 9d49c782f3 doc: remove word "plugin" in chapter titles (user's guide) 2017-08-12 18:37:46 +02:00
Sébastien Helleu 2e7fd30ae5 doc: add a chapter about aspell dictionaries (user's guide) 2017-08-12 18:37:45 +02:00
Sébastien Helleu 5d31e316a1 doc: add list of default aliases (user's guide) 2017-08-12 18:37:45 +02:00
Sébastien Helleu f19507ff6a alias: add infolist "alias_default" (list of default aliases) 2017-08-12 18:37:45 +02:00
Sébastien Helleu 829c9907a9 doc: add file alias.conf in user's guide 2017-08-12 18:37:45 +02:00
Sébastien Helleu d7239717fc doc: update chapter "Running WeeChat" (user's guide) 2017-08-12 18:37:45 +02:00
Sébastien Helleu a4ee38d881 doc: remove wrong links in quickstart guide 2017-08-12 18:37:45 +02:00
Sébastien Helleu b980983039 doc: fix title in French user's guide 2017-08-12 18:37:45 +02:00
Sébastien Helleu 9d7c63738c doc: move commands/options at the end of chapters (user's guide) 2017-08-12 18:37:45 +02:00
Sébastien Helleu aeeec38d6f core: fix cast of time_t (to "long long" instead of "long") (closes #1051) 2017-08-12 18:36:45 +02:00
Sébastien Helleu 6e366095f9 doc: fix some styles in relay protocol 2017-08-11 19:13:18 +02:00
Sébastien Helleu eba5060e8a Merge pull request #1050 from l/master/translation/ja_JP
doc: update Japanese translations
2017-08-11 19:12:35 +02:00
AYANOKOUZI, Ryuunosuke 9a4a1df923 doc: update Japanese translations 2017-08-11 09:00:00 +09:00
Sébastien Helleu 9bad3f44db core: remove value for first #define in headers, add "PLUGIN" in plugin headers 2017-08-10 20:05:16 +02:00
Sébastien Helleu c58716809c core: remove unneeded argument in call to string_fprintf 2017-08-10 19:55:29 +02:00
Sébastien Helleu 6cc16a40d1 doc: update note about recommended Python version (user's guide) 2017-08-06 08:02:27 +02:00
Sébastien Helleu b97e2c12ee doc: update python min version from 2.5 to 2.6 (user's guide)
WeeChat doesn't compile any more with Python <= 2.5.
2017-08-05 09:41:40 +02:00
Sébastien Helleu 8c01e05da1 core: add missing colon in ChangeLog 2017-07-31 07:36:41 +02:00
Sébastien Helleu 2476ae7ba3 Merge pull request #1045 from l/master/translation/ja_JP
core: update Japanese translations
2017-07-30 08:59:13 +02:00
AYANOKOUZI, Ryuunosuke 165d2b19c1 core: update Japanese translations 2017-07-29 09:00:00 +09:00
Sébastien Helleu d345490c98 core: update URL of WeeChat blog 2017-07-25 21:24:32 +02:00
Sébastien Helleu ef019b6ecd api: add cast of time_t to long in info "uptime"
This fixes a compiler warning on OpenBSD.
2017-07-23 16:39:13 +02:00
Sébastien Helleu cf51849ac5 relay: fix send of "PART" command in backlog (irc protocol) 2017-07-23 16:13:00 +02:00
Sébastien Helleu b95da03f3a relay: end capability negociation if CAP REQ is received without arguments (issue #1040)
This fixes a bug with clients like Atomic which are sending "CAP REQ :".
2017-07-23 15:47:06 +02:00
Sébastien Helleu 3ac05843eb core: update ChangeLog 2017-07-23 15:36:03 +02:00
Sébastien Helleu dcf1933daa doc: add instructions to run tests in user's guide 2017-07-23 15:34:08 +02:00
Sébastien Helleu b9d762b3c8 core: add instructions to run tests in README 2017-07-23 15:33:47 +02:00
Sébastien Helleu 16661b0cbe tests: display an error if the required locale en_US.UTF-8 is not installed 2017-07-23 15:12:40 +02:00
Sébastien Helleu 70839c732e relay: fix initialization of irc_argv_eol, free variable after use (issue #1040) 2017-07-23 14:22:12 +02:00
Sébastien Helleu a58d3fac4c relay: fix parsing of CAP command without arguments in irc protocol, send ACK only if all capabilities received are OK and NAK otherwise (closes #1040) 2017-07-23 13:58:45 +02:00
Sébastien Helleu da64da7419 doc: update German auto-generated files 2017-07-22 14:48:23 +02:00
Nils Görs 66e6c66d0a core: update German translations 2017-07-22 14:39:30 +02:00
Sébastien Helleu 7e1f8a4217 doc: replace deprecated info "irc_nick_color_name" by "nick_color_name" in examples (plugin API reference) 2017-07-22 14:10:53 +02:00
Sébastien Helleu 1e7b709439 doc: update question about buffers list (FAQ) 2017-07-22 13:56:28 +02:00
Sébastien Helleu 71965ddbae script: replace scripts iset.pl and buffers.pl by go.py and urlserver.py in examples 2017-07-22 12:57:30 +02:00
Sébastien Helleu db5424e2af doc: update Japanese auto-generated files 2017-07-22 12:56:34 +02:00
Sébastien Helleu 33e5991791 core: replace /iset by /fset in welcome message 2017-07-22 12:45:39 +02:00
Sébastien Helleu 4a6e23059a doc: replace script iset.pl by go.py in example (quickstart guide) 2017-07-22 10:51:38 +02:00
Sébastien Helleu 1c6176ee7b doc: add buflist bar in some screen examples (user's guide) 2017-07-21 21:55:27 +02:00
Sébastien Helleu 67fe6d79f5 Merge pull request #1038 from l/master/translation/ja_JP
core: update Japanese translations
2017-07-21 20:54:54 +02:00
AYANOKOUZI, Ryuunosuke 8e68ebc755 core: update Japanese translations 2017-07-22 09:00:00 +09:00
Sébastien Helleu be52d36b26 doc: add bar "buflist" in chapters "Screen layout" and "Bars" (user's guide) 2017-07-20 22:30:31 +02:00
Sébastien Helleu 97e06675a5 script: add local variable "filter" in the script buffer (closes #1037) 2017-07-11 18:27:01 +02:00
Sébastien Helleu d24fb8458b fset: call function fset_buffer_set_localvar_filter when the fset buffer is opened 2017-07-11 18:18:36 +02:00
Sébastien Helleu 72b4684a2c doc: update auto-generated files with fset commands 2017-07-10 07:29:25 +02:00
Sébastien Helleu 1b6a5e586d doc: update German auto-generated files 2017-07-10 07:28:39 +02:00
Nils Görs 2eb21a0ed0 core: update German translations 2017-07-09 18:14:23 +02:00
Sébastien Helleu fdc7425321 fset: fix note about leading spaces in /help fset (closes #1035) 2017-07-09 15:52:15 +02:00
Sébastien Helleu 9ab138f274 doc: update Japanese auto-generated files 2017-07-08 20:49:48 +02:00
Sébastien Helleu 3c28229588 Merge pull request #1034 from l/master/translation/ja_JP
core: update Japanese translations
2017-07-08 20:49:11 +02:00
Sébastien Helleu 29d24c288c core: update ChangeLog 2017-07-08 14:47:27 +02:00
Sébastien Helleu 6532c9a538 fset: fix priority of plugin (load it after all other plugins)
This fixes a refresh problem of options after /upgrade in fset buffer.
2017-07-08 14:46:33 +02:00
Sébastien Helleu f1cd765e1a core: call the config hook when options are renamed 2017-07-08 14:45:14 +02:00
Sébastien Helleu 8fdd6164ef core: call the config hook when options are removed 2017-07-08 14:44:28 +02:00
AYANOKOUZI, Ryuunosuke 5c4a8f4e07 core: update Japanese translations 2017-07-08 09:00:00 +09:00
Sébastien Helleu d01a3298b3 fset: fix comment 2017-07-07 08:36:11 +02:00
Sébastien Helleu cd44bd83cd fset: do not catch /set command if it's issued on the fset buffer 2017-07-07 08:00:19 +02:00
Sébastien Helleu 78aacb5949 core: update ChangeLog 2017-07-06 08:35:49 +02:00
Sébastien Helleu a63d6281d2 doc: update German auto-generated files 2017-07-06 08:24:59 +02:00
Sébastien Helleu 8efbf61e66 tests: fix load of plugins in tests after a build with autotools 2017-07-05 21:33:19 +02:00
Sébastien Helleu b2fd37df61 doc: add environment variables in user's guide 2017-07-05 19:57:44 +02:00
Sébastien Helleu 94cd1b037f core: add constant WEECHAT_EXTRA_LIBDIR 2017-07-05 19:56:41 +02:00
Sébastien Helleu d626fe9b09 core: add contributor in AUTHORS.adoc 2017-07-05 19:55:34 +02:00
Linus Heckemann d6c1d02eca core: search WEECHAT_EXTRA_LIBDIR for plugins (closes #971, issue #979)
In addition to searching the statically configured WEECHAT_LIBDIR
(weechat's installation directory) for plugins, search the path
given in the environment variable WEECHAT_EXTRA_LIBDIR. This makes
departing from the FHS standard while keeping the plugins packaged
separately easier. This change was made specifically with the Nix
package manager in mind, but can easily be used by others.
2017-07-05 19:52:48 +02:00
Sébastien Helleu 5e48b50da8 tests: fix double load of plugins when "make install" is executed before tests 2017-07-05 19:41:11 +02:00
Nils Görs 5aefbcf172 core: update German translations 2017-07-05 18:38:52 +02:00
Sébastien Helleu a59ce8331a tests: load plugins from build directory instead of installed libdir
This allows to run tests without running "make install".
2017-07-04 22:14:44 +02:00
Sébastien Helleu b276d0621c core: add arguments in function plugin_auto_load to load plugins only from custom path or lib dir 2017-07-04 22:14:44 +02:00
Sébastien Helleu f70c2e521e core: use PATH_MAX for size of variable with complete filename in exec_on_files 2017-07-04 22:14:44 +02:00
Sébastien Helleu ff448b9096 api: add argument "recurse_subdirs" in function exec_on_files() 2017-07-04 22:01:14 +02:00
Sébastien Helleu 275389864b doc: use sudo for command "make install" in README and user's guide 2017-07-03 19:41:01 +02:00
Sébastien Helleu 5848d06e65 fset: fix crash in dump of options 2017-07-02 12:58:21 +02:00
Sébastien Helleu 448112f3e6 fset: hook signal "debug_dump" 2017-07-02 12:58:12 +02:00
Sébastien Helleu 093032bc8d fset: always use a timer to refresh buffer when options are changed 2017-07-02 12:51:09 +02:00
Sébastien Helleu 4ce0d2af6d fset: remove useless check/set of fset_buffer_selected_line
This is already done in the function fset_option_get_options.
2017-07-02 12:48:55 +02:00
Sébastien Helleu 860330a6bf fset: add braces around else statement 2017-07-02 09:49:34 +02:00
Sébastien Helleu 79d44d87a3 fset: do not reset selected line after options are added/removed 2017-07-02 09:42:08 +02:00
Sébastien Helleu c03ac468ca core: update build instructions in README (closes #1024) 2017-07-02 07:28:05 +02:00
Sébastien Helleu 2a94dc1359 doc: update auto-generated files with fset options 2017-07-01 16:08:11 +02:00
Sébastien Helleu b67c7a4b29 buflist: add option buflist.look.add_newline (closes #1027) 2017-07-01 16:07:43 +02:00
Sébastien Helleu d30e2e473b doc: fix typo in French FAQ 2017-06-30 19:36:53 +02:00
arza 37663f1d0c doc: add weechat.look.align_multiline_words to FAQ, remove unnecessary info, fix typos/grammar 2017-06-30 19:24:10 +02:00
Sébastien Helleu 5cded07343 fset: fix crash on /upgrade when fset buffer is opened 2017-06-29 23:55:00 +02:00
Sébastien Helleu 5bb7472ed7 fset: use a pre-defined format when a format option is empty
Using the pre-defined format (without eval) is about 3.5x faster.
2017-06-28 22:04:18 +02:00
Sébastien Helleu 987ef9e454 fset: replace hashtable by a simple structure for max length of fields 2017-06-28 19:59:45 +02:00
Sébastien Helleu f851246ff6 buflist: fix crash in auto-scroll of bar when the buflist item is not the first item in the bar 2017-06-27 07:18:16 +02:00
Sébastien Helleu 16132ed7ba fset: remove option fset.look.show_help_bar 2017-06-26 23:55:45 +02:00
Sébastien Helleu be28f3c7f4 doc: update auto-generated files with hdata 2017-06-26 23:55:12 +02:00
Sébastien Helleu d8d753d332 fset: improve speed when marking/unmarking options, fix refresh of buffer title 2017-06-26 23:20:47 +02:00
Sébastien Helleu b199667f8c fset: add missing keys alt+p and alt+v in /help fset 2017-06-26 22:24:18 +02:00
Sébastien Helleu 9ecc431d66 core: add fset plugin in ChangeLog 2017-06-26 22:11:59 +02:00
Sébastien Helleu 579a9a9f27 fset: fix name of format options in /help fset 2017-06-26 21:59:47 +02:00
Sébastien Helleu a727248624 doc: update auto-generated files 2017-06-26 07:19:18 +02:00
Sébastien Helleu e2c51670f1 core: update translations 2017-06-26 07:18:22 +02:00
Sébastien Helleu 29d0db1de6 fset: fix typo in /help fset.look.export_help_default 2017-06-25 22:25:58 +02:00
Sébastien Helleu 4dcb55f8de fset: fix list of command arguments 2017-06-25 22:21:22 +02:00
Sébastien Helleu 29e72aa90b fset: fix buffer title 2017-06-25 22:17:04 +02:00
Sébastien Helleu e3614c47dd fset: fix description of options 2017-06-25 22:03:27 +02:00
Sébastien Helleu 1053663ab6 fset: fix typo 2017-06-25 21:47:25 +02:00
Sébastien Helleu 49963a9bd1 fset: fix translation 2017-06-25 21:44:14 +02:00
Sébastien Helleu dc5da2ae38 core: add fset plugin in Cygwin packaging 2017-06-25 21:25:50 +02:00
Sébastien Helleu ca2d3d168f debian: add plugin fset in debian packaging 2017-06-25 21:25:14 +02:00
Sébastien Helleu 820e79702f doc: add fset options in documentation generator 2017-06-25 21:24:42 +02:00
Sébastien Helleu e579e86929 fset: shift plugins priority to insert fset plugin between buflist and fifo 2017-06-25 21:22:36 +02:00
Sébastien Helleu 47bffefc1c fset: add fset plugin in user's guide 2017-06-25 21:19:43 +02:00
Sébastien Helleu 57f342feb6 fset: add fset plugin and files in developer's guide 2017-06-25 21:19:11 +02:00
Sébastien Helleu db94587528 fset: add file fset.conf in man page 2017-06-25 21:17:55 +02:00
Sébastien Helleu 956dfe2313 fset: display number of options before filter in buffer title 2017-06-25 16:35:28 +02:00
Sébastien Helleu 01274beb15 fset: use "meta-space" instead of "meta- " in fset buffer keys 2017-06-25 16:35:28 +02:00
Sébastien Helleu 492853673a fset: set new value for non-boolean options with alt+space 2017-06-25 16:35:28 +02:00
Sébastien Helleu 0f8db0fa2e fset: add key/input to set new value for an option (alt-f,alt-n or input "n", command /fset -setnew) 2017-06-25 16:35:28 +02:00
Sébastien Helleu d2a9d839a1 fset: update default value of fset.format.option2 to use 3 lines by default 2017-06-25 16:35:28 +02:00
Sébastien Helleu a55958863e fset: add variables ${empty_xxx} (a field with only spaces for indentation) 2017-06-25 16:35:28 +02:00
Sébastien Helleu a71cbf1f84 fset: keep selected line when options fset.look.format_number and fset.format.option* are changed 2017-06-25 16:35:28 +02:00
Sébastien Helleu 98272393fe fset: add ${newline} to display options on multiple lines, replace format options by colors for background 2017-06-25 16:35:28 +02:00
Sébastien Helleu a49e255d96 fset: mark/unmark multiple options with mouse gesture up/down 2017-06-25 16:35:28 +02:00
Sébastien Helleu 74dec95655 fset: add option name in completion, in addition to words 2017-06-25 16:35:28 +02:00
Sébastien Helleu 68b337eb60 fset: add format options for marked options 2017-06-25 16:35:28 +02:00
Sébastien Helleu 1552a2327f fset: rename options fset.format.option_current* to fset.format.option_selected* 2017-06-25 16:35:28 +02:00
Sébastien Helleu b6334ce355 fset: add ${index} and color options 2017-06-25 16:35:28 +02:00
Sébastien Helleu a03b93b0db fset: add variable ${selected_line} 2017-06-25 16:35:28 +02:00
Sébastien Helleu 5acf4ba574 fset: only mark/unmark matching options with "m:" and "u:", do not toggle mark on non-matching options 2017-06-25 16:35:28 +02:00
Sébastien Helleu 70f71be108 fset: first move up one line before toggling mark with shift+up 2017-06-25 16:35:28 +02:00
Sébastien Helleu 0542633d89 fset: use option fset.look.marked_string in buffer title when options are marked 2017-06-25 16:35:28 +02:00
Sébastien Helleu 01ce879433 fset: add marking/unmarking of options matching filter with input "m:" and "u:" 2017-06-25 16:35:28 +02:00
Sébastien Helleu 121faf7b12 fset: do not move selected line after pressing alt+',' (mark/unmark option) 2017-06-25 16:35:28 +02:00
Sébastien Helleu a9d90b98a6 fset: do not refresh buffer when an option not displayed is changed 2017-06-25 16:35:28 +02:00
Sébastien Helleu aa68fa623a fset: add missing key alt+p in buffer title 2017-06-25 16:35:28 +02:00
Sébastien Helleu 850922ff92 fset: add a second format for options, new key ctrl-X and input "x" to switch the format used 2017-06-25 16:35:28 +02:00
Sébastien Helleu fdf7a5f13d fset: add separate word of each option in completion 2017-06-25 16:35:28 +02:00
Sébastien Helleu dc946e55a5 fset: move sort option in /help fset 2017-06-25 16:35:28 +02:00
Sébastien Helleu 263c2904a7 fset: add completion "fset_options" 2017-06-25 16:35:28 +02:00
Sébastien Helleu f519499057 fset: add export of options 2017-06-25 16:35:28 +02:00
Sébastien Helleu 28dcb1049b fset: fix memory leak in allocation of fset options 2017-06-25 16:35:28 +02:00
Sébastien Helleu fc1a699573 fset: fix refresh of options after changing marked options 2017-06-25 16:35:28 +02:00
Sébastien Helleu f7516bd6d8 fset: fix keys alt+'+' and alt+'-' in title of fset buffer 2017-06-25 16:35:28 +02:00
Sébastien Helleu f943951ade fset: set/append to value with alt+'+'/'-' and mouse gesture left/right if option is not of type integer/color 2017-06-25 16:35:28 +02:00
Sébastien Helleu 9db3c63bdc fset: add input "p" in /help fset 2017-06-25 16:35:28 +02:00
Sébastien Helleu c5e5818be8 fset: fix input "v" in fset buffer, add input "p" to toggle plugins descriptions 2017-06-25 16:35:28 +02:00
Sébastien Helleu ac3632c22f fset: add completion values "0" and "end" for command /fset -go 2017-06-25 16:35:28 +02:00
Sébastien Helleu c9460565b8 fset: add key alt-p on fset buffer, rename option fset.look.show_plugin_description to fset.look.show_plugins_desc 2017-06-25 16:35:28 +02:00
Sébastien Helleu cb929bcac1 fset: fix cursor position when appending to an option with NULL value 2017-06-25 16:35:28 +02:00
Sébastien Helleu b879df09b5 tests: check that fset plugin is loaded 2017-06-25 16:35:28 +02:00
Sébastien Helleu 7df7e9faf1 fset: add key ctrl-L and input "<<" and ">>" on fset buffer 2017-06-25 16:35:28 +02:00
Sébastien Helleu c1801663f3 fset: add missing keys/mouse actions in /help fset 2017-06-25 16:35:28 +02:00
Sébastien Helleu f8fad8e6a5 fset: remove dead assignment 2017-06-25 16:35:28 +02:00
Sébastien Helleu 6bbc2f3f4c fset: add allowed values for integers in help bar, rename option fset.color.help_string_values to fset.color.help_values 2017-06-25 16:35:28 +02:00
Sébastien Helleu 986ccff885 fset: add keys F11/F12 to scroll fset buffer horizontally, add input "<" and ">", add option fset.look.scroll_horizontal 2017-06-25 16:35:28 +02:00
Sébastien Helleu cee704b75c fset: add fset source files to generate translations 2017-06-25 16:35:28 +02:00
Sébastien Helleu 775e271ad8 fset: add filter "xxx" in /help fset 2017-06-25 16:35:28 +02:00
Sébastien Helleu 1f8fc6ec9b fset: use only short type name in filter "t:xxx" 2017-06-25 16:35:28 +02:00
Sébastien Helleu 6ba65da06e fset: fix selected line after changing option fset.look.show_plugin_description 2017-06-25 16:35:28 +02:00
Sébastien Helleu 690ef1e309 fset: add options for colors in buffer's title
New options:
- fset.color.title_count_options
- fset.color.title_current_option
- fset.color.title_filter
- fset.color.title_marked_options
- fset.color.title_sort
2017-06-25 16:35:28 +02:00
Sébastien Helleu 476f6ae7bb doc: add "config_name" and "section_name" in function config_option_get_string (plugin API reference) 2017-06-25 16:35:28 +02:00
Sébastien Helleu 6c112cef7c fset: add sort in buffer title 2017-06-25 16:35:27 +02:00
Sébastien Helleu d71524c582 fset: add ${file}, ${section}, ${option}, add color options 2017-06-25 16:35:27 +02:00
Sébastien Helleu 384b3adf9e fset: use English short type name for ${type} in filter, remove ${type_en} 2017-06-25 16:35:27 +02:00
Sébastien Helleu 88bc4d9cc1 fset: add completion "c:" in command /fset 2017-06-25 16:35:27 +02:00
Sébastien Helleu dd18087db6 fset: add variables default_value, default_value_undef, value_undef and value_changed in filter "c:" 2017-06-25 16:35:27 +02:00
Sébastien Helleu be7b84bc94 fset: increase size of hashtable for extra vars in evaluation of lines 2017-06-25 16:35:27 +02:00
Sébastien Helleu 0953659d32 fset: add examples in /help fset 2017-06-25 16:35:27 +02:00
Sébastien Helleu ab7830e32a fset: add missing keys/input in title of fset buffer 2017-06-25 16:35:27 +02:00
Sébastien Helleu f6070da900 fset: add missing space in /help fset 2017-06-25 16:35:27 +02:00
Sébastien Helleu 1cc43c1a9c fset: add missing "${type_en}" and "${description_en}" in /help fset 2017-06-25 16:35:27 +02:00
Sébastien Helleu 4eca2787ec fset: add missing completion "-toggle_bar" in /fset command 2017-06-25 16:35:27 +02:00
Sébastien Helleu 4fccf80e64 fset: add support of evaluated condition with filter "c:" 2017-06-25 16:35:27 +02:00
Sébastien Helleu 55350d8a29 fset: remove useless refresh when an option not displayed is changed 2017-06-25 16:35:27 +02:00
Sébastien Helleu feace6be0b fset: add alt-v and input "v" to toggle help bar, rename option fset.look.help_bar to fset.look.show_help_bar 2017-06-25 16:35:27 +02:00
Sébastien Helleu bb5523d912 fset: fix fset filter after /fset and /upgrade 2017-06-25 16:35:27 +02:00
Sébastien Helleu 93fd6b96ce fset: fix error when clicking on a line after the last option displayed 2017-06-25 16:35:27 +02:00
Sébastien Helleu 0e53103b6e fset: fix typo in /help fset 2017-06-25 16:35:27 +02:00
Sébastien Helleu 826cd0bd7c fset: add empty string instead of "null" when editing an option with NULL value 2017-06-25 16:35:27 +02:00
Sébastien Helleu e2a68f9b4c fset: add option fset.look.use_color_value 2017-06-25 16:35:27 +02:00
Sébastien Helleu cffa55e05e fset: add options fset.color.name_changed and fset.color.name_changed_selected 2017-06-25 16:35:27 +02:00
Sébastien Helleu d5aa8530b7 fset: fix crash on unset of multiple options
Rename option fset.look.unmark_after_action to fset.look.auto_unmark,
allow input "$$" to unmark all options and refresh.
2017-06-25 16:35:27 +02:00
Sébastien Helleu 500e54578b fset: add filtering by type ("t:xxx") 2017-06-25 16:35:27 +02:00
Sébastien Helleu 6f27eccc84 fset: add option fset.look.sort 2017-06-25 16:35:27 +02:00
Sébastien Helleu dc2720d916 fset: add missing "${marked}" in /help fset 2017-06-25 16:35:27 +02:00
Sébastien Helleu 718837a76b fset: skip spaces at beginning of buffer input 2017-06-25 16:35:27 +02:00
Sébastien Helleu 2d1e0f47d3 fset: add spaces between fields in option fset.format.option 2017-06-25 16:35:27 +02:00
Sébastien Helleu 7a08099d18 fset: add options fset.color.quotes_changed and fset.color.quotes_changed_selected 2017-06-25 16:35:27 +02:00
Sébastien Helleu 7336c93270 fset: add option fset.look.unmark_after_action 2017-06-25 16:35:27 +02:00
Sébastien Helleu 6be32fdce5 fset: fix refresh of options with "$" as input in buffer 2017-06-25 16:35:27 +02:00
Sébastien Helleu b7d7a95ff0 fset: add allowed input on buffer in /help fset 2017-06-25 16:35:27 +02:00
Sébastien Helleu 9a923eb7e7 fset: fix slow (un)marking of options when there are a lot of options displayed 2017-06-25 16:35:27 +02:00
Sébastien Helleu c395bc4aba fset: add keys alt-home and alt-end to go to first/last line 2017-06-25 16:35:27 +02:00
Sébastien Helleu b2373ffba7 fset: add mark on options to run an action on multiple options 2017-06-25 16:35:27 +02:00
Sébastien Helleu 2671a72da3 fset: fix refresh of buffer after changing option when the buffer is scrolled 2017-06-25 16:35:27 +02:00
Sébastien Helleu b50e5d016f fset: fix display of default value and string values in help bar 2017-06-25 16:35:27 +02:00
Sébastien Helleu eccce0bb4f fset: add ${description_en} 2017-06-25 16:35:27 +02:00
Sébastien Helleu 3211a73599 fset: store type as enum, translate ${type}, add ${type_en}, ${type_short} and ${type_tiny} 2017-06-25 16:35:27 +02:00
Sébastien Helleu f555d588b8 fset: add option fset.look.show_plugin_description 2017-06-25 16:35:27 +02:00
Sébastien Helleu ee3d5474b9 fset: display "(no description)" instead of empty string for options without description 2017-06-25 16:35:27 +02:00
Sébastien Helleu bf7135dd9d fset: add ${default_value_undef} and ${value_changed} 2017-06-25 16:35:27 +02:00
Sébastien Helleu cc0ba21e67 fset: add supported variables for formats in /help fset 2017-06-25 16:35:27 +02:00
Sébastien Helleu 6a29941fdc fset: fix command /fset -bar 2017-06-25 16:35:27 +02:00
Sébastien Helleu 18916e420a fset: remove obsolete option fset.look.enabled 2017-06-25 16:35:27 +02:00
Sébastien Helleu 77391dda1b fset: add ${parent_value}, add options fset.color.parent_value and fset.color.parent_value_selected 2017-06-25 16:35:27 +02:00
Sébastien Helleu 8c7b4282ae fset: hook command /set, add option fset.look.condition_catch_set 2017-06-25 16:35:27 +02:00
Sébastien Helleu 805bc6ca2c fset: use just "d" instead of "d:" to show changed options 2017-06-25 16:35:27 +02:00
Sébastien Helleu 7074f6e0d6 fset: remove obsolete buffer title 2017-06-25 16:35:27 +02:00
Sébastien Helleu 77cefb7621 core: limit hook_command_run to the exact given command (when no "*" are in command hook) 2017-06-25 16:35:27 +02:00
Sébastien Helleu dc60f343ba fset: translate buffer title 2017-06-25 16:35:27 +02:00
Sébastien Helleu 02a94b4960 fset: add fset bar item content, add options for colors in help bar 2017-06-25 16:35:27 +02:00
Sébastien Helleu 90b1ce46f1 fset: set buffer title with useful info (filter, number of options, keys/input) 2017-06-25 16:35:27 +02:00
Sébastien Helleu a680e9b32e fset: allow mask (with "*") as filter 2017-06-25 16:35:27 +02:00
Sébastien Helleu 21d448f5f5 fset: fix the fset buffer after /upgrade 2017-06-25 16:35:27 +02:00
Sébastien Helleu 968ee87114 fset: set local variable "filter" in the fset buffer 2017-06-25 16:35:27 +02:00
Sébastien Helleu 2fac9d34f3 fset: add ${string_values}, add options fset.color.string_values and fset.color.string_values_selected 2017-06-25 16:35:27 +02:00
Sébastien Helleu 3515134b19 fset: add ${description}, add options fset.color.description and fset.color.description_selected 2017-06-25 16:35:27 +02:00
Sébastien Helleu ef19c4ed90 fset: fix color of default value when it is different from NULL 2017-06-25 16:35:27 +02:00
Sébastien Helleu 7df98862d6 fset: add filters "d=" and "d==" 2017-06-25 16:35:27 +02:00
Sébastien Helleu 4c65f2b648 fset: fix columns size after changing an option 2017-06-25 16:35:27 +02:00
Sébastien Helleu 48aefca89d fset: add mouse actions (select line, add to value, toggl boolean, set value) 2017-06-25 16:35:27 +02:00
Sébastien Helleu 66124db856 fset: add ${min} and ${max}, add options fset.color.{max|min} and fset.color.{max|min}_selected 2017-06-25 16:35:27 +02:00
Sébastien Helleu 907501e465 fset: remove unused variables for columns 2017-06-25 16:35:27 +02:00
Sébastien Helleu 5532b073ec fset: replace options -decrease/-increase by -add (with optional value) 2017-06-25 16:35:27 +02:00
Sébastien Helleu 7ff3b517a8 fset: fix execution of actions from fset buffer input 2017-06-25 16:35:27 +02:00
Sébastien Helleu 13d280a677 fset: add all supported options in /help fset 2017-06-25 16:35:27 +02:00
Sébastien Helleu 8e3ac1d1cd fset: add support of filters in /fset command 2017-06-25 16:35:27 +02:00
Sébastien Helleu 7b5b123365 fset: add different types of filters
Existing filter:

- by option name (part of name)

New filters:

- by configuration file ("f:xxx")
- by section name ("s:xxx")
- by options changed ("d:" or "d:xxx")
- by exact value ("==xxx")
- by value, format ("=xxx")
2017-06-25 16:35:27 +02:00
Sébastien Helleu fb363eb723 fset: fix refresh of buffer when options are added/removed 2017-06-25 16:35:27 +02:00
Sébastien Helleu a240115baf fset: fix size of columns 2017-06-25 16:35:27 +02:00
Sébastien Helleu 83b620e67c fset: add actions to set/append value, add option fset.look.use_mute 2017-06-25 16:35:27 +02:00
Sébastien Helleu fdf7fb12a8 fset: update keys on fset buffer 2017-06-25 16:35:27 +02:00
Sébastien Helleu 7afe5ca4de fset: add evaluated variables prefixed by one or two underscores
One underscore: value not padded with spaces on the right.
Two unerscores: raw value (no color, no padding).
2017-06-25 16:35:27 +02:00
Sébastien Helleu f4169608d1 fset: rename ${value_with_parent} to ${value2} 2017-06-25 16:35:27 +02:00
Sébastien Helleu 8bace39142 fset: add ${value_with_parent} to show inherited value 2017-06-25 16:35:27 +02:00
Sébastien Helleu 7b9b25988c fset: add support of parent options, add color for quotes around strings, fix auto size of columns 2017-06-25 16:35:27 +02:00
Sébastien Helleu 7f5e92a278 fset: add toggle/decrease/increase/reset/unset actions on selected line 2017-06-25 16:35:27 +02:00
Sébastien Helleu e66b3ffd57 fset: add colors for diff/undef values 2017-06-25 16:35:27 +02:00
Sébastien Helleu cd131db925 fset: add color options 2017-06-25 16:35:27 +02:00
Sébastien Helleu 2a5eb1564f fset: add fset (Fast Set) plugin skeleton (WIP) 2017-06-25 16:35:27 +02:00
Sébastien Helleu 9de297100a doc: update Japanese auto-generated files 2017-06-25 12:07:54 +02:00
Sébastien Helleu b41281e947 Merge pull request #1023 from l/master/translation/ja_JP
core: update Japanese translations
2017-06-25 12:07:35 +02:00
Sébastien Helleu 020d2f9e1e Version 2.0-dev 2017-06-25 10:49:36 +02:00
Sébastien Helleu 1206a7bbe4 Version 1.9 2017-06-25 10:20:52 +02:00
AYANOKOUZI, Ryuunosuke a4ddeb1a38 core: update Japanese translations 2017-06-25 09:00:00 +09:00
Sébastien Helleu 77d1175026 doc: update Polish auto-generated files 2017-06-24 15:00:44 +02:00
Krzysztof Korościk 49b70911b0 doc: updated polish translation 2017-06-24 12:18:42 +02:00
Krzysztof Korościk 3976fa33a1 po: updated polish translation 2017-06-24 12:01:27 +02:00
Sébastien Helleu 6a8d2e5044 doc: update German auto-generated files 2017-06-24 06:55:35 +02:00
Nils Görs a78d97e2d9 core: update German translations 2017-06-24 00:57:25 +02:00
Sébastien Helleu 1318f1b72e doc: update German auto-generated files 2017-06-23 15:51:33 +02:00
Nils Görs ceb5351eb8 core: update German translations 2017-06-23 15:48:58 +02:00
Sébastien Helleu b3dd47edd8 buflist: add variable ${format_name} in bar item evaluation and option buflist.format.name (issue #1020) 2017-06-23 12:00:34 +02:00
Sébastien Helleu 5a9269ba20 Version 1.9-rc2 2017-06-22 18:35:48 +02:00
Sébastien Helleu 4827ede798 buflist: display the warning about script buffers.pl only if buflist is enabled 2017-06-20 22:02:06 +02:00
Sébastien Helleu c15c30770e irc: fix update of nick prefixes when the names are received in message 353 (closes #1022)
This regression was introduced by commit
fadee50664 (issue #1019)
2017-06-20 07:21:08 +02:00
Simmo Saan 0a348f0b9d irc: factor supported CAP version 2017-06-17 20:10:45 +03:00
Simmo Saan 1af75739b5 core: implement buffer type in hashtable_add_from_infolist 2017-06-17 20:10:45 +03:00
Simmo Saan 08da7c6586 irc: implement capability upgrading fully 2017-06-17 20:10:45 +03:00
Simmo Saan 0a4be02dc3 core: add hashtable_add_from_infolist to API 2017-06-17 20:03:40 +03:00
Simmo Saan 4563d43166 irc: force uppercase subcommand for /cap 2017-06-17 20:01:08 +03:00
Simmo Saan bdfd984d72 irc: add support for IRCv3.2 Client Capability Negotiation (closes #586) 2017-06-17 20:01:07 +03:00
Simmo Saan 453434644a irc: add hashtables to keep track of all capabilities 2017-06-17 19:31:33 +03:00
Simmo Saan d12e29620b irc: make command characters optional in server's command option 2017-06-17 18:38:37 +03:00
Sébastien Helleu fadee50664 irc: don't reset nick properties (prefixes/away/account/realname) on /names when the nick already exists (closes #1019) 2017-06-17 15:22:01 +02:00
Sébastien Helleu 48a3baedd5 doc: update Japanese auto-generated files 2017-06-15 21:36:28 +02:00
Sébastien Helleu 22d69953d4 doc: update German auto-generated files 2017-06-15 21:36:15 +02:00
Sébastien Helleu 5e62af427b Merge pull request #1017 from l/master/translation/ja_JP
core: update Japanese translations
2017-06-15 21:34:26 +02:00
Nils Görs 29f90fb80e core: update German translations 2017-06-15 09:34:13 +02:00
Sébastien Helleu 54517dbf4f Version 1.9-rc1 2017-06-15 09:07:51 +02:00
AYANOKOUZI, Ryuunosuke 227776f8b9 core: update Japanese translations 2017-06-15 09:00:00 +09:00
Sébastien Helleu 383652aa2a irc: remove unused functions irc_server_get_number_connected and irc_server_get_number_buffer (issue #1012) 2017-06-14 07:29:11 +02:00
Sébastien Helleu fbbb72c44d buflist: add variable ${merged} in /help buflist 2017-06-13 21:17:54 +02:00
Sébastien Helleu cab29dd47f doc: add missing file fifo.conf in user's guide 2017-06-13 21:14:59 +02:00
Sébastien Helleu 92a40052af buflist: add variable ${merged} in bar item evaluation 2017-06-13 20:29:38 +02:00
Sébastien Helleu fbf7156b1b alias: fix message in case of error in command /alias addcompletion 2017-06-12 20:07:44 +02:00
Sébastien Helleu ee2f09fb13 relay: add option "start" in command /relay 2017-06-12 20:06:58 +02:00
Sébastien Helleu 8dbd2cf83d doc: add missing API functions in scripting guide 2017-06-11 08:20:12 +02:00
Sébastien Helleu 3dc72b2e5f core: free use of pointer after free in case of error in function string_dyn_concat 2017-06-10 17:35:47 +02:00
Sébastien Helleu 46f409d463 core: improve speed of nicklist bar item callback
It's faster to use a string with dynamic size, rather than looping on the whole
nicklist to compute the length of result string, before looping again to build
the string.
2017-06-10 16:56:13 +02:00
Sébastien Helleu 54bf589d7d core, plugins: fix conditions to insert elements in linked lists
This removes scan-build warnings about dereference of last_xxx null pointers.
2017-06-10 16:21:11 +02:00
Sébastien Helleu 8c8a0c0826 core: remove unused function gui_window_clear_weechat (issue #1012) 2017-06-10 15:03:06 +02:00
Sébastien Helleu f2d250a78f core: remove unused function upgrade_file_read_string_utf8 (issue #1012) 2017-06-10 15:02:34 +02:00
Sébastien Helleu ad9c75f234 core: remove unused functions secure_search_hash_algo and secure_search_cipher (issue #1012) 2017-06-10 15:01:58 +02:00
Sébastien Helleu 3af24d9739 core: remove unused function proxy_search_with_option_name (issue #1012) 2017-06-10 15:01:21 +02:00
Sébastien Helleu be47805597 Merge pull request #1015 from Neui/remove-unused-irc-stores
irc: Remove unnecessary stores
2017-06-10 14:54:41 +02:00
Sébastien Helleu a9f87e7e56 core: add contributor in AUTHORS.adoc 2017-06-10 08:25:36 +02:00
Neui f962ba1c6c trigger: if hashmap creation failed, don't use tags
If hashmap creation fails (eg. not enough memory), it jumps to the label
"end", where it checks the pointer tags, that hadn't been initialized
before.

The simple fix is to initialize it before creating the hashmap.
2017-06-10 08:24:34 +02:00
Sébastien Helleu 46b27bff4e core: fix bind of keys with space key, like alt+space (bug #32133) 2017-06-10 08:15:44 +02:00
Sébastien Helleu 964481aaeb doc: update Japanese auto-generated files 2017-06-10 08:03:37 +02:00
Sébastien Helleu 0c249b14c9 Merge pull request #1016 from l/master/translation/ja_JP
core: update Japanese translations
2017-06-10 07:53:03 +02:00
Sébastien Helleu 493ecfb388 doc: update German auto-generated files 2017-06-10 07:41:48 +02:00
AYANOKOUZI, Ryuunosuke 5352702213 core: update Japanese translations 2017-06-10 09:00:00 +09:00
Nils Görs fc12a34f19 core: update German translations 2017-06-09 22:39:59 +02:00
Neui d924eff930 irc: Remove unnecessary stores 2017-06-09 21:00:25 +02:00
Sébastien Helleu 193ff0db37 core: remove unused functions config_file_config_insert and config_file_section_insert_in_config (issue #1012) 2017-06-09 07:54:27 +02:00
Sébastien Helleu 0094be17a8 doc: add missing file fifo.conf in man pages 2017-06-08 07:02:05 +02:00
Sébastien Helleu 5997660bb5 doc: add missing file buflist.conf in Russian man page 2017-06-08 07:00:12 +02:00
Sébastien Helleu f140a9198e buflist: add option buflist.look.auto_scroll (issue #332) 2017-06-08 06:56:42 +02:00
Sébastien Helleu e2589aaaca api: allow update of variables "scroll_x" and "scroll_y" in bar_window with function hdata_update 2017-06-08 06:53:32 +02:00
Sébastien Helleu 111962c65a core: remove unused function command_secure_display_data (issue #1012) 2017-06-07 07:16:07 +02:00
Sébastien Helleu e09dc5f63b buflist: return 0 if buffers are equal in sort function
This is better for symmetry of comparison callback (comparing buffer1 and
buffer2 will give same as comparing buffer2 and bufer1).

Thanks to Simmo Saan for reporting the problem.
2017-06-06 19:50:47 +02:00
Sébastien Helleu 1e22a96a10 core: remove unused functions gui_bar_get_min_width and gui_bar_get_min_height (issue #1012) 2017-06-06 07:29:05 +02:00
Sébastien Helleu fa3a4355ce buflist: display a warning when the script "buffers.pl" is loaded 2017-06-05 14:56:14 +02:00
Sébastien Helleu 4947ed6d31 core: update ChangeLog
Related to commit 7ab6731efe.
2017-06-04 12:41:06 +02:00
Sébastien Helleu fc6c165c49 Merge pull request #1012 from sim642/clion
Small fixes and code cleanup for problems found by CLion inspections
2017-06-04 12:36:50 +02:00
Sébastien Helleu a195fa2af5 doc: use WeeChat IRC message parsing function in IRC hook example (scripting guide) 2017-06-03 15:42:05 +02:00
Simmo Saan 43451e8481 relay: remove callback unused after d2ff46fa69 2017-06-03 16:26:09 +03:00
Simmo Saan 4492547204 gui: remove callback unused after 0b2be21f1f 2017-06-03 16:24:17 +03:00
Simmo Saan 2508f0acea core, irc: remove unused structs 2017-06-03 15:59:12 +03:00
Simmo Saan 55e7090cde gui: remove completion hdata made unusable by arraylist usage 2017-06-03 15:59:12 +03:00
Simmo Saan 7ab6731efe relay: fix relay.network.bind_address change callback not being called 2017-06-03 15:59:12 +03:00
Simmo Saan dab0792029 core, script: remove unused config section variables 2017-06-03 15:59:12 +03:00
Simmo Saan e5f67894be gui, buflist: remove declared but undefined functions 2017-06-03 15:59:12 +03:00
Simmo Saan 90936d8478 core, gui: remove declared but unused global variables 2017-06-03 15:58:07 +03:00
Simmo Saan 824610d28b exec, fifo, irc: remove unused #define-s 2017-06-03 15:58:07 +03:00
Simmo Saan ab3806e320 gui: fix gui-focus.h header guard 2017-06-03 15:58:07 +03:00
Simmo Saan 7a0bbd802b core: forward declare structs to avoid implicit declarations 2017-06-03 15:58:07 +03:00
Simmo Saan dcef2a8e0d gui: remove non-standard enum forward declaration 2017-06-03 15:56:26 +03:00
Simmo Saan 996aaf0613 relay: remove local variables used only for sizeof 2017-06-03 15:56:26 +03:00
Simmo Saan ec13a66af3 core: fix fifo_fd_cb declared without arguments 2017-06-03 15:56:26 +03:00
Simmo Saan 824e6603cc core: fix gui_color_dump called with excess arguments 2017-06-03 15:56:26 +03:00
Simmo Saan 832316df0c irc: fix irc_server_autojoin_channels declared without arguments 2017-06-03 15:56:26 +03:00
Simmo Saan e5fe9c34c3 gui: fix gui_key_default_bindings declared without arguments 2017-06-03 15:56:26 +03:00
Sébastien Helleu da8f19bcee core: fix infinite loop when the terminal is closed on the secure password prompt (closes #1010) 2017-06-03 13:41:49 +02:00
Sébastien Helleu 240a2fc2ca doc: update Japanese auto-generated files 2017-06-03 13:20:07 +02:00
Sébastien Helleu b8684b01cc Merge pull request #1011 from l/master/translation/ja_JP
core: update Japanese translations
2017-06-03 13:19:21 +02:00
AYANOKOUZI, Ryuunosuke b67b6f3834 core: update Japanese translations 2017-06-03 09:00:00 +09:00
Sébastien Helleu 3176fd4f09 doc: update German auto-generated files 2017-06-02 20:14:38 +02:00
Sébastien Helleu 345c46133d buflist: fix typo in /help buflist 2017-06-02 20:02:04 +02:00
Nils Görs d9336d52b3 core: update German translations 2017-06-02 19:22:55 +02:00
Sébastien Helleu 6e33f286f1 buflist: fix type of IRC server/channel pointers 2017-06-02 07:50:42 +02:00
Sébastien Helleu 2da9b35acb buflist: replace IRC struct by "void *" for IRC server/channel pointers 2017-06-02 07:46:46 +02:00
Sébastien Helleu 593eee869f trigger: add "irc_server" and "irc_channel" pointers in data for IRC signal/modifier hooks 2017-06-02 07:46:17 +02:00
Sébastien Helleu eff373e73b core: add contributor in AUTHORS.adoc 2017-06-01 07:23:28 +02:00
Sébastien Helleu 840ebc9ac9 Merge pull request #1006 from mkoskar/dev2
core: remove config_look_hotlist_add_buffer_if_away completely
2017-06-01 07:22:46 +02:00
Sébastien Helleu d320b72d89 buflist: fix long mouse gestures 2017-06-01 07:21:10 +02:00
Miroslav Koskar ab6ca6b065 core: remove config_look_hotlist_add_buffer_if_away completely 2017-06-01 01:10:54 +02:00
Sébastien Helleu 8a25ac7875 buflist: add missing ${hotlist_priority} in /help buflist 2017-05-31 22:42:57 +02:00
Sébastien Helleu cdbf83c764 buflist: add missing ${number_displayed} in /help buflist 2017-05-31 22:37:00 +02:00
Sébastien Helleu d0b47b5c47 buflist: add support of char "~" in option buflist.look.sort for case insensitive comparison 2017-05-30 21:23:09 +02:00
Sébastien Helleu e6a6cc971e buflist: replace function buflist_compare_hdata_var by a call to weechat_hdata_compare 2017-05-30 20:32:40 +02:00
Sébastien Helleu 7621939a7a api: add function hdata_compare 2017-05-30 20:29:17 +02:00
Sébastien Helleu f6a8c28d2d api: add function config_option_get_string in plugin API 2017-05-30 20:28:01 +02:00
Sébastien Helleu f131b9f7de irc: fix crash on SASL authentication with mechanism ""ecdsa-nist256p-challenge" 2017-05-30 19:46:17 +02:00
Sébastien Helleu a0f1f3fd68 core: remove unused variable "index" in function eval_hdata_get_value 2017-05-28 08:25:41 +02:00
Sébastien Helleu b53741e8f4 Merge pull request #1003 from l/master/translation/ja_JP
doc: update Japanese translations
2017-05-28 08:18:58 +02:00
AYANOKOUZI, Ryuunosuke 90e6dca386 doc: update Japanese translations 2017-05-28 09:00:00 +09:00
Nils Görs 65b1edf5b5 Merge branch 'master' of https://github.com/weechat/weechat 2017-05-27 08:56:04 +02:00
Nils Görs 4a1dd35b69 doc: update German documentation 2017-05-27 08:55:39 +02:00
Sébastien Helleu a603c5e476 irc: fix memory leak in case of error in "ecdsa-nist256p-challenge" SASL mechanism 2017-05-27 08:37:05 +02:00
Sébastien Helleu b9fdcb0193 doc: add missing special values in function config_option_set for booleans/integers/colors (plugin API reference) 2017-05-26 14:07:08 +02:00
Sébastien Helleu 8062ed6e75 doc: add missing "translation missing" comment in Japanese user's guide 2017-05-25 14:35:42 +02:00
Sébastien Helleu 0e8254e25b doc: add link to chapter "SASL ECDSA-NIST256P-CHALLENGE" in chapter about Tor/SASL (user's guide) (issue #999) 2017-05-25 14:27:41 +02:00
Sébastien Helleu 07ddd31c44 doc: fix options to set for TOR/SASL in user's guide (closes #999) 2017-05-25 12:21:50 +02:00
Sébastien Helleu 323a19d73a buflist: increase size of hashtables used for string evaluation (issue #998)
This should make refresh of buflist bar item a bit faster.
2017-05-24 15:04:24 +02:00
Sébastien Helleu 02b1fe9926 buflist: fix slow switch of buffer when there are a lot of buffers opened (closes #998)
The function hdata_search (which evaluates a condition for each item in a list)
is too slow to search server and channel on each buffer. It is replaced by a
manual search in the list (using weechat_hdata_string to get the name), much
faster.
2017-05-24 14:59:50 +02:00
Sébastien Helleu 28e5018835 irc: remove unused variable in function irc_message_parse 2017-05-24 07:36:07 +02:00
Sébastien Helleu f12ed55117 doc: add missing mouse keys on buflist bar in user's guide 2017-05-23 21:19:57 +02:00
Sébastien Helleu a87e3908cf buflist: add keys F1/F2, alt+F1/alt+F2 to scroll the buflist bar 2017-05-23 09:49:46 +02:00
Sébastien Helleu c88d578d2d core: fix potential use of NULL pointer in function arraylist_clear 2017-05-22 11:29:12 +02:00
Sébastien Helleu 23ec19b8dd core: remove useless condition
Variables base_word and nick can not be NULL here.
2017-05-21 14:36:41 +02:00
Sébastien Helleu 066cc258b9 doc: update Japanese auto-generated files 2017-05-20 08:56:59 +02:00
Sébastien Helleu 67c09d799e Merge pull request #996 from l/master/translation/ja_JP
core: update Japanese translations
2017-05-20 08:56:10 +02:00
AYANOKOUZI, Ryuunosuke 68864606e1 core: update Japanese translations 2017-05-20 09:00:00 +09:00
Sébastien Helleu 925e8b79a8 core: allow index for hdata arrays in evaluation of expressions 2017-05-20 00:05:31 +02:00
Sébastien Helleu 455a0e501c core: update ChangeLog (add fix of crash in buflist)
Refers to commit b7d5392771.
2017-05-19 21:23:23 +02:00
Sébastien Helleu 1bace336bc relay: fix parsing of CAP command arguments in irc protocol (closes #995) 2017-05-19 21:21:30 +02:00
Sébastien Helleu 2ba333d478 doc: update German auto-generated files 2017-05-19 21:21:09 +02:00
Nils Görs 999de96b2a core: update German translations 2017-05-19 10:11:42 +02:00
Sébastien Helleu b522060cef buflist: add variable ${current_buffer} in bar item evaluation 2017-05-19 07:39:23 +02:00
Sébastien Helleu 138af6e7dd buflist: add missing indentation in /help buflist 2017-05-18 22:00:15 +02:00
Sébastien Helleu 2eebde035a buflist: add option "bar" in command /buflist, do not automatically add the bar when buflist is disabled (closes #994) 2017-05-18 20:34:25 +02:00
Sébastien Helleu 33ccc29a3f core: fix default value displayed in help of configure options 2017-05-18 20:27:53 +02:00
Sébastien Helleu 60c324eac5 core: fix typo in French translation of /help bar 2017-05-16 07:23:07 +02:00
Sébastien Helleu f56b38c34e script: fix typo in a comment 2017-05-15 20:34:56 +02:00
Sébastien Helleu 03a8fbc834 buflist: add a variable to store the size of arraylist 2017-05-15 20:23:42 +02:00
Sébastien Helleu 53d95cbbef Merge pull request #987 from mimi1vx/cz_up
Update czech strings
2017-05-14 07:50:50 +02:00
Ondřej Súkup cfc550a20a Update czech strings 2017-05-13 22:07:19 +02:00
Sébastien Helleu b7d5392771 buflist: fix uninitialized hdata pointer in focus callback 2017-05-13 11:52:55 +02:00
Sébastien Helleu 3cd0960255 Version 1.9-dev 2017-05-13 07:50:50 +02:00
Sébastien Helleu 664cb6598a Version 1.8 2017-05-13 07:07:57 +02:00
Sébastien Helleu 5ba10f4141 core: add chapter about options changed in ReleaseNotes 2017-05-13 07:00:45 +02:00
Sébastien Helleu 769decc98c doc: update Polish auto-generated files 2017-05-12 20:59:51 +02:00
Krzysztof Korościk 5631e30182 doc: updated polish translations 2017-05-12 20:33:59 +02:00
Krzysztof Korościk 71dc89d057 core: ipdate polish translation 2017-05-12 20:26:01 +02:00
Sébastien Helleu 9b8cc5d130 Merge pull request #986 from mimi1vx/cz_manpage
Rewerd description in czech manpage. Fix GPL3 preamble
2017-05-11 20:23:30 +02:00
Ondřej Súkup 65368c003e Reword description in czech manpage. Fix GPL3 preamble 2017-05-11 08:50:36 +02:00
Sébastien Helleu 8644ad0d4e script: remove dead assignment in function script_action_install_process_cb 2017-05-10 21:01:40 +02:00
Sébastien Helleu 9df72e5d53 core: remove dead assignment in function gui_input_history_next 2017-05-10 21:00:09 +02:00
Sébastien Helleu dd2580a1fa buflist: fix authors 2017-05-10 20:59:23 +02:00
Sébastien Helleu 505f5be3fe buflist: remove void action on variables used in the function 2017-05-10 20:58:59 +02:00
Sébastien Helleu d4259a3c9d buflist: remove unused includes 2017-05-10 20:56:52 +02:00
Sébastien Helleu 93361c95d2 doc: move note in function hook_command_run (plugin API reference) 2017-05-10 20:24:17 +02:00
Sébastien Helleu 36187a240a python: add detection of Python 3.6 2017-05-08 17:17:41 +02:00
Sébastien Helleu 070249ca3e core: move line from improvements to new features in ChangeLog 2017-05-07 14:54:33 +02:00
Sébastien Helleu 1921fd4700 doc: update German auto-generated files 2017-05-06 21:27:21 +02:00
Sébastien Helleu 9a03e554e3 doc: update auto-generated files with hdata 2017-05-06 21:26:44 +02:00
Nils Görs f7c3463c31 core: update German translations 2017-05-06 21:12:27 +02:00
Sébastien Helleu a8a3fa9f15 Version 1.8-rc1 2017-05-06 16:17:19 +02:00
Sébastien Helleu e5fd20fd25 irc: fix update of server addresses on reconnection when the evaluated content has changed (closes #925) 2017-05-06 15:57:42 +02:00
Sébastien Helleu 2867dcc45f doc: update Japanese auto-generated files 2017-05-06 14:21:17 +02:00
Sébastien Helleu b87a59701d Merge pull request #983 from l/master/translation/ja_JP
core: update Japanese translations
2017-05-06 14:20:56 +02:00
Sébastien Helleu df00926d35 core: add option weechat.completion.nick_case_sensitive (closes #981) 2017-05-06 10:18:44 +02:00
AYANOKOUZI, Ryuunosuke 19c2e14c47 core: update Japanese translations 2017-05-06 09:00:00 +09:00
Sébastien Helleu 90a9a1fb96 buflist: add option buflist.look.enabled 2017-05-05 23:24:02 +02:00
Sébastien Helleu b58d9910e3 debian: replace symbolic link by the file weechat.xpm in devel package 2017-05-05 20:51:04 +02:00
Sébastien Helleu 07b7be0357 core: fix memory leak in display of mouse event debug info 2017-05-04 07:29:24 +02:00
Sébastien Helleu ca9e4697f5 doc: update German auto-generated files 2017-05-03 23:22:42 +02:00
Nils Görs 1ed169cb2b core: update German translations 2017-05-03 23:17:34 +02:00
Sébastien Helleu b9d4fc7e18 buflist: add all buffer hdata in focus callback 2017-05-03 20:40:33 +02:00
Sébastien Helleu 0537fe0a83 doc: update Japanese auto-generated files 2017-05-02 21:20:46 +02:00
Sébastien Helleu cac3546fcb Merge pull request #977 from l/master/translation/ja_JP
core: update Japanese translations
2017-05-02 21:19:49 +02:00
Sébastien Helleu d73b54758c irc: add option "open" in command /server (closes #966) 2017-05-02 07:38:45 +02:00
AYANOKOUZI, Ryuunosuke 676c8ccaa2 core: update Japanese translations 2017-05-02 09:00:00 +09:00
Sébastien Helleu b7a6d6813f core: remove issue #608 from ChangeLog 2017-05-01 16:21:36 +02:00
Sébastien Helleu 90752a0458 buflist: fix sort of merged and inactive buffers 2017-04-30 09:59:44 +02:00
Sébastien Helleu 00eddd3a00 doc: add numeric comparison example in function string_eval_expression (plugin API reference) 2017-04-29 18:17:49 +02:00
Sébastien Helleu 1afa19a6ee core: add wildcard matching operators in ChangeLog 2017-04-29 18:03:36 +02:00
Sébastien Helleu ec11a59552 core: update ChangeLog (closes #611) 2017-04-29 17:56:41 +02:00
Sébastien Helleu b3073054a4 doc: add list of logical and comparison operators in function string_eval_expression (plugin API reference) 2017-04-29 17:54:53 +02:00
Sébastien Helleu 1fc06ba0ac core: improve translation of /help eval 2017-04-29 17:39:50 +02:00
Sébastien Helleu c491241989 core: update translations 2017-04-29 17:08:31 +02:00
Simmo Saan 1329dfb57a core: add wildcard matching operators to eval (closes #608) 2017-04-29 17:04:44 +02:00
Sébastien Helleu a9f6c34fae core: add buflist plugin in ReleaseNotes 2017-04-28 08:27:42 +02:00
Tobias Stoeckmann b297c2d56e irc: fix crash in case of invalid server reply during SASL authentication with dh-blowfish or dh-aes mechanism
These mechanisms are not recommended anyway because they are considered as
insecure.
2017-04-27 21:20:29 +02:00
Sébastien Helleu 9ccb798bcd doc: fix OFTC URL in user's guide 2017-04-27 21:16:58 +02:00
Sébastien Helleu 0655d2d9c4 doc: update German auto-generated files 2017-04-27 08:27:40 +02:00
Sébastien Helleu 4a2ad84230 core: add version 1.7.1 in weechat.spec 2017-04-27 08:27:40 +02:00
Sébastien Helleu 497dc3cd44 core: add CVE IDs in ChangeLog 2017-04-27 08:27:26 +02:00
Nils Görs 9de17f0cb4 Merge branch 'master' of https://github.com/weechat/weechat 2017-04-26 22:42:39 +02:00
Nils Görs cd3908ccd2 core: update German translations 2017-04-26 22:42:12 +02:00
Sébastien Helleu 5b78cb2a7b tests: fix compilation warning on FreeBSD 2017-04-26 22:28:03 +02:00
Sébastien Helleu a21a31e3ca buflist: add support of hdata "irc_server" and "irc_channel" in sort option (closes #968) 2017-04-26 20:22:06 +02:00
Sébastien Helleu ef7851ab5c Merge pull request #955 from arza-zara/weechat-fi
doc: add non-official support channel #weechat-fi in user's guide
2017-04-25 21:24:57 +02:00
Sébastien Helleu 8edca0dd75 buflist: add pointers to IRC server and channel
New pointers in evaluated formats:

- irc_server: IRC server
- irc_channel: IRC channel
2017-04-25 21:07:15 +02:00
Sébastien Helleu 4049c6c8a2 doc: update auto-generated files with buflist options 2017-04-25 20:39:30 +02:00
Sébastien Helleu a10b2bc36a buflist: add option buflist.format.nick_prefix 2017-04-25 20:31:08 +02:00
Sébastien Helleu 49cdbaab38 core: fix check of condition in ${if:...} (evaluated strings) 2017-04-25 19:41:49 +02:00
Sébastien Helleu 2a43f45947 core: fix command /cursor stop (do not toggle cursor mode) (closes #964) 2017-04-25 07:20:34 +02:00
Sébastien Helleu a96d27f236 core: add new cut formats in function comment 2017-04-25 07:19:02 +02:00
Sébastien Helleu 112bebcddf core: add a way to count the suffix length in max chars displayed in cut of string ("cut:" and "cutscr:") (closes #963)
The format to use is one of:

- ${cut:+max,suffix,string}
- ${cutscr:+max,suffix,string}

With the "+" before max, WeeChat ensures there are at most "max" chars in
output, including the length of suffix string.
2017-04-24 22:37:49 +02:00
Sébastien Helleu 0470a71af9 doc: update German auto-generated files 2017-04-24 22:34:11 +02:00
Nils Görs cce2954263 core: update German translations 2017-04-24 22:22:05 +02:00
Sébastien Helleu 671c216eb3 buflist: add option buflist.format.indent 2017-04-23 14:49:04 +02:00
Sébastien Helleu 2606b8a5a3 script: remove option script.scripts.url_force_https, use HTTPS by default in option script.scripts.url (issue #253) 2017-04-23 14:11:27 +02:00
Sébastien Helleu ffdf0ec687 core: update stable version in script version.sh 2017-04-22 21:29:08 +02:00
Sébastien Helleu 10917530d5 core: add version 1.7.1 in ChangeLog and ReleaseNotes 2017-04-22 21:21:26 +02:00
Sébastien Helleu 3038380d25 doc: update Japanese auto-generated files 2017-04-22 21:15:31 +02:00
Sébastien Helleu 46ff6ba794 Merge pull request #961 from l/master/translation/ja_JP
core: update Japanese translations
2017-04-22 21:14:17 +02:00
AYANOKOUZI, Ryuunosuke d4f83a11e9 core: update Japanese translations 2017-04-23 09:00:00 +09:00
Sébastien Helleu 94355e2e38 core: ensure length is not negative in function string_strndup 2017-04-22 15:15:54 +02:00
Sébastien Helleu 572678100b core: update ChangeLog 2017-04-22 15:15:49 +02:00
Sébastien Helleu 2756da028c core: add contributor in AUTHORS.adoc 2017-04-22 15:13:05 +02:00
Tobias Stoeckmann 2fb346f25f irc: fix parsing of DCC filename 2017-04-22 15:10:53 +02:00
Sébastien Helleu 628313a663 doc: update auto-generated files with buflist options 2017-04-21 22:00:38 +02:00
Sébastien Helleu 90029f9abd doc: fix translation of command "eval" in user's guide 2017-04-21 21:59:52 +02:00
Sébastien Helleu 2c6985c7e7 core: add missing space in German translation 2017-04-21 21:57:32 +02:00
Nils Görs 061f33b9b8 core: update German translations 2017-04-21 21:11:30 +02:00
Nils Görs 0a11184984 core: update German translations 2017-04-21 18:58:22 +02:00
Sébastien Helleu 5a8fb043ab core: add link to function color (plugin API reference) in /help eval 2017-04-21 07:36:22 +02:00
Sébastien Helleu 669ca77c41 buflist: add example in /help buflist.look.display_conditions 2017-04-20 22:00:17 +02:00
Sébastien Helleu c946b3e361 buflist: remove foreground color from default value of option buflist.format.buffer_current (closes #954)
The foreground is not needed because it is overriden by the hotlist color.
2017-04-20 21:50:25 +02:00
Sébastien Helleu 91c517bbf1 buflist: fix refresh of buflist bar item when the option buflist.look.display_conditions is reset 2017-04-20 21:46:24 +02:00
arza c3b85da2d0 doc: add non-official support channel #weechat-fi in user's guide 2017-04-18 03:45:08 +03:00
Sébastien Helleu 084f9d7b52 core: add styles in Contributing 2017-04-09 07:41:59 +02:00
Sébastien Helleu 1e98c9f1c2 core: add actual/expected result in required info 2017-04-09 07:39:12 +02:00
Sébastien Helleu 67fe4beb70 core: update translations 2017-04-08 14:53:32 +02:00
arza 442940942a core: fix typo in /help buffer 2017-04-08 15:35:47 +03:00
Sébastien Helleu 45de475c74 Merge pull request #944 from arza-zara/duplicate_sigquit
core: remove duplicate util_catch_signal for SIGQUIT
2017-04-07 22:31:34 +02:00
Sébastien Helleu a4dffb1915 irc: fix double decoding of IRC colors in messages sent/displayed by commands /msg and /query (issue #943) 2017-04-07 22:28:48 +02:00
arza e7edebfaee core: remove duplicate util_catch_signal for SIGQUIT 2017-04-07 20:46:47 +03:00
Sébastien Helleu fab7a8bdfd core: add Curl options for versions 7.50.0 to 7.52.0 2017-04-06 07:23:52 +02:00
Sébastien Helleu 2ab0b3b0a9 doc: remove trailing whitespace in docs 2017-04-05 08:17:32 +02:00
Sébastien Helleu a0e45f67f1 core: build weechat-guile package on Cygwin
Guile 2.0 is now available in Cygwin and then the weechat guile plugin can be
built.
2017-04-04 07:15:20 +02:00
Sébastien Helleu aae36f4641 buflist: move set of "nick_prefix" in hashtable 2017-04-04 07:13:50 +02:00
Sébastien Helleu 36661af744 doc: update German auto-generated files 2017-04-04 07:13:50 +02:00
Nils Görs f12ab59a78 core: update German translations 2017-04-03 21:32:15 +02:00
Sébastien Helleu a86a32334a doc: add min WeeChat version in function string_eval_expression (plugin API reference) 2017-04-02 15:54:20 +02:00
Sébastien Helleu 4c8d37e09f core: fix styles in ChangeLog 2017-04-02 15:44:13 +02:00
Sébastien Helleu 4a23309f22 doc: update Japanese auto-generated files 2017-04-02 14:12:04 +02:00
Sébastien Helleu efea57365c Merge pull request #942 from l/master/translation/ja_JP
core: update Japanese translations
2017-04-02 14:11:29 +02:00
Sébastien Helleu c652598ad7 api: fix memory leak in function string_dyn_free()
Bug was introduced by commit af138840b3.
2017-04-02 08:39:29 +02:00
Sébastien Helleu 20bb762e28 buflist: add options buflist.look.nick_prefix and buflist.look.nick_prefix_empty
The option buflist.look.signals_refresh is not an extra list of signals for
refresh, so it is empty by default.
The default list of signals is handled directly by buflist and not visible to
the user.
2017-04-02 08:37:47 +02:00
AYANOKOUZI, Ryuunosuke 6948d22e40 core: update Japanese translations 2017-04-02 09:00:00 +09:00
Sébastien Helleu e6db6185a7 core: move line from new features to improvements in ChangeLog 2017-04-01 14:17:39 +02:00
Sébastien Helleu b29f18d7ea aspell: add options to control delimiters in suggestions (closes #940)
New options:
- aspell.color.suggestion_delimiter_dict
- aspell.color.suggestion_delimiter_word
- aspell.look.suggestion_delimiter_dict
- aspell.look.suggestion_delimiter_word

Option renamed:
- aspell.color.suggestions -> aspell.color.suggestion
2017-04-01 12:26:48 +02:00
Sébastien Helleu 6ab7af705e tests: fix tests on dynamic strings 2017-04-01 12:16:12 +02:00
Sébastien Helleu af138840b3 api: return pointer to string in function string_dyn_free() if argument "free_string" is 0 2017-04-01 12:04:28 +02:00
Sébastien Helleu f855b6b0f3 core: update ChangeLog 2017-03-31 21:11:17 +02:00
Sébastien Helleu d61dfac5b5 core: replace python dependency by python2-devel for Cygwin 2017-03-31 21:08:02 +02:00
Sébastien Helleu 2ab3015114 script: move default mouse keys for script plugin from core to script-mouse.c 2017-03-31 21:07:32 +02:00
Sébastien Helleu 92fc469247 buflist: add key "__quiet" in hashtable for function key_bind 2017-03-31 21:05:48 +02:00
Sébastien Helleu 36eb3ee343 api: add special key "__quiet" in function key_bind 2017-03-31 21:04:21 +02:00
Sébastien Helleu 85bb23f8cb core: update ChangeLog 2017-03-30 22:15:16 +02:00
Sébastien Helleu bb00b6b8fb core: add ${re:#} to get the index of last group captured in evaluation of expressions 2017-03-30 22:13:14 +02:00
Sébastien Helleu f0c8da2f05 buflist: add mouse support
New options:
- buflist.look.mouse_jump_visited_buffer
- buflist.look.mouse_move_buffer
- buflist.look.mouse_wheel

New keys added by buflist plugin:
- @item(buflist):button1*      => hsignal:buflist_mouse
- @item(buflist):button2*      => hsignal:buflist_mouse
- @bar(buflist):ctrl-wheelup   => hsignal:buflist_mouse
- @bar(buflist):ctrl-wheeldown => hsignal:buflist_mouse
2017-03-30 20:39:37 +02:00
Sébastien Helleu 467f482ea6 core: make "callback_cmp" optional in call to function arraylist_new()
If no callback is given, a default callback is used, which just compares
pointers.
2017-03-30 20:35:16 +02:00
Sébastien Helleu 0436fff31b buflist: add option buflist.format.number 2017-03-29 20:00:36 +02:00
Sébastien Helleu 454a4b14b2 doc: remove "translation missing" tag in French user's guide 2017-03-29 19:59:59 +02:00
Sébastien Helleu eb2d0ac58a tests: add tests on combining characters in cut/cutscr (evaluation of expression) 2017-03-28 22:09:11 +02:00
Sébastien Helleu 3045021430 core: fix cut of chars in "cutscr" of evaluated strings
This fixes two problems:
- stop before max char displayed with wide chars
- preserve combining chars in the output

Before the fix (wrong):

>> ${cutscr:3,+,こんにちは世界}
== [こん+]
>> ${cutscr:1,+,a${\u0308}}
== [a+]

After the fix (OK):

>> ${cutscr:3,+,こんにちは世界}
== [こ+]
>> ${cutscr:1,+,a${\u0308}}
== [ä]
2017-03-28 20:45:31 +02:00
Sébastien Helleu ee82ba7461 doc: fix note about libncursesw5-dev dependency in user's guide 2017-03-27 21:40:02 +02:00
Sébastien Helleu 0fbca41d88 doc: rewrite note about libncursesw5-dev dependency in user's guide 2017-03-27 21:32:01 +02:00
Sébastien Helleu f99c866f35 core: add cut of string with max chars displayed in evaluation of expressions
The syntax is: ${cutscr:max,suffix,string}.
The string is cut after max chars displayed on screen. If the string is cut,
the optional suffix is added after.
2017-03-27 21:14:51 +02:00
Sébastien Helleu f37ecbfefd Merge pull request #938 from arza-zara/buffer_get_localvar
core: support local variables in /buffer get
2017-03-26 15:31:59 +02:00
Sébastien Helleu 7d47652c99 doc: update Japanese auto-generated files 2017-03-26 15:31:30 +02:00
Sébastien Helleu 86128bdc87 Merge pull request #939 from l/master/translation/ja_JP
core: update Japanese translations
2017-03-26 15:28:11 +02:00
Sébastien Helleu 532216e760 relay: check buffer pointer received in "sync" and "desync" commands (weechat protocol) (closes #936) 2017-03-26 15:15:56 +02:00
Sébastien Helleu 7ceacabd46 relay: remove buffer from synchronized buffers when it is closed (fix memory leak) 2017-03-26 08:55:08 +02:00
Sébastien Helleu df833d9ba8 doc: fix some translations of "library" in French 2017-03-26 08:20:20 +02:00
Sébastien Helleu d4618e45cb core: fix typo librairies -> libraries 2017-03-26 08:19:26 +02:00
arza 24fd69e42c core: support local variables in /buffer get 2017-03-26 08:14:41 +03:00
AYANOKOUZI, Ryuunosuke 5ce678bf75 core: update Japanese translations 2017-03-26 09:00:00 +09:00
Sébastien Helleu 9d0ae31fce buflist: add option buflist.look.display_conditions 2017-03-25 22:14:32 +01:00
Sébastien Helleu 9816c8cbce buflist: add option buflist.look.signals_refresh 2017-03-25 21:39:59 +01:00
Sébastien Helleu 370fbeb5a3 doc: add command /buflist in user's guide 2017-03-25 15:20:31 +01:00
Sébastien Helleu fb66eeec79 core: update translations 2017-03-25 15:13:18 +01:00
Sébastien Helleu f54ed11f1d core: update ChangeLog 2017-03-25 15:13:18 +01:00
Sébastien Helleu 98487253ca buflist: add command /buflist 2017-03-25 15:13:13 +01:00
Sébastien Helleu 887362dfd9 buflist: add formats for hotlist
New options:
- buflist.format.hotlist
- buflist.format.hotlist_separator
2017-03-25 14:19:48 +01:00
Sébastien Helleu 6f46f65c73 irc: fix type of values for hashtable extra_vars in irc_server_get_default_msg 2017-03-25 14:19:48 +01:00
Sébastien Helleu e113fe2440 core: fix type of values for hashtables extra_vars and options in gui_bar_check_conditions 2017-03-25 14:19:48 +01:00
Sébastien Helleu 6b8c5381d4 doc: add buflist plugin in FAQ 2017-03-25 14:19:48 +01:00
Sébastien Helleu 64a8c6d2ae doc: add buflist plugin in developer's guide 2017-03-25 14:19:48 +01:00
Sébastien Helleu b77e0a2c6f doc: add buflist plugin in user's guide 2017-03-25 14:19:48 +01:00
Sébastien Helleu 7f69f88468 buflist: add option "buflist.format.lag" and variable "format_lag" for buffer line format 2017-03-25 14:19:48 +01:00
Sébastien Helleu 1963191700 core: prevent infinite loop in evaluation of expression with extra_vars_eval
When extra variables are evaluated, to prevent infinite loop if the evaluated
variable is calling itself, it is removed from hashtable "extra_vars" before
evaluation.
2017-03-25 14:19:48 +01:00
Sébastien Helleu d31e4f1d9a irc: send signal "irc_server_lag_changed", store lag in server buffer
The lag is stored in the local variable "lag" of the server buffer.
When there is no lag, the local variable does not exist.
2017-03-25 14:19:48 +01:00
Sébastien Helleu 9a8ec36cbd core: add cut of string in evaluation of expressions
The syntax is: ${cut:max,suffix,string}.
The string is cut after max chars. If the string is cut, the optional suffix is
added after.
2017-03-25 14:19:48 +01:00
Sébastien Helleu db0ecc07fe buflist: use hotlist pointer in buffer hdata 2017-03-25 14:19:48 +01:00
Sébastien Helleu a8bf5eb7ba core: add hotlist pointer in buffer structure 2017-03-25 14:19:48 +01:00
Sébastien Helleu 4ef8e61ca5 buflist: add option buflist.look.sort 2017-03-25 14:18:19 +01:00
Sébastien Helleu 77af4e0a87 api: add arraylist functions
New functions:
- arraylist_new
- arraylist_size
- arraylist_get
- arraylist_search
- arraylist_insert
- arraylist_add
- arraylist_remove
- arraylist_clear
- arraylist_free
2017-03-25 14:18:19 +01:00
Sébastien Helleu da0fea8a60 buflist: add hotlist format options (for color according to hotlist priority) 2017-03-25 14:18:19 +01:00
Sébastien Helleu c18be9da21 buflist: load plugin after some other plugins by shifting plugins priority 2017-03-25 14:18:19 +01:00
Sébastien Helleu ce5dafa6dc doc: add buflist options in documentation generator 2017-03-25 14:18:19 +01:00
Sébastien Helleu abbfc9664a doc: add file buflist.conf in man page 2017-03-25 14:18:19 +01:00
Sébastien Helleu edfeb60e32 buflist: new plugin "buflist" (bar with list of buffers) 2017-03-25 14:18:19 +01:00
Sébastien Helleu 83117f8d2a core: add ternary operator (condition) in evaluation of expressions 2017-03-25 14:18:19 +01:00
Sébastien Helleu 07d16903f3 api: add dynamic string functions (string_dyn_*)
New functions:
- string_dyn_alloc
- string_dyn_copy
- string_dyn_concat
- string_dyn_free
2017-03-25 14:18:19 +01:00
Sébastien Helleu a5b00ec979 trigger: check that regex pointers are not NULL in function "trigger_regex_free" 2017-03-25 14:09:01 +01:00
Sébastien Helleu 97ca653a43 script: check that script pointer is not NULL in function "script_repo_free" 2017-03-25 14:08:38 +01:00
Sébastien Helleu 9e0d103ff7 relay: check that pointers received in arguments are not NULL in "free" functions
Functions:
- relay_irc_free
- relay_client_outqueue_free
- relay_raw_message_free
- relay_weechat_msg_free
- relay_weechat_nicklist_item_free
- relay_weechat_nicklist_free
- relay_weechat_free
2017-03-25 14:07:46 +01:00
Sébastien Helleu d4c27aa7e2 logger: check that logger buffer pointer is not NULL in function "logger_buffer_free" 2017-03-25 14:06:46 +01:00
Sébastien Helleu f15ea72da3 irc: check that pointers received in arguments are not NULL in "free" functions
Functions:
- irc_channel_nick_speaking_time_free
- irc_ignore_free
- irc_notify_free
- irc_raw_message_free
- irc_server_outqueue_free
2017-03-25 14:05:55 +01:00
Sébastien Helleu 70d110026c alias: check that alias pointer is not NULL in function "alias_free" 2017-03-25 14:05:03 +01:00
Sébastien Helleu 0d059add9a core: check that pointers received in arguments are not NULL in "free" functions
Functions:
- hdata_free
- infolist_var_free
- infolist_item_free
- infolist_free
- string_shared_free
- gui_window_objects_free
- gui_color_free
- gui_completion_free
- gui_filter_free
- gui_history_buffer_free
- gui_hotlist_free
- gui_key_free
- gui_lines_free
- gui_line_tags_free
- gui_line_free
- gui_window_tree_free
- gui_window_scroll_free
2017-03-25 14:01:50 +01:00
Sébastien Helleu eebb0547e2 doc: update Japanese auto-generated files 2017-03-20 07:24:26 +01:00
Sébastien Helleu 8648ee651e Merge pull request #927 from l/master/translation/ja_JP
core: update Japanese translations
2017-03-20 07:21:26 +01:00
AYANOKOUZI, Ryuunosuke 45e30f9c82 core: update Japanese translations 2017-03-20 09:00:00 +09:00
Sébastien Helleu 184891fd7b doc: update auto-generated files with irc options 2017-03-12 21:39:13 +01:00
Nils Görs 3fd8012729 core: update German translations 2017-03-12 21:35:04 +01:00
Sébastien Helleu e4e18d106e doc: add Gnutls CA file path for OS X (with homebrew openssl) in FAQ (closes #739) 2017-03-12 20:58:09 +01:00
Sébastien Helleu 5661b4da74 core: fix typo: refreshs -> refreshes 2017-03-12 18:33:53 +01:00
Sébastien Helleu b372a34b71 doc: list some remote interfaces for weechat relay protocol in user's guide 2017-03-04 23:26:00 +01:00
Sébastien Helleu 60a40c2ba2 doc: update Japanese auto-generated files 2017-03-04 21:58:35 +01:00
Sébastien Helleu 155fa5c1e3 Merge pull request #918 from l/master/translation/ja_JP
core: update Japanese translations
2017-03-04 21:56:44 +01:00
AYANOKOUZI, Ryuunosuke 3293070499 core: update Japanese translations 2017-03-05 09:00:00 +09:00
Sébastien Helleu 77b229ab64 core: add issue #122 in ChangeLog 2017-02-28 19:40:18 +01:00
Sébastien Helleu f4c2328abf core: send signal "signal_sigwinch" after refreshs (issue #902)
Sending the signal after the refreshs will let scripts receive the good
size for windows/bars/terminal, ie the size computed with the new
terminal size.
2017-02-22 07:40:55 +01:00
Sébastien Helleu e6d5d791cd irc: fix parsing of message 324 (modes) when there is a colon before the modes (closes #913) 2017-02-19 08:12:25 +01:00
Sébastien Helleu e52400841a doc: update German auto-generated files 2017-02-19 07:44:39 +01:00
Nils Görs a54e40ea14 core: update German translations 2017-02-18 23:54:46 +01:00
Sébastien Helleu 1c9446e594 core: add issues #579, #15 and #577 in ChangeLog 2017-02-18 17:38:37 +01:00
Sébastien Helleu 12e2d9995c irc: add function irc_server_get_max_modes 2017-02-18 17:34:06 +01:00
Sébastien Helleu e1eeb22945 irc: update error message, update translations 2017-02-18 14:48:02 +01:00
Sébastien Helleu 51b2352786 irc: send current modes/masks if next mask doesn't fit in the string 2017-02-18 14:41:52 +01:00
Sébastien Helleu 06d73e4b96 Merge remote-tracking branch 'origin/pr/579' 2017-02-18 14:31:49 +01:00
Sébastien Helleu ffcf135593 core: update ChangeLog 2017-02-18 13:53:55 +01:00
Sébastien Helleu 1adb6075fa irc: compact some code 2017-02-18 13:14:50 +01:00
Sébastien Helleu cf1010e177 irc: move initialization of variables "inclusive" 2017-02-18 13:09:27 +01:00
Sébastien Helleu 8282567d40 core: add issue #572 in ChangeLog 2017-02-18 13:08:12 +01:00
Sébastien Helleu 7fbdc08f3a core: update translations and auto-generated doc files 2017-02-18 13:06:15 +01:00
Sébastien Helleu ac007a1efd Merge remote-tracking branch 'origin/pr/572' 2017-02-18 13:04:00 +01:00
Sébastien Helleu d7f72c2a1c Merge pull request #911 from l/master/translation/ja_JP
core: update Japanese translations
2017-02-18 08:32:34 +01:00
AYANOKOUZI, Ryuunosuke 0fd8c00b92 core: update Japanese translations 2017-02-18 09:00:00 +09:00
Nils Görs b8a399ced9 doc: update German documentation 2017-02-11 19:57:11 +01:00
Sébastien Helleu 50b0fa1cb1 Merge pull request #907 from haavard/master
doc: fix examples with localvar_del
2017-02-10 19:16:58 +01:00
Sébastien Helleu e76471a2e0 doc: update instructions to connect to freenode via Tor (user's guide) (closes #908) 2017-02-10 07:56:12 +01:00
Håvard Pettersson dd440b6805 doc: fix examples with localvar_del 2017-02-09 00:11:27 -08:00
Sébastien Helleu d6977490d0 core: fix delayed refresh when the signal SIGWINCH is received (terminal resized) (closes #902)
This fixes a regression introduced in version 1.7 by changes on signal
handlers, commit 018b969381.
2017-02-04 08:06:59 +01:00
Nils Görs 0586413ede core: update German translations 2017-02-03 22:33:26 +01:00
Sébastien Helleu 2437107e35 core: add last start date in output of command /version after at least one /upgrade (closes #903) 2017-02-03 22:19:20 +01:00
Sébastien Helleu 0ef979a54a core: update ChangeLog 2017-01-29 14:13:57 +01:00
Sébastien Helleu 24a15e8b95 irc: reorder conditions for mode smart filtering, add a comment 2017-01-29 14:08:25 +01:00
Sébastien Helleu 71b6db5583 Merge pull request #897 from arza-zara/smart_mode
irc: don't smart filter modes given to you (closes #530)
2017-01-29 13:38:54 +01:00
Sébastien Helleu 661c8b9900 doc: update Japanese auto-generated files 2017-01-29 11:25:46 +01:00
Sébastien Helleu 78429c549a Merge pull request #898 from l/master/translation/ja_JP
core: update Japanese translations
2017-01-29 11:25:04 +01:00
arza 27e949d974 irc: don't smart filter modes given to you (closes #530) 2017-01-29 11:13:59 +02:00
AYANOKOUZI, Ryuunosuke 8971f001b4 core: update Japanese translations 2017-01-29 09:00:00 +09:00
Nils Görs 658b166a41 doc: update German documentation 2017-01-27 23:46:57 +01:00
Sébastien Helleu e8e7a6392e core: add contributor in AUTHORS.adoc 2017-01-25 07:37:32 +01:00
Sébastien Helleu d3da29ba51 core: update ChangeLog 2017-01-25 07:37:09 +01:00
Sébastien Helleu 8e160c31fe Merge pull request #895 from radhermit/ruby2.4
core: add detection for Ruby 2.4
2017-01-25 07:33:33 +01:00
Tim Harder 9ed4f2a9a6 core: add detection for Ruby 2.4 2017-01-24 14:33:59 -05:00
Sébastien Helleu 0e0d665671 core: add task #11461 in ChangeLog 2017-01-22 15:28:37 +01:00
Sébastien Helleu 3c29cff2a5 core, alias: add xgettext comment on some command help strings
The help on commands /window and /alias contain percent chars, so we
have to force xgettext to NOT use "c-format", using the string
"xgettext:no-c-format".
2017-01-22 13:50:05 +01:00
Nils Görs 9a35a07d86 core: update German translations 2017-01-22 10:22:29 +01:00
Sébastien Helleu 19504d30e5 core: fix style in ChangeLog 2017-01-22 09:41:42 +01:00
Sébastien Helleu f250f72208 core: add contributor in AUTHORS.adoc 2017-01-22 09:36:27 +01:00
Sébastien Helleu 49fb896a96 core: update ChangeLog 2017-01-22 09:35:47 +01:00
Sébastien Helleu 459f58f6aa core: add new resize prefix (h/v) and examples of resize in /help window 2017-01-22 09:27:34 +01:00
raspbeguy 1b23cd3a47 core: add resize of window parents (closes #893) 2017-01-22 09:27:16 +01:00
Sébastien Helleu 2f2b04e139 core: add contributor in AUTHORS.adoc 2017-01-15 14:45:26 +01:00
Romero B. de S. Malaquias 761ac58aa2 fifo: remove conditional directive breaking condition (closes #875) 2017-01-15 14:45:18 +01:00
Sébastien Helleu 9eafa1e461 core: move the build status on a separate line in README 2017-01-15 11:53:31 +01:00
Sébastien Helleu c51aa7960c core: fix compilation on FreeBSD with autotools (issue #276) 2017-01-15 10:44:11 +01:00
Sébastien Helleu 9cdc75abd4 Version 1.8-dev 2017-01-15 08:36:28 +01:00
Simmo Saan 61bede8805 irc: add support for IRCv3.2 invite-notify
irc: add nick tag to numeric 341 for consistency
2015-12-30 16:57:44 +02:00
Simmo Saan 49ce989de6 gui: fix separator overlap check for deeply nested windows 2015-12-22 10:39:58 +02:00
Simmo Saan 9cc68b641b gui: fix window separators not respecting window splits 2015-12-21 17:41:38 +02:00
Simmo Saan 93d2dbf3e1 gui: add missing line pointer to long words split across lines (closes #617)
Displaying a word which was forced to be split across lines added the new
coords without pointer to the original line. This made them unquotable in
cursor mode.
2015-12-03 12:00:22 +02:00
Simmo Saan bcb7ac7777 gui: fix focus data being offset when prefix_align is none (closes #610)
window->coords_x_message stored a single x coordinate for the entire
window which was used for message position calculation. Such approach
does not work when prefix_align is none, thus now the x coordinate in
question is exactly calculated for a line individually.
2015-12-03 11:57:09 +02:00
Simmo Saan c205aae269 irc: disallow /quiet, /unquiet on servers without support 2015-11-07 14:53:29 +02:00
Simmo Saan 2ef5d654dc irc: make /ban, /unban, /quiet, /unquiet send multiple at once (closes #15)
irc: make /quiet, /unquiet honor ban_mask_default (closes #577)
2015-11-07 14:21:00 +02:00
Simmo Saan e1f296857e irc: add inclusive behavior to /allchan, /allpv, /allserv 2015-11-03 12:49:21 +02:00
1041 changed files with 197619 additions and 84790 deletions
-1
View File
@@ -5,5 +5,4 @@ debian-devel export-ignore
debian-stable export-ignore
weechat.spec export-ignore
.mailmap export-ignore
tests/ubuntu/ export-ignore
tools/build-debian.sh export-ignore
+1
View File
@@ -0,0 +1 @@
custom: https://weechat.org/donate/
+43
View File
@@ -0,0 +1,43 @@
---
name: Bug report
about: Create a bug report (please do not report security issues here)
labels: bug
---
<!-- Please do not report any security issue here, see file Contributing.adoc -->
## Bug summary
## Steps to reproduce
1. 
2. 
3. 
## Current behavior
## Expected behavior
## Suggested solutions
## Additional information
---
<!-- MANDATORY INFO: -->
- WeeChat version: 
- OS, distribution and version: 
- Terminal: 
- Terminal multiplexer (screen/tmux/…/none): 
@@ -0,0 +1,8 @@
---
name: Feature request
about: Request a new feature / enhancement
labels: feature
---
## Feature description
+15
View File
@@ -0,0 +1,15 @@
---
name: Question
about: Ask a question (please read first FAQ and docs)
labels: question
---
## Question
---
- WeeChat version: 
- OS, distribution and version: 
+73
View File
@@ -0,0 +1,73 @@
name: CI
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
config:
- { name: "cmake_gcc", cc: "gcc", cxx: "g++", tool: "cmake", args: "" }
- { name: "cmake_gcc_py2", cc: "gcc", cxx: "g++", tool: "cmake", args: "-DENABLE_PYTHON2=ON" }
- { name: "cmake_gcc_coverage", cc: "gcc", cxx: "g++", tool: "cmake", args: "-DENABLE_CODE_COVERAGE=ON" }
- { name: "cmake_clang", cc: "clang", cxx: "clang++", tool: "cmake", args: "" }
- { name: "autotools_gcc", cc: "gcc", cxx: "g++", tool: "autotools", args: "" }
- { name: "autotools_clang", cc: "clang", cxx: "clang++", tool: "autotools", args: "" }
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get --yes --no-install-recommends install devscripts equivs python-pip libenchant-dev autopoint cmake lcov pkg-config libncursesw5-dev gem2deb libperl-dev python-dev python3-dev libaspell-dev liblua5.3-dev tcl8.6-dev guile-2.0-dev libv8-dev libcurl4-gnutls-dev libgcrypt20-dev libgnutls28-dev zlib1g-dev curl libcpputest-dev php7.4-dev libphp7.4-embed libargon2-0-dev libsodium-dev pylint3 asciidoctor
sudo -H pip install --ignore-installed msgcheck
- name: Test patches
run: ./tools/build-debian.sh test-patches
- name: Check gettext files
run: msgcheck po/*.po
- name: Check Python scripts
run: |
pylint3 --additional-builtins=_ doc/docgen.py
pylint3 tests/scripts/python/testapigen.py
pylint3 tests/scripts/python/testapi.py
pylint3 tests/scripts/python/unparse.py
- name: Build and run tests
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
BUILDTOOL: ${{ matrix.config.tool }}
BUILDARGS: ${{ matrix.config.args }}
run: ./tools/build-test.sh
- name: Run WeeChat
env:
TERM: xterm-256color
run: |
weechat --help
weechat-curses --help
weechat --colors
weechat --license
weechat --version
weechat --temp-dir --run-command "/debug dirs;/debug libs" --run-command "/quit"
- name: Code coverage
if: ${{ matrix.config.name == 'cmake_gcc_coverage' }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
cd build-tmp-*
lcov --directory . --capture --output-file coverage.info
lcov --remove coverage.info '/usr/*' --output-file coverage.info
lcov --list coverage.info
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo 'Codecov error'
+2 -1
View File
@@ -16,7 +16,8 @@
ABOUT-NLS
autom4te*
build*/*
build/*
builddir/*
compile
config.guess
config.h
+1 -1
View File
@@ -11,7 +11,7 @@ Sébastien Helleu <flashcode@flashtux.org> <flashcode>
Sébastien Helleu <flashcode@flashtux.org> <uid67137>
Nils Görs <weechatter@arcor.de>
Ryuunosuke Ayanokouzi <i38w7i3@yahoo.co.jp>
Krzysztof Korościk <soltys1@gmail.com> <soltys@szluug.org>
Krzysztof Korościk <soltys1@gmail.com> <soltys@szluug.org> <soltys@soltys.info>
Marco Paolone <marcopaolone@gmail.com>
<marcopaolone@gmail.com> <marco@DrB4tch.sitecomwl601>
<mikaela.suomalainen@outlook.com> <mkaysi@outlook.com>
+32 -25
View File
@@ -1,39 +1,46 @@
dist: bionic
sudo: required
language: c
compiler:
- gcc
- clang
sudo: required
dist: trusty
env:
- BUILDTOOL="cmake" BUILDARGS=""
- BUILDTOOL="cmake" BUILDARGS="-DENABLE_PYTHON3=ON"
- BUILDTOOL="cmake" BUILDARGS="-DENABLE_GNUTLS=OFF"
- BUILDTOOL="autotools" BUILDARGS=""
- BUILDTOOL="autotools" BUILDARGS="--enable-python3"
- BUILDTOOL="autotools" BUILDARGS="--disable-gnutls"
- CC="gcc" CXX="g++" BUILDTOOL="cmake" BUILDARGS=""
- CC="gcc" CXX="g++" BUILDTOOL="cmake" BUILDARGS="-DENABLE_PYTHON2=ON"
# - CC="gcc" CXX="g++" BUILDTOOL="cmake" BUILDARGS="-DENABLE_CODE_COVERAGE=ON" CODECOVERAGE="1"
- CC="gcc" CXX="g++" BUILDTOOL="autotools" BUILDARGS=""
- CC="gcc" CXX="g++" BUILDTOOL="autotools" BUILDARGS="--enable-python2"
- CC="clang" CXX="clang++" BUILDTOOL="cmake" BUILDARGS=""
- CC="clang" CXX="clang++" BUILDTOOL="cmake" BUILDARGS="-DENABLE_PYTHON2=ON"
- CC="clang" CXX="clang++" BUILDTOOL="autotools" BUILDARGS=""
- CC="clang" CXX="clang++" BUILDTOOL="autotools" BUILDARGS="--enable-python2"
matrix:
fast_finish: true
before_script:
# Workaround travis-ci/travis-ci#5326
- export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")
- echo 'APT::Install-Recommends "false";' | sudo tee -a /etc/apt/apt.conf
- sudo apt-get update -qq
- sudo apt-get -y install devscripts equivs python-pip libenchant-dev autopoint cmake pkg-config libncursesw5-dev gem2deb libperl-dev python-dev python3-dev libaspell-dev liblua5.1-0-dev tcl8.5-dev guile-2.0-dev libv8-dev libcurl4-gnutls-dev libgcrypt11-dev libgnutls-dev zlib1g-dev curl libcpputest-dev
- sudo gem install asciidoctor
- sudo pip install msgcheck pylint
- travis_retry sudo apt-get update -qq
- travis_retry sudo apt-get -y install devscripts equivs python-pip libenchant-dev autopoint cmake lcov pkg-config libncursesw5-dev gem2deb libperl-dev python-dev python3-dev libaspell-dev liblua5.3-dev tcl8.6-dev guile-2.0-dev libv8-dev libcurl4-gnutls-dev libgcrypt20-dev libgnutls28-dev zlib1g-dev curl libcpputest-dev php7.2-dev libphp7.2-embed libargon2-0-dev libsodium-dev pylint3
- travis_retry sudo gem install asciidoctor
- travis_retry sudo -H pip install --ignore-installed msgcheck
- phpenv local system
# work around broken travis environment variables, see https://github.com/travis-ci/travis-ci/issues/5301
- unset PYTHON_CFLAGS
script:
- ./tools/build-test.sh
- msgcheck po/*.po
- pylint --version
- pylint doc/docgen.py
- pylint3 --version
- pylint3 --additional-builtins=_ doc/docgen.py
- pylint3 tests/scripts/python/testapigen.py
- pylint3 tests/scripts/python/testapi.py
- pylint3 tests/scripts/python/unparse.py
- ./tools/build-debian.sh test-patches
after_success:
- weechat --help
- weechat-curses --help
- weechat -r "/debug libs;/quit"
matrix:
fast_finish: true
- weechat --colors
- weechat --license
- weechat --version
- weechat --temp-dir --run-command "/debug dirs;/debug libs" --run-command "/quit"
# - if [ "$CODECOVERAGE" = "1" ]; then bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov error"; fi
+42 -1
View File
@@ -15,6 +15,8 @@
Alphabetically:
* Adam Saponara (adsr)
* Adrian Bjugård
* Ailin Nemui (Nei)
* Aleksey V Zapparov
* Alex Tarkovsky
@@ -25,43 +27,68 @@ Alphabetically:
* Asakura
* Bazerka
* Benoit Papillault (benoit)
* Chris Hills
* Christian Duerr
* Christian Heinz
* Christopher O'Neill (deltafire)
* coypoop
* Danilo Spinella
* David Flatz
* Dmitry Kobylin
* Dominik Honnef
* Dominique Martinet
* Eduardo Elias
* Eli Schwartz
* Elizabeth Myers (Elizacat)
* Elián Hanisch (m4v)
* Emanuele Giaquinta
* emk
* Esteban I. Ruiz Moreno (Exio)
* Evgeny Shmarnev
* Felix Eckhofer
* Frank Zacharias
* Fredrik Fornwall
* Grant Wu
* Gu1ll4um3r0m41n
* Guido Berhoerster
* Gwenn
* Hasan Kiran (turgay)
* Ivan Sichmann Freitas
* Jakub Jirutka
* Jason A. Donenfeld (zx2c4)
* JD Horelick (jdhore)
* jesopo
* Jim Ramsay (lack)
* Jiri Golembiovsky (GolemJ)
* Joey Pabalinas (alyptik)
* Johan Rylander
* Joram Schrijver
* Jos Ahrens
* Joseph Kichline
* Juan Francisco Cantero Hurtado
* Julien Louis (ptitlouis)
* Karthik K
* Koka El Kiwi (KiwiDash)
* Krzysztof Koroscik (soltys)
* Kyle Fuller (kylef)
* Kyle Sabo
* Leonid Evdokimov
* Lázaro A.
* Linus Heckemann
* Maarten de Vries
* Mantas Mikulėnas (grawity)
* Marco Paolone
* Marco Sirabella
* Mateusz Poszwa
* Matt Robinson
* Matthew Horan
* Matthew Martin
* Max Anton Teufel
* Maxim Baz
* Michael Siegel
* Miroslav Koskar
* Murilo Opsfelder Araujo
* Neui
* Nick (SolitaryCipher)
* Nicolas Cavigneaux
* Nils Görs (nils_2)
@@ -69,6 +96,7 @@ Alphabetically:
* Odin
* Ondřej Súkup
* Patrick Steinhardt
* Patrik Janoušek
* Paul Komkoff
* Pavel Shevchuk (Stalwart)
* Peter Boström (pbos)
@@ -79,15 +107,21 @@ Alphabetically:
* Quentin Glidic (SardemFF7)
* Quentin Pradet
* Quico Noizeux
* rafasc
* Raghavendra Prabhu
* raspbeguy
* Rettub
* Rob Campbell
* Romero B. de S. Malaquias
* Rudolf Polzer (divVerent)
* Ruslan Bekenev
* Ryan Farley
* Ryuunosuke Ayanokouzi
* scumjr
* Sergio Durigan Junior
* Shane McCarron
* Shawn Smith
* Shun Sakai
* Simmo Saan (sim642)
* Simon Arlott
* Simon Kuhnle
@@ -95,16 +129,23 @@ Alphabetically:
* Stfn
* Sven Knurr (Cthulhux)
* Tim D. Smith
* Tim Harder
* Tobias Stoeckmann
* Tom Alsberg
* Tom Fitzhenry
* Tomoe Mami
* Tor Hveem (xt)
* Trevor Bergeron
* Valentin Lorentz (progval)
* Vasco Almeida
* Voroskoi
* Wojciech Kwolek
* W. Trevor King
* Yannick Palanque
* ZethJack
* Ørjan Malde
== Contact
See https://weechat.org/files/doc/devel/weechat_user.en.html#support[user's guide]
or https://weechat.org/dev/support
or https://weechat.org/about/support
+100 -65
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2007-2008 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2008-2009 Emmanuel Bouthenot <kolter@openics.org>
#
@@ -16,10 +16,10 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
cmake_minimum_required(VERSION 2.4)
cmake_minimum_required(VERSION 3.0)
project(weechat C)
@@ -27,8 +27,8 @@ project(weechat C)
set(CMAKE_VERBOSE_MAKEFILE OFF)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
set(CMAKE_SKIP_RPATH ON)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror-implicit-function-declaration")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror-implicit-function-declaration")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsigned-char -Wall -Wextra -Werror-implicit-function-declaration")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsigned-char -Wall -Wextra")
# version
execute_process(COMMAND ${CMAKE_SOURCE_DIR}/version.sh devel-major OUTPUT_VARIABLE VERSION_MAJOR)
@@ -58,22 +58,28 @@ endif()
set(PKG_STRING "${PROJECT_NAME} ${VERSION}")
string(REPLACE "\";\"" "\ " PKG_STRING ${PKG_STRING})
if(DEFINED LIBDIR)
set(LIBDIR ${LIBDIR}/${PROJECT_NAME})
else()
set(LIBDIR ${CMAKE_INSTALL_PREFIX}/lib/${PROJECT_NAME})
if(NOT DEFINED LIBDIR)
set(LIBDIR ${CMAKE_INSTALL_PREFIX}/lib)
endif()
if(NOT DEFINED SHAREDIR)
set(SHAREDIR ${CMAKE_INSTALL_PREFIX}/share)
if(NOT DEFINED WEECHAT_LIBDIR)
set(WEECHAT_LIBDIR ${LIBDIR}/${PROJECT_NAME})
endif()
if(NOT DEFINED DATAROOTDIR)
set(DATAROOTDIR ${CMAKE_INSTALL_PREFIX}/share)
endif()
if(NOT DEFINED WEECHAT_SHAREDIR)
set(WEECHAT_SHAREDIR ${DATAROOTDIR}/weechat)
endif()
if(NOT DEFINED MANDIR)
set(MANDIR ${SHAREDIR}/man)
set(MANDIR ${DATAROOTDIR}/man)
endif()
if(NOT DEFINED LOCALEDIR)
set(LOCALEDIR ${SHAREDIR}/locale)
set(LOCALEDIR ${DATAROOTDIR}/locale)
endif()
if(DEFINED INCLUDEDIR)
@@ -82,34 +88,50 @@ else()
set(INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include/${PROJECT_NAME})
endif()
option(ENABLE_NCURSES "Enable Ncurses interface" ON)
option(ENABLE_NLS "Enable Native Language Support" ON)
option(ENABLE_GNUTLS "Enable SSLv3/TLS support" ON)
option(ENABLE_LARGEFILE "Enable Large File Support" ON)
option(ENABLE_ALIAS "Enable Alias plugin" ON)
option(ENABLE_ASPELL "Enable Aspell plugin" ON)
option(ENABLE_ENCHANT "Enable Enchant lib for Aspell plugin" OFF)
option(ENABLE_CHARSET "Enable Charset plugin" ON)
option(ENABLE_EXEC "Enable Exec plugin" ON)
option(ENABLE_FIFO "Enable FIFO plugin" ON)
option(ENABLE_IRC "Enable IRC plugin" ON)
option(ENABLE_LOGGER "Enable Logger plugin" ON)
option(ENABLE_RELAY "Enable Relay plugin" ON)
option(ENABLE_SCRIPT "Enable Script plugin (scripts manager)" ON)
option(ENABLE_SCRIPTS "Enable script plugins (perl, python, ...)" ON)
option(ENABLE_PERL "Enable Perl scripting language" ON)
option(ENABLE_PYTHON "Enable Python scripting language" ON)
option(ENABLE_PYTHON3 "Use Python 3.x if found (NOT recommended because many \"official\" scripts won't work)" OFF)
option(ENABLE_RUBY "Enable Ruby scripting language" ON)
option(ENABLE_LUA "Enable Lua scripting language" ON)
option(ENABLE_TCL "Enable Tcl scripting language" ON)
option(ENABLE_GUILE "Enable Scheme (guile) scripting language" ON)
option(ENABLE_JAVASCRIPT "Enable JavaScript scripting language" ON)
option(ENABLE_TRIGGER "Enable Trigger plugin" ON)
option(ENABLE_XFER "Enable Xfer plugin" ON)
option(ENABLE_MAN "Enable build of man page" OFF)
option(ENABLE_DOC "Enable build of documentation" OFF)
option(ENABLE_TESTS "Enable tests" OFF)
option(ENABLE_NCURSES "Compile the Ncurses interface" ON)
option(ENABLE_HEADLESS "Compile the headless binary (required for tests)" ON)
option(ENABLE_NLS "Enable Native Language Support" ON)
option(ENABLE_LARGEFILE "Enable Large File Support" ON)
option(ENABLE_ALIAS "Enable Alias plugin" ON)
option(ENABLE_BUFLIST "Enable Buflist plugin" ON)
option(ENABLE_CHARSET "Enable Charset plugin" ON)
option(ENABLE_EXEC "Enable Exec plugin" ON)
option(ENABLE_FIFO "Enable FIFO plugin" ON)
option(ENABLE_FSET "Enable Fast Set plugin" ON)
option(ENABLE_IRC "Enable IRC plugin" ON)
option(ENABLE_LOGGER "Enable Logger plugin" ON)
option(ENABLE_RELAY "Enable Relay plugin" ON)
option(ENABLE_SCRIPT "Enable Script plugin (script manager)" ON)
option(ENABLE_SCRIPTS "Enable script plugins (perl, python, ...)" ON)
option(ENABLE_PERL "Enable Perl scripting language" ON)
option(ENABLE_PYTHON "Enable Python scripting language" ON)
option(ENABLE_PYTHON2 "Use Python 2 instead of Python 3" OFF)
option(ENABLE_RUBY "Enable Ruby scripting language" ON)
option(ENABLE_LUA "Enable Lua scripting language" ON)
option(ENABLE_TCL "Enable Tcl scripting language" ON)
option(ENABLE_GUILE "Enable Scheme (guile) scripting language" ON)
option(ENABLE_JAVASCRIPT "Enable JavaScript scripting language" OFF)
option(ENABLE_PHP "Enable PHP scripting language" ON)
option(ENABLE_SPELL "Enable Spell checker plugin" ON)
option(ENABLE_ENCHANT "Enable Enchant lib for Spell checker plugin" OFF)
option(ENABLE_TRIGGER "Enable Trigger plugin" ON)
option(ENABLE_XFER "Enable Xfer plugin" ON)
option(ENABLE_MAN "Enable build of man page" OFF)
option(ENABLE_DOC "Enable build of documentation" OFF)
option(ENABLE_TESTS "Enable tests" OFF)
option(ENABLE_CODE_COVERAGE "Enable code coverage" OFF)
# code coverage
add_library(coverage_config INTERFACE)
if(ENABLE_CODE_COVERAGE)
target_compile_options(coverage_config INTERFACE -O0 -g --coverage)
target_link_libraries(coverage_config INTERFACE --coverage)
endif()
# headless mode is required for tests
if(ENABLE_TESTS AND NOT ENABLE_HEADLESS)
message(FATAL_ERROR "Headless mode is required for tests.")
endif()
# option WEECHAT_HOME
if(NOT DEFINED WEECHAT_HOME OR "${WEECHAT_HOME}" STREQUAL "")
@@ -161,6 +183,12 @@ if(ENABLE_NLS)
find_package(Gettext)
if(GETTEXT_FOUND)
add_definitions(-DENABLE_NLS)
find_package(Intl)
if(Intl_FOUND)
list(APPEND EXTRA_LIBS "${Intl_LIBRARIES}")
endif()
else()
message(SEND_ERROR "Gettext not found")
endif()
endif()
@@ -170,16 +198,11 @@ add_definitions(-DHAVE_GCRYPT)
list(APPEND EXTRA_LIBS ${GCRYPT_LDFLAGS})
# Check for GnuTLS
if(ENABLE_GNUTLS)
find_package(GnuTLS)
if(GNUTLS_FOUND)
string(REGEX REPLACE "/[^/]*$" "" GNUTLS_LIBRARY_PATH "${GNUTLS_LIBRARY}")
add_definitions(-DHAVE_GNUTLS)
include_directories(${GNUTLS_INCLUDE_PATH})
set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -L${GNUTLS_LIBRARY_PATH}")
list(APPEND EXTRA_LIBS gnutls)
endif()
endif()
find_package(GnuTLS REQUIRED)
string(REGEX REPLACE "/[^/]*$" "" GNUTLS_LIBRARY_PATH "${GNUTLS_LIBRARY}")
include_directories(${GNUTLS_INCLUDE_PATH})
set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -L${GNUTLS_LIBRARY_PATH}")
list(APPEND EXTRA_LIBS gnutls)
# Check for zlib
find_package(ZLIB REQUIRED)
@@ -208,6 +231,8 @@ if(DL_LIBRARY)
list(APPEND EXTRA_LIBS dl)
endif()
add_subdirectory(icons)
if(ENABLE_NLS)
add_subdirectory(po)
endif()
@@ -215,10 +240,14 @@ endif()
add_subdirectory(src)
add_subdirectory(doc)
find_package(CppUTest)
if(ENABLE_TESTS AND CPPUTEST_FOUND)
enable_testing()
add_subdirectory(tests)
if(ENABLE_TESTS)
find_package(CppUTest)
if(CPPUTEST_FOUND)
enable_testing()
add_subdirectory(tests)
else()
message(SEND_ERROR "CppUTest not found")
endif()
endif()
configure_file(config.h.cmake config.h @ONLY)
@@ -226,28 +255,32 @@ configure_file(config.h.cmake config.h @ONLY)
# set the git version in "config-git.h"
add_custom_target(version_git ALL
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/tools/git-version.sh" "${CMAKE_CURRENT_SOURCE_DIR}" "${VERSION}" "config-git.h"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
IMMEDIATE @ONLY
)
add_custom_target(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
)
add_custom_target(dist
"${CMAKE_CURRENT_SOURCE_DIR}/tools/makedist.sh" "${VERSION}" "HEAD" "${CMAKE_CURRENT_BINARY_DIR}"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
# pkgconfig file
set(PACKAGE "${PROJECT_NAME}")
set(prefix "${CMAKE_INSTALL_PREFIX}")
set(exec_prefix "\${prefix}")
set(libdir "\${exec_prefix}/lib")
string(REPLACE "${CMAKE_INSTALL_PREFIX}" "\${prefix}" libdir "${LIBDIR}")
set(includedir "\${prefix}/include")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/weechat.pc.in ${CMAKE_CURRENT_BINARY_DIR}/weechat.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.pc DESTINATION ${LIBDIR}/../pkgconfig)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.pc DESTINATION ${LIBDIR}/pkgconfig)
# cygport file (used to build Cygwin packages)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/weechat.cygport.in ${CMAKE_CURRENT_BINARY_DIR}/weechat-${VERSION}-1.cygport @ONLY)
@@ -260,11 +293,12 @@ if(CYGWIN)
${CMAKE_CURRENT_SOURCE_DIR}/Contributing.adoc
${CMAKE_CURRENT_SOURCE_DIR}/README.adoc
${CMAKE_CURRENT_SOURCE_DIR}/ReleaseNotes.adoc
DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME})
DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME}
)
endif()
# icon
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/weechat.png DESTINATION ${SHAREDIR}/icons/hicolor/32x32/apps)
# desktop file
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/weechat.desktop DESTINATION ${DATAROOTDIR}/applications)
# packages
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Fast, light and extensible chat client")
@@ -282,7 +316,8 @@ set(CPACK_PACKAGE_FILE_NAME weechat-binary-${VERSION})
# source package
set(CPACK_SOURCE_GENERATOR "TGZ;TBZ2")
set(CPACK_SOURCE_PACKAGE_FILE_NAME weechat-${VERSION})
set(CPACK_SOURCE_IGNORE_FILES "/\\\\.git" "/build/" "/m4/"
set(CPACK_SOURCE_IGNORE_FILES
"/\\\\.git" "/build/" "/m4/"
"/autom4te\\\\.cache/" "/ABOUT-NLS$" "/config\\\\.guess$" "/config\\\\.h$"
"/config\\\\.h.in$" "/config\\\\.log$" "/config\\\\.rpath$"
"/config\\\\.status$" "/config\\\\.sub$" "/configure$" "/depcomp$"
+4 -4
View File
@@ -1,7 +1,7 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
@@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
<https://www.gnu.org/philosophy/why-not-lgpl.html>.
+934 -321
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -40,6 +40,8 @@ please include:
(or if you have a core file), please include the backtrace from gdb (look at
https://weechat.org/files/doc/devel/weechat_user.en.html#report_crashes[User's guide]
for more info).
* The *actual result*.
* The *expected result*: the correct result you are expecting.
[IMPORTANT]
Most of times, the WeeChat crash log file (_weechat_crash_YYYYMMDD_xxx.log_) is
@@ -63,7 +65,7 @@ instead.
== Translations
Pull requests on GitHub for fixes or new translations are welcome at any
time, for https://github.com/weechat/weechat[WeeChat] and the web site
time, for https://github.com/weechat/weechat[WeeChat] and the website
https://github.com/weechat/weechat.org[weechat.org].
To start a translation in a new language (not yet supported), please look at
+7 -9
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2005 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2006-2009 Emmanuel Bouthenot <kolter@openics.org>
#
@@ -16,7 +16,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# This target will update file config-git.h with output of command "git describe"
@@ -29,7 +29,7 @@ if TESTS
tests_dir = tests
endif
SUBDIRS = po doc intl src $(tests_dir)
SUBDIRS = icons po doc intl src $(tests_dir)
EXTRA_DIST = AUTHORS.adoc \
ChangeLog.adoc \
@@ -51,12 +51,10 @@ EXTRA_DIST = AUTHORS.adoc \
cmake/FindIconv.cmake \
cmake/FindLua.cmake \
cmake/FindNcurses.cmake \
cmake/FindPackageHandleStandardArgs.cmake \
cmake/FindPerl.cmake \
cmake/FindPkgConfig.cmake \
cmake/FindPython.cmake \
cmake/FindRuby.cmake \
cmake/FindTCL.cmake \
cmake/FindV8.cmake \
cmake/FindZLIB.cmake \
cmake/cmake_uninstall.cmake.in \
@@ -66,17 +64,17 @@ EXTRA_DIST = AUTHORS.adoc \
tools/git-version.sh \
tools/makedist.sh \
version.sh \
weechat.png \
weechat.desktop \
weechat.pc.in \
weechat.cygport.in
ACLOCAL_AMFLAGS = -I m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = weechat.pc
icondir = $(datadir)/icons/hicolor/32x32/apps
icon_DATA = weechat.png
desktopdir = $(datadir)/applications
desktop_DATA = weechat.desktop
clean-local:
$(RM) config-git.h
+57 -22
View File
@@ -1,17 +1,21 @@
= WeeChat
:author: Sébastien Helleu
:email: flashcode@flashtux.org
:lang: en
image:https://travis-ci.org/weechat/weechat.svg?branch=master["Build Status", link="https://travis-ci.org/weechat/weechat"]
image:https://img.shields.io/badge/diaspora*-follow-blue.svg["Diaspora*", link="https://diasp.eu/u/weechat"]
image:https://img.shields.io/badge/google%2B-follow-blue.svg["Google+", link="https://plus.google.com/+WeeChat"]
image:https://img.shields.io/badge/devel%20blog-follow-blue.svg["Devel blog", link="http://dev.weechat.org/"]
image:https://img.shields.io/badge/slant-recommend-28acad.svg["Slant", link="http://www.slant.co/topics/1323/~irc-clients-for-linux"]
image:https://img.shields.io/badge/paypal-donate%20%E2%9D%A4-yellow.svg["Paypal", link="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4LSMSNLUAJWNS"]
pass:[<p align="center">] image:https://weechat.org/media/images/weechat_logo_large.png[align="center"] pass:[</p>]
WeeChat (Wee Enhanced Environment for Chat) is a free chat client, fast and
image:https://img.shields.io/badge/diaspora*-follow-blue.svg["Diaspora*", link="https://diasp.eu/u/weechat"]
image:https://img.shields.io/badge/mastodon-follow-blue.svg["Mastodon", link="https://hostux.social/@weechat"]
image:https://img.shields.io/badge/twitter-follow-blue.svg["Twitter", link="https://twitter.com/WeeChatClient"]
image:https://img.shields.io/badge/devel%20blog-follow-blue.svg["Devel blog", link="https://blog.weechat.org/"]
image:https://img.shields.io/badge/slant-recommend-28acad.svg["Slant", link="https://www.slant.co/topics/1323/~best-irc-clients-for-linux"]
image:https://img.shields.io/badge/help-donate%20%E2%9D%A4-ff69b4.svg["Donate", link="https://weechat.org/donate/"]
image:https://github.com/weechat/weechat/workflows/CI/badge.svg["CI", link="https://github.com/weechat/weechat/actions"]
image:https://codecov.io/gh/weechat/weechat/branch/master/graph/badge.svg["Code coverage", link="https://codecov.io/gh/weechat/weechat"]
*WeeChat* (Wee Enhanced Environment for Chat) is a free chat client, fast and
light, designed for many operating systems.
It is highly customizable and extensible with scripts.
@@ -19,19 +23,19 @@ Homepage: https://weechat.org/
== Features
* *Modular chat client*: WeeChat has a lightweight core and optional plugins. All plugins (including IRC) are independent and can be unloaded.
* *Multi-platform*: WeeChat runs on GNU/Linux, *BSD, GNU/Hurd, Mac OS X and Windows (Bash/Ubuntu and Cygwin).
* *Modular chat client*: WeeChat has a lightweight core and optional https://weechat.org/files/doc/stable/weechat_user.en.html#plugins[plugins]. All plugins (including https://weechat.org/files/doc/stable/weechat_user.en.html#irc_plugin[IRC]) are independent and can be unloaded.
* *Multi-platform*: WeeChat runs on GNU/Linux, *BSD, GNU/Hurd, Haiku, macOS and Windows (Bash/Ubuntu and Cygwin).
* *Multi-protocols*: WeeChat is designed to support multiple protocols by plugins, like IRC.
* *Standards-compliant*: the IRC plugin is compliant with RFCs 1459, 2810, 2811, 2812 and 2813.
* *Standards-compliant*: the IRC plugin is compliant with RFCs https://tools.ietf.org/html/rfc1459[1459], https://tools.ietf.org/html/rfc2810[2810], https://tools.ietf.org/html/rfc2811[2811], https://tools.ietf.org/html/rfc2812[2812] and https://tools.ietf.org/html/rfc2813[2813].
* *Small, fast and very light*: the core is and should stay as light and fast as possible.
* *Customizable and extensible*: there are a lot of options to customize WeeChat, and it is extensible with C plugins and scripts (Perl, Python, Ruby, Lua, Tcl, Scheme and Javascript).
* *Fully documented*: there is comprehensive documentation, which is translated into several languages.
* *Customizable and extensible*: there are a lot of options to customize WeeChat, and it is extensible with C plugins and https://weechat.org/scripts/[scripts] (https://weechat.org/scripts/stable/language/perl/[Perl], https://weechat.org/scripts/stable/language/python/[Python], https://weechat.org/scripts/stable/language/ruby[Ruby], https://weechat.org/scripts/stable/language/lua/[Lua], https://weechat.org/scripts/stable/language/tcl/[Tcl], https://weechat.org/scripts/stable/language/guile/[Scheme], https://weechat.org/scripts/stable/language/javascript/[JavaScript] and https://weechat.org/scripts/stable/language/php/[PHP]).
* *Fully documented*: there is comprehensive https://weechat.org/doc/[documentation], which is https://weechat.org/files/doc/stable/weechat_dev.en.html#translations[translated] into several languages.
* *Developed from scratch*: WeeChat was built from scratch and is not based on any other client.
* *Free software*: WeeChat is released under GPLv3.
* *Free software*: WeeChat is released under https://www.gnu.org/licenses/gpl-3.0.html[GPLv3].
image::https://weechat.org/media/images/screenshots/weechat/medium/weechat_2013-04-27_phlux_shadow.png[align="center"]
pass:[<p align="center">] image:https://weechat.org/media/images/screenshots/weechat/medium/weechat_2013-04-27_phlux_shadow.png[align="center"] pass:[</p>]
Other screenshots are on https://weechat.org/about/screenshots/[this page].
On WeeChat's website you can find https://weechat.org/about/screenshots/[more screenshots].
== Install
@@ -49,8 +53,8 @@ Following packages are optional:
* for i18n: gettext
* for SSL: gnutls, ca-certificates
* for spell checking: aspell
* for scripting: python, perl, ruby, lua, tcl, guile, libv8 (javascript)
* for spell checking: aspell or enchant
* for scripting: python, perl, ruby, lua, tcl, guile, libv8 (javascript), php
* for building doc and man page: asciidoctor
* for building tests: C++ compiler, CppUTest
@@ -59,27 +63,58 @@ https://weechat.org/files/doc/devel/weechat_user.en.html#dependencies[user's gui
=== Compile
WeeChat can be built with http://cmake.org/[CMake] (recommended) or autotools.
WeeChat can be built with https://cmake.org/[CMake] (recommended) or autotools.
[NOTE]
Only CMake is officially supported to build WeeChat. You should only use
autotools if you are not able to use CMake. +
Building with autotools requires more dependencies and is slower than with CMake.
* Installation in system directories (requires _root_ privileges):
----
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install
----
* Installation in custom directory (for example your home):
----
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/directory
$ make
$ make install (as root for installation in system directories)
$ make install
----
For more information or installation with autotools, please look at
https://weechat.org/files/doc/devel/weechat_user.en.html#compile_with_autotools[user's guide].
=== Run tests
Following packages are *required* to compile tests:
* libcpputest-dev
* C++ compiler
Tests must be enabled when compiling WeeChat:
----
$ cmake .. -DENABLE_TESTS=ON
----
They can be launched after compilation from the build directory:
----
$ ctest -V
----
== Copyright
Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
This file is part of WeeChat, the extensible chat client.
@@ -94,4 +129,4 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
+860 -9
View File
@@ -17,6 +17,853 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog]
(file _ChangeLog.adoc_ in sources).
[[v3.0.1]]
== Version 3.0.1 (2021-01-31)
Bug fix and maintenance release.
[[v3.0]]
== Version 3.0 (2020-11-11)
[[v3.0_script_option_download_enabled]]
=== New option to enable download of scripts
A new option has been added to allow the script plugin to download the list of
scripts and the scripts themselves (on weechat.org by default).
This option is `off` by default, so you must opt in if you want to use the
`/script` command, even if you upgraded from an old WeeChat version:
----
/set script.scripts.download_enabled on
----
[NOTE]
When this option is enabled, WeeChat can sometimes download again the list of
scripts when you use the `/script` command, even if you don't install a script.
[[v3.0_irc_commands_allchan_allpv_allserv]]
=== IRC commands /allchan, /allpv and /allserv
The command and arguments given to commands `/allchan`, `/allpv` and `/allserv`
are now evaluated (see /help on the commands for more information).
Additionally, a breaking change has been introduced: the leading `/` is now
required in these commands, so this allows to send text to buffers without
using the command `/msg * xxx`.
So with previous releases, to say "hello" on all channels:
----
/allchan msg * hello
----
Now it can be done like this:
----
/allchan hello
----
If you want to use a command, you must add explicitly the leading `/`:
----
/allchan /msg * hello
----
[[v3.0_trigger_beep]]
=== Default "beep" trigger
The command of "beep" trigger is now executed only if the message does NOT
contain the tag "notify_none" (in addition to existing conditions).
You can restore the default "beep" trigger with the following command:
----
/trigger restore beep
----
[[v2.9]]
== Version 2.9 (2020-07-18)
[[v2.9_bar_color_bg_inactive]]
=== New background color for inactive bars
A new option has been added in bar: _color_bg_inactive_. It is used for window
bars, when the window is not the active window.
By default this color is set to "default" for default bars, except for status
and title: the color is set to "darkgray".
If you upgrade from a previous release, the color will be "default" for all
bars, so if you want to use the new default settings, you can do:
----
/set weechat.bar.title.color_bg_inactive darkgray
/set weechat.bar.status.color_bg_inactive darkgray
----
If you changed the option _color_bg_ in some bars, you should also adjust
the new option _color_bg_inactive_, depending on your needs.
The function "bar_new" in API is updated, so this is an incompatible change:
all plugins and scripts calling this function must be updated.
The following scripts are updated consequently to be compatible with all
WeeChat versions:
* https://weechat.org/scripts/source/buddylist.pl/[buddylist.pl] 2.0
* https://weechat.org/scripts/source/buffers.pl/[buffers.pl] 5.7
* https://weechat.org/scripts/source/chanmon.pl/[chanmon.pl] 2.6
* https://weechat.org/scripts/source/chanop.py/[chanop.py] 0.3.2
* https://weechat.org/scripts/source/highmon.pl/[highmon.pl] 2.7
* https://weechat.org/scripts/source/iset.pl/[iset.pl] 4.4
* https://weechat.org/scripts/source/menu.pl/[menu.pl] 1.0
* https://weechat.org/scripts/source/moc_control.py/[moc_control.py] 1.9
* https://weechat.org/scripts/source/newsbar.pl/[newsbar.pl] 0.19
* https://weechat.org/scripts/source/pv_info.pl/[pv_info.pl] 0.0.6
* https://weechat.org/scripts/source/rssagg.pl/[rssagg.pl] 1.2
* https://weechat.org/scripts/source/urlbar.py/[urlbar.py] 14
* https://weechat.org/scripts/source/urlselect.lua/[urlselect.lua] 0.5
* https://weechat.org/scripts/source/vimode.py/[vimode.py] 0.8
[[v2.9_modifier_weechat_print]]
=== New modifier_data for modifier "weechat_print"
The modifier "weechat_print" has been fixed and the content of "modifier_data"
sent to the callback has changed (see issue #42).
This is an incompatible change, therefore all plugins, scripts and triggers
using this modifier and the "modifier_data" argument must be updated.
The old format contained plugin name + ";" + buffer name + ";" + tags:
----
irc;freenode.#weechat;tag1,tag2,tag3
----
The new format contains buffer pointer + ";" + tags:
----
0x123abc;tag1,tag2,tag3
----
The following scripts are updated consequently to be compatible with all
WeeChat versions:
* https://weechat.org/scripts/source/colorize_lines.pl.html/[colorize_lines.pl] 3.9
* https://weechat.org/scripts/source/colorize_nicks.py/[colorize_nicks.py] 27
* https://weechat.org/scripts/source/colorizer.rb/[colorizer.rb] 0.2
* https://weechat.org/scripts/source/curiousignore.pl/[curiousignore.pl] 0.4
* https://weechat.org/scripts/source/format_lines.pl/[format_lines.pl] 1.6
* https://weechat.org/scripts/source/identica.py/[identica.py] 0.4.3
* https://weechat.org/scripts/source/mass_hl_blocker.pl/[mass_hl_blocker.pl] 0.2
* https://weechat.org/scripts/source/noirccolors.py/[noirccolors.py] 0.4
* https://weechat.org/scripts/source/parse_relayed_msg.pl/[parse_relayed_msg.pl] 1.9.3
* https://weechat.org/scripts/source/unhighlight.py/[unhighlight.py] 0.1.3
* https://weechat.org/scripts/source/weemoticons.py/[weemoticons.py] 0.3
[[v2.9_api_completion_functions]]
=== Move of API completion functions
Completion functions have been added in WeeChat 2.9, to allow relay clients or
plugins/scripts to complete a string, without using the buffer input.
Therefore two functions have been renamed in API and moved to the new
"completion" category:
* function _hook_completion_get_string_ renamed to _completion_get_string_
* function _hook_completion_list_add_ renamed to _completion_list_add_
[NOTE]
The old names are still valid for compatibility reasons, but it is recommended
to use only the new names as the old ones may be removed in an upcoming release.
[[v2.9_gnutls_required_dependency]]
=== GnuTLS is now a required dependency
The build options `ENABLE_GNUTLS` (in CMake) and `--disable-gnutls` (in autotools)
have been removed. That means now GnuTLS is always compiled and used in WeeChat.
Motivations:
* communications encryption should be built-in, not optional
* GnuTLS library should be available everywhere
* reduce complexity of code and tests of builds.
[[v2.9_trigger_cmd_pass_remove_set_command]]
=== The trigger "cmd_pass" does not hide any more values of /set command
The default trigger "cmd_pass" does not hide any more values of options in `/set`
command which contain "password" in the name.
The reason is that it was masking values of options that contains the word
"password" but the value is not a password and does not contain sensitive data,
for example these options were affected:
* irc.look.nicks_hide_password
* relay.network.allow_empty_password
* relay.network.password_hash_algo
* relay.network.password_hash_iterations
Since all real password options are now evaluated, it is recommended to use
secure data to store the passwords ciphered in config file. +
By using secure data, the passwords are never displayed on screen (even with
`/set` command) nor written in log files.
For example you can do that:
----
/secure passphrase my_secret_passphrase
/secure set freenode my_password
/set irc.server.freenode.sasl_password "${sec.data.freenode}"
----
This will be displayed like that in WeeChat, using the new regex value of
_cmd_pass_ trigger:
----
/secure passphrase ********************
/secure set freenode ***********
/set irc.server.freenode.sasl_password "${sec.data.freenode}"
----
If you want to use the new trigger regex after upgrade, you can do:
----
/trigger restore cmd_pass
----
If ever you prefer the old trigger regex, you can change it like that:
----
/set trigger.trigger.cmd_pass.regex "==^((/(msg|m|quote) +(-server +[^ ]+ +)?nickserv +(id|identify|set +password|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|recover +[^ ]+) +)|/oper +[^ ]+ +|/quote +pass +|/set +[^ ]*password[^ ]* +|/secure +(passphrase|decrypt|set +[^ ]+) +)(.*)==${re:1}${hide:*,${re:+}}"
----
[[v2.9_trigger_command_eval]]
=== Evaluation of trigger command arguments
The arguments for a trigger command (except the command itself) are now evaluated.
That means you can use for example new lines in the command description, like that:
----
/trigger add test command "test;test command;arg1 arg2;arg1: description 1${\n}arg2: description 2"
----
The command `/help test` will display this help in WeeChat:
----
[trigger] /test arg1 arg2
test command
arg1: description 1
arg2: description 2
----
[[v2.9_relay_weechat_protocol_handshake_nonce]]
=== Add of handshake and nonce in weechat relay protocol
==== Handshake
A _handshake_ command has been added in weechat relay protocol. +
The client should send this command before the _init_ to negotiate the way to
authenticate with the relay server.
See the link:weechat_relay_protocol.en.html#command_handshake[handshake command]
in Relay protocol doc for more information.
==== Server "nonce"
Furthermore, a "nonce" is now generated for each client connecting and must be
used by the client in case of hashed password in the _init_ command. +
The goal is to prevent replay attacks in case someone manages to read exchanges
between the client and relay.
When hashing the password, the client must use salt composed by this nonce
as binary (it is hexadecimal and must be base16-decoded), concatenated with
a client nonce after this one. +
So the hash is computed on: (`server nonce` + `client nonce` + `password`).
This salt is now mandatory even for algorithms `SHA256` and `SHA512`; this is
a breaking change in protocol, needed for security reasons.
See the link:weechat_relay_protocol.en.html#command_init[init command]
in Relay protocol doc for more information.
[[v2.8]]
== Version 2.8 (2020-03-29)
[[v2.8_auto_connection_to_servers]]
=== Auto connection to servers
The command line option `-a` (or `--no-connect`), which can also be used in the
`/plugin` command, is now used to set a new info called `auto_connect`
(see the function "info_get" in the Plugin API reference).
Therefore, the option is not sent any more to the function `weechat_plugin_init`
of plugins. +
The plugins using this option must now get the info `auto_connect` and check
if the value is "1" (a string with just `1`).
The purpose of this change is to allow scripts as well to check this info on
startup, and connect or not, depending on the value (see issue #1453).
To be compatible with WeeChat ≤ 2.7, the script can do this, for example
in Python:
[source,python]
----
auto_connect = weechat.info_get("auto_connect", "") != "0"
----
The variable `auto_connect` will be set like that, depending on the WeeChat
version:
* WeeChat ≤ 2.7: always `True` because the info is an empty string (it does not
exist), which is different from "0",
* WeeChat ≥ 2.8: `True` by default, and `False` if `-a` or `--no-connect` is
given by the user (either on command line or when loading the plugin).
[[v2.7.1]]
== Version 2.7.1 (2020-02-20)
Bug fix and maintenance release.
[[v2.7]]
== Version 2.7 (2019-12-08)
[[v2.7_cmake_errors]]
=== CMake errors on missing dependencies
When compiling WeeChat with CMake (which is the recommended way), errors are
now displayed on any missing dependency, if the optional feature was enabled
(most features are automatically enabled, except documentation, man page and
tests).
Any error on a missing dependency is fatal, so WeeChat can not be compiled.
This is a new behavior compared to old versions, where any missing dependency
was silently ignored and the compilation was possible anyway.
For example if PHP is not installed on your system, CMake will display an error
on missing PHP library:
----
-- checking for one of the modules 'php7'
CMake Warning at cmake/FindPHP.cmake:57 (message):
Could not find libphp7. Ensure PHP >=7.0.0 development libraries are
installed and compiled with `--enable-embed`. Ensure `php-config` is in
`PATH`. You may set `-DCMAKE_LIBRARY_PATH=...` to the directory containing
libphp7.
Call Stack (most recent call first):
src/plugins/CMakeLists.txt:157 (find_package)
CMake Error at src/plugins/CMakeLists.txt:161 (message):
Php not found
----
Then you can either install PHP or explicitly disable PHP if you don't need this
plugin, using this cmake option:
----
cmake .. -DENABLE_PHP=OFF
----
[[v2.7_python3_callbacks_strings]]
=== Strings received in Python 3 callbacks
The strings sent to script callbacks in Python 3 are now automatically converted
according to the content:
* if the string is valid UTF-8, it is sent as `str` (legacy behavior)
* if the string is not valid UTF-8, it is sent as `bytes` (new).
In some cases only, the string may not be valid UTF-8, so it is received as
`bytes` in the callback, which must take care of that.
For more information, see the WeeChat scripting guide: chapter about strings
received in callbacks (see also issue #1389).
Note: there are no changes for Python 2 (which is now deprecated and should not
be used any more), the strings sent to callbacks are always of type `str`, and
may contain invalid UTF-8 data, in the cases mentioned in the WeeChat scripting
guide.
[[v2.7_irc_message_decoding]]
=== IRC message decoding/encoding
A new server option called "charset_message" has been added, replacing the
option _irc.network.channel_encode_.
This new server option has three possible values:
* _message_ (default): the whole IRC message is decoded/encoded, this is the
new default behavior; in case of problem with channel names, try to use
_text_ instead
* _channel_: the message is decoded/encoded starting at the channel name (or
the text if no channel is present); this is like setting the old option
_irc.network.channel_encode_ to _on_
* _text_: the message is decoded/encoded starting from the text (for example
the user message); this is like setting the old option
_irc.network.channel_encode_ to _off_ (so this was the default behavior
in previous versions)
[[v2.7_xfer_file_receive_suffix]]
=== Suffix for files received via DCC
Files received via DCC (xfer plugin) now have a suffix ".part" during the
transfer. When the transfer is successful, the suffix is removed.
This suffix can be customized with the new option
_xfer.file.download_temporary_suffix_.
If you prefer the legacy behavior (no suffix added), you can set an empty value
in the new option:
----
/set xfer.file.download_temporary_suffix ""
----
[[v2.6]]
== Version 2.6 (2019-09-08)
[[v2.6_python3_default]]
=== Python 3 by default
Python 3 is now used by default to compile the "python" plugin (no fallback
on Python 2).
The CMake option `ENABLE_PYTHON3` has been renamed to `ENABLE_PYTHON2`
(configure option `--enable-python2`). If this option is enabled, the "python"
plugin is built with Python 2 (no fallback on Python 3).
[[v2.6_nick_colors]]
=== Nick colors
The function to compute the colors based on the nick letters has been fixed
(now the function uses only a 64-bit integer even if the underlying architecture
is 32-bit).
If you're running WeeChat on a 32-bit architecture and want to keep same colors
as the previous releases, you can use one of the two new hash values.
If you were using "djb2", you can switch to "djb2_32":
----
/set weechat.look.nick_color_hash djb2_32
----
If you were using "sum", you can switch to "sum_32":
----
/set weechat.look.nick_color_hash sum_32
----
[[v2.5]]
== Version 2.5 (2019-06-06)
[[v2.5_aspell_plugin_renamed]]
=== Aspell plugin renamed to Spell
The "aspell" plugin has been renamed to "spell", a more generic term, because
it supports aspell and also enchant.
Consequently, the following things have been renamed as well:
* file _aspell.conf_ renamed to _spell.conf_; the content of the
file has not changed, so you can just rename the file to keep your changes
* options _aspell.*_ renamed to _spell.*_
* command `/aspell` renamed to `/spell`
* default key kbd:[Alt+s] changed to `/mute spell toggle`
* bar item _aspell_dict_ renamed to _spell_dict_
* bar item _aspell_suggest_ renamed to _spell_suggest_
* info _aspell_dict_ renamed to _spell_dict_
If you are upgrading from a previous release, you can copy the config file
before doing `/upgrade`, in WeeChat:
----
/save aspell
/exec -sh cp ~/.weechat/aspell.conf ~/.weechat/spell.conf
/upgrade
----
If you already upgraded WeeChat:
----
/exec -sh cp ~/.weechat/aspell.conf ~/.weechat/spell.conf
/reload spell
----
Once configuration is OK, you can delete the file _~/.weechat/aspell.conf_.
Then you can search if you are using "aspell" in values of options:
----
/fset =aspell
----
If there are options displayed, replace "aspell" by "spell" in values.
The default key kbd:[Alt+s] can be changed to the new `/spell` command:
----
/key bind meta-s /mute spell toggle
----
[[v2.5_xfer_option_speed_limit]]
=== Speed limit option for DCC files
The option _xfer.network.speed_limit_ has been renamed to
_xfer.network.speed_limit_send_.
If you changed the value of this option, you must set it again after upgrade.
A new option _xfer.network.speed_limit_recv_ has been added to limit the
speed of received files.
[[v2.5_hook_info_allocated_string]]
=== Allocated string in hook info and function info_get
The hook info callback now returns an allocated string, which must be freed
after use (in previous versions, a pointer to a static string was returned).
Consequently, the function info_get returns an allocated string, which must
be freed after use.
This affects only C code, no changes are required in scripts.
[[v2.4]]
== Version 2.4 (2019-02-17)
[[v2.4_nick_completer]]
=== Nick completer
A space is not added automatically any more when you complete a nick at the
beginning of command line. +
Purpose of this change is to be more flexible: you can choose whether the space
is added or not (it was always added in previous releases).
The default value of option `weechat.completion.nick_completer` has been changed
to add the space by default, but the value of option is not changed automatically
on upgrade.
So you can run this command if you upgraded from an old version
and want the space still added automatically:
----
/set weechat.completion.nick_completer ": "
----
[[v2.4_api_base64_functions]]
=== Base64 API functions
The functions to encode/decode base64 strings have been renamed and now support
base 16, 32, and 64.
New functions in C API, supporting base 16, 32, and 64:
* string_base_encode
* string_base_decode
Functions removed from C API:
* string_encode_base64
* string_decode_base64
[[v2.3]]
== Version 2.3 (2018-10-21)
No release note.
[[v2.2]]
== Version 2.2 (2018-07-14)
[[v2.2_default_hotlist_conditions]]
=== Default conditions for hotlist
The default value for option `weechat.look.hotlist_add_conditions` has been
changed to take care about the number of connected clients on the relay
with weechat protocol: if at least one client is connected, the buffer is
always added to the hotlist.
The new value contains three conditions, if one of them is true, the buffer
is added to the hotlist:
* `${away}`: true if you are away on the server matching the buffer,
* `${buffer.num_displayed} == 0`: true if the buffer is not displayed in any
window
* `${info:relay_client_count,weechat,connected} > 0`: true if at least
one client is connected on a weechat relay (new condition).
To use the new default value, you can reset the option with this command:
----
/unset weechat.look.hotlist_add_conditions
----
Or set explicitly the value:
----
/set weechat.look.hotlist_add_conditions "${away} || ${buffer.num_displayed} == 0 || ${info:relay_client_count,weechat,connected} > 0"
----
[[v2.2_default_triggers]]
=== Default triggers
The existing triggers "cmd_pass" and "msg_auth" have been updated to hide
password in command `/msg nickserv set password` and support the option
`-server xxx`.
You can restore the default triggers with the following command:
----
/trigger restore cmd_pass msg_auth
----
[[v2.2_irc_signals_tags]]
=== Tags in IRC "in" signals
The IRCv3 tags are now sent in these IRC signals for received messages
(_xxx_ is IRC server name, _yyy_ is IRC command name):
* _xxx,irc_in_yyy_
* _xxx,irc_in2_yyy_
* _xxx,irc_raw_in_yyy_
* _xxx,irc_raw_in2_yyy_
This could break plugins or scripts that parse IRC messages and don't expect
to receive tags (even if tags *are* part of the IRC message, so this was a bug
in the IRC signals).
See issue #787 for more information.
[NOTE]
It is recommended for plugins and scripts to use the WeeChat IRC parser:
see the function "info_get_hashtable" in the Plugin API reference.
Now the whole IRC message is received by the signal callback, for example:
----
@tag1=abc;tag2=def :nick!user@host PRIVMSG #test :this is a test
----
In older releases, this message was received:
----
:nick!user@host PRIVMSG #test :this is a test
----
[[v2.2_debian_headless_package]]
=== New Debian package for headless version
A new Debian package has been added: _weechat-headless_ which contains the
binary _weechat-headless_ and its man page.
In version 2.1, this binary was in the package _weechat-curses_.
[[v2.1]]
== Version 2.1 (2018-03-18)
[[v2.1_option_name_completion]]
=== Completion for /set and /help commands
A new option weechat.completion.partial_completion_templates has been added to
force partial completion on some templates. By default, the option name
completed in `/set` and `/help` commands are now using partial completion.
If you prefer old behavior, you can remove the templates from the new option
with this command:
----
/set weechat.completion.partial_completion_templates ""
----
For more information about this feature, you can read help with:
----
/help weechat.completion.partial_completion_templates
----
[[v2.1_script_plugin_check_license]]
=== Option to check license of scripts loaded
A configuration file has been added for each script plugin: _python.conf_,
_perl.conf_, _ruby.conf_, ...
Therefore the option to check license of loaded scripts has been moved from
_plugins.var.<language>.check_license_ (type: string) to the plugin
configuration file (type: boolean, default is _off_).
List of options moved:
* _plugins.var.python.check_license_ (string) moved to _python.look.check_license_ (boolean)
* _plugins.var.perl.check_license_ (string) moved to _perl.look.check_license_ (boolean)
* _plugins.var.ruby.check_license_ (string) moved to _ruby.look.check_license_ (boolean)
* _plugins.var.lua.check_license_ (string) moved to _lua.look.check_license_ (boolean)
* _plugins.var.tcl.check_license_ (string) moved to _tcl.look.check_license_ (boolean)
* _plugins.var.guile.check_license_ (string) moved to _guile.look.check_license_ (boolean)
* _plugins.var.javascript.check_license_ (string) moved to _javascript.look.check_license_ (boolean)
* _plugins.var.php.check_license_ (string) moved to _php.look.check_license_ (boolean)
[[v2.0.1]]
== Version 2.0.1 (2017-12-20)
Bug fix and maintenance release.
[[v2.0]]
== Version 2.0 (2017-12-03)
[[v2.0_fset_plugin]]
=== Fset plugin
A new plugin "fset" has been added, it replaces the script iset.pl and has many
new features.
By default the fset plugin changes the behavior of `/set` command when it is
used with only an option name: it opens the fset buffer if at least one option
is found.
The old behavior was to display the list of options in the core buffer.
If you prefer the old behavior, you can restore it with this command:
----
/set fset.look.condition_catch_set ""
----
For more information about this feature, you can read help with:
----
/help fset.look.condition_catch_set
----
[[v2.0_debian_packaging]]
=== Split of scripting Debian packages
The Debian packaging has changed (for now only on weechat.org repositories,
not in Debian official repositories). +
The package _weechat-plugins_ has been split into 9 packages:
- weechat-plugins (with only the following plugins: aspell, exec, fifo, relay,
script, trigger)
- weechat-python
- weechat-perl
- weechat-ruby
- weechat-lua
- weechat-tcl
- weechat-guile
- weechat-javascript
- weechat-php.
If you are using the packages from weechat.org, you will have to install
manually the scripting packages (according to the languages you'll use
in WeeChat), for example Python/Perl only:
----
sudo apt-get install weechat-python weechat-perl
----
For development packages:
----
sudo apt-get install weechat-devel-python weechat-devel-perl
----
[[v2.0_buflist_eval]]
=== Evaluation in buflist
The evaluation of expressions in buflist options is not recursive any more,
to prevent too many evaluations, for example in buffer variables
(see issue #1060 for more information). +
If you are using custom variables/options containing evaluated expressions,
like `${some.config.option}`, and if this option contains evaluated strings (`${...}`),
you must evaluate them with: `${eval:${some.config.option}}`.
[NOTE]
The default buflist formats (`${format_buffer}`, `${format_name}`,
`${format_hotlist}`, ...) are automatically evaluated in options _buflist.format.buffer_,
_buflist.format.buffer_current_ and _buflist.format.hotlist_.
[[v2.0_hook_connect]]
=== Function hook_connect
In scripts, the arguments _status_, _gnutls_rc_ and _sock_ sent to the callback
of _hook_connect_ are now integers (they were strings in older releases). +
To be compatible with all versions, it is recommended to convert the argument
to integer before using it, for example in Python: `int(sock)`.
[[v2.0_hook_fd]]
=== Function hook_fd
In scripts, the argument _fd_ sent to the callback of _hook_fd_ is now
an integer (it was a string in older releases). +
To be compatible with all versions, it is recommended to convert the argument
to integer before using it, for example in Python: `int(fd)`.
[[v1.9.1]]
== Version 1.9.1 (2017-09-23)
Bug fix and maintenance release.
[[v1.9]]
== Version 1.9 (2017-06-25)
No release note.
[[v1.8]]
== Version 1.8 (2017-05-13)
[[v1.8_buflist_plugin]]
=== Buflist plugin
A new plugin called "buflist" has been added, it replaces the script "buffers.pl".
If the script is installed, you will see two sidebars with list of buffers.
If you fell in love with buflist and that the script buffers.pl is installed,
you can uninstall the script and remove its bar with these commands:
----
/script remove buffers.pl
/bar del buffers
----
If you don't want the list of buffers, you can disable buflist:
----
/set buflist.look.enabled off
----
To save extra memory, you can even unload the buflist plugin, remove the bar and
prevent the plugin from loading on next startup:
----
/plugin unload buflist
/bar del buflist
/set weechat.plugin.autoload "*,!buflist"
----
[[v1.8_options]]
=== Options
The option _script.scripts.url_force_https_ has been removed because now the
site weechat.org can only be used with HTTPS. +
Both HTTP and HTTPS protocols are allowed in the option _script.scripts.url_.
For http://weechat.org/ an automatic redirection to https://weechat.org/ will
occur, so you should check that the CA certificates are properly installed
on your machine.
Aspell option with color for suggestion on a misspelled word has been renamed:
* _aspell.color.suggestions_ has been renamed to _aspell.color.suggestion_
[[v1.7.1]]
== Version 1.7.1 (2017-04-22)
Bug fix and maintenance release.
[[v1.7]]
== Version 1.7 (2017-01-15)
@@ -417,7 +1264,7 @@ behavior (never hide arguments, even with a channel key), you can do:
=== Jump to first/last buffer
The command `/input jump_last_buffer` has been replaced by `/buffer +`.
You can rebind the key kbd:[Alt+j], kbd:[Alt+l]:
You can rebind the key kbd:[Alt+j], kbd:[Alt+l] (`L`):
----
/key bind meta-jmeta-l /buffer +
@@ -474,11 +1321,19 @@ obsolete plugins).
=== Bare display
A bare display mode has been added (for easy text selection and click on URLs),
the new default key is kbd:[Alt+l].
the new default key is kbd:[Alt+l] (`L`).
Use command `/key missing` to add the key or `/key listdiff` to see differences
between your current keys and WeeChat default keys.
[[v1.0_hook_print]]
=== Function hook_print
In scripts, the arguments _displayed_ and _highlight_ sent to the callback of
_hook_print_ are now integers (they were strings in older releases). +
To be compatible with all versions, it is recommended to convert the argument
to integer before testing it, for example in Python: `if int(highlight):`.
[[v0.4.3]]
== Version 0.4.3 (2014-02-09)
@@ -664,17 +1519,17 @@ accordingly).
[NOTE]
For packagers: you should create the link `weechat-curses` -> `weechat` if it's
not automatically created in the package (both cmake and configure are creating
not automatically created in the package (both CMake and configure are creating
this link on make install).
[[v0.4.2_man_page_documentation]]
=== Man page / documentation
Documentation is not built by default any more, you have to use option
`-DENABLE_DOC=ON` in cmake to enable it.
`-DENABLE_DOC=ON` in cmake command to enable it.
The man page is now built with asciidoc and translated in several
languages. A new cmake option `ENABLE_MAN` has been added to compile man page
languages. A new CMake option `ENABLE_MAN` has been added to compile man page
(`OFF` by default).
[[v0.4.2_aspell_colors]]
@@ -1189,10 +2044,6 @@ Major differences:
accordingly, scripts and plugins must have been designed for version 0.3.x to
be loaded into WeeChat.
More information about new API is available on wiki:
http://wiki.flashtux.org/wiki/WeeChat_0.3.0
and http://wiki.flashtux.org/wiki/WeeChat_0.3.0_API
[[v0.2.6.3]]
== Version 0.2.6.3 (2009-06-13)
+7 -8
View File
@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2005 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org>
#
@@ -17,15 +17,15 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
###
### common stuff
###
DIR=$(cd $(dirname "$0"); pwd)
cd $DIR
DIR=$(cd "$(dirname "$0")" || exit 1; pwd)
cd "$DIR" || exit 1
AUTOGEN_LOG=autogen.log
@@ -41,9 +41,8 @@ err ()
run ()
{
echo -n "Running \"$@\"..."
eval $@ >$AUTOGEN_LOG 2>&1
if [ $? = 0 ] ; then
printf "Running \"%s\"..." "$@"
if eval "$@" >$AUTOGEN_LOG 2>&1 ; then
echo " OK"
else
echo " FAILED"
@@ -64,7 +63,7 @@ run "rm -f ABOUT-NLS"
run "rm -rf intl"
# execute autoreconf cmds
run "autoreconf -fvi"
run "autoreconf -vi"
# ending
rm -f $AUTOGEN_LOG
+4 -4
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# - Find Asciidoctor
@@ -34,7 +34,7 @@ if(ASCIIDOCTOR_EXECUTABLE)
execute_process(
COMMAND ${ASCIIDOCTOR_EXECUTABLE} --version
OUTPUT_VARIABLE ASCIIDOCTOR_VERSION
)
)
string(REGEX REPLACE "^Asciidoctor ([^ ]+) .*" "\\1" ASCIIDOCTOR_VERSION "${ASCIIDOCTOR_VERSION}")
@@ -45,5 +45,5 @@ if(ASCIIDOCTOR_EXECUTABLE)
mark_as_advanced(
ASCIIDOCTOR_EXECUTABLE
ASCIIDOCTOR_VERSION
)
)
endif()
+3 -3
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# - Find Aspell
@@ -55,4 +55,4 @@ endif()
mark_as_advanced(
ASPELL_INCLUDE_PATH
ASPELL_LIBRARY
)
)
+4 -4
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2014-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2014-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# - Find CppUTest
@@ -27,8 +27,8 @@
# CPPUTEST_LIBRARIES = Link options to compile with CppUTest
if(CPPUTEST_FOUND)
# Already in cache, be silent
set(CPPUTEST_FIND_QUIETLY TRUE)
# Already in cache, be silent
set(CPPUTEST_FIND_QUIETLY TRUE)
endif()
find_package(PkgConfig)
+10 -11
View File
@@ -13,10 +13,8 @@
if(ENCHANT_INCLUDE_DIR AND ENCHANT_LIBRARIES)
# in cache already
set(ENCHANT_FOUND TRUE)
else()
if(NOT WIN32)
# use pkg-config to get the directories and then use these values
@@ -27,17 +25,19 @@ else()
endif()
find_path(ENCHANT_INCLUDE_DIR
NAMES enchant++.h
HINTS ${PC_ENCHANT_INCLUDEDIR}
${PC_ENCHANT_INCLUDE_DIRS}
PATH_SUFFIXES enchant )
NAMES enchant++.h
HINTS ${PC_ENCHANT_INCLUDEDIR} ${PC_ENCHANT_INCLUDE_DIRS}
PATH_SUFFIXES enchant
)
find_library(ENCHANT_LIBRARIES NAMES enchant
HINTS ${PC_ENCHANT_LIBDIR}
${PC_ENCHANT_LIBRARY_DIRS} )
find_library(ENCHANT_LIBRARIES
NAMES enchant
HINTS ${PC_ENCHANT_LIBDIR}
${PC_ENCHANT_LIBRARY_DIRS}
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ENCHANT DEFAULT_MSG ENCHANT_INCLUDE_DIR ENCHANT_LIBRARIES )
find_package_handle_standard_args(ENCHANT DEFAULT_MSG ENCHANT_INCLUDE_DIR ENCHANT_LIBRARIES)
mark_as_advanced(ENCHANT_INCLUDE_DIR ENCHANT_LIBRARIES)
@@ -47,5 +47,4 @@ else()
check_symbol_exists(enchant_get_version "enchant.h" HAVE_ENCHANT_GET_VERSION)
set(CMAKE_REQUIRED_INCLUDES)
set(CMAKE_REQUIRED_LIBRARIES)
endif()
+3 -3
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# - Find Gcrypt
@@ -45,7 +45,7 @@ endif()
# handle the QUIETLY and REQUIRED arguments and set GCRYPT_FOUND to TRUE if
# all listed variables are TRUE
include(${CMAKE_HOME_DIRECTORY}/cmake/FindPackageHandleStandardArgs.cmake)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GCRYPT REQUIRED_VARS GCRYPT_LDFLAGS GCRYPT_CFLAGS)
if(GCRYPT_FOUND)
+5 -6
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2007 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org>
#
@@ -16,7 +16,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# - Find Gettext
@@ -28,8 +28,8 @@
# GETTEXT_FOUND = is gettext usable on system?
if(GETTEXT_FOUND)
# Already in cache, be silent
set(GETTEXT_FIND_QUIETLY TRUE)
# Already in cache, be silent
set(GETTEXT_FIND_QUIETLY TRUE)
endif()
include(CheckIncludeFiles)
@@ -54,7 +54,7 @@ if(HAVE_LIBINTL_H)
PATHS
/usr/local/lib
/usr/lib
)
)
if(LIBINTL_LIBRARY)
if(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
set(CMAKE_REQUIRED_LIBRARIES "iconv")
@@ -62,7 +62,6 @@ if(HAVE_LIBINTL_H)
else()
check_library_exists(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
endif()
if(LIBINTL_HAS_DGETTEXT)
set(GETTEXT_FOUND TRUE)
endif()
+9 -9
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org>
#
# This file is part of WeeChat, the extensible chat client.
@@ -15,7 +15,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# - Find GnuTLS
@@ -30,23 +30,23 @@
# GNUTLS_LDFLAGS = ldflags to use to compile
if(GNUTLS_INCLUDE_PATH AND GNUTLS_LIBRARY)
# Already in cache, be silent
set(GNUTLS_FIND_QUIETLY TRUE)
# Already in cache, be silent
set(GNUTLS_FIND_QUIETLY TRUE)
endif()
find_program(PKG_CONFIG_EXECUTABLE NAMES pkg-config)
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=prefix gnutls
OUTPUT_VARIABLE GNUTLS_PREFIX
OUTPUT_VARIABLE GNUTLS_PREFIX
)
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --cflags gnutls
OUTPUT_VARIABLE GNUTLS_CFLAGS
OUTPUT_VARIABLE GNUTLS_CFLAGS
)
string(REGEX REPLACE "[\r\n]" "" GNUTLS_CFLAGS "${GNUTLS_CFLAGS}")
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --libs gnutls
OUTPUT_VARIABLE GNUTLS_LDFLAGS
OUTPUT_VARIABLE GNUTLS_LDFLAGS
)
string(REGEX REPLACE "[\r\n]" "" GNUTLS_LDFLAGS "${GNUTLS_LDFLAGS}")
@@ -63,8 +63,8 @@ find_library(GNUTLS_LIBRARY
PATHS GNUTLS_POSSIBLE_LIB_DIR
)
if(GNUTLS_INCLUDE_PATH AND GNUTLS_LIBRARY)
set(GNUTLS_FOUND TRUE)
if(NOT GNUTLS_INCLUDE_PATH OR NOT GNUTLS_LIBRARY)
message(FATAL_ERROR "GnuTLS was not found")
endif()
mark_as_advanced(
+5 -5
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2011-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2011-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# - Find Guile
@@ -27,13 +27,13 @@
# GUILE_LIBRARIES = Link options to compile Guile
if(GUILE_FOUND)
# Already in cache, be silent
set(GUILE_FIND_QUIETLY TRUE)
# Already in cache, be silent
set(GUILE_FIND_QUIETLY TRUE)
endif()
find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
pkg_search_module(GUILE guile-2.0)
pkg_search_module(GUILE guile-3.0 guile-2.2 guile-2.0)
if(GUILE_FOUND)
# check if variable "scm_install_gmp_memory_functions" exists
set(CMAKE_REQUIRED_INCLUDES ${GUILE_INCLUDE_DIRS})
+4 -4
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# - Find Iconv
@@ -29,8 +29,8 @@
# ICONV_FOUND = is iconv usable on system?
if(ICONV_FOUND)
# Already in cache, be silent
set(ICONV_FIND_QUIETLY TRUE)
# Already in cache, be silent
set(ICONV_FIND_QUIETLY TRUE)
endif()
include(CheckLibraryExists)
+4 -4
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# - Find Lua
@@ -29,8 +29,8 @@
# LUA_FOUND = is liblua usable on system?
if(LUA_FOUND)
# Already in cache, be silent
set(LUA_FIND_QUIETLY TRUE)
# Already in cache, be silent
set(LUA_FIND_QUIETLY TRUE)
endif()
find_package(PkgConfig)
+14 -5
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
if(NCURSES_FOUND)
@@ -23,9 +23,8 @@ endif()
find_path(NCURSES_INCLUDE_PATH
NAMES ncurses.h curses.h
PATHS /usr/include/ncursesw /usr/include/ncurses /usr/include
/usr/local/include/ncursesw /usr/local/include/ncurses /usr/local/include
/usr/pkg/include/ncursesw /usr/pkg/include/ncurses /usr/pkg/include
PATH_SUFFIXES ncursesw ncurses
PATHS /usr/include /usr/local/include /usr/pkg/include
)
find_library(NCURSESW_LIBRARY
@@ -34,12 +33,22 @@ find_library(NCURSESW_LIBRARY
)
if(NCURSESW_LIBRARY)
find_package(PkgConfig QUIET)
if(PKG_CONFIG_FOUND)
pkg_search_module(NCURSES ncursesw)
set(NCURSESW_LIBRARY ${NCURSES_LIBRARIES} ${NCURSES_CFLAGS_OTHER})
endif()
set(NCURSES_LIBRARY ${NCURSESW_LIBRARY})
else()
find_library(NCURSES_LIBRARY
NAMES ncurses
PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
)
find_package(PkgConfig QUIET)
if(PKG_CONFIG_FOUND)
pkg_search_module(NCURSES ncurses)
set(NCURSES_LIBRARY ${NCURSES_LIBRARIES} ${NCURSES_CFLAGS_OTHER})
endif()
if(NCURSES_LIBRARY)
message("*** WARNING:\n"
"*** ncursesw library not found! Falling back to \"ncurses\"\n"
+66
View File
@@ -0,0 +1,66 @@
#
# Copyright (C) 2017 Adam Saponara <as@php.net>
# Copyright (C) 2017-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
if(PHP_FOUND)
set(PHP_FIND_QUIETLY TRUE)
endif()
find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
pkg_search_module(PHP php7)
endif()
if(NOT PHP_FOUND)
find_program(PHP_CONFIG_EXECUTABLE NAMES
php-config7.4 php-config74
php-config7.3 php-config73
php-config7.2 php-config72
php-config7.1 php-config71
php-config7.0 php-config70
php-config php-config7
)
if (PHP_CONFIG_EXECUTABLE)
execute_process(COMMAND ${PHP_CONFIG_EXECUTABLE} --prefix OUTPUT_VARIABLE PHP_LIB_PREFIX OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND ${PHP_CONFIG_EXECUTABLE} --includes OUTPUT_VARIABLE PHP_INCLUDE_DIRS OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND ${PHP_CONFIG_EXECUTABLE} --libs OUTPUT_VARIABLE PHP_LIBS OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND ${PHP_CONFIG_EXECUTABLE} --version OUTPUT_VARIABLE PHP_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
if(${PHP_VERSION} MATCHES "^7")
find_library(PHP_LIB
NAMES php7.4 php7.3 php7.2 php7.1 php7.0 php7
HINTS ${PHP_LIB_PREFIX} ${PHP_LIB_PREFIX}/lib ${PHP_LIB_PREFIX}/lib64
)
if(PHP_LIB)
get_filename_component(PHP_LIB_DIR ${PHP_LIB} DIRECTORY)
string(REPLACE "-I" "" PHP_INCLUDE_DIRS ${PHP_INCLUDE_DIRS})
SEPARATE_ARGUMENTS(PHP_INCLUDE_DIRS)
set(PHP_LDFLAGS "-L${PHP_LIB_DIR} ${PHP_LIBS}")
set(PHP_FOUND 1)
endif()
endif()
endif()
endif()
if(NOT PHP_FOUND)
message(WARNING "Could not find libphp7. "
"Ensure PHP >=7.0.0 development libraries are installed and compiled with `--enable-embed`. "
"Ensure `php-config` is in `PATH`. "
"You may set `-DCMAKE_LIBRARY_PATH=...` to the directory containing libphp7."
)
endif()
-260
View File
@@ -1,260 +0,0 @@
# FIND_PACKAGE_HANDLE_STANDARD_ARGS(<name> ... )
#
# This function is intended to be used in FindXXX.cmake modules files.
# It handles the REQUIRED, QUIET and version-related arguments to FIND_PACKAGE().
# It also sets the <UPPERCASED_NAME>_FOUND variable.
# The package is considered found if all variables <var1>... listed contain
# valid results, e.g. valid filepaths.
#
# There are two modes of this function. The first argument in both modes is
# the name of the Find-module where it is called (in original casing).
#
# The first simple mode looks like this:
# FIND_PACKAGE_HANDLE_STANDARD_ARGS(<name> (DEFAULT_MSG|"Custom failure message") <var1>...<varN> )
# If the variables <var1> to <varN> are all valid, then <UPPERCASED_NAME>_FOUND
# will be set to TRUE.
# If DEFAULT_MSG is given as second argument, then the function will generate
# itself useful success and error messages. You can also supply a custom error message
# for the failure case. This is not recommended.
#
# The second mode is more powerful and also supports version checking:
# FIND_PACKAGE_HANDLE_STANDARD_ARGS(NAME [REQUIRED_VARS <var1>...<varN>]
# [VERSION_VAR <versionvar>
# [CONFIG_MODE]
# [FAIL_MESSAGE "Custom failure message"] )
#
# As above, if <var1> through <varN> are all valid, <UPPERCASED_NAME>_FOUND
# will be set to TRUE.
# After REQUIRED_VARS the variables which are required for this package are listed.
# Following VERSION_VAR the name of the variable can be specified which holds
# the version of the package which has been found. If this is done, this version
# will be checked against the (potentially) specified required version used
# in the find_package() call. The EXACT keyword is also handled. The default
# messages include information about the required version and the version
# which has been actually found, both if the version is ok or not.
# Use the option CONFIG_MODE if your FindXXX.cmake module is a wrapper for
# a find_package(... NO_MODULE) call, in this case all the information
# provided by the config-mode of find_package() will be evaluated
# automatically.
# Via FAIL_MESSAGE a custom failure message can be specified, if this is not
# used, the default message will be displayed.
#
# Example for mode 1:
#
# FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXml2 DEFAULT_MSG LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
#
# LibXml2 is considered to be found, if both LIBXML2_LIBRARY and
# LIBXML2_INCLUDE_DIR are valid. Then also LIBXML2_FOUND is set to TRUE.
# If it is not found and REQUIRED was used, it fails with FATAL_ERROR,
# independent whether QUIET was used or not.
# If it is found, success will be reported, including the content of <var1>.
# On repeated Cmake runs, the same message won't be printed again.
#
# Example for mode 2:
#
# FIND_PACKAGE_HANDLE_STANDARD_ARGS(BISON REQUIRED_VARS BISON_EXECUTABLE
# VERSION_VAR BISON_VERSION)
# In this case, BISON is considered to be found if the variable(s) listed
# after REQUIRED_VAR are all valid, i.e. BISON_EXECUTABLE in this case.
# Also the version of BISON will be checked by using the version contained
# in BISON_VERSION.
# Since no FAIL_MESSAGE is given, the default messages will be printed.
#
# Another example for mode 2:
#
# FIND_PACKAGE(Automoc4 QUIET NO_MODULE HINTS /opt/automoc4)
# FIND_PACKAGE_HANDLE_STANDARD_ARGS(Automoc4 CONFIG_MODE)
# In this case, FindAutmoc4.cmake wraps a call to FIND_PACKAGE(Automoc4 NO_MODULE)
# and adds an additional search directory for automoc4.
# The following FIND_PACKAGE_HANDLE_STANDARD_ARGS() call produces a proper
# success/error message.
#=============================================================================
# Copyright 2007-2009 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
INCLUDE(FindPackageMessage)
INCLUDE(CMakeParseArguments)
# internal helper macro
MACRO(_FPHSA_FAILURE_MESSAGE _msg)
IF (${_NAME}_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "${_msg}")
ELSE (${_NAME}_FIND_REQUIRED)
IF (NOT ${_NAME}_FIND_QUIETLY)
MESSAGE(STATUS "${_msg}")
ENDIF (NOT ${_NAME}_FIND_QUIETLY)
ENDIF (${_NAME}_FIND_REQUIRED)
ENDMACRO(_FPHSA_FAILURE_MESSAGE _msg)
# internal helper macro to generate the failure message when used in CONFIG_MODE:
MACRO(_FPHSA_HANDLE_FAILURE_CONFIG_MODE)
# <name>_CONFIG is set, but FOUND is false, this means that some other of the REQUIRED_VARS was not found:
IF(${_NAME}_CONFIG)
_FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE}: missing: ${MISSING_VARS} (found ${${_NAME}_CONFIG} ${VERSION_MSG})")
ELSE(${_NAME}_CONFIG)
# If _CONSIDERED_CONFIGS is set, the config-file has been found, but no suitable version.
# List them all in the error message:
IF(${_NAME}_CONSIDERED_CONFIGS)
SET(configsText "")
LIST(LENGTH ${_NAME}_CONSIDERED_CONFIGS configsCount)
MATH(EXPR configsCount "${configsCount} - 1")
FOREACH(currentConfigIndex RANGE ${configsCount})
LIST(GET ${_NAME}_CONSIDERED_CONFIGS ${currentConfigIndex} filename)
LIST(GET ${_NAME}_CONSIDERED_VERSIONS ${currentConfigIndex} version)
SET(configsText "${configsText} ${filename} (version ${version})\n")
ENDFOREACH(currentConfigIndex)
_FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE} ${VERSION_MSG}, checked the following files:\n${configsText}")
ELSE(${_NAME}_CONSIDERED_CONFIGS)
# Simple case: No Config-file was found at all:
_FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE}: found neither ${_NAME}Config.cmake nor ${_NAME_LOWER}-config.cmake ${VERSION_MSG}")
ENDIF(${_NAME}_CONSIDERED_CONFIGS)
ENDIF(${_NAME}_CONFIG)
ENDMACRO(_FPHSA_HANDLE_FAILURE_CONFIG_MODE)
FUNCTION(FIND_PACKAGE_HANDLE_STANDARD_ARGS _NAME _FIRST_ARG)
# set up the arguments for CMAKE_PARSE_ARGUMENTS and check whether we are in
# new extended or in the "old" mode:
SET(options CONFIG_MODE)
SET(oneValueArgs FAIL_MESSAGE VERSION_VAR)
SET(multiValueArgs REQUIRED_VARS)
SET(_KEYWORDS_FOR_EXTENDED_MODE ${options} ${oneValueArgs} ${multiValueArgs} )
LIST(FIND _KEYWORDS_FOR_EXTENDED_MODE "${_FIRST_ARG}" INDEX)
IF(${INDEX} EQUAL -1)
SET(FPHSA_FAIL_MESSAGE ${_FIRST_ARG})
SET(FPHSA_REQUIRED_VARS ${ARGN})
SET(FPHSA_VERSION_VAR)
ELSE(${INDEX} EQUAL -1)
CMAKE_PARSE_ARGUMENTS(FPHSA "${options}" "${oneValueArgs}" "${multiValueArgs}" ${_FIRST_ARG} ${ARGN})
IF(FPHSA_UNPARSED_ARGUMENTS)
MESSAGE(FATAL_ERROR "Unknown keywords given to FIND_PACKAGE_HANDLE_STANDARD_ARGS(): \"${FPHSA_UNPARSED_ARGUMENTS}\"")
ENDIF(FPHSA_UNPARSED_ARGUMENTS)
IF(NOT FPHSA_FAIL_MESSAGE)
SET(FPHSA_FAIL_MESSAGE "DEFAULT_MSG")
ENDIF(NOT FPHSA_FAIL_MESSAGE)
ENDIF(${INDEX} EQUAL -1)
# now that we collected all arguments, process them
IF("${FPHSA_FAIL_MESSAGE}" STREQUAL "DEFAULT_MSG")
SET(FPHSA_FAIL_MESSAGE "Could NOT find ${_NAME}")
ENDIF("${FPHSA_FAIL_MESSAGE}" STREQUAL "DEFAULT_MSG")
# In config-mode, we rely on the variable <package>_CONFIG, which is set by find_package()
# when it successfully found the config-file, including version checking:
IF(FPHSA_CONFIG_MODE)
LIST(INSERT FPHSA_REQUIRED_VARS 0 ${_NAME}_CONFIG)
LIST(REMOVE_DUPLICATES FPHSA_REQUIRED_VARS)
SET(FPHSA_VERSION_VAR ${_NAME}_VERSION)
ENDIF(FPHSA_CONFIG_MODE)
IF(NOT FPHSA_REQUIRED_VARS)
MESSAGE(FATAL_ERROR "No REQUIRED_VARS specified for FIND_PACKAGE_HANDLE_STANDARD_ARGS()")
ENDIF(NOT FPHSA_REQUIRED_VARS)
LIST(GET FPHSA_REQUIRED_VARS 0 _FIRST_REQUIRED_VAR)
STRING(TOUPPER ${_NAME} _NAME_UPPER)
STRING(TOLOWER ${_NAME} _NAME_LOWER)
# collect all variables which were not found, so they can be printed, so the
# user knows better what went wrong (#6375)
SET(MISSING_VARS "")
SET(DETAILS "")
SET(${_NAME_UPPER}_FOUND TRUE)
# check if all passed variables are valid
FOREACH(_CURRENT_VAR ${FPHSA_REQUIRED_VARS})
IF(NOT ${_CURRENT_VAR})
SET(${_NAME_UPPER}_FOUND FALSE)
SET(MISSING_VARS "${MISSING_VARS} ${_CURRENT_VAR}")
ELSE(NOT ${_CURRENT_VAR})
SET(DETAILS "${DETAILS}[${${_CURRENT_VAR}}]")
ENDIF(NOT ${_CURRENT_VAR})
ENDFOREACH(_CURRENT_VAR)
# version handling:
SET(VERSION_MSG "")
SET(VERSION_OK TRUE)
SET(VERSION ${${FPHSA_VERSION_VAR}} )
IF (${_NAME}_FIND_VERSION)
IF(VERSION)
IF(${_NAME}_FIND_VERSION_EXACT) # exact version required
IF (NOT "${${_NAME}_FIND_VERSION}" VERSION_EQUAL "${VERSION}")
SET(VERSION_MSG "Found unsuitable version \"${VERSION}\", but required is exact version \"${${_NAME}_FIND_VERSION}\"")
SET(VERSION_OK FALSE)
ELSE (NOT "${${_NAME}_FIND_VERSION}" VERSION_EQUAL "${VERSION}")
SET(VERSION_MSG "(found suitable exact version \"${VERSION}\")")
ENDIF (NOT "${${_NAME}_FIND_VERSION}" VERSION_EQUAL "${VERSION}")
ELSE(${_NAME}_FIND_VERSION_EXACT) # minimum version specified:
IF ("${${_NAME}_FIND_VERSION}" VERSION_GREATER "${VERSION}")
SET(VERSION_MSG "Found unsuitable version \"${VERSION}\", but required is at least \"${${_NAME}_FIND_VERSION}\"")
SET(VERSION_OK FALSE)
ELSE ("${${_NAME}_FIND_VERSION}" VERSION_GREATER "${VERSION}")
SET(VERSION_MSG "(found suitable version \"${VERSION}\", required is \"${${_NAME}_FIND_VERSION}\")")
ENDIF ("${${_NAME}_FIND_VERSION}" VERSION_GREATER "${VERSION}")
ENDIF(${_NAME}_FIND_VERSION_EXACT)
ELSE(VERSION)
# if the package was not found, but a version was given, add that to the output:
IF(${_NAME}_FIND_VERSION_EXACT)
SET(VERSION_MSG "(Required is exact version \"${${_NAME}_FIND_VERSION}\")")
ELSE(${_NAME}_FIND_VERSION_EXACT)
SET(VERSION_MSG "(Required is at least version \"${${_NAME}_FIND_VERSION}\")")
ENDIF(${_NAME}_FIND_VERSION_EXACT)
ENDIF(VERSION)
ELSE (${_NAME}_FIND_VERSION)
IF(VERSION)
SET(VERSION_MSG "(found version \"${VERSION}\")")
ENDIF(VERSION)
ENDIF (${_NAME}_FIND_VERSION)
IF(VERSION_OK)
SET(DETAILS "${DETAILS}[v${VERSION}(${${_NAME}_FIND_VERSION})]")
ELSE(VERSION_OK)
SET(${_NAME_UPPER}_FOUND FALSE)
ENDIF(VERSION_OK)
# print the result:
IF (${_NAME_UPPER}_FOUND)
FIND_PACKAGE_MESSAGE(${_NAME} "Found ${_NAME}: ${${_FIRST_REQUIRED_VAR}} ${VERSION_MSG}" "${DETAILS}")
ELSE (${_NAME_UPPER}_FOUND)
IF(FPHSA_CONFIG_MODE)
_FPHSA_HANDLE_FAILURE_CONFIG_MODE()
ELSE(FPHSA_CONFIG_MODE)
IF(NOT VERSION_OK)
_FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE}: ${VERSION_MSG} (found ${${_FIRST_REQUIRED_VAR}})")
ELSE(NOT VERSION_OK)
_FPHSA_FAILURE_MESSAGE("${FPHSA_FAIL_MESSAGE} (missing: ${MISSING_VARS}) ${VERSION_MSG}")
ENDIF(NOT VERSION_OK)
ENDIF(FPHSA_CONFIG_MODE)
ENDIF (${_NAME_UPPER}_FOUND)
SET(${_NAME_UPPER}_FOUND ${${_NAME_UPPER}_FOUND} PARENT_SCOPE)
ENDFUNCTION(FIND_PACKAGE_HANDLE_STANDARD_ARGS _FIRST_ARG)
+11 -11
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# - Find Perl libraries
@@ -29,31 +29,31 @@
# PERL_LFLAGS = perl compiler options for linking
if(PERL_FOUND)
# Already in cache, be silent
set(PERL_FIND_QUIETLY TRUE)
# Already in cache, be silent
set(PERL_FIND_QUIETLY TRUE)
endif()
find_program(PERL_EXECUTABLE
NAMES perl perl5
PATHS /usr/bin /usr/local/bin /usr/pkg/bin
)
)
if(PERL_EXECUTABLE)
execute_process(
COMMAND ${PERL_EXECUTABLE} -MConfig -e "print \"\$Config{archlibexp}/CORE\""
OUTPUT_VARIABLE PERL_INTERNAL_DIR
)
)
execute_process(
COMMAND ${PERL_EXECUTABLE} -MExtUtils::Embed -e ccopts
OUTPUT_VARIABLE PERL_CFLAGS
)
)
execute_process(
COMMAND ${PERL_EXECUTABLE} -MExtUtils::Embed -e ldopts
OUTPUT_VARIABLE PERL_LFLAGS
)
)
# remove the new lines from the output by replacing them with empty strings
string(REPLACE "\n" "" PERL_INTERNAL_DIR "${PERL_INTERNAL_DIR}")
@@ -63,12 +63,12 @@ if(PERL_EXECUTABLE)
find_path(PERL_INCLUDE_PATH
NAMES perl.h
PATHS ${PERL_INTERNAL_DIR}
)
)
find_library(PERL_LIBRARY
NAMES perl
PATHS /usr/lib /usr/local/lib /usr/pkg/lib ${PERL_INTERNAL_DIR}
)
)
if(PERL_LIBRARY AND PERL_INCLUDE_PATH)
set(PERL_FOUND TRUE)
@@ -80,5 +80,5 @@ if(PERL_EXECUTABLE)
PERL_LIBRARY
PERL_CFLAGS
PERL_LFLAGS
)
)
endif()
+597 -185
View File
@@ -1,117 +1,60 @@
# - a pkg-config module for CMake
#
# Usage:
# pkg_check_modules(<PREFIX> [REQUIRED] <MODULE> [<MODULE>]*)
# checks for all the given modules
#
# pkg_search_module(<PREFIX> [REQUIRED] <MODULE> [<MODULE>]*)
# checks for given modules and uses the first working one
#
# When the 'REQUIRED' argument was set, macros will fail with an error
# when module(s) could not be found
#
# It sets the following variables:
# PKG_CONFIG_FOUND ... true iff pkg-config works on the system
# PKG_CONFIG_EXECUTABLE ... pathname of the pkg-config program
# <PREFIX>_FOUND ... set to 1 iff module(s) exist
#
# For the following variables two sets of values exist; first one is the
# common one and has the given PREFIX. The second set contains flags
# which are given out when pkgconfig was called with the '--static'
# option.
# <XPREFIX>_LIBRARIES ... only the libraries (w/o the '-l')
# <XPREFIX>_LIBRARY_DIRS ... the paths of the libraries (w/o the '-L')
# <XPREFIX>_LDFLAGS ... all required linker flags
# <XPREFIX>_LDFLAGS_OTHER ... all other linker flags
# <XPREFIX>_INCLUDE_DIRS ... the '-I' preprocessor flags (w/o the '-I')
# <XPREFIX>_CFLAGS ... all required cflags
# <XPREFIX>_CFLAGS_OTHER ... the other compiler flags
#
# <XPREFIX> = <PREFIX> for common case
# <XPREFIX> = <PREFIX>_STATIC for static linking
#
# There are some special variables whose prefix depends on the count
# of given modules. When there is only one module, <PREFIX> stays
# unchanged. When there are multiple modules, the prefix will be
# changed to <PREFIX>_<MODNAME>:
# <XPREFIX>_VERSION ... version of the module
# <XPREFIX>_PREFIX ... prefix-directory of the module
# <XPREFIX>_INCLUDEDIR ... include-dir of the module
# <XPREFIX>_LIBDIR ... lib-dir of the module
#
# <XPREFIX> = <PREFIX> when |MODULES| == 1, else
# <XPREFIX> = <PREFIX>_<MODNAME>
#
# A <MODULE> parameter can have the following formats:
# {MODNAME} ... matches any version
# {MODNAME}>={VERSION} ... at least version <VERSION> is required
# {MODNAME}={VERSION} ... exactly version <VERSION> is required
# {MODNAME}<={VERSION} ... modules must not be newer than <VERSION>
#
# Examples
# pkg_check_modules (GLIB2 glib-2.0)
#
# pkg_check_modules (GLIB2 glib-2.0>=2.10)
# requires at least version 2.10 of glib2 and defines e.g.
# GLIB2_VERSION=2.10.3
#
# pkg_check_modules (FOO glib-2.0>=2.10 gtk+-2.0)
# requires both glib2 and gtk2, and defines e.g.
# FOO_glib-2.0_VERSION=2.10.3
# FOO_gtk+-2.0_VERSION=2.8.20
#
# pkg_check_modules (XRENDER REQUIRED xrender)
# defines e.g.:
# XRENDER_LIBRARIES=Xrender;X11
# XRENDER_STATIC_LIBRARIES=Xrender;X11;pthread;Xau;Xdmcp
#
# pkg_search_module (BAR libxml-2.0 libxml2 libxml>=2)
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
#[========================================[.rst:
FindPkgConfig
-------------
# Copyright (C) 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
#
# Redistribution and use, with or without modification, are permitted
# provided that the following conditions are met:
#
# 1. Redistributions must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# 2. The name of the author may not be used to endorse or promote
# products derived from this software without specific prior
# written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
A ``pkg-config`` module for CMake.
Finds the ``pkg-config`` executable and adds the :command:`pkg_get_variable`,
:command:`pkg_check_modules` and :command:`pkg_search_module` commands. The
following variables will also be set:
``PKG_CONFIG_FOUND``
if pkg-config executable was found
``PKG_CONFIG_EXECUTABLE``
pathname of the pkg-config program
``PKG_CONFIG_VERSION_STRING``
version of pkg-config (since CMake 2.8.8)
#]========================================]
### Common stuff ####
set(PKG_CONFIG_VERSION 1)
set(PKG_CONFIG_FOUND 0)
# find pkg-config, use PKG_CONFIG if set
if((NOT PKG_CONFIG_EXECUTABLE) AND (NOT "$ENV{PKG_CONFIG}" STREQUAL ""))
set(PKG_CONFIG_EXECUTABLE "$ENV{PKG_CONFIG}" CACHE FILEPATH "pkg-config executable")
endif()
find_program(PKG_CONFIG_EXECUTABLE NAMES pkg-config DOC "pkg-config executable")
mark_as_advanced(PKG_CONFIG_EXECUTABLE)
if(PKG_CONFIG_EXECUTABLE)
set(PKG_CONFIG_FOUND 1)
endif(PKG_CONFIG_EXECUTABLE)
if (PKG_CONFIG_EXECUTABLE)
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --version
OUTPUT_VARIABLE PKG_CONFIG_VERSION_STRING
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)
endif ()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(PkgConfig
REQUIRED_VARS PKG_CONFIG_EXECUTABLE
VERSION_VAR PKG_CONFIG_VERSION_STRING)
# This is needed because the module name is "PkgConfig" but the name of
# this variable has always been PKG_CONFIG_FOUND so this isn't automatically
# handled by FPHSA.
set(PKG_CONFIG_FOUND "${PKGCONFIG_FOUND}")
# Unsets the given variables
macro(_pkgconfig_unset var)
set(${var} "" CACHE INTERNAL "")
endmacro(_pkgconfig_unset)
endmacro()
macro(_pkgconfig_set var value)
set(${var} ${value} CACHE INTERNAL "")
endmacro(_pkgconfig_set)
endmacro()
# Invokes pkgconfig, cleans up the result and sets variables
macro(_pkgconfig_invoke _pkglist _prefix _varname _regexp)
@@ -120,55 +63,311 @@ macro(_pkgconfig_invoke _pkglist _prefix _varname _regexp)
execute_process(
COMMAND ${PKG_CONFIG_EXECUTABLE} ${ARGN} ${_pkglist}
OUTPUT_VARIABLE _pkgconfig_invoke_result
RESULT_VARIABLE _pkgconfig_failed)
RESULT_VARIABLE _pkgconfig_failed
OUTPUT_STRIP_TRAILING_WHITESPACE)
if (_pkgconfig_failed)
set(_pkgconfig_${_varname} "")
_pkgconfig_unset(${_prefix}_${_varname})
else(_pkgconfig_failed)
string(REGEX REPLACE "[\r\n]" " " _pkgconfig_invoke_result "${_pkgconfig_invoke_result}")
string(REGEX REPLACE " +$" "" _pkgconfig_invoke_result "${_pkgconfig_invoke_result}")
else()
string(REGEX REPLACE "[\r\n]" " " _pkgconfig_invoke_result "${_pkgconfig_invoke_result}")
if (NOT ${_regexp} STREQUAL "")
string(REGEX REPLACE "${_regexp}" " " _pkgconfig_invoke_result "${_pkgconfig_invoke_result}")
endif(NOT ${_regexp} STREQUAL "")
endif()
separate_arguments(_pkgconfig_invoke_result)
#message(STATUS " ${_varname} ... ${_pkgconfig_invoke_result}")
set(_pkgconfig_${_varname} ${_pkgconfig_invoke_result})
_pkgconfig_set(${_prefix}_${_varname} "${_pkgconfig_invoke_result}")
endif(_pkgconfig_failed)
endmacro(_pkgconfig_invoke)
endif()
endmacro()
# Internal version of pkg_get_variable; expects PKG_CONFIG_PATH to already be set
function (_pkg_get_variable result pkg variable)
_pkgconfig_invoke("${pkg}" "prefix" "result" "" "--variable=${variable}")
set("${result}"
"${prefix_result}"
PARENT_SCOPE)
endfunction ()
# Invokes pkgconfig two times; once without '--static' and once with
# '--static'
macro(_pkgconfig_invoke_dyn _pkglist _prefix _varname cleanup_regexp)
_pkgconfig_invoke("${_pkglist}" ${_prefix} ${_varname} "${cleanup_regexp}" ${ARGN})
_pkgconfig_invoke("${_pkglist}" ${_prefix} STATIC_${_varname} "${cleanup_regexp}" --static ${ARGN})
endmacro(_pkgconfig_invoke_dyn)
endmacro()
# Splits given arguments into options and a package list
macro(_pkgconfig_parse_options _result _is_req)
macro(_pkgconfig_parse_options _result _is_req _is_silent _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global)
set(${_is_req} 0)
set(${_is_silent} 0)
set(${_no_cmake_path} 0)
set(${_no_cmake_environment_path} 0)
set(${_imp_target} 0)
set(${_imp_target_global} 0)
if(DEFINED PKG_CONFIG_USE_CMAKE_PREFIX_PATH)
if(NOT PKG_CONFIG_USE_CMAKE_PREFIX_PATH)
set(${_no_cmake_path} 1)
set(${_no_cmake_environment_path} 1)
endif()
elseif(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 3.1)
set(${_no_cmake_path} 1)
set(${_no_cmake_environment_path} 1)
endif()
foreach(_pkg ${ARGN})
if (_pkg STREQUAL "REQUIRED")
set(${_is_req} 1)
endif (_pkg STREQUAL "REQUIRED")
endforeach(_pkg ${ARGN})
endif ()
if (_pkg STREQUAL "QUIET")
set(${_is_silent} 1)
endif ()
if (_pkg STREQUAL "NO_CMAKE_PATH")
set(${_no_cmake_path} 1)
endif()
if (_pkg STREQUAL "NO_CMAKE_ENVIRONMENT_PATH")
set(${_no_cmake_environment_path} 1)
endif()
if (_pkg STREQUAL "IMPORTED_TARGET")
set(${_imp_target} 1)
endif()
if (_pkg STREQUAL "GLOBAL")
set(${_imp_target_global} 1)
endif()
endforeach()
if (${_imp_target_global} AND NOT ${_imp_target})
message(SEND_ERROR "the argument GLOBAL may only be used together with IMPORTED_TARGET")
endif()
set(${_result} ${ARGN})
list(REMOVE_ITEM ${_result} "REQUIRED")
endmacro(_pkgconfig_parse_options)
list(REMOVE_ITEM ${_result} "QUIET")
list(REMOVE_ITEM ${_result} "NO_CMAKE_PATH")
list(REMOVE_ITEM ${_result} "NO_CMAKE_ENVIRONMENT_PATH")
list(REMOVE_ITEM ${_result} "IMPORTED_TARGET")
list(REMOVE_ITEM ${_result} "GLOBAL")
endmacro()
# Add the content of a variable or an environment variable to a list of
# paths
# Usage:
# - _pkgconfig_add_extra_path(_extra_paths VAR)
# - _pkgconfig_add_extra_path(_extra_paths ENV VAR)
function(_pkgconfig_add_extra_path _extra_paths_var _var)
set(_is_env 0)
if(ARGC GREATER 2 AND _var STREQUAL "ENV")
set(_var ${ARGV2})
set(_is_env 1)
endif()
if(NOT _is_env)
if(NOT "${${_var}}" STREQUAL "")
list(APPEND ${_extra_paths_var} ${${_var}})
endif()
else()
if(NOT "$ENV{${_var}}" STREQUAL "")
file(TO_CMAKE_PATH "$ENV{${_var}}" _path)
list(APPEND ${_extra_paths_var} ${_path})
unset(_path)
endif()
endif()
set(${_extra_paths_var} ${${_extra_paths_var}} PARENT_SCOPE)
endfunction()
# scan the LDFLAGS returned by pkg-config for library directories and
# libraries, figure out the absolute paths of that libraries in the
# given directories
function(_pkg_find_libs _prefix _no_cmake_path _no_cmake_environment_path)
unset(_libs)
unset(_find_opts)
# set the options that are used as long as the .pc file does not provide a library
# path to look into
if(_no_cmake_path)
list(APPEND _find_opts "NO_CMAKE_PATH")
endif()
if(_no_cmake_environment_path)
list(APPEND _find_opts "NO_CMAKE_ENVIRONMENT_PATH")
endif()
unset(_search_paths)
foreach (flag IN LISTS ${_prefix}_LDFLAGS)
if (flag MATCHES "^-L(.*)")
list(APPEND _search_paths ${CMAKE_MATCH_1})
continue()
endif()
if (flag MATCHES "^-l(.*)")
set(_pkg_search "${CMAKE_MATCH_1}")
else()
continue()
endif()
if(_search_paths)
# Firstly search in -L paths
find_library(pkgcfg_lib_${_prefix}_${_pkg_search}
NAMES ${_pkg_search}
HINTS ${_search_paths} NO_DEFAULT_PATH)
endif()
find_library(pkgcfg_lib_${_prefix}_${_pkg_search}
NAMES ${_pkg_search}
${_find_opts})
mark_as_advanced(pkgcfg_lib_${_prefix}_${_pkg_search})
if(pkgcfg_lib_${_prefix}_${_pkg_search})
list(APPEND _libs "${pkgcfg_lib_${_prefix}_${_pkg_search}}")
else()
list(APPEND _libs ${_pkg_search})
endif()
endforeach()
set(${_prefix}_LINK_LIBRARIES "${_libs}" PARENT_SCOPE)
endfunction()
# create an imported target from all the information returned by pkg-config
function(_pkg_create_imp_target _prefix _imp_target_global)
# only create the target if it is linkable, i.e. no executables
if (NOT TARGET PkgConfig::${_prefix}
AND ( ${_prefix}_INCLUDE_DIRS OR ${_prefix}_LINK_LIBRARIES OR ${_prefix}_LDFLAGS_OTHER OR ${_prefix}_CFLAGS_OTHER ))
if(${_imp_target_global})
set(_global_opt "GLOBAL")
else()
unset(_global_opt)
endif()
add_library(PkgConfig::${_prefix} INTERFACE IMPORTED ${_global_opt})
if(${_prefix}_INCLUDE_DIRS)
set_property(TARGET PkgConfig::${_prefix} PROPERTY
INTERFACE_INCLUDE_DIRECTORIES "${${_prefix}_INCLUDE_DIRS}")
endif()
if(${_prefix}_LINK_LIBRARIES)
set_property(TARGET PkgConfig::${_prefix} PROPERTY
INTERFACE_LINK_LIBRARIES "${${_prefix}_LINK_LIBRARIES}")
endif()
if(${_prefix}_LDFLAGS_OTHER)
set_property(TARGET PkgConfig::${_prefix} PROPERTY
INTERFACE_LINK_OPTIONS "${${_prefix}_LDFLAGS_OTHER}")
endif()
if(${_prefix}_CFLAGS_OTHER)
set_property(TARGET PkgConfig::${_prefix} PROPERTY
INTERFACE_COMPILE_OPTIONS "${${_prefix}_CFLAGS_OTHER}")
endif()
endif()
endfunction()
# recalculate the dynamic output
# this is a macro and not a function so the result of _pkg_find_libs is automatically propagated
macro(_pkg_recalculate _prefix _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global)
_pkg_find_libs(${_prefix} ${_no_cmake_path} ${_no_cmake_environment_path})
if(${_imp_target})
_pkg_create_imp_target(${_prefix} ${_imp_target_global})
endif()
endmacro()
###
macro(_pkg_check_modules_internal _is_required _is_silent _prefix)
macro(_pkg_set_path_internal)
set(_extra_paths)
if(NOT _no_cmake_path)
_pkgconfig_add_extra_path(_extra_paths CMAKE_PREFIX_PATH)
_pkgconfig_add_extra_path(_extra_paths CMAKE_FRAMEWORK_PATH)
_pkgconfig_add_extra_path(_extra_paths CMAKE_APPBUNDLE_PATH)
endif()
if(NOT _no_cmake_environment_path)
_pkgconfig_add_extra_path(_extra_paths ENV CMAKE_PREFIX_PATH)
_pkgconfig_add_extra_path(_extra_paths ENV CMAKE_FRAMEWORK_PATH)
_pkgconfig_add_extra_path(_extra_paths ENV CMAKE_APPBUNDLE_PATH)
endif()
if(NOT _extra_paths STREQUAL "")
# Save the PKG_CONFIG_PATH environment variable, and add paths
# from the CMAKE_PREFIX_PATH variables
set(_pkgconfig_path_old "$ENV{PKG_CONFIG_PATH}")
set(_pkgconfig_path "${_pkgconfig_path_old}")
if(NOT _pkgconfig_path STREQUAL "")
file(TO_CMAKE_PATH "${_pkgconfig_path}" _pkgconfig_path)
endif()
# Create a list of the possible pkgconfig subfolder (depending on
# the system
set(_lib_dirs)
if(NOT DEFINED CMAKE_SYSTEM_NAME
OR (CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU)$"
AND NOT CMAKE_CROSSCOMPILING))
if(EXISTS "/etc/debian_version") # is this a debian system ?
if(CMAKE_LIBRARY_ARCHITECTURE)
list(APPEND _lib_dirs "lib/${CMAKE_LIBRARY_ARCHITECTURE}/pkgconfig")
endif()
else()
# not debian, check the FIND_LIBRARY_USE_LIB32_PATHS and FIND_LIBRARY_USE_LIB64_PATHS properties
get_property(uselib32 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB32_PATHS)
if(uselib32 AND CMAKE_SIZEOF_VOID_P EQUAL 4)
list(APPEND _lib_dirs "lib32/pkgconfig")
endif()
get_property(uselib64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
if(uselib64 AND CMAKE_SIZEOF_VOID_P EQUAL 8)
list(APPEND _lib_dirs "lib64/pkgconfig")
endif()
get_property(uselibx32 GLOBAL PROPERTY FIND_LIBRARY_USE_LIBX32_PATHS)
if(uselibx32 AND CMAKE_INTERNAL_PLATFORM_ABI STREQUAL "ELF X32")
list(APPEND _lib_dirs "libx32/pkgconfig")
endif()
endif()
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND NOT CMAKE_CROSSCOMPILING)
list(APPEND _lib_dirs "libdata/pkgconfig")
endif()
list(APPEND _lib_dirs "lib/pkgconfig")
list(APPEND _lib_dirs "share/pkgconfig")
# Check if directories exist and eventually append them to the
# pkgconfig path list
foreach(_prefix_dir ${_extra_paths})
foreach(_lib_dir ${_lib_dirs})
if(EXISTS "${_prefix_dir}/${_lib_dir}")
list(APPEND _pkgconfig_path "${_prefix_dir}/${_lib_dir}")
list(REMOVE_DUPLICATES _pkgconfig_path)
endif()
endforeach()
endforeach()
# Prepare and set the environment variable
if(NOT _pkgconfig_path STREQUAL "")
# remove empty values from the list
list(REMOVE_ITEM _pkgconfig_path "")
file(TO_NATIVE_PATH "${_pkgconfig_path}" _pkgconfig_path)
if(UNIX)
string(REPLACE ";" ":" _pkgconfig_path "${_pkgconfig_path}")
string(REPLACE "\\ " " " _pkgconfig_path "${_pkgconfig_path}")
endif()
set(ENV{PKG_CONFIG_PATH} "${_pkgconfig_path}")
endif()
# Unset variables
unset(_lib_dirs)
unset(_pkgconfig_path)
endif()
endmacro()
macro(_pkg_restore_path_internal)
if(NOT _extra_paths STREQUAL "")
# Restore the environment variable
set(ENV{PKG_CONFIG_PATH} "${_pkgconfig_path_old}")
endif()
unset(_extra_paths)
unset(_pkgconfig_path_old)
endmacro()
###
macro(_pkg_check_modules_internal _is_required _is_silent _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global _prefix)
_pkgconfig_unset(${_prefix}_FOUND)
_pkgconfig_unset(${_prefix}_VERSION)
_pkgconfig_unset(${_prefix}_PREFIX)
_pkgconfig_unset(${_prefix}_INCLUDEDIR)
_pkgconfig_unset(${_prefix}_LIBDIR)
_pkgconfig_unset(${_prefix}_MODULE_NAME)
_pkgconfig_unset(${_prefix}_LIBS)
_pkgconfig_unset(${_prefix}_LIBS_L)
_pkgconfig_unset(${_prefix}_LIBS_PATHS)
@@ -193,83 +392,77 @@ macro(_pkg_check_modules_internal _is_required _is_silent _prefix)
# give out status message telling checked module
if (NOT ${_is_silent})
if (_pkg_check_modules_cnt EQUAL 1)
message(STATUS "checking for module '${_pkg_check_modules_list}'")
else(_pkg_check_modules_cnt EQUAL 1)
message(STATUS "checking for modules '${_pkg_check_modules_list}'")
endif(_pkg_check_modules_cnt EQUAL 1)
endif(NOT ${_is_silent})
message(STATUS "Checking for module '${_pkg_check_modules_list}'")
else()
message(STATUS "Checking for modules '${_pkg_check_modules_list}'")
endif()
endif()
set(_pkg_check_modules_packages)
set(_pkg_check_modules_failed)
_pkg_set_path_internal()
# iterate through module list and check whether they exist and match the required version
foreach (_pkg_check_modules_pkg ${_pkg_check_modules_list})
set(_pkg_check_modules_exist_query)
# check whether version is given
if (_pkg_check_modules_pkg MATCHES ".*(>=|=|<=).*")
string(REGEX REPLACE "(.*[^><])(>=|=|<=)(.*)" "\\1" _pkg_check_modules_pkg_name "${_pkg_check_modules_pkg}")
string(REGEX REPLACE "(.*[^><])(>=|=|<=)(.*)" "\\2" _pkg_check_modules_pkg_op "${_pkg_check_modules_pkg}")
string(REGEX REPLACE "(.*[^><])(>=|=|<=)(.*)" "\\3" _pkg_check_modules_pkg_ver "${_pkg_check_modules_pkg}")
else(_pkg_check_modules_pkg MATCHES ".*(>=|=|<=).*")
if (_pkg_check_modules_pkg MATCHES "(.*[^><])(=|[><]=?)(.*)")
set(_pkg_check_modules_pkg_name "${CMAKE_MATCH_1}")
set(_pkg_check_modules_pkg_op "${CMAKE_MATCH_2}")
set(_pkg_check_modules_pkg_ver "${CMAKE_MATCH_3}")
else()
set(_pkg_check_modules_pkg_name "${_pkg_check_modules_pkg}")
set(_pkg_check_modules_pkg_op)
set(_pkg_check_modules_pkg_ver)
endif(_pkg_check_modules_pkg MATCHES ".*(>=|=|<=).*")
# handle the operands
if (_pkg_check_modules_pkg_op STREQUAL ">=")
list(APPEND _pkg_check_modules_exist_query --atleast-version)
endif(_pkg_check_modules_pkg_op STREQUAL ">=")
if (_pkg_check_modules_pkg_op STREQUAL "=")
list(APPEND _pkg_check_modules_exist_query --exact-version)
endif(_pkg_check_modules_pkg_op STREQUAL "=")
if (_pkg_check_modules_pkg_op STREQUAL "<=")
list(APPEND _pkg_check_modules_exist_query --max-version)
endif(_pkg_check_modules_pkg_op STREQUAL "<=")
# create the final query which is of the format:
# * --atleast-version <version> <pkg-name>
# * --exact-version <version> <pkg-name>
# * --max-version <version> <pkg-name>
# * --exists <pkg-name>
if (_pkg_check_modules_pkg_op)
list(APPEND _pkg_check_modules_exist_query "${_pkg_check_modules_pkg_ver}")
else(_pkg_check_modules_pkg_op)
list(APPEND _pkg_check_modules_exist_query --exists)
endif(_pkg_check_modules_pkg_op)
endif()
_pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_VERSION)
_pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_PREFIX)
_pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_INCLUDEDIR)
_pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_LIBDIR)
list(APPEND _pkg_check_modules_exist_query "${_pkg_check_modules_pkg_name}")
list(APPEND _pkg_check_modules_packages "${_pkg_check_modules_pkg_name}")
# create the final query which is of the format:
# * <pkg-name> > <version>
# * <pkg-name> >= <version>
# * <pkg-name> = <version>
# * <pkg-name> <= <version>
# * <pkg-name> < <version>
# * --exists <pkg-name>
list(APPEND _pkg_check_modules_exist_query --print-errors --short-errors)
if (_pkg_check_modules_pkg_op)
list(APPEND _pkg_check_modules_exist_query "${_pkg_check_modules_pkg_name} ${_pkg_check_modules_pkg_op} ${_pkg_check_modules_pkg_ver}")
else()
list(APPEND _pkg_check_modules_exist_query --exists)
list(APPEND _pkg_check_modules_exist_query "${_pkg_check_modules_pkg_name}")
endif()
# execute the query
execute_process(
COMMAND ${PKG_CONFIG_EXECUTABLE} ${_pkg_check_modules_exist_query}
RESULT_VARIABLE _pkgconfig_retval)
RESULT_VARIABLE _pkgconfig_retval
ERROR_VARIABLE _pkgconfig_error
ERROR_STRIP_TRAILING_WHITESPACE)
# evaluate result and tell failures
if (_pkgconfig_retval)
if(NOT ${_is_silent})
message(STATUS " package '${_pkg_check_modules_pkg}' not found")
endif(NOT ${_is_silent})
message(STATUS " ${_pkgconfig_error}")
endif()
set(_pkg_check_modules_failed 1)
endif(_pkgconfig_retval)
endforeach(_pkg_check_modules_pkg)
endif()
endforeach()
if(_pkg_check_modules_failed)
# fail when requested
if (${_is_required})
message(SEND_ERROR "A required package was not found")
endif (${_is_required})
else(_pkg_check_modules_failed)
message(FATAL_ERROR "A required package was not found")
endif ()
else()
# when we are here, we checked whether requested modules
# exist. Now, go through them and set variables
@@ -281,17 +474,23 @@ macro(_pkg_check_modules_internal _is_required _is_silent _prefix)
# handle case when there is only one package required
if (pkg_count EQUAL 1)
set(_pkg_check_prefix "${_prefix}")
else(pkg_count EQUAL 1)
else()
set(_pkg_check_prefix "${_prefix}_${_pkg_check_modules_pkg}")
endif(pkg_count EQUAL 1)
endif()
_pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" VERSION "" --modversion )
_pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" PREFIX "" --variable=prefix )
_pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" INCLUDEDIR "" --variable=includedir )
_pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" LIBDIR "" --variable=libdir )
pkg_get_variable("${_pkg_check_prefix}_PREFIX" ${_pkg_check_modules_pkg} "prefix")
pkg_get_variable("${_pkg_check_prefix}_INCLUDEDIR" ${_pkg_check_modules_pkg} "includedir")
pkg_get_variable("${_pkg_check_prefix}_LIBDIR" ${_pkg_check_modules_pkg} "libdir")
foreach (variable IN ITEMS PREFIX INCLUDEDIR LIBDIR)
_pkgconfig_set("${_pkg_check_prefix}_${variable}" "${${_pkg_check_prefix}_${variable}}")
endforeach ()
_pkgconfig_set("${_pkg_check_prefix}_MODULE_NAME" "${_pkg_check_modules_pkg}")
message(STATUS " found ${_pkg_check_modules_pkg}, version ${_pkgconfig_VERSION}")
endforeach(_pkg_check_modules_pkg)
if (NOT ${_is_silent})
message(STATUS " Found ${_pkg_check_modules_pkg}, version ${_pkgconfig_VERSION}")
endif ()
endforeach()
# set variables which are combined for multiple modules
_pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" LIBRARIES "(^| )-l" --libs-only-l )
@@ -302,58 +501,271 @@ macro(_pkg_check_modules_internal _is_required _is_silent _prefix)
_pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" INCLUDE_DIRS "(^| )-I" --cflags-only-I )
_pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" CFLAGS "" --cflags )
_pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" CFLAGS_OTHER "" --cflags-only-other )
endif(_pkg_check_modules_failed)
else(PKG_CONFIG_EXECUTABLE)
_pkg_recalculate("${_prefix}" ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global})
endif()
_pkg_restore_path_internal()
else()
if (${_is_required})
message(SEND_ERROR "pkg-config tool not found")
endif (${_is_required})
endif(PKG_CONFIG_EXECUTABLE)
endmacro(_pkg_check_modules_internal)
endif ()
endif()
endmacro()
###
### User visible macros start here
###
###
#[========================================[.rst:
.. command:: pkg_check_modules
Checks for all the given modules, setting a variety of result variables in
the calling scope.
.. code-block:: cmake
pkg_check_modules(<prefix>
[REQUIRED] [QUIET]
[NO_CMAKE_PATH]
[NO_CMAKE_ENVIRONMENT_PATH]
[IMPORTED_TARGET [GLOBAL]]
<moduleSpec> [<moduleSpec>...])
When the ``REQUIRED`` argument is given, the command will fail with an error
if module(s) could not be found.
When the ``QUIET`` argument is given, no status messages will be printed.
By default, if :variable:`CMAKE_MINIMUM_REQUIRED_VERSION` is 3.1 or
later, or if :variable:`PKG_CONFIG_USE_CMAKE_PREFIX_PATH` is set to a
boolean ``True`` value, then the :variable:`CMAKE_PREFIX_PATH`,
:variable:`CMAKE_FRAMEWORK_PATH`, and :variable:`CMAKE_APPBUNDLE_PATH` cache
and environment variables will be added to the ``pkg-config`` search path.
The ``NO_CMAKE_PATH`` and ``NO_CMAKE_ENVIRONMENT_PATH`` arguments
disable this behavior for the cache variables and environment variables
respectively.
The ``IMPORTED_TARGET`` argument will create an imported target named
``PkgConfig::<prefix>`` that can be passed directly as an argument to
:command:`target_link_libraries`. The ``GLOBAL`` argument will make the
imported target available in global scope.
Each ``<moduleSpec>`` can be either a bare module name or it can be a
module name with a version constraint (operators ``=``, ``<``, ``>``,
``<=`` and ``>=`` are supported). The following are examples for a module
named ``foo`` with various constraints:
- ``foo`` matches any version.
- ``foo<2`` only matches versions before 2.
- ``foo>=3.1`` matches any version from 3.1 or later.
- ``foo=1.2.3`` requires that foo must be exactly version 1.2.3.
The following variables may be set upon return. Two sets of values exist:
One for the common case (``<XXX> = <prefix>``) and another for the
information ``pkg-config`` provides when called with the ``--static``
option (``<XXX> = <prefix>_STATIC``).
``<XXX>_FOUND``
set to 1 if module(s) exist
``<XXX>_LIBRARIES``
only the libraries (without the '-l')
``<XXX>_LINK_LIBRARIES``
the libraries and their absolute paths
``<XXX>_LIBRARY_DIRS``
the paths of the libraries (without the '-L')
``<XXX>_LDFLAGS``
all required linker flags
``<XXX>_LDFLAGS_OTHER``
all other linker flags
``<XXX>_INCLUDE_DIRS``
the '-I' preprocessor flags (without the '-I')
``<XXX>_CFLAGS``
all required cflags
``<XXX>_CFLAGS_OTHER``
the other compiler flags
All but ``<XXX>_FOUND`` may be a :ref:`;-list <CMake Language Lists>` if the
associated variable returned from ``pkg-config`` has multiple values.
There are some special variables whose prefix depends on the number of
``<moduleSpec>`` given. When there is only one ``<moduleSpec>``,
``<YYY>`` will simply be ``<prefix>``, but if two or more ``<moduleSpec>``
items are given, ``<YYY>`` will be ``<prefix>_<moduleName>``.
``<YYY>_VERSION``
version of the module
``<YYY>_PREFIX``
prefix directory of the module
``<YYY>_INCLUDEDIR``
include directory of the module
``<YYY>_LIBDIR``
lib directory of the module
Examples:
.. code-block:: cmake
pkg_check_modules (GLIB2 glib-2.0)
Looks for any version of glib2. If found, the output variable
``GLIB2_VERSION`` will hold the actual version found.
.. code-block:: cmake
pkg_check_modules (GLIB2 glib-2.0>=2.10)
Looks for at least version 2.10 of glib2. If found, the output variable
``GLIB2_VERSION`` will hold the actual version found.
.. code-block:: cmake
pkg_check_modules (FOO glib-2.0>=2.10 gtk+-2.0)
Looks for both glib2-2.0 (at least version 2.10) and any version of
gtk2+-2.0. Only if both are found will ``FOO`` be considered found.
The ``FOO_glib-2.0_VERSION`` and ``FOO_gtk+-2.0_VERSION`` variables will be
set to their respective found module versions.
.. code-block:: cmake
pkg_check_modules (XRENDER REQUIRED xrender)
Requires any version of ``xrender``. Example output variables set by a
successful call::
XRENDER_LIBRARIES=Xrender;X11
XRENDER_STATIC_LIBRARIES=Xrender;X11;pthread;Xau;Xdmcp
#]========================================]
macro(pkg_check_modules _prefix _module0)
_pkgconfig_parse_options(_pkg_modules _pkg_is_required _pkg_is_silent _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global "${_module0}" ${ARGN})
# check cached value
if (NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION})
_pkgconfig_parse_options (_pkg_modules _pkg_is_required "${_module0}" ${ARGN})
_pkg_check_modules_internal("${_pkg_is_required}" 0 "${_prefix}" ${_pkg_modules})
if (NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION} OR NOT ${_prefix}_FOUND OR
(NOT "${ARGN}" STREQUAL "" AND NOT "${__pkg_config_arguments_${_prefix}}" STREQUAL "${_module0};${ARGN}") OR
( "${ARGN}" STREQUAL "" AND NOT "${__pkg_config_arguments_${_prefix}}" STREQUAL "${_module0}"))
_pkg_check_modules_internal("${_pkg_is_required}" "${_pkg_is_silent}" ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global} "${_prefix}" ${_pkg_modules})
_pkgconfig_set(__pkg_config_checked_${_prefix} ${PKG_CONFIG_VERSION})
endif(NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION})
endmacro(pkg_check_modules)
if (${_prefix}_FOUND)
_pkgconfig_set(__pkg_config_arguments_${_prefix} "${_module0};${ARGN}")
endif()
else()
if (${_prefix}_FOUND)
_pkg_recalculate("${_prefix}" ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global})
endif()
endif()
endmacro()
###
#[========================================[.rst:
.. command:: pkg_search_module
The behavior of this command is the same as :command:`pkg_check_modules`,
except that rather than checking for all the specified modules, it searches
for just the first successful match.
.. code-block:: cmake
pkg_search_module(<prefix>
[REQUIRED] [QUIET]
[NO_CMAKE_PATH]
[NO_CMAKE_ENVIRONMENT_PATH]
[IMPORTED_TARGET [GLOBAL]]
<moduleSpec> [<moduleSpec>...])
If a module is found, the ``<prefix>_MODULE_NAME`` variable will contain the
name of the matching module. This variable can be used if you need to run
:command:`pkg_get_variable`.
Example:
.. code-block:: cmake
pkg_search_module (BAR libxml-2.0 libxml2 libxml>=2)
#]========================================]
macro(pkg_search_module _prefix _module0)
_pkgconfig_parse_options(_pkg_modules_alt _pkg_is_required _pkg_is_silent _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global "${_module0}" ${ARGN})
# check cached value
if (NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION} OR NOT ${_prefix}_FOUND)
set(_pkg_modules_found 0)
_pkgconfig_parse_options(_pkg_modules_alt _pkg_is_required "${_module0}" ${ARGN})
message(STATUS "checking for one of the modules '${_pkg_modules_alt}'")
if (NOT ${_pkg_is_silent})
message(STATUS "Checking for one of the modules '${_pkg_modules_alt}'")
endif ()
# iterate through all modules and stop at the first working one.
foreach(_pkg_alt ${_pkg_modules_alt})
if(NOT _pkg_modules_found)
_pkg_check_modules_internal(0 1 "${_prefix}" "${_pkg_alt}")
endif(NOT _pkg_modules_found)
_pkg_check_modules_internal(0 1 ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global} "${_prefix}" "${_pkg_alt}")
endif()
if (${_prefix}_FOUND)
set(_pkg_modules_found 1)
endif(${_prefix}_FOUND)
endforeach(_pkg_alt)
break()
endif()
endforeach()
if (NOT ${_prefix}_FOUND)
if(${_pkg_is_required})
message(SEND_ERROR "None of the required '${_pkg_modules_alt}' found")
endif(${_pkg_is_required})
endif(NOT ${_prefix}_FOUND)
endif()
endif()
_pkgconfig_set(__pkg_config_checked_${_prefix} ${PKG_CONFIG_VERSION})
endif(NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION} OR NOT ${_prefix}_FOUND)
endmacro(pkg_search_module)
elseif (${_prefix}_FOUND)
_pkg_recalculate("${_prefix}" ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global})
endif()
endmacro()
#[========================================[.rst:
.. command:: pkg_get_variable
Retrieves the value of a pkg-config variable ``varName`` and stores it in the
result variable ``resultVar`` in the calling scope.
.. code-block:: cmake
pkg_get_variable(<resultVar> <moduleName> <varName>)
If ``pkg-config`` returns multiple values for the specified variable,
``resultVar`` will contain a :ref:`;-list <CMake Language Lists>`.
For example:
.. code-block:: cmake
pkg_get_variable(GI_GIRDIR gobject-introspection-1.0 girdir)
#]========================================]
function (pkg_get_variable result pkg variable)
_pkg_set_path_internal()
_pkgconfig_invoke("${pkg}" "prefix" "result" "" "--variable=${variable}")
set("${result}"
"${prefix_result}"
PARENT_SCOPE)
_pkg_restore_path_internal()
endfunction ()
#[========================================[.rst:
Variables Affecting Behavior
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. variable:: PKG_CONFIG_EXECUTABLE
This can be set to the path of the pkg-config executable. If not provided,
it will be set by the module as a result of calling :command:`find_program`
internally. The ``PKG_CONFIG`` environment variable can be used as a hint.
.. variable:: PKG_CONFIG_USE_CMAKE_PREFIX_PATH
Specifies whether :command:`pkg_check_modules` and
:command:`pkg_search_module` should add the paths in the
:variable:`CMAKE_PREFIX_PATH`, :variable:`CMAKE_FRAMEWORK_PATH` and
:variable:`CMAKE_APPBUNDLE_PATH` cache and environment variables to the
``pkg-config`` search path.
If this variable is not set, this behavior is enabled by default if
:variable:`CMAKE_MINIMUM_REQUIRED_VERSION` is 3.1 or later, disabled
otherwise.
#]========================================]
### Local Variables:
### mode: cmake
+11 -74
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2009 Julien Louis <ptitlouis@sysif.net>
#
# This file is part of WeeChat, the extensible chat client.
@@ -15,7 +15,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# - Find Python
@@ -24,80 +24,17 @@
# code sets the following variables:
#
# PYTHON_EXECUTABLE = full path to the python binary
# PYTHON_INCLUDE_PATH = path to where python.h can be found
# PYTHON_LIBRARY = path to where libpython.so* can be found
# PYTHON_LFLAGS = python compiler options for linking
# PYTHON_INCLUDE_DIRS = path to where python.h can be found
# PYTHON_LIBRARIES = path to where libpython.so* can be found
# PYTHON_LDFLAGS = python compiler options for linking
if(PYTHON_FOUND)
# Already in cache, be silent
set(PYTHON_FIND_QUIETLY TRUE)
endif()
include(FindPkgConfig)
if(ENABLE_PYTHON3)
find_program(PYTHON_EXECUTABLE
NAMES python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python3 python2.7 python2.6 python2.5 python
PATHS /usr/bin /usr/local/bin /usr/pkg/bin
)
if(ENABLE_PYTHON2)
pkg_check_modules(PYTHON python2 IMPORTED_TARGET GLOBAL)
else()
find_program(PYTHON_EXECUTABLE
NAMES python2.7 python2.6 python2.5 python
PATHS /usr/bin /usr/local/bin /usr/pkg/bin
)
endif()
if(PYTHON_EXECUTABLE)
execute_process(
COMMAND ${PYTHON_EXECUTABLE} -c "import sys; from distutils.sysconfig import *; sys.stdout.write(get_config_var('INCLUDEPY'))"
OUTPUT_VARIABLE PYTHON_INC_DIR
)
execute_process(
COMMAND ${PYTHON_EXECUTABLE} -c "import sys; from distutils.sysconfig import *; sys.stdout.write(get_config_var('LIBPL'))"
OUTPUT_VARIABLE PYTHON_POSSIBLE_LIB_PATH
)
execute_process(
COMMAND ${PYTHON_EXECUTABLE} -c "import sys; from distutils.sysconfig import *; sys.stdout.write(get_config_var('LIBS') + ' ' + get_config_var('LINKFORSHARED'))"
OUTPUT_VARIABLE PYTHON_LFLAGS
)
find_path(PYTHON_INCLUDE_PATH
NAMES Python.h
HINTS ${PYTHON_INC_DIR}
)
if(ENABLE_PYTHON3)
find_library(PYTHON_LIBRARY
NAMES python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python3 python2.7 python2.6 python2.5 python
HINTS ${PYTHON_POSSIBLE_LIB_PATH}
)
else()
find_library(PYTHON_LIBRARY
NAMES python2.7 python2.6 python2.5 python
HINTS ${PYTHON_POSSIBLE_LIB_PATH}
)
pkg_check_modules(PYTHON python3-embed IMPORTED_TARGET GLOBAL)
if(NOT PYTHON_FOUND)
pkg_check_modules(PYTHON python3 IMPORTED_TARGET GLOBAL)
endif()
if(PYTHON_LIBRARY AND PYTHON_INCLUDE_PATH)
execute_process(
COMMAND ${PYTHON_EXECUTABLE} -c "import sys; sys.stdout.write(sys.version[:3])"
OUTPUT_VARIABLE PYTHON_VERSION
)
execute_process(
COMMAND ${PYTHON_EXECUTABLE} -c "import sys; sys.stdout.write(str(sys.version_info < (2,5)))"
OUTPUT_VARIABLE PYTHON_OLD_VERSION
)
if(${PYTHON_OLD_VERSION} STREQUAL "True")
message("Python >= 2.5 is needed to build python plugin, version found: ${PYTHON_VERSION}")
else()
set(PYTHON_FOUND TRUE)
endif()
endif()
mark_as_advanced(
PYTHON_EXECUTABLE
PYTHON_INCLUDE_PATH
PYTHON_LIBRARY
PYTHON_LFLAGS
)
endif()
+15 -15
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# - Find Ruby
@@ -27,13 +27,13 @@
# RUBY_LIB = ruby library (found without pkg-config)
if(RUBY_FOUND)
# Already in cache, be silent
set(RUBY_FIND_QUIETLY TRUE)
# Already in cache, be silent
set(RUBY_FIND_QUIETLY TRUE)
endif()
find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
pkg_search_module(RUBY ruby-2.3 ruby-2.2 ruby-2.1 ruby-2.0 ruby-1.9 ruby-1.8)
pkg_search_module(RUBY ruby-2.7 ruby-2.6 ruby-2.5 ruby-2.4 ruby-2.3 ruby-2.2 ruby-2.1 ruby-2.0 ruby-1.9)
endif()
if(RUBY_FOUND)
@@ -41,35 +41,35 @@ if(RUBY_FOUND)
mark_as_advanced(RUBY_LIB)
else()
find_program(RUBY_EXECUTABLE
NAMES ruby2.3.0 ruby230 ruby2.3 ruby23 ruby2.2.3 ruby223 ruby2.2.2 ruby222 ruby2.2.1 ruby221 ruby2.2.0 ruby220 ruby2.2 ruby22 ruby2.1.7 ruby217 ruby2.1.6 ruby216 ruby2.1.5 ruby215 ruby2.1.4 ruby214 ruby2.1.3 ruby213 ruby2.1.2 ruby212 ruby2.1.1 ruby211 ruby2.1.0 ruby210 ruby2.1 ruby21 ruby2.0 ruby20 ruby1.9.3 ruby193 ruby1.9.2 ruby192 ruby1.9.1 ruby191 ruby1.9 ruby19 ruby1.8 ruby18 ruby
NAMES ruby2.7.0 ruby270 ruby2.7 ruby2.6.0 ruby260 ruby2.6 ruby2.5.0 ruby250 ruby2.5 ruby2.4.0 ruby240 ruby2.4 ruby2.3.0 ruby230 ruby2.3 ruby23 ruby2.2.3 ruby223 ruby2.2.2 ruby222 ruby2.2.1 ruby221 ruby2.2.0 ruby220 ruby2.2 ruby22 ruby2.1.7 ruby217 ruby2.1.6 ruby216 ruby2.1.5 ruby215 ruby2.1.4 ruby214 ruby2.1.3 ruby213 ruby2.1.2 ruby212 ruby2.1.1 ruby211 ruby2.1.0 ruby210 ruby2.1 ruby21 ruby2.0 ruby20 ruby1.9.3 ruby193 ruby1.9.2 ruby192 ruby1.9.1 ruby191 ruby1.9 ruby19 ruby
PATHS /usr/bin /usr/local/bin /usr/pkg/bin
)
)
if(RUBY_EXECUTABLE)
execute_process(
COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['rubyhdrdir'] || RbConfig::CONFIG['archdir']"
OUTPUT_VARIABLE RUBY_ARCH_DIR
)
)
execute_process(
COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['arch']"
OUTPUT_VARIABLE RUBY_ARCH
)
)
execute_process(
COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['libdir']"
OUTPUT_VARIABLE RUBY_POSSIBLE_LIB_PATH
)
)
execute_process(
COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['rubylibdir']"
OUTPUT_VARIABLE RUBY_RUBY_LIB_PATH
)
)
find_path(RUBY_INCLUDE_DIRS
NAMES ruby.h
PATHS ${RUBY_ARCH_DIR}
)
)
set(RUBY_INCLUDE_ARCH "${RUBY_INCLUDE_DIRS}/${RUBY_ARCH}")
find_library(RUBY_LIB
NAMES ruby-1.9.3 ruby1.9.3 ruby193 ruby-1.9.2 ruby1.9.2 ruby192 ruby-1.9.1 ruby1.9.1 ruby191 ruby1.9 ruby19 ruby1.8 ruby18 ruby
NAMES ruby-1.9.3 ruby1.9.3 ruby193 ruby-1.9.2 ruby1.9.2 ruby192 ruby-1.9.1 ruby1.9.1 ruby191 ruby1.9 ruby19 ruby
PATHS ${RUBY_POSSIBLE_LIB_PATH} ${RUBY_RUBY_LIB_PATH}
)
)
if(RUBY_LIB AND RUBY_INCLUDE_DIRS)
set(RUBY_FOUND TRUE)
endif()
@@ -78,6 +78,6 @@ else()
RUBY_INCLUDE_DIRS
RUBY_LIBRARY_DIRS
RUBY_LIB
)
)
endif()
endif()
-162
View File
@@ -1,162 +0,0 @@
#
# Copyright (C) 2008 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2008-2017 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
#
# - Find Tcl includes and libraries.
# This module finds if Tcl is installed and determines where the
# include files and libraries are. It also determines what the name of
# the library is. This code sets the following variables:
# TCL_FOUND = Tcl was found
# TK_FOUND = Tk was found
# TCLTK_FOUND = Tcl and Tk were found
# TCL_LIBRARY = path to Tcl library (tcl tcl80)
# TCL_INCLUDE_PATH = path to where tcl.h can be found
# TCL_TCLSH = path to tclsh binary (tcl tcl80)
# TK_LIBRARY = path to Tk library (tk tk80 etc)
# TK_INCLUDE_PATH = path to where tk.h can be found
# TK_WISH = full path to the wish executable
#
# In an effort to remove some clutter and clear up some issues for people
# who are not necessarily Tcl/Tk gurus/developpers, some variables were
# moved or removed. Changes compared to CMake 2.4 are:
# - The stub libraries are now found in FindTclStub.cmake
# => they were only useful for people writing Tcl/Tk extensions.
# - TCL_LIBRARY_DEBUG and TK_LIBRARY_DEBUG were removed.
# => these libs are not packaged by default with Tcl/Tk distributions.
# Even when Tcl/Tk is built from source, several flavors of debug libs
# are created and there is no real reason to pick a single one
# specifically (say, amongst tcl84g, tcl84gs, or tcl84sgx).
# Let's leave that choice to the user by allowing him to assign
# TCL_LIBRARY to any Tcl library, debug or not.
# - TK_INTERNAL_PATH was removed.
# => this ended up being only a Win32 variable, and there is a lot of
# confusion regarding the location of this file in an installed Tcl/Tk
# tree anyway (see 8.5 for example). If you need the internal path at
# this point it is safer you ask directly where the *source* tree is
# and dig from there.
if(TCL_FOUND)
set(TCL_FIND_QUIETLY TRUE)
endif()
include(CMakeFindFrameworks)
include(FindTclsh)
get_filename_component(TCL_TCLSH_PATH "${TCL_TCLSH}" PATH)
get_filename_component(TCL_TCLSH_PATH_PARENT "${TCL_TCLSH_PATH}" PATH)
string(REGEX REPLACE
"^.*tclsh([0-9]\\.*[0-9]).*$" "\\1" TCL_TCLSH_VERSION "${TCL_TCLSH}")
get_filename_component(TCL_INCLUDE_PATH_PARENT "${TCL_INCLUDE_PATH}" PATH)
get_filename_component(TCL_LIBRARY_PATH "${TCL_LIBRARY}" PATH)
get_filename_component(TCL_LIBRARY_PATH_PARENT "${TCL_LIBRARY_PATH}" PATH)
string(REGEX REPLACE
"^.*tcl([0-9]\\.*[0-9]).*$" "\\1" TCL_VERSION "${TCL_LIBRARY}")
set(TCL_POSSIBLE_LIB_PATHS
"${TCL_INCLUDE_PATH_PARENT}/lib"
"${TCL_INCLUDE_PATH_PARENT}/lib64"
"${TCL_LIBRARY_PATH}"
"${TCL_TCLSH_PATH_PARENT}/lib"
"${TCL_TCLSH_PATH_PARENT}/lib64"
/usr/lib
/usr/lib64
/usr/local/lib
/usr/local/lib64
)
if(WIN32)
get_filename_component(
ActiveTcl_CurrentVersion
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActiveTcl;CurrentVersion]"
NAME)
set(TCLTK_POSSIBLE_LIB_PATHS ${TCLTK_POSSIBLE_LIB_PATHS}
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActiveTcl\\${ActiveTcl_CurrentVersion}]/lib"
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.6;Root]/lib"
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.5;Root]/lib"
"$ENV{ProgramFiles}/Tcl/Lib"
"C:/Program Files/Tcl/lib"
"C:/Tcl/lib"
)
endif()
find_library(TCL_LIBRARY
NAMES
tcl86 tcl8.6
tcl85 tcl8.5
tcl
tcl${TCL_VERSION} tcl${TCL_TCLSH_VERSION}
PATHS ${TCL_POSSIBLE_LIB_PATHS}
)
cmake_find_frameworks(Tcl)
set(TCL_FRAMEWORK_INCLUDES)
if(Tcl_FRAMEWORKS)
if(NOT TCL_INCLUDE_PATH)
foreach(dir ${Tcl_FRAMEWORKS})
set(TCL_FRAMEWORK_INCLUDES ${TCL_FRAMEWORK_INCLUDES} ${dir}/Headers)
endforeach(dir)
endif()
endif()
set(TCL_POSSIBLE_INCLUDE_PATHS
"${TCL_LIBRARY_PATH_PARENT}/include"
"${TCL_INCLUDE_PATH}"
${TCL_FRAMEWORK_INCLUDES}
"${TCL_TCLSH_PATH_PARENT}/include"
/usr/include/tcl8.6
/usr/include/tcl8.5
/usr/include
/usr/local/include
/usr/include/tcl${TCL_VERSION}
/usr/local/include/tcl${TCL_VERSION}
/usr/local/include/tcl8.6
/usr/local/include/tcl8.5
)
if(WIN32)
set(TCLTK_POSSIBLE_INCLUDE_PATHS ${TCLTK_POSSIBLE_INCLUDE_PATHS}
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\ActiveState\\ActiveTcl\\${ActiveTcl_CurrentVersion}]/include"
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.6;Root]/include"
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.5;Root]/include"
"$ENV{ProgramFiles}/Tcl/include"
"C:/Program Files/Tcl/include"
"C:/Tcl/include"
)
endif()
find_path(TCL_INCLUDE_PATH
NAMES tcl.h
PATHS ${TCL_POSSIBLE_INCLUDE_PATHS}
)
if(TCL_LIBRARY AND TCL_INCLUDE_PATH)
set(TCL_VERSION ${TCL_VERSION})
set(TCL_LIBARY ${TCL_LIBRARY})
set(TCL_INCLUDE_PATH ${TCL_INCLUDE_PATH})
set(TCL_FOUND TRUE)
endif()
mark_as_advanced(
TCL_INCLUDE_PATH
TCL_LIBRARY
TCL_VERSION
)
+3 -3
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2015-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2015-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,10 +14,10 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# - Find V8 (Google's Javascript engine)
# - Find V8 (Google's JavaScript engine)
# This module finds if libv8 is installed and determines where
# the include files and libraries are.
#
+2 -3
View File
@@ -41,7 +41,7 @@ find_library(ZLIB_LIBRARY
${ZLIB_NAMES}
PATHS
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\Zlib;InstallPath]/lib"
)
)
mark_as_advanced(ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
if(ZLIB_INCLUDE_DIR AND EXISTS "${ZLIB_INCLUDE_DIR}/zlib.h")
@@ -66,8 +66,7 @@ endif()
# handle the QUIETLY and REQUIRED arguments and set ZLIB_FOUND to TRUE if
# all listed variables are TRUE
#INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
include(${CMAKE_HOME_DIRECTORY}/cmake/FindPackageHandleStandardArgs.cmake)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ZLIB REQUIRED_VARS ZLIB_LIBRARY ZLIB_INCLUDE_DIR
VERSION_VAR ZLIB_VERSION_STRING)
+3 -3
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
@@ -37,4 +37,4 @@ foreach(file ${files})
else()
message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
endif()
endforeach(file)
endforeach()
+2 -2
View File
@@ -13,8 +13,8 @@
#define PACKAGE "@PROJECT_NAME@"
#define PACKAGE_NAME "@PROJECT_NAME@"
#define PACKAGE_STRING "@PKG_STRING@"
#define WEECHAT_LIBDIR "@LIBDIR@"
#define WEECHAT_SHAREDIR "@SHAREDIR@"
#define WEECHAT_LIBDIR "@WEECHAT_LIBDIR@"
#define WEECHAT_SHAREDIR "@WEECHAT_SHAREDIR@"
#define LOCALEDIR "@LOCALEDIR@"
#define WEECHAT_HOME "@WEECHAT_HOME@"
#define CA_FILE "@CA_FILE@"
+324 -195
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2005 Benoit Papillault <benoit.papillault@free.fr>
# Copyright (C) 2005-2006 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2005-2009 Emmanuel Bouthenot <kolter@openics.org>
@@ -17,7 +17,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
# -*- Autoconf -*-
@@ -37,6 +37,7 @@ AC_PROG_MAKE_SET
AC_GNU_SOURCE
AC_PROG_LN_S
AM_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG
# Files to generate
AC_CONFIG_FILES([weechat.pc])
@@ -46,10 +47,12 @@ AC_CONFIG_FILES([weechat-${VERSION}-1.cygport:weechat.cygport.in])
case "$host_os" in
freebsd* | openbsd*)
CFLAGS="$CFLAGS -I/usr/local/include"
CXXFLAGS="$CXXFLAGS -I/usr/local/include"
LDFLAGS="$LDFLAGS -L/usr/local/lib"
;;
netbsd*)
CFLAGS="$CFLAGS -I/usr/pkg/include"
CXXFLAGS="$CXXFLAGS -I/usr/pkg/include"
LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
;;
solaris*)
@@ -101,17 +104,17 @@ AC_CHECK_FUNCS([mallinfo])
AH_VERBATIM([PREFIX], [#undef PREFIX])
AH_VERBATIM([WEECHAT_LIBDIR], [#undef WEECHAT_LIBDIR])
AH_VERBATIM([WEECHAT_SHAREDIR], [#undef WEECHAT_SHAREDIR])
AH_VERBATIM([HAVE_GNUTLS], [#undef HAVE_GNUTLS])
AH_VERBATIM([HAVE_FLOCK], [#undef HAVE_FLOCK])
AH_VERBATIM([HAVE_EAT_NEWLINE_GLITCH], [#undef HAVE_EAT_NEWLINE_GLITCH])
AH_VERBATIM([HAVE_ASPELL_VERSION_STRING], [#undef HAVE_ASPELL_VERSION_STRING])
AH_VERBATIM([HAVE_ENCHANT_GET_VERSION], [#undef HAVE_ENCHANT_GET_VERSION])
AH_VERBATIM([HAVE_GUILE_GMP_MEMORY_FUNCTIONS], [#undef HAVE_GUILE_GMP_MEMORY_FUNCTIONS])
AH_VERBATIM([PLUGIN_ALIAS], [#undef PLUGIN_ALIAS])
AH_VERBATIM([PLUGIN_ASPELL], [#undef PLUGIN_ASPELL])
AH_VERBATIM([PLUGIN_BUFLIST], [#undef PLUGIN_BUFLIST])
AH_VERBATIM([PLUGIN_CHARSET], [#undef PLUGIN_CHARSET])
AH_VERBATIM([PLUGIN_EXEC], [#undef PLUGIN_EXEC])
AH_VERBATIM([PLUGIN_FIFO], [#undef PLUGIN_FIFO])
AH_VERBATIM([PLUGIN_FSET], [#undef PLUGIN_FSET])
AH_VERBATIM([PLUGIN_IRC], [#undef PLUGIN_IRC])
AH_VERBATIM([PLUGIN_LOGGER], [#undef PLUGIN_LOGGER])
AH_VERBATIM([PLUGIN_RELAY], [#undef PLUGIN_RELAY])
@@ -120,9 +123,11 @@ 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([PLUGIN_PHP], [#undef PLUGIN_PHP])
AH_VERBATIM([PLUGIN_TCL], [#undef PLUGIN_TCL])
AH_VERBATIM([PLUGIN_GUILE], [#undef PLUGIN_GUILE])
AH_VERBATIM([PLUGIN_JAVASCRIPT], [#undef PLUGIN_JAVASCRIPT])
AH_VERBATIM([PLUGIN_SPELL], [#undef PLUGIN_SPELL])
AH_VERBATIM([PLUGIN_TRIGGER], [#undef PLUGIN_TRIGGER])
AH_VERBATIM([PLUGIN_XFER], [#undef PLUGIN_XFER])
AH_VERBATIM([TESTS], [#undef TESTS])
@@ -134,14 +139,14 @@ AH_VERBATIM([CA_FILE], [#define CA_FILE "/etc/ssl/certs/ca-certificates.crt"])
# 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(gnutls, [ --disable-gnutls turn off gnutls support (default=compiled if found)],enable_gnutls=$enableval,enable_gnutls=yes)
AC_ARG_ENABLE(headless, [ --disable-headless turn off headless binary (default=compiled), this is required for tests],enable_headless=$enableval,enable_headless=yes)
AC_ARG_ENABLE(largefile, [ --disable-largefile turn off Large File Support (default=on)],enable_largefile=$enableval,enable_largefile=yes)
AC_ARG_ENABLE(alias, [ --disable-alias turn off Alias plugin (default=compiled)],enable_alias=$enableval,enable_alias=yes)
AC_ARG_ENABLE(aspell, [ --disable-aspell turn off Aspell plugin (default=compiled)],enable_aspell=$enableval,enable_aspell=yes)
AC_ARG_ENABLE(enchant, [ --enable-enchant turn on Enchant lib for Aspell plugin (default=off)],enable_enchant=$enableval,enable_enchant=no)
AC_ARG_ENABLE(charset, [ --disable-charset turn off Charset plugin (default=compiled if found)],enable_charset=$enableval,enable_charset=yes)
AC_ARG_ENABLE(buflist, [ --disable-buflist turn off Buflist plugin (default=compiled)],enable_buflist=$enableval,enable_buflist=yes)
AC_ARG_ENABLE(charset, [ --disable-charset turn off Charset plugin (default=compiled)],enable_charset=$enableval,enable_charset=yes)
AC_ARG_ENABLE(exec, [ --disable-exec turn off Exec plugin (default=compiled)],enable_exec=$enableval,enable_exec=yes)
AC_ARG_ENABLE(fifo, [ --disable-fifo turn off Fifo plugin (default=compiled)],enable_fifo=$enableval,enable_fifo=yes)
AC_ARG_ENABLE(fset, [ --disable-fset turn off Fast Set plugin (default=compiled)],enable_fset=$enableval,enable_fset=yes)
AC_ARG_ENABLE(irc, [ --disable-irc turn off IRC plugin (default=compiled)],enable_irc=$enableval,enable_irc=yes)
AC_ARG_ENABLE(logger, [ --disable-logger turn off Logger plugin (default=compiled)],enable_logger=$enableval,enable_logger=yes)
AC_ARG_ENABLE(relay, [ --disable-relay turn off Relay plugin (default=compiled)],enable_relay=$enableval,enable_relay=yes)
@@ -149,16 +154,19 @@ AC_ARG_ENABLE(script, [ --disable-script turn off Script plugin (d
AC_ARG_ENABLE(scripts, [ --disable-scripts turn off script plugins (perl, python, ...) (default=compiled if found)],enable_scripts=$enableval,enable_scripts=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(python3, [ --enable-python3 use Python 3.x if found (NOT recommended because many "official" scripts won't work) (default=off)],enable_python3=$enableval,enable_python3=no)
AC_ARG_ENABLE(python2, [ --enable-python2 use Python 2 instead of Python 3 (default=off)],enable_python2=$enableval,enable_python2=no)
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_ENABLE(tcl, [ --disable-tcl turn off Tcl script plugin (default=compiled if found)],enable_tcl=$enableval,enable_tcl=yes)
AC_ARG_ENABLE(guile, [ --disable-guile turn off Guile (scheme) script plugin (default=compiled if found)],enable_guile=$enableval,enable_guile=yes)
AC_ARG_ENABLE(javascript, [ --disable-javascript turn off Javascript script plugin (default=compiled if found)],enable_javascript=$enableval,enable_javascript=yes)
AC_ARG_ENABLE(javascript, [ --enable-javascript turn on JavaScript script plugin (default=off)],enable_javascript=$enableval,enable_javascript=no)
AC_ARG_ENABLE(php, [ --disable-php turn off PHP script plugin (default=compiled if found)],enable_php=$enableval,enable_php=yes)
AC_ARG_ENABLE(spell, [ --disable-spell turn off Spell checker plugin (default=compiled)],enable_spell=$enableval,enable_spell=yes)
AC_ARG_ENABLE(enchant, [ --enable-enchant turn on Enchant lib for Spell checker plugin (default=off)],enable_enchant=$enableval,enable_enchant=no)
AC_ARG_ENABLE(trigger, [ --disable-trigger turn off Trigger plugin (default=compiled)],enable_trigger=$enableval,enable_trigger=yes)
AC_ARG_ENABLE(xfer, [ --disable-xfer turn off Xfer (file transfer) plugin (default=compiled if found)],enable_xfer=$enableval,enable_xfer=yes)
AC_ARG_ENABLE(xfer, [ --disable-xfer turn off Xfer (file transfer) plugin (default=compiled)],enable_xfer=$enableval,enable_xfer=yes)
AC_ARG_WITH(tclconfig, [ --with-tclconfig=DIR directory containing tcl configuration (tclConfig.sh)],tclconfig=$withval,tclconfig='')
AC_ARG_WITH(debug, [ --with-debug debugging: 0=no debug, 1=debug compilation (default=1)],debug=$withval,debug=1)
AC_ARG_WITH(debug, [ --with-debug debugging: 0=no debug, 1=debug compilation (default=0)],debug=$withval,debug=0)
AC_ARG_ENABLE(tests, [ --enable-tests turn on build of tests (default=not built)],enable_tests=$enableval,enable_tests=no)
AC_ARG_ENABLE(man, [ --enable-man turn on build of man page (default=not built)],enable_man=$enableval,enable_man=no)
AC_ARG_ENABLE(doc, [ --enable-doc turn on build of documentation (default=not built)],enable_doc=$enableval,enable_doc=no)
@@ -179,6 +187,10 @@ AC_DEFINE_UNQUOTED(CA_FILE, "$CA_FILE")
not_asked=""
not_found=""
if test "x$enable_headless" != "xyes" && test "x$enable_tests" = "xyes"; then
AC_MSG_ERROR([*** Headless mode is required for tests.])
fi
# ------------------------------------------------------------------------------
# pkg-config
# ------------------------------------------------------------------------------
@@ -235,6 +247,14 @@ else
not_asked="$not_asked ncurses"
fi
# ------------------------------------------------------------------------------
# headless
# ------------------------------------------------------------------------------
if test "x$enable_headless" != "xyes" ; then
not_asked="$not_asked headless"
fi
# ------------------------------------------------------------------------------
# iconv
# ------------------------------------------------------------------------------
@@ -288,6 +308,7 @@ if test "x$enable_scripts" = "xno" ; then
enable_tcl="no"
enable_guile="no"
enable_javascript="no"
enable_php="no"
fi
# ---------------------------------- alias -------------------------------------
@@ -302,77 +323,12 @@ else
not_asked="$not_asked alias"
fi
# ---------------------------------- aspell ------------------------------------
# --------------------------------- buflist ------------------------------------
if test "x$enable_aspell" = "xyes" ; then
ac_found_enchant_lib="no"
if test "x$enable_enchant" = "xyes" ; then
PKG_CHECK_MODULES(ENCHANT, [enchant], ac_found_enchant_lib="yes", ac_found_enchant_lib="no")
fi
if test "x$ac_found_enchant_lib" = "xyes" ; then
CFLAGS="$CFLAGS -DUSE_ENCHANT"
ASPELL_LIB_USED="enchant"
# check if function enchant_get_version() exists
ac_save_CFLAGS="$CFLAGS"
ac_save_LDFLAGS="$LDFLAGS"
CFLAGS="$CFLAGS $ENCHANT_CFLAGS"
LDFLAGS="$LDFLAGS $ENCHANT_LIBS"
AC_CACHE_CHECK([for enchant_get_version() support], ac_cv_have_enchant_get_version, [
AC_LINK_IFELSE([AC_LANG_PROGRAM(
[[ #include <enchant.h>]],
[[ const char *version = enchant_get_version(); ]])],
[ ac_have_enchant_get_version="yes" ],
[ ac_have_enchant_get_version="no" ])])
CFLAGS="$ac_save_CFLAGS"
LDFLAGS="$ac_save_LDFLAGS"
if test "x$ac_have_enchant_get_version" = "xyes"; then
AC_DEFINE(HAVE_ENCHANT_GET_VERSION)
fi
else
ASPELL_CFLAGS=""
ASPELL_LFLAGS=""
AC_CHECK_HEADER(aspell.h,ac_found_aspell_header="yes",ac_found_aspell_header="no")
AC_CHECK_LIB(aspell,new_aspell_speller,ac_found_aspell_lib="yes",ac_found_aspell_lib="no")
AC_MSG_CHECKING(for aspell headers and librairies)
if test "x$ac_found_aspell_header" = "xno" -o "x$ac_found_aspell_lib" = "xno" ; then
AC_MSG_RESULT(no)
AC_MSG_WARN([
*** Aspell headers and/or libraries couldn't be found on your system.
*** Try to install them with your software package manager.
*** WeeChat will be built without Aspell support.])
enable_aspell="no"
not_found="$not_found aspell"
else
AC_MSG_RESULT(yes)
ASPELL_LFLAGS="$ASPELL_LFLAGS -laspell"
ASPELL_LIB_USED="aspell"
# check if function aspell_version_string() exists
ac_save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $ASPELL_LFLAGS"
AC_CACHE_CHECK([for aspell_version_string() support], ac_cv_have_aspell_version_string, [
AC_LINK_IFELSE([AC_LANG_PROGRAM(
[[ #include <aspell.h>]],
[[ const char *version = aspell_version_string(); ]])],
[ ac_have_aspell_version_string="yes" ],
[ ac_have_aspell_version_string="no" ])])
LDFLAGS="$ac_save_LDFLAGS"
if test "x$ac_have_aspell_version_string" = "xyes"; then
AC_DEFINE(HAVE_ASPELL_VERSION_STRING)
fi
fi
fi
if test "x$enable_buflist" = "xyes" ; then
AC_DEFINE(PLUGIN_BUFLIST)
else
not_asked="$not_asked aspell"
fi
if test "x$enable_aspell" = "xyes" ; then
AC_SUBST(ASPELL_CFLAGS)
AC_SUBST(ASPELL_LFLAGS)
AC_DEFINE(PLUGIN_ASPELL)
not_asked="$not_asked buflist"
fi
# --------------------------------- charset ------------------------------------
@@ -411,6 +367,14 @@ else
not_asked="$not_asked fifo"
fi
# --------------------------------- fset ---------------------------------------
if test "x$enable_fset" = "xyes" ; then
AC_DEFINE(PLUGIN_FSET)
else
not_asked="$not_asked fset"
fi
# ----------------------------------- irc --------------------------------------
if test "x$enable_irc" = "xyes" ; then
@@ -510,66 +474,21 @@ fi
PYTHON_VERSION=
if test "x$enable_python" = "xyes" ; then
if test "x$enable_python3" = "xyes" ; then
AC_PATH_PROGS(PYTHON, python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python3 python2.7 python2.6 python2.5 python2 python)
if test "x$enable_python2" = "xyes" ; then
PKG_CHECK_MODULES(PYTHON, [python2], [PYTHON_FOUND=yes; PYTHON_VERSION=`$PKGCONFIG --modversion python2`], [PYTHON_FOUND=no])
else
AC_PATH_PROGS(PYTHON, python2.7 python2.6 python2.5 python2 python)
PKG_CHECK_MODULES(PYTHON, [python3-embed], [PYTHON_FOUND=yes; PYTHON_VERSION=`$PKGCONFIG --modversion python3-embed`], [PYTHON_FOUND=no])
if test "x$PYTHON_FOUND" != "xyes"; then
PKG_CHECK_MODULES(PYTHON, [python3], [PYTHON_FOUND=yes; PYTHON_VERSION=`$PKGCONFIG --modversion python3`], [PYTHON_FOUND=no])
fi
fi
if test -z $PYTHON ; then
if test "x$PYTHON_FOUND" != "xyes" ; 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; sys.stdout.write("%s" % sys.prefix)'`
PYTHON_VERSION=`$PYTHON -c 'import sys; sys.stdout.write(sys.version[[:3]])'`
PYTHON_INCLUDE=`$PYTHON -c "import sys, distutils.sysconfig, string; sys.stdout.write(distutils.sysconfig.get_config_var('INCLUDEPY'))"`
PYTHON_OLD_VERSION=`$PYTHON -c "import sys; sys.stdout.write(str(sys.version_info < (2,5)))"`
if test "x$PYTHON_OLD_VERSION" = "xTrue" ; then
AC_MSG_WARN([
*** Python >= 2.5 is needed to build Python plugin, version found: $PYTHON_VERSION.
*** WeeChat will be built without Python support.])
enable_python="no"
not_found="$not_found python"
else
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 sys, distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_config_var('LIBPL'))"`
PYTHON_LFLAGS="-lpython$PYTHON_VERSION "`$PYTHON -c "import sys, distutils.sysconfig; sys.stdout.write(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_LIB/libpython$PYTHON_VERSION.dll.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 on 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 on 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
else
not_asked="$not_asked python"
@@ -577,7 +496,8 @@ fi
if test "x$enable_python" = "xyes" ; then
AC_SUBST(PYTHON_CFLAGS)
AC_SUBST(PYTHON_LFLAGS)
AC_SUBST(PYTHON_LIBS)
AC_SUBST(PYTHON_VERSION)
AC_DEFINE(PLUGIN_PYTHON)
fi
@@ -588,7 +508,7 @@ RUBY_VERSION=
if test "x$enable_ruby" = "xyes" ; then
RUBY_CFLAGS=""
RUBY_LFLAGS=""
for v in "2.3" "2.2" "2.1" "2.0" "1.9" "1.8" ; do
for v in "2.7" "2.6" "2.5" "2.4" "2.3" "2.2" "2.1" "2.0" "1.9" "1.8" ; do
pkgconfig_ruby_found=`$PKGCONFIG --exists ruby-$v 2>/dev/null`
if test "x$?" = "x0" ; then
RUBY_VERSION=`$PKGCONFIG --modversion ruby-$v`
@@ -598,8 +518,9 @@ if test "x$enable_ruby" = "xyes" ; then
fi
done
# detect old Ruby versions
if test "x$RUBY_CFLAGS" = "x" -o "x$RUBY_LFLAGS" = "x" ; then
AC_PATH_PROGS(RUBY, ruby1.9.3 ruby1.9.2 ruby1.9.1 ruby1.9 ruby1.8 ruby)
AC_PATH_PROGS(RUBY, ruby1.9.3 ruby1.9.2 ruby1.9.1 ruby1.9 ruby)
if test -z $RUBY ; then
AC_MSG_WARN([
*** Ruby must be installed on your system but ruby interpreter couldn't be found in path.
@@ -641,7 +562,7 @@ fi
LUA_VERSION=
if test "x$enable_lua" = "xyes" ; then
ac_save_CPPFLAGS="$CPPFLAGS"
ac_save_CXXFLAGS="$CXXFLAGS"
ac_save_CFLAGS="$CFLAGS"
ac_save_LDFLAGS="$LDFLAGS"
@@ -650,16 +571,16 @@ if test "x$enable_lua" = "xyes" ; then
if test -n "$lua_inc"; then
CFLAGS="$CFLAGS -I$lua_inc"
CPPFLAGS="$CPPFLAGS -I$lua_inc"
CXXFLAGS="$CXXFLAGS -I$lua_inc"
fi
if test -n "$lua_lib"; then
LDFLAGS="$LDFLAGS -L$lua_lib"
fi
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
AC_MSG_CHECKING(for Lua headers and librairies with pkg-config)
AC_MSG_CHECKING(for Lua headers and libraries with pkg-config)
echo
for l in "$lua_suffix" "" "52" "5.2" "51" "5.1" "50" "5.0" ; do
for l in "53" "5.3" "52" "5.2" "51" "5.1" "50" "5.0" "$lua_suffix" "" ; do
pkgconfig_lua_found=`$PKGCONFIG --exists lua$l 2>/dev/null`
if test "x$?" = "x0" ; then
LUA_VERSION=`$PKGCONFIG --modversion lua$l`
@@ -678,9 +599,9 @@ if test "x$enable_lua" = "xyes" ; then
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
LUACONFIG=""
AC_CHECK_PROGS(LUACONFIG, lua-config lua-config52 lua-config5.2 lua-config51 lua-config5.1 lua-config50 lua-config5.0)
AC_CHECK_PROGS(LUACONFIG, lua-config53 lua-config5.3 lua-config52 lua-config5.2 lua-config51 lua-config5.1 lua-config50 lua-config5.0 lua-config)
if test "x$LUACONFIG" != "x" ; then
AC_MSG_CHECKING(for Lua headers and librairies with lua-config)
AC_MSG_CHECKING(for Lua headers and libraries with lua-config)
echo
LUA_CFLAGS=`$LUACONFIG --include`
LUA_LFLAGS=`$LUACONFIG --libs`
@@ -689,14 +610,14 @@ if test "x$enable_lua" = "xyes" ; then
fi
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
AC_MSG_CHECKING(for Lua headers and librairies)
AC_MSG_CHECKING(for Lua headers and libraries)
echo
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" "" "52" "5.2" "51" "5.1" "50" "5.0" ; do
for l in "53" "5.3" "52" "5.2" "51" "5.1" "50" "5.0" "$lua_suffix" "" ; do
AC_CHECK_LIB(lua$l,lua_call,ac_found_lua_lib="yes",ac_found_lua_lib="no")
if test "x$ac_found_lua_lib" = "xyes" ; then
LUA_VERSION=">=5.1.0"
@@ -734,7 +655,7 @@ if test "x$enable_lua" = "xyes" ; then
if test "x$LUA52_TEST" != "x0" ; then
AC_MSG_RESULT(no)
AC_MSG_WARN([
*** Lua (>=5.0) headers and/or librairies couldn't be found on your system.
*** Lua (>=5.0) headers and/or libraries couldn't be found on 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"
@@ -747,7 +668,7 @@ if test "x$enable_lua" = "xyes" ; then
fi
CFLAGS="$ac_save_CFLAGS"
CPPFLAGS="$ac_save_CPPFLAGS"
CXXFLAGS="$ac_save_CXXFLAGS"
LDFLAGS="$ac_save_LDFLAGS"
else
not_asked="$not_asked lua"
@@ -807,9 +728,9 @@ if test "x$enable_guile" = "xyes" ; then
enable_plugins="yes"
guile_found="no"
AC_MSG_CHECKING(for Guile headers and librairies)
AC_MSG_CHECKING(for Guile headers and libraries)
echo
for v in "2.0" ; do
for v in "3.0" "2.2" "2.0" ; do
pkgconfig_guile_found=`$PKGCONFIG --exists guile-$v 2>/dev/null`
if test "x$?" = "x0" ; then
GUILE_VERSION=`$PKGCONFIG --modversion guile-$v`
@@ -865,8 +786,8 @@ if test "x$enable_javascript" = "xyes" ; then
AC_CHECK_HEADER(v8.h,ac_found_v8_header="yes",ac_found_v8_header="no")
if test "x$ac_found_v8_header" = "xyes" ; then
#AC_CHECK_LIB(v8,v8,ac_found_v8_lib="yes",ac_found_v8_lib="no")
ac_save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -lv8"
ac_save_LIBS="$LIBS"
LIBS="$LIBS -lv8 -lpthread"
AC_MSG_CHECKING(for v8 usability in programs)
AC_TRY_RUN([
#include <v8.h>
@@ -875,24 +796,24 @@ if test "x$enable_javascript" = "xyes" ; then
const char *version = V8::GetVersion();
return 0;
}],ac_found_v8_lib="yes", ac_found_v8_lib="no", ac_found_v8_lib="assume-yes")
LDFLAGS="$ac_save_LDFLAGS"
LIBS="$ac_save_LIBS"
if test "x$ac_found_v8_lib" = "xyes" ; then
AC_MSG_RESULT(yes)
v8_found="yes"
V8_CFLAGS=""
V8_LFLAGS="-lv8"
V8_LFLAGS="-lv8 -lpthread"
else
AC_MSG_RESULT(no)
AC_MSG_WARN([
*** V8 library couldn't be found on your system.
*** WeeChat will be built without Javascript support.])
*** WeeChat will be built without JavaScript support.])
enable_javascript="no"
not_found="$not_found javascript/v8"
fi
else
AC_MSG_WARN([
*** V8 header files couldn't be found on your system.
*** WeeChat will be built without Javascript support.])
*** WeeChat will be built without JavaScript support.])
enable_javascript="no"
not_found="$not_found javascript/v8"
fi
@@ -908,6 +829,187 @@ fi
AC_LANG_POP
# ---------------------------------- php --------------------------------------
PHP_VERSION=
if test "x$enable_php" = "xyes" ; then
ac_save_CXXFLAGS="$CXXFLAGS"
ac_save_CFLAGS="$CFLAGS"
ac_save_LDFLAGS="$LDFLAGS"
PHP_CFLAGS=""
PHP_LFLAGS=""
if test -n "$php_inc"; then
CFLAGS="$CFLAGS -I$php_inc"
CXXFLAGS="$CXXFLAGS -I$php_inc"
fi
if test -n "$php_lib"; then
LDFLAGS="$LDFLAGS -L$php_lib"
fi
if test "x$PHP_CFLAGS" = "x" -o "x$PHP_LFLAGS" = "x" ; then
AC_MSG_CHECKING(for PHP headers and libraries with pkg-config)
echo
for l in "7.4" "74" "7.3" "73" "7.2" "72" "7.1" "71" "7.0" "70" "7" "$php_suffix" "" ; do
pkgconfig_php_found=`$PKGCONFIG --exists php$l 2>/dev/null`
if test "x$?" = "x0" ; then
pkgconfig_php_found=`$PKGCONFIG --atleast-version=7 php$l 2>/dev/null`
if test "x$?" = "x0" ; then
PHP_VERSION=`$PKGCONFIG --modversion php$l`
PHP_CFLAGS="$PHP_CFLAGS "`$PKGCONFIG --cflags php$l`
PHP_LFLAGS="$PHP_LFLAGS "`$PKGCONFIG --libs php$l`
break
fi
fi
done
fi
if test "x$PHP_CFLAGS" = "x" -o "x$PHP_LFLAGS" = "x" ; then
PHPCONFIG=""
AC_MSG_CHECKING(for PHP headers and libraries with php-config)
for l in "7.4" "74" "7.3" "73" "7.2" "72" "7.1" "71" "7.0" "70" "7" "$php_suffix" "" ; do
AC_CHECK_PROG(PHPCONFIG, "php-config$l", "php-config$l")
if test "x$PHPCONFIG" != "x" ; then
php_config_version=`$PHPCONFIG --version`
if test "x${php_config_version#7}" != "x${php_config_version}" ; then
PHP_VERSION=$php_config_version
PHP_CFLAGS=`$PHPCONFIG --includes`
PHP_LFLAGS="-L$($PHPCONFIG --prefix)/lib/ $($PHPCONFIG --libs) -lphp$l"
break
fi
fi
done
fi
if test "x$PHP_CFLAGS" = "x" -o "x$PHP_LFLAGS" = "x" ; then
AC_MSG_CHECKING(for PHP headers and libraries)
echo
AC_CHECK_HEADER(php.h,ac_found_php_header="yes",ac_found_php_header="no")
if test "x$ac_found_php_header" = "xyes" ; then
PHP_CFLAGS="$CFLAGS"
fi
for l in "7.4" "74" "7.3" "73" "7.2" "72" "7.1" "71" "7.0" "70" "7" "$php_suffix" "" ; do
AC_CHECK_LIB(php$l,php_execute_script,ac_found_php_lib="yes",ac_found_php_lib="no")
if test "x$ac_found_php_lib" = "xyes" ; then
PHP_VERSION=">=7.0.0"
PHP_LFLAGS="$LDFLAGS -lphp7 -lm"
ac2_save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -lphp7 -lm"
if echo "$host_os" | grep "^linux" 1>/dev/null 2>&1 ; then
LDFLAGS="$LDFLAGS -ldl"
fi
LDFLAGS="$ac2_save_LDFLAGS"
break
fi
done
fi
AC_MSG_CHECKING(for PHP compiling and linking)
PHP_TEST=`LT=phptest.c ; echo "#include <sapi/embed/php_embed.h>" > $LT; echo "int main() { php_embed_init(0, NULL); php_embed_shutdown(); return 0; }" >> $LT ; $CC -Wall $LT -o $LT.out $PHP_CFLAGS $PHP_LFLAGS $CFLAGS $LDFLAGS 1>/dev/null 2>&1 ; echo $?; rm -f $LT $LT.out 1>/dev/null 2>&1`
if test "x$PHP_TEST" != "x0" ; then
AC_MSG_RESULT(no)
AC_MSG_WARN([
*** PHP (>=7.0) headers and/or libraries couldn't be found on your system.
*** Try to install libphp-embed with your software package manager.
*** WeeChat will be built without PHP support.])
enable_php="no"
not_found="$not_found php"
else
AC_MSG_RESULT(yes)
fi
CFLAGS="$ac_save_CFLAGS"
CXXFLAGS="$ac_save_CXXFLAGS"
LDFLAGS="$ac_save_LDFLAGS"
else
not_asked="$not_asked php"
fi
if test "x$enable_php" = "xyes" ; then
AC_SUBST(PHP_CFLAGS)
AC_SUBST(PHP_LFLAGS)
AC_DEFINE(PLUGIN_PHP)
fi
# ----------------------------------- spell ------------------------------------
if test "x$enable_spell" = "xyes" ; then
ac_found_enchant_lib="no"
if test "x$enable_enchant" = "xyes" ; then
PKG_CHECK_MODULES(ENCHANT, [enchant], ac_found_enchant_lib="yes", ac_found_enchant_lib="no")
fi
if test "x$ac_found_enchant_lib" = "xyes" ; then
CFLAGS="$CFLAGS -DUSE_ENCHANT"
SPELL_LIB_USED="enchant"
# check if function enchant_get_version() exists
ac_save_CFLAGS="$CFLAGS"
ac_save_LDFLAGS="$LDFLAGS"
CFLAGS="$CFLAGS $ENCHANT_CFLAGS"
LDFLAGS="$LDFLAGS $ENCHANT_LIBS"
AC_CACHE_CHECK([for enchant_get_version() support], ac_cv_have_enchant_get_version, [
AC_LINK_IFELSE([AC_LANG_PROGRAM(
[[ #include <enchant.h>]],
[[ const char *version = enchant_get_version(); ]])],
[ ac_have_enchant_get_version="yes" ],
[ ac_have_enchant_get_version="no" ])])
CFLAGS="$ac_save_CFLAGS"
LDFLAGS="$ac_save_LDFLAGS"
if test "x$ac_have_enchant_get_version" = "xyes"; then
AC_DEFINE(HAVE_ENCHANT_GET_VERSION)
fi
else
ASPELL_CFLAGS=""
ASPELL_LFLAGS=""
AC_CHECK_HEADER(aspell.h,ac_found_aspell_header="yes",ac_found_aspell_header="no")
AC_CHECK_LIB(aspell,new_aspell_speller,ac_found_aspell_lib="yes",ac_found_aspell_lib="no")
AC_MSG_CHECKING(for aspell headers and libraries)
if test "x$ac_found_aspell_header" = "xno" -o "x$ac_found_aspell_lib" = "xno" ; then
AC_MSG_RESULT(no)
AC_MSG_WARN([
*** Aspell headers and/or libraries couldn't be found on your system.
*** Try to install them with your software package manager.
*** WeeChat will be built without Aspell support.])
enable_spell="no"
not_found="$not_found spell"
else
AC_MSG_RESULT(yes)
ASPELL_LFLAGS="$ASPELL_LFLAGS -laspell"
SPELL_LIB_USED="aspell"
# check if function aspell_version_string() exists
ac_save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $ASPELL_LFLAGS"
AC_CACHE_CHECK([for aspell_version_string() support], ac_cv_have_aspell_version_string, [
AC_LINK_IFELSE([AC_LANG_PROGRAM(
[[ #include <aspell.h>]],
[[ const char *version = aspell_version_string(); ]])],
[ ac_have_aspell_version_string="yes" ],
[ ac_have_aspell_version_string="no" ])])
LDFLAGS="$ac_save_LDFLAGS"
if test "x$ac_have_aspell_version_string" = "xyes"; then
AC_DEFINE(HAVE_ASPELL_VERSION_STRING)
fi
fi
fi
else
not_asked="$not_asked spell"
fi
if test "x$enable_spell" = "xyes" ; then
AC_SUBST(ASPELL_CFLAGS)
AC_SUBST(ASPELL_LFLAGS)
AC_DEFINE(PLUGIN_SPELL)
fi
# --------------------------------- trigger ------------------------------------
if test "x$enable_trigger" = "xyes" ; then
@@ -939,12 +1041,12 @@ fi
AC_CHECK_HEADER(gcrypt.h,ac_found_gcrypt_header="yes",ac_found_gcrypt_header="no")
AC_CHECK_LIB(gcrypt,gcry_check_version,ac_found_gcrypt_lib="yes",ac_found_gcrypt_lib="no")
AC_MSG_CHECKING(for gcrypt headers and librairies)
AC_MSG_CHECKING(for gcrypt headers and libraries)
if test "x$ac_found_gcrypt_header" = "xno" -o "x$ac_found_gcrypt_lib" = "xno" ; then
AC_MSG_RESULT(no)
AC_MSG_ERROR([
*** libgcrypt was not found. You may want to get it from ftp://ftp.gnupg.org/gcrypt/libgcrypt/
*** or try to install libgcrypt-dev with your software package manager.])
*** libgcrypt was not found. You may want to get it from https://www.gnupg.org/ftp/gcrypt/libgcrypt/
*** or try to install it with your software package manager.])
else
AC_MSG_RESULT(yes)
GCRYPT_CFLAGS=`libgcrypt-config --cflags`
@@ -957,29 +1059,21 @@ fi
# gnutls
# ------------------------------------------------------------------------------
if test "x$enable_gnutls" = "xyes" ; then
AC_CHECK_HEADER(gnutls/gnutls.h,ac_found_gnutls_header="yes",ac_found_gnutls_header="no")
AC_CHECK_LIB(gnutls,gnutls_global_init,ac_found_gnutls_lib="yes",ac_found_gnutls_lib="no")
AC_CHECK_HEADER(gnutls/gnutls.h,ac_found_gnutls_header="yes",ac_found_gnutls_header="no")
AC_CHECK_LIB(gnutls,gnutls_global_init,ac_found_gnutls_lib="yes",ac_found_gnutls_lib="no")
AC_MSG_CHECKING(for gnutls headers and librairies)
if test "x$ac_found_gnutls_header" = "xno" -o "x$ac_found_gnutls_lib" = "xno" ; then
AC_MSG_RESULT(no)
AC_MSG_WARN([
*** libgnutls was not found. You may want to get it from ftp://ftp.gnutls.org/pub/gnutls/
*** WeeChat will be built without GnuTLS support.])
enable_gnutls="no"
not_found="$not_found gnutls"
else
AC_MSG_RESULT(yes)
GNUTLS_CFLAGS=`pkg-config gnutls --cflags`
GNUTLS_LFLAGS=`pkg-config gnutls --libs`
AC_SUBST(GNUTLS_CFLAGS)
AC_SUBST(GNUTLS_LFLAGS)
AC_DEFINE(HAVE_GNUTLS)
CFLAGS="$CFLAGS -DHAVE_GNUTLS"
fi
AC_MSG_CHECKING(for gnutls headers and libraries)
if test "x$ac_found_gnutls_header" = "xno" -o "x$ac_found_gnutls_lib" = "xno" ; then
AC_MSG_RESULT(no)
AC_MSG_ERROR([
*** libgnutls was not found. You may want to get it from https://www.gnupg.org/ftp/gcrypt/gnutls/
*** or try to install it with your software package manager.])
else
not_asked="$not_asked gnutls"
AC_MSG_RESULT(yes)
GNUTLS_CFLAGS=`pkg-config gnutls --cflags`
GNUTLS_LFLAGS=`pkg-config gnutls --libs`
AC_SUBST(GNUTLS_CFLAGS)
AC_SUBST(GNUTLS_LFLAGS)
fi
# ------------------------------------------------------------------------------
@@ -1007,6 +1101,7 @@ fi
if test "x$enable_largefile" = "xyes" ; then
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_LARGE_FILES"
CXXFLAGS="$CXXFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_LARGE_FILES"
else
not_asked="$not_asked largefile"
fi
@@ -1057,12 +1152,12 @@ fi
AC_CHECK_HEADER(zlib.h,ac_found_zlib_header="yes",ac_found_zlib_header="no")
AC_CHECK_LIB(z,compress2,ac_found_zlib_lib="yes",ac_found_zlib_lib="no")
AC_MSG_CHECKING(for zlib headers and librairies)
AC_MSG_CHECKING(for zlib headers and libraries)
if test "x$ac_found_zlib_header" = "xno" -o "x$ac_found_zlib_lib" = "xno" ; then
AC_MSG_RESULT(no)
AC_MSG_ERROR([
*** zlib was not found. You may want to get it from http://zlib.net/
*** or try to install zlib1g-dev with your software package manager.])
*** zlib was not found. You may want to get it from https://zlib.net/
*** or try to install it with your software package manager.])
else
AC_MSG_RESULT(yes)
ZLIB_CFLAGS=`pkg-config zlib --cflags`
@@ -1092,7 +1187,7 @@ AC_SUBST(CURL_LFLAGS)
if test "x$enable_tests" = "xyes" ; then
cpputest_found="no"
AC_MSG_CHECKING(for CppUTest headers and librairies)
AC_MSG_CHECKING(for CppUTest headers and libraries)
echo
pkgconfig_cpputest_found=`$PKGCONFIG --exists cpputest 2>/dev/null`
if test "x$?" = "x0" ; then
@@ -1159,7 +1254,9 @@ if test "x$enable_man" = "xyes" -o "x$enable_doc" = "xyes"; then
enable_man="no"
enable_doc="no"
fi
ASCIIDOCTOR_ARGS="-a experimental -a 'prewrap!' -a icons=font -a sectanchors -a source-highlighter=prettify"
AC_SUBST(ASCIIDOCTOR)
AC_SUBST(ASCIIDOCTOR_ARGS)
fi
# ------------------------------------------------------------------------------
@@ -1185,11 +1282,14 @@ AC_DEFINE_UNQUOTED(WEECHAT_SHAREDIR, "$WEECHAT_SHAREDIR")
weechat_libdir=${libdir}/weechat
AC_SUBST(weechat_libdir)
COMMON_CFLAGS="-Wall -Wextra -Werror-implicit-function-declaration"
COMMON_CFLAGS="-fsigned-char -Wall -Wextra -Werror-implicit-function-declaration"
COMMON_CXXFLAGS="-fsigned-char -Wall -Wextra"
AC_MSG_CHECKING([whether we have GNU assembler])
GAS=`as --version < /dev/null 2>/dev/null | grep GNU`
if test "$GAS"; then
COMMON_CFLAGS="${COMMON_CFLAGS} -pipe"
COMMON_CXXFLAGS="${COMMON_CXXFLAGS} -pipe"
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
@@ -1199,10 +1299,18 @@ CFLAGS=`echo $CFLAGS | sed 's/ -g / /g'`
CFLAGS=`echo $CFLAGS | sed 's/^-g //g'`
CFLAGS=`echo $CFLAGS | sed 's/ -g$//g'`
CFLAGS=`echo $CFLAGS | sed 's/^-g$//g'`
CXXFLAGS=`echo $CXXFLAGS | sed 's/ -g / /g'`
CXXFLAGS=`echo $CXXFLAGS | sed 's/^-g //g'`
CXXFLAGS=`echo $CXXFLAGS | sed 's/ -g$//g'`
CXXFLAGS=`echo $CXXFLAGS | sed 's/^-g$//g'`
if test "x$debug" = "x0" ; then
CFLAGS="$COMMON_CFLAGS $CFLAGS"
CXXFLAGS="$COMMON_CXXFLAGS $CXXFLAGS"
else
CFLAGS="$COMMON_CFLAGS $CFLAGS -g -O0"
CXXFLAGS="$COMMON_CXXFLAGS $CXXFLAGS -g -O0"
fi
LIBS="$LIBS $INTLLIBS"
@@ -1212,7 +1320,7 @@ freebsd*)
if test "x$enable_perl" = "xyes" -o "x$enable_python" = "xyes" ; then
CFLAGS="$CFLAGS -pthread"
fi
CFLAGS="$CFLAGS $CPPFLAGS"
CFLAGS="$CFLAGS $CXXFLAGS"
;;
openbsd*)
if test "x$enable_python" = "xyes" ; then
@@ -1223,31 +1331,35 @@ netbsd*)
if test "x$enable_perl" = "xyes" -o "x$enable_python" = "xyes" ; then
CFLAGS="$CFLAGS -pthread"
fi
CFLAGS="$CFLAGS $CPPFLAGS"
CFLAGS="$CFLAGS $CXXFLAGS"
;;
gnu*)
LDFLAGS="$LDFLAGS -lpthread"
;;
haiku*)
LDFLAGS="$LDFLAGS -lnetwork"
;;
*)
;;
esac
CFLAGS="$CFLAGS -DWEECHAT_VERSION=\\\"$VERSION\\\" -DWEECHAT_LICENSE=\\\"$LICENSE\\\""
CPPFLAGS="$CPPFLAGS -DWEECHAT_VERSION=\\\"$VERSION\\\" -DWEECHAT_LICENSE=\\\"$LICENSE\\\""
CXXFLAGS="$CXXFLAGS -DWEECHAT_VERSION=\\\"$VERSION\\\" -DWEECHAT_LICENSE=\\\"$LICENSE\\\""
# ------------------------------------------------------------------------------
# output Makefiles
# ------------------------------------------------------------------------------
AM_CONDITIONAL(HAVE_GNUTLS, test "$enable_gnutls" = "yes")
AM_CONDITIONAL(HAVE_FLOCK, test "$enable_flock" = "yes")
AM_CONDITIONAL(HAVE_EAT_NEWLINE_GLITCH, test "$enable_eatnewlineglitch" = "yes")
AM_CONDITIONAL(GUI_NCURSES, test "$enable_ncurses" = "yes")
AM_CONDITIONAL(HEADLESS, test "$enable_headless" = "yes")
AM_CONDITIONAL(PLUGIN_ALIAS, test "$enable_alias" = "yes")
AM_CONDITIONAL(PLUGIN_ASPELL, test "$enable_aspell" = "yes")
AM_CONDITIONAL(PLUGIN_BUFLIST, test "$enable_buflist" = "yes")
AM_CONDITIONAL(PLUGIN_CHARSET, test "$enable_charset" = "yes")
AM_CONDITIONAL(PLUGIN_EXEC, test "$enable_exec" = "yes")
AM_CONDITIONAL(PLUGIN_FIFO, test "$enable_fifo" = "yes")
AM_CONDITIONAL(PLUGIN_FSET, test "$enable_fset" = "yes")
AM_CONDITIONAL(PLUGIN_IRC, test "$enable_irc" = "yes")
AM_CONDITIONAL(PLUGIN_LOGGER, test "$enable_logger" = "yes")
AM_CONDITIONAL(PLUGIN_RELAY, test "$enable_relay" = "yes")
@@ -1259,6 +1371,8 @@ AM_CONDITIONAL(PLUGIN_LUA, test "$enable_lua" = "yes")
AM_CONDITIONAL(PLUGIN_TCL, test "$enable_tcl" = "yes")
AM_CONDITIONAL(PLUGIN_GUILE, test "$enable_guile" = "yes")
AM_CONDITIONAL(PLUGIN_JAVASCRIPT, test "$enable_javascript" = "yes")
AM_CONDITIONAL(PLUGIN_PHP, test "$enable_php" = "yes")
AM_CONDITIONAL(PLUGIN_SPELL, test "$enable_spell" = "yes")
AM_CONDITIONAL(PLUGIN_TRIGGER, test "$enable_trigger" = "yes")
AM_CONDITIONAL(PLUGIN_XFER, test "$enable_xfer" = "yes")
AM_CONDITIONAL(TESTS, test "$enable_tests" = "yes")
@@ -1266,6 +1380,7 @@ AM_CONDITIONAL(MAN, test "$enable_man" = "yes")
AM_CONDITIONAL(DOC, test "$enable_doc" = "yes")
AC_OUTPUT([Makefile
icons/Makefile
doc/Makefile
doc/en/Makefile
doc/fr/Makefile
@@ -1280,10 +1395,11 @@ AC_OUTPUT([Makefile
src/core/Makefile
src/plugins/Makefile
src/plugins/alias/Makefile
src/plugins/aspell/Makefile
src/plugins/buflist/Makefile
src/plugins/charset/Makefile
src/plugins/exec/Makefile
src/plugins/fifo/Makefile
src/plugins/fset/Makefile
src/plugins/irc/Makefile
src/plugins/logger/Makefile
src/plugins/relay/Makefile
@@ -1295,10 +1411,14 @@ AC_OUTPUT([Makefile
src/plugins/tcl/Makefile
src/plugins/guile/Makefile
src/plugins/javascript/Makefile
src/plugins/php/Makefile
src/plugins/spell/Makefile
src/plugins/trigger/Makefile
src/plugins/xfer/Makefile
src/gui/Makefile
src/gui/curses/Makefile
src/gui/curses/normal/Makefile
src/gui/curses/headless/Makefile
tests/Makefile
intl/Makefile
po/Makefile.in])
@@ -1311,19 +1431,22 @@ listgui=""
if test "x$enable_ncurses" = "xyes" ; then
listgui="$listgui ncurses"
fi
if test "x$enable_headless" = "xyes" ; then
listgui="$listgui headless"
fi
if test "x$listgui" = "x" ; then
AC_MSG_ERROR([
*** No interface specified...
*** Please enable at least ncurses.])
*** Please enable at least ncurses or headless.])
fi
listplugins=""
if test "x$enable_alias" = "xyes"; then
listplugins="$listplugins alias"
fi
if test "x$enable_aspell" = "xyes"; then
listplugins="$listplugins aspell($ASPELL_LIB_USED)"
if test "x$enable_buflist" = "xyes"; then
listplugins="$listplugins buflist"
fi
if test "x$enable_charset" = "xyes"; then
listplugins="$listplugins charset"
@@ -1334,6 +1457,9 @@ fi
if test "x$enable_fifo" = "xyes"; then
listplugins="$listplugins fifo"
fi
if test "x$enable_fset" = "xyes"; then
listplugins="$listplugins fset"
fi
if test "x$enable_irc" = "xyes" ; then
listplugins="$listplugins irc"
fi
@@ -1367,6 +1493,12 @@ fi
if test "x$enable_javascript" = "xyes"; then
listplugins="$listplugins javascript/v8"
fi
if test "x$enable_php" = "xyes"; then
listplugins="$listplugins php($PHP_VERSION)"
fi
if test "x$enable_spell" = "xyes"; then
listplugins="$listplugins spell($SPELL_LIB_USED)"
fi
if test "x$enable_trigger" = "xyes"; then
listplugins="$listplugins trigger"
fi
@@ -1375,9 +1507,6 @@ if test "x$enable_xfer" = "xyes"; then
fi
listoptional=""
if test "x$enable_gnutls" = "xyes"; then
listoptional="$listoptional gnutls"
fi
if test "x$enable_flock" = "xyes"; then
listoptional="$listoptional flock"
fi
+1 -1
View File
@@ -1 +1 @@
9
12
+165 -40
View File
@@ -4,33 +4,35 @@ Priority: optional
Maintainer: Sébastien Helleu <flashcode@flashtux.org>
Build-Depends:
asciidoctor (>= 1.5.4),
debhelper (>= 9),
dh-exec,
debhelper (>= 12),
cmake, pkg-config,
libncursesw5-dev,
gem2deb,
libperl-dev,
python-dev,
python3-dev,
libaspell-dev,
liblua5.1-0-dev,
liblua5.3-dev,
tcl8.6-dev,
guile-2.0-dev,
libv8-dev [amd64 armel armhf hurd-i386 i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel],
guile-2.2-dev,
php-dev, libphp-embed, libargon2-0-dev, libsodium-dev,
libxml2-dev,
libcurl4-gnutls-dev,
libgcrypt20-dev,
libgnutls28-dev,
zlib1g-dev
Standards-Version: 3.9.8
Standards-Version: 4.4.0
Homepage: https://weechat.org/
Vcs-Git: https://anonscm.debian.org/git/users/kolter/weechat.git
Vcs-Browser: https://anonscm.debian.org/git/users/kolter/weechat.git
Vcs-Git: https://salsa.debian.org/kolter/weechat.git
Vcs-Browser: https://salsa.debian.org/kolter/weechat
Package: weechat-devel
Architecture: all
Depends: ${misc:Depends}, weechat-devel-curses (>= ${source:Version})
Depends:
${misc:Depends},
weechat-devel-curses (>= ${source:Version}) | weechat-devel-headless (>= ${source:Version})
Suggests: weechat-devel-doc (= ${source:Version})
Conflicts: weechat
Description: Fast, light and extensible chat client
Description: Fast, light and extensible chat client (metapackage)
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
It is customizable and extensible with plugins/scripts, and includes:
@@ -44,18 +46,22 @@ Description: Fast, light and extensible chat client
- 256 colors support
- incremental text search
- dynamic filtering of buffer content
- Perl, Python, Ruby, Lua, Tcl, Scheme and Javascript scripting
- scripts manager
- Perl, Python, Ruby, Lua, Tcl, Scheme and PHP scripting
- script manager
- spell checking
- highly customizable and extensible
- and much more!
Package: weechat-devel-curses
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}, weechat-devel-core (= ${binary:Version})
Conflicts: weechat-curses
Recommends: weechat-devel-plugins (= ${binary:Version})
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-devel-core (= ${binary:Version})
Recommends:
weechat-devel-plugins (= ${binary:Version})
Suggests: weechat-devel-doc (= ${source:Version})
Conflicts: weechat-curses
Description: Fast, light and extensible chat client - console client
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
@@ -70,30 +76,71 @@ Description: Fast, light and extensible chat client - console client
- 256 colors support
- incremental text search
- dynamic filtering of buffer content
- Perl, Python, Ruby, Lua, Tcl, Scheme and Javascript scripting
- scripts manager
- Perl, Python, Ruby, Lua, Tcl, Scheme and PHP scripting
- script manager
- spell checking
- highly customizable and extensible
- and much more!
.
This package provides the console client (ncurses).
Package: weechat-devel-headless
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-devel-core (= ${binary:Version})
Recommends: weechat-devel-plugins (= ${binary:Version})
Suggests: weechat-devel-doc (= ${source:Version})
Conflicts: weechat-headless
Description: Fast, light and extensible chat client - headless client
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
It is customizable and extensible with plugins/scripts, and includes:
- support of IRC protocol (native)
- support of XMPP/Jabber protocol (with additional script)
- nicklist
- smart hotlist
- horizontal and vertical split
- double charset support (decode/encode)
- FIFO pipe for remote control
- 256 colors support
- incremental text search
- dynamic filtering of buffer content
- Perl, Python, Ruby, Lua, Tcl, Scheme and PHP scripting
- script manager
- spell checking
- highly customizable and extensible
- and much more!
.
This package provides the headless client.
Package: weechat-devel-core
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Conflicts: weechat-core
Depends:
${misc:Depends},
${shlibs:Depends}
Suggests: weechat-devel-doc (= ${source:Version})
Conflicts: weechat-core
Description: Fast, light and extensible chat client - core files
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides core plugins and locales files for WeeChat. It
currently ships the following plugins: alias, xfer, irc, charset and
logger. It is useless without weechat-curses.
currently ships the following plugins: alias, buflist, charset, fset, irc,
logger and xfer. It is useless without weechat-curses or weechat-headless.
Package: weechat-devel-plugins
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}, weechat-devel-curses (= ${binary:Version})
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-devel-curses (= ${binary:Version}) | weechat-devel-headless (= ${binary:Version})
Recommends:
weechat-devel-perl,
weechat-devel-python,
weechat-devel-ruby
Suggests: weechat-scripts (>> 20090221-1)
Conflicts: weechat-plugins
Description: Fast, light and extensible chat client - plugins
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
@@ -101,13 +148,104 @@ Description: Fast, light and extensible chat client - plugins
.
This package provides some plugins to enhance WeeChat. It currently
ships the following plugins:
- Perl, Python, Ruby, Lua, Tcl, Scheme and Javascript scripting
- scripts manager
- script manager
- Spell checking (thanks to aspell)
- FIFO pipe for remote control
- IRC proxy
- Relay (IRC proxy and WeeChat protocol)
- Trigger
Package: weechat-devel-python
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-devel-curses (= ${binary:Version}) | weechat-devel-headless (= ${binary:Version})
Conflicts: weechat-python
Description: Fast, light and extensible chat client - Python 3 plugin
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides the Python 3 scripting API plugin.
Package: weechat-devel-perl
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-devel-curses (= ${binary:Version}) | weechat-devel-headless (= ${binary:Version})
Conflicts: weechat-perl
Description: Fast, light and extensible chat client - Perl plugin
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides the Perl scripting API plugin.
Package: weechat-devel-ruby
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-devel-curses (= ${binary:Version}) | weechat-devel-headless (= ${binary:Version})
Conflicts: weechat-ruby
Description: Fast, light and extensible chat client - Ruby plugin
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides the Ruby scripting API plugin.
Package: weechat-devel-lua
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-devel-curses (= ${binary:Version}) | weechat-devel-headless (= ${binary:Version})
Conflicts: weechat-lua
Description: Fast, light and extensible chat client - Lua plugin
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides the Lua scripting API plugin.
Package: weechat-devel-tcl
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-devel-curses (= ${binary:Version}) | weechat-devel-headless (= ${binary:Version})
Conflicts: weechat-tcl
Description: Fast, light and extensible chat client - Tcl plugin
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides the Tcl scripting API plugin.
Package: weechat-devel-guile
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-devel-curses (= ${binary:Version}) | weechat-devel-headless (= ${binary:Version})
Conflicts: weechat-guile
Description: Fast, light and extensible chat client - Guile plugin
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides the Guile scripting API plugin.
Package: weechat-devel-php
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-devel-curses (= ${binary:Version}) | weechat-devel-headless (= ${binary:Version}),
libphp-embed
Conflicts: weechat-php
Description: Fast, light and extensible chat client - PHP plugin
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides the PHP scripting API plugin.
Package: weechat-devel-doc
Section: doc
Architecture: all
@@ -121,7 +259,7 @@ Description: Fast, light and extensible chat client - documentation
Package: weechat-devel-dev
Section: devel
Architecture: all
Architecture: any
Depends: ${misc:Depends}
Conflicts: weechat-dev
Description: Fast, light and extensible chat client - development headers
@@ -129,16 +267,3 @@ Description: Fast, light and extensible chat client - development headers
for many operating systems. Everything can be done with a keyboard.
.
This package contains the headers needed to build plugins.
Package: weechat-devel-dbg
Section: debug
Priority: extra
Architecture: any
Depends: ${misc:Depends}, weechat-devel-curses (= ${binary:Version}) |
weechat-devel-core (= ${binary:Version}), weechat-devel-plugins (= ${binary:Version})
Conflicts: weechat-dbg
Description: Fast, light and extensible chat client - debugging symbols
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package contains gdb debugging symbols for the WeeChat packages.
+7 -7
View File
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
BUILDDIR = builddir
$(BUILDDIR)/Makefile:
@@ -7,6 +9,7 @@ $(BUILDDIR)/Makefile:
cd $(BUILDDIR) && \
cmake .. \
-DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
-DLIBDIR=/usr/lib/${DEB_HOST_MULTIARCH} \
-DENABLE_DOC:BOOL=ON \
-DENABLE_MAN:BOOL=ON \
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
@@ -15,19 +18,16 @@ $(BUILDDIR)/Makefile:
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
override_dh_auto_build: $(BUILDDIR)/Makefile
dh_auto_build
override_dh_auto_configure:
# the package also has autotools buildsys and
# debhelper try to use it but that's not needed
echo
override_dh_auto_build: $(BUILDDIR)/Makefile
dh_auto_build
override_dh_installchangelogs:
dh_installchangelogs ChangeLog.adoc
override_dh_strip:
dh_strip --dbg-package=weechat-devel-dbg
%:
dh $@ --parallel --builddirectory=$(BUILDDIR)
dh $@ --builddirectory=$(BUILDDIR) --without autoreconf
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-guile.dirs
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-guile.install
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-headless.dirs
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-headless.install
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-lua.dirs
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-lua.install
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-perl.dirs
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-perl.install
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-php.dirs
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-php.install
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-python.dirs
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-python.install
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-ruby.dirs
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-ruby.install
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-tcl.dirs
+1
View File
@@ -0,0 +1 @@
../debian-stable/weechat-tcl.install
-1
View File
@@ -1 +0,0 @@
../debian-stable/weechat.xpm
+397
View File
@@ -0,0 +1,397 @@
/* XPM */
static char * C:\temp\weechat_xpm[] = {
"32 32 362 2",
" c None",
". c #117529",
"+ c #0E7527",
"@ c #0A7424",
"# c #057323",
"$ c #016F20",
"% c #5DAA58",
"& c #5DB059",
"* c #5AB158",
"= c #57B157",
"- c #54AF55",
"; c #4FAE53",
"> c #4BAE52",
", c #48AD50",
"' c #44AC4E",
") c #3FAB4C",
"! c #3BA849",
"~ c #36A646",
"{ c #30A343",
"] c #2CA040",
"^ c #279D3D",
"/ c #229A3A",
"( c #1D9837",
"_ c #189534",
": c #129232",
"< c #0D8F2E",
"[ c #088D2C",
"} c #03691F",
"| c #64AB5B",
"1 c #6FC468",
"2 c #6AC265",
"3 c #66BF62",
"4 c #62BC5F",
"5 c #5DBA5D",
"6 c #58B85A",
"7 c #54B557",
"8 c #4FB254",
"9 c #4AB052",
"0 c #45AD4F",
"a c #40AB4C",
"b c #3CA849",
"c c #37A647",
"d c #32A344",
"e c #2DA041",
"f c #289D3D",
"g c #239A3B",
"h c #1E9838",
"i c #199535",
"j c #139232",
"k c #0F8F2F",
"l c #098B2B",
"m c #035018",
"n c #68AE5E",
"o c #76C96B",
"p c #70C568",
"q c #6CC365",
"r c #67C062",
"s c #62BD60",
"t c #5FBC5E",
"u c #5ABA5B",
"v c #55B859",
"w c #51B656",
"x c #4CB354",
"y c #47B051",
"z c #42AD4E",
"A c #3EAA4B",
"B c #38A647",
"C c #32A243",
"D c #2E9D40",
"E c #28993C",
"F c #239439",
"G c #1E9036",
"H c #188C32",
"I c #13882F",
"J c #0F842C",
"K c #0A7C27",
"L c #629F57",
"M c #7BCC6F",
"N c #76C86B",
"O c #71C569",
"P c #6DC366",
"Q c #69C163",
"R c #65C162",
"S c #57AC56",
"T c #3E803F",
"U c #377539",
"V c #316E34",
"W c #2C6830",
"X c #28602C",
"Y c #225928",
"Z c #1D5124",
"` c #1A4E22",
" . c #184C20",
".. c #81CF72",
"+. c #7CCB6E",
"@. c #77C86C",
"#. c #72C76A",
"$. c #6EC467",
"%. c #69C164",
"&. c #549F51",
"*. c #71B062",
"=. c #84D274",
"-. c #7FCF71",
";. c #7ACD6F",
">. c #76CB6C",
",. c #72C869",
"'. c #6CC465",
"). c #1F391D",
"!. c #558DC1",
"~. c #568EC3",
"{. c #568FC5",
"]. c #5790C7",
"^. c #5892C8",
"/. c #538ABE",
"(. c #5B98D0",
"_. c #5C99D2",
":. c #5E9CD5",
"<. c #609FDB",
"[. c #61A1DC",
"}. c #497440",
"|. c #3F6638",
"1. c #355930",
"2. c #2C4A28",
"3. c #213B1F",
"4. c #609ED9",
"5. c #63A4E2",
"6. c #63A4E1",
"7. c #5B96CE",
"8. c #64A6E4",
"9. c #4878A4",
"0. c #426E96",
"a. c #4F83B3",
"b. c #4E82B2",
"c. c #62A3DF",
"d. c #64A6E3",
"e. c #274159",
"f. c #44729C",
"g. c #5B97CF",
"h. c #5B97D0",
"i. c #5C98D0",
"j. c #5C98D1",
"k. c #5B97CE",
"l. c #64A5E2",
"m. c #36597B",
"n. c #64A4E2",
"o. c #5A95CD",
"p. c #5993CB",
"q. c #64A5E3",
"r. c #45729C",
"s. c #63A4E3",
"t. c #62A2E1",
"u. c #62A1E1",
"v. c #61A1E1",
"w. c #609FE0",
"x. c #5993D4",
"y. c #5D9BDF",
"z. c #5D99DF",
"A. c #5C99DF",
"B. c #5B98DE",
"C. c #4878B1",
"D. c #63A3E5",
"E. c #609EE0",
"F. c #5F9DE0",
"G. c #5F9DDF",
"H. c #5E9BDF",
"I. c #5C99DC",
"J. c #2B4666",
"K. c #4D7FBD",
"L. c #5A96DF",
"M. c #5A94DE",
"N. c #5993DD",
"O. c #5992DD",
"P. c #5993E1",
"Q. c #4069A0",
"R. c #365A8E",
"S. c #568EDF",
"T. c #548ADB",
"U. c #5489DB",
"V. c #5389DB",
"W. c #5287DA",
"X. c #2E4D7C",
"Y. c #4C7DC1",
"Z. c #5891DE",
"`. c #568FDC",
" + c #568EDC",
".+ c #568DDC",
"++ c #558CDC",
"@+ c #4F82CD",
"#+ c #4D7ECD",
"$+ c #5185DA",
"%+ c #5085DA",
"&+ c #5084DA",
"*+ c #4F82D9",
"=+ c #5185DF",
"-+ c #121E31",
";+ c #4370C2",
">+ c #4C7CD9",
",+ c #4A7BD7",
"'+ c #4A7AD7",
")+ c #4978D7",
"!+ c #4877D6",
"~+ c #4E82D9",
"{+ c #4E81D9",
"]+ c #4E80D9",
"^+ c #4E7FD9",
"/+ c #4D7ED8",
"(+ c #4C7DDA",
"_+ c #395FA4",
":+ c #4775D2",
"<+ c #4876D6",
"[+ c #4775D6",
"}+ c #4773D6",
"|+ c #4674D7",
"1+ c #3B62B7",
"2+ c #436ED6",
"3+ c #416CD4",
"4+ c #416AD3",
"5+ c #4069D3",
"6+ c #406AD6",
"7+ c #304FA2",
"8+ c #375BA8",
"9+ c #4673D5",
"0+ c #4572D5",
"a+ c #4571D5",
"b+ c #4470D5",
"c+ c #436FD4",
"d+ c #4470D9",
"e+ c #14213E",
"f+ c #3150A3",
"g+ c #4069D4",
"h+ c #3E67D3",
"i+ c #3E66D2",
"j+ c #3D64D2",
"k+ c #3D64D3",
"l+ c #243C7F",
"m+ c #2F4DAC",
"n+ c #395ED1",
"o+ c #385CD0",
"p+ c #375AD0",
"q+ c #365ACF",
"r+ c #375AD5",
"s+ c #111C41",
"t+ c #3558B8",
"u+ c #3C63D2",
"v+ c #3C62D2",
"w+ c #3B61D1",
"x+ c #3A60D2",
"y+ c #3658C2",
"z+ c #3455C4",
"A+ c #3659CF",
"B+ c #3557CF",
"C+ c #3556CF",
"D+ c #3354CF",
"E+ c #3151C5",
"F+ c #101A3E",
"G+ c #2C49C0",
"H+ c #2F4DCC",
"I+ c #2E4CCC",
"J+ c #2D4ACB",
"K+ c #2D49CB",
"L+ c #2741B7",
"M+ c #3353C6",
"N+ c #3455CF",
"O+ c #3454CE",
"P+ c #3353CE",
"Q+ c #3252CD",
"R+ c #3151CE",
"S+ c #304FCC",
"T+ c #162467",
"U+ c #1F318C",
"V+ c #2E4BCF",
"W+ c #2C47CB",
"X+ c #2B47CA",
"Y+ c #2A45CA",
"Z+ c #2943C8",
"`+ c #2841C5",
" @ c #2942CB",
".@ c #2841CB",
"+@ c #273EC9",
"@@ c #263DC9",
"#@ c #253BC8",
"$@ c #243AC7",
"%@ c #2339C9",
"&@ c #172583",
"*@ c #1D2F86",
"=@ c #2D49CE",
"-@ c #2B46CB",
";@ c #2B46CA",
">@ c #2A44CA",
",@ c #2943CA",
"'@ c #2841C9",
")@ c #2740C9",
"!@ c #2840CC",
"~@ c #273FCA",
"{@ c #263DCA",
"]@ c #243AC8",
"^@ c #2339C7",
"/@ c #2338C7",
"(@ c #2237C7",
"_@ c #2135C6",
":@ c #2034C6",
"<@ c #2033C6",
"[@ c #1E31C5",
"}@ c #1E30C5",
"|@ c #1D2EC4",
"1@ c #1C2DC4",
"2@ c #1B2CC4",
"3@ c #1A2AC3",
"4@ c #1928C0",
"5@ c #0C1258",
"6@ c #1B2C97",
"7@ c #233AC9",
"8@ c #2238C7",
"9@ c #2136C7",
"0@ c #1F32C6",
"a@ c #1D2FC5",
"b@ c #1C2EC5",
"c@ c #1B2BC4",
"d@ c #1A2AC4",
"e@ c #1929C3",
"f@ c #1827C3",
"g@ c #1826C3",
"h@ c #1724C2",
"i@ c #1623C2",
"j@ c #1522C1",
"k@ c #1420C2",
"l@ c #141FC2",
"m@ c #121EC1",
"n@ c #111CC2",
"o@ c #111AC1",
"p@ c #0E17B2",
"q@ c #1A2AC1",
"r@ c #1929C4",
"s@ c #1927C4",
"t@ c #1724C3",
"u@ c #1623C3",
"v@ c #1522C4",
"w@ c #1520C3",
"x@ c #131FC3",
"y@ c #131DC3",
"z@ c #111CC0",
"A@ c #111ABB",
"B@ c #0F19B6",
"C@ c #0F17B1",
"D@ c #0D15AD",
"E@ c #0D14A9",
"F@ c #0C13A7",
"G@ c #0B11A4",
"H@ c #0A1099",
"I@ c #080D8B",
"J@ c #070B7A",
"K@ c #060968",
"L@ c #0F179E",
"M@ c #0E16AA",
"N@ c #0E15AF",
"O@ c #0C13A9",
"P@ c #0C129C",
"Q@ c #0A108F",
"R@ c #090E80",
"S@ c #080C72",
"T@ c #070B63",
"U@ c #060957",
" ",
" ",
" ",
" ",
" ",
" . + @ # $ ",
" % & * = - ; > , ' ) ! ~ { ] ^ / ( _ : < [ } ",
" | 1 2 3 4 5 6 7 8 9 0 a b c d e f g h i j k l m ",
" n o p q r s t u v w x y z A B C D E F G H I J K ",
" L M N O P Q R S T U V W X Y Z ` . ",
" ..+.@.#.$.%.&. ",
" *.=.-.;.>.,.'.). !.~.{.].^. /.(._.:.<.[. ",
" }.|.1.2.3. 4.5.6.6.6.7. [.6.6.6.8.9. ",
" 0.8.6.6.6.6.a. b.c.6.6.6.d.e. ",
" f.g.h.i.j._.{. k.l.6.6.6.l.m. !.n.6.6.6.o. ",
" p.l.6.6.6.q.r. s.t.t.u.v.w. x.y.z.A.B.C. ",
" D.E.F.G.H.I.J. K.L.M.N.O.P.Q. R.S.T.U.V.W.X. ",
" Y.Z.`. +.+++@+ #+$+%+&+*+=+-+ ;+>+,+'+)+!+ ",
" ~+{+]+^+/+(+_+ :+<+[+}+|+1+ 2+3+4+5+6+7+ ",
" 8+9+0+a+b+c+d+e+ f+g+h+i+j+k+l+ m+n+o+p+q+r+s+ ",
" t+j+u+v+w+x+y+ z+A+B+C+D+E+F+ G+H+I+J+K+L+ ",
" M+N+O+P+Q+R+S+T+ U+V+K+W+X+Y+Z+`+ @.@+@@@#@$@%@&@ ",
"*@=@-@;@>@,@'@)@!@~@{@]@^@/@(@_@:@<@[@}@|@1@2@3@4@5@ ",
"6@7@8@9@_@:@0@[@a@b@1@c@d@e@f@g@h@i@j@k@l@m@n@o@p@ ",
" q@r@s@g@t@u@v@w@x@y@z@A@B@C@D@E@F@G@H@I@J@K@ ",
" L@M@N@O@P@Q@R@S@T@U@ ",
" ",
" ",
" ",
" ",
" ",
" "};
+15 -2
View File
@@ -1,9 +1,22 @@
weechat (2.1-1) unstable; urgency=medium
This release introduces a new headless client and a new PHP plugin for
scripting (respectively weechat-headless and weechat-php binary
packages).
To avoid at least unnecessary dependencies, each plugin has its own
separate binary package:
weechat-{perl,python,ruby,lua,guile,javascript,php}
Depending on your needs about scripting with weechat you should consider
to install the missing packages.
-- Emmanuel Bouthenot <kolter@debian.org> Wed, 21 Mar 2018 07:53:40 +0100
weechat (1.1.1-1) unstable; urgency=medium
Since version 1.1, there is a new format for regexp replacement in
triggers. This format is incompatible with version 1.0. The existing
triggers will not be automatically updated.
See http://www.weechat.org/files/releasenotes/ReleaseNotes-1.1.html
See https://weechat.org/files/releasenotes/ReleaseNotes-1.1.html
-- Emmanuel Bouthenot <kolter@debian.org> Sun, 25 Jan 2015 20:41:50 +0100
@@ -13,7 +26,7 @@ weechat (0.3.1-1) unstable; urgency=low
are stronger checks while connecting with SSL. By default, if a connection
is not fully trusted it will fail.
You can find more information on how to handle this new behaviour here:
http://dev.weechat.org/post/2009/12/01/SSL-certificates
https://blog.weechat.org/post/2009/12/01/SSL-certificates
-- Emmanuel Bouthenot <kolter@debian.org> Mon, 25 Jan 2010 12:35:11 +0100
+155
View File
@@ -1,3 +1,158 @@
weechat (2.9-1) unstable; urgency=medium
* New upstream release
* Refresh ASCII Doctor options patch
* Switch debhelper compatibility to 13 and add debian/not-installed
accordingly
-- Emmanuel Bouthenot <kolter@debian.org> Sat, 15 Aug 2020 20:31:09 +0000
weechat (2.8-1) unstable; urgency=medium
* New upstream release
- Fix FTBFS with ruby 2.7 (Closes: #954701, #954789)
- Remove patch to fix compilation error while testing iconv support
- Remove patch to fix a crash when loading script with PHP 7.4
-- Emmanuel Bouthenot <kolter@debian.org> Sat, 04 Apr 2020 09:01:45 +0000
weechat (2.7.1-1) unstable; urgency=medium
* New upstream release
- fix CVE-2020-8955: possible remote DOS via malformed IRC messages
(Closes: #951289)
- rebuilt against python 3.8 (Closes: #953620)
* Remove Guile 2.2 support patch (merged upstream)
* Add a patch to fix compilation error while testing iconv support
* Add a patch to fix a crash when loading script with PHP 7.4
* Bump Standards-Version to 4.5.0
* Replace gem2deb build dependency by ruby-dev to facilitate
transitions to new versions of ruby (Closes: #951713)
* Set Rules-Requires-Root to no
* Switch debhelper compatibility to 12
-- Emmanuel Bouthenot <kolter@debian.org> Mon, 09 Mar 2020 14:59:31 +0000
weechat (2.6-2) unstable; urgency=medium
* Add a patch from upstream to support Guile 2.2 (Closes: #885235)
-- Emmanuel Bouthenot <kolter@debian.org> Fri, 11 Oct 2019 15:07:22 +0000
weechat (2.6-1) unstable; urgency=medium
* New upstream release
* Build only with Python3 (Closes: #938817)
* Bump Standards-Version to 4.4.0
* Build Lua plugin against Lua 5.3
-- Emmanuel Bouthenot <kolter@debian.org> Tue, 17 Sep 2019 13:30:32 +0000
weechat (2.4-1) unstable; urgency=medium
* New upstream release
-- Emmanuel Bouthenot <kolter@debian.org> Sun, 03 Mar 2019 19:29:13 +0000
weechat (2.3-1) unstable; urgency=medium
* New upstream release
* Bump Standards-Version to 4.3.0
* Switch debhelper compatibility to 12
-- Emmanuel Bouthenot <kolter@debian.org> Fri, 04 Jan 2019 16:06:44 +0000
weechat (2.2-1) unstable; urgency=medium
* New upstream release
* Remove upstream patch about localized manpages for weechat-headless
* Bump Standards-Version to 4.1.5
-- Emmanuel Bouthenot <kolter@debian.org> Wed, 19 Sep 2018 09:41:45 +0000
weechat (2.1-2) unstable; urgency=medium
* Disable build of javascript plugin to fix weechat autoremoval from
testing (RC bugs in libv8) (Closes: #894680)
* Add missing localized manpages for weechat-headless
* Fix debian/copyright Format URI
-- Emmanuel Bouthenot <kolter@debian.org> Tue, 03 Apr 2018 10:48:35 +0200
weechat (2.1-1) unstable; urgency=medium
* New upstream release (Closes: #887114)
- Enable build against Ruby 2.5 (Closes: #892072)
- New PHP plugin (update build dependencies accordingly)
* Split up the package so that plugins are now separated in multiple
binary packages to avoid unnecessary dependencies (Closes: #745266)
* Switch debhelper compatibility to 11
* Bump Standards-Version to 4.1.3
* Add debian/upstream/metadata (DEP 12)
* Rewrite debian/copyright to be more accurate
* Update Vcs-Git and Vcs-Browser with new repository on salsa.debian.org
* Update debian/NEWS to introduces weechat-headless and the package split
-- Emmanuel Bouthenot <kolter@debian.org> Wed, 21 Mar 2018 07:46:21 +0100
weechat (1.9.1-1) unstable; urgency=medium
* New upstream release
- CVE-2017-14727 - Include a patch which fix a possible crash in logger
plugin (Closes: #876553)
* Disable build of javascript plugin to fix weechat autoremoval from
testing (RC bugs in libv8)
* Bump Standards-Version to 4.1.0
-- Emmanuel Bouthenot <kolter@debian.org> Sat, 23 Sep 2017 21:47:32 +0200
weechat (1.9-1) unstable; urgency=medium
* New upstream release
* Remove useless weechat-dbg binary package
* Bump Standards-Version to 4.0.0
-- Emmanuel Bouthenot <kolter@debian.org> Tue, 04 Jul 2017 13:29:55 +0200
weechat (1.8-1) unstable; urgency=medium
* New upstream release
* Remove usless patches (backports from upstream)
-- Emmanuel Bouthenot <kolter@debian.org> Tue, 16 May 2017 14:53:07 +0200
weechat (1.7-3) unstable; urgency=medium
* Add a patch to fix CVE-2017-8073 which allows a remote crash by
sending a filename via DCC to the IRC plugin (Closes: #861121)
-- Emmanuel Bouthenot <kolter@debian.org> Tue, 25 Apr 2017 10:46:10 +0200
weechat (1.7-2) unstable; urgency=medium
* Add a patch to fix slowness after terminal resize (Closes: #855079)
-- Emmanuel Bouthenot <kolter@debian.org> Fri, 24 Feb 2017 16:43:09 +0100
weechat (1.7-1) unstable; urgency=medium
* New upstream release
* Remove lintian-override for weechat-curses manpage
* Add a lintian-override about no hardening flags on fifo.so plugin
(false positive)
-- Emmanuel Bouthenot <kolter@debian.org> Thu, 09 Feb 2017 20:15:48 +0100
weechat (1.6-1) unstable; urgency=medium
* New upstream release
* Add a patch to build html documentation without requiring data
(javascript, fonts) on external websites (potential privacy breach)
* Documentation is now built with asciidoctor (adjust dependencies
accordingly)
-- Emmanuel Bouthenot <kolter@debian.org> Thu, 06 Oct 2016 13:55:35 +0200
weechat (1.5-1) unstable; urgency=medium
* New upstream release
+1 -1
View File
@@ -1 +1 @@
9
12
+154 -40
View File
@@ -4,32 +4,34 @@ Priority: optional
Maintainer: Emmanuel Bouthenot <kolter@debian.org>
Build-Depends:
asciidoctor (>= 1.5.4),
debhelper (>= 9),
dh-exec,
debhelper (>= 12),
cmake, pkg-config,
libncursesw5-dev,
gem2deb,
libperl-dev,
python-dev,
python3-dev,
libaspell-dev,
liblua5.1-0-dev,
liblua5.3-dev,
tcl8.6-dev,
guile-2.0-dev,
libv8-dev [amd64 armel armhf hurd-i386 i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel],
guile-2.2-dev,
php-dev, libphp-embed, libargon2-0-dev, libsodium-dev,
libxml2-dev,
libcurl4-gnutls-dev,
libgcrypt20-dev,
libgnutls28-dev,
zlib1g-dev
Standards-Version: 3.9.8
Standards-Version: 4.4.0
Homepage: https://weechat.org/
Vcs-Git: https://anonscm.debian.org/git/users/kolter/weechat.git
Vcs-Browser: https://anonscm.debian.org/git/users/kolter/weechat.git
Vcs-Git: https://salsa.debian.org/kolter/weechat.git
Vcs-Browser: https://salsa.debian.org/kolter/weechat
Package: weechat
Architecture: all
Depends: ${misc:Depends}, weechat-curses (>= ${source:Version})
Depends:
${misc:Depends},
weechat-curses (>= ${source:Version}) | weechat-headless (>= ${source:Version})
Suggests: weechat-doc (= ${source:Version})
Description: Fast, light and extensible chat client
Description: Fast, light and extensible chat client (metapackage)
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
It is customizable and extensible with plugins/scripts, and includes:
@@ -43,18 +45,20 @@ Description: Fast, light and extensible chat client
- 256 colors support
- incremental text search
- dynamic filtering of buffer content
- Perl, Python, Ruby, Lua, Tcl, Scheme and Javascript scripting
- scripts manager
- Perl, Python, Ruby, Lua, Tcl, Scheme and PHP scripting
- script manager
- spell checking
- highly customizable and extensible
- and much more!
Package: weechat-curses
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}, weechat-core (= ${binary:Version})
Conflicts: weechat-common
Breaks: weechat-scripts (<= 20090221-1)
Recommends: weechat-plugins (= ${binary:Version})
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-core (= ${binary:Version})
Recommends:
weechat-plugins (= ${binary:Version})
Suggests: weechat-doc (= ${source:Version})
Description: Fast, light and extensible chat client - console client
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
@@ -70,30 +74,68 @@ Description: Fast, light and extensible chat client - console client
- 256 colors support
- incremental text search
- dynamic filtering of buffer content
- Perl, Python, Ruby, Lua, Tcl, Scheme and Javascript scripting
- scripts manager
- Perl, Python, Ruby, Lua, Tcl, Scheme and PHP scripting
- script manager
- spell checking
- highly customizable and extensible
- and much more!
.
This package provides the console client (ncurses).
Package: weechat-headless
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-core (= ${binary:Version})
Recommends: weechat-plugins (= ${binary:Version})
Suggests: weechat-doc (= ${source:Version})
Description: Fast, light and extensible chat client - headless client
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
It is customizable and extensible with plugins/scripts, and includes:
- support of IRC protocol (native)
- support of XMPP/Jabber protocol (with additional script)
- nicklist
- smart hotlist
- horizontal and vertical split
- double charset support (decode/encode)
- FIFO pipe for remote control
- 256 colors support
- incremental text search
- dynamic filtering of buffer content
- Perl, Python, Ruby, Lua, Tcl, Scheme and PHP scripting
- script manager
- spell checking
- highly customizable and extensible
- and much more!
.
This package provides the headless client.
Package: weechat-core
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Replaces: weechat-common, weechat-plugins (<< 0.3.0)
Depends:
${misc:Depends},
${shlibs:Depends}
Suggests: weechat-doc (= ${source:Version})
Description: Fast, light and extensible chat client - core files
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides core plugins and locales files for WeeChat. It
currently ships the following plugins: alias, xfer, irc, charset and
logger. It is useless without weechat-curses.
currently ships the following plugins: alias, buflist, charset, fset, irc,
logger and xfer. It is useless without weechat-curses or weechat-headless.
Package: weechat-plugins
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}, weechat-curses (= ${binary:Version})
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-curses (= ${binary:Version}) | weechat-headless (= ${binary:Version})
Recommends:
weechat-perl,
weechat-python,
weechat-ruby
Suggests: weechat-scripts (>> 20090221-1)
Description: Fast, light and extensible chat client - plugins
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
@@ -101,13 +143,97 @@ Description: Fast, light and extensible chat client - plugins
.
This package provides some plugins to enhance WeeChat. It currently
ships the following plugins:
- Perl, Python, Ruby, Lua, Tcl, Scheme and Javascript scripting
- scripts manager
- script manager
- Spell checking (thanks to aspell)
- FIFO pipe for remote control
- IRC proxy
- Relay (IRC proxy and WeeChat protocol)
- Trigger
Package: weechat-python
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-curses (= ${binary:Version}) | weechat-headless (= ${binary:Version})
Description: Fast, light and extensible chat client - Python 3 plugin
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides the Python 3 scripting API plugin.
Package: weechat-perl
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-curses (= ${binary:Version}) | weechat-headless (= ${binary:Version})
Description: Fast, light and extensible chat client - Perl plugin
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides the Perl scripting API plugin.
Package: weechat-ruby
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-curses (= ${binary:Version}) | weechat-headless (= ${binary:Version})
Description: Fast, light and extensible chat client - Ruby plugin
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides the Ruby scripting API plugin.
Package: weechat-lua
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-curses (= ${binary:Version}) | weechat-headless (= ${binary:Version})
Description: Fast, light and extensible chat client - Lua plugin
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides the Lua scripting API plugin.
Package: weechat-tcl
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-curses (= ${binary:Version}) | weechat-headless (= ${binary:Version})
Description: Fast, light and extensible chat client - Tcl plugin
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides the Tcl scripting API plugin.
Package: weechat-guile
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-curses (= ${binary:Version}) | weechat-headless (= ${binary:Version})
Description: Fast, light and extensible chat client - Guile plugin
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides the Guile scripting API plugin.
Package: weechat-php
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
weechat-curses (= ${binary:Version}) | weechat-headless (= ${binary:Version}),
libphp-embed
Description: Fast, light and extensible chat client - PHP plugin
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package provides the PHP scripting API plugin.
Package: weechat-doc
Section: doc
Architecture: all
@@ -120,22 +246,10 @@ Description: Fast, light and extensible chat client - documentation
Package: weechat-dev
Section: devel
Architecture: all
Architecture: any
Depends: ${misc:Depends}
Description: Fast, light and extensible chat client - development headers
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package contains the headers needed to build plugins.
Package: weechat-dbg
Section: debug
Priority: extra
Architecture: any
Depends: ${misc:Depends}, weechat-curses (= ${binary:Version}) |
weechat-core (= ${binary:Version}), weechat-plugins (= ${binary:Version})
Description: Fast, light and extensible chat client - debugging symbols
WeeChat (Wee Enhanced Environment for Chat) is a fast and light chat client
for many operating systems. Everything can be done with a keyboard.
.
This package contains gdb debugging symbols for the WeeChat packages.
+164 -6
View File
@@ -1,17 +1,147 @@
Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=174
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: weechat
Upstream-Contact: Sébastien Helleu <flashcode@flashtux.org>
Source: https://weechat.org/
Files: *
Copyright: 2003-2017, Sébastien Helleu <flashcode@flashtux.org>
2005-2009, Emmanuel Bouthenot <kolter@openics.org>
2008-2009, Dmitry Kobylin <fnfal@academ.tsc.ru>
Copyright: 2003-2020, Sébastien Helleu <flashcode@flashtux.org>
License: GPL-3+
Files: src/core/wee-command.c
src/core/wee-command.h
Copyright: 2005-2006, Emmanuel Bouthenot <kolter@openics.org>
License: GPL-3+
Files: src/core/wee-config-file.c
src/core/wee-config-file.h
src/core/wee-config.c
src/core/wee-config.h
Copyright: 2005-2006, Emmanuel Bouthenot <kolter@openics.org>
License: GPL-3+
Files: src/core/hook/wee-hook-connect.c
Copyright: 2012, Simon Arlott
License: GPL-3+
Files: src/core/hook/wee-hook-connect.h
Copyright: 2012, Simon Arlott
License: GPL-3+
Files: src/gui/gui-history.c
Copyright: 2005, Emmanuel Bouthenot <kolter@openics.org>
License: GPL-3+
Files: src/core/wee-completion.c
src/core/wee-log.c
src/core/wee-utf8.c
src/core/weechat.h
src/plugins/spell/spell-config.c
src/plugins/spell/spell-config.h
src/plugins/spell/spell-speller.c
src/plugins/spell/spell-speller.h
src/plugins/spell/spell.h
src/plugins/irc/irc-command.c
src/plugins/irc/irc.h
Copyright: 2006, Emmanuel Bouthenot <kolter@openics.org>
License: GPL-3+
Files: src/core/wee-network.c
Copyright: 2005-2010, Emmanuel Bouthenot <kolter@openics.org>
2010, Gu1ll4um3r0m41n <aeroxteam@gmail.com>
2012, Simon Arlott
License: GPL-3+
Files: src/plugins/spell/spell-bar-item.c
src/plugins/spell/spell-bar-item.h
Copyright: 2012, Nils Görs <weechatter@arcor.de>
License: GPL-3+
Files: src/plugins/spell/spell.c
Copyright: 2006, Emmanuel Bouthenot <kolter@openics.org>
2012, Nils Görs <weechatter@arcor.de>
License: GPL-3+
Files: src/plugins/guile/weechat-guile-api.c
src/plugins/irc/irc-server.h
src/plugins/plugin-script-api.c
src/plugins/plugin-script-api.h
Copyright: 2012, Simon Arlott
License: GPL-3+
Files: src/plugins/irc/irc-protocol.c
Copyright: 2006, Emmanuel Bouthenot <kolter@openics.org>
2014, Shawn Smith <ShawnSmith0828@gmail.com>
License: GPL-3+
Files: src/plugins/irc/irc-server.c
Copyright: 2005-2010, Emmanuel Bouthenot <kolter@openics.org>
2012, Simon Arlott
License: GPL-3+
Files: src/plugins/lua/weechat-lua-api.c
Copyright: 2006-2007, Emmanuel Bouthenot <kolter@openics.org>
2012, Simon Arlott
License: GPL-3+
Files: src/plugins/lua/weechat-lua-api.h
src/plugins/lua/weechat-lua.c
src/plugins/lua/weechat-lua.h
Copyright: 2006-2007, Emmanuel Bouthenot <kolter@openics.org>
License: GPL-3+
Files: src/plugins/perl/weechat-perl-api.c
Copyright: 2005-2008, Emmanuel Bouthenot <kolter@openics.org>
2012, Simon Arlott
License: GPL-3+
Files: src/plugins/perl/weechat-perl.c
Copyright: 2005-2008, Emmanuel Bouthenot <kolter@openics.org>
License: GPL-3+
Files: src/plugins/php/weechat-php-api.c
src/plugins/php/weechat-php-api.h
src/plugins/php/weechat-php.c
src/plugins/php/weechat-php.h
Copyright: 2006-2017, Adam Saponara <as@php.net>
License: GPL-3-with-openssl-exception
Files: src/plugins/python/weechat-python-api.c
Copyright: 2005-2007, Emmanuel Bouthenot <kolter@openics.org>
2012, Simon Arlott
License: GPL-3+
Files: src/plugins/python/weechat-python-api.h
src/plugins/ruby/weechat-ruby-api.h
src/plugins/ruby/weechat-ruby.c
src/plugins/ruby/weechat-ruby.h
Copyright: 2005-2007, Emmanuel Bouthenot <kolter@openics.org>
License: GPL-3+
Files: src/plugins/python/weechat-python.c
src/plugins/ruby/weechat-ruby-api.c
Copyright: 2005-2007, Emmanuel Bouthenot <kolter@openics.org>
2012, Simon Arlott
License: GPL-3+
Files: src/plugins/python/weechat-python.h
Copyright: 2005-2007, Emmanuel Bouthenot <kolter@openics.org>
License: GPL-3+
Files: src/plugins/tcl/weechat-tcl-api.c
Copyright: 2008-2010, Dmitry Kobylin <fnfal@academ.tsc.ru>
2008, Julien Louis <ptitlouis@sysif.net>
2012, Simon Arlott
License: GPL-3+
Files: src/plugins/tcl/weechat-tcl-api.h
src/plugins/tcl/weechat-tcl.c
src/plugins/tcl/weechat-tcl.h
Copyright: 2008-2010, Dmitry Kobylin <fnfal@academ.tsc.ru>
License: GPL-3+
Files: debian/*
Copyright: 2005-2008, Julien Louis <ptitlouis@sysif.net>
2008-2016, Emmanuel Bouthenot <kolter@openics.org>
2008-2018, Emmanuel Bouthenot <kolter@openics.org>
License: GPL-3+
License: GPL-3+
@@ -26,7 +156,35 @@ License: GPL-3+
General Public License for more details.
.
You should have received a copy of the GNU General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
with this program. If not, see <https://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General Public License,
Version 3 can be found in the file /usr/share/common-licenses/GPL-3
License: GPL-3-with-openssl-exception
WeeChat is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
.
WeeChat is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
.
You should have received a copy of the GNU General Public License along
with this program. If not, see <https://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General Public License,
Version 3 can be found in the file /usr/share/common-licenses/GPL-3
.
Additional permission under GNU GPL version 3 section 7:
.
If you modify the Program, or any covered work, by linking or
combining it with the OpenSSL project's OpenSSL library (or a
modified version of that library), containing parts covered by the
terms of the OpenSSL or SSLeay licenses, the licensors of the Program
grant you additional permission to convey the resulting work.
Corresponding Source for a non-source form of such a combination
shall include the source code for the parts of OpenSSL used as well
as that of the covered work.
+7 -7
View File
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
BUILDDIR = builddir
$(BUILDDIR)/Makefile:
@@ -7,6 +9,7 @@ $(BUILDDIR)/Makefile:
cd $(BUILDDIR) && \
cmake .. \
-DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
-DLIBDIR=/usr/lib/${DEB_HOST_MULTIARCH} \
-DENABLE_DOC:BOOL=ON \
-DENABLE_MAN:BOOL=ON \
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
@@ -15,19 +18,16 @@ $(BUILDDIR)/Makefile:
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
override_dh_auto_build: $(BUILDDIR)/Makefile
dh_auto_build
override_dh_auto_configure:
# the package also has autotools buildsys and
# debhelper try to use it but that's not needed
echo
override_dh_auto_build: $(BUILDDIR)/Makefile
dh_auto_build
override_dh_installchangelogs:
dh_installchangelogs ChangeLog.adoc
override_dh_strip:
dh_strip --dbg-package=weechat-dbg
%:
dh $@ --parallel --builddirectory=$(BUILDDIR)
dh $@ --builddirectory=$(BUILDDIR) --without autoreconf
+7 -5
View File
@@ -1,6 +1,8 @@
usr/share/locale/
usr/lib/weechat/plugins/alias.so
usr/lib/weechat/plugins/xfer.so
usr/lib/weechat/plugins/irc.so
usr/lib/weechat/plugins/charset.so
usr/lib/weechat/plugins/logger.so
usr/lib/*/weechat/plugins/alias.so
usr/lib/*/weechat/plugins/buflist.so
usr/lib/*/weechat/plugins/charset.so
usr/lib/*/weechat/plugins/fset.so
usr/lib/*/weechat/plugins/irc.so
usr/lib/*/weechat/plugins/logger.so
usr/lib/*/weechat/plugins/xfer.so
+1
View File
@@ -1,5 +1,6 @@
usr/bin/weechat usr/bin/weechat-curses
usr/share/man/man1/weechat.1.gz usr/share/man/man1/weechat-curses.1.gz
usr/share/man/cs/man1/weechat.1.gz usr/share/man/cs/man1/weechat-curses.1.gz
usr/share/man/de/man1/weechat.1.gz usr/share/man/de/man1/weechat-curses.1.gz
usr/share/man/fr/man1/weechat.1.gz usr/share/man/fr/man1/weechat-curses.1.gz
usr/share/man/it/man1/weechat.1.gz usr/share/man/it/man1/weechat-curses.1.gz
+1 -1
View File
@@ -1,2 +1,2 @@
usr/include/weechat/*
usr/lib/pkgconfig/*
usr/lib/*/pkgconfig/*
+1
View File
@@ -0,0 +1 @@
usr/lib
+1
View File
@@ -0,0 +1 @@
usr/lib/*/weechat/plugins/guile.so
+1
View File
@@ -0,0 +1 @@
usr/bin
+3
View File
@@ -0,0 +1,3 @@
usr/bin/weechat-headless
usr/share/man/man1/weechat-headless.1
usr/share/man/*/man1/weechat-headless.1
+1
View File
@@ -0,0 +1 @@
usr/lib
+1
View File
@@ -0,0 +1 @@
usr/lib/*/weechat/plugins/lua.so
+1
View File
@@ -0,0 +1 @@
usr/lib
+1
View File
@@ -0,0 +1 @@
usr/lib/*/weechat/plugins/perl.so
+1
View File
@@ -0,0 +1 @@
usr/lib
+1
View File
@@ -0,0 +1 @@
usr/lib/*/weechat/plugins/php.so
+6 -15
View File
@@ -1,15 +1,6 @@
#!/usr/bin/dh-exec
usr/lib/weechat/plugins/aspell.so
usr/lib/weechat/plugins/exec.so
usr/lib/weechat/plugins/fifo.so
usr/lib/weechat/plugins/guile.so
[amd64 armel armhf hurd-i386 i386 kfreebsd-amd64 kfreebsd-i386 mips mipsel] usr/lib/weechat/plugins/javascript.so
usr/lib/weechat/plugins/lua.so
usr/lib/weechat/plugins/perl.so
usr/lib/weechat/plugins/python.so
usr/lib/weechat/plugins/relay.so
usr/lib/weechat/plugins/ruby.so
usr/lib/weechat/plugins/script.so
usr/lib/weechat/plugins/tcl.so
usr/lib/weechat/plugins/trigger.so
usr/lib/*/weechat/plugins/exec.so
usr/lib/*/weechat/plugins/fifo.so
usr/lib/*/weechat/plugins/relay.so
usr/lib/*/weechat/plugins/script.so
usr/lib/*/weechat/plugins/spell.so
usr/lib/*/weechat/plugins/trigger.so
+1
View File
@@ -0,0 +1 @@
usr/lib
+1
View File
@@ -0,0 +1 @@
usr/lib/*/weechat/plugins/python.so
+1
View File
@@ -0,0 +1 @@
usr/lib
+1
View File
@@ -0,0 +1 @@
usr/lib/*/weechat/plugins/ruby.so
+1
View File
@@ -0,0 +1 @@
usr/lib
+1
View File
@@ -0,0 +1 @@
usr/lib/*/weechat/plugins/tcl.so
+5 -9
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org>
#
# This file is part of WeeChat, the extensible chat client.
@@ -15,17 +15,13 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
if(ENABLE_MAN OR ENABLE_DOC)
find_package(Asciidoctor)
if(ASCIIDOCTOR_FOUND)
set(ASCIIDOCTOR_ARGS -a experimental -a icons=font -a revnumber="${VERSION}" -a sectanchors -a source-highlighter=prettify)
set(ASCIIDOCTOR_ARGS -a experimental -a "prewrap!" -a icons=font -a revnumber="${VERSION}" -a sectanchors -a source-highlighter=prettify)
add_subdirectory(cs)
add_subdirectory(de)
add_subdirectory(en)
@@ -35,7 +31,7 @@ if(ENABLE_MAN OR ENABLE_DOC)
add_subdirectory(ja)
add_subdirectory(pl)
add_subdirectory(ru)
else()
message(SEND_ERROR "Asciidoctor not found")
endif()
endif()
+2 -2
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
#
# This file is part of WeeChat, the extensible chat client.
@@ -15,7 +15,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
SUBDIRS = . cs de en es fr it ja pl ru
+21 -6
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,22 +14,37 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
if(ENABLE_MAN)
# man page
# man page: weechat
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.cs.adoc
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.cs.adoc
${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.cs.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.cs.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/man.cs.adoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building weechat.1 (cs)"
)
add_custom_target(doc-man-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
add_custom_target(doc-man-weechat-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/cs/man1)
# man page: weechat-headless
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.cs.adoc
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.cs.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.cs.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/man.cs.adoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building weechat-headless.1 (cs)"
)
add_custom_target(doc-man-weechat-headless-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/cs/man1)
endif()
if(ENABLE_DOC)
@@ -45,6 +60,6 @@ if(ENABLE_DOC)
COMMENT "Building weechat_quickstart.cs.html"
)
add_custom_target(doc-quickstart-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.cs.html)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.cs.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.cs.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME})
endif()
+15 -11
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,7 +14,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
docdir = $(datadir)/doc/$(PACKAGE)
@@ -22,13 +22,14 @@ docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.cs.adoc \
cmdline_options.cs.adoc \
weechat-headless.1.cs.adoc \
weechat_quickstart.cs.adoc \
$(wildcard autogen/user/*.adoc) \
$(wildcard autogen/plugin_api/*.adoc)
includes/cmdline_options.cs.adoc \
includes/man.cs.adoc
if MAN
man_targets = weechat.1
man_targets = weechat.1 \
weechat-headless.1
man_install = install-man
man_uninstall = uninstall-man
endif
@@ -39,13 +40,15 @@ if DOC
endif
all-local: $(man_targets) $(doc_targets)
# man page
weechat.1: weechat.1.cs.adoc cmdline_options.cs.adoc
$(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/cs/weechat.1.cs.adoc
# man pages
weechat.1: weechat.1.cs.adoc includes/cmdline_options.cs.adoc includes/man.cs.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/cs/weechat.1.cs.adoc
weechat-headless.1: weechat-headless.1.cs.adoc includes/cmdline_options.cs.adoc includes/man.cs.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/cs/weechat-headless.1.cs.adoc
# quickstart
weechat_quickstart.cs.html: weechat_quickstart.cs.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) -a revision="$(VERSION)" -a sectanchors -a source-highlighter=prettify -o weechat_quickstart.cs.html $(abs_top_srcdir)/doc/cs/weechat_quickstart.cs.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.cs.html $(abs_top_srcdir)/doc/cs/weechat_quickstart.cs.adoc
# install man/docs
@@ -65,6 +68,7 @@ uninstall-hook: $(man_uninstall) $(doc_uninstall)
uninstall-man:
$(RM) $(DESTDIR)$(mandir)/cs/man1/weechat.1
$(RM) $(DESTDIR)$(mandir)/cs/man1/weechat-headless.1
-rmdir $(DESTDIR)$(mandir)/cs/man1
uninstall-doc:
@@ -74,4 +78,4 @@ uninstall-doc:
# clean
clean-local:
-rm -f weechat.1 weechat_*.html
-$(RM) weechat.1 weechat-headless.1 weechat_*.html
-38
View File
@@ -1,38 +0,0 @@
*-a*, *--no-connect*::
Zakaž automatické pripojení k serverům když WeeChat startuje.
*-c*, *--colors*::
Zobraz defaultní barvy v terminálu.
*-d*, *--dir* _<path>_::
Nastav cestu jako dovmský adresář pro WeeChat (použitou pro konfigurační
soubory, logy, uživatelské pluginy a skripty), výchozí hodnota je
"~/.weechat" (poznámka: složka bude vytvořena pokud nebude nalezena
Weechatem)
Pokud tato volba není zadána, použije se promněná prostředí WEECHAT_HOME
(pokud není prázdná)
*-h*, *--help*::
Zobrazí nápovědu.
*-l*, *--license*::
Zobrazí licenci WeeChatu.
*-p*, *--no-plugin*::
Vypne automatické nahrání pluginů.
*-r*, *--run-command* _<command>_::
Spustí příkaz(y) po startu (více přůkazů může být odděleno středníky).
*-s*, *--no-script*::
Vypni automatické nahrání scriptů.
*--upgrade*::
Aktualizuj WeeChat použitím souborů relací generovaných
příkazem `/upgrade -quit`.
*-v*, *--version*::
Zobraz verzi WeeChatu.
*plugin:option*::
Nastavení pluginů.
+89
View File
@@ -0,0 +1,89 @@
// tag::standard[]
*-a*, *--no-connect*::
Zakaž automatické pripojení k serverům když WeeChat startuje.
*-c*, *--colors*::
Zobraz defaultní barvy v terminálu.
// TRANSLATION MISSING
*--daemon*::
Run WeeChat in background, as a daemon (works only with the command
*weechat-headless*).
// TRANSLATION MISSING
*--stdout*::
Display log messages on standard output instead of writing them in log file
(works only with the command *weechat-headless*, not compatible with option
"--daemon").
*-d*, *--dir* _<path>_::
Nastav cestu jako dovmský adresář pro WeeChat (použitou pro konfigurační
soubory, logy, uživatelské pluginy a skripty), výchozí hodnota je
"~/.weechat" (poznámka: složka bude vytvořena pokud nebude nalezena
Weechatem)
Pokud tato volba není zadána, použije se promněná prostředí WEECHAT_HOME
(pokud není prázdná)
// TRANSLATION MISSING
*-t*, *--temp-dir*::
Create a temporary WeeChat home directory and delete it on exit
(incompatible with option "-d"). +
The name of the directory is automatically built by WeeChat, with this
template: "weechat_temp_XXXXXX" (where "XXXXXX" is random). It it created
in the first available directory in this list: environment variable "TMPDIR",
"/tmp" (may be different according to the operating system), environment
variable "HOME", current directory. +
The temporary home directory has permissions 0700 (only owner can read,
write and execute).
*-h*, *--help*::
Zobrazí nápovědu.
*-l*, *--license*::
Zobrazí licenci WeeChatu.
*-p*, *--no-plugin*::
Vypne automatické nahrání pluginů.
// TRANSLATION MISSING
*-P*, *--plugins* _<plugins>_::
Load only these plugins at startup (see /help weechat.plugin.autoload).
If this option is given, the option weechat.plugin.autoload is not used.
// TRANSLATION MISSING
*-r*, *--run-command* _<command>_::
Run command(s) after startup; many commands can be separated by semicolons,
this option can be given multiple times.
*-s*, *--no-script*::
Vypni automatické nahrání scriptů.
*--upgrade*::
Aktualizuj WeeChat použitím souborů relací generovaných
příkazem `/upgrade -quit`.
*-v*, *--version*::
Zobraz verzi WeeChatu.
*plugin:option*::
Nastavení pluginů.
// end::standard[]
// tag::debug[]
// TRANSLATION MISSING
*--no-dlclose*::
Do not call the function dlclose after plugins are unloaded.
This is useful with tools like Valgrind to display stack for unloaded
plugins.
// TRANSLATION MISSING
*--no-gnutls*::
Do not call the init and deinit functions of GnuTLS library.
This is useful with tools like Valgrind and electric-fence, to prevent
GnuTLS memory errors.
// TRANSLATION MISSING
*--no-gcrypt*::
Do not call the init and deinit functions of Gcrypt library.
This is useful with tools like Valgrind, to prevent Gcrypt memory errors.
// end::debug[]
+109
View File
@@ -0,0 +1,109 @@
// tag::plugin_options[]
Pro kompletní dokumentaci nastavení pluginů a jejich volby podívejte se na
https://weechat.org/doc[WeeChat user's guide].
S irc pluginem se můžete doččasně připojit na server s URL jako:
irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
K připojení na IRC kanál Weechatu pro podporu s přezdívkou "mynick":
irc://mynick@chat.freenode.net/#weechat
IPv6 adresa může být uzavřena do hranatých závorek k přidání portu, například:
irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
// end::plugin_options[]
// tag::files[]
$HOME/.weechat/weechat.conf::
hlavní konfigurační soubor WeeChatu
$HOME/.weechat/plugins.conf::
soubor konfigurace pluginů
$HOME/.weechat/sec.conf::
konfigurační soubor s chráněnými daty
$HOME/.weechat/alias.conf::
configurační soubor pro _alias_ plugin
$HOME/.weechat/buflist.conf::
konfigurační soubor pro _buflist_ plugin
$HOME/.weechat/charset.conf::
konfigurační soubor pro _charset_ plugin
$HOME/.weechat/exec.conf::
konfigurační soubor pro _exec_ plugin
$HOME/.weechat/fifo.conf::
konfigurační soubor pro _fifo_ plugin
$HOME/.weechat/fset.conf::
konfigurační soubor pro _fset_ plugin
$HOME/.weechat/guile.conf::
konfigurační soubor pro _guile_ plugin
$HOME/.weechat/irc.conf::
konfigurační soubor pro _irc_ plugin
$HOME/.weechat/javascript.conf::
konfigurační soubor pro _javascript_ plugin
$HOME/.weechat/logger.conf::
konfigurační soubor pro _logger_ plugin
$HOME/.weechat/lua.conf::
konfigurační soubor pro _lua_ plugin
$HOME/.weechat/perl.conf::
konfigurační soubor pro _perl_ plugin
$HOME/.weechat/php.conf::
konfigurační soubor pro _php_ plugin
$HOME/.weechat/python.conf::
konfigurační soubor pro _python_ plugin
$HOME/.weechat/relay.conf::
konfigurační soubor pro _relay_ plugin
$HOME/.weechat/ruby.conf::
konfigurační soubor pro _ruby_ plugin
$HOME/.weechat/script.conf::
konfigurační soubor pro _script_ plugin
$HOME/.weechat/spell.conf::
konfigurační soubor pro _spell_ plugin
$HOME/.weechat/tcl.conf::
konfigurační soubor pro _tcl_ plugin
$HOME/.weechat/trigger.conf::
konfigurační soubor pro _trigger_ plugin
$HOME/.weechat/xfer.conf::
konfigurační soubor pro _xfer_ plugin
$HOME/.weechat/weechat.log::
soubor záznamů WeeChatu
// end::files[]
// tag::copyright[]
WeeChat je napsán Sébastienem Helleu a přispěvovateli (kompletní seznam je v
souboru AUTHORS.adoc).
Copyright (C) 2003-2020 {author}
WeeChat is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
Prosím přečtěte si soubor COPYING pro více informací.
Web: https://weechat.org/
// end::copyright[]
+70
View File
@@ -0,0 +1,70 @@
// TRANSLATION MISSING
= weechat-headless(1)
:doctype: manpage
:author: Sébastien Helleu
:email: flashcode@flashtux.org
:lang: cs
// TRANSLATION MISSING
:man manual: WeeChat Manual
:man source: WeeChat {revnumber}
== JMÉNO
weechat-headless - the extensible chat client (headless version)
== PŘEHLED
// TRANSLATION MISSING
[verse]
*weechat-headless* [-a|--no-connect] [--daemon] [--stdout] [-d|--dir <path>] [-t|--temp-dir] [-p|--no-plugin] [-P|--plugins <plugins>] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [debug-option...] [plugin:option...]
*weechat-headless* [-c|--colors]
*weechat-headless* [-h|--help]
*weechat-headless* [-l|--license]
*weechat-headless* [-v|--version]
== POPIS
WeeChat (Wee Enhanced Environment for Chat) je svobodný chatovací klient.
Je lehký, plně konfigurovatelný a lehce rozšiřitelný pomocí pluginů a scriptů
v obvyklých sciptovacích jazycích.
// TRANSLATION MISSING
The command *weechat-headless* runs WeeChat in a headless mode (no interface).
It can be used for tests or to daemonize WeeChat with the option "--daemon".
== VOLBY
include::includes/cmdline_options.cs.adoc[tag=standard]
// TRANSLATION MISSING
== DEBUG OPTIONS
*WARNING:* these options are for debug purposes only, *DO NOT USE IN PRODUCTION!*
include::includes/cmdline_options.cs.adoc[tag=debug]
== VOLBY PLUGINŮ
include::includes/man.cs.adoc[tag=plugin_options]
== SOUBORY
include::includes/man.cs.adoc[tag=files]
// TRANSLATION MISSING
== SEE ALSO
*weechat*(1)
== AUTOŘI
Tato manuálová stránka byla napsána {author}.
Tato manuálová stránka byla přeložena Ondřejem Súkupem.
== COPYRIGHT
include::includes/man.cs.adoc[tag=copyright]
== PODPORA / HLÁŠENÍ CHYB
Pro pomoc nebo hlášení chyb https://weechat.org/about/support
+20 -72
View File
@@ -13,8 +13,9 @@ weechat - the extensible chat client
== PŘEHLED
// TRANSLATION MISSING
[verse]
*weechat* [-a|--no-connect] [-d|--dir <path>] [-p|--no-plugin] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [plugin:option...]
*weechat* [-a|--no-connect] [-d|--dir <path>] [-t|--temp-dir] [-p|--no-plugin] [-P|--plugins <plugins>] [-r|--run-command <command>] [-s|--no-script] [--upgrade] [debug-option...] [plugin:option...]
*weechat* [-c|--colors]
*weechat* [-h|--help]
*weechat* [-l|--license]
@@ -22,74 +23,33 @@ weechat - the extensible chat client
== POPIS
WeeChat (Wee Enhanced Environment for Chat) je svobodný chatovací klient, rychlý
a lehký, připraven pro mnoho operačních systémů.
Je velmi připůsobitelný a rozšiřitelný s skripty.
WeeChat (Wee Enhanced Environment for Chat) je svobodný chatovací klient.
Je lehký, plně konfigurovatelný a lehce rozšiřitelný pomocí pluginů a scriptů
v obvyklých sciptovacích jazycích.
== VOLBY
include::cmdline_options.cs.adoc[]
include::includes/cmdline_options.cs.adoc[tag=standard]
// TRANSLATION MISSING
== DEBUG OPTIONS
*WARNING:* these options are for debug purposes only, *DO NOT USE IN PRODUCTION!*
include::includes/cmdline_options.cs.adoc[tag=debug]
== VOLBY PLUGINŮ
Pro kompletní dokumentaci nastavení pluginů a jejich volby podívejte se na
https://weechat.org/doc[WeeChat user's guide].
S irc pluginem se můžete doččasně připojit na server s URL jako:
irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
K připojení na IRC kanál Weechatu pro podporu s přezdívkou "mynick":
irc://mynick@chat.freenode.net/#weechat
IPv6 adresa může být uzavřena do hranatých závorek k přidání portu, například:
irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
include::includes/man.cs.adoc[tag=plugin_options]
== SOUBORY
$HOME/.weechat/weechat.conf::
hlavní konfigurační soubor WeeChatu
include::includes/man.cs.adoc[tag=files]
$HOME/.weechat/plugins.conf::
soubor konfigurace pluginů
// TRANSLATION MISSING
== SEE ALSO
$HOME/.weechat/sec.conf::
konfigurační soubor s chráněnými daty
$HOME/.weechat/alias.conf::
configurační soubor pro _alias_ plugin
$HOME/.weechat/aspell.conf::
konfigurační soubor pro _aspell_ plugin
$HOME/.weechat/charset.conf::
konfigurační soubor pro _charset_ plugin
$HOME/.weechat/exec.conf::
konfigurační soubor pro _exec_ plugin
$HOME/.weechat/irc.conf::
konfigurační soubor pro _irc_ plugin
$HOME/.weechat/logger.conf::
konfigurační soubor pro _logger_ plugin
$HOME/.weechat/relay.conf::
konfigurační soubor pro _relay_ plugin
$HOME/.weechat/script.conf::
konfigurační soubor pro _script_ plugin
$HOME/.weechat/trigger.conf::
konfigurační soubor pro _trigger_ plugin
$HOME/.weechat/xfer.conf::
konfigurační soubor pro _xfer_ plugin
$HOME/.weechat/weechat.log::
soubor záznamů WeeChatu
*weechat-headless*(1)
== AUTOŘI
@@ -98,20 +58,8 @@ Tato manuálová stránka byla přeložena Ondřejem Súkupem.
== COPYRIGHT
WeeChat je napsán Sébastienem Helleu a přispěvovateli (kompletní seznam je v
souboru AUTHORS.adoc).
Copyright (C) 2003-2017 {author}
WeeChat je svobodný software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
Prosím přečtěte si soubor COPYING pro více informací.
Web: https://weechat.org/
include::includes/man.cs.adoc[tag=copyright]
== PODPORA / HLÁŠENÍ CHYB
Pro pomoc nebo hlášení chyb https://weechat.org/dev/support
Pro pomoc nebo hlášení chyb https://weechat.org/about/support
+70 -48
View File
@@ -20,8 +20,8 @@ Spustění z Vašeho shellu:
$ weechat
----
[[help_options]]
== On-line nápověda/ volby
[[help]]
== On-line nápověda
WeeChat má nápovědů pro všechny příkazy, postě vložte:
@@ -35,58 +35,65 @@ K získání nápovědy pro specifický příkaz napište:
/help příkaz
----
// TRANSLATION MISSING
Help is available for options as well:
----
/help config.section.option
----
(kde `config` je jméno konfigurace (`weechat` pro jádro, nebo jméno pluginu),
`section` sekce této konfigurace a `option` jméno volby).
// TRANSLATION MISSING
[[options]]
== Set options
K nastavení voleb napište:
----
/set config.section.option value
----
(kde `config` je jméno konfigurace (`weechat` pro jádro, nebo jméno pluginu),
`section` sekce této konfigurace a `option` jméno volby).
WeeChat okamžitě použije novou hodnotu (*nikdy* nebudete potřebovat restart
WeeChatu po změně konfigurace).
Můžete použít v příkazu `/set` volbu s částečným jménem a zástupným znakem "*"
na konci nebo začátku k zobrazení všech voleb obsahující dané znaky.
Například:
* zobrazí všechny volby (WeeChatu a pluginů):
----
/set
----
* zobraz volby WeeChatu:
----
/set weechat.*
----
* zobraz volby IRC pluginu:
----
/set irc.*
----
Můžete zobrazit nápovědu pro voblby s `/help`, například:
----
/help weechat.look.highlight
----
Všechna nastavení jsou uložena při ukončení WeeChatu (nebo použitím příkazu
`/save` k vynucení zapsaní voleb).
// TRANSLATION MISSING
[IMPORTANT]
It is *not recommended* to edit configuration files by hand because WeeChat
may write them at any time (for example on <<command_weechat_quit,/quit>>)
and after any change you must run the command <<command_weechat_reload,/reload>>
(with the risk of losing other changes that were not yet saved with
<<command_weechat_save,/save>>). +
You can use the command <<command_weechat_set,/set>>, which checks the value
and applies immediately the changes.
may write them at any time (for example on `/quit`) and after any change
you must run the command `/reload` (with the risk of losing other changes
that were not yet saved with `/save`). +
You can use the command `/set`, which checks the value and applies immediately
the changes.
// TRANSLATION MISSING
The plugin _fset_ allows you to easily browse options and change them.
// TRANSLATION MISSING
For example to display WeeChat options:
----
/fset weechat.*
----
// TRANSLATION MISSING
IRC options:
----
/fset irc.*
----
// TRANSLATION MISSING
The `/fset` command has completion on part of option names, so for example if
you type `/fset hot` and press kbd:[Tab] this is completed as `/fset hotlist`.
If you press kbd:[Enter], options about the hotlist are displayed.
// TRANSLATION MISSING
For more information about `/fset` command and keys, see `/help fset`.
[[core_vs_plugins]]
== Jádro versus pluginy
@@ -109,6 +116,11 @@ Můžete přidat irc server příkazem `/server`, například:
/server add freenode chat.freenode.net
----
// TRANSLATION MISSING
In this command, `freenode` is the internal server name used by WeeChat:
you'll be able to connect with `/connect freenode` and the server options
are _irc.server.freenode.xxx_.
Jako obvykle je poskytována nápověda pokud se ztratíte:
----
@@ -202,11 +214,17 @@ K automatickému připojení některých kanálů při připojování k serveru:
/set irc.server.freenode.autojoin "#channel1,#channel2"
----
// TRANSLATION MISSING
[TIP]
You can complete name and value of options with the kbd:[Tab] key
and kbd:[Shift+Tab] for a partial completion (useful for long words like
the name of option).
K smazání hodnoty serverové volby a k použití výchozí hodnoty místo ní,
například k požití výchozích přezdívek (irc.server_default.nicks):
----
/set irc.server.freenode.nicks null
/unset irc.server.freenode.nicks
----
Ostatní volby: můžete nastavit ostatní volby s následujícím příkazem ("xxx" je
@@ -217,18 +235,22 @@ název volby):
----
[[connect_to_irc_server]]
== Připojení k IRC serveru a automatické ořipojení kanálů
== Připojení k IRC serveru
----
/connect freenode
----
// TRANSLATION MISSING
With this command, WeeChat connects to the freenode server and auto-joins the
channels configured in the "autojoin" server option.
// TRANSLATION MISSING
[NOTE]
Tento příkaz může být použit k vytvoření nového připojení k serveru bez
použití příkazu `/server` (mohu zopakovat že můžete zobrazit nápovědu
pro tento příkaz s `/help connect` ?).
použití příkazu `/server` (see `/help connect`).
Ve výchozím nastavení jsou serverové bufery spojen s Weechat _core_ buferem.
Ve výchozím nastavení jsou serverové bufery spojen s WeeChat _core_ buferem.
K přepnutí mezi _core_ a server bufery můžete použít klávesu kbd:[Ctrl+x].
Je možné vypnout automatické sloučení serverových buferů a mít nezávislé
@@ -304,8 +326,6 @@ Příkazy k spravování buferů a oken:
/window
----
(nebudu se zde opakovat, můžete k těmto příkazům získat nápovědu pomocí /help)
Například, k svislému rozdělení obrazovky na malé okno (1/3 šířky), a velké
okno (2/3), použijte příkaz:
@@ -323,10 +343,12 @@ To remove the split:
[[key_bindings]]
== Předvoblby klávesových zkratek
Weechat používá ve výchozím nastavení mnoho klávesových zkratek, Všechny
WeeChat používá ve výchozím nastavení mnoho klávesových zkratek, Všechny
najdete v dokumentaci, ale je dobré znát alespoň pár těchto důležitých:
- kbd:[Alt+←] / kbd:[Alt+→] nebo kbd:[F5] / kbd:[F6]: přepnout na předchozí/další bufer
// TRANSLATION MISSING
- kbd:[F1] / kbd:[F2]: scroll bar with list of buffers ("buflist")
- kbd:[F7] / kbd:[F8]: přepnout na předchozí/další okno (pokud je obrazovka rozdělena)
- kbd:[F9] / kbd:[F10]: posunoutí titulku
- kbd:[F11] / kbd:[F12]: posunutí seznamu přezdívek
@@ -369,7 +391,7 @@ stáhnout a nainstalovat scripty z repozitáře pomocí příkazu `/script`,
například:
----
/script install iset.pl
/script install go.py
----
Zkuste `/help script` pro více informací.
+29 -12
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
@@ -14,26 +14,43 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
if(ENABLE_MAN)
# man page
# man page: weechat
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.de.adoc
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.de.adoc
${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.de.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.de.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/man.de.adoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building weechat.1 (de)"
)
add_custom_target(doc-man-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
add_custom_target(doc-man-weechat-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/de/man1)
# man page: weechat-headless
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.de.adoc
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.de.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.de.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/man.de.adoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building weechat-headless.1 (de)"
)
add_custom_target(doc-man-weechat-headless-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/de/man1)
endif()
if(ENABLE_DOC)
file(GLOB AUTOGEN_USER "${CMAKE_CURRENT_SOURCE_DIR}/includes/autogen_user_*.adoc")
# user's guide
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.de.html
@@ -41,13 +58,13 @@ if(ENABLE_DOC)
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/../docinfo.html
${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.de.adoc
${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.de.adoc
${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.de.adoc
${AUTOGEN_USER}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building weechat_user.de.html"
)
add_custom_target(doc-user-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.de.html)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.de.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.de.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME})
# scripting guide
add_custom_command(
@@ -60,7 +77,7 @@ if(ENABLE_DOC)
COMMENT "Building weechat_scripting.de.html"
)
add_custom_target(doc-scripting-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.de.html)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.de.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.de.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME})
# FAQ
add_custom_command(
@@ -73,7 +90,7 @@ if(ENABLE_DOC)
COMMENT "Building weechat_faq.de.html"
)
add_custom_target(doc-faq-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.de.html)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.de.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.de.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME})
# quickstart
add_custom_command(
@@ -86,7 +103,7 @@ if(ENABLE_DOC)
COMMENT "Building weechat_quickstart.de.html"
)
add_custom_target(doc-quickstart-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.de.html)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.de.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.de.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME})
# tester's guide
add_custom_command(
@@ -99,6 +116,6 @@ if(ENABLE_DOC)
COMMENT "Building weechat_tester.de.html"
)
add_custom_target(doc-tester-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.de.html)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.de.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.de.html DESTINATION ${DATAROOTDIR}/doc/${PROJECT_NAME})
endif()
+31 -15
View File
@@ -1,5 +1,5 @@
#
# Copyright (C) 2003-2017 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
#
# This file is part of WeeChat, the extensible chat client.
@@ -15,7 +15,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
docdir = $(datadir)/doc/$(PACKAGE)
@@ -23,16 +23,29 @@ docdir = $(datadir)/doc/$(PACKAGE)
EXTRA_DIST = CMakeLists.txt \
docinfo.html \
weechat.1.de.adoc \
cmdline_options.de.adoc \
weechat-headless.1.de.adoc \
weechat_user.de.adoc \
weechat_scripting.de.adoc \
weechat_faq.de.adoc \
weechat_quickstart.de.adoc \
weechat_tester.de.adoc \
$(wildcard autogen/user/*.adoc)
includes/autogen_api_completions.de.adoc \
includes/autogen_api_hdata.de.adoc \
includes/autogen_api_infolists.de.adoc \
includes/autogen_api_infos.de.adoc \
includes/autogen_api_infos_hashtable.de.adoc \
includes/autogen_api_plugins_priority.de.adoc \
includes/autogen_api_url_options.de.adoc \
includes/autogen_user_commands.de.adoc \
includes/autogen_user_default_aliases.de.adoc \
includes/autogen_user_irc_colors.de.adoc \
includes/autogen_user_options.de.adoc \
includes/cmdline_options.de.adoc \
includes/man.de.adoc
if MAN
man_targets = weechat.1
man_targets = weechat.1 \
weechat-headless.1
man_install = install-man
man_uninstall = uninstall-man
endif
@@ -47,29 +60,31 @@ if DOC
endif
all-local: $(man_targets) $(doc_targets)
# man page
weechat.1: weechat.1.de.adoc cmdline_options.de.adoc
$(ASCIIDOCTOR) -a revision="WeeChat $(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/de/weechat.1.de.adoc
# man pages
weechat.1: weechat.1.de.adoc includes/cmdline_options.de.adoc includes/man.de.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/de/weechat.1.de.adoc
weechat-headless.1: weechat-headless.1.de.adoc includes/cmdline_options.de.adoc includes/man.de.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/de/weechat-headless.1.de.adoc
# user's guide
weechat_user.de.html: weechat_user.de.adoc cmdline_options.de.adoc $(wildcard autogen/user/*.adoc) $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) -a revision="$(VERSION)" -a sectanchors -a source-highlighter=prettify -o weechat_user.de.html $(abs_top_srcdir)/doc/de/weechat_user.de.adoc
weechat_user.de.html: weechat_user.de.adoc includes/cmdline_options.de.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.de.html $(abs_top_srcdir)/doc/de/weechat_user.de.adoc
# scripting guide
weechat_scripting.de.html: weechat_scripting.de.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) -a revision="$(VERSION)" -a sectanchors -a source-highlighter=prettify -o weechat_scripting.de.html $(abs_top_srcdir)/doc/de/weechat_scripting.de.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.de.html $(abs_top_srcdir)/doc/de/weechat_scripting.de.adoc
# FAQ
weechat_faq.de.html: weechat_faq.de.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) -a revision="$(VERSION)" -a sectanchors -a source-highlighter=prettify -o weechat_faq.de.html $(abs_top_srcdir)/doc/de/weechat_faq.de.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.de.html $(abs_top_srcdir)/doc/de/weechat_faq.de.adoc
# quickstart
weechat_quickstart.de.html: weechat_quickstart.de.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) -a revision="$(VERSION)" -a sectanchors -a source-highlighter=prettify -o weechat_quickstart.de.html $(abs_top_srcdir)/doc/de/weechat_quickstart.de.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.de.html $(abs_top_srcdir)/doc/de/weechat_quickstart.de.adoc
# tester's guide
weechat_tester.de.html: weechat_tester.de.adoc $(abs_top_srcdir)/doc/docinfo.html
$(ASCIIDOCTOR) -a revision="$(VERSION)" -a sectanchors -a source-highlighter=prettify -o weechat_tester.de.html $(abs_top_srcdir)/doc/de/weechat_tester.de.adoc
$(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_tester.de.html $(abs_top_srcdir)/doc/de/weechat_tester.de.adoc
# install man/docs
@@ -89,6 +104,7 @@ uninstall-hook: $(man_uninstall) $(doc_uninstall)
uninstall-man:
$(RM) $(DESTDIR)$(mandir)/de/man1/weechat.1
$(RM) $(DESTDIR)$(mandir)/de/man1/weechat-headless.1
-rmdir $(DESTDIR)$(mandir)/de/man1
uninstall-doc:
@@ -98,4 +114,4 @@ uninstall-doc:
# clean
clean-local:
-rm -f weechat.1 weechat_*.html
-$(RM) weechat.1 weechat-headless.1 weechat_*.html

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