aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--protocols/nogaim.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/nogaim.c b/protocols/nogaim.c
index c902258a..ab11508b 100644
--- a/protocols/nogaim.c
+++ b/protocols/nogaim.c
@@ -132,6 +132,10 @@ void load_plugins(void)
char *path;
while ((entry = g_dir_read_name(dir))) {
+ if (!g_str_has_suffix(entry, "." G_MODULE_SUFFIX)) {
+ continue;
+ }
+
path = g_build_filename(global.conf->plugindir, entry, NULL);
if (!path) {
log_message(LOGLVL_WARNING, "Can't build path for %s\n", entry);