Browse Source

Shut up now, ptgbot

As we are getting more confident that the ptgbot is actually
working, maybe it doesn't need to actively ack every command
it receives.

Change-Id: I34414c72e5da449cd8e750396da58e5bcddf1e47
changes/21/495321/1
Thierry Carrez 3 years ago
parent
commit
d35a6afc05
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      ptgbot/bot.py

+ 0
- 2
ptgbot/bot.py View File

@@ -139,7 +139,6 @@ class PTGBot(irc.bot.SingleServerIRCBot):
self.send(chan, "%s: unknown directive '%s'" % (nick, adverb))
self.usage(chan)
return
self.send(chan, "%s: ack" % (nick,))

if msg.startswith('~'):
if not self.channels[chan].is_oper(nick):
@@ -160,7 +159,6 @@ class PTGBot(irc.bot.SingleServerIRCBot):
else:
self.send(chan, "%s: unknown command '%s'" % (nick, command))
return
self.send(chan, "%s: done" % (nick,))

def send(self, channel, msg):
self.connection.privmsg(channel, msg)


Loading…
Cancel
Save