From 3a7af31bcd081debd490aa57a1d142bebf430b61 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 26 Aug 2007 20:14:35 +0000 Subject: [PATCH] Fix for bug #376 - FEATURE - (sorry w00t) - not backporting to stable. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7835 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_swhois.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp index b892d14ef..2178ad97a 100644 --- a/src/modules/m_swhois.cpp +++ b/src/modules/m_swhois.cpp @@ -78,7 +78,21 @@ class cmd_swhois : public command_t text = new std::string(line); dest->Extend("swhois", text); - return CMD_SUCCESS; + /* Bug #376 - feature request - + * To cut down on the amount of commands services etc have to recognise, this only sends METADATA across the network now + * not an actual SWHOIS command. Any SWHOIS command sent from services will be automatically translated to METADATA by this. + * Sorry w00t i know this was your fix, but i got bored and wanted to clear down the tracker :) + * -- Brain + */ + std::deque* metadata = new std::deque; + metadata->push_back(dest->nick); + metadata->push_back("swhois"); // The metadata id + metadata->push_back(*text); // The value to send + Event event((char*)metadata,(Module*)this,"send_metadata"); + event.Send(ServerInstance); + delete metadata; + + return CMD_LOCALONLY; } }; -- 2.39.5