Browse Source

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
changes/00/600100/1
Thierry Carrez 3 years ago
parent
commit
32f8b03541
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ptgbot/bot.py

+ 2
- 0
ptgbot/bot.py View File

@ -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))


Loading…
Cancel
Save