about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenny Morrison <benmorrison@ttm.sh>2019-03-17 21:09:21 -0400
committerBenny Morrison <benmorrison@ttm.sh>2019-03-17 21:09:21 -0400
commitaacc26efd314c4dbf7e1865d5527b50d9a54876f (patch)
tree7eacf96a397f99a422a49bf1007b0882c704963a
parent21ee5de48bc82624ad330241fd89f5daefe35d43 (diff)
downloadgoofbot-aacc26efd314c4dbf7e1865d5527b50d9a54876f.tar.gz
adjusted !users sanitize section
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index b43381e..ee74072 100644
--- a/main.go
+++ b/main.go
@@ -142,7 +142,9 @@ func main() {
 			userlist := strings.Split(out.String(), " ")
 			var sanilist string
 			for i, e := range userlist {
-				userlist[i] = "_" + e
+				if userlist[i] != " " {
+					userlist[i] = "_" + e
+				}
 			}
 			for i := range userlist {
 				sanilist += userlist[i]