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/tell.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/tell.py') diff --git a/plugins/tell.py b/plugins/tell.py index 02a091df..04fc12cd 100644 --- a/plugins/tell.py +++ b/plugins/tell.py @@ -49,10 +49,10 @@ class Plugin(BasePlugin): self.tabs = {} def on_join(self, presence, tab): - if not tab in self.tabs: + if tab not in self.tabs: return nick = presence['from'].resource - if not nick in self.tabs[tab]: + if nick not in self.tabs[tab]: return for i in self.tabs[tab][nick]: tab.command_say("%s: %s" % (nick, i)) @@ -79,9 +79,9 @@ class Plugin(BasePlugin): return nick, msg = args tab = self.api.current_tab() - if not tab in self.tabs: + if tab not in self.tabs: self.tabs[tab] = {} - if not nick in self.tabs[tab]: + if nick not in self.tabs[tab]: self.tabs[tab][nick] = [] self.tabs[tab][nick].append(msg) self.api.information('Message for %s queued' % nick, 'Info') @@ -89,17 +89,17 @@ class Plugin(BasePlugin): def command_untell(self, args): """/untell """ tab = self.api.current_tab() - if not tab in self.tabs: + if tab not in self.tabs: return nick = args - if not nick in self.tabs[tab]: + if nick not in self.tabs[tab]: return del self.tabs[tab][nick] self.api.information('Messages for %s unqueued' % nick, 'Info') def completion_untell(self, the_input): tab = self.api.current_tab() - if not tab in self.tabs: + if tab not in self.tabs: return Completion(the_input.auto_completion, [], '') return Completion(the_input.auto_completion, list(self.tabs[tab]), '', quotify=False) -- cgit v1.2.3