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

Comparing ircd-hybrid-7.2/src/match.c (file contents):
Revision 481 by michael, Mon Feb 27 13:12:59 2006 UTC vs.
Revision 484 by michael, Mon Feb 27 15:17:04 2006 UTC

# 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()

Diff Legend

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