mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Wordlists that are already in the DB will not be imported again.
This commit is contained in:
@@ -88,6 +88,12 @@ namespace OpenBullet
|
||||
|
||||
public void AddWordlist(Wordlist wordlist)
|
||||
{
|
||||
if (vm.WordlistList.Any(w => w.Path == wordlist.Path))
|
||||
{
|
||||
Globals.LogError(Components.WordlistManager, $"Wordlist already present: {wordlist.Path}");
|
||||
return;
|
||||
}
|
||||
|
||||
vm.WordlistList.Add(wordlist);
|
||||
AddWordlistToDB(wordlist);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user