Sfoglia il codice sorgente

human-readable times for NS SESSIONS

tags/v1.1.0-rc1
Shivaram Lingamneni 5 anni fa
parent
commit
8f0977f59e
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3
    2
      irc/nickserv.go

+ 3
- 2
irc/nickserv.go Vedi File

@@ -5,6 +5,7 @@ package irc
5 5
 
6 6
 import (
7 7
 	"fmt"
8
+	"time"
8 9
 
9 10
 	"github.com/goshuirc/irc-go/ircfmt"
10 11
 
@@ -612,7 +613,7 @@ func nsSessionsHandler(server *Server, client *Client, command string, params []
612 613
 		}
613 614
 		nsNotice(rb, fmt.Sprintf(client.t("IP address:  %s"), session.ip.String()))
614 615
 		nsNotice(rb, fmt.Sprintf(client.t("Hostname:    %s"), session.hostname))
615
-		nsNotice(rb, fmt.Sprintf(client.t("Created at:  %s"), session.ctime.Format(IRCv3TimestampFormat)))
616
-		nsNotice(rb, fmt.Sprintf(client.t("Last active: %s"), session.atime.Format(IRCv3TimestampFormat)))
616
+		nsNotice(rb, fmt.Sprintf(client.t("Created at:  %s"), session.ctime.Format(time.RFC1123)))
617
+		nsNotice(rb, fmt.Sprintf(client.t("Last active: %s"), session.atime.Format(time.RFC1123)))
617 618
 	}
618 619
 }

Loading…
Annulla
Salva