Sebastien Helleu
6714d6fc82
core: optimize the removal of lines in buffers (a lot faster to clear/close buffers with lot of lines)
...
The update of variables "buffer_max_length" and "prefix_max_length" in struct
t_gui_lines is now delayed and made during the main refresh (in main loop).
For a buffer with 50K lines, it is up to 3300 times faster to clear/close it.
For a buffer with 4096 lines (default limit), it is up to 120 times faster.
2013-08-10 17:18:12 +02:00
Sebastien Helleu
d12c9efdbc
core: change type of hashtable key hash to unsigned long, return item pointer in functions hashtable_set(_with_size)
...
The key hash has been changed from unsigned int to unsigned long, and now the
callback can return any value (not only between 0 and size-1), the modulo is
computed after the call to the callback by the hashtable functions.
Functions hashtable_set and hashtable_set_with_size were returning 1 if OK,
0 if error. Now they return pointer to hashtable item, or NULL if error.
2013-08-10 09:35:06 +02:00
Sebastien Helleu
e407c41c5c
core: check that value is not NULL before calling free in hashtable_free_value
2013-08-09 23:06:41 +02:00
Sebastien Helleu
abb574ec4e
core: add "callback_free_key" in hashtable
2013-08-09 23:00:12 +02:00
Sebastien Helleu
72c1af25e0
core: set "callback_free_value" directly in hashtable without calling function hashtable_set_pointer
2013-08-09 22:54:06 +02:00
Sebastien Helleu
da66a343b3
core: fix typo in /help secure
2013-08-07 08:27:28 +02:00
Sebastien Helleu
227f8ac604
core: fix uninitialized variable "result" in callback of command /eval
2013-08-04 12:51:01 +02:00
Sebastien Helleu
f22b0311b9
core: change colors of example in /help weechat.look.buffer_time_format
2013-08-04 12:48:06 +02:00
Sebastien Helleu
390443112c
core: optimize creation of hashtable "pointers" in eval_expression if argument is NULL
...
The hashtable is created on first call to eval_expression with pointers == NULL.
On next calls, the hashtable is cleared, then used again.
The hashtable is freed on exit.
2013-08-04 12:42:29 +02:00
Sebastien Helleu
8ca36552ea
core: change color format for options from ${xxx} to ${color:xxx}
...
Options affected:
- weechat.look.buffer_time_format
- weechat.look.prefix_action
- weechat.look.prefix_error
- weechat.look.prefix_join
- weechat.look.prefix_network
- weechat.look.prefix_quit
2013-08-04 12:18:47 +02:00
Sebastien Helleu
6ea81f4c8c
api: add support of colors with format "${color:xxx}" in function string_eval_expression and command /eval
2013-08-04 10:09:53 +02:00
Sebastien Helleu
dc878c5b69
api: add argument "options" in function string_eval_expression, add option "-c" for command /eval (to evaluate a condition)
2013-08-04 08:56:56 +02:00
Sebastien Helleu
43e3ff3b1a
core: change the message displayed when passphrase is not given on startup
2013-08-02 23:18:09 +02:00
Sebastien Helleu
5a07051f20
core: remove use of function gcry_kdf_derive so that it compiles with libgcrypt < 1.5.0
...
The key built with salt + passphrase has changed, so old encrypted data
in file sec.conf can not be decrypted with this new version.
2013-08-02 23:15:21 +02:00
Sebastien Helleu
d6a19adc54
core: change the message displayed on /secure decrypt -discard
2013-08-02 23:04:23 +02:00
Sebastien Helleu
26fcc66953
core: update translations
2013-08-02 20:16:47 +02:00
Sebastien Helleu
663de42284
Merge branch 'secured-data'
2013-08-02 19:19:25 +02:00
Sebastien Helleu
996da2f662
core: rename binary and man page from "weechat-curses" to "weechat" (task #11027 )
...
A symbolic link weechat-curses -> weechat is now created (by both cmake and
configure), so that the /upgrade will work from an old version.
However, if you upgrade from an old version, it is recommended to force the use
of the new binary name with the command: `/upgrade /path/to/weechat` (replace
the path accordingly).
2013-08-02 08:54:16 +02:00
Sebastien Helleu
f9d57a3099
core: fix compiler warning on freopen (ignore file returned)
2013-08-01 16:29:12 +02:00
Sebastien Helleu
351674699c
core: in case of empty passphrase, keep encrypted data in memory until the user runs /secure decrypt (with the good passphrase)
...
If user gives no passphrase (for example one space when prompted), the encrypted
data read in sec.conf will be stored in a separate hashtable.
While this hashtable contains something, it is not allowed to do any operation
on passphrase or secured data (and it is not allowed to reload sec.conf).
The user can decrypt data with /secure decrypt <passphrase>.
2013-07-30 12:16:44 +02:00
Sebastien Helleu
b3923b65f1
core: use variable "items_count" directly from hashtable without calling function hashtable_get_integer
2013-07-30 10:10:37 +02:00
Sebastien Helleu
7e64b9f1f9
core: add note about evaluated content of option (for options allowing secured data inside)
2013-07-29 18:53:04 +02:00
Sebastien Helleu
0e4eb69d33
api: use pointer for infolist "hook" to return only one hook
2013-07-28 12:40:08 +02:00
Sebastien Helleu
a668775ae3
core: add option sec.crypt.passphrase_file
2013-07-28 10:59:00 +02:00
Sebastien Helleu
8cd4bf3750
core: add option "-o" for command /color
2013-07-27 23:23:15 +02:00
Sebastien Helleu
f3d537dd7a
core: use two spaces to separate columns in /help, do not use columns when the commands fit on a single line
2013-07-27 22:44:42 +02:00
Sebastien Helleu
ca1e0dde07
core: use default value for prefixes used in messages displayed before the interface is initialized
2013-07-27 22:31:36 +02:00
Sebastien Helleu
a490195032
core: add secured data with optional encryption in file sec.conf
2013-07-27 12:57:08 +02:00
Sebastien Helleu
50ab62b75d
core: fix priority of logical operators in evaluation of expression
...
The AND ("&&") takes precedence over the OR ("||").
Before the fix:
>> 1 || 1 && 0
== [0]
After the fix:
>> 1 || 1 && 0
== [1]
Since the "&&" has higher priority, expression is evaluated as:
"1 || (1 && 0)".
2013-07-24 08:15:17 +02:00
Sebastien Helleu
87e342dd9e
core: add CA_FILE option in cmake and configure to setup default value of option weechat.network.gnutls_ca_file (task #12725 )
2013-07-20 17:29:19 +02:00
Sebastien Helleu
56baaaffa8
core: use "/dev/null" for stdin in hook_process instead of closing stdin (bug #39538 )
2013-07-20 15:45:25 +02:00
Sebastien Helleu
765297c038
Merge branch 'scroll-beyond-end'
2013-07-20 11:54:52 +02:00
Sebastien Helleu
94b9104d14
core: replace obsolete INCLUDES by AM_CPPFLAGS in files Makefile.am
2013-07-20 09:07:05 +02:00
Sebastien Helleu
22b20d6206
core: add options weechat.look.hotlist_prefix and weechat.look.hotlist_suffix (task #12730 ) (patch from Nils Görs)
2013-07-20 08:42:16 +02:00
Sebastien Helleu
bee56c3b7f
core: add option "scroll_beyond_end" for command /window (task #6745 )
2013-07-17 18:04:44 +02:00
Sebastien Helleu
7389514c09
core: add option weechat.look.key_bind_safe
2013-07-15 19:04:00 +02:00
Sebastien Helleu
fa9f787e14
core: sort config options by name in sources
2013-07-11 22:31:33 +02:00
Sebastien Helleu
3744787ec0
core: fix crash in evaluation of expression when reading a string in hdata with a NULL value (bug #39419 )
2013-07-08 08:28:27 +02:00
Sebastien Helleu
d38d033ce7
core: add completion "-quit" for command /upgrade
...
A "-dummy" option has been added too, just to prevent accidental completion with
"-quit" (which is the first option completed).
Thanks to stfn for initial patch.
2013-07-05 18:22:10 +02:00
Sebastien Helleu
40c5c5c1ae
core: add missing period in /help upgrade
2013-07-02 15:41:48 +02:00
Sebastien Helleu
37b8aef96d
core: move test of invalid UTF-8 char length from gui-chat.c to wee-utf8.c
2013-06-29 16:10:09 +02:00
Sebastien Helleu
018e5c69ae
core: remove obsolete command line option -k/--keys
...
The user's guide is better to view WeeChat default keys.
2013-06-28 20:38:08 +02:00
Sebastien Helleu
1cadbdf6a9
core: update man page and add translations (in french, german, italian, and japanese)
2013-06-28 20:08:16 +02:00
Sebastien Helleu
c962bb32f9
core: add option weechat.network.proxy_curl (task #12651 )
2013-06-08 19:25:56 +02:00
Sebastien Helleu
21e51d930d
core: add options for Curl >= 7.25
2013-06-08 17:04:40 +02:00
Sebastien Helleu
21356d9909
core: add "proxy" infolist and hdata
2013-06-08 11:40:27 +02:00
Sebastien Helleu
2e647d4c58
core: set options weechat.look.color_inactive_{buffer|window} to "on" by default
2013-05-28 23:13:07 +02:00
Sebastien Helleu
1a9fe7b590
core: fix compilation error when gnutls is not found
2013-05-24 14:16:13 +02:00
Sebastien Helleu
e7c947df3e
core: fix compilation warnings
2013-05-22 20:56:54 +02:00
Sebastien Helleu
0a7b708a1f
core: add options weechat.look.prefix_align_more_after and weechat.look.prefix_buffer_align_more_after
2013-05-03 19:15:57 +02:00