]> git.aero2k.de Git - urlbot-v3.git/commitdiff
fix recorder (what the... ?)
authorThorsten <mail@aero2k.de>
Thu, 1 Nov 2018 16:41:47 +0000 (17:41 +0100)
committerThorsten <mail@aero2k.de>
Thu, 1 Nov 2018 16:41:47 +0000 (17:41 +0100)
distbot/plugins/muc.py

index b44d59d9883c12b47a14354753e53b48ab2dd4a5..279e23914aef9f2f825014781bdb9378a08d2078 100644 (file)
@@ -62,7 +62,7 @@ class Recorder(Worker):
             conf_set("user_records.{}".format(user), [])
             return Action(msg=msg)
         # feels a bit clunky
-        elif cmd[0] == "nick" and len(cmd) == 3:
+        elif cmd[0] == "nick" and len(cmd) >= 3:
             if cmd[1] == "show" and cmd[2] == "records":
                 if len(words) == 4:
                     user = words(3)