From 0953068ef0f60ba64e3051b6938258ba987dd3bf Mon Sep 17 00:00:00 2001 From: Sam Dodrill Date: Fri, 11 Apr 2014 11:13:00 -0700 Subject: [PATCH] m_part: Add quotes around part reason This is a practice already used by some networks including freenode. It makes it possible to distinguish user part messages and forced parts such as /remove. ref: atheme/charybdis@a0b4a9216d5ab301451e1297b03f5057ecd32cce --- modules/core/m_part.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/m_part.c b/modules/core/m_part.c index c69f314..cc32d44 100644 --- a/modules/core/m_part.c +++ b/modules/core/m_part.c @@ -135,7 +135,7 @@ part_one_client(struct Client *client_p, struct Client *source_p, char *name, ch } sendto_server(client_p, chptr, CAP_TS6, NOCAPS, ":%s PART %s :%s", use_id(source_p), chptr->chname, reason); - sendto_channel_local(ALL_MEMBERS, chptr, ":%s!%s@%s PART %s :%s", + sendto_channel_local(ALL_MEMBERS, chptr, ":%s!%s@%s PART %s :\"%s\"", source_p->name, source_p->username, source_p->host, chptr->chname, reason); }