Inverted logic.
authorCMDR furrycat <elite@furrycat.net>
Sat, 1 Oct 2016 19:12:56 +0000 (20:12 +0100)
committerCMDR furrycat <elite@furrycat.net>
Sat, 1 Oct 2016 19:12:56 +0000 (20:12 +0100)
bot.py

diff --git a/bot.py b/bot.py
index e048fef..e0f4e10 100755 (executable)
--- a/bot.py
+++ b/bot.py
@@ -290,7 +290,7 @@ def do_commands(message, command, raw, non_admin):
     url = None
     m = re.match(r'\bbling\s+(\S+)', raw.lower())
     filename = message.author.name
-    mentions = [message.author.mention] if message.channel.is_private else None
+    mentions = [message.author.mention] if not message.channel.is_private else None
     if m is not None:
       url = m.group(1)
       m = re.match(r'<@(!?\d+)>', url)