summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-06 17:33:59 -0400
committerAdam <Adam@anope.org>2011-08-06 17:33:59 -0400
commita6dd65f916adbdd4edf6494a2d3ab2d94484189f (patch)
treebb0a25159930a991ad355f2bb58604bbe1e65fcb /modules/commands
parent0448e386dee2d6a591e4a67586b5ad059127a8c3 (diff)
Fixed suepradmin
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/ns_logout.cpp2
-rw-r--r--modules/commands/os_set.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/ns_logout.cpp b/modules/commands/ns_logout.cpp
index 476330a11..3000c030d 100644
--- a/modules/commands/ns_logout.cpp
+++ b/modules/commands/ns_logout.cpp
@@ -42,7 +42,7 @@ class CommandNSLogout : public Command
if (!nick.empty() && !param.empty() && param.equals_ci("REVALIDATE") && nickserv)
nickserv->Validate(u2);
- u2->isSuperAdmin = 0; /* Dont let people logout and remain a SuperAdmin */
+ u2->SuperAdmin = 0; /* Dont let people logout and remain a SuperAdmin */
Log(LOG_COMMAND, u, this) << "to logout " << u2->nick;
/* Remove founder status from this user in all channels */
diff --git a/modules/commands/os_set.cpp b/modules/commands/os_set.cpp
index 2a50f851c..abee78e77 100644
--- a/modules/commands/os_set.cpp
+++ b/modules/commands/os_set.cpp
@@ -81,14 +81,14 @@ class CommandOSSet : public Command
source.Reply(_("SuperAdmin setting not enabled in services.conf"));
else if (setting.equals_ci("ON"))
{
- u->isSuperAdmin = 1;
+ u->SuperAdmin = true;
source.Reply(_("You are now a SuperAdmin"));
Log(LOG_ADMIN, u, this) << "SUPERADMIN ON";
ircdproto->SendGlobops(source.owner, _("%s is now a Super-Admin"), u->nick.c_str());
}
else if (setting.equals_ci("OFF"))
{
- u->isSuperAdmin = 0;
+ u->SuperAdmin = false;
source.Reply(_("You are no longer a SuperAdmin"));
Log(LOG_ADMIN, u, this) << "SUPERADMIN OFF";
ircdproto->SendGlobops(source.owner, _("%s is no longer a Super-Admin"), u->nick.c_str());