mirror of https://github.com/velour/catbase.git
Adding the bot to its own list of users. (future usage)
This commit is contained in:
parent
03a20d0446
commit
076b985716
|
@ -117,11 +117,18 @@ func NewBot(config *config.Config, c *irc.Conn) *Bot {
|
|||
|
||||
config.Nick = c.Me.Nick
|
||||
|
||||
users := []User{
|
||||
User{
|
||||
Name: config.Nick,
|
||||
MessageLog: make([]string, 0),
|
||||
},
|
||||
}
|
||||
|
||||
return &Bot{
|
||||
Config: config,
|
||||
Plugins: make(map[string]Handler),
|
||||
PluginOrdering: make([]string, 0),
|
||||
Users: make([]User, 0),
|
||||
Users: users,
|
||||
Conn: c,
|
||||
DbSession: session,
|
||||
Db: db,
|
||||
|
|
Loading…
Reference in New Issue