diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2019-04-08 11:38:29 +0100 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-04-08 11:38:29 +0100 |
commit | 6ab49c188a6e5bb95773165f0bdbd672b41c8c81 (patch) | |
tree | d95da1a45124096cde6fb4fb073a0743a7de5b2c /plugins | |
parent | 0551867bfdb8dfa7dbd5964a15a1a950510e2c71 (diff) | |
download | poezio-6ab49c188a6e5bb95773165f0bdbd672b41c8c81.tar.gz poezio-6ab49c188a6e5bb95773165f0bdbd672b41c8c81.tar.bz2 poezio-6ab49c188a6e5bb95773165f0bdbd672b41c8c81.tar.xz poezio-6ab49c188a6e5bb95773165f0bdbd672b41c8c81.zip |
Fix tab.name not being a string by calling the right property
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/irc.py | 2 | ||||
-rw-r--r-- | plugins/replace.py | 2 | ||||
-rw-r--r-- | plugins/server_part.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/irc.py b/plugins/irc.py index eeef128c..7f8e8d35 100644 --- a/plugins/irc.py +++ b/plugins/irc.py @@ -199,7 +199,7 @@ class Plugin(BasePlugin): already_opened = False for tab in self.core.tabs: - if tab.name.endswith(room_suffix) and tab.joined: + if tab.name.full.endswith(room_suffix) and tab.joined: already_opened = True break diff --git a/plugins/replace.py b/plugins/replace.py index 7e259dab..8ec91f70 100644 --- a/plugins/replace.py +++ b/plugins/replace.py @@ -106,7 +106,7 @@ def replace_random_user(message, tab): else: # that doesn’t make any sense. By why use this pattern in a # ConversationTab anyway? - return str(tab.name) + return tab.name.full def replace_dice(message, tab): diff --git a/plugins/server_part.py b/plugins/server_part.py index 7a71d94b..9b863a2b 100644 --- a/plugins/server_part.py +++ b/plugins/server_part.py @@ -53,7 +53,7 @@ class Plugin(BasePlugin): message = args[1] for tab in self.core.get_tabs(MucTab): - if tab.name.endswith(jid): + if tab.name.full.endswith(jid): tab.command_part(message) def completion_server_part(self, the_input): |