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

Comparing ircd-hybrid/trunk/modules/m_help.c (file contents):
Revision 2028 by michael, Tue May 14 18:19:05 2013 UTC vs.
Revision 2045 by michael, Wed May 15 15:32:01 2013 UTC

# Line 75 | Line 75 | sendhelpfile(struct Client *source_p, co
75   static void
76   dohelp(struct Client *source_p, char *topic)
77   {
78 +  char *p = topic;
79    char h_index[] = "index";
80    char path[HYB_PATH_MAX + 1];
81    struct stat sb;
81  unsigned int i;
82  
83    if (EmptyString(topic))
84      topic = h_index;
85    else
86 <    for (i = 0; topic[i] != '\0'; ++i)
87 <      topic[i] = ToLower(topic[i]);
86 >    for (; *p; ++p)
87 >      *p = ToLower(*p);
88  
89    if (strpbrk(topic, "/\\"))
90    {

Diff Legend

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