forked from External/ergo
accounts: Very roughly introduce account type
This commit is contained in:
parent
739f8d71d2
commit
5269dc8776
5 changed files with 27 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue