ignore automod PMs

This commit is contained in:
Master Kwoth 2016-01-23 18:05:10 +01:00
parent 7d460e4f73
commit c893736dbb

View File

@ -145,6 +145,11 @@ namespace NadekoBot
static bool repliedRecently = false; static bool repliedRecently = false;
private static async void Client_MessageReceived(object sender, MessageEventArgs e) { private static async void Client_MessageReceived(object sender, MessageEventArgs e) {
if (e.Server != null || e.User.Id == client.CurrentUser.Id) return; if (e.Server != null || e.User.Id == client.CurrentUser.Id) return;
//just ban this trash AutoModerator
if (e.User.Id == 105309315895693312)
return; // FU
try { try {
await (await client.GetInvite(e.Message.Text)).Accept(); await (await client.GetInvite(e.Message.Text)).Accept();
await e.Send("I got in!"); await e.Send("I got in!");