From 6aaf487e94e414bfd258d26883e868bd26291c8a Mon Sep 17 00:00:00 2001 From: dboerlage Date: Tue, 18 Apr 2017 14:57:42 +0200 Subject: [PATCH] bot now ignores its own messages --- Geekbot.net/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Geekbot.net/Program.cs b/Geekbot.net/Program.cs index 3f48121..d5b4b03 100755 --- a/Geekbot.net/Program.cs +++ b/Geekbot.net/Program.cs @@ -80,6 +80,7 @@ namespace Geekbot.net { var message = messageParam as SocketUserMessage; if (message == null) return; + if (message.Author.Username.Equals(client.CurrentUser.Username)) return; int argPos = 0; if (message.ToString().ToLower().StartsWith("ping")) {