Stop processing NICK when no parameters are given

This commit is contained in:
Les De Ridder 2017-03-17 14:50:02 +01:00
parent c198279238
commit 88c8a99bb7
No known key found for this signature in database
GPG Key ID: 5EC132DFA85DB372
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ class Connection
if(message.parameters.length == 0)
{
sendErrNoNickGiven();
return;
}
auto newNick = message.parameters[0];