anchor.diff:      ?INFO("~s", [C#irc_cmd.raw]),
       {next_state, welcome,
        State#state{nick=proplists:get_value(target, A, State#state.nick)}};
  -welcome({irc, _Pid, C = #irc_cmd{name=endofmotd}}, State) ->
  +welcome({irc, _Pid, C = #irc_cmd{name=MOTD}}, State) when MOTD == endofmotd; MOTD == nomotd ->
       ?INFO("~s", [C#irc_cmd.raw]),
       ?INFO("Now connected.", []),
       {next_state, connected, State};
  
positive.code: -export([start_link/2,
           start_link/6,
           shutdown/1,
           send/2]).
  
  -export([connecting/2,
           wait_connected/2,
           welcome/2,
           connected/2]).
  
  %% gen_fsm callbacks
  -export([init/1, handle_event/3,
  
negative.code: %% gen_fsm:send_all_state_event/2, this function is called to handle
  %% the event.
  %%--------------------------------------------------------------------
  handle_event(reset_to_connected, _State, State) ->
      {next_state, connected, State};
  handle_event({to_irc, Cmd}, StateName, State = #state{con=Pid}) when is_pid(Pid) ->
      irc_connection:send_cmd(Pid, Cmd),
      {next_state, StateName, State};
  