From c649e42ae936f0f2d35acb50689b139673cbf000 Mon Sep 17 00:00:00 2001 From: Sam Dodrill Date: Tue, 18 Feb 2014 09:50:59 -0800 Subject: [PATCH] extensions/m_roleplay: Transmit source name with message --- extensions/m_roleplay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/m_roleplay.c b/extensions/m_roleplay.c index 97a72ab..45148e0 100644 --- a/extensions/m_roleplay.c +++ b/extensions/m_roleplay.c @@ -194,7 +194,7 @@ m_displaymsg(struct Client *source_p, const char *channel, int underline, int ac else rb_snprintf(text2, sizeof(text2), "%s", text); - sendto_channel_local(ALL_MEMBERS, chptr, ":%s!%s@npc.fakeuser.invalid PRIVMSG %s :%s", nick2, source_p->name, channel, text2); + sendto_channel_local(ALL_MEMBERS, chptr, ":%s!%s@npc.fakeuser.invalid PRIVMSG %s :%s (%s)", nick2, source_p->name, channel, text2, source_p->name); sendto_match_servs(source_p, "*", CAP_ENCAP, NOCAPS, "ENCAP * ROLEPLAY %s %s :%s", channel, nick2, text2); return 0; @@ -210,6 +210,6 @@ me_roleplay(struct Client *client_p, struct Client *source_p, int parc, const ch if((chptr = find_channel(parv[1])) == NULL) return 0; - sendto_channel_local(ALL_MEMBERS, chptr, ":%s!%s@npc.fakeuser.invalid PRIVMSG %s :%s", parv[2], source_p->name, parv[1], parv[3]); + sendto_channel_local(ALL_MEMBERS, chptr, ":%s!%s@npc.fakeuser.invalid PRIVMSG %s :%s (%s)", parv[2], source_p->name, parv[1], parv[3], source_p->name); return 0; }