From 82b371736df5cc72380c7306dd1a84cd621bf3e7 Mon Sep 17 00:00:00 2001 From: JD Horelick Date: Sat, 20 Mar 2010 04:34:44 -0400 Subject: [PATCH] Add showing modes to OLIST so you can more easily see if you're about to join a +s channel and it can be useful as a oper to easily see which channels have certain modes set (i'm thinking +PL and maybe more). --- extensions/m_olist.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/extensions/m_olist.c b/extensions/m_olist.c index 7588d51..df15928 100644 --- a/extensions/m_olist.c +++ b/extensions/m_olist.c @@ -106,9 +106,10 @@ list_all_channels(struct Client *source_p) { chptr = ptr->data; - sendto_one(source_p, form_str(RPL_LIST), + sendto_one(source_p, ":%s 322 %s %s %lu :[%s] %s", me.name, source_p->name, chptr->chname, rb_dlink_list_length(&chptr->members), + channel_modes(chptr, &me), chptr->topic == NULL ? "" : chptr->topic); } @@ -145,7 +146,7 @@ list_named_channel(struct Client *source_p, const char *name) sendto_one_numeric(source_p, ERR_NOSUCHCHANNEL, form_str(ERR_NOSUCHCHANNEL), n); else - sendto_one(source_p, form_str(RPL_LIST), me.name, source_p->name, - chptr->chname, rb_dlink_list_length(&chptr->members), - chptr->topic ? chptr->topic : ""); + sendto_one(source_p, ":%s 322 %s %s %lu :[%s] %s", me.name, source_p->name, + chptr->chname, rb_dlink_list_length(&chptr->members), + channel_modes(chptr, &me), chptr->topic ? chptr->topic : ""); }