diff options
-rw-r--r-- | contrib/ircbot/Karma/plugin.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/ircbot/Karma/plugin.py b/contrib/ircbot/Karma/plugin.py index 70ebc87c..c82f0c7f 100644 --- a/contrib/ircbot/Karma/plugin.py +++ b/contrib/ircbot/Karma/plugin.py @@ -267,8 +267,14 @@ class Karma(callbacks.Plugin): irc.noReply() IRC_NICK = r'\w[\w\\`\[\]\{\}\^-]*' + TABLE_FLIP = re.compile(r'\s*[(\(]╯...[\))]╯\s*︵\s*.*', re.U) def _doKarma(self, irc, msg, channel, line): + match = self.TABLE_FLIP.match(line) + if match: + irc.reply(f'┳━┳ノ(°_°ノ)') + return + inc = self.registryValue('incrementChars', channel, irc.network) dec = self.registryValue('decrementChars', channel, irc.network) onlynicks = self.registryValue('onlyNicks', channel, irc.network) |