summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-13 19:20:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-13 19:20:55 +0000
commitd75dbad76016ebbb36511183e767f62465d1bfc5 (patch)
tree6ed685e2dff8083eea18dc6e84af0b0886ea7d02
parentb5b50e82c5804a0f9e43feac178aff24be9c02f4 (diff)
Added Server::GetServerDescription() at request of Craig
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1374 e03df62e-2008-0410-955e-edbf42e46eb7
-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());