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
d0ea801724
core: add support of TOTP generation/validation (Time-based One-Time Password)
2018-11-02 14:06:14 +01: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
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
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
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
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
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
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
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
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
1a0087a7d7
core: fix string evaluation with regex replacement when the string is empty
2018-08-16 22:45:42 +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
6d061a9ac0
api: fix memory leak in function string_split
2018-08-15 09:42:43 +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
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
7d7ca34a41
core: allow partial buffer name in command /buffer close ( closes #1226 )
2018-07-27 07:48:02 +02:00
Jos Ahrens
62ad65ef45
core: improve instructions to report the crash
2018-07-15 14:09:34 +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
da507ca85f
core: add key alt+"-" in /help filter
2018-06-14 21:44:34 +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
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
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
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
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
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
afb1d03053
Merge remote-tracking branch 'origin/pr/623' into irc-3.2-cap
2018-05-20 15:21:07 +02:00
Sébastien Helleu
4b784a631c
core: remove unneeded test on variable argv
2018-05-19 08:14:52 +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
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
d9425f3765
core: add example of secured data in /help eval
2018-04-15 10:15:17 +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
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