diff options
author | w1gz <w1gz@noreply.com> | 2015-11-15 20:40:30 +0100 |
---|---|---|
committer | w1gz <w1gz@noreply.com> | 2015-11-15 20:40:30 +0100 |
commit | f0d409ea8b3b38c19b230d78fb6cc98a662dccd0 (patch) | |
tree | f651f7d1fc3fedc26e20c8d973798e8158780452 /lib | |
parent | Add ex_doc dep (diff) |
Replace erlang.now() by the more appropriate 'timestamp'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/exirc/client.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exirc/client.ex b/lib/exirc/client.ex index 924ec07..344ea2a 100644 --- a/lib/exirc/client.ex +++ b/lib/exirc/client.ex @@ -522,7 +522,7 @@ defmodule ExIrc.Client do # Called upon successful login def handle_data(%IrcMessage{:cmd => @rpl_welcome}, %ClientState{:logged_on? => false} = state) do if state.debug?, do: debug "SUCCESFULLY LOGGED ON" - new_state = %{state | :logged_on? => true, :login_time => :erlang.now()} + new_state = %{state | :logged_on? => true, :login_time => :erlang.timestamp()} send_event :logged_in, new_state {:noreply, new_state} end |