mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
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:
parent
b2b111041d
commit
02b2c0ac2b
@ -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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user