Fix error when sending commind with zero tokens

This commit is contained in:
John Reese 2011-01-13 22:00:08 -05:00
parent 0c5829ff0e
commit 7bcae40012
1 changed files with 5 additions and 0 deletions

View File

@ -299,6 +299,11 @@ class CNotifoMod : public CModule
VCString tokens;
int token_count = command.Split(" ", tokens, false);
if (token_count < 1)
{
return;
}
CString action = tokens[0].AsLower();
// SET command