mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
notify_banned_client cleaned up
This commit is contained in:
parent
b09cbaa315
commit
405ae5ce44
1 changed files with 1 additions and 9 deletions
10
src/client.c
10
src/client.c
|
@ -417,15 +417,7 @@ notify_banned_client(struct Client *client_p, struct ConfItem *aconf, int ban)
|
|||
}
|
||||
else
|
||||
{
|
||||
switch (aconf->status)
|
||||
{
|
||||
case D_LINED:
|
||||
reason = d_lined;
|
||||
break;
|
||||
default:
|
||||
reason = k_lined;
|
||||
break;
|
||||
}
|
||||
reason = aconf->status == D_LINED ? d_lined : k_lined;
|
||||
}
|
||||
|
||||
if(ban == D_LINED && !IsPerson(client_p))
|
||||
|
|
Loading…
Reference in a new issue