Commit 58323246 authored by Dustin L. Howett's avatar Dustin L. Howett

The more important check here is that msgbuf contains something, not that it exists.

parent 903da688
......@@ -59,7 +59,7 @@ _EVENT(PRIVMSG) {
int argc = 0;
int nargmax = 1;
char **argv = (char**)calloc(nargmax, sizeof(char*));
if(msgbuf) {
if(msgbuf && *msgbuf != '\0') {
int argstart = 0;
for(unsigned int i = 0; i <= strlen(msgbuf); ++i) {
if(msgbuf[i] == ' ' || msgbuf[i] == '\0') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment