From 32f8b03541911877f140f9d3d6f2f75c038e30a0 Mon Sep 17 00:00:00 2001 From: Thierry Carrez Date: Wed, 5 Sep 2018 17:38:53 +0200 Subject: [PATCH] Add channel feedback on 'book' command We suppressed channel feedback for most actions, to keep it quiet. However for the book action, it's good to show that the command worked. Change-Id: I4777ecbc854c3f00a3edf69ad30660ec636d3d37 --- ptgbot/bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ptgbot/bot.py b/ptgbot/bot.py index 58ec0d1..123a911 100644 --- a/ptgbot/bot.py +++ b/ptgbot/bot.py @@ -136,6 +136,8 @@ class PTGBot(SASL, SSL, irc.bot.SingleServerIRCBot): room, sep, timeslot = params.partition('-') if self.data.is_slot_valid_and_empty(room, timeslot): self.data.book(track, room, timeslot) + self.send(chan, "%s: Room %s is now booked on %s for %s" % + (nick, room, timeslot, track)) else: self.send(chan, "%s: invalid slot reference '%s'" % (nick, params))