Skip to content

Commit ced45bb

Browse files
committed
Check if DLLs can be loaded
1 parent cda8eee commit ced45bb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

plugins/Version_Check.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
purpose="Checks for a new version of MUSHclient"
1111
date_written="2010-11-13 16:45:58"
1212
requires="4.60"
13-
version="1.4"
13+
version="1.5"
1414
>
1515
<description trim="y">
1616
<![CDATA[
@@ -163,6 +163,14 @@ function do_version_check ()
163163
require "getlines"
164164
require "movewindow"
165165
166+
if package.loaders [3] == nil or package.loadlib == nil then
167+
ColourNote ("orange", "", GetPluginName () .. " cannot do version check.")
168+
ColourNote ("orange", "", "You need to allow DLLs to be loaded.")
169+
ColourNote ("orange", "", "You also need to trust this plugin.")
170+
ColourNote ("orange", "", "See File Menu -> Global Preferences -> Lua")
171+
return
172+
end -- if
173+
166174
local http = require "socket.http"
167175
168176
SetStatus "Checking for latest MUSHclient version ..."

0 commit comments

Comments
 (0)