Displaying the URL of the plugin if it is present

This commit is contained in:
KaidoRen 2019-05-14 17:02:33 +05:00
parent 835e0bc6c4
commit 9e31230368

View File

@ -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])
{