1
0
Fork 0
forked from External/ergo

accounts: Add very initial, extremely broken account work (not including config changes)

This commit is contained in:
Daniel Oaks 2016-09-04 19:25:33 +10:00
parent 1746be2bb8
commit e4b6c1852b
7 changed files with 339 additions and 177 deletions

16
irc/accounts.go Normal file
View file

@ -0,0 +1,16 @@
// Copyright (c) 2016- Daniel Oaks <daniel@danieloaks.net>
// released under the MIT license
package irc
import "time"
// Account represents a user account.
type Account struct {
// Name of the account.
Name string
// RegisteredAt represents the time that the account was registered.
RegisteredAt time.Time
// Clients that are currently logged into this account (useful for notifications).
Clients []Client
}