Gammon Forum
Entire forum
MUSHclient
Bug reports
Invalid plugins directory / Does MC check for validity?
Invalid plugins directory / Does MC check for validity?
|
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Kovarid
(15 posts) bio
|
Date
| Fri 13 Feb 2015 04:16 PM (UTC) |
Message
| Ran into an issue with one of the users of my MC Plugins wasn't loading icons properly, among other errors indicating something was wrong with his folder structure and/or permissions.
Upon investigation, I noticed that
GetInfo(60) reported (incorrect)
C:\Users\Billy\Documents\MUSHclient\worlds\plugins\
And GetInfo(66) reported (correct)
C\Users\B.money\Documents\MUSHclient\
This was due to him copying his MC directory from one computer to another, which had a different user name, but both resided in the Documents folder of the user.
MC worked fine, up until my plugin (which uses GetInfo(60) to get info) tried to load icons in his Plugins folder, or otherwise open files (self updating).
Now if the plugins directory as set in global options was a valid directory (exists) I could see that this is working as intended, but does MC check to see if it exists and send an error message if the plugin folder is invalid?
Not really a bug if it's working as intended, but seems prudent to check for a valid plugin folder if it's going to give the info out in GetInfo(60).
Just thought i'd report it.. Thanks! | top |
|
Posted by
| Nick Gammon
Australia (22,975 posts) bio
Forum Administrator |
Date
| Reply #1 on Fri 13 Feb 2015 07:44 PM (UTC) |
Message
| GetInfo(60) is "Plugin files default path (directory)".
No it doesn't check for validity. That is basically a string that is kept in the SQLite table for global configuration.
As far as I can make out from the source, it is basically used when saving a new plugin (with the plugin wizard) or loading an existing one, as the default starting place to look for plugins. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
8,329 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.