Changeset 2f73692


Ignore:
Timestamp:
2015-10-08T07:43:45Z (4 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
58b63de6
Parents:
687ec88
git-author:
dequis <dx@…> (08-10-15 07:40:03)
git-committer:
dequis <dx@…> (08-10-15 07:43:45)
Message:

irc_send_who: move the iu->flags check after iu has a value...

Moving this was suggested during the review of the multi-prefix patch as
ordering the sets of status_prefix... and it seemed reasonable to me.
Thanks valgrind.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_send.c

    r687ec88 r2f73692  
    295295                char status_prefix[3] = {0};
    296296
    297                 /* rfc1459 doesn't mention this: G means gone, H means here */
    298                 status_prefix[0] = iu->flags & IRC_USER_AWAY ? 'G' : 'H';
    299 
    300297                if (is_channel) {
    301298                        irc_channel_user_t *icu = l->data;
     
    305302                        iu = l->data;
    306303                }
     304
     305                /* rfc1459 doesn't mention this: G means gone, H means here */
     306                status_prefix[0] = iu->flags & IRC_USER_AWAY ? 'G' : 'H';
    307307
    308308                irc_send_num(irc, 352, "%s %s %s %s %s %s :0 %s",
Note: See TracChangeset for help on using the changeset viewer.