From 9b3a63503d741cab2a4bcd1460d382330c6336c8 Mon Sep 17 00:00:00 2001 From: Evanus Date: Tue, 15 Sep 2015 17:06:00 +0100 Subject: [PATCH] Enabled mentio by default --- mentio.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mentio.py b/mentio.py index 631e3dd..528d7ad 100644 --- a/mentio.py +++ b/mentio.py @@ -49,7 +49,7 @@ def onChat(event): break # player was mentioned - if rec_words != words and n in mentio_toggle: + if rec_words != words and n not in mentio_toggle: try: recipients.remove(recipient) # don't send original message except: @@ -146,13 +146,15 @@ def onListenCommand(sender, command, label, args): msg(sender, "&c- &3%s" % word) if not keywords: msg(sender, "&cYou are currently listening for no words! Try &6/mentio add ") + + # /mentio toggle elif argnum == 1 and cmd == "toggle": n = sender.getName() if n in mentio_toggle: - msg(sender,"&aNo longer listening.") + msg(sender,"&aNow listening.") mentio_toggle.remove(n) else: - msg(sender,"&aNow listening.") + msg(sender,"&aNo longer listening.") mentio_toggle.append(n) else: show_help(sender)