1
0
mirror of https://github.com/anope/anope.git synced 2026-06-22 18:46:38 +02:00

Fix an unnecessary substr in irc2sql.

This commit is contained in:
Sadie Powell
2025-04-02 16:37:49 +01:00
parent 404bf77ef5
commit 4d7adbf2b7
+1 -1
View File
@@ -310,7 +310,7 @@ void IRC2SQL::OnBotNotice(User *u, BotInfo *bi, Anope::string &message, const An
return;
u->Extend<bool>("CTCPVERSION");
auto versionstr = Anope::NormalizeBuffer(message.substr(9, message.length() - 10));
auto versionstr = Anope::NormalizeBuffer(ctcpbody);
if (versionstr.empty())
return;