diff options
| author | 2010-04-02 10:39:15 -0500 | |
|---|---|---|
| committer | 2010-04-02 10:39:15 -0500 | |
| commit | 3cf993500544c2157992650da2487bfa89be405d (patch) | |
| tree | 6c90eba384e2361114752a28a166ef4d1fe6d80b /src/modules | |
| parent | Split up API_VERSION number (diff) | |
Use FindNickOnly in a few commands to prevent enumerating users via UID walking
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_dccallow.cpp | 2 | ||||
| -rw-r--r-- | src/modules/m_sslinfo.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 68090a8c3..5995c1b28 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -88,7 +88,7 @@ class CommandDccallow : public Command } std::string nick = parameters[0].substr(1); - User *target = ServerInstance->FindNick(nick); + User *target = ServerInstance->FindNickOnly(nick); if (target) { diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 3bc94bbaa..e27161dac 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -83,7 +83,7 @@ class CommandSSLInfo : public Command CmdResult Handle (const std::vector<std::string> ¶meters, User *user) { - User* target = ServerInstance->FindNick(parameters[0]); + User* target = ServerInstance->FindNickOnly(parameters[0]); if (!target) { |
