1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-03-31 17:37:16 +02:00

Simplify the name validation when changing the nickname in IRC sessions.

This commit is contained in:
Sandu Liviu Catalin 2016-05-25 21:16:49 +03:00
parent 8ca6455e52
commit 4616f405ab

View File

@ -395,7 +395,7 @@ void Session::SetNick(CSStr nick)
// Validate the handle
Validate();
// Validate the specified nick name
if (!nick || strlen(nick) <= 0)
if (!nick || *nick == '\0')
{
STHROWF("Invalid IRC nickname");
}