mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
m_showwhois Fix potential crash in WHOISNOTICE handler
This commit is contained in:
parent
a441c1b1be
commit
cf4b99e9c6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user