1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 01:56:38 +02:00

Do not import forbids with wildcards in their names, how 1.8 treats wildcaded forbids depends on the IRCd

This commit is contained in:
Adam
2014-02-18 13:04:16 -05:00
parent 1edb7e776b
commit 109d8f431f
+18
View File
@@ -620,7 +620,16 @@ static void LoadNicks()
if (tmpu16 & OLD_NS_VERBOTEN)
{
if (!forbid)
{
delete nc;
continue;
}
if (nc->display.find_first_of("?*") != Anope::string::npos)
{
delete nc;
continue;
}
ForbidData *d = forbid->CreateForbid();
d->mask = nc->display;
@@ -1029,7 +1038,16 @@ static void LoadChannels()
if (forbid_chan)
{
if (!forbid)
{
delete ci;
continue;
}
if (ci->name.find_first_of("?*") != Anope::string::npos)
{
delete ci;
continue;
}
ForbidData *d = forbid->CreateForbid();
d->mask = ci->name;