Browse Source

Ack commands when everything works

Answer to commands, even if everything worked fine.
changes/56/473756/1
Thierry Carrez 4 years ago
parent
commit
e7c7b36710
  1. 2
      ptgbot/bot.py

2
ptgbot/bot.py

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

Loading…
Cancel
Save