diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-05-12 12:37:49 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-05-12 12:37:49 +0000 |
commit | 63ab08bc2a9b5fd51373f7165bd8bd612a576da2 (patch) | |
tree | b60b350a4deeb17e2310b053ce364bf4e61cdc69 /modules/core | |
parent | af60cb9b9d6587a6c417172757396e6cac624004 (diff) |
- part_one_client(): removed useless client_p argument
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2006 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/core')
-rw-r--r-- | modules/core/m_part.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/modules/core/m_part.c b/modules/core/m_part.c index abdc86c..c6c7a69 100644 --- a/modules/core/m_part.c +++ b/modules/core/m_part.c @@ -48,8 +48,7 @@ * side effects - remove ONE client given the channel name */ static void -part_one_client(struct Client *client_p, struct Client *source_p, - const char *name, const char *reason) +part_one_client(struct Client *source_p, const char *name, const char *reason) { struct Channel *chptr = NULL; struct Membership *ms = NULL; @@ -80,10 +79,10 @@ part_one_client(struct Client *client_p, struct Client *source_p, (source_p->localClient->firsttime + ConfigFileEntry.anti_spam_exit_message_time) < CurrentTime)))) { - sendto_server(client_p, CAP_TS6, NOCAPS, + sendto_server(source_p->from, CAP_TS6, NOCAPS, ":%s PART %s :%s", ID(source_p), chptr->chname, reason); - sendto_server(client_p, NOCAPS, CAP_TS6, + 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", @@ -92,9 +91,9 @@ part_one_client(struct Client *client_p, struct Client *source_p, } else { - sendto_server(client_p, CAP_TS6, NOCAPS, + sendto_server(source_p->from, CAP_TS6, NOCAPS, ":%s PART %s", ID(source_p), chptr->chname); - sendto_server(client_p, NOCAPS, CAP_TS6, + 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, @@ -136,7 +135,7 @@ m_part(struct Client *client_p, struct Client *source_p, for (name = strtoken(&p, parv[1], ","); name; name = strtoken(&p, NULL, ",")) - part_one_client(client_p, source_p, name, reason); + part_one_client(source_p, name, reason); } static struct Message part_msgtab = { |