summaryrefslogtreecommitdiff
path: root/src/cmd_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_part.cpp')
-rw-r--r--src/cmd_part.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd_part.cpp b/src/cmd_part.cpp
index 44c158205..39a962140 100644
--- a/src/cmd_part.cpp
+++ b/src/cmd_part.cpp
@@ -24,16 +24,15 @@ extern InspIRCd* ServerInstance;
void cmd_part::Handle (const char** parameters, int pcnt, userrec *user)
{
+ if (ServerInstance->Parser->LoopCall(user, this, parameters, pcnt, 0))
+ return;
+
if (pcnt > 1)
{
- if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-2,0))
- return;
del_channel(user,parameters[0],parameters[1],false);
}
else
{
- if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-1,0))
- return;
del_channel(user,parameters[0],NULL,false);
}
}