]> jfr.im git - irc/freenode/syn.git/commitdiff
don't redundantly process identhosts that match u->host
authorjesopo <redacted>
Wed, 28 Oct 2020 14:06:51 +0000 (14:06 +0000)
committerNicole Kleinhoff <redacted>
Fri, 6 Nov 2020 21:10:16 +0000 (21:10 +0000)
gateways.c

index 7eebb5879b6af2048776b40f182595b032293901..c5f3158ab4b0735b8a70e1727bd9213733fe74bd 100644 (file)
@@ -96,7 +96,7 @@ static void check_user(hook_user_nick_t *data, bool isnewuser)
 
     const char *identhost = decode_hex_ip(ident);
 
-    if (identhost)
+    if (identhost && strcmp(identhost, u->ip) != 0)
     {
         if (maybe_kline_user_host(u, identhost))
         {