strip command char and space from invalidcommands

This commit is contained in:
Gordon Shumway 2019-04-03 15:33:37 -04:00 committed by GitHub
parent 995380dcae
commit c0b045f4ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class BotLibre(callbacks.Plugin):
def invalidCommand(self, irc, msg, tokens):
chan = msg.args[0]
if irc.isChannel(chan) and self.registryValue('invalidCommand', chan):
self._queryBot(irc, chan, msg.args[1])
self._queryBot(irc, chan, msg.args[1][1:].strip())
Class = BotLibre