Browse Source

pretty up the notice a bit, and use RplNotice

tags/v0.1.0
Edmund Huber 10 years ago
parent
commit
b4edcea6e3
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      irc/reply.go

+ 3
- 3
irc/reply.go View File

124
 }
124
 }
125
 
125
 
126
 func RplCurrentMode(client *Client, target *Client) string {
126
 func RplCurrentMode(client *Client, target *Client) string {
127
-	globalFlags := ""
127
+	globalFlags := "global:"
128
 	for mode, _ := range target.flags {
128
 	for mode, _ := range target.flags {
129
 		globalFlags += mode.String()
129
 		globalFlags += mode.String()
130
 	}
130
 	}
134
 		perChannelFlags += fmt.Sprintf(" %s:%s", channel.name, channel.members[target])
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
 func RplChannelMode(client *Client, channel *Channel,
141
 func RplChannelMode(client *Client, channel *Channel,

Loading…
Cancel
Save