summaryrefslogtreecommitdiff
path: root/modules/chanserv/clone.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/chanserv/clone.cpp')
-rw-r--r--modules/chanserv/clone.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/modules/chanserv/clone.cpp b/modules/chanserv/clone.cpp
index 343e6c5b2..a63f33313 100644
--- a/modules/chanserv/clone.cpp
+++ b/modules/chanserv/clone.cpp
@@ -61,7 +61,6 @@ public:
User *u = source.GetUser();
ChanServ::Channel *ci = ChanServ::Find(channel);
- bool override = false;
if (ci == NULL)
{
@@ -84,15 +83,11 @@ public:
if (!source.IsFounder(ci) || !source.IsFounder(target_ci))
{
- if (!source.HasPriv("chanserv/administration"))
+ if (!source.HasOverridePriv("chanserv/administration"))
{
source.Reply(_("Access denied. You do not have the privilege \002{0}\002 on \002{1}\002 and \002{2}\002."), "FOUNDER", ci->GetName(), target_ci->GetName());
return;
}
- else
- {
- override = true;
- }
}
if (what.equals_ci("ALL"))
@@ -209,7 +204,7 @@ public:
return;
}
- logger.Command(override ? LogType::OVERRIDE : LogType::COMMAND, source, ci, _("{source} used {command} on {channel} to clone {0} to {1}"),
+ logger.Command(source, ci, _("{source} used {command} on {channel} to clone {0} to {1}"),
what.empty() ? "everything from it" : what, target_ci->GetName());
}