Пример #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);
 }