refactor: remove user to actually remove both names

This commit is contained in:
Slug-Boi
2024-10-26 21:55:39 +02:00
parent aac02d095f
commit aff8d49620
+4 -1
View File
@@ -78,7 +78,10 @@ func Define_users(author_file string) {
} }
func RemoveUser(short string) { func RemoveUser(short string) {
delete(Users, short) usr := Users[short]
split := strings.Split(usr.Names, "/")
delete(Users, split[0])
delete(Users, split[1])
} }
func TempAddUser(username, email string) { func TempAddUser(username, email string) {