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

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

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

revision 1053 by michael, Sun Nov 8 13:03:38 2009 UTC revision 1054 by michael, Thu Jan 28 09:03:11 2010 UTC
# Line 159  dohelp(struct Client *source_p, const ch Line 159  dohelp(struct Client *source_p, const ch
159    
160    if (stat(path, &sb) < 0)    if (stat(path, &sb) < 0)
161    {    {
     ilog(L_NOTICE, "help file %s not found", path);  
162      sendto_one(source_p, form_str(ERR_HELPNOTFOUND),      sendto_one(source_p, form_str(ERR_HELPNOTFOUND),
163                 me.name, source_p->name, topic);                 me.name, source_p->name, topic);
164      return;      return;
# Line 167  dohelp(struct Client *source_p, const ch Line 166  dohelp(struct Client *source_p, const ch
166    
167    if (!S_ISREG(sb.st_mode))    if (!S_ISREG(sb.st_mode))
168    {    {
     ilog(L_NOTICE, "help file %s not found", path);  
169      sendto_one(source_p, form_str(ERR_HELPNOTFOUND),      sendto_one(source_p, form_str(ERR_HELPNOTFOUND),
170                 me.name, source_p->name, topic);                 me.name, source_p->name, topic);
171      return;      return;
# Line 209  sendhelpfile(struct Client *source_p, co Line 207  sendhelpfile(struct Client *source_p, co
207    while (fbgets(line, sizeof(line), file))    while (fbgets(line, sizeof(line), file))
208    {    {
209      line[strlen(line) - 1] = '\0';      line[strlen(line) - 1] = '\0';
210      if(line[0] != '#')      if (line[0] != '#')
211      {      {
212        if (!started)        if (!started)
213        {        {
214          type = RPL_HELPSTART;          type = RPL_HELPSTART;
215          started = 1;          started = 1;
216        }        }
217        else        else
218          type = RPL_HELPTXT;          type = RPL_HELPTXT;

Legend:
Removed from v.1053  
changed lines
  Added in v.1054

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