Merge pull request #762 from slingamn/fix_760_again

actually fix #760
This commit is contained in:
Shivaram Lingamneni 2020-01-29 13:31:07 -08:00 committed by GitHub
commit b1e5570f85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -94,11 +94,10 @@ func zncPlaybackHandler(client *Client, command string, params []string, rb *Res
items, _ := client.history.Between(after, before, false, config.History.ChathistoryMax) items, _ := client.history.Between(after, before, false, config.History.ChathistoryMax)
client.replayPrivmsgHistory(rb, items, true) client.replayPrivmsgHistory(rb, items, true)
} else { } else {
targets = make(StringSet)
// TODO actually handle nickname targets
for _, targetName := range strings.Split(targetString, ",") { for _, targetName := range strings.Split(targetString, ",") {
if cfTarget, err := CasefoldChannel(targetName); err == nil { if cfTarget, err := CasefoldChannel(targetName); err == nil {
if targets == nil {
targets = make(StringSet)
}
targets.Add(cfTarget) targets.Add(cfTarget)
} }
} }