about summary refs log tree commit diff stats
path: root/src/plugins
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-02-20 10:31:34 +0100
committerGitHub <noreply@github.com>2019-02-20 10:31:34 +0100
commitc8f55ed3385c44acc5d2675e086cc71e719f7c2c (patch)
tree1daf382759cdf9cf2c0063701aa39f76b8fe16cd /src/plugins
parentfbbf920e2a36079a63ad74b258564fbf5200212e (diff)
parentd1c54e9aaa3b6b9343759ab0e7572d5b71203b71 (diff)
downloadprofani-tty-c8f55ed3385c44acc5d2675e086cc71e719f7c2c.tar.gz
Merge pull request #994 from philipflohr/master
Fail plugin unloading if plugin does not exist
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/plugins.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c
index 41885541..4d109886 100644
--- a/src/plugins/plugins.c
+++ b/src/plugins/plugins.c
@@ -319,8 +319,9 @@ plugins_unload(const char *const name)
             resource_presence_t last_presence = accounts_get_last_presence(account_name);
             cl_ev_presence_send(last_presence, 0);
         }
+        return TRUE;
     }
-    return TRUE;
+    return FALSE;
 }
 
 void