summaryrefslogtreecommitdiff
path: root/modules/core/cs_clone.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-01 22:37:27 -0400
committerAdam <Adam@anope.org>2011-08-01 22:37:27 -0400
commitf7adc0b35b50f06706872a161f1c7476e6e6981e (patch)
tree91fbe281f2772136a327fd4fc4c64740d1ab65ab /modules/core/cs_clone.cpp
parent710c02f3bd3581b7c5b3d48e7604756975219fc8 (diff)
Rewrote the access systems and added a flags access system
Diffstat (limited to 'modules/core/cs_clone.cpp')
-rw-r--r--modules/core/cs_clone.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/core/cs_clone.cpp b/modules/core/cs_clone.cpp
index 9ce877825..b7f8763f7 100644
--- a/modules/core/cs_clone.cpp
+++ b/modules/core/cs_clone.cpp
@@ -36,7 +36,7 @@ public:
return;
}
- if (!check_access(u, ci, CA_SET))
+ if (!ci->HasPriv(u, CA_SET))
{
source.Reply(ACCESS_DENIED);
return;
@@ -111,7 +111,7 @@ public:
}
else if (what.equals_ci("ACCESS"))
{
- target_ci->ClearAccess();
+ /*target_ci->ClearAccess();
for (unsigned i = 0; i < ci->GetAccessCount(); ++i)
{
ChanAccess *access = ci->GetAccess(i);
@@ -119,6 +119,8 @@ public:
}
source.Reply(_("All access entries from \002%s\002 have been transferred to \002%s\002"), channel.c_str(), target.c_str());
+ XXX
+ */
}
else if (what.equals_ci("AKICK"))
{