Skip to content

Commit

Permalink
Fix a NRE in MessageSnipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Naamloos committed Mar 9, 2023
1 parent fabd84a commit fb3dc93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ModCore/Listeners/MessageSnipe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static async Task MessageEdited(MessageUpdateEventArgs eventargs, SharedD

using var db = database.CreateContext();
var cfg = eventargs.Guild.GetGuildSettings(db);
if(cfg.Logging.EditLog_Enable)
if(cfg != null && cfg.Logging.EditLog_Enable)
{
var channel = eventargs.Guild.GetChannel(cfg.Logging.ChannelId);
if (channel == null)
Expand Down

0 comments on commit fb3dc93

Please sign in to comment.