summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'bridge')
-rw-r--r--bridge/config/config.go2
-rw-r--r--bridge/irc/handlers.go5
2 files changed, 2 insertions, 5 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go
index 1af6f407..d8237555 100644
--- a/bridge/config/config.go
+++ b/bridge/config/config.go
@@ -168,8 +168,10 @@ type Gateway struct {
}
type Tengo struct {
+ InMessage string
Message string
RemoteNickFormat string
+ OutMessage string
}
type SameChannelGateway struct {
diff --git a/bridge/irc/handlers.go b/bridge/irc/handlers.go
index f0e54928..8f0acaad 100644
--- a/bridge/irc/handlers.go
+++ b/bridge/irc/handlers.go
@@ -4,7 +4,6 @@ import (
"bytes"
"fmt"
"io/ioutil"
- "regexp"
"strconv"
"strings"
"time"
@@ -182,10 +181,6 @@ func (b *Birc) handlePrivMsg(client *girc.Client, event girc.Event) {
// strip action, we made an event if it was an action
rmsg.Text += event.StripAction()
- // strip IRC colors
- re := regexp.MustCompile(`\x03(?:\d{1,2}(?:,\d{1,2})?)?|[[:cntrl:]]`)
- rmsg.Text = re.ReplaceAllString(rmsg.Text, "")
-
// start detecting the charset
mycharset := b.GetString("Charset")
if mycharset == "" {