1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 10:36:38 +02:00

Make User::Mask behave more like 1.8

This commit is contained in:
Adam
2016-12-22 20:52:43 -05:00
parent 574c8dfbc7
commit ec7ce09ef4
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -781,7 +781,7 @@ Anope::string User::Mask() const
sockaddrs addr(mhost);
if (addr.valid() && addr.sa.sa_family == AF_INET)
{
size_t dot = mhost.find('.');
size_t dot = mhost.rfind('.');
mask += mhost.substr(0, dot) + (dot == Anope::string::npos ? "" : ".*");
}
else