Revert accidental direct commit

This commit is contained in:
Kyle Spier-Swenson
2017-07-08 23:32:53 -07:00
committed by GitHub
parent 0d0e97f7a6
commit 902cc64f17
+2 -4
View File
@@ -1,4 +1,4 @@
using Discord;
using Discord;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -45,9 +45,7 @@ namespace TGServerService
private void Client_MessageReceived(object sender, MessageEventArgs e)
{
if (e.User.Id == client.CurrentUser.Id)
return
var pm = e.Channel.IsPrivate;
var pm = e.Channel.IsPrivate && e.User.Id != client.CurrentUser.Id;
if (pm && !SeenPrivateChannels.ContainsKey(e.Channel.Id))
SeenPrivateChannels.Add(e.Channel.Id, e.Channel);