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-7.2/modules/m_help.c (file contents):
Revision 34 by lusky, Sun Oct 2 21:05:51 2005 UTC vs.
Revision 575 by michael, Mon May 1 11:41:09 2006 UTC

# Line 124 | Line 124 | mo_uhelp(struct Client *client_p, struct
124   static void
125   dohelp(struct Client *source_p, const char *hpath, char *topic)
126   {
127 +  char h_index[] = "index";
128    char path[PATH_MAX + 1];
129    struct stat sb;
130    int i;
# Line 131 | Line 132 | dohelp(struct Client *source_p, const ch
132    if (topic != NULL)
133    {
134      if (*topic == '\0')
135 <      topic = "index";
135 >      topic = h_index;
136      else
137      {
138        /* convert to lower case */
139 <      for (i = 0; topic[i] != '\0'; i++)
139 >      for (i = 0; topic[i] != '\0'; ++i)
140          topic[i] = ToLower(topic[i]);
141      }
142    }
143    else
144 <    topic = "index"; /* list available help topics */
144 >    topic = h_index;    /* list available help topics */
145  
146    if (strpbrk(topic, "/\\"))
147    {

Diff Legend

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