summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-21 23:44:58 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-21 23:44:58 +0000
commitbbb5f6ee63b4a226e6679119a1ee8c725d7d2abc (patch)
tree893615b964fb792773a4647c33a0cb424c33fb79 /src/commands.cpp
parent9924e5631193ad581d885380fd11ae8bfb91fa0b (diff)
Move SetClass to LocalUser
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11941 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 1aeba2d80..41ba0aada 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -108,3 +108,31 @@ bool InspIRCd::NickMatchesEveryone(const std::string &nick, User* user)
}
return false;
}
+
+CmdResult SplitCommand::Handle(const std::vector<std::string>& parms, User* u)
+{
+ if (IS_LOCAL(u))
+ return HandleLocal(parms, static_cast<LocalUser*>(u));
+ if (IS_MODULE_CREATED(u))
+ return HandleRemote(parms, static_cast<RemoteUser*>(u));
+ if (IS_SERVER(u))
+ return HandleServer(parms, static_cast<FakeUser*>(u));
+ ServerInstance->Logs->Log("COMMAND", ERROR, "Unknown user type in command (fd=%d)!", u->GetFd());
+ return CMD_INVALID;
+}
+
+CmdResult SplitCommand::HandleLocal(const std::vector<std::string>&, LocalUser*)
+{
+ return CMD_INVALID;
+}
+
+CmdResult SplitCommand::HandleRemote(const std::vector<std::string>&, RemoteUser*)
+{
+ return CMD_INVALID;
+}
+
+CmdResult SplitCommand::HandleServer(const std::vector<std::string>&, FakeUser*)
+{
+ return CMD_INVALID;
+}
+