diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-30 14:28:22 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-30 14:28:22 +0000 |
commit | 0e4420f083034c3964feb2db8cdb10a4d85e4412 (patch) | |
tree | 291b25a01373008126bc2795db0917593617ce5f /src/helperfuncs.cpp | |
parent | 79d51f20eb6b96b2096751a636ad372e2380684f (diff) |
Added OnGetServerDescription (mainly for link modules)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2056 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r-- | src/helperfuncs.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 9f457868c..cfb96cca2 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -377,7 +377,16 @@ void ChanExceptSender(chanrec* Ptr, userrec* user, char* text, ...) std::string GetServerDescription(char* servername) { - return ServerDesc; // not a remote server that can be found, it must be me. + std::string description = ""; + FOREACH_MOD OnGetServerDescription(servername,description); + if (description != "") + { + return description; + } + else + { + return ServerDesc; // not a remote server that can be found, it must be me. + } } /* write a formatted string to all users who share at least one common |