Lowercase nick while scanning prefixes
Anirudh Oppiliappan x@icyphox.sh
Tue, 28 Dec 2021 22:37:51 +0530
1 files changed,
1 insertions(+),
2 deletions(-)
jump to
M
plugins/tell.go
→
plugins/tell.go
@@ -95,7 +95,7 @@
err := database.DB.Update(func(txn *badger.Txn) error { it := txn.NewIterator(badger.DefaultIteratorOptions) defer it.Close() - prefix := []byte("tell/" + m.Prefix.Name) + prefix := []byte("tell/" + strings.ToLower(m.Prefix.Name)) for it.Seek(prefix); it.ValidForPrefix(prefix); it.Next() { item := it.Item() k := item.Key()@@ -143,7 +143,6 @@ tell.From, humanize.Time(tell.Time), tell.Message,
), ) } - return strings.Join(tellsFmtd, "\n"), &IsPrivateNotice{To: tells[0].To} } }