691 Commits

Author SHA1 Message Date
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
66d4590dab core: add base 16/32/64 encoding/decoding in evaluation of expressions 2020-05-21 09:36:35 +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
2b70d71aa1c891f2f251aa775cf239e5611576d5.
2020-05-19 20:12:27 +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
8f6cc60a3f core: update ChangeLog (issue #1509) 2020-05-16 19:58:48 +02:00
Sébastien Helleu
f500c972dd core: update translations (closes #1245, closes #1257) 2020-05-16 14:40:19 +02:00
Sébastien Helleu
5e5e1c0cd7 core: update ChangeLog (issue #1505) 2020-05-16 13:41:11 +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
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
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
Sébastien Helleu
09f4f98ad9 core: update ChangeLog (issue #1497) 2020-05-09 19:43:24 +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
2c5a26b882 core: update ChangeLog (issue #1454, issue #1456) 2020-05-09 15:28:50 +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
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
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
5438f62f74 exec: fix use of same task id for different tasks (closes #1491) 2020-05-03 16:07:11 +02:00
Sébastien Helleu
0cc76fbe72 core: update ChangeLog 2020-05-03 14:14:16 +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
8c9eeb7fd4 core: update ChangeLog (issue #713) 2020-04-28 16:38:32 +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
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
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
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
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
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
e130ee7358 core: make GnuTLS a required dependency 2020-04-18 11:34:59 +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
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
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
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
b781dd92fb core: update ChangeLog (issue #1461) 2020-04-12 10:19:01 +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
28ef93905b core: update ChangeLog (issue #1460) 2020-04-11 09:50:38 +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