mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-03 16:43:12 +02:00
- #0002475 reported by aquanight on detecting \'s in module filenames on
win32 and not do ./module for it
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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, "./");
|
||||
|
||||
Reference in New Issue
Block a user