Dunno: Log commands. Closes GH-798.

This commit is contained in:
Valentin Lorentz 2014-08-04 15:12:17 +02:00
parent ab1ac2aa8e
commit f39e6363ed
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ class Dunno(plugins.ChannelIdDatabasePlugin):
dunno = dunno.text
prefixNick = self.registryValue('prefixNick', channel)
env = {'command': tokens[0]}
self.log.info('Issuing "dunno" answer, %s is not a command.' %
tokens[0])
dunno = ircutils.standardSubstitute(irc, msg, dunno, env=env)
irc.reply(dunno, prefixNick=prefixNick)
Dunno = internationalizeDocstring(Dunno)