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