summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-31 21:19:44 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-31 21:19:44 +0000
commitd6057cfd190ed93a16cf527b5e16e927a819a267 (patch)
tree64dcc3756daff4ce054eadf2ec17bf0d6cfc7183 /modules
parent0179c0de87fdfa1fc01195f665f5a2c95038379c (diff)
- m_part.c:m_part(): removed IsServer() test
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2984 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r--modules/core/m_part.c21
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),