summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd_part.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_part.cpp b/src/cmd_part.cpp
index cb5dde28e..edc61ef23 100644
--- a/src/cmd_part.cpp
+++ b/src/cmd_part.cpp
@@ -34,7 +34,7 @@ CmdResult cmd_part::Handle (const char** parameters, int pcnt, userrec *user)
if (c)
{
- if (!c->PartUser(user, pcnt > 1 ? parameters[0] : NULL))
+ if (!c->PartUser(user, pcnt > 1 ? parameters[1] : NULL))
/* Arse, who stole our channel! :/ */
delete c;
}