From 1f63a30bf02e8cea1713c61993a53608f58598df Mon Sep 17 00:00:00 2001
From: KaidoRen <ms.ostrog@gmail.com>
Date: Wed, 15 May 2019 10:02:29 +0500
Subject: [PATCH] Displaying the URL of the plugin if it is present

---
 amxmodx/srvcmd.cpp | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/amxmodx/srvcmd.cpp b/amxmodx/srvcmd.cpp
index 51992cba..03a9b63d 100755
--- a/amxmodx/srvcmd.cpp
+++ b/amxmodx/srvcmd.cpp
@@ -79,10 +79,15 @@ 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());
+
+				auto url = plugin->getDescription();
+				if (url[0])
+				{
+					print_srvconsole("   URL: %s\n", plugin->getUrl());
+				}
 
 				auto description = plugin->getDescription(); 
-				if (description[0] != '\0')
+				if (description[0])
 				{
 					print_srvconsole("   Description: %s\n", description);
 				}