From d59c1b95e18fd5c9bbec14b8b1b8aab989a3bce7 Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Sun, 1 Aug 2010 13:42:35 -0400 Subject: Cleanup in main.cpp. --- modules/core/db_plain.cpp | 2 +- modules/core/os_quit.cpp | 2 +- modules/core/os_reload.cpp | 2 +- modules/core/os_set.cpp | 8 ++++---- modules/core/os_shutdown.cpp | 2 +- modules/core/os_update.cpp | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) (limited to 'modules/core') diff --git a/modules/core/db_plain.cpp b/modules/core/db_plain.cpp index 15a116b2e..84e569f9a 100644 --- a/modules/core/db_plain.cpp +++ b/modules/core/db_plain.cpp @@ -555,7 +555,7 @@ class DBPlain : public Module Alog() << "Unable to back up database!"; if (!Config.NoBackupOkay) - quitting = 1; + quitting = true; return; } diff --git a/modules/core/os_quit.cpp b/modules/core/os_quit.cpp index a2c86bc82..47f3daba3 100644 --- a/modules/core/os_quit.cpp +++ b/modules/core/os_quit.cpp @@ -27,7 +27,7 @@ class CommandOSQuit : public Command if (Config.GlobalOnCycle) oper_global("", "%s", Config.GlobalOnCycleMessage.c_str()); - quitting = 1; + quitting = true; return MOD_CONT; } diff --git a/modules/core/os_reload.cpp b/modules/core/os_reload.cpp index 722a6bd27..a01625026 100644 --- a/modules/core/os_reload.cpp +++ b/modules/core/os_reload.cpp @@ -25,7 +25,7 @@ class CommandOSReload : public Command if (!read_config(1)) { quitmsg = "Error during the reload of the configuration file!"; - quitting = 1; + quitting = true; } FOREACH_MOD(I_OnReload, OnReload(false)); diff --git a/modules/core/os_set.cpp b/modules/core/os_set.cpp index 74398cb9a..e46d91bb7 100644 --- a/modules/core/os_set.cpp +++ b/modules/core/os_set.cpp @@ -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); } diff --git a/modules/core/os_shutdown.cpp b/modules/core/os_shutdown.cpp index c65a21673..c92713f83 100644 --- a/modules/core/os_shutdown.cpp +++ b/modules/core/os_shutdown.cpp @@ -26,7 +26,7 @@ class CommandOSShutdown : public Command if (Config.GlobalOnCycle) oper_global("", "%s", Config.GlobalOnCycleMessage.c_str()); - shutting_down = 1; + shutting_down = true; return MOD_CONT; } diff --git a/modules/core/os_update.cpp b/modules/core/os_update.cpp index 0765b6acd..dbe6bef24 100644 --- a/modules/core/os_update.cpp +++ b/modules/core/os_update.cpp @@ -23,7 +23,7 @@ class CommandOSUpdate : public Command CommandReturn Execute(User *u, const std::vector ¶ms) { notice_lang(Config.s_OperServ, u, OPER_UPDATING); - save_data = 1; + save_data = true; return MOD_CONT; } -- cgit