diff options
| author | Adam <Adam@anope.org> | 2011-08-13 14:24:08 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-09-10 00:58:35 -0400 |
| commit | 4a7ba7ef4cd92263d8187b1385d8bf46102ef7b3 (patch) | |
| tree | d03e1e17d7a736b6369a59b0418c5f468a040838 /src/operserv.cpp | |
| parent | 2b5d9f349f0990f664e1e6a685dd2ef983b388c8 (diff) | |
Removed SZLine. Instead, have AKILL determine whether or not a ZLINE should be set.
Diffstat (limited to 'src/operserv.cpp')
| -rw-r--r-- | src/operserv.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/operserv.cpp b/src/operserv.cpp index 116fe2a98..2eb616aad 100644 --- a/src/operserv.cpp +++ b/src/operserv.cpp @@ -59,6 +59,13 @@ Anope::string XLine::GetHost() const return this->Mask.substr(host_t + 1); } +sockaddrs XLine::GetIP() const +{ + sockaddrs addr; + addr.pton(this->GetHost().find(':') != Anope::string::npos ? AF_INET6 : AF_INET, this->GetHost()); + return addr; +} + /** Constructor */ XLineManager::XLineManager(Module *creator, const Anope::string &xname, char t) : Service(creator, xname), type(t) |
