Merge pull request #19 from worr/ctcp_action
Added support for CTCP ACTION (/me)
This commit is contained in:
commit
a1d207d5fa
@ -30,6 +30,7 @@ Events for callbacks
|
||||
* CTCP_CLIENTINFO
|
||||
* CTCP_TIME
|
||||
* CTCP_PING
|
||||
* CTCP_ACTION (/me)
|
||||
* PRIVMSG
|
||||
* MODE
|
||||
* JOIN
|
||||
|
@ -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:]
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user