Compare commits

..

2 commits

Author SHA1 Message Date
f3003ace7e Merge pull request 'fix: off-by-one error in EmbedUtil' (#4) from Cookieso/lilJudd:master into master
All checks were successful
Build Gradle project / build-gradle-project (push) Successful in 3m24s
Reviewed-on: #4
2023-12-06 18:14:08 +01:00
373eb15805 fix: off-by-one error in EmbedUtil 2023-12-06 18:12:41 +01:00

View file

@ -82,7 +82,7 @@ object EmbedUtil {
fun getAllUsersInTheFirstXTables(amountOfTables: Int, e: Embed): List<String> {
val users = mutableListOf<String>()
for (i in 0 until amountOfTables - 1) {
for (i in 0 until amountOfTables) {
val f = e.fields[i]
if (!f.value.contains("@"))
continue // check next one. this one does not have any entries