diff options
author | Paul Schoenfelder <paulschoenfelder@gmail.com> | 2014-07-31 00:24:54 -0500 |
---|---|---|
committer | Paul Schoenfelder <paulschoenfelder@gmail.com> | 2014-07-31 00:45:31 -0500 |
commit | b23defab14824a00291097fbd51b09b8b7f335e5 (patch) | |
tree | 582181929081e2a5a4c5e61c985c010c27e9baab /lib/exirc/example_handler.ex | |
parent | Version 0.7.1 (diff) |
Fixes #9 - Implement support for sending/receiving CTCP ACTION command
Diffstat (limited to 'lib/exirc/example_handler.ex')
-rw-r--r-- | lib/exirc/example_handler.ex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/exirc/example_handler.ex b/lib/exirc/example_handler.ex index bd3f142..4bc8e8c 100644 --- a/lib/exirc/example_handler.ex +++ b/lib/exirc/example_handler.ex @@ -99,6 +99,10 @@ defmodule ExampleHandler do debug "#{from} mentioned us in #{channel}: #{message}" {:noreply, nil} end + def handle_info({:me, message, from, channel}, _state) do + debug "* #{from} #{message} in #{channel}" + {:noreply, nil} + end # This is an example of how you can manually catch commands if ExIrc.Client doesn't send a specific message for it def handle_info(%IrcMessage{:nick => from, :cmd => "PRIVMSG", :args => ["testnick", msg]}, _state) do debug "Received a private message from #{from}: #{msg}" |