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