notify_banned_client cleaned up

This commit is contained in:
Valery V Yatsko 2008-06-28 12:56:58 +04:00
parent bb79db15d7
commit 4fd52c8c20
1 changed files with 1 additions and 9 deletions

View File

@ -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))