Simon Ser [Thu, 6 Jul 2023 12:22:01 +0000 (14:22 +0200)]
read_marker.py 0.2.0: use irc_cap_sync_req modifier
Instead of overwriting the irc.server_default.capabilities config
option, use the new irc_cap_sync_req modifier to request the extra
read-marker capability.
Simon Ser [Thu, 6 Jul 2023 12:17:14 +0000 (14:17 +0200)]
soju.py 0.5.0: use irc_cap_sync_req modifier
Instead of overwriting the irc.server_default.capabilities config
option, use the new irc_cap_sync_req modifier to request the extra
bouncer-networks capability.
- Add suffix to successfully downloaded files
See look.file_downloaded_suffix and color.file_downloaded_suffix configuration options
# Fixed
- Fix handling of user_added WebSocket event in case of non existing channel
- Fix handling of user_removed WebSocket event
- Fix display of polls
# Changed
- Delete input line before inserting reply/react/unreact command
- Use channel last_viewed_at property to determine if post is read or not
- Strip leading and trailing newlines from post display
Trygve Aaberge [Tue, 30 May 2023 16:33:24 +0000 (18:33 +0200)]
multiline.pl 0.6.4: support new key names in WeeChat 4.0.0
Uses the new key names for WeeChat >= 4.0.0 and the old key names for
older versions. For ctrl-m and ctrl-j it still uses these names rather
than the new return name, because it handles ctrl-m and ctrl-j
differently (but uses the correct version of it, e.g. ctrl-m for new
versions and ctrl-M for old versions, so it works in all versions).
Kevin Morris [Fri, 11 Nov 2022 11:22:26 +0000 (12:22 +0100)]
unwanted_msg.py 0.3: remove leading whitespace in every situation
Previously, this script was taking care of removing invalid spaces
used before a command. This patch improves the script to remove
leading whitespace characters in all cases, not just for a command.
Warnings have been removed with this commit. It merely does not allow
you to add leading whitespace into the input buffer, which feels
quite self-explanatory as a user (I think?).
In addition, the `/raw` command is now available. The `/raw` command
includes whitespace inside of enclosed delimiters which can be
configured (defaulted to []). See `/help raw` for details on
how it works and configuration.
I've added ":" and "," to VALID_NICK regexp.
The point is to don't reset the colorization in input_line when you
address someone by nick (like `FlashCode:` or `FlachCode,`).
This is version 2.9.0 of slack.py (currently the most recent), copied
over from the wee-slack repo.
Note that the Slack API will introduce a breaking change towmorrow
(2022-09-20) which means that all earlier versions of slack.py will stop
working. This release supports the change and will not be affected.
Ron Alleva [Wed, 3 Aug 2022 19:09:13 +0000 (15:09 -0400)]
urlgrab.py 3.1: store urls by buffer `full_name`
This adds an option to store URLs by the full_name of the buffer, rather
than the short_name or name that is currently the default.
This fixes an issue that I had directly, where some buffers would
(frequently) get typing indicators at the short name, thus storing the
URL under `>general` instead of `#general`. This would break trying to
open URLs by index in the channel.
This should also address issue #90, as the full name should contain the
network information in it.
There is also a small linting cleanup, using `completion_list_add` and
fixing the weechat URLs
Rouji [Wed, 2 Feb 2022 15:39:59 +0000 (16:39 +0100)]
zncplayback.py 0.2.2: handle invalid json in SCRIPT_SAVEFILE
I somehow ended up with a 0 Byte SCRIPT_SAVEFILE, which made json.load()
throw an exception, which made the plugin do nothing at all. This fixes that kind of
problem.
Simon Ser [Mon, 1 Nov 2021 17:12:28 +0000 (18:12 +0100)]
soju.py 0.1.3: sanitize network names
Before adding a temporary server with the name used by the bouncer,
sanitize the name to make sure it doesn't include whitespace and
special characters.
Andreas Kempe [Wed, 16 Jun 2021 18:42:44 +0000 (20:42 +0200)]
fish.py 0.9.7: utf-8 encode key passed to blowfish
The underlying C code performing the blowfish encryption wants bytes and
not a python string. Encode as utf-8 to avoid the issue below.
Traceback (most recent call last):
File "/home/andkem/.weechat/python/autoload/fish.py", line 861, in fish_modifier_in_privmsg_cb
b = Blowfish(fish_keys[targetl])
File "/home/andkem/.weechat/python/autoload/fish.py", line 379, in __init__
self.blowfish = Crypto.Cipher.Blowfish.new(
File "/usr/lib/python3.9/site-packages/Crypto/Cipher/Blowfish.py", line 146, in new
return _create_cipher(sys.modules[__name__], key, mode, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/Crypto/Cipher/__init__.py", line 79, in _create_cipher
return modes[mode](factory, **kwargs)
File "/usr/lib/python3.9/site-packages/Crypto/Cipher/_mode_ecb.py", line 215, in _create_ecb_cipher
cipher_state = factory._create_base_cipher(kwargs)
File "/usr/lib/python3.9/site-packages/Crypto/Cipher/Blowfish.py", line 77, in _create_base_cipher
result = start_operation(c_uint8_ptr(key),
File "/usr/lib/python3.9/site-packages/Crypto/Util/_raw_api.py", line 144, in c_uint8_ptr
raise TypeError("Object type %s cannot be passed to C code" % type(data))
TypeError: Object type <class 'str'> cannot be passed to C code
python: error in function "fish_modifier_in_privmsg_cb"