From a6c7dea1ddb2268fd2a05ff8268cd80d7f61e854 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Fri, 3 May 2019 13:32:50 -0400 Subject: [PATCH] require command character for cq/stop --- ASCII/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index fe0249a..4029408 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -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):