From 3496ed0c7e294af6b6e5e0e01279a1763333be0c Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 7 Dec 2017 22:07:45 +0100 Subject: [PATCH] Fix irc ACTION regression (irc). Closes #306 --- bridge/irc/irc.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 4fd5a8a2..0a24ec75 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -327,11 +327,10 @@ func (b *Birc) handlePrivMsg(client *girc.Client, event girc.Event) { rmsg := config.Message{Username: event.Source.Name, Channel: event.Params[0], Account: b.Account, UserID: event.Source.Ident + "@" + event.Source.Host} flog.Debugf("handlePrivMsg() %s %s %#v", event.Source.Name, event.Trailing, event) msg := "" - if event.Command == "CTCP_ACTION" { - // msg = event.Source.Name + " " + if event.IsAction() { rmsg.Event = config.EVENT_USER_ACTION } - msg += event.Trailing + msg += event.StripAction() // strip IRC colors re := regexp.MustCompile(`[[:cntrl:]](?:\d{1,2}(?:,\d{1,2})?)?`) msg = re.ReplaceAllString(msg, "")