summaryrefslogtreecommitdiff
path: root/src/core/wee-hook.c
AgeCommit message (Collapse)Author
2014-03-11core: add missing \0 at the end of stderr buffer in hook_processSebastien Helleu
2014-03-11api: add option "detached" in function hook_process_hashtableSebastien Helleu
2014-03-11api: add option "signal" in function hook_set to send a signal to the child ↵Sebastien Helleu
process
2014-03-11core: fix detection of terminated process in hook_processSebastien Helleu
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-02-21Merge branch 'trigger'Sebastien Helleu
2014-02-14core: fix completion template used in command completion when first argument ↵Sebastien Helleu
in template has pipes
2014-02-11core: ignore return value of 'write' in function hook_set (fix compiler warning)Sebastien Helleu
2014-02-10api: add integer return code for functions hook_{signal|hsignal}_sendSebastien Helleu
2014-02-09core: add argument "num_items" in function string_split_shellSebastien Helleu
2014-01-11api: add stdin options in functions hook_process_hashtable and hook_set ↵Sebastien Helleu
(task #10847, task #13031) The function hook_set has been added in script API.
2014-01-09core: optimize xxx_valid() functions: return immediately if pointer is NULLSebastien Helleu
2014-01-05core: fix compilation warnings on OpenBSDSebastien Helleu
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-01core: update copyright datesSebastien Helleu
2013-12-15core: add support of logical and/or for argument "tags" in function hook_printSebastien Helleu
2013-09-24core: fix time displayed in status bar (it was one second late) (bug #40097)Sebastien Helleu
2013-09-19core: fix memory leak on unhook of a print hook (if using tags)Sebastien Helleu
2013-08-01core: fix compiler warning on freopen (ignore file returned)Sebastien Helleu
2013-07-28api: use pointer for infolist "hook" to return only one hookSebastien Helleu
2013-07-20core: use "/dev/null" for stdin in hook_process instead of closing stdin ↵Sebastien Helleu
(bug #39538)
2013-05-22core: fix compilation warningsSebastien Helleu
2013-03-17core: fix typos in many comments and some stringsSebastien Helleu
2013-01-06api: allow return code WEECHAT_RC_OK_EAT in callbacks of hook_signal and ↵Sebastien Helleu
hook_hsignal (stop sending the signal immediately)
2013-01-01core: update copyright datesSebastien Helleu
2012-12-15core: move comments with description of C file to top of filesSebastien Helleu
2012-12-13core: reformat comments for functionsSebastien Helleu
2012-12-06core: expand char '~' with user home in first argument of hook_processSebastien Helleu
2012-12-06core: fix crash in child process of hook_process_hashtable when arguments ↵Sebastien Helleu
are given in hashtable and that execvp() failed
2012-12-02core: execute command with higher priority when many commands with same name ↵Sebastien Helleu
are found with different priorities
2012-11-22api: use hashtable "options" for command arguments in function ↵Sebastien Helleu
hook_process_hashtable (optional, default is a split of string with command)
2012-11-18core: do not call shell to execute command in hook_process (fix security ↵Sebastien Helleu
problem when a plugin/script gives untrusted command) (bug #37764)
2012-10-14api: connect with IPv6 by default in hook_connect (with fallback to IPv4), ↵Simon Arlott
shuffle list of hosts for a same address (task #11205)
2012-07-09core: add function "hook_set" in plugin API, add "subplugin" in hooks (set ↵Peter Boström
by script plugins), display subplugin in /help on commands (task #12049)
2012-03-23core: add a connection timeout for child process in hook_connect (bug #35966)Sebastien Helleu
2012-01-16core: add URL transfer (using libcurl), add function hook_process_hashtable ↵Sebastien Helleu
in plugin API, add support of URL in hook_process/hook_process_hashtable (task #10247)
2012-01-08core: update copyright datesSebastien Helleu
2011-11-27core: check pointer returned by function localtimeSebastien Helleu
2011-10-26core: remove unneeded whitespaceSebastien Helleu
2011-10-09core: display timeout for hook_process command only if debug for core is ↵Sebastien Helleu
enabled (task #11401)
2011-10-01core: add missing hook type "focus" in array "hook_type_string" (fix crash ↵Sebastien Helleu
when calling infolist_get with bad hook type)
2011-08-26core: replace deprecated gnutls function ↵Sebastien Helleu
"gnutls_certificate_client_set_retrieve_function" by new function "gnutls_certificate_set_retrieve_function" (gnutls >= 2.11.0)
2011-08-25core: fix memory leak in unhook of hook_connectSebastien Helleu
2011-08-16core: fix crash with "hook" infolist when "arguments" is an empty stringSebastien Helleu
2011-08-14core: return info about line/word for chat area in focus hashtable, add keys ↵Sebastien Helleu
m/q/Q to quote line in cursor mode, sort mouse keys by priority
2011-08-01core: add info about position where mouse button is released in hook_focus ↵Sebastien Helleu
(for mouse gestures)
2011-07-30core: fix bug in build of static parts of completions for commandsSebastien Helleu
2011-07-29core: add number in windows, improve mouse/cursor actions when screen is splitSebastien Helleu
2011-07-26core: add mouse support (task #5435), free cursor movement, hook_focus, fix ↵Sebastien Helleu
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-06-26core: many improvements on hdataSebastien Helleu
New features: - add optional hdata name for variables in hdata - add plugin API functions: hdata_get_var_hdata - use hashtable to store hdata (created by WeeChat and plugins) - free hdata and infolists created by plugin on plugin unload - free all hdata on exit - add "free" option to command /debug hdata - remove hdata for hooks
2011-06-22core: display error (only once) when bad file descriptor is detected in hook_fdSebastien Helleu
2011-06-22core: fix freeze when hook_fd is called with a bad file/socket (bug #33619)Sebastien Helleu