From 6274504ba37678896034fb6933b5f4a4425a3238 Mon Sep 17 00:00:00 2001 From: pippijn Date: Tue, 17 Jul 2007 13:02:02 +0000 Subject: Ignore all exceptions for now.. m_rpc_json is rather willing to throw git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7461 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_rpc_json.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_rpc_json.cpp b/src/modules/m_rpc_json.cpp index 6d9b024f9..1cbbcf254 100644 --- a/src/modules/m_rpc_json.cpp +++ b/src/modules/m_rpc_json.cpp @@ -47,7 +47,14 @@ class ModuleRpcJson : public Module if (http->GetURI() == "/jsonrpc" && http->GetType() == "POST") { std::string response_text; - json::rpc::process (http, response_text, http->GetPostData().c_str()); + try + { + json::rpc::process (http, response_text, http->GetPostData().c_str()); + } + catch (std::runtime_error &) + { + // ignore + } data << response_text; /* Send the document back to m_httpd */ -- cgit v1.2.3