this->Modes = 0;
this->Res = 0;
this->ConfigThread = NULL;
+ this->FakeClient = NULL;
UpdateTime();
this->startup_time = TIME.tv_sec;
// Create base manager classes early, so nothing breaks
this->Users = new UserManager;
- this->Users->unregistered_count = 0;
-
this->Users->clientlist = new user_hash();
this->Users->uuidlist = new user_hash();
this->chanlist = new chan_hash();
};
int index;
- while ((c = getopt_long(argc, argv, ":f:", longopts, &index)) != -1)
+ while ((c = getopt_long(argc, argv, ":c:f:", longopts, &index)) != -1)
{
switch (c)
{
std::cout << con_green << "(C) InspIRCd Development Team." << con_reset << std::endl << std::endl;
std::cout << "Developers:" << std::endl;
std::cout << con_green << "\tBrain, FrostyCoolSlug, w00t, Om, Special, peavey" << std::endl;
- std::cout << "\taquanight, psychon, dz, danieldg, jackmcbarn" << con_reset << std::endl << std::endl;
+ std::cout << "\taquanight, psychon, dz, danieldg, jackmcbarn" << std::endl;\r
+ std::cout << "\tAttila" << con_reset << std::endl << std::endl;
std::cout << "Others:\t\t\t" << con_green << "See /INFO Output" << con_reset << std::endl;
this->Modes = new ModeParser;
*/
if ((!do_nofork) && (!do_testsuite) && (!Config->cmdline.forcedebug))
{
- int fd;
+ int fd = open("/dev/null", O_RDWR);
fclose(stdin);
fclose(stderr);
fclose(stdout);
- fd = open("/dev/null", O_RDWR);
- if (dup2(fd, 0) < 0)
+ if (dup2(fd, STDIN_FILENO) < 0)
Logs->Log("STARTUP", DEFAULT, "Failed to dup /dev/null to stdin.");
- if (dup2(fd, 1) < 0)
+ if (dup2(fd, STDOUT_FILENO) < 0)
Logs->Log("STARTUP", DEFAULT, "Failed to dup /dev/null to stdout.");
- if (dup2(fd, 2) < 0)
+ if (dup2(fd, STDERR_FILENO) < 0)
Logs->Log("STARTUP", DEFAULT, "Failed to dup /dev/null to stderr.");
close(fd);
}
*/
if (TIME.tv_sec != OLDTIME)
{
- OLDTIME = TIME.tv_sec;
#ifndef _WIN32
getrusage(RUSAGE_SELF, &ru);
stats->LastSampled = TIME;
{
SNO->WriteToSnoMask('d', "\002EH?!\002 -- Time is jumping FORWARDS! Clock skipped %lu secs.", (unsigned long)TIME.tv_sec - OLDTIME);
}
+\r
+ OLDTIME = TIME.tv_sec;
if ((TIME.tv_sec % 3600) == 0)
{