From 02b2c0ac2b45b130c36c8e1df4da654dfb2c482b Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 28 Aug 2007 17:56:41 +0000 Subject: Rice it up, biatch git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7958 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index 42652d801..0ba657b85 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -32,9 +32,9 @@ bool SpanningTreeUtilities::IsSID(const std::string &str) { /* Returns true if the string given is exactly 3 characters long, - * contains no '.' chars and starts with a digit. + * starts with a digit, and has no '.' in the other 2 */ - return (str.length() == 3) && (str[0] != '.' && str[1] != '.' && str[2] != '.') && (isdigit(str[0])); + return ((str.length() == 3) && isdigit(str[0]) && (str[1] != '.' && str[2] != '.')); } /** Yay for fast searches! -- cgit v1.2.3