1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 22:26:39 +02:00

Cleanup in main.cpp.

This commit is contained in:
Naram Qashat
2010-08-01 13:42:35 -04:00
parent 2f6c0e435c
commit d59c1b95e1
12 changed files with 50 additions and 54 deletions
+4 -4
View File
@@ -72,14 +72,14 @@ class CommandOSSet : public Command
if (setting.equals_ci("ON"))
{
readonly = 1;
readonly = true;
Alog() << "Read-only mode activated";
close_log();
notice_lang(Config.s_OperServ, u, OPER_SET_READONLY_ON);
}
else if (setting.equals_ci("OFF"))
{
readonly = 0;
readonly = false;
open_log();
Alog() << "Read-only mode deactivated";
notice_lang(Config.s_OperServ, u, OPER_SET_READONLY_OFF);
@@ -219,13 +219,13 @@ class CommandOSSet : public Command
if (setting.equals_ci("ON"))
{
noexpire = 1;
noexpire = true;
Alog() << "No expire mode activated";
notice_lang(Config.s_OperServ, u, OPER_SET_NOEXPIRE_ON);
}
else if (setting.equals_ci("OFF"))
{
noexpire = 0;
noexpire = false;
Alog() << "No expire mode deactivated";
notice_lang(Config.s_OperServ, u, OPER_SET_NOEXPIRE_OFF);
}