~ubuntu-branches/ubuntu/oneiric/inspircd/oneiric-security

« back to all changes in this revision

Viewing changes to src/inspircd.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2008-11-15 20:39:50 UTC
  • mfrom: (1.1.4 upstream) (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20081115203950-uv1pf98x2vkon7se
Tags: 1.1.21+dfsg-1ubuntu1
* Merge from debian unstable, remaining changes: (LP: #298418)
  - debian/patches/04_include-limits-h.dpatch:
    + Explicitly include limits.h for gcc 4.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
639
639
        this->BuildISupport();
640
640
        InitializeDisabledCommands(Config->DisabledCommands, this);
641
641
 
642
 
        if ((Config->ports.size() == 0) && (found_ports > 0))
643
 
        {
644
 
                printf("\nERROR: I couldn't bind any ports! Are you sure you didn't start InspIRCd twice?\n");
645
 
                Log(DEFAULT,"ERROR: I couldn't bind any ports! Are you sure you didn't start InspIRCd twice?");
646
 
                Exit(EXIT_STATUS_BIND);
647
 
        }
648
 
 
649
642
        if (Config->ports.size() != (unsigned int)found_ports)
650
643
        {
651
644
                printf("\nWARNING: Not all your client ports could be bound --\nstarting anyway with %d of %d client ports bound.\n\n", bounditems, found_ports);
653
646
                int j = 1;
654
647
                for (FailedPortList::iterator i = pl.begin(); i != pl.end(); i++, j++)
655
648
                {
656
 
                        printf("%d.\tIP: %s\tPort: %lu\n", j, i->first.empty() ? "<all>" : i->first.c_str(), (unsigned long)i->second);
 
649
                        printf("%d.\tAddress: %s\tReason: %s\n", j, i->first.empty() ? "<all>" : i->first.c_str(), i->second.c_str());
657
650
                }
658
651
        }
 
652
 
 
653
        if ((Config->ports.size() == 0) && (found_ports > 0))
 
654
        {
 
655
                printf("\nERROR: I couldn't bind any ports! Are you sure you didn't start InspIRCd twice?\n");
 
656
                Log(DEFAULT,"ERROR: I couldn't bind any ports! Are you sure you didn't start InspIRCd twice?");
 
657
                Exit(EXIT_STATUS_BIND);
 
658
        }
 
659
 
659
660
#ifndef WINDOWS
660
661
        if (!Config->nofork)
661
662
        {