diff options
| author | 2012-05-28 01:30:57 +0200 | |
|---|---|---|
| committer | 2012-05-28 01:30:57 +0200 | |
| commit | cd9c91300a4bcec667ce39dd5c69aa865d28f7c9 (patch) | |
| tree | 2274dc5254e5a1372fc323b141ac55b75133249b /src/modules | |
| parent | Merge pull request #143 from attilamolnar/insp21+sestatsfix (diff) | |
m_showwhois Fix potential crash in WHOISNOTICE handler
Diffstat (limited to 'src/modules')
| -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 b7dba1b06..e62385eaf 100644 --- a/src/modules/m_showwhois.cpp +++ b/src/modules/m_showwhois.cpp @@ -81,6 +81,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) |
