ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/channel_mode.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/channel_mode.c (file contents):
Revision 9455 by michael, Tue Jun 30 17:33:17 2020 UTC vs.
Revision 9546 by michael, Sat Jul 18 16:32:38 2020 UTC

# Line 275 | Line 275 | del_id(struct Client *client, struct Cha
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';
# Line 288 | Line 289 | channel_modes(const struct Channel *chan
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  
# Line 296 | Line 297 | channel_modes(const struct Channel *chan
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  

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)