summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-05-21 04:57:27 -0400
committerAdam <Adam@anope.org>2011-05-21 04:57:27 -0400
commit115f94bfc23c481eab50298895f76bd494179cd8 (patch)
treeeeda28c466e9f2f532b2dee75cb817eba9066357 /include/modules.h
parent7e5727288d9b2da5b53476b91f8cb9fe96e14d53 (diff)
Made Anope able to process normally when disconnected from the uplink and not sleep(), enable usage of non-blocking connect() and default all sockets to non blocking mode. Some cleanup to m_ssl and some cleanup to main.cpp.
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/modules.h b/include/modules.h
index d24348b48..ff0c576a0 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -481,12 +481,9 @@ class CoreExport Module : public Extensible
*/
virtual void OnChanExpire(ChannelInfo *ci) { }
- /** Called before Anope connects to its uplink
- * @param u The uplink we're going to connect to
- * @param Number What number the uplink is
- * @return Other than EVENT_CONTINUE to stop attempting to connect
+ /** Called before Anope connecs to its uplink
*/
- virtual EventReturn OnPreServerConnect(Uplink *u, int Number) { return EVENT_CONTINUE; }
+ virtual void OnPreServerConnect() { }
/** Called when Anope connects to its uplink
*/
@@ -1079,7 +1076,7 @@ enum Implementation
I_OnModuleLoad, I_OnModuleUnload,
/* Other */
- I_OnReload, I_OnPreServerConnect, I_OnNewServer, I_OnServerConnect, I_OnPreUplinkSync, I_OnServerDisconnect, I_OnPreCommandRun,
+ I_OnReload, I_OnNewServer, I_OnPreServerConnect, I_OnServerConnect, I_OnPreUplinkSync, I_OnServerDisconnect, I_OnPreCommandRun,
I_OnPreCommand, I_OnPostCommand, I_OnRestart, I_OnShutdown, I_OnSignal,
I_OnServerQuit, I_OnTopicUpdated,
I_OnEncrypt, I_OnDecrypt,
@@ -1205,8 +1202,7 @@ class CoreExport ModuleManager
*/
static void ClearCallBacks(Module *m);
- /** Unloading all modules, NEVER call this when Anope isn't shutting down.
- * Ever.
+ /** Unloading all modules except the protocol module.
*/
static void UnloadAll();