diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/commands/ns_logout.cpp | 2 | ||||
| -rw-r--r-- | modules/commands/os_set.cpp | 4 |
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()); |
