diff --git a/bot.c b/bot.c index 183226c..0702e55 100644 --- a/bot.c +++ b/bot.c @@ -191,6 +191,8 @@ break; case 'E': tmpVal = atoi(strtok(NULL,"\n")); + if (tmpVal != 0x0) + tmpVal = 1; if (tmpChan->modes[CHAN_EXCLUSIVE] != tmpVal) { tmpChan->modes[CHAN_EXCLUSIVE] = tmpVal; sprintf(qryStr,"UPDATE channels SET exclusive = %i WHERE channel = '%s'",tmpVal,tmpChan->channel);