From 78f0c379843878764c7db490ab05ab454b4bc1be Mon Sep 17 00:00:00 2001 From: Koffeingeladen Date: Fri, 26 Feb 2016 10:00:53 +0100 Subject: [PATCH] >.> --- pingpong.py | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/pingpong.py b/pingpong.py index 33d0dc8..d162ac5 100644 --- a/pingpong.py +++ b/pingpong.py @@ -9,13 +9,7 @@ class PingPong(Module): 'ping': 'pong', '*ping*': '*pong*', 'pink': 'ponk' - } - users = { - 'tchab': [ - "Für dich immer noch »pink«!", - "Klappe zu, Schwulibert!"] - } - + } def __init__(self, **keywords): super(PingPong, self).__init__([MUC, MUC_MENTION], **keywords) @@ -23,17 +17,10 @@ def __init__(self, **keywords): def muc_msg(self, msg, nick, **keywords): key = msg.lower() if key in self.mapping: - if nick in self.users: - self.send_muc(oneof(self.users[nick])) - else: - self.send_muc(self.mapping[key]) + self.send_muc(self.mapping[key]) def muc_mention(self, msg, nick, **keywords): key = msg.lower() if key in self.mapping: - if nick in self.users: - self.send_muc("%s: %s" % \ - (nick, oneof(self.users[nick]))) - else: - self.send_muc("%s: %s" % \ - (nick, self.mapping[key])) + self.send_muc("%s: %s" % \ + (nick, self.mapping[key]))