/[svn]/ircd-hybrid-7.2/modules/m_help.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/modules/m_help.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 574 by lusky, Sun Oct 2 21:05:51 2005 UTC revision 575 by michael, Mon May 1 11:41:09 2006 UTC
# Line 124  mo_uhelp(struct Client *client_p, struct Line 124  mo_uhelp(struct Client *client_p, struct
124  static void  static void
125  dohelp(struct Client *source_p, const char *hpath, char *topic)  dohelp(struct Client *source_p, const char *hpath, char *topic)
126  {  {
127      char h_index[] = "index";
128    char path[PATH_MAX + 1];    char path[PATH_MAX + 1];
129    struct stat sb;    struct stat sb;
130    int i;    int i;
# Line 131  dohelp(struct Client *source_p, const ch Line 132  dohelp(struct Client *source_p, const ch
132    if (topic != NULL)    if (topic != NULL)
133    {    {
134      if (*topic == '\0')      if (*topic == '\0')
135        topic = "index";        topic = h_index;
136      else      else
137      {      {
138        /* convert to lower case */        /* convert to lower case */
139        for (i = 0; topic[i] != '\0'; i++)        for (i = 0; topic[i] != '\0'; ++i)
140          topic[i] = ToLower(topic[i]);          topic[i] = ToLower(topic[i]);
141      }      }
142    }    }
143    else    else
144      topic = "index"; /* list available help topics */      topic = h_index;    /* list available help topics */
145    
146    if (strpbrk(topic, "/\\"))    if (strpbrk(topic, "/\\"))
147    {    {

Legend:
Removed from v.574  
changed lines
  Added in v.575

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28