Formatting fixes, remove unecessary default's in switches

This commit is contained in:
EmeraldLockdown 2026-03-11 19:03:15 -05:00
parent 5008c635af
commit 88869cce6a
2 changed files with 1 additions and 5 deletions

View file

@ -16,7 +16,7 @@ static void djui_panel_moderation_call_action(struct DjuiBase* caller) {
u8 action = caller->uTag;
char* address = caller->cTag;
switch(action) {
switch (action) {
case MODERATION_ACTION_KICK:
network_kick_player(player, sReason);
break;
@ -32,8 +32,6 @@ static void djui_panel_moderation_call_action(struct DjuiBase* caller) {
case MODERATION_ACTION_UNMOD:
network_unmod_player(address);
break;
default:
break;
}
free(sReason);

View file

@ -83,7 +83,5 @@ void network_receive_moderation_action(struct Packet* p) {
case MODERATION_ACTION_BAN:
network_ban_player(np->localIndex, reason, permanent);
break;
default:
break;
}
}