diff options
author | n2468txd <n2468txd@users.noreply.github.com> | 2015-08-07 22:20:19 +1000 |
---|---|---|
committer | n2468txd <n2468txd@users.noreply.github.com> | 2015-08-07 22:20:19 +1000 |
commit | c28603032df14e05a48f7286a54ce4f8886754dc (patch) | |
tree | fe81f142229acda142fd9719eb788e15881a168b /lib | |
parent | Merge pull request #24 from Frost/patch-1 (diff) |
Send an event for unrecognized messages
This way for things that are unsupported like CAP things (with twitch specifically tested), we can handle almost anything.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/exirc/client.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/exirc/client.ex b/lib/exirc/client.ex index a58b2c0..924ec07 100644 --- a/lib/exirc/client.ex +++ b/lib/exirc/client.ex @@ -683,6 +683,7 @@ defmodule ExIrc.Client do # Called any time we receive an unrecognized message def handle_data(msg, state) do if state.debug? do debug "UNRECOGNIZED MSG: #{msg.cmd}"; IO.inspect(msg) end + send_event {:unrecognized, msg.cmd, msg}, state {:noreply, state} end |