mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-04-02 10:27:13 +02:00
Simplify the name validation when changing the nickname in IRC sessions.
This commit is contained in:
parent
8ca6455e52
commit
4616f405ab
@ -395,7 +395,7 @@ void Session::SetNick(CSStr nick)
|
|||||||
// Validate the handle
|
// Validate the handle
|
||||||
Validate();
|
Validate();
|
||||||
// Validate the specified nick name
|
// Validate the specified nick name
|
||||||
if (!nick || strlen(nick) <= 0)
|
if (!nick || *nick == '\0')
|
||||||
{
|
{
|
||||||
STHROWF("Invalid IRC nickname");
|
STHROWF("Invalid IRC nickname");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user