Ack commands when everything works

Answer to commands, even if everything worked fine.
This commit is contained in:
Thierry Carrez 2017-05-29 15:34:28 +02:00
parent c0cb4a0bdd
commit e7c7b36710
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@ class PTGBot(irc.bot.SingleServerIRCBot):
else:
self.send(chan, "%s: unknown directive '%s'" % (nick, adverb))
self.usage(chan)
return
self.send(chan, "%s: ack" % (nick,))
def send(self, channel, msg):
self.connection.privmsg(channel, msg)