all repos — paprika @ f3575d038b3da006531180a877148dfe3895c4ff

go rewrite of taigabot

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

f3575d038b3da006531180a877148dfe3895c4ff

parent

9b5a81ff5986713c6a166ff5888061162c2bc1e9

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} } }