aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_conversation.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-02-03 00:07:12 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commit684e7d701a4eb21c3b95954c3ca2e38d78ee451c (patch)
treef96675497b727603268022ec0249ed80a4d93150 /slack/slack_conversation.py
parent7475e79d9094b0f95758fb51721308316d667cf3 (diff)
downloadwee-slack-684e7d701a4eb21c3b95954c3ca2e38d78ee451c.tar.gz
Prefix private class methods with _
Diffstat (limited to 'slack/slack_conversation.py')
-rw-r--r--slack/slack_conversation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py
index f71457d..b65ad98 100644
--- a/slack/slack_conversation.py
+++ b/slack/slack_conversation.py
@@ -130,7 +130,7 @@ class SlackConversation:
short_name = self.name_prefix("short_name") + name
self.buffer_pointer = weechat.buffer_new(
- full_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", short_name)
weechat.buffer_set(
@@ -165,6 +165,6 @@ class SlackConversation:
self.history_filled = True
self.history_pending = False
- def buffer_input_cb(self, data: str, buffer: str, input_data: str) -> int:
+ def _buffer_input_cb(self, data: str, buffer: str, input_data: str) -> int:
weechat.prnt(buffer, "Text: %s" % input_data)
return weechat.WEECHAT_RC_OK