Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions plugins/warp/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ fn load_network_container() {
fn plugin_init() -> bool {
Logger::new("WARP").with_level(LevelFilter::Debug).init();

// Create the user signature directory if it does not exist, otherwise we will not be able to write to it.
if !user_signature_dir().exists() {
if let Err(e) = std::fs::create_dir_all(&user_signature_dir()) {
log::error!("Failed to create user signature directory: {}", e);
}
}

// Register our matcher and plugin settings globally.
let mut global_bn_settings = Settings::new();
global_bn_settings.register_group("warp", "WARP");
Expand Down
Loading