]> jfr.im git - irc/DALnet/bahamut.git/commitdiff
Fix bug with /rwho -h not hiding hostmasked clients properly
authorRyan Smith <redacted>
Mon, 31 Jan 2022 05:54:51 +0000 (00:54 -0500)
committerRyan Smith <redacted>
Mon, 31 Jan 2022 05:54:51 +0000 (00:54 -0500)
src/m_rwho.c

index 63b357877c805581fbaa0208d168a92da9ea7640..9b1e20752a480b358bd4b5aea42b7396c02ff99d 100644 (file)
@@ -994,7 +994,7 @@ static int rwho_match(aClient *cptr, int *failcode, aClient **failclient)
         return 0;
 
     if ((rwho_opts.check[1] & RWM_HOST) &&
-        !rwho_opts.host_func[1](rwho_opts.host_pat[1], cptr->user->host) && !rwho_opts.host_func[1](rwho_opts.host_pat[1], cptr->user->mhost))
+        !rwho_opts.host_func[1](rwho_opts.host_pat[1], cptr->user->host) || !rwho_opts.host_func[1](rwho_opts.host_pat[1], cptr->user->mhost))
         return 0;
 
 #ifdef RWHO_PROBABILITY