diff options
author | gumi <git@gumi.ca> | 2020-03-19 14:44:01 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2020-03-19 14:44:01 -0400 |
commit | 8a8751a17e8b6b85f7c899388573124b0ee529b5 (patch) | |
tree | 298b724c95eb62bfe41154ae707607cd694012eb /main.py | |
parent | 40971af4b1518f5e148e3314293731e6eb988659 (diff) | |
download | manamarket-8a8751a17e8b6b85f7c899388573124b0ee529b5.tar.gz manamarket-8a8751a17e8b6b85f7c899388573124b0ee529b5.tar.bz2 manamarket-8a8751a17e8b6b85f7c899388573124b0ee529b5.tar.xz manamarket-8a8751a17e8b6b85f7c899388573124b0ee529b5.zip |
ignore afk messages and convert emotes
Diffstat (limited to 'main.py')
-rwxr-xr-x | main.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -695,8 +695,9 @@ def process_whisper(nick, msg, mapserv): mapserv.sendall(whisper(nick, "IRC relay mode is now disabled.")) elif user != -10 and user.get("irc") == "on": - ircbot.send(nick, msg) - db_manager.forEachOnline(broadcast_if_irc_on, nick, "TMW.%s: %s" % (nick, msg)) + if not ircbot.isAFK(msg): # if not an AFK message + ircbot.send(nick, msg) + db_manager.forEachOnline(broadcast_if_irc_on, nick, "TMW.%s: %s" % (nick, msg)) else: response = chatbot.respond(msg) logger.info("Bot Response: "+response) |