From b4edcea6e342074751a6dcf32ac5579ebe8cb154 Mon Sep 17 00:00:00 2001 From: Edmund Huber Date: Sat, 29 Mar 2014 19:46:44 +0100 Subject: [PATCH] pretty up the notice a bit, and use RplNotice --- irc/reply.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/irc/reply.go b/irc/reply.go index 5f5ad27d..bf2beac2 100644 --- a/irc/reply.go +++ b/irc/reply.go @@ -124,7 +124,7 @@ func RplModeChanges(client *Client, target *Client, changes ModeChanges) string } func RplCurrentMode(client *Client, target *Client) string { - globalFlags := "" + globalFlags := "global:" for mode, _ := range target.flags { globalFlags += mode.String() } @@ -134,8 +134,8 @@ func RplCurrentMode(client *Client, target *Client) string { perChannelFlags += fmt.Sprintf(" %s:%s", channel.name, channel.members[target]) } - response := fmt.Sprintf("All user modes: %s%s", globalFlags, perChannelFlags) - return NewStringReply(client, NOTICE, "%s :%s", target.Nick(), response) + response := NewText(fmt.Sprintf("user %s has %s%s", target.nick, globalFlags, perChannelFlags)) + return RplNotice(client.server, client, response) } func RplChannelMode(client *Client, channel *Channel,