summaryrefslogtreecommitdiff
path: root/src/modules/m_rpctest.cpp
diff options
context:
space:
mode:
authorpippijn <pippijn@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-11 11:35:23 +0000
committerpippijn <pippijn@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-11 11:35:23 +0000
commitd185decae97752368d5cf62311cbc0d1a52aa22c (patch)
tree754e7076778fabfbaacaef96da0f845110a8adef /src/modules/m_rpctest.cpp
parent62ac378bfb9591f5c5e10076c8be73adaabcfc64 (diff)
fixed some indentation and spacing in modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9888 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_rpctest.cpp')
-rw-r--r--src/modules/m_rpctest.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/m_rpctest.cpp b/src/modules/m_rpctest.cpp
index 673955a0d..0ff938041 100644
--- a/src/modules/m_rpctest.cpp
+++ b/src/modules/m_rpctest.cpp
@@ -23,30 +23,30 @@
class ModuleRPCTest : public Module
{
private:
-
+
public:
ModuleRPCTest(InspIRCd *Me) : Module(Me)
{
Implementation eventlist[] = { I_OnEvent };
ServerInstance->Modules->Attach(eventlist, this, 1);
}
-
+
virtual ~ModuleRPCTest()
{
}
-
+
virtual Version GetVersion()
{
return Version(1, 2, 0, 0, VF_VENDOR, API_VERSION);
}
-
-
+
+
virtual void OnEvent(Event *ev)
{
if (ev->GetEventID() == "RPCMethod")
{
RPCRequest *req = (RPCRequest*) ev->GetData();
-
+
if (req->method == "test.echo")
{
req->claimed = true;
@@ -55,7 +55,7 @@ class ModuleRPCTest : public Module
req->error = "Insufficient parameters";
return;
}
-
+
req->result->SetString(req->parameters->GetArray(0)->GetString());
}
}