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
a490195032
core: add secured data with optional encryption in file sec.conf
2013-07-27 12:57:08 +02:00
Sebastien Helleu
149c77decd
core: fix typos in many comments and some strings
2013-03-17 12:55:20 +01:00
Sebastien Helleu
afc1dd4f6b
api: fix bug in string_match when mask begins and ends with "*"
...
The bug was string_match returning 0 (instead of 1) if mask begins and ends with
"*" and if string and mask have same length (except both "*") with same content:
string_match("abc", "*abc*", 0) == 0 // BUG: it should return 1
string_match("abcd", "*abc*", 0) == 1 // OK
2013-03-11 18:09:33 +01:00
Sebastien Helleu
b84f6b5a1b
api: fix function string_mask_to_regex: escape all special chars used in regex (bug #38398 )
2013-02-26 21:12:25 +01:00
Sebastien Helleu
0ad8866d6b
core: fix infinite loop when a regex gives an empty match (bug #38112 )
2013-01-18 09:03:57 +01:00
Sebastien Helleu
f97598b4aa
core: update copyright dates
2013-01-01 13:12:49 +01:00
Nils Görs
67a111f7f2
core: fix detection of command in input: a single command char is considered as a command (API function "string_input_for_bufer")
2012-12-25 10:54:51 +01:00
Sebastien Helleu
7eb5cc4b97
core: move comments with description of C file to top of files
2012-12-15 12:27:57 +01:00
Sebastien Helleu
7d34812f1c
core: reformat comments for functions
2012-12-13 18:51:44 +01:00
Sebastien Helleu
efb795c74f
core: do not call shell to execute command in hook_process (fix security problem when a plugin/script gives untrusted command) (bug #37764 )
2012-11-18 10:38:30 +01:00
Sebastien Helleu
32c93b5c0a
core: add command /eval, use expression in conditions for bars, add function "string_eval_expression" in plugin API
2012-11-02 09:37:15 +01:00
Sebastien Helleu
496c7d3e18
core: fix expand of path "~" to home of user in function string_expand_home ("~/xxx" was ok, but not "~")
2012-02-25 08:42:00 +01:00
Sebastien Helleu
863a9d37da
core: fix compilation warning under Cygwin
2012-02-05 11:25:38 +01:00
Sebastien Helleu
9347bae962
api: replace type "regex_t *" by "void *" in function string_regcomp (fix ruby compilation with autotools)
2012-01-26 18:18:20 +01:00
Sebastien Helleu
5f6df8021b
core: add support of flags in regular expressions and highlight options, add irc options to customize/disable default nick highlight (task #11128 )
...
New functions in C plugin API:
- string_regex_flags
- string_regcomp
New irc options:
- irc.look.highlight_server
- irc.look.highlight_channel
- irc.look.highlight_pv
Regex flags are supported in following options/commands:
- option weechat.look.highlight
- option weechat.look.highlight_regex
- options irc.look.highlight_{server|channel|pv}
- option relay.network.allowed_ips
- core command /filter
- irc command /list
- irc command /ignore
- rmodifier command /rmodifier
2012-01-22 13:48:42 +01:00
Sebastien Helleu
47e4a03be6
core: update copyright dates
2012-01-08 18:59:50 +01:00
Simon Kuhnle
07ed065ab7
core: fix compilation under OpenBSD 5.0 (lib utf8 not needed any more) (bug #34727 )
2011-11-12 16:57:49 +01:00
Sebastien Helleu
491412b314
api: add new functions strcasecmp_range and strncasecmp_range
2011-11-12 10:37:44 +01:00
Sebastien Helleu
dfdf42e27b
core: remove unneeded whitespace
2011-10-26 20:37:03 +02:00
Sebastien Helleu
c161d704f7
core: use value 2 of keep_eol in function string_split to keep separators at end of string
2011-10-16 20:12:55 +02:00
Sebastien Helleu
f843f904bc
core: fix bugs with calls to realloc
2011-08-28 15:25:30 +02:00
Sebastien Helleu
ebf72c7eda
core: use dynamic buffer size for calls to vsnprintf
2011-08-26 09:55:55 +02:00
Sebastien Helleu
aa948c76a3
core: remove some compilation warnings under Cygwin
2011-08-18 11:09:46 +02:00
Sebastien Helleu
e0781f0390
core: add mouse support (task #5435 ), free cursor movement, hook_focus, fix bugs with key "^" (bug #32072 , bug #21381 ), fix bugs with bar windows, completion and /buffer
...
New features and bugs fixed:
- mouse support: new command /mouse, new option weechat.look.mouse, new key context "mouse"
- free movement of cursor: new command /cursor, new key context "cursor"
- new hook_focus (used by cursor and mouse)
- info "cursor_mode"
- bugs fixed with key "^"
- allow plugin name in /buffer name
- fix bugs with bar windows: do not create bar windows for hidden bars
- fix completion bug when two words for completion are equal but with different case
- automatic scroll direction in /bar scroll (x/y is now optional)
2011-07-26 18:50:29 +02:00
Sebastien Helleu
d24f6e9e17
Update copyright dates
2011-01-01 18:06:29 +01:00
Sebastien Helleu
ce269387a5
Fix infinite loop in API function string_has_highlight_regex if regex is empty
2010-12-09 23:09:49 +01:00
Sebastien Helleu
e92079cfe9
Add new option weechat.look.highlight_regex and function string_has_highlight_regex in plugin API (task #10321 )
2010-11-25 21:28:14 +01:00
Sebastien Helleu
11b3dd2874
Use type "unsigned long long" for API function string_format_size
2010-11-10 16:34:56 +01:00
Sebastien Helleu
ac6b299e8b
Remove dead assignments
2010-10-31 18:23:16 +01:00
Sebastien Helleu
712623547f
Add new functions in plugin API (hashtable_get_string, hook_info_hashtable, info_get_hashtable), add IRC info_hashtable "irc_parse_message"
...
Note: tcl >= 8.5 is now required (for tcl plugin).
2010-08-27 15:59:06 +02:00
Sebastien Helleu
6562d676fe
Update licenses and copyrights, add missing author names in sources
2010-06-22 19:46:28 +02:00
Sebastien Helleu
4616ca981e
Add function "string_expand_home" in plugin API, fix bug with replacement of home in paths
2010-05-02 18:21:58 +02:00
Sebastien Helleu
ba115ce113
Replace "joker" by "wildcard"
2010-04-18 23:52:32 +02:00
Sebastien Helleu
31bfcf96c7
Reformat and add comments for description of C sources
2010-04-08 18:15:00 +02:00
Sebastien Helleu
b9e65ec63d
Fix bug with writing of configuration files when disk is full (bug #29331 )
2010-03-26 19:01:25 +01:00
Sebastien Helleu
2801b8437c
Reformat multi-line comments
2010-03-19 23:33:14 +01:00
Sebastien Helleu
0543b0ccc7
Add new option weechat.look.command_chars, add functions string_is_command_char and string_input_for_buffer in plugin and script API
2010-03-02 17:34:49 +01:00
Sebastien Helleu
ce1b23311c
Add function "string_decode_base64" in plugin API
2010-02-16 16:57:22 +01:00
Sebastien Helleu
341551f2f2
Add SASL authentication in IRC plugin (task #8829 ), add function "string_encode_base64" in plugin API, fix bug with base64 encoding
...
New options for IRC servers:
- sasl_mechanism (only "plain" for now)
- sasl_username
- sasl_password
2010-02-15 11:51:44 +01:00
Sebastien Helleu
eb56a98fc8
Remove evil tabs in sources
2010-01-24 10:47:53 +01:00
Sebastien Helleu
2133eb30ff
Update copyright dates
2010-01-03 19:31:55 +01:00
Sebastien Helleu
2f7a5a4147
Rename function string_explode to string_split
2009-06-28 19:49:32 +02:00
Sebastien Helleu
8a783825de
Fix completion with non-latin nicks (bug #18993 )
2009-05-09 13:03:44 +02:00
Sebastien Helleu
e3d2728571
Fix typo: splited/splitted -> split
2009-04-24 17:24:56 +02:00
Sebastien Helleu
9679cd4fbf
Fix compilation problem on FreeBSD: replace call to wcscasecmp() by towlower()
2009-04-15 11:33:45 +02:00
Sebastien Helleu
28e5913ad2
Fix text search in buffer with some utf-8 chars (bug #25649 )
2009-04-14 14:12:28 +02:00
Sebastien Helleu
30a50c6999
Fix bug with /ignore when mask begins with "|" (bug #26037 )
2009-03-28 19:04:14 +01:00
Sebastien Helleu
a394ed5d6f
Add "replacement" argument for string_remove_color in plugin API
2009-03-18 18:02:48 +01:00
Sebastien Helleu
426ab803cb
Test return code of some malloc/strdup
2009-02-23 13:45:30 +01:00
Sebastien Helleu
29bc0276bc
Add hook type "command_run", add new function "string_remove_color" in plugin API (task #9089 )
2009-02-08 19:52:16 +01:00
Sebastien Helleu
2115f3f675
Update copyright dates
2009-01-03 10:06:53 +01:00
Sebastien Helleu
20a1360bd8
Add new plugin "relay", new function "string_format_size" in plugin API
2008-12-10 17:08:56 +01:00
Sebastien Helleu
f766dc2f11
Allow mask or regex for IRC command /ignore (mask is default)
2008-10-31 13:12:56 +01:00
Sebastien Helleu
6f442bbfc1
Add new features to logger plugin (command /logger, log level, level by buffer, mask by buffer, ..), fix some bugs
...
New features:
- new command /logger
- log level, to log only some messages, according to importance (task #8592 )
- level by buffer: custom level for some buffers (or group of buffers)
- log filename mask by buffer (or group of buffers)
- marker line is added after display of backlog
- add "delete" callback for config file sections
- add "mkdir_parents" function to plugin API
- remove old log options in IRC plugin
Bug fix:
- marker line is set only when user switches buffer (not when a plugin force
switch, like IRC plugin does when opening server or channel buffer)
- backlog fixed (sometimes lines were not properly displayed)
2008-10-30 17:18:28 +01:00
Sebastien Helleu
ae612a811b
Many changes in doc
2008-09-05 18:52:59 +02:00
Sebastien Helleu
b009f29021
Add some variables in infolist for config options
2008-08-24 08:57:59 +02:00
Sebastien Helleu
3a53257032
Add "const" keyword for some "char *" function arguments (core and plugins API)
2008-06-03 10:56:51 +02:00
Sebastien Helleu
bd436db2bc
Reintroduce highlight (move code from irc plugin to core)
2008-06-01 22:09:12 +02:00
Sebastien Helleu
673e4ad3be
Disable auto-connect for plugins with command line option ("-a")
2008-05-13 14:27:33 +02:00
Sebastien Helleu
a57bc43763
Fixed string explode (when there's only delimiters in string) (bug #23123 )
2008-04-30 20:09:43 +02:00
Sebastien Helleu
30b0e2d777
Fixed output of names on channels (now it's sorted/grouped/colored, like v0.2.6) (bug #22935 ), added "nicklist" infolist
2008-04-19 11:30:15 +02:00
Sebastien Helleu
57323fa71e
Removed sizeof(char) and useless type casts from void* to another pointer type (patch from Leonid Evdokimov)
2008-03-23 23:00:04 +01:00
Sebastien Helleu
61ca929728
Added tags for lines and custom filtering by tags or regex (task #7674 ), fixed many memory leaks
2008-03-22 23:36:12 +01:00
Sebastien Helleu
68b586c229
Fixed bug in string_explode function, new function string_strip
2008-03-15 09:47:27 +01:00
Sebastien Helleu
9f840e514e
Fixed bug in string_explode function, introduced with previous commit
2008-03-14 00:14:27 +01:00
Sebastien Helleu
5d740b882c
Fixed string_explode function, when string ends with separator(s)
2008-03-13 22:50:01 +01:00
Sebastien Helleu
28e811c09c
Use of sizeof(char) in all malloc/realloc for strings
2008-02-02 21:12:16 +01:00
Sebastien Helleu
ed26a0389c
Add of "modifier" hook, migration of charset plugin to new API, SIGHUP signal catched (reload all config files), better config files reloading
2008-01-24 16:50:20 +01:00
Sebastien Helleu
add64d6f47
New arguments for function "register" in scripts (author, license), with optional check of license when script is loaded
2008-01-11 15:08:36 +01:00
Sebastien Helleu
e3b52115c7
Update of year in some copyrights
2008-01-02 12:47:09 +01:00
Sebastien Helleu
9222a7b109
Added group support for nicklist, fixed some bugs in plugins API and IRC plugin
...
Added group support for nicklist (with subgroups).
Partial changes in IRC protocol functions (new arguments with argv and argv_eol).
Fixed some bugs:
- nicklist in plugins API
- problem in main loop with select() when SIGWINCH is received (terminal resize)
- bug in string explode function
- bug in infobar countdown.
2008-01-01 18:22:26 +01:00
Sebastien Helleu
dba084f3d6
New backlog option in logger plugin, added variable names in .h files, replaced "void *" pointers by structures
2007-12-17 17:07:08 +01:00
Sebastien Helleu
2888d41425
Added alias plugin, added missing config file functions in plugins API
2007-12-03 18:03:10 +01:00
Sebastien Helleu
60428b0d2e
Fixed some string functions to make them compatible with UTF-8 charset
2007-11-11 13:28:24 +01:00
Sebastien Helleu
b64b0fe6ca
Added string_remove_quotes() function, use of argv and argv_eol for WeeChat commands arguments
2007-11-05 18:51:53 +01:00
Sebastien Helleu
a97e2955be
Added keep_eol flag to string_explode(), updated hook command callback arguments
2007-11-05 13:29:54 +01:00
Sebastien Helleu
886b5bc8dd
Added some string functions
2007-10-31 17:11:00 +01:00