]> jfr.im git - solanum.git/blobdiff - src/client.c
Fix regressions in can_send() caused by hooking it for override and modularized chann...
[solanum.git] / src / client.c
index b3f33c3fc27b60158870bdd6acc89b12a83ec95e..144e3288a0205917aac7a4aac7b2bcbb49f7b1fe 100644 (file)
@@ -418,10 +418,10 @@ notify_banned_client(struct Client *client_p, struct ConfItem *aconf, int ban)
        const char *reason = NULL;
        const char *exit_reason = conn_closed;
 
-       if(ConfigFileEntry.kline_with_reason && !EmptyString(aconf->passwd))
+       if(ConfigFileEntry.kline_with_reason)
        {
-               reason = aconf->passwd;
-               exit_reason = aconf->passwd;
+               reason = get_user_ban_reason(aconf);
+               exit_reason = reason;
        }
        else
        {