diff options
-rw-r--r-- | modules/core/m_part.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/modules/core/m_part.c b/modules/core/m_part.c index f995f55..338189d 100644 --- a/modules/core/m_part.c +++ b/modules/core/m_part.c @@ -81,22 +81,20 @@ part_one_client(struct Client *source_p, const char *name, const char *reason) (source_p->localClient->firsttime + ConfigFileEntry.anti_spam_exit_message_time) < CurrentTime)))) { - sendto_server(source_p->from, CAP_TS6, NOCAPS, - ":%s PART %s :%s", ID(source_p), chptr->chname, - reason); - sendto_server(source_p->from, NOCAPS, CAP_TS6, - ":%s PART %s :%s", source_p->name, chptr->chname, - reason); + sendto_server(source_p->from, CAP_TS6, NOCAPS, ":%s PART %s :%s", + ID(source_p), chptr->chname, reason); + sendto_server(source_p->from, NOCAPS, CAP_TS6, ":%s PART %s :%s", + source_p->name, chptr->chname, reason); sendto_channel_local(ALL_MEMBERS, 0, chptr, ":%s!%s@%s PART %s :%s", source_p->name, source_p->username, source_p->host, chptr->chname, reason); } else { - sendto_server(source_p->from, CAP_TS6, NOCAPS, - ":%s PART %s", ID(source_p), chptr->chname); - sendto_server(source_p->from, NOCAPS, CAP_TS6, - ":%s PART %s", source_p->name, chptr->chname); + sendto_server(source_p->from, CAP_TS6, NOCAPS, ":%s PART %s", + ID(source_p), chptr->chname); + sendto_server(source_p->from, NOCAPS, CAP_TS6, ":%s PART %s", + source_p->name, chptr->chname); sendto_channel_local(ALL_MEMBERS, 0, chptr, ":%s!%s@%s PART %s", source_p->name, source_p->username, source_p->host, chptr->chname); @@ -118,9 +116,6 @@ m_part(struct Client *client_p, struct Client *source_p, char *p = NULL, *name = NULL; char reason[KICKLEN + 1] = { '\0' }; - if (IsServer(source_p)) - return 0; - if (EmptyString(parv[1])) { sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), |