diff options
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index 41ba0aada..a1a190502 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -112,11 +112,11 @@ bool InspIRCd::NickMatchesEveryone(const std::string &nick, User* user) 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)); + return HandleLocal(parms, IS_LOCAL(u)); + if (IS_REMOTE(u)) + return HandleRemote(parms, IS_REMOTE(u)); if (IS_SERVER(u)) - return HandleServer(parms, static_cast<FakeUser*>(u)); + return HandleServer(parms, IS_SERVER(u)); ServerInstance->Logs->Log("COMMAND", ERROR, "Unknown user type in command (fd=%d)!", u->GetFd()); return CMD_INVALID; } |