aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_servprotect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_servprotect.cpp')
-rw-r--r--src/modules/m_servprotect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_servprotect.cpp b/src/modules/m_servprotect.cpp
index 7a344a04f..2c216c0d6 100644
--- a/src/modules/m_servprotect.cpp
+++ b/src/modules/m_servprotect.cpp
@@ -92,7 +92,7 @@ class ModuleServProtectMode : public Module, public Whois::EventListener, public
/* Check if the parameter is a valid nick/uuid
*/
- User *u = ServerInstance->FindNick(param);
+ User *u = ServerInstance->Users.Find(param);
if (u)
{
Membership* memb = chan->GetUser(u);