mirror of
https://github.com/anope/anope.git
synced 2026-06-26 12:16:38 +02:00
Cleanup some excess whitespaces and tabs, and fix a few typos along the way.
This commit is contained in:
+3
-4
@@ -360,16 +360,16 @@ bool IRCDProto::IsNickValid(const Anope::string &nick)
|
||||
|
||||
if (nick.empty())
|
||||
return false;
|
||||
|
||||
|
||||
Anope::string special = "[]\\`_^{|}";
|
||||
|
||||
|
||||
for (unsigned i = 0; i < nick.length(); ++i)
|
||||
if (!(nick[i] >= 'A' && nick[i] <= 'Z') && !(nick[i] >= 'a' && nick[i] <= 'z')
|
||||
&& special.find(nick[i]) == Anope::string::npos
|
||||
&& (Config && Config->NickChars.find(nick[i]) == Anope::string::npos)
|
||||
&& (!i || (!(nick[i] >= '0' && nick[i] <= '9') && nick[i] != '-')))
|
||||
return false;
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -502,4 +502,3 @@ unsigned IRCDMessage::GetParamCount() const
|
||||
{
|
||||
return this->param_count;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user