X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/50ea69b02b099f758afee426f6da931bf42c9a54..8dc0685213ead3f8896c83cadc130143ccc4d181:/src/opserv.c diff --git a/src/opserv.c b/src/opserv.c index f6b7014..7f3e0cc 100644 --- a/src/opserv.c +++ b/src/opserv.c @@ -1400,8 +1400,10 @@ opserv_svsjoin(struct userNode *target, UNUSED_ARG(char *src_handle), UNUSED_ARG return; /* channel is invite only */ } - if (channel->members.used >= channel->limit) { - return; /* channel is invite on */ + if (channel->limit > 0) { + if (channel->members.used >= channel->limit) { + return; /* channel is invite on */ + } } if (*channel->key) { @@ -5741,8 +5743,10 @@ trace_svsjoin_func(struct userNode *match, void *extra) return 1; /* channel is invite only */ } - if (channel->members.used >= channel->limit) { - return 1; /* channel is invite on */ + if (channel->limit > 0) { + if (channel->members.used >= channel->limit) { + return 1; /* channel is invite on */ + } } if (*channel->key) {