summary refs log tree commit diff stats
path: root/plugins/python
AgeCommit message (Collapse)Author
2023-11-03win32: Remove Python 2 supportPatrick Griffis
2023-04-24python: fix for timers that unhook themselvesCelelibi
The python plugin use weak references for hooks, which might let a necessary object disappear if the callback of a timer hook unhooks itself. Signed-off-by: Celelibi <celelibi@gmail.com>
2023-04-03python: add flush() to StdoutCelelibi
Python sometime calls flush() on sys.stdout or sys.stderr. In particular, it might do so when an exception is raised. This fixes the second error message that was generated in such cases. Signed-off-by: Celelibi <celelibi@gmail.com>
2022-05-07fix addons load in python2DjLegolas
2022-04-15python: Fix API break in hook_timer()Patrick
Closes #2691
2022-01-11meson: Fix exported functions for python pluginBiswapriyo Nath
This fixes loading python plugin in Windows by exporting functions using python.def file. Otherwise, hexchat_plugin_init symbol error is shown.
2021-10-02python: Open all scripts with utf-8 encodingPatrick Griffis
2021-05-28python: Fix off by one rangeAlexandre Jousset
The range goes from 31 to 1 inclusive (#2391).
2021-05-23Updated Toolset to v142DjLegolas
2021-03-07python: Fix exception with list_pluginpref()Sbgodin
__decode cannot work (with Python3) because prefs_str has no attribute 'decode'. Related to https://github.com/hexchat/hexchat/issues/2531
2020-03-11build: Fix potential undefined variablePatrick Griffis
2020-03-11build: Better support building against python 3.8+Patrick Griffis
Closes #2441
2019-06-24Python: Fix error in hexchat.emit_print when passing time attributejacob1
2019-01-02python: plugin cleanup and refactorA_D
2018-12-27python: Make sure `help()` doesn't cause hexchat to hang (#2290)linuxdaemon
* Make sure `help()` doesn't cause hexchat to hang Replace `pydoc.help` with a copy of `pydoc.Helper` with an empty `StringIO` instead of stdin * Handle BytesIO vs StringIO on 2.7
2018-12-26python: Make the plugins table dynamically sized (#2291)linuxdaemon
Adjust the width of the columns depending on the length of the data in each element
2018-12-26python: Made sure to set sys.argv if it is not set. fixes #2282A_D
2018-12-05python: Fix console not eating commandsPatrick Griffis
2018-11-09python: Various cffi fixesA_D
- fixed /py exec behaviour - fixed hexchat.unload_hook() failing when passed a hook id - fixed get_list() calls in python3
2018-11-09python: Rewrite with CFFIPatrick Griffis
2018-03-09win32: Update to build against gvsbuildPatrick Griffis
2017-06-13build: Replace Autotools with MesonPatrick Griffis
Quick rundown of benefits: - Much faster: - Autotools (with autogen): 22 seconds - Meson: 7 seconds - Meson (with ccache): 2 seconds - Simpler: - ~1000 lines smaller - Single simple language - Potentially better Windows (Visual Studio) support What is not done: - Complete Windows support - OSX support (easy) Closes #2013 Closes #1937 Closes #1803
2017-03-30python: Use HEXCHAT_EAT_XXX where appropriate.Mark Jansen
2016-09-26build: Reorder includes to avoid installed plugin headerRainer Müller
When hexchat is already installed into a non-default prefix, a new build could pick up ${prefix}/include/hexchat-plugin.h from the installed version instead of the local header, as configuration variables such as $(GLIB_CFLAGS) would point to -I${prefix}/include. Reordering the includes and moving -I arguments to CPPFLAGS prevents this, as it ensures the local directories are always searched first. This was no problem when compiling for /usr or /usr/local as these directories in the compiler search path are always searched last. Closes #1822
2016-08-05python: Fix get_pluginpref()Patrick Griffis
This relied on undocumented behavior of hexchat_pluginpref_get_int() that has been fixed recently. -1 is the correct failure value.
2016-02-18python: Handle get_info('win_ptr')Patrick Griffis
2016-02-18Fix strict prototype warningsPatrick Griffis
2015-10-10Use VS 2015Arnavion
2015-09-30configure: Clean up Python checkingPatrick Griffis
This fixes requiring to add a version every time a new release comes out...
2015-02-11Better project files.Arnavion
- Output directly to rel\ instead of to bin\ and then copying files over. - Deduped Win32 vs x64 configs - Moved some common properties to hexchat.props - All build intermediates (except htm's intermediates) are no longer emitted in the source directory
2014-12-31python: Use Py_RETURN_NONE macroTingPing
2014-12-31Python: Fix overflow and code-cleanupTingPing
2014-12-28Fix building as c89TingPing
2014-12-28Use glib for allocations in all pluginsTingPing
Continuation of 83032b1aa
2014-12-17More consistently include config.hTingPing
2014-12-15configure: Improve various build flagsTingPing
- Store openssl flags in own vars - Share some common flags for plugins - Fix building plugins on win32 - Store all glib flags in one var - Don't link against every lib for each plugin - Don't hardcode ldflags for sysinfo
2014-12-08Removed some unnecessary null-checks for calls to g_free and g_strfreevArnavion
2014-11-02Warning cleanupCampbell Barton
- ignoring const - declarations after statements - some C files didnt include own headers (risking them getting out of sync) Closes #1064
2014-06-04Use GDir instead of direntTingPing
2014-06-04win32: Use config.h instead of config-win32.hTingPing
2014-04-19python: Scan for non-NULLs in print eventsAdam Dane [:hobophobe]
Closes #916 Closes #915
2013-09-30Fix crash in hexchat_pluginpref_list()TingPing
Set max output size to 4096
2013-09-25Make Python version consistent on both platformsTingPing
and don't hardcode 2.7/3.3
2013-09-15Convert project files to vs2013Eustachy Kapusta
2013-08-04Add reload command for plugins and add to guiTingPing
2013-07-30python: Set VERSION using existing VERSION_MAJOR and VERSION_MINOR macros ↵Arnavion
and some mintor refactoring.
2013-07-26Fix some warningsTingPing
2013-07-26Python: Fix callbacks for the "special" print hooksTingPing
2013-07-24Move optimization settings from all subsequent projects to hexchat.propsEustachy Kapusta
2013-07-21Python: return hooks with PyLong_FromVoidPtrTingPing
Fixes #685