diff --git a/botthread.c b/botthread.c index d056cb5..4a49d0c 100644 --- a/botthread.c +++ b/botthread.c @@ -366,7 +366,7 @@ tmpChans->count++; } else { - if ((tmpUser != tmpChans->nextUser) || (tmpChans->count != MAX_COUNT)) { + if ((tmpUser != tmpChans->nextUser) && (tmpChans->count == MAX_COUNT)) { writeLog(0,"MAXCNT"); tmpChans->count = MAX_COUNT; goto findUser;