From 97a6160b45dfbe04ca4f046a5e4c2f37ff04136f Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 12 Aug 2008 22:34:37 +0200 Subject: [PATCH 1/2] Allow /list on a named +p channel. A full /list already included +p channels. --- 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 db397a2..ab05e40 100644 --- a/modules/m_list.c +++ b/modules/m_list.c @@ -324,7 +324,7 @@ static void safelist_channel_named(struct Client *source_p, const char *name) return; } - if (ShowChannel(source_p, chptr)) + if (!SecretChannel(chptr) || IsMember(source_p, chptr)) sendto_one(source_p, form_str(RPL_LIST), me.name, source_p->name, chptr->chname, rb_dlink_list_length(&chptr->members), chptr->topic == NULL ? "" : chptr->topic); From 74e0c6e66057cc13d0c008fc125384814eec43f8 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 12 Aug 2008 22:37:29 +0200 Subject: [PATCH 2/2] fix a crash in the rb_bh_gc code from libratbox svn r25871 (androsyn) --- libratbox/src/balloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libratbox/src/balloc.c b/libratbox/src/balloc.c index 0ba2608..7c06e30 100644 --- a/libratbox/src/balloc.c +++ b/libratbox/src/balloc.c @@ -567,7 +567,7 @@ rb_bh_gc(rb_bh * bh) offset = (uintptr_t)b->elems; for (i = 0; i < bh->elemsPerBlock; i++, offset += (uintptr_t)bh->elemSize) { - rb_dlinkDelete(((rb_dlink_node *)(offset + offset_pad)), &bh->free_list); + rb_dlinkDelete(((rb_dlink_node *)offset), &bh->free_list); } rb_dlinkDelete(&b->node, &bh->block_list); free_block(b->elems, b->alloc_size);