Code cleanup
[umurmur.git] / src / ban.c
index 229b0de1fd637232322e5a7c9dec8885a2d2b63c..3c7c4ffa656ea26c2ab285192b03f9466d4f08d5 100644 (file)
--- a/src/ban.c
+++ b/src/ban.c
@@ -36,6 +36,7 @@
 #include "ban.h"
 #include "conf.h"
 #include "ssl.h"
+#include "util.h"
 
 static void Ban_saveBanFile(void);
 static void Ban_readBanFile(void);
@@ -95,7 +96,7 @@ void Ban_UserBan(client_t *client, char *reason)
        SSLi_hash2hex(ban->hash, hexhash);
 
        Log_info_client(client, "User kickbanned. Reason: '%s' Hash: %s IP: %s Banned for: %d seconds",
-               ban->reason, hexhash, client->addressString, ban->duration);
+               ban->reason, hexhash, Util_clientAddressToString(client), ban->duration);
 }