From b90cb958c9cb06fa2958b754465a8dfb2f92b365 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Sat, 23 Apr 2016 08:39:08 +0200 Subject: [PATCH] message repeater fix? --- NadekoBot/Modules/Administration/Commands/MessageRepeater.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs b/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs index 09161ab8..ca41ad41 100644 --- a/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs +++ b/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs @@ -68,7 +68,7 @@ namespace NadekoBot.Modules.Administration.Commands { await e.Channel.SendMessage("Repeating disabled").ConfigureAwait(false); Repeater rep; - if (repeaters.TryGetValue(e.Server, out rep)) + if (repeaters.TryRemove(e.Server, out rep)) rep.MessageTimer.Stop(); return; }