summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/modules.h3
-rw-r--r--src/modules.cpp5
2 files changed, 8 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h
index fc6464717..da2bfe023 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -807,6 +807,9 @@ class Server : public classbase
/** Returns the network name, global to all linked servers.
*/
virtual std::string GetNetworkName();
+ /** Returns the server description string of the local server
+ */
+ virtual std::string GetServerDescription();
/** Returns the information of the server as returned by the /ADMIN command.
* See the Admin class for further information of the return value. The members
* Admin::Nick, Admin::Email and Admin::Name contain the information for the
diff --git a/src/modules.cpp b/src/modules.cpp
index 5147e08cc..d4b4a2a69 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -629,6 +629,11 @@ std::string Server::GetNetworkName()
return getnetworkname();
}
+std::string Server::GetServerDescription()
+{
+ return getserverdesc();
+}
+
Admin Server::GetAdmin()
{
return Admin(getadminname(),getadminemail(),getadminnick());