mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-04-09 11:10:07 +03:00
Displaying the URL of the plugin if it is present
This commit is contained in:
parent
dfea6f61d2
commit
1f63a30bf0
@ -79,10 +79,15 @@ void amx_command()
|
|||||||
print_srvconsole(" Name: %s\n", plugin->getTitle());
|
print_srvconsole(" Name: %s\n", plugin->getTitle());
|
||||||
print_srvconsole(" Version: %s\n", plugin->getVersion());
|
print_srvconsole(" Version: %s\n", plugin->getVersion());
|
||||||
print_srvconsole(" Author: %s\n", plugin->getAuthor());
|
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();
|
auto description = plugin->getDescription();
|
||||||
if (description[0] != '\0')
|
if (description[0])
|
||||||
{
|
{
|
||||||
print_srvconsole(" Description: %s\n", description);
|
print_srvconsole(" Description: %s\n", description);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user