fix bad merge for weather.
Anthony DeDominic adedomin@gmail.com
Mon, 22 Nov 2021 09:43:27 -0500
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
plugins/weather.go
→
plugins/weather.go
@@ -30,8 +30,9 @@ parsed := strings.SplitN(m.Trailing(), " ", 2)
// TODO: AAAAAAAAAAAAAAAAAAAAAAAAAAA found := false + trigger := parsed[0] for _, v := range (Weather{}).Triggers() { - if parsed[0] == v { + if trigger == v { found = true break }@@ -39,6 +40,7 @@ }
if !found { return "", NoReply } + var loc string if len(parsed) != 2 {