summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-26 20:14:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-26 20:14:35 +0000
commit3a7af31bcd081debd490aa57a1d142bebf430b61 (patch)
tree8b4f9d15c4eeae2661fe20c55ec7e3710bcfe560 /src/modules
parentd1d5a31c13effeea4c3265e991b01742e9a53ca5 (diff)
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_swhois.cpp16
1 files changed, 15 insertions, 1 deletions
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<std::string>* metadata = new std::deque<std::string>;
+ 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;
}
};