Rice it up, biatch

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7958 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2007-08-28 17:56:41 +00:00
parent b2b111041d
commit 02b2c0ac2b

View File

@ -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!