5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-24 21:21:34 +00:00

Convert received IRC channel names to lowercase. Fixes #329 (#330)

This commit is contained in:
Anssi Kolehmainen 2018-01-06 23:55:03 +02:00 committed by Wim
parent a5d0197349
commit 4828c43443

View File

@ -323,7 +323,7 @@ func (b *Birc) handlePrivMsg(client *girc.Client, event girc.Event) {
if event.Source.Name == b.Nick { if event.Source.Name == b.Nick {
return return
} }
rmsg := config.Message{Username: event.Source.Name, Channel: event.Params[0], Account: b.Account, UserID: event.Source.Ident + "@" + event.Source.Host} rmsg := config.Message{Username: event.Source.Name, Channel: strings.ToLower(event.Params[0]), Account: b.Account, UserID: event.Source.Ident + "@" + event.Source.Host}
flog.Debugf("handlePrivMsg() %s %s %#v", event.Source.Name, event.Trailing, event) flog.Debugf("handlePrivMsg() %s %s %#v", event.Source.Name, event.Trailing, event)
msg := "" msg := ""
if event.IsAction() { if event.IsAction() {