From 9e31230368449966d16635c696d97c04adadeaa9 Mon Sep 17 00:00:00 2001 From: KaidoRen Date: Tue, 14 May 2019 17:02:33 +0500 Subject: [PATCH] Displaying the URL of the plugin if it is present --- amxmodx/srvcmd.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/amxmodx/srvcmd.cpp b/amxmodx/srvcmd.cpp index d109df47..ac8af098 100755 --- a/amxmodx/srvcmd.cpp +++ b/amxmodx/srvcmd.cpp @@ -80,7 +80,11 @@ void amx_command() print_srvconsole(" Name: %s\n", plugin->getTitle()); print_srvconsole(" Version: %s\n", plugin->getVersion()); print_srvconsole(" Author: %s\n", plugin->getAuthor()); - print_srvconsole(" URL: %s\n", plugin->getUrl()); + + if (auto url = plugin->getUrl(); url[0]) + { + print_srvconsole(" URL: %s\n", plugin->getUrl()); + } if (auto description = plugin->getDescription(); description[0]) {