]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/treesocket2.cpp
Allow enabling the message-tags cap without client-only tags.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / treesocket2.cpp
index 06c547ac31fe961f4cadc5ecd7fdbff5881852d9..f15907b13e8dc43a059514e210bd06a5e388fd94 100644 (file)
@@ -2,7 +2,7 @@
  * InspIRCd -- Internet Relay Chat Daemon
  *
  *   Copyright (C) 2019 linuxdaemon <linuxdaemon.irc@gmail.com>
- *   Copyright (C) 2013, 2018-2019 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2013, 2018-2020 Sadie Powell <sadie@witchery.services>
  *   Copyright (C) 2013 Adam <Adam@anope.org>
  *   Copyright (C) 2012-2016 Attila Molnar <attilamolnar@hush.com>
  *   Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
@@ -407,7 +407,7 @@ void TreeSocket::OnTimeout()
 
 void TreeSocket::Close()
 {
-       if (fd < 0)
+       if (!HasFd())
                return;
 
        ServerInstance->GlobalCulls.AddItem(this);
@@ -416,7 +416,7 @@ void TreeSocket::Close()
 
        // Connection closed.
        // If the connection is fully up (state CONNECTED)
-       // then propogate a netsplit to all peers.
+       // then propagate a netsplit to all peers.
        if (MyRoot)
                MyRoot->SQuit(getError(), true);