diff --git a/ptgbot/bot.py b/ptgbot/bot.py index 8080c7a..70ab261 100644 --- a/ptgbot/bot.py +++ b/ptgbot/bot.py @@ -130,6 +130,11 @@ class PTGBot(irc.bot.SingleServerIRCBot): adverb = words[1].lower() params = str.join(' ', words[2:]) + if adverb in ['now', 'next', 'location']: + if not self.data.get_track_room(track): + self.send(chan, "%s: track '%s' is not scheduled today" % + (nick, track)) + return if adverb == 'now': self.data.add_now(track, params) elif adverb == 'next':