anchor.diff:  
   reset_to_connected(Pid) ->
       gen_fsm:send_all_state_event(Pid, reset_to_connected).
  +
  +nick(Pid) ->
  +    gen_fsm:sync_send_all_state_event(Pid, nick).
  +
  +channels(Pid) ->
  +    gen_fsm:sync_send_all_state_event(Pid, channels).
   
   %%====================================================================
   %% gen_fsm callbacks
  
positive.code:                           Chans),
      ?INFO("Joining: ~s~nMembers: ~p", [ChanName,
                                         lists:usort([Members|Chan#chan.members])]),
      {next_state, joining_channel, State#state{channels=NewChans}};
  joining_channel(E = {irc, _Pid, C}, State) ->
      ?INFO("Unknown message in join state, retreating to connected state.~n~p",
  
negative.code: 
  %% API
  -export([start_link/2,
           start_link/3,
           start_link/6,
           shutdown/1,
           send/2,
           reset_to_connected/1,
           nick/1,
           channels/1
          ]).
  
  -export([connecting/2,
           wait_connected/2,
  