summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-02-07 19:36:45 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-02-07 19:36:45 +0000
commite06e83160897cf2a7ecea99fcf82d7587e731dd8 (patch)
treeb7e55a4c8addf9ae373aa1263075e3e37119c6b6
parent45ad955d9e0e666e1d28908651c6b04caea4a8f8 (diff)
downloadirssi-e06e83160897cf2a7ecea99fcf82d7587e731dd8.zip
/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
-rw-r--r--src/core/modules.c3
1 files changed, 2 insertions, 1 deletions
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 */