From e06e83160897cf2a7ecea99fcf82d7587e731dd8 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 7 Feb 2001 19:36:45 +0000 Subject: [PATCH] /LOAD ./path/module - loads module from path relative to current directory instea of trying to find it from ~/.irssi/modules or $PREFIX/lib/modules git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1189 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/modules.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/modules.c b/src/core/modules.c index 614fbf0a..d0d27508 100644 --- a/src/core/modules.c +++ b/src/core/modules.c @@ -246,7 +246,8 @@ static GModule *module_open(const char *name) GModule *module; char *path, *str; - if (g_path_is_absolute(name)) + if (g_path_is_absolute(name) || + (*name == '.' && name[1] == G_DIR_SEPARATOR)) path = g_strdup(name); else { /* first try from home dir */