|
@@ -124,7 +124,7 @@ func RplModeChanges(client *Client, target *Client, changes ModeChanges) string
|
124
|
124
|
}
|
125
|
125
|
|
126
|
126
|
func RplCurrentMode(client *Client, target *Client) string {
|
127
|
|
- globalFlags := ""
|
|
127
|
+ globalFlags := "global:"
|
128
|
128
|
for mode, _ := range target.flags {
|
129
|
129
|
globalFlags += mode.String()
|
130
|
130
|
}
|
|
@@ -134,8 +134,8 @@ func RplCurrentMode(client *Client, target *Client) string {
|
134
|
134
|
perChannelFlags += fmt.Sprintf(" %s:%s", channel.name, channel.members[target])
|
135
|
135
|
}
|
136
|
136
|
|
137
|
|
- response := fmt.Sprintf("All user modes: %s%s", globalFlags, perChannelFlags)
|
138
|
|
- return NewStringReply(client, NOTICE, "%s :%s", target.Nick(), response)
|
|
137
|
+ response := NewText(fmt.Sprintf("user %s has %s%s", target.nick, globalFlags, perChannelFlags))
|
|
138
|
+ return RplNotice(client.server, client, response)
|
139
|
139
|
}
|
140
|
140
|
|
141
|
141
|
func RplChannelMode(client *Client, channel *Channel,
|