require command character for cq/stop

This commit is contained in:
Gordon Shumway 2019-05-03 13:32:50 -04:00 committed by GitHub
parent 7808a1e2fb
commit a6c7dea1dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class ASCII(callbacks.Plugin):
def doPrivmsg(self, irc, msg):
channel = msg.args[0]
self.stopped.setdefault(channel, None)
if msg.args[1].lower().strip() == 'cq' or msg.args[1].lower().strip() == 'clearqueue' or msg.args[1].lower().strip() == 'stop' or msg.args[1].lower().strip() == 'quit':
if msg.args[1].lower().strip()[1:] == 'cq' or msg.args[1].lower().strip()[1:] == 'stop':
self.stopped[channel] = True
def ascii(self, irc, msg, args, optlist, text):