]> jfr.im git - irc/unrealircd/unrealircd.git/commitdiff
- #0002475 reported by aquanight on detecting \'s in module filenames on
authorstskeeps <redacted>
Tue, 12 Jun 2007 21:30:08 +0000 (21:30 +0000)
committerstskeeps <redacted>
Tue, 12 Jun 2007 21:30:08 +0000 (21:30 +0000)
  win32 and not do ./module for it

Changes
src/modules.c

diff --git a/Changes b/Changes
index cdeee31f80de1883bdb35ae411a12ae8168133c9..9add30e693ec2188c17303a91f516a5094ff4937 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1776,3 +1776,5 @@ MOTDs
   CommandAdd's through a huge patch. This may break some things, so heads
   up. From now on add_Command is unsafe land for modules and may be removed
   without warning.
+- #0002475 reported by aquanight on detecting \'s in module filenames on
+  win32 and not do ./module for it
index 9b11e62df38f5493f8046b70fbd1b864a27da023..8edab8d99128f573ce5a69e88c9f7a55ad1e071d 100644 (file)
@@ -322,7 +322,11 @@ char  *Module_Create(char *path_)
        tmppath = unreal_mktemp("tmp", unreal_getfilename(path));
        if (!tmppath)
                return "Unable to create temporary file!";
+#ifndef _WIN32
        if(!strchr(path, '/'))
+#else
+       if (!strchr(path, '\\') && !strchr(path, '/')
+#endif
        {
                path = MyMalloc(strlen(path) + 3);
                strcpy(path, "./");