diff --git a/src/MatrixEventHandler.c b/src/MatrixEventHandler.c index bf42124..fa44d2d 100644 --- a/src/MatrixEventHandler.c +++ b/src/MatrixEventHandler.c @@ -255,7 +255,7 @@ ParseeBotHandler(ParseeData *data, HashMap *event) return; } - if (*body != '!') + if (!body || *body != '!') { /* All commands are to be marked with a ! */ Free(profile);