summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrockerBOO <rockerboo@gmail.com>2015-06-18 16:14:04 -0400
committerrockerBOO <rockerboo@gmail.com>2015-06-18 16:14:04 -0400
commit9f25a1a8274fff0620b6efd48b02e90ed124dc6e (patch)
tree3e0e091866fc72fa63fd61cd884a417c4357ce1b /lib
parentMerge pull request #22 from jeffweiss/allow_genserver_params_on_client_start_... (diff)
Adding :names_list event on getting names list
Diffstat (limited to 'lib')
-rw-r--r--lib/exirc/client.ex3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/exirc/client.ex b/lib/exirc/client.ex
index e070516..69ef51b 100644
--- a/lib/exirc/client.ex
+++ b/lib/exirc/client.ex
@@ -576,6 +576,9 @@ defmodule ExIrc.Client do
Channels.users_join(state.channels, channel, String.split(names, " ", trim: true)),
channel,
channel_type)
+
+ send_event({:names_list, channel, names}, state)
+
{:noreply, %{state | :channels => channels}}
end
# Called when our nick has succesfully changed