summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-07 23:06:49 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-07 23:06:49 +0000
commit2a80ef7eaf25535c7688d7859bbe5451508dc194 (patch)
tree376cf3731969a355815dff6ce4b8cbcdefc48940
parentb57568ecc46296ba3a0e06d770eceff40cc9aee4 (diff)
Whoops
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5884 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/cmd_who.cpp3
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;