aboutsummaryrefslogtreecommitdiffstats
path: root/slack
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-15 14:46:49 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commit4e203c8c410732597f2c43c445a21409b290ef0a (patch)
tree7208de81563791d417e820d0af22dfaf9e87becd /slack
parent188f3b4ee936c7703b20c88abd7d0d1ecdaf9d52 (diff)
downloadwee-slack-4e203c8c410732597f2c43c445a21409b290ef0a.tar.gz
Use full buffer names
Diffstat (limited to 'slack')
-rw-r--r--slack/slack_conversation.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py
index fb5554d..d1e5707 100644
--- a/slack/slack_conversation.py
+++ b/slack/slack_conversation.py
@@ -66,9 +66,12 @@ class SlackConversation:
else:
self.name = info_channel["name"]
+ full_name = f"{shared.SCRIPT_NAME}.{self.workspace.name}.{self.name}"
+
self.buffer_pointer = weechat.buffer_new(
- self.name, get_callback_name(self.buffer_input_cb), "", "", ""
+ full_name, get_callback_name(self.buffer_input_cb), "", "", ""
)
+ weechat.buffer_set(self.buffer_pointer, "short_name", self.name)
weechat.buffer_set(
self.buffer_pointer, "localvar_set_nick", self.workspace.my_user.nick()
)