Lines 379-389
Util_Autoload_from (const char *dir_name)
Link Here
|
379 |
static void |
379 |
static void |
380 |
Util_Autoload() |
380 |
Util_Autoload() |
381 |
{ |
381 |
{ |
|
|
382 |
const char *xdir; |
383 |
char *sub_dir; |
382 |
/* we need local filesystem encoding for chdir, opendir etc */ |
384 |
/* we need local filesystem encoding for chdir, opendir etc */ |
383 |
|
385 |
|
384 |
/* auto-load from ~/.xchat2/ or %APPDATA%\X-Chat 2\ */ |
386 |
/* auto-load from ~/.xchat2/ or %APPDATA%\X-Chat 2\ */ |
|
|
387 |
xdir = xchat_get_info(ph, "xchatdirfs"); |
385 |
Util_Autoload_from(xchat_get_info(ph, "xchatdirfs")); |
388 |
Util_Autoload_from(xchat_get_info(ph, "xchatdirfs")); |
386 |
|
389 |
|
|
|
390 |
/* auto-load from subdirectory plugins */ |
391 |
sub_dir = malloc (strlen (xdir) + 9); |
392 |
strcpy (sub_dir, xdir); |
393 |
strcat (sub_dir, "/plugins"); |
394 |
Util_Autoload_from(sub_dir); |
395 |
free (sub_dir); |
396 |
|
387 |
#ifdef WIN32 /* also auto-load C:\Program Files\XChat\Plugins\*.py */ |
397 |
#ifdef WIN32 /* also auto-load C:\Program Files\XChat\Plugins\*.py */ |
388 |
Util_Autoload_from(XCHATLIBDIR"/plugins"); |
398 |
Util_Autoload_from(XCHATLIBDIR"/plugins"); |
389 |
#endif |
399 |
#endif |
390 |
- |
|
|