From f1b94534a44cf2301e59c3da3cfb0f2ec0931b85 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 8 Oct 2017 15:36:10 +0100 Subject: =?UTF-8?q?Change=20all=20=E2=80=9Cnot=20=E2=80=A6=20in=20?= =?UTF-8?q?=E2=80=A6=E2=80=9D=20into=20=E2=80=9C=E2=80=A6=20not=20in=20?= =?UTF-8?q?=E2=80=A6=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/irc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/irc.py') diff --git a/plugins/irc.py b/plugins/irc.py index 42553dee..8a9f8946 100644 --- a/plugins/irc.py +++ b/plugins/irc.py @@ -355,12 +355,12 @@ class Plugin(BasePlugin): self.api.information('The current tab does not appear to be an IRC one', 'Warning') return None if isinstance(current, tabs.OneToOneTab): - if not '%' in current_jid.node: + if '%' not in current_jid.node: server = current_jid.node else: ignored, server = current_jid.node.rsplit('%', 1) elif isinstance(current, tabs.MucTab): - if not '%' in current_jid.node: + if '%' not in current_jid.node: server = current_jid.node else: ignored, server = current_jid.node.rsplit('%', 1) -- cgit v1.2.3