Allow first admin to be created if none exist

This commit is contained in:
Jeff 2024-06-13 05:58:10 -04:00
parent 83a0a88430
commit 12ce1daead

View File

@ -113,7 +113,7 @@ impl Bot {
if let Some(command) = names.next() {
match command {
"admin" => {
if self.admin_list.contains(sender) {
if self.admin_list.contains(sender) || self.admin_list.is_empty() {
self.adminify_players(names)?;
}
}