1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 09:46:40 +02:00

Rewrote how commands are handled within Anope.

This allows naming commands and having spaces within command names.
This commit is contained in:
Adam
2011-07-14 02:31:12 -04:00
parent 924f6849fe
commit f858164dee
227 changed files with 8808 additions and 12352 deletions
+3 -1
View File
@@ -110,7 +110,7 @@ class UplinkSocket : public ConnectionSocket
~UplinkSocket()
{
if (Me && Me->GetUplink() && Me->GetUplink()->IsSynced())
if (Me && !Me->GetLinks().empty() && Me->GetLinks()[0]->IsSynced())
{
FOREACH_MOD(I_OnServerDisconnect, OnServerDisconnect());
@@ -397,6 +397,8 @@ int main(int ac, char **av, char **envp)
quitmsg = "Terminating, reason unknown";
Log() << quitmsg;
delete UplinkSock;
ModuleManager::UnloadAll();
SocketEngine::Shutdown();
for (Module *m; (m = ModuleManager::FindFirstOf(PROTOCOL)) != NULL;)