diff options
Diffstat (limited to 'src/modules/m_uhnames.cpp')
-rw-r--r-- | src/modules/m_uhnames.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_uhnames.cpp b/src/modules/m_uhnames.cpp index 830be12e8..574f90741 100644 --- a/src/modules/m_uhnames.cpp +++ b/src/modules/m_uhnames.cpp @@ -52,9 +52,10 @@ class ModuleUHNames : public Module output.append(" UHNAMES"); } - Priority Prioritize() + void Prioritize() { - return (Priority)ServerInstance->Modules->PriorityBefore("m_namesx.so"); + Module* namesx = ServerInstance->Modules->Find("m_namesx.so"); + ServerInstance->Modules->SetPriority(this, I_OnUserList, PRIO_BEFORE, &namesx); } virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line) |