aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-04-03 10:24:57 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-04-03 10:24:57 +0200
commitea3ec06598d9fc4dff30f7eb7ffc082ef0d42c49 (patch)
tree4709a5be7f4c13cb4ef068450f8d17b140e5ccbf /wee_slack.py
parent32d63857a0f7f00fc462f9069e32f22d803985fe (diff)
downloadwee-slack-ea3ec06598d9fc4dff30f7eb7ffc082ef0d42c49.tar.gz
Remove channel parameter from linkify_text
This parameter is not used in the function.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py
index fbde84e..75fe695 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1619,7 +1619,7 @@ class SlackChannel(SlackChannelCommon):
dbg("Problem processing buffer_prnt")
def send_message(self, message, subtype=None, request_dict_ext={}):
- message = linkify_text(message, self.team, self)
+ message = linkify_text(message, self.team)
dbg(message)
if subtype == 'me_message':
s = SlackRequest(self.team.token, "chat.meMessage",
@@ -2058,7 +2058,7 @@ class SlackThreadChannel(SlackChannelCommon):
if subtype == 'me_message':
w.prnt("", "ERROR: /me is not supported in threads")
return w.WEECHAT_RC_ERROR
- message = linkify_text(message, self.team, self)
+ message = linkify_text(message, self.team)
dbg(message)
request = {"type": "message", "text": message,
"channel": self.parent_message.channel.identifier,
@@ -2948,7 +2948,7 @@ def render(message_json, team, force=False):
return text
-def linkify_text(message, team, channel):
+def linkify_text(message, team):
# The get_username_map function is a bit heavy, but this whole
# function is only called on message send..
usernames = team.get_username_map()