Don't allow banning admins

This commit is contained in:
Zorchenhimer 2019-03-23 18:09:27 -04:00
parent d734ec110e
commit 07589e7099
1 changed files with 4 additions and 0 deletions

View File

@ -182,6 +182,10 @@ func (cr *ChatRoom) Ban(name string) string {
return "Cannot find that name"
}
if client.IsAdmin {
return "You cannot ban an admin Jebaited"
}
names := []string{}
host := client.Host()
color := client.color