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:
parent
8ca6455e52
commit
4616f405ab
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user