1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Clean up masks when adding them to an access list.

Closes #554.
This commit is contained in:
Sadie Powell
2026-01-19 00:24:12 +00:00
parent db3f60292f
commit 650f953cb1
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -219,6 +219,8 @@ private:
return;
}
}
else if (!na && mask.find_first_of("!*@") != Anope::string::npos)
mask = Entry("", mask).GetNUHMask();
if (na)
mask = na->nick;
+2
View File
@@ -145,6 +145,8 @@ class CommandCSFlags final
return;
}
}
else if (!na && mask.find_first_of("!*@") != Anope::string::npos)
mask = Entry("", mask).GetNUHMask();
if (na)
mask = na->nick;
+2
View File
@@ -193,6 +193,8 @@ private:
return;
}
}
else if (!na && mask.find_first_of("!*@") != Anope::string::npos)
mask = Entry("", mask).GetNUHMask();
if (na)
mask = na->nick;