Removing idle code because it crashes

This commit is contained in:
Chris Sexton 2013-01-24 13:20:02 -05:00
parent 0144e7ee6a
commit 1a0747c3fa
1 changed files with 4 additions and 4 deletions

View File

@ -72,10 +72,10 @@ func (p *DowntimePlugin) Message(message bot.Message) bool {
ret = true
} else if parts[0] == "idle" && len(parts) == 1 {
// Find all idle times, report them.
var entries idleEntries
p.Coll.Find(nil).All(entries)
sort.Sort(entries)
fmt.Printf("%+v\n", entries)
// var entries idleEntries
// p.Coll.Find(nil).All(entries)
// sort.Sort(entries)
// fmt.Printf("%+v\n", entries)
}
p.record(strings.ToLower(message.User.Name))