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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user