| 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; |
| 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 |
|
{ |