if (this.user != null) { if (this.user.getCurrentChannel() != null) { Enumeration enum = this.user.getCurrentChannel().getCurrentUserEnum(); User tmpUser; while (enum.hasMoreElements()) { tmpUser = (User)enum.nextElement(); tmpUser.getClientServant().sendMsgFromChannel(tmpUser.getName(),msg); } } else{ this.sendCommand(new JoinChannelErrorCommand()); }
if (this.user != null) { if (this.user.getCurrentChannel() != null) { Enumeration enum = this.user.getCurrentChannel().getCurrentUserEnum(); User tmpUser;  while (enum.hasMoreElements()) { tmpUser = (User) enum.nextElement();  tmpUser.getClientServant().sendMsgFromChannel(tmpUser.getName(), msg);
    public void sendMsgToChannel(String msg) {        if (this.user != null) {            if (this.user.getCurrentChannel() != null) {                Enumeration enum = this.user.getCurrentChannel().getCurrentUserEnum();                User tmpUser;                while (enum.hasMoreElements()) {                    tmpUser = (User)enum.nextElement();                    tmpUser.getClientServant().sendMsgFromChannel(tmpUser.getName(),msg);                }            }	    else{	     this.sendCommand(new JoinChannelErrorCommand());	    }        }