From 1feeb86cd3eef627c83e89cba191a77c2f009483 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 22 Sep 2018 11:38:08 +0200 Subject: [PATCH] Fix crash bug in m_whox. --- src/modules/m_whox.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/m_whox.c b/src/modules/m_whox.c index a8ca156ed..9bc1cc598 100644 --- a/src/modules/m_whox.c +++ b/src/modules/m_whox.c @@ -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' */