Sébastien Helleu
80872061c2
core: add variables with count of hooks
2015-07-15 23:55:00 +02:00
Sébastien Helleu
00685bedd5
core: reset pointers, file descriptors and child PIDs in unhook()
2015-07-14 11:01:52 +02:00
Sébastien Helleu
4ecd8a505f
api: fix type of value returned by functions utf8_prev_char, utf8_next_char and utf8_add_offset
2015-07-04 08:39:55 +02:00
Sébastien Helleu
bd850398e8
core: add missing comments before functions when the result must be freed after use
2015-07-04 08:24:53 +02:00
Sébastien Helleu
8d25cd5d34
core: fix compilation on Cygwin
...
The header sys/select.h is now required for select() function.
2015-05-01 09:54:07 +02:00
Sébastien Helleu
71dd64678c
core: add comments after some #endif
2015-04-30 21:15:30 +02:00
Sébastien Helleu
b0117f0d18
core: add gnutls version in #if compiler directives
2015-01-21 07:50:54 +01:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
3fac3b1bf9
api: fix truncated process output in hook_process() ( closes #266 )
2014-11-22 19:33:48 +01:00
Sébastien Helleu
c58a195590
core: add debug message in hook_process when core debug >= 1
2014-11-15 10:53:57 +01:00
Sébastien Helleu
7b546bea2e
api: use microseconds instead of milliseconds in functions util_timeval_diff and util_timeval_add
2014-08-29 18:17:27 +02:00
Sébastien Helleu
23ea7cd67d
core: add missing return code in comment of function hook_command_exec
2014-08-23 12:39:02 +02:00
Sébastien Helleu
8c586eb49a
core: allow incomplete commands if unambiguous (task #5419 )
2014-08-23 12:13:11 +02:00
Sébastien Helleu
890a9e54be
core: remove dead assignment in function hook_process_child
2014-08-10 15:50:18 +02:00
Sébastien Helleu
15bb7656a5
core: remove dead assignment in function hook_command_exec
2014-08-10 15:50:18 +02:00
Sébastien Helleu
4350dd058e
core: display curl error after a failed download
2014-07-05 22:17:55 +02:00
Sébastien Helleu
936d5559f4
api: add option "buffer_flush" in function hook_process_hashtable
2014-04-03 11:39:23 +02:00
Sebastien Helleu
9543f9c034
core: add missing \0 at the end of stderr buffer in hook_process
2014-03-11 21:11:54 +01:00
Sebastien Helleu
4f48c7a566
api: add option "detached" in function hook_process_hashtable
2014-03-11 17:48:52 +01:00
Sebastien Helleu
42b416af19
api: add option "signal" in function hook_set to send a signal to the child process
2014-03-11 11:14:07 +01:00
Sebastien Helleu
b6da2c3fa5
core: fix detection of terminated process in hook_process
...
Check if the process is finished, even if stdout/stderr are not closed.
Moreover, if the process was terminated by a signal, the return code is
set to WEECHAT_HOOK_PROCESS_ERROR.
2014-03-11 11:01:00 +01:00
Sebastien Helleu
f907ea17d5
Merge branch 'trigger'
2014-02-21 15:36:14 +01:00
Sebastien Helleu
e782020b14
core: fix completion template used in command completion when first argument in template has pipes
2014-02-14 14:50:31 +01:00
Sebastien Helleu
a9aca06545
core: ignore return value of 'write' in function hook_set (fix compiler warning)
2014-02-11 11:55:05 +01:00
Sebastien Helleu
437767c0ca
api: add integer return code for functions hook_{signal|hsignal}_send
2014-02-10 17:42:53 +01:00
Sebastien Helleu
6bc7c456d7
core: add argument "num_items" in function string_split_shell
2014-02-09 12:55:40 +01:00
Sebastien Helleu
48837c35bc
api: add stdin options in functions hook_process_hashtable and hook_set (task #10847 , task #13031 )
...
The function hook_set has been added in script API.
2014-01-11 09:12:04 +01:00
Sebastien Helleu
02868b4dc0
core: optimize xxx_valid() functions: return immediately if pointer is NULL
2014-01-09 19:28:51 +01:00
Sebastien Helleu
a571d599d3
core: fix compilation warnings on OpenBSD
...
On OpenBSD, the variable "tv_sec" in struct timeval has type "long"
(type "time_t" under Linux).
So we need to copy this value to a temporary variable before using its
pointer with function localtime().
2014-01-05 10:42:49 +01:00
Sebastien Helleu
892aa79fb5
core: update copyright dates
2014-01-01 00:14:12 +01:00
Sebastien Helleu
f44cf6ac3c
core: add support of logical and/or for argument "tags" in function hook_print
2013-12-15 19:52:20 +01:00
Sebastien Helleu
8b966d1c7e
core: fix time displayed in status bar (it was one second late) (bug #40097 )
2013-09-24 22:55:27 +02:00
Sebastien Helleu
252feedde4
core: fix memory leak on unhook of a print hook (if using tags)
2013-09-19 10:19:29 +02:00
Sebastien Helleu
f9d57a3099
core: fix compiler warning on freopen (ignore file returned)
2013-08-01 16:29:12 +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
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
e7c947df3e
core: fix compilation warnings
2013-05-22 20:56:54 +02:00
Sebastien Helleu
149c77decd
core: fix typos in many comments and some strings
2013-03-17 12:55:20 +01:00
Sebastien Helleu
bd21daebd1
api: allow return code WEECHAT_RC_OK_EAT in callbacks of hook_signal and hook_hsignal (stop sending the signal immediately)
2013-01-06 19:38:38 +01:00
Sebastien Helleu
f97598b4aa
core: update copyright dates
2013-01-01 13:12:49 +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
eabf103e71
core: expand char '~' with user home in first argument of hook_process
2012-12-06 13:52:13 +01:00
Sebastien Helleu
822ae76543
core: fix crash in child process of hook_process_hashtable when arguments are given in hashtable and that execvp() failed
2012-12-06 13:43:31 +01:00
Sebastien Helleu
c89124aadc
core: execute command with higher priority when many commands with same name are found with different priorities
2012-12-02 13:12:07 +01:00
Sebastien Helleu
1281b18688
api: use hashtable "options" for command arguments in function hook_process_hashtable (optional, default is a split of string with command)
2012-11-22 19:55:38 +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
Simon Arlott
248aa8d73a
api: connect with IPv6 by default in hook_connect (with fallback to IPv4), shuffle list of hosts for a same address (task #11205 )
2012-10-14 10:59:00 +02:00
Peter Boström
c03fcd5e12
core: add function "hook_set" in plugin API, add "subplugin" in hooks (set by script plugins), display subplugin in /help on commands (task #12049 )
2012-07-09 15:16:51 +02:00
Sebastien Helleu
9972cce777
core: add a connection timeout for child process in hook_connect (bug #35966 )
2012-03-23 18:24:47 +01:00