示例#1
0
 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;
 }
示例#2
0
 public void serverSendCommandToMe(String... messages) {
   server.serverWriteToChannel(getChannel(), messages);
 }
示例#3
0
 public void meSendMessagesToNick(String userNick, String... messages)
     throws NickNotFoundException {
   server.writeToNick(userNick, messages);
 }
示例#4
0
 public void meSendCommandToChannel(String chan, String... messages) {
   logger.debug("meSendToChannel handling message to " + chan + " - " + user + " " + messages);
   server.writeToChan(this, chan, ":" + user + " " + messages);
 }
示例#5
0
 public void meSendCommandToAll(String... messages) {
   logger.debug("meSendToAll handling message - " + user + " " + messages);
   server.writeToAll(":" + user + " " + messages);
 }
示例#6
0
 public void quitChan(String topic) {
   server.quitServerChan(topic, this);
 }
示例#7
0
 public Chan joinChan(String topic) {
   return server.joinServerChan(topic, this);
 }