mirror of https://github.com/SeanOMik/znc-push.git
Fix error when sending commind with zero tokens
This commit is contained in:
parent
0c5829ff0e
commit
7bcae40012
|
@ -299,6 +299,11 @@ class CNotifoMod : public CModule
|
||||||
VCString tokens;
|
VCString tokens;
|
||||||
int token_count = command.Split(" ", tokens, false);
|
int token_count = command.Split(" ", tokens, false);
|
||||||
|
|
||||||
|
if (token_count < 1)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
CString action = tokens[0].AsLower();
|
CString action = tokens[0].AsLower();
|
||||||
|
|
||||||
// SET command
|
// SET command
|
||||||
|
|
Loading…
Reference in New Issue