From 768913da59d16e654e0b35f25211812830724f0d Mon Sep 17 00:00:00 2001 From: Nyo Date: Fri, 6 Jan 2017 12:01:07 +0100 Subject: [PATCH] .BANCHO. Allow !last only in PM --- constants/fokabotCommands.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/constants/fokabotCommands.py b/constants/fokabotCommands.py index 2e6a65f..a667590 100644 --- a/constants/fokabotCommands.py +++ b/constants/fokabotCommands.py @@ -570,6 +570,10 @@ def tillerinoAcc(fro, chan, message): def tillerinoLast(fro, chan, message): try: + # Run the command in PM only + if chan.startswith("#"): + return False + data = glob.db.fetch("""SELECT beatmaps.song_name as sn, scores.*, beatmaps.beatmap_id as bid, beatmaps.difficulty_std, beatmaps.difficulty_taiko, beatmaps.difficulty_ctb, beatmaps.difficulty_mania, beatmaps.max_combo as fc FROM scores