p.get(2)))
.addCommand("PART",
(s, p) -> new ChannelLeft(this, p.get(0),
- s.get(), getOptional(p, 1))),
+ s.get(), getOptional(p, 1)))
+ .addCommand("QUIT",
+ (s, p) -> new ClientQuit(this, s.get(),
+ p.get(0))),
new MotdHandler(eventBus, this),
new ChannelNotJoinedHandler(eventBus, this),
new ConnectionEstablishHandler(eventBus, this),
/* channel stuff. */
} else if (command.equals("331")) {
/* no topic is set. */
- } else if (command.equalsIgnoreCase("QUIT")) {
- eventBus.post(new ClientQuit(this, reply.source().get(), parameters.get(0)));
/* basic connection housekeeping. */
} else if (command.equalsIgnoreCase("PING")) {