]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Don't display this notice on an empty servername (which will happen if an incoming...
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 26 Oct 2006 13:59:00 +0000 (13:59 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 26 Oct 2006 13:59:00 +0000 (13:59 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5540 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree.cpp

index 439947f1c5a4613ee17995692ab735970d48c266..344c25df26d6ade47c66592683ff16e09c934cad 100644 (file)
@@ -3464,7 +3464,9 @@ class TreeSocket : public InspSocket
                {
                        Squit(s,"Remote host closed the connection");
                }
-               this->Instance->SNO->WriteToSnoMask('l',"Connection to '\2%s\2' failed.",quitserver.c_str());
+
+               if (quitserver != "")
+                       this->Instance->SNO->WriteToSnoMask('l',"Connection to '\2%s\2' failed.",quitserver.c_str());
        }
 
        virtual int OnIncomingConnection(int newsock, char* ip)