diff options
Diffstat (limited to 'src/modules/m_namesx.cpp')
-rw-r--r-- | src/modules/m_namesx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp index d0970ef9c..8c9c4e0c4 100644 --- a/src/modules/m_namesx.cpp +++ b/src/modules/m_namesx.cpp @@ -60,7 +60,7 @@ class ModuleNamesX : public Module return MOD_RES_PASSTHRU; } - void OnNamesListItem(User* issuer, User* user, Channel* channel, std::string &prefixes, std::string &nick) + void OnNamesListItem(User* issuer, Membership* memb, std::string &prefixes, std::string &nick) { if (!cap.ext.get(issuer)) return; @@ -69,7 +69,7 @@ class ModuleNamesX : public Module if (nick.empty()) return; - prefixes = channel->GetAllPrefixChars(user); + prefixes = memb->chan->GetAllPrefixChars(memb->user); } void OnEvent(Event *ev) |