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/protocol | |
| parent | 2f6c0e435cbceb60c219f9f1cd925ae4ddffd4d9 (diff) | |
Cleanup in main.cpp.
Diffstat (limited to 'modules/protocol')
| -rw-r--r-- | modules/protocol/inspircd11.cpp | 6 | ||||
| -rw-r--r-- | modules/protocol/inspircd12.cpp | 6 | ||||
| -rw-r--r-- | modules/protocol/inspircd20.cpp | 6 |
3 files changed, 9 insertions, 9 deletions
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) |
