anchor.diff:  is_client(_) ->
       false.
   
  -%Main loop
  +%%--------------------------------------------------------------------
  +%% spawn export
  +%%--------------------------------------------------------------------
  +
   client_loop(Session, Acc) ->
       receive
           stop ->
  
positive.code:     exmpp_session:set_controlling_process(Session, ClientPid),
      Client = #client{jid=JID#jid.raw, pid=ClientPid},
      escalus_cleaner:add_client(Config, Client),
      Client.
  
  start_wait(Config, UserSpec) ->
  
negative.code:     end.
  
  %%--------------------------------------------------------------------
  %% helpers
  %%--------------------------------------------------------------------
  
  send_initial_presence(Config, UserSpec, Client) ->
      case get_config(initial_presence, Config,
                      initial_presence, UserSpec,
                      exmpp_presence:available()) of
          none ->
              ok;
          Presence ->
              send_wait(Client, Presence)
      end.
  
  %%--------------------------------------------------------------------
  %% utilities
  %%--------------------------------------------------------------------
  
  