From 7bcae4001250059222e90b844cbecf951ec915de Mon Sep 17 00:00:00 2001 From: John Reese Date: Thu, 13 Jan 2011 22:00:08 -0500 Subject: [PATCH] Fix error when sending commind with zero tokens --- notifo.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/notifo.cpp b/notifo.cpp index a01bbf9..6dbb975 100644 --- a/notifo.cpp +++ b/notifo.cpp @@ -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