Fix bug in stats where the requestor would always see his own message count
This commit is contained in:
parent
863fcd5e9d
commit
458268bd41
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ namespace Geekbot.net.Commands.User
|
||||||
var joinedDayAgo = Math.Floor((DateTime.Now - joinedAt).TotalDays);
|
var joinedDayAgo = Math.Floor((DateTime.Now - joinedAt).TotalDays);
|
||||||
|
|
||||||
var messages = _database.Messages
|
var messages = _database.Messages
|
||||||
.First(e => e.GuildId.Equals(Context.Guild.Id.AsLong()) && e.UserId.Equals(Context.User.Id.AsLong()))
|
.First(e => e.GuildId.Equals(Context.Guild.Id.AsLong()) && e.UserId.Equals(userInfo.Id.AsLong()))
|
||||||
.MessageCount;
|
.MessageCount;
|
||||||
var guildMessages = _database.Messages
|
var guildMessages = _database.Messages
|
||||||
.Where(e => e.GuildId.Equals(Context.Guild.Id.AsLong()))
|
.Where(e => e.GuildId.Equals(Context.Guild.Id.AsLong()))
|
||||||
|
|
Loading…
Reference in a new issue