summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-04-08 13:49:57 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2019-04-08 14:01:09 +0100
commitbf2225468e8f496a45db477b596eb7d233cb813f (patch)
tree86fefa7497fc2d1d9a75442bc993a3b2b50055af /plugins
parent6ab49c188a6e5bb95773165f0bdbd672b41c8c81 (diff)
downloadpoezio-bf2225468e8f496a45db477b596eb7d233cb813f.tar.gz
poezio-bf2225468e8f496a45db477b596eb7d233cb813f.tar.bz2
poezio-bf2225468e8f496a45db477b596eb7d233cb813f.tar.xz
poezio-bf2225468e8f496a45db477b596eb7d233cb813f.zip
Revert work on tabs module to change tab.name to JID.
This reverts commits: d693479d05f1ada999c0e29a9d9e2f021dd59e50 2d0cc092fcd154b2d14be0c5ac0ff338607824a0 89a61b84bdb29d3df8c08436c3484fddba8d2ef1 8194d9afbdec2daa1377e07ebb26bb99406473d0 e256c31875c8b67d85fe30d3e2c14c896066657a a21335ac171a827a613dcce744898e822689c9d3 c96e528a8fd1313f75cb792a8e4826fbcfde1bec 0551867bfdb8dfa7dbd5964a15a1a950510e2c71 6ab49c188a6e5bb95773165f0bdbd672b41c8c81
Diffstat (limited to 'plugins')
-rw-r--r--plugins/irc.py2
-rw-r--r--plugins/replace.py2
-rw-r--r--plugins/server_part.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/irc.py b/plugins/irc.py
index 7f8e8d35..eeef128c 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.full.endswith(room_suffix) and tab.joined:
+ if tab.name.endswith(room_suffix) and tab.joined:
already_opened = True
break
diff --git a/plugins/replace.py b/plugins/replace.py
index 8ec91f70..7e259dab 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 tab.name.full
+ return str(tab.name)
def replace_dice(message, tab):
diff --git a/plugins/server_part.py b/plugins/server_part.py
index 9b863a2b..7a71d94b 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.full.endswith(jid):
+ if tab.name.endswith(jid):
tab.command_part(message)
def completion_server_part(self, the_input):