Don’t expose the complete reply object from the notice event.
[xudocci.git] / src / main / java / net / pterodactylus / irc / Connection.java
index 15bb319..f6b7913 100644 (file)
@@ -416,7 +416,7 @@ public class Connection extends AbstractExecutionThreadService implements Servic
                                                /* CTCP! */
                                                handleCtcp(reply.source().get(), message);
                                        } else if (!prefixHandler.isChannel(recipient)) {
-                                               eventBus.post(new PrivateNoticeReceived(this, reply));
+                                               eventBus.post(new PrivateNoticeReceived(this, reply.source().get(), message));
                                        } else {
                                                eventBus.post(new ChannelNoticeReceived(this, reply.source().get(), recipient, message));
                                        }