Improve logging for kick/ban
[umurmur.git] / src / ban.c
index d91fb5a40090c53f5c7da009093aa426ff147896..fbf711ac22a6762cf66013e9cbec07774fd6a667 100644 (file)
--- a/src/ban.c
+++ b/src/ban.c
@@ -53,9 +53,9 @@ void Ban_UserBan(client_t *client, char *reason)
        list_add_tail(&ban->node, &banlist);
        
        SSLi_hash2hex(ban->hash, hexhash);
-       Log_info("User %s kickbanned. Reason: '%s' Hash: %s IP: %s Banned for: %d seconds",
-                ban->name, ban->reason, hexhash, inet_ntoa(*((struct in_addr *)&ban->address)),
-                getIntConf(BAN_LENGTH));
+       Log_info_client(client, "User kickbanned. Reason: '%s' Hash: %s IP: %s Banned for: %d seconds",
+                       ban->name, ban->reason, hexhash, inet_ntoa(*((struct in_addr *)&ban->address)),
+                       getIntConf(BAN_LENGTH));
 }