From 908f1c30c474f09626e801f7002b49d19e124252 Mon Sep 17 00:00:00 2001 From: ManiacTwister Date: Mon, 26 Nov 2018 20:13:37 +0100 Subject: [PATCH] Proper range for fakechannel user count --- modules/m_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/m_list.c b/modules/m_list.c index 9cca0a01..fbf9efc5 100644 --- a/modules/m_list.c +++ b/modules/m_list.c @@ -171,7 +171,7 @@ static int m_list(struct Client *client_p, struct Client *source_p, int parc, co sendto_one(source_p, form_str(RPL_LIST), me.name, source_p->name, "", fakechannel->name, - (rand() % fakechannel->users_max + fakechannel->users_min), + (unsigned long)(fakechannel->users_min + rand() % (fakechannel->users_max +1 - fakechannel->users_min)), fakechannel->topic); }