summaryrefslogtreecommitdiff
path: root/src/cmd_kick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_kick.cpp')
-rw-r--r--src/cmd_kick.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd_kick.cpp b/src/cmd_kick.cpp
index 78edb177d..c4eeaf609 100644
--- a/src/cmd_kick.cpp
+++ b/src/cmd_kick.cpp
@@ -21,11 +21,11 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance)
/** Handle /KICK
*/
-CmdResult cmd_kick::Handle (const char** parameters, int pcnt, userrec *user)
+CmdResult cmd_kick::Handle (const char** parameters, int pcnt, User *user)
{
char reason[MAXKICK];
- chanrec* c = ServerInstance->FindChan(parameters[0]);
- userrec* u = ServerInstance->FindNick(parameters[1]);
+ Channel* c = ServerInstance->FindChan(parameters[0]);
+ User* u = ServerInstance->FindNick(parameters[1]);
if (!u || !c)
{
@@ -49,7 +49,7 @@ CmdResult cmd_kick::Handle (const char** parameters, int pcnt, userrec *user)
}
if (!c->KickUser(user, u, reason))
- /* Nobody left here, delete the chanrec */
+ /* Nobody left here, delete the Channel */
delete c;
return CMD_SUCCESS;