]> jfr.im git - irc/quakenet/newserv.git/blobdiff - channel/channelbans.c
CHANSERV: don't delete the last user/channel to prevent id reuse
[irc/quakenet/newserv.git] / channel / channelbans.c
index 73738d47dd5c97f9977ac72feb68f901e960f689..fc86bc760fafe50a2b7e210c1717a53a9419bf48 100644 (file)
@@ -61,7 +61,7 @@ int nickmatchban(nick *np, chanban *bp, int visibleonly) {
    * clearing it to 0 if the user isn't sethosted or +x.  Simplifies logic
    * later.  */
   
-  if (!(IsSetHost(np) || (IsAccount(np) && IsHideHost(np)))
+  if (!(IsSetHost(np) || (IsAccount(np) && IsHideHost(np))))
     visibleonly=0;
 
   if ((bp->flags & CHANBAN_IP) && !visibleonly) {