From 5189e878d24e7e65de1e81aaab10b8d5d9dd6cae Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 6 Aug 2014 13:04:22 +0200 Subject: core_who Remove redundant NULL checks from CanView() --- src/coremods/core_who.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/coremods/core_who.cpp b/src/coremods/core_who.cpp index 18a63ff3c..39ea347dc 100644 --- a/src/coremods/core_who.cpp +++ b/src/coremods/core_who.cpp @@ -171,9 +171,6 @@ bool CommandWho::whomatch(User* cuser, User* user, const char* matchtext) bool CommandWho::CanView(Channel* chan, User* user) { - if (!user || !chan) - return false; - /* Bug #383 - moved higher up the list, because if we are in the channel * we can see all its users */ -- cgit v1.2.3