1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-02 15:53:12 +02:00
Commit Graph

51 Commits

Author SHA1 Message Date
Sébastien Helleu 705d86e684 core: update copyright dates 2017-01-01 11:32:04 +01:00
Sébastien Helleu cf6aca1619 core: add pointer in some callbacks (closes #406)
This pointer is the first argument received by callbacks, and the
existing argument "data" is now automatically freed by WeeChat when the
object containing the callback is removed.

With this new pointer, the linked list of callbacks in scripts has been
removed. This will improve speed of scripts (using a lot of hooks),
reduce memory used by scripts and reduce time to unload scripts.

Following functions are affected in the C API:

* exec_on_files
* config_new
* config_new_section
* config_new_option
* hook_command
* hook_command_run
* hook_timer
* hook_fd
* hook_process
* hook_process_hashtable
* hook_connect
* hook_print
* hook_signal
* hook_hsignal
* hook_config
* hook_completion
* hook_modifier
* hook_info
* hook_info_hashtable
* hook_infolist
* hook_hdata
* hook_focus
* unhook_all_plugin
* buffer_new
* bar_item_new
* upgrade_new
* upgrade_read
2016-03-21 18:11:21 +01:00
Sébastien Helleu 3330724574 core: update copyright dates 2016-01-01 11:09:53 +01:00
Sébastien Helleu a020c28ea6 core: update copyright dates 2015-01-01 09:23:23 +01:00
Sébastien Helleu 1ef3237b6b api: return value in function command(), remove WeeChat error after command callback if return code is WEECHAT_RC_ERROR 2014-11-22 08:14:29 +01:00
Sébastien Helleu eac426f625 core: fix error message in case of ambiguous incomplete command 2014-08-23 12:37:01 +02:00
Sébastien Helleu bde38c87ea core: fix typo: too much calls -> too many calls 2014-08-23 12:34:04 +02:00
Sébastien Helleu 8c586eb49a core: allow incomplete commands if unambiguous (task #5419) 2014-08-23 12:13:11 +02:00
Sebastien Helleu ffb0ec47c2 core: check validity of buffer pointer when data is sent to a buffer 2014-03-18 12:08:11 +01:00
Sebastien Helleu 476729b897 core: fix crash when buffer is closed during execution of multiple commands (closes #27) 2014-03-18 11:50:44 +01:00
Sebastien Helleu be9046741f core: fix memory in execution of commands
This memory leak was introduced by commit aa81067ad0
2014-03-02 17:59:40 +01:00
Sebastien Helleu aa81067ad0 core: use same return code and message in all commands when arguments are wrong/missing 2014-02-21 13:08:20 +01:00
Sebastien Helleu 892aa79fb5 core: update copyright dates 2014-01-01 00:14:12 +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 009925b9ac api: add modifier "input_text_for_buffer" 2012-01-24 19:02:06 +01:00
Sebastien Helleu f7a0f8ae39 core: fix typo in comment 2012-01-24 10:58:51 +01:00
Sebastien Helleu 47e4a03be6 core: update copyright dates 2012-01-08 18:59:50 +01:00
Sebastien Helleu dfdf42e27b core: remove unneeded whitespace 2011-10-26 20:37:03 +02:00
Sebastien Helleu d24f6e9e17 Update copyright dates 2011-01-01 18:06:29 +01:00
Sebastien Helleu 6562d676fe Update licenses and copyrights, add missing author names in sources 2010-06-22 19:46:28 +02:00
Sebastien Helleu 31bfcf96c7 Reformat and add comments for description of C sources 2010-04-08 18:15:00 +02: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 71d77a5890 Add new command /silence 2010-02-09 12:40:19 +01:00
Sebastien Helleu 2133eb30ff Update copyright dates 2010-01-03 19:31:55 +01:00
Sebastien Helleu 2dc13ebd21 Add new command /version, add count of /upgrade, fix bugs with command exec
New (core) command /version displays version, and number of upgrades done with
first start date (if # /upgrade > 0).
The number of upgrades is displayed at startup (if > 0).
2009-03-21 16:09:18 +01:00
Sebastien Helleu 703b54f72c Add error message when a command failed, fix typos in aspell plugin 2009-01-03 13:13:37 +01:00
Sebastien Helleu 2115f3f675 Update copyright dates 2009-01-03 10:06:53 +01:00
Sebastien Helleu da748fc653 Reintroduce option "irc.network.send_unknown_commands", save extra data for buffers with /upgrade (title, input data, text search) 2008-11-15 16:33:31 +01:00
Sebastien Helleu fe302c1722 Fix bug with input line when it starts with "//" (command is no more executed) 2008-07-18 08:23: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 a4a4e5126c Increase number of authorized calls to same command (recursive calls), from 1 to 5 (more than 5 is considered as looping) 2008-05-22 12:55:37 +02:00
Sebastien Helleu 760e216c5b Removed key functions (replaced by /input command) 2008-04-29 18:27:43 +02:00
Sebastien Helleu 1486429cf1 Replaced /builtin command by /command, and can now be used to launch commands with same name from different plugins 2008-04-18 15:39:24 +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 28e811c09c Use of sizeof(char) in all malloc/realloc for strings 2008-02-02 21:12:16 +01:00
Sebastien Helleu 8a67299912 Added some missing functions in Perl plugin API 2008-01-10 18:37:31 +01:00
Sebastien Helleu e3b52115c7 Update of year in some copyrights 2008-01-02 12:47:09 +01:00
Sebastien Helleu 6fd0bd2158 All messages translated to french, fixed bugs/typos in some messages 2007-12-18 17:20:08 +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 bda2cdd408 Removed WeeChat "command" structure, now all internal commands are hooked when WeeChat starts 2007-12-04 13:25:02 +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 59fb878b77 New config functions, almost entirely rewritten from scratch 2007-12-01 00:35:57 +01:00
Sebastien Helleu 7cc78f4172 Added buffer argument in command hooks, code cleanup in IRC plugin 2007-11-25 00:17:43 +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 04e5afe6e4 Cleanup WeeChat error and warning messages, updated po files 2007-11-01 11:19:46 +01:00