From 4fd52c8c20d60a5f2b650dc1f2273b93439dd0bf Mon Sep 17 00:00:00 2001 From: Valery V Yatsko Date: Sat, 28 Jun 2008 12:56:58 +0400 Subject: [PATCH] notify_banned_client cleaned up --- src/client.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/client.c b/src/client.c index 3f9f588..dd3ae34 100644 --- a/src/client.c +++ b/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))