|
@@ -2,6 +2,7 @@ package irc
|
2
|
2
|
|
3
|
3
|
import (
|
4
|
4
|
"fmt"
|
|
5
|
+ "time"
|
5
|
6
|
)
|
6
|
7
|
|
7
|
8
|
func ReplyNick(oldNick string, c *Client) string {
|
|
@@ -16,8 +17,8 @@ func ReplyYourHost(nick string, server string) string {
|
16
|
17
|
return fmt.Sprintf("%s %s Your host is %s, running version %s", RPL_YOURHOST, nick, server, VERSION)
|
17
|
18
|
}
|
18
|
19
|
|
19
|
|
-func ReplyCreated(nick string, created string) string {
|
20
|
|
- return fmt.Sprintf("%s %s This server was created %s", RPL_CREATED, nick, created)
|
|
20
|
+func ReplyCreated(nick string, ctime time.Time) string {
|
|
21
|
+ return fmt.Sprintf("%s %s This server was created %s", RPL_CREATED, nick, ctime.Format(time.RFC1123))
|
21
|
22
|
}
|
22
|
23
|
|
23
|
24
|
func ReplyMyInfo(nick string, servername string) string {
|