summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/replace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/replace.py b/plugins/replace.py
index d1fbac57..5fcc971f 100644
--- a/plugins/replace.py
+++ b/plugins/replace.py
@@ -57,7 +57,7 @@ def replace_random_user(message, tab):
return random.choice(tab.users).nick
elif isinstance(tab, tabs.PrivateTab):
return random.choice([JID(tab.name).resource, tab.own_nick])
- else isinstance(tab, tabs.ConversationTab):
+ else:
# that doesn’t make any sense. By why use this pattern in a
# ConversationTab anyway?
return str(tab.name)