diff options
-rw-r--r-- | src/cmd_who.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index 508956c44..725d19bb7 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -84,6 +84,9 @@ extern "C" command_t* init_command(InspIRCd* Instance) bool cmd_who::CanView(chanrec* chan, userrec* user) { + if (!user || !chan) + return false; + /* Execute items in fastest-to-execute first order */ if (*user->oper) return true; |