]> git.aero2k.de Git - urlbot-v3.git/commitdiff
learn to strip
authorThorsten <mail@aero2k.de>
Fri, 22 Mar 2019 17:32:51 +0000 (18:32 +0100)
committerThorsten <mail@aero2k.de>
Fri, 22 Mar 2019 17:32:51 +0000 (18:32 +0100)
distbot/plugins/muc.py

index 279e23914aef9f2f825014781bdb9378a08d2078..497f7159041850b4646db5a1b11e21cafe6f08b2 100644 (file)
@@ -80,7 +80,7 @@ class Recorder(Worker):
                     ))
                 return Action(msg=msg)
             elif cmd[1] == "record" and cmd[2] != "show":
-                recipient = words[1]
+                recipient = words[1].rstrip(":,")
                 if words[2] in ('that', 'previous'):
                     recording = self.history[-1]["body"] if self.history else "*whistle*"
                 else: