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
This commit is contained in:
parent
6a223d31fe
commit
d35a6afc05
|
@ -139,7 +139,6 @@ class PTGBot(irc.bot.SingleServerIRCBot):
|
||||||
self.send(chan, "%s: unknown directive '%s'" % (nick, adverb))
|
self.send(chan, "%s: unknown directive '%s'" % (nick, adverb))
|
||||||
self.usage(chan)
|
self.usage(chan)
|
||||||
return
|
return
|
||||||
self.send(chan, "%s: ack" % (nick,))
|
|
||||||
|
|
||||||
if msg.startswith('~'):
|
if msg.startswith('~'):
|
||||||
if not self.channels[chan].is_oper(nick):
|
if not self.channels[chan].is_oper(nick):
|
||||||
|
@ -160,7 +159,6 @@ class PTGBot(irc.bot.SingleServerIRCBot):
|
||||||
else:
|
else:
|
||||||
self.send(chan, "%s: unknown command '%s'" % (nick, command))
|
self.send(chan, "%s: unknown command '%s'" % (nick, command))
|
||||||
return
|
return
|
||||||
self.send(chan, "%s: done" % (nick,))
|
|
||||||
|
|
||||||
def send(self, channel, msg):
|
def send(self, channel, msg):
|
||||||
self.connection.privmsg(channel, msg)
|
self.connection.privmsg(channel, msg)
|
||||||
|
|
Loading…
Reference in New Issue