mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 20:11:42 +00:00
Formatting fixes, remove unecessary default's in switches
This commit is contained in:
parent
5008c635af
commit
88869cce6a
2 changed files with 1 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue