/**
   * Changes the nick for the application user, sends a message over the network to notify the other
   * clients of the change, and saves the changes.
   *
   * @param newNick The new nick for the application user.
   * @throws CommandException If the user is away.
   */
  public void changeMyNick(final String newNick) throws CommandException {
    if (me.isAway()) {
      throw new CommandException("You can not change nick while away");
    }

    messages.sendNickMessage(newNick);
    changeNick(me.getCode(), newNick);
    settings.saveSettings();
  }