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

Remove some unnecessary debug logging.

This commit is contained in:
Sadie Powell
2024-10-04 15:08:44 +01:00
parent cdf356ed33
commit 0ab0e4737c
-6
View File
@@ -22,17 +22,11 @@ namespace
bool IsExtBan(const Anope::string &str, Anope::string &name, Anope::string &value)
{
if (str[0] != '~')
{
Log() << "missing prefix: " << str;
return false;
}
auto endpos = str.find_first_not_of("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", 1);
if (endpos == Anope::string::npos || str[endpos] != ':' || endpos+1 == str.length())
{
Log() << "wrong format: " << str;
return false;
}
name = str.substr(1, endpos - 1);
value = str.substr(endpos + 1);