Sébastien Helleu
dcfc4e8ed5
core: add "length:xxx" and "lengthscr:xxx" in evaluation of expressions
2019-09-21 07:56: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
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
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
e8be4f62af
core: mention possible background color in /help weechat.look.nick_color_force
2019-09-16 20:58:12 +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
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
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
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
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
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
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
Andrew Potter
0957231d30
api: add function list_user_data (issue #666 )
2019-08-10 12:55:43 +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
210e864899
irc: fix memory leak when removing a server
2019-08-05 20:58:24 +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
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
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
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
f8b8669d2e
Merge pull request #1384 from l2dy/memory
...
core: fix memory leak in case of error
2019-07-31 22:51:12 +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
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
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
643376fc1d
core: update translations (issue #1375 )
2019-07-11 07:30:01 +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
162ca1fade
irc: split function irc_ignore_check into three functions
2019-07-10 19:19:35 +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
d540ea91ae
Merge remote-tracking branch 'origin/pr/1345'
2019-06-28 20:43:21 +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
b0ad684f6b
irc: fix help of /connect command: the server is optional
2019-06-22 08:42:38 +02:00