From b23defab14824a00291097fbd51b09b8b7f335e5 Mon Sep 17 00:00:00 2001 From: Paul Schoenfelder Date: Thu, 31 Jul 2014 00:24:54 -0500 Subject: Fixes #9 - Implement support for sending/receiving CTCP ACTION command --- lib/exirc/example_handler.ex | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/exirc/example_handler.ex') 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}" -- cgit v1.2.3