aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_ojoin.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-02-09 16:13:04 +0000
committerGravatar Sadie Powell2020-02-09 17:19:31 +0000
commit61070d489478793a6ba2ad0bd2ecc90d14555030 (patch)
tree94f196542ccc3c4cd735730b9e666459a82f574a /src/modules/m_ojoin.cpp
parentMove FindUUID to the UserManager class. (diff)
Move FindNick to UserManager.
Diffstat (limited to 'src/modules/m_ojoin.cpp')
-rw-r--r--src/modules/m_ojoin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp
index edd0a1e70..da499ae36 100644
--- a/src/modules/m_ojoin.cpp
+++ b/src/modules/m_ojoin.cpp
@@ -93,7 +93,7 @@ class NetworkPrefix : public PrefixMode
ModResult AccessCheck(User* source, Channel* channel, std::string &parameter, bool adding) override
{
- User* theuser = ServerInstance->FindNick(parameter);
+ User* theuser = ServerInstance->Users.Find(parameter);
// remove own privs?
if (source == theuser && !adding)
return MOD_RES_ALLOW;