summaryrefslogtreecommitdiff
path: root/src/plugins/python/weechat-python.c
AgeCommit message (Collapse)Author
2024-03-05python: add infolists "python_function" and "python_constant"Sébastien Helleu
2024-03-05plugins: move scripting API constants to plugin-script.cSébastien Helleu
2024-01-01core: update copyright datesSébastien Helleu
2023-12-15core: fix crash on plugin reload when using musl libs (closes #2052)Sébastien Helleu
2023-12-14core: fix styleSébastien Helleu
2023-09-22script: fix removal of script in system directory while trying to install a ↵Sébastien Helleu
script (closes #2019)
2023-05-30core: send all command line parameters not beginning with a dash to all ↵Sébastien Helleu
plugins, add info "auto_load_scripts" This fixes an issue with IRC URL given on command line when it starts with `ircs://` or `irc6://`: the server is not created at all (only `irc://` works fine).
2023-01-28core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872)Sébastien Helleu
2023-01-28core, plugins: check that string parameters are not NULL in search functions ↵Sébastien Helleu
(issue #1872)
2023-01-28core, plugins: make info, info_hashtable and infolist case sensitive (issue ↵Sébastien Helleu
#1872)
2023-01-28core, plugins: make commands, hook command_run, completions and aliases case ↵Sébastien Helleu
sensitive (issue #1872)
2023-01-28plugins: set priority in calls to weechat_config_new (issue #1872)Sébastien Helleu
2023-01-08python: remove unneded call to deprecated function PySys_SetArgvSébastien Helleu
This function is deprecated since Python 3.11.
2023-01-03plugins: change priority of scripting pluginsSébastien Helleu
Use a step of 10 between each scripting plugin priority.
2023-01-01core: update copyright datesSébastien Helleu
2022-12-11scripts: Send null values to config section callbacksTrygve Aaberge
The callback_read and callback_create_option functions in the scripting APIs always get the value as a string, never as null. This means that if the value is null, there is no way for the script to distinguish this from an empty string for string options. This makes it impossible to properly make options with fallback values, like the irc server and server_default options, as far as I can see. All the scripting languages except Tcl use that language's equivalent for null. For JavaScript which has both null and undefined, null is used. For Tcl, the magic null string defined in commit 197a7a01e is used and the documentation is updated to describe that. I tested this with these scripts: https://gist.github.com/trygveaa/2d49c609addf9773d2ed16e15d1e3447 You can load all of those scripts and see the result with this command (assuming you have the scripts in the current directory): weechat -t -r "/filter add script * * script; /script load $(echo script_config.*)"
2022-10-15python: remove support of Python 2.xSébastien Helleu
2022-02-20scripts: auto-load scripts with supported extensions only (closes #1698)Sébastien Helleu
2022-01-22python: fix crash in hook callbacks after script loading failure (closes #1740)Sébastien Helleu
2022-01-17core: update copyright datesSébastien Helleu
2021-10-02plugins: use a different plugin priority for each scripting languageSébastien Helleu
2021-05-11core: split WeeChat home in 4 directories, use XDG directories by default ↵Sébastien Helleu
(issue #1285) The 4 directories (which can be the same): - config: configuration files, certificates - data: log/upgrade files, local plugins, scripts, xfer files - cache: script repository, scripts downloaded (temporary location) - runtime: FIFO pipe, relay UNIX sockets
2021-04-11doc: mark info "python2_bin" as deprecated since version 2.6 (plugin API ↵Sébastien Helleu
reference)
2021-01-02core: update copyright datesSébastien Helleu
2020-08-23api: add argument "bytes" in function string_dyn_concatSébastien Helleu
2020-07-07Add $weechat_sharedir/python for global python package importMarco Sirabella
Related: #1461 Some scripts (eg weechat-matrix) ship directories that need to be imported from the script. Rather than globally installing the python packages to python's `site-packages` the directories can be installed alongside the script in `WEECHAT_SHAREDIR/python`. This change adds that directory to the `$PYTHONPATH` to import successfully.
2020-04-04python: fix crash when invalid UTF-8 string is in a WeeChat hashtable ↵Sébastien Helleu
converted to a Python dict (closes #1463)
2020-01-04core: update copyright datesSébastien Helleu
2019-10-12python: send "bytes" instead of "str" to callbacks in Python 3 when the ↵Sébastien Helleu
string is not UTF-8 valid (issue #1220, closes #1389)
2019-06-15api: add argument "strip_items" in function string_splitSébastien Helleu
2019-04-13api: return allocated string in hook_info callback and function info_getSébastien Helleu
2019-03-10core: replace argument "keep_eol" by "flags" in function string_split ↵Sébastien Helleu
(closes #1322)
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-07-25scripts: fix duplicated lines in output of script eval (python, perl, ruby, ↵Sébastien Helleu
lua and guile) When there was a call to a hook callback during the eval, the output buffer was cleared too late, and displayed multiple times in the buffer. This commit clears the buffer even before we display it (this display can trigger a hook callback).
2018-07-12python: fix crash when loading a script with Python >= 3.7 (closes #1219)Sébastien Helleu
2018-04-13scripts: fix memory leak in hook_info callbackSébastien Helleu
2018-04-12scripts: fix return value of hook_infolist callback (pointer instead of string)Sébastien Helleu
2018-03-17scripts: hide message when the eval script is unloadedSébastien Helleu
Related to commit 8fbbe8b0d509df26ff86ca8cd7fe4b2205c6d15e.
2018-02-19scripts: display the script name in stdout/stderr output from scriptsSébastien Helleu
2018-01-15scripts: add option "eval_keep_context" in script pluginsSébastien Helleu
2018-01-15scripts: add configuration file for each script pluginSébastien Helleu
2018-01-07core: fix some stylesSébastien Helleu
2018-01-06core: update translations (issue #128)Sébastien Helleu
2018-01-06python: fix error message when executing code from string in ↵Sébastien Helleu
weechat_python_load (issue #128)
2018-01-06scripts: add "eval" option in script commands and info "xxx_eval" (issue #128)Sébastien Helleu
For now this works only in python, perl, ruby and guile.
2018-01-05core: update copyright datesSébastien Helleu
2017-12-23scripts: add option "version" in script commands (closes #1075)Sébastien Helleu
2017-11-04core: add missing includes of stdio.hSébastien Helleu
2017-07-08fset: fix priority of plugin (load it after all other plugins)Sébastien Helleu
This fixes a refresh problem of options after /upgrade in fset buffer.