new NoNicknameGivenReceived(this)))
.addCommand("NICK", (s, p) -> eventBus.post(
new NicknameChanged(this, s.get(),
- p.get(0)))),
+ p.get(0))))
+ .addCommand("JOIN", (s, p) -> eventBus.post(
+ new ChannelJoined(this, p.get(0),
+ s.get()))),
new MotdHandler(eventBus, this),
new ChannelNotJoinedHandler(eventBus, this),
new ConnectionEstablishHandler(eventBus, this),
}
/* channel stuff. */
- } else if (command.equalsIgnoreCase("JOIN")) {
- eventBus.post(new ChannelJoined(this, parameters.get(0), reply.source().get()));
} else if (command.equals("331")) {
/* no topic is set. */
} else if (command.equals("332")) {