Don't allow banning admins
This commit is contained in:
parent
d734ec110e
commit
07589e7099
|
@ -182,6 +182,10 @@ func (cr *ChatRoom) Ban(name string) string {
|
||||||
return "Cannot find that name"
|
return "Cannot find that name"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if client.IsAdmin {
|
||||||
|
return "You cannot ban an admin Jebaited"
|
||||||
|
}
|
||||||
|
|
||||||
names := []string{}
|
names := []string{}
|
||||||
host := client.Host()
|
host := client.Host()
|
||||||
color := client.color
|
color := client.color
|
||||||
|
|
Loading…
Reference in New Issue