aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-05-22 23:27:43 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-05-23 00:02:10 +0200
commit7444db1d5ff1d5de2a76dbdb98b23e3dffe618fc (patch)
tree5541cf65aea6b1c4da0be801180b197673fa1533
parenta4871067b5c89ba45bc0575dda9c5e864a626038 (diff)
downloadwee-slack-7444db1d5ff1d5de2a76dbdb98b23e3dffe618fc.tar.gz
Remove kwargs from formatted_name
This isn't necessary anymore.
-rw-r--r--wee_slack.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/wee_slack.py b/wee_slack.py
index aefa27f..c828228 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1364,7 +1364,7 @@ class SlackTeam(object):
for channel in self.channels.values():
channel.set_highlights()
- def formatted_name(self, **kwargs):
+ def formatted_name(self):
return self.domain
def buffer_prnt(self, data, message=False):
@@ -1716,7 +1716,7 @@ class SlackChannel(SlackChannelCommon):
else:
w.buffer_set(self.channel_buffer, "hotlist", "1")
- def formatted_name(self, style="default", typing=False, present=None, **kwargs):
+ def formatted_name(self, style="default", typing=False, present=None):
if style == "sidebar" and typing and config.channel_name_typing_indicator:
prepend = ">"
elif self.type == "group" or self.type == "private":
@@ -2084,7 +2084,7 @@ class SlackDMChannel(SlackChannel):
else:
self.color_name = ""
- def formatted_name(self, style="default", typing=False, present=True, **kwargs):
+ def formatted_name(self, style="default", typing=False, present=True):
if style == "sidebar":
prepend = ""
if config.show_buflist_presence:
@@ -2170,7 +2170,7 @@ class SlackMPDMChannel(SlackChannel):
s = SlackRequest(self.team, join_method, {'users': ','.join(self.members)}, channel=self)
self.eventrouter.receive(s)
- def formatted_name(self, style="default", typing=False, present=None, **kwargs):
+ def formatted_name(self, style="default", typing=False, present=None):
if style == "sidebar":
if typing and config.channel_name_typing_indicator:
prepend = ">"
@@ -2245,7 +2245,7 @@ class SlackThreadChannel(SlackChannelCommon):
def muted(self):
return self.parent_message.channel.muted
- def formatted_name(self, style="default", **kwargs):
+ def formatted_name(self, style="default"):
hash_or_ts = self.parent_message.hash or self.parent_message.ts
styles = {
"default": " +{}".format(hash_or_ts),