瀏覽代碼

pretty up the notice a bit, and use RplNotice

tags/v0.1.0
Edmund Huber 10 年之前
父節點
當前提交
b4edcea6e3
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      irc/reply.go

+ 3
- 3
irc/reply.go 查看文件

@@ -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,

Loading…
取消
儲存