all repos — paprika @ de9cbf945776c1c92379b2eb8d837c21fa2d37bb

go rewrite of taigabot

Lowercase nick while scanning prefixes
Anirudh Oppiliappan x@icyphox.sh
Tue, 28 Dec 2021 22:37:51 +0530
commit

de9cbf945776c1c92379b2eb8d837c21fa2d37bb

parent

601d47dc262a9e71610767b4d5fcfa562bc1e702

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M plugins/tell.goplugins/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} } }