From 3c10cc0e6708401302331aede8ddcef364410d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=A1=D1=83=D1=85=D0=BE=D0=B2?= <22411953+Vladislav4KZ@users.noreply.github.com> Date: Mon, 10 Oct 2022 01:51:00 +0600 Subject: [PATCH] fix: write "Official Navigation Graph" if graph author matches the product.name (#376) which was broken after the commit https://github.com/yapb/yapb/commit/a3288cc353ec65bb3c9a03ad611bfd4a72c4adab --- src/support.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support.cpp b/src/support.cpp index 98556c8..6952f1f 100644 --- a/src/support.cpp +++ b/src/support.cpp @@ -298,7 +298,7 @@ void BotSupport::checkWelcome () { StringRef graphAuthor = graph.getAuthor (); StringRef graphModified = graph.getModifiedBy (); - if (!graphAuthor.startsWith (product.folder)) { + if (!graphAuthor.startsWith (product.name)) { authorStr.assignf ("Navigation Graph by: %s", graphAuthor); if (!graphModified.empty ()) {