]> jfr.im git - irc/unrealircd/unrealircd.git/commitdiff
Fix crash bug in m_whox.
authorBram Matthys <redacted>
Sat, 22 Sep 2018 09:38:08 +0000 (11:38 +0200)
committerBram Matthys <redacted>
Sat, 22 Sep 2018 09:38:08 +0000 (11:38 +0200)
src/modules/m_whox.c

index a8ca156ed3deb4d035e12ca76b9150b9719d5d44..9bc1cc598e1714cb210d89fddeaa0f0e2fdb9f07 100644 (file)
@@ -277,7 +277,11 @@ CMD_FUNC(m_whox)
                }
 
                if (!IsOper(sptr))
-                       *umodes = *umodes & UMODE_OPER; /* these are usermodes regular users may search for. just oper now. */
+               {
+                       /* these are usermodes regular users may search for. just oper now. */
+                       fmt.umodes &= UMODE_OPER;
+                       fmt.noumodes &= UMODE_OPER;
+               }
        }
 
        /* '/who #some_channel' */