diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-12-06 11:00:12 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-12-06 11:00:12 +0100 |
commit | e4b17fd39b476fefec73d0956e6f40bd7ec254fc (patch) | |
tree | 7cd75186208c5c8b897a88543bdcb379539e833e /src/modules/m_uhnames.cpp | |
parent | 33691d74dfb8b110c3c4247321fdc628bf680608 (diff) | |
parent | ecca6c2300056f1cff1a9c7cac03939ea3f6f9cc (diff) |
Merge branch 'master+cap'
Diffstat (limited to 'src/modules/m_uhnames.cpp')
-rw-r--r-- | src/modules/m_uhnames.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_uhnames.cpp b/src/modules/m_uhnames.cpp index 90bac54f5..ce9c517f4 100644 --- a/src/modules/m_uhnames.cpp +++ b/src/modules/m_uhnames.cpp @@ -24,9 +24,9 @@ class ModuleUHNames : public Module { - public: - GenericCap cap; + Cap::Capability cap; + public: ModuleUHNames() : cap(this, "userhost-in-names") { } @@ -52,7 +52,7 @@ class ModuleUHNames : public Module { if ((parameters.size()) && (!strcasecmp(parameters[0].c_str(),"UHNAMES"))) { - cap.ext.set(user, 1); + cap.set(user, true); return MOD_RES_DENY; } } @@ -61,7 +61,7 @@ class ModuleUHNames : public Module ModResult OnNamesListItem(User* issuer, Membership* memb, std::string& prefixes, std::string& nick) CXX11_OVERRIDE { - if (cap.ext.get(issuer)) + if (cap.get(issuer)) nick = memb->user->GetFullHost(); return MOD_RES_PASSTHRU; |