diff options
author | Adam <Adam@anope.org> | 2011-01-08 00:25:11 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-01-08 00:25:11 -0500 |
commit | 512d23d60f25203ab88605ba131a0704cadd2263 (patch) | |
tree | f7bf42a648677f02f170db1e6692fafad10d81c6 /src/sockets.cpp | |
parent | 44038491264a350a8849e1d7e8547bbdec134d74 (diff) |
Made the Flag class able to convert flags to strings and back
Diffstat (limited to 'src/sockets.cpp')
-rw-r--r-- | src/sockets.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sockets.cpp b/src/sockets.cpp index d15d292cb..941169c17 100644 --- a/src/sockets.cpp +++ b/src/sockets.cpp @@ -337,7 +337,7 @@ void SocketIO::Connect(ConnectionSocket *s, const Anope::string &target, int por /** Empty constructor, used for things such as the pipe socket */ -Socket::Socket() +Socket::Socket() : Flags<SocketFlag, 2>(SocketFlagStrings) { this->Type = SOCKTYPE_BASE; this->IO = &normalSocketIO; @@ -348,7 +348,7 @@ Socket::Socket() * @param ipv6 IPv6? * @param type The socket type, defaults to SOCK_STREAM */ -Socket::Socket(int sock, bool ipv6, int type) +Socket::Socket(int sock, bool ipv6, int type) : Flags<SocketFlag, 2>(SocketFlagStrings) { this->Type = SOCKTYPE_BASE; this->IO = &normalSocketIO; |