diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-21 23:45:19 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-21 23:45:19 +0000 |
commit | 123eac3f25ce4dd3142b4ac66eb321f7df1e23e4 (patch) | |
tree | 7503b5ce313dc18edc4b39dd0e580ba6ea7fc930 /src/commands/cmd_user.cpp | |
parent | 5d03657b63b0b77edc25cd566d9aab134d930bf7 (diff) |
Change module API to use LocalUser* where correct
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11943 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands/cmd_user.cpp')
-rw-r--r-- | src/commands/cmd_user.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/cmd_user.cpp b/src/commands/cmd_user.cpp index e396e0c84..8410a2853 100644 --- a/src/commands/cmd_user.cpp +++ b/src/commands/cmd_user.cpp @@ -18,22 +18,22 @@ * the same way, however, they can be fully unloaded, where these * may not. */ -class CommandUser : public Command +class CommandUser : public SplitCommand { public: /** Constructor for user. */ - CommandUser ( Module* parent) : Command(parent,"USER",4,4) { works_before_reg = true; Penalty = 0; syntax = "<username> <localhost> <remotehost> <GECOS>"; } + CommandUser ( Module* parent) : SplitCommand(parent,"USER",4,4) { works_before_reg = true; Penalty = 0; syntax = "<username> <localhost> <remotehost> <GECOS>"; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ - CmdResult Handle(const std::vector<std::string>& parameters, User *user); + CmdResult HandleLocal(const std::vector<std::string>& parameters, LocalUser *user); }; -CmdResult CommandUser::Handle (const std::vector<std::string>& parameters, User *user) +CmdResult CommandUser::HandleLocal(const std::vector<std::string>& parameters, LocalUser *user) { /* A user may only send the USER command once */ if (!(user->registered & REG_USER)) |