public boolean isNickExist(String nick) { logger.trace("Test of nickname exist : " + nick); for (Connection connection : server.getUsersConnection()) { if (nick.equals(connection.getNickname())) { return true; } } return false; }
public void serverSendCommandToMe(String... messages) { server.serverWriteToChannel(getChannel(), messages); }
public void meSendMessagesToNick(String userNick, String... messages) throws NickNotFoundException { server.writeToNick(userNick, messages); }
public void meSendCommandToChannel(String chan, String... messages) { logger.debug("meSendToChannel handling message to " + chan + " - " + user + " " + messages); server.writeToChan(this, chan, ":" + user + " " + messages); }
public void meSendCommandToAll(String... messages) { logger.debug("meSendToAll handling message - " + user + " " + messages); server.writeToAll(":" + user + " " + messages); }
public void quitChan(String topic) { server.quitServerChan(topic, this); }
public Chan joinChan(String topic) { return server.joinServerChan(topic, this); }