159 |
|
|
160 |
|
if (stat(path, &sb) < 0) |
161 |
|
{ |
162 |
– |
ilog(L_NOTICE, "help file %s not found", path); |
162 |
|
sendto_one(source_p, form_str(ERR_HELPNOTFOUND), |
163 |
|
me.name, source_p->name, topic); |
164 |
|
return; |
166 |
|
|
167 |
|
if (!S_ISREG(sb.st_mode)) |
168 |
|
{ |
170 |
– |
ilog(L_NOTICE, "help file %s not found", path); |
169 |
|
sendto_one(source_p, form_str(ERR_HELPNOTFOUND), |
170 |
|
me.name, source_p->name, topic); |
171 |
|
return; |
207 |
|
while (fbgets(line, sizeof(line), file)) |
208 |
|
{ |
209 |
|
line[strlen(line) - 1] = '\0'; |
210 |
< |
if(line[0] != '#') |
210 |
> |
if (line[0] != '#') |
211 |
|
{ |
212 |
|
if (!started) |
213 |
|
{ |
214 |
|
type = RPL_HELPSTART; |
215 |
< |
started = 1; |
215 |
> |
started = 1; |
216 |
|
} |
217 |
|
else |
218 |
|
type = RPL_HELPTXT; |