diff options
| author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-08-01 13:42:35 -0400 |
|---|---|---|
| committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-08-01 13:42:35 -0400 |
| commit | d59c1b95e18fd5c9bbec14b8b1b8aab989a3bce7 (patch) | |
| tree | 94471c29e06725ce1d28ee11ae408084cfd82d41 /modules | |
| parent | 2f6c0e435cbceb60c219f9f1cd925ae4ddffd4d9 (diff) | |
Cleanup in main.cpp.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/core/db_plain.cpp | 2 | ||||
| -rw-r--r-- | modules/core/os_quit.cpp | 2 | ||||
| -rw-r--r-- | modules/core/os_reload.cpp | 2 | ||||
| -rw-r--r-- | modules/core/os_set.cpp | 8 | ||||
| -rw-r--r-- | modules/core/os_shutdown.cpp | 2 | ||||
| -rw-r--r-- | modules/core/os_update.cpp | 2 | ||||
| -rw-r--r-- | modules/protocol/inspircd11.cpp | 6 | ||||
| -rw-r--r-- | modules/protocol/inspircd12.cpp | 6 | ||||
| -rw-r--r-- | modules/protocol/inspircd20.cpp | 6 |
9 files changed, 18 insertions, 18 deletions
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<Anope::string> ¶ms) { notice_lang(Config.s_OperServ, u, OPER_UPDATING); - save_data = 1; + save_data = true; return MOD_CONT; } diff --git a/modules/protocol/inspircd11.cpp b/modules/protocol/inspircd11.cpp index 7f98433d7..e7297b679 100644 --- a/modules/protocol/inspircd11.cpp +++ b/modules/protocol/inspircd11.cpp @@ -1004,21 +1004,21 @@ int anope_event_capab(const Anope::string &source, int ac, const char **av) { send_cmd("", "ERROR :m_globops is not loaded. This is required by Anope"); quitmsg = "ERROR: Remote server does not have the m_globops module loaded, and this is required."; - quitting = 1; + quitting = true; return MOD_STOP; } if (!has_servicesmod) { send_cmd("", "ERROR :m_services is not loaded. This is required by Anope"); quitmsg = "ERROR: Remote server does not have the m_services module loaded, and this is required."; - quitting = 1; + quitting = true; return MOD_STOP; } if (!has_hidechansmod) { send_cmd("", "ERROR :m_hidechans.so is not loaded. This is required by Anope"); quitmsg = "ERROR: Remote server deos not have the m_hidechans module loaded, and this is required."; - quitting = 1; + quitting = true; return MOD_STOP; } if (!has_svsholdmod) diff --git a/modules/protocol/inspircd12.cpp b/modules/protocol/inspircd12.cpp index 97cfbac29..61d51ed9a 100644 --- a/modules/protocol/inspircd12.cpp +++ b/modules/protocol/inspircd12.cpp @@ -1178,21 +1178,21 @@ int anope_event_capab(const Anope::string &source, int ac, const char **av) { send_cmd("", "ERROR :m_globops is not loaded. This is required by Anope"); quitmsg = "Remote server does not have the m_globops module loaded, and this is required."; - quitting = 1; + quitting = true; return MOD_STOP; } if (!has_servicesmod) { send_cmd("", "ERROR :m_services_account.so is not loaded. This is required by Anope"); quitmsg = "ERROR: Remote server does not have the m_services_account module loaded, and this is required."; - quitting = 1; + quitting = true; return MOD_STOP; } if (!has_hidechansmod) { send_cmd("", "ERROR :m_hidechans.so is not loaded. This is required by Anope"); quitmsg = "ERROR: Remote server does not have the m_hidechans module loaded, and this is required."; - quitting = 1; + quitting = true; return MOD_STOP; } if (!has_svsholdmod) diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp index 776ec00d4..69e648193 100644 --- a/modules/protocol/inspircd20.cpp +++ b/modules/protocol/inspircd20.cpp @@ -880,7 +880,7 @@ int anope_event_capab(const Anope::string &source, int ac, const char **av) { send_cmd("", "ERROR :Protocol mismatch, no or invalid protocol version given in CAPAB START"); quitmsg = "Protocol mismatch, no or invalid protocol version given in CAPAB START"; - quitting = 1; + quitting = true; return MOD_STOP; } @@ -1158,14 +1158,14 @@ int anope_event_capab(const Anope::string &source, int ac, const char **av) { send_cmd("", "ERROR :m_services_account.so is not loaded. This is required by Anope"); quitmsg = "ERROR: Remote server does not have the m_services_account module loaded, and this is required."; - quitting = 1; + quitting = true; return MOD_STOP; } if (!ModeManager::FindUserModeByName(UMODE_PRIV)) { send_cmd("", "ERROR :m_hidechans.so is not loaded. This is required by Anope"); quitmsg = "ERROR: Remote server does not have the m_hidechans module loaded, and this is required."; - quitting = 1; + quitting = true; return MOD_STOP; } if (!has_svsholdmod) |
