Fixed .prune in combination with .delmsgoncmd
This commit is contained in:
		@@ -45,7 +45,7 @@ namespace NadekoBot.Modules.Administration
 | 
				
			|||||||
                var channel = msg.Channel as SocketTextChannel;
 | 
					                var channel = msg.Channel as SocketTextChannel;
 | 
				
			||||||
                if (channel == null)
 | 
					                if (channel == null)
 | 
				
			||||||
                    return;
 | 
					                    return;
 | 
				
			||||||
                if (DeleteMessagesOnCommand.Contains(channel.Guild.Id))
 | 
					                if (DeleteMessagesOnCommand.Contains(channel.Guild.Id) && cmd.Name != "prune")
 | 
				
			||||||
                    await msg.DeleteAsync().ConfigureAwait(false);
 | 
					                    await msg.DeleteAsync().ConfigureAwait(false);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            catch (Exception ex)
 | 
					            catch (Exception ex)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user