diff options
Diffstat (limited to 'src/modules/m_showwhois.cpp')
-rw-r--r-- | src/modules/m_showwhois.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp index 691887429..6eec64bd5 100644 --- a/src/modules/m_showwhois.cpp +++ b/src/modules/m_showwhois.cpp @@ -76,6 +76,9 @@ class WhoisNoticeCmd : public Command CmdResult Handle(const std::vector<std::string> ¶meters, User *user) { User* dest = ServerInstance->FindNick(parameters[0]); + if (!dest) + return CMD_FAILURE; + User* source = ServerInstance->FindNick(parameters[1]); if (IS_LOCAL(dest) && source) |