mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 20:55:47 +00:00
refactor: remove user to actually remove both names
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user