]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
If we get an unknown prefix character on a user when they join, we throw a fit and...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 23 Aug 2006 21:43:32 +0000 (21:43 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 23 Aug 2006 21:43:32 +0000 (21:43 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5004 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree.cpp

index 1485c709a2094897858c24452c1f931f79b31049..8b059e297dd51834f9b69af8ca065c8f952452cf 100644 (file)
@@ -1401,6 +1401,12 @@ class TreeSocket : public InspSocket
                                                mode_users[modectr++] = usr;
                                                charlcat(modestring,mh->GetModeChar(),MAXBUF);
                                        }
+                                       else
+                                       {
+                                               this->Instance->WriteOpers("ERROR: We received a user with an unknown prefix '%c'. Closed connection to avoid a desync.",mh->GetPrefix());
+                                               this->WriteLine(std::string("ERROR :What?! You sent me a mode prefix i cant handle ('")+mh->GetModeChar()+"'). Closing connection to avoid desync.");
+                                               return false;
+                                       }
                                        usr++;
                                        permissions++;
                                }