-#ifdef STATIC_LINK
- this->staticname[0] = '\0';
- log(DEBUG,"Loading core-compiled module '%s'",fname);
- for (int j = 0; modsyms[j].name; j++)
- {
- log(DEBUG,"Check %s",modsyms[j].name);
- if (!strcmp(modsyms[j].name,fname))
- {
- log(DEBUG,"Found %s",fname);
- strlcpy(this->staticname,fname,1020);
- err = 0;
- return;
- }
- }
- err = "Module is not statically compiled into the ircd";
-#else
-#ifdef IS_CYGWIN
- // Cygwin behaviour is handled slightly differently
- // With the advent of dynamic modules. Because Windows
- // wont let you overwrite a file which is currently in
- // Use, we can safely attempt to load the module from its
- // Current location :)