| # | Line 189 | Line 189 | match_esc(const char *mask, const char * | |
|---|---|---|
| 189 | int | |
| 190 | match_chan(const char *mask, const char *name) | |
| 191 | { | |
| 192 | < | return *mask ? (match_esc(mask + (*mask == '#'), |
| 193 | < | name + (*name == '#'))) : 0; |
| 192 | > | if (*mask == '#') |
| 193 | > | { |
| 194 | > | if (*name != '#') |
| 195 | > | return 0; |
| 196 | > | ++name, ++mask; |
| 197 | > | } |
| 198 | > | |
| 199 | > | return match_esc(mask, name); |
| 200 | } | |
| 201 | ||
| 202 | /* collapse() | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |