-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
community/weechat-matrix: add patch for handling heisenbridge shortnames
Patch submitted upstream but not merged yet: poljar/weechat-matrix#342 I felt that it was simple enough to include now since it helps a lot if you're using this IRC bridge.
- Loading branch information
1 parent
613a5dd
commit 7af4b41
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Maintainer: Clayton Craft <[email protected]> | ||
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 | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From d96c4b6c1c375698764bcee8759df281b1c11c77 Mon Sep 17 00:00:00 2001 | ||
From: gardar <[email protected]> | ||
Date: Sat, 21 Jan 2023 01:45:38 +0000 | ||
Subject: [PATCH] fix: add heisenbridge default shortname from ansible role | ||
|
||
Signed-off-by: gardar <[email protected]> | ||
--- | ||
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_"): |