diff --git a/README.markdown b/README.markdown index dadc50b..3db1880 100644 --- a/README.markdown +++ b/README.markdown @@ -30,6 +30,7 @@ Events for callbacks * CTCP_CLIENTINFO * CTCP_TIME * CTCP_PING +* CTCP_ACTION (/me) * PRIVMSG * MODE * JOIN diff --git a/irc_callback.go b/irc_callback.go index f717903..169b5cb 100644 --- a/irc_callback.go +++ b/irc_callback.go @@ -54,6 +54,11 @@ func (irc *Connection) RunCallbacks(event *Event) { } else if event.Message == "CLIENTINFO" { event.Code = "CTCP_CLIENTINFO" + + } else if event.Message[0:6] == "ACTION" { + event.Code = "CTCP_ACTION" + event.Message = event.Message[7:] + } }