From 47045d974efbd2be96555782c369379aa38a19e7 Mon Sep 17 00:00:00 2001 From: cnaude Date: Wed, 5 Apr 2017 20:11:02 -0700 Subject: [PATCH] Fire IRCMessageEvent for @msg commands --- src/main/java/com/cnaude/purpleirc/PurpleBot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/cnaude/purpleirc/PurpleBot.java b/src/main/java/com/cnaude/purpleirc/PurpleBot.java index 1132052..72d9e43 100644 --- a/src/main/java/com/cnaude/purpleirc/PurpleBot.java +++ b/src/main/java/com/cnaude/purpleirc/PurpleBot.java @@ -3118,7 +3118,7 @@ public final class PurpleBot { .targetChatResponseTokenizer(user.getNick(), pName, msg, responseTemplate)); } plugin.logDebug("Tokenized message: " + t); - player.sendMessage(t); + plugin.broadcastToPlayer(t, channelName, "irc.message.chat", player); ircPrivateMsgMap.put(pName, user.getNick()); if (logPrivateChat) { plugin.logInfo("Private message from IRC: " + user.getNick() + " -> " + pName + ": " + msg);