| 275 |
|
* channel onto buffer mbuf with the parameters in pbuf. |
| 276 |
|
*/ |
| 277 |
|
void |
| 278 |
< |
channel_modes(const struct Channel *channel, const struct Client *client, char *mbuf, char *pbuf) |
| 278 |
> |
channel_modes(const struct Channel *channel, const struct Client *client, |
| 279 |
> |
const struct ChannelMember *member, char *mbuf, char *pbuf) |
| 280 |
|
{ |
| 281 |
|
*mbuf++ = '+'; |
| 282 |
|
*pbuf = '\0'; |
| 289 |
|
{ |
| 290 |
|
*mbuf++ = 'l'; |
| 291 |
|
|
| 292 |
< |
if (IsServer(client) || member_find_link(client, channel)) |
| 292 |
> |
if (IsServer(client) || member || (member = member_find_link(client, channel))) |
| 293 |
|
pbuf += sprintf(pbuf, "%u ", channel->mode.limit); |
| 294 |
|
} |
| 295 |
|
|
| 297 |
|
{ |
| 298 |
|
*mbuf++ = 'k'; |
| 299 |
|
|
| 300 |
< |
if (IsServer(client) || member_find_link(client, channel)) |
| 300 |
> |
if (IsServer(client) || member || (member = member_find_link(client, channel))) |
| 301 |
|
sprintf(pbuf, "%s ", channel->mode.key); |
| 302 |
|
} |
| 303 |
|
|