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).
This commit is contained in:
JD Horelick 2010-03-20 04:34:44 -04:00
parent baca17aeb3
commit 82b371736d
1 changed files with 5 additions and 4 deletions

View File

@ -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,
sendto_one(source_p, ":%s 322 %s %s %lu :[%s] %s", me.name, source_p->name,
chptr->chname, rb_dlink_list_length(&chptr->members),
chptr->topic ? chptr->topic : "");
channel_modes(chptr, &me), chptr->topic ? chptr->topic : "");
}