From 0e4420f083034c3964feb2db8cdb10a4d85e4412 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 30 Nov 2005 14:28:22 +0000 Subject: Added OnGetServerDescription (mainly for link modules) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2056 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/modules/m_spanningtree.cpp') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index faba676d9..51efcb740 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1371,6 +1371,15 @@ class ModuleSpanningTree : public Module return 0; } + virtual void OnGetServerDescription(std::string servername,std::string &description) + { + TreeServer* s = FindServer(servername); + if (s) + { + return s->GetDesc(); + } + } + virtual void OnUserInvite(userrec* source,userrec* dest,chanrec* channel) { if (std::string(source->server) == Srv->GetServerName()) -- cgit v1.2.3