aboutsummaryrefslogtreecommitdiff
path: root/modules/quit.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-07-15 15:19:11 +0100
committerGravatar jesopo2018-07-15 15:19:11 +0100
commitd3e8920e2a166752680bb4807ee6dda8a92ef14d (patch)
tree77511dbeb4544b7bf5ea4dbf7bfce36d8f618bd1 /modules/quit.py
parentAdded EventHook.call_for_result to get a result or default from an event (diff)
signature
Use QUOTES.items() in quit.py
Diffstat (limited to 'modules/quit.py')
-rw-r--r--modules/quit.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/quit.py b/modules/quit.py
index 5489b009..b41bb143 100644
--- a/modules/quit.py
+++ b/modules/quit.py
@@ -59,7 +59,6 @@ class Module(object):
bot.events.on("get.quit-quote").hook(self.quote)
def quote(self, event):
- quote = random.choice(list(QUOTES))
- return (" - " if QUOTES[quote] else "").join([quote,
- QUOTES[quote]])
+ quote = random.choice(list(QUOTES.items()))
+ return (" - " if quote[1] else "").join(quote)