diff options
author | Wim <wim@42.be> | 2018-11-08 00:46:34 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-11-08 00:46:34 +0100 |
commit | 399789811ecab11f7dfb775f83d063b20167bb1d (patch) | |
tree | 771636eeeec33a66be1def907cc27f25edf10506 /bridge/irc | |
parent | 8d117cb0a48b4b7d137d1900cf0160755bfb1b65 (diff) | |
download | matterbridge-msglm-399789811ecab11f7dfb775f83d063b20167bb1d.tar.gz matterbridge-msglm-399789811ecab11f7dfb775f83d063b20167bb1d.tar.bz2 matterbridge-msglm-399789811ecab11f7dfb775f83d063b20167bb1d.zip |
Make gocritic linter happy
Diffstat (limited to 'bridge/irc')
-rw-r--r-- | bridge/irc/irc.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 25f6beec..0702575b 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -63,8 +63,7 @@ func New(cfg *bridge.Config) bridge.Bridger { } func (b *Birc) Command(msg *config.Message) string { - switch msg.Text { - case "!users": + if msg.Text == "!users" { b.i.Handlers.Add(girc.RPL_NAMREPLY, b.storeNames) b.i.Handlers.Add(girc.RPL_ENDOFNAMES, b.endNames) b.i.Cmd.SendRaw("NAMES " + msg.Channel) @@ -237,7 +236,7 @@ func (b *Birc) Send(msg config.Message) (string, error) { } if len(b.Local) < b.MessageQueue { if len(b.Local) == b.MessageQueue-1 { - text = text + " <message clipped>" + text += " <message clipped>" } b.Local <- config.Message{Text: text, Username: msg.Username, Channel: msg.Channel, Event: msg.Event} } else { |