message repeater fix?

This commit is contained in:
Master Kwoth 2016-04-23 08:39:08 +02:00
parent d6ca8a8846
commit b90cb958c9

View File

@ -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;
}