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@a0b4a9216d
This commit is contained in:
Sam Dodrill 2014-04-11 11:13:00 -07:00
parent f5945c6972
commit 0953068ef0
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}