Example #1
0
 private void sendServer(IrcServer server, User user, String prefix, Server srv) {
   sendMapReply(server, user, prefix, srv);
   prefix += " ";
   for (User usr : srv.getUsers()) {
     sendMapReply(server, user, prefix, usr);
   }
   for (Server child : srv.getchildren()) {
     sendServer(server, user, prefix, child);
   }
 }
Example #2
0
 private void sendMapReply(IrcServer server, User user, String prefix, Server target) {
   Message msg = Numerics.createMessage(server, Numerics.RPL_MAP, user);
   msg.appendLastParameter(prefix + "S:" + target.getName() + ":" + target.getToken());
   user.getConnection().send(msg);
 }