X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fsocket.h;h=5f67051246d3dbe2017f5cab375632c58b69e016;hb=9de86c34d41fcbcedf7b332746b7f0e8c37c7c45;hp=7fa58f8ad992bfe444fafe3bd9d618a7dabd2a16;hpb=fcacc8e0306382bc3f938073092c3729d77e2b41;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/socket.h b/include/socket.h index 7fa58f8ad..5f6705124 100644 --- a/include/socket.h +++ b/include/socket.h @@ -25,7 +25,7 @@ #ifndef INSPIRCD_SOCKET_H #define INSPIRCD_SOCKET_H -#ifndef WIN32 +#ifndef _WIN32 #include #include @@ -105,6 +105,7 @@ namespace irc * IPV6 addresses. * @param address The human readable address, e.g. fred\@1.2.3.4 * @param cidr_mask The human readable mask, e.g. *\@1.2.0.0/16 + * @param match_with_username Does the mask include a nickname segment? * @return True if the mask matches the address */ CoreExport bool MatchCIDR(const std::string &address, const std::string &cidr_mask, bool match_with_username); @@ -145,7 +146,7 @@ namespace irc class CoreExport ListenSocket : public EventHandler { public: - const reference bind_tag; + reference bind_tag; std::string bind_addr; int bind_port; /** Human-readable bind description */