diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-25 01:23:23 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-25 01:23:23 +0000 |
commit | 1528727cc8d59ca9ef9e9929ad4ae598e7f19771 (patch) | |
tree | cf2a00d5350046bd5e7c6ac9f83e02e0b341ef7e /src | |
parent | 492b543c7ec4e11017b0cd7d338bc01e6ecc700c (diff) |
Fixed a crash when shutdown when not connected
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2915 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 801d7fcc1..8ffc8df13 100644 --- a/src/main.c +++ b/src/main.c @@ -233,7 +233,8 @@ static void services_shutdown() if (!quitmsg) quitmsg = "Terminating, reason unknown"; Alog() << quitmsg; - if (started) { + if (started && UplinkSock) + { ircdproto->SendSquit(Config.ServerName, quitmsg); if (uplink) delete [] uplink; |