summaryrefslogtreecommitdiffstats
path: root/bridge/irc/irc.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/irc/irc.go')
-rw-r--r--bridge/irc/irc.go14
1 files changed, 1 insertions, 13 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index 9ed5202b..102efa56 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -85,8 +85,7 @@ func (b *Birc) Send(msg config.Message) error {
b.Command(&msg)
return nil
}
- username := b.ircNickFormat(msg.Username)
- b.i.Privmsg(msg.Channel, username+msg.Text)
+ b.i.Privmsg(msg.Channel, msg.Username+msg.Text)
return nil
}
@@ -164,17 +163,6 @@ func (b *Birc) handleTopicWhoTime(event *irc.Event) {
flog.irc.Infof("%s: Topic set by %s [%s]", event.Code, user, time.Unix(t, 0))
}
-func (b *Birc) ircNickFormat(nick string) string {
- flog.irc.Debug("ircnick", nick)
- if nick == b.ircNick {
- return nick
- }
- if b.Config.IRC.RemoteNickFormat == "" {
- return "irc-" + nick
- }
- return strings.Replace(b.Config.IRC.RemoteNickFormat, "{NICK}", nick, -1)
-}
-
func (b *Birc) nicksPerRow() int {
if b.Config.Mattermost.NicksPerRow < 1 {
return 4