4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-02 11:36:18 +00:00

Make gocritic linter happy

This commit is contained in:
Wim
2018-11-08 00:46:34 +01:00
parent 8d117cb0a4
commit 399789811e
6 changed files with 10 additions and 11 deletions

View File

@ -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 {