diff options
author | Wim <wim@42.be> | 2018-11-08 00:29:30 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-11-08 00:29:30 +0100 |
commit | 1794922263192a1ccccaf0cde2300d116e702042 (patch) | |
tree | 6455330f15a2b3b5f39331dae3e6a5131a177a2e /bridge/irc/irc.go | |
parent | 0ededb88633cd5d93665c250b49ea4f598a1a793 (diff) | |
download | matterbridge-msglm-1794922263192a1ccccaf0cde2300d116e702042.tar.gz matterbridge-msglm-1794922263192a1ccccaf0cde2300d116e702042.tar.bz2 matterbridge-msglm-1794922263192a1ccccaf0cde2300d116e702042.zip |
Make unparam linter happy
Diffstat (limited to 'bridge/irc/irc.go')
-rw-r--r-- | bridge/irc/irc.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index c1cbdf60..25f6beec 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -271,14 +271,12 @@ func (b *Birc) endNames(client *girc.Client, event girc.Event) { channel := event.Params[1] sort.Strings(b.names[channel]) maxNamesPerPost := (300 / b.nicksPerRow()) * b.nicksPerRow() - continued := false for len(b.names[channel]) > maxNamesPerPost { - b.Remote <- config.Message{Username: b.Nick, Text: b.formatnicks(b.names[channel][0:maxNamesPerPost], continued), + b.Remote <- config.Message{Username: b.Nick, Text: b.formatnicks(b.names[channel][0:maxNamesPerPost]), Channel: channel, Account: b.Account} b.names[channel] = b.names[channel][maxNamesPerPost:] - continued = true } - b.Remote <- config.Message{Username: b.Nick, Text: b.formatnicks(b.names[channel], continued), + b.Remote <- config.Message{Username: b.Nick, Text: b.formatnicks(b.names[channel]), Channel: channel, Account: b.Account} b.names[channel] = nil b.i.Handlers.Clear(girc.RPL_NAMREPLY) @@ -464,6 +462,6 @@ func (b *Birc) storeNames(client *girc.Client, event girc.Event) { strings.Split(strings.TrimSpace(event.Trailing), " ")...) } -func (b *Birc) formatnicks(nicks []string, continued bool) string { - return plainformatter(nicks, b.nicksPerRow()) +func (b *Birc) formatnicks(nicks []string) string { + return plainformatter(nicks) } |