]> git.0d.be Git - botaradio.git/commitdiff
feat: oust will clear the playlist in one-shot mode
authorTerry Geng <gengyanda@gmail.com>
Thu, 12 Mar 2020 01:06:16 +0000 (09:06 +0800)
committerTerry Geng <gengyanda@gmail.com>
Thu, 12 Mar 2020 01:06:16 +0000 (09:06 +0800)
command.py

index eb7f6f655ce39968c90280df36efebc4b89d1cc7..2c04f0cee33169357efdcb9d8f7b45ece4d1fc95 100644 (file)
@@ -595,6 +595,9 @@ def cmd_stop_and_getout(bot, user, text, command, parameter):
     global log
 
     bot.stop()
+    if var.playlist.mode == "one-shot":
+        var.playlist.clear()
+
     if bot.channel:
         bot.mumble.channels.find_by_name(bot.channel).move_in()