Changeset fe63ed3 for nick.c


Ignore:
Timestamp:
2015-05-28T04:03:28Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
24f113b
Parents:
09bd226
git-author:
Evan Klitzke <evan@…> (20-05-15 22:19:14)
git-committer:
dequis <dx@…> (28-05-15 04:03:28)
Message:

teach nick_lc to handle # and other non-letters correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nick.c

    r09bd226 rfe63ed3  
    368368
    369369        if (tab['A'] == 0) {
     370                /* initialize table so nonchars are mapped to themselves */
     371                for (i = 0; i < sizeof(tab); i++) {
     372                        tab[i] = i;
     373                }
     374                /* replace uppercase chars with lowercase chars */
    370375                for (i = 0; nick_lc_chars[i]; i++) {
    371376                        tab[(int) nick_uc_chars[i]] = nick_lc_chars[i];
    372                         tab[(int) nick_lc_chars[i]] = nick_lc_chars[i];
    373377                }
    374378        }
Note: See TracChangeset for help on using the changeset viewer.