summaryrefslogtreecommitdiff
path: root/src/modules/m_uhnames.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-06 11:00:12 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-06 11:00:12 +0100
commite4b17fd39b476fefec73d0956e6f40bd7ec254fc (patch)
tree7cd75186208c5c8b897a88543bdcb379539e833e /src/modules/m_uhnames.cpp
parent33691d74dfb8b110c3c4247321fdc628bf680608 (diff)
parentecca6c2300056f1cff1a9c7cac03939ea3f6f9cc (diff)
Merge branch 'master+cap'
Diffstat (limited to 'src/modules/m_uhnames.cpp')
-rw-r--r--src/modules/m_uhnames.cpp8
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;