summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-23 13:59:43 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-23 13:59:43 +0000
commitfbccd7e83126ca1ad3e14291aaf771ef4f77121a (patch)
tree15029d9f5594a04ce85c5b1c02d3c693f76dd7b0 /src/modules
parentc1165765b185c6c66865af9f82fa99459f5dce52 (diff)
Fixed OnUserQuit... again.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2856 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index eb3ec4f74..b496b5706 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -402,7 +402,8 @@ class ModuleSSL : public Module
virtual void OnUserQuit(userrec* user, std::string reason)
{
- CloseSession(&sessions[user->fd]);
+ if (user->fd > -1)
+ CloseSession(&sessions[user->fd]);
}
// :kenny.chatspike.net 320 Om Epy|AFK :is a Secure Connection