소스 검색

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…
취소
저장