Adding the bot to its own list of users. (future usage)

This commit is contained in:
Chris Sexton 2013-05-07 19:05:40 -04:00
parent 03a20d0446
commit 076b985716
1 changed files with 8 additions and 1 deletions

View File

@ -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,