Skip to content
Snippets Groups Projects
Commit 7af4b41e authored by Clayton Craft's avatar Clayton Craft :man_dancing_tone3: Committed by Bart Ribbers
Browse files

community/weechat-matrix: add patch for handling heisenbridge shortnames

Patch submitted upstream but not merged yet:
https://github.com/poljar/weechat-matrix/pull/342

I felt that it was simple enough to include now since it helps a lot if
you're using this IRC bridge.
parent 613a5dda
No related branches found
No related tags found
1 merge request!56440community/weechat-matrix: add patch for handling heisenbridge shortnames
Pipeline #199477 skipped
......@@ -2,7 +2,7 @@
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=weechat-matrix
pkgver=0.3.0_git20230723
pkgrel=4
pkgrel=5
_commit="feae9fda26ea9de98da9cd6733980a203115537e"
pkgdesc="WeeChat Matrix protocol script"
url="https://github.com/poljar/weechat-matrix"
......@@ -41,6 +41,7 @@ checkdepends="
install="$pkgname.post-install"
subpackages="$pkgname-pyc"
source="$pkgname-$_commit.tar.gz::https://github.com/poljar/weechat-matrix/archive/$_commit.tar.gz
heisenbridge_shortname.patch
poetry-core.patch
"
builddir="$srcdir/$pkgname-$_commit"
......@@ -66,5 +67,6 @@ package() {
sha512sums="
85b2d6a9a5d393d265cf7d92bb48cf846a68319372e81121d1cedb74a184320df5cee4b0a66a5f88168e297b212f781634f65a4f4a5092ab3e64972428a76ea0 weechat-matrix-feae9fda26ea9de98da9cd6733980a203115537e.tar.gz
ebe210f88708e91a293a5c00f324263b32c418f9033c58c7afa8c8cf03d805eb3ac54f902a4f655d2d26ace8267d02063cc86d4d75f320f63a14c3964cbe2fea heisenbridge_shortname.patch
d28d2a55daddae3319fcc4ceccf2b06826dc9af0b4ec76aa3f843008954b5c9a2e24aa7aecc8d480753a1355c5dbd104ceefc0a9a87c9e9e5f4dddca52fec9f7 poetry-core.patch
"
From d96c4b6c1c375698764bcee8759df281b1c11c77 Mon Sep 17 00:00:00 2001
From: gardar <gardar@users.noreply.github.com>
Date: Sat, 21 Jan 2023 01:45:38 +0000
Subject: [PATCH] fix: add heisenbridge default shortname from ansible role
Signed-off-by: gardar <gardar@users.noreply.github.com>
---
matrix/buffer.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/matrix/buffer.py b/matrix/buffer.py
index ce981b1..3f48f80 100644
--- a/matrix/buffer.py
+++ b/matrix/buffer.py
@@ -1076,7 +1076,8 @@ def add_user(self, user_id, date, is_state, force_add=False):
user.user_id.startswith("@signal_") or
user.user_id.startswith("@_telegram_") or
user.user_id.startswith("@_xmpp_") or
- user.user_id.startswith("@irc_")):
+ user.user_id.startswith("@irc_") or
+ user.user_id.startswith("@hbirc_")):
if user.display_name:
short_name = user.display_name[0:50]
elif user.user_id.startswith("@twilio_"):
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment