ad3dc716e7
2.18.2 release preparation
2026-06-20 08:44:47 -06:00
479f1649ef
Bump release metadata to 2.18.1
2026-05-21 18:11:33 -06:00
Mikhail Titov
23d0963c2d
fix(python): decode the console input to str in _on_say_command
2026-05-10 23:57:43 -05:00
aa52236c01
New Release: 2.18.0
2026-04-20 11:56:03 -06:00
ec4d698021
Bump to 2.18.0~pre6
2026-03-30 13:04:00 -06:00
aead92d9e4
Bump to 2.18.0~pre5 + changelog/AppStream
2026-03-22 11:48:57 -06:00
b5ebba4521
release: bump 2.18.0~pre4 + release notes.
2026-03-14 20:09:55 -06:00
7bb2331f43
release: bump 2.18.0~pre3; sync version refs + release notes
2026-03-13 14:41:42 -06:00
9c86f18982
Cleaned up unneeded inline comments in plugins/python/python.py while keeping runtime behavior unchanged (comment-only cleanup around version declaration, compile helpers, wordlist/timer handling, and autoload path handling).
2026-02-25 01:58:19 -07:00
71d3ba576f
Removed an outdated TODO comment in plugins/python/python.py above the module-level state variables, keeping behavior unchanged while reducing noise.
...
Removed two stale TODO comments in plugins/python/_zoitechat.py above command() and hook_command(), with no functional changes to those APIs.
2026-02-25 00:49:54 -07:00
c15b352c4b
Prep for Pre-release 2
2026-02-24 19:30:54 -07:00
d379bb138c
Added Flatpak-specific Python module search paths in plugin init: when FLATPAK_ID is present, the loader now also probes /app/lib/zoitechat/python and /app/lib/x86_64-linux-gnu/zoitechat/python before importing zoitechat.
...
Kept the existing safe behavior intact: paths are only added if they exist and are not already in sys.path, so this broadens compatibility without duplicating entries.
2026-02-22 11:42:49 -07:00
76796f5f23
Fixed Python plugin module discovery to search multiple valid install layouts before importing zoitechat, instead of assuming only one path. This includes:
...
existing sibling fallback (../python)
direct fallback (libdir/python)
AppImage-aware fallbacks under $APPDIR/usr/lib/zoitechat/python and $APPDIR/usr/lib/x86_64-linux-gnu/zoitechat/python.
Added guards so paths are appended only if the directory exists and is not already in sys.path, reducing duplicate/invalid entries while improving robustness across packaging layouts.
2026-02-22 11:03:57 -07:00
deepend-tildeclub
e424d9325c
Update Python plugin version to 2.18.0-pre1
2026-02-17 09:39:01 -07:00
2b98ebc544
HEXCHAT -> ZOITECHAT
2026-01-25 16:13:47 -07:00
a1ed2b1bed
Zoitechat naming fixes.
2026-01-07 20:33:55 -07:00
4683ef705b
new name after fork
2026-01-05 23:12:38 -07:00
Celelibi
5cbd2524dc
python: fix for timers that unhook themselves
...
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-24 17:10:41 -05:00
Celelibi
847e5a14d6
python: add flush() to Stdout
...
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 >
2023-04-03 12:29:22 -05:00
DjLegolas
6da8f97e37
fix addons load in python2
2022-05-07 11:34:47 -05:00
Patrick
dd167b4c83
python: Fix API break in hook_timer()
...
Closes #2691
2022-04-15 13:43:22 -05:00
Patrick Griffis
6fd8a8f9bf
python: Open all scripts with utf-8 encoding
2021-10-02 09:49:17 -05:00
Alexandre Jousset
734d888210
python: Fix off by one range
...
The range goes from 31 to 1 inclusive (#2391 ).
2021-05-28 19:39:44 -05:00
A_D
7abeb10cf1
python: plugin cleanup and refactor
2019-01-02 18:50:10 -05:00
linuxdaemon
a5a727122b
python: Make sure help() doesn't cause hexchat to hang ( #2290 )
...
* 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-27 14:46:02 -05:00
linuxdaemon
f7713a6a64
python: Make the plugins table dynamically sized ( #2291 )
...
Adjust the width of the columns depending on the length of the data in
each element
2018-12-26 17:15:25 -05:00
A_D
3ebfa83fdd
python: Made sure to set sys.argv if it is not set. fixes #2282
2018-12-26 16:58:46 -05:00
Patrick Griffis
ed55330153
python: Fix console not eating commands
2018-12-05 19:45:30 -05:00
A_D
a2ff661d40
python: Various cffi fixes
...
- fixed /py exec behaviour
- fixed hexchat.unload_hook() failing when passed a hook id
- fixed get_list() calls in python3
2018-11-09 18:36:59 -05:00
Patrick Griffis
706f9bca82
python: Rewrite with CFFI
2018-11-09 18:36:59 -05:00