Browse Source

Don't crash if a module is loaded and the bot leaves a server.

pull/12/merge
RogueException 9 years ago
parent
commit
293cf3b956
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Modules/ModuleManager.cs

+ 1
- 1
src/Discord.Net.Modules/ModuleManager.cs View File

@@ -95,7 +95,7 @@ namespace Discord.Modules
client.RoleUpdated += (s, e) => { if (RoleUpdated != null && HasIndirectServer(e.Server)) RoleUpdated(s, e); };
client.RoleDeleted += (s, e) => { if (RoleDeleted != null && HasIndirectServer(e.Server)) RoleDeleted(s, e); };

client.LeftServer += (s, e) => { if (LeftServer != null && HasIndirectServer(e.Server)) DisableServer(e.Server); LeftServer(s, e); };
client.LeftServer += (s, e) => { if (LeftServer != null && HasIndirectServer(e.Server)) { DisableServer(e.Server); LeftServer(s, e); } };
client.ServerUpdated += (s, e) => { if (ServerUpdated != null && HasIndirectServer(e.Server)) ServerUpdated(s, e); };
client.ServerUnavailable += (s, e) => { if (ServerUnavailable != null && HasIndirectServer(e.Server)) ServerUnavailable(s, e); };
client.ServerAvailable += (s, e) => { if (ServerAvailable != null && HasIndirectServer(e.Server)) ServerAvailable(s, e); };


Loading…
Cancel
Save