break;
}
}
+ if (send_to_user)
+ t->WriteServ("NOTICE %s :%s",t->nick,textbuffer);
}
- if (send_to_user)
- t->WriteServ("NOTICE %s :%s",t->nick,textbuffer);
}
else
if (flags == WM_OR)
break;
}
}
+ if (send_to_user)
+ t->WriteServ("NOTICE %s :%s",t->nick,textbuffer);
}
- if (send_to_user)
- t->WriteServ("NOTICE %s :%s",t->nick,textbuffer);
}
}
{
Config->logpath = ServerConfig::GetFullProgDir(argv,argc) + "/ircd.log";
}
+
+ Config->log_file = fopen(Config->logpath.c_str(),"a+");
}
else
{
Config->log_file = fopen(this->LogFileName,"a+");
-
- if (!Config->log_file)
- {
- printf("ERROR: Could not write to logfile %s, bailing!\n\n",Config->logpath.c_str());
- Exit(ERROR);
- }
-
- this->Logger = new FileLogger(this, Config->log_file);
- return;
}
- Config->log_file = fopen(Config->logpath.c_str(),"a+");
-
if (!Config->log_file)
{
- printf("ERROR: Could not write to logfile %s, bailing!\n\n",Config->logpath.c_str());
+ printf("ERROR: Could not write to logfile %s: %s\n\n", Config->logpath.c_str(), strerror(errno));
Exit(ERROR);
}