1
0
Fork 0
forked from External/ergo

accounts: Very roughly introduce account type

This commit is contained in:
Daniel Oaks 2016-09-05 22:35:13 +10:00
parent 739f8d71d2
commit 5269dc8776
5 changed files with 27 additions and 8 deletions

View file

@ -5,8 +5,14 @@ package irc
import "time"
// Account represents a user account.
type Account struct {
var (
NoAccount = ClientAccount{
Name: "*", // * is used until actual account name is set
}
)
// ClientAccount represents a user account.
type ClientAccount struct {
// Name of the account.
Name string
// RegisteredAt represents the time that the account was registered.