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:
parent
baca17aeb3
commit
82b371736d
|
@ -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 : "");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue