Temp fix to module crash on leaving a server

This commit is contained in:
RogueException
2015-12-25 02:28:08 -04:00
parent 24b1e3ed86
commit 5f5004d85f

View File

@@ -152,7 +152,7 @@ namespace Discord.Modules
public bool DisableServer(Server server)
{
if (server == null) throw new ArgumentNullException(nameof(server));
if (!_useServerWhitelist) throw new InvalidOperationException("This module is not configured to use a server whitelist.");
//if (!_useServerWhitelist) throw new InvalidOperationException("This module is not configured to use a server whitelist.");
lock (this)
{