Skip to content

Commit

Permalink
Merge branch 'development' into MUSHclient
Browse files Browse the repository at this point in the history
  • Loading branch information
fiendish committed Apr 8, 2018
2 parents fe4d89a + 4c2a3b0 commit cb4f1a0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
4 changes: 4 additions & 0 deletions MUSHclient/AardwolfPackageChanges.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Aardwolf Client Package Major Changes List

r1987 snapshot
- misc change: Pwar's soundpack plugin will be automatically installed now. It starts with everything off unless you're using the non-visual package, so I don't see a good reason to not load it.
- bug fix: The communication log window was sometimes preserving message contents across restarts too, but I don't want that.

r1986 snapshot
- new feature: The communication log window will now preserve its message contents when switching color themes.
- new feature: Themes can now optionally override the background pattern behavior. The "Pink Neon" theme gives a decent demonstration.
Expand Down
1 change: 1 addition & 0 deletions MUSHclient/lua/aard_requirements.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ if not GetVariable("just_reloading") then
do_plugin_check_now("55616ea13339bc68e963e1f8", "aard_chat_echo") -- gmcp channels in main display
do_plugin_check_now("520bc4f29806f7af0017985f", "Hyperlink_URL2") -- make hyperlinks from urls
do_plugin_check_now("04d9e64f835452b045b427a7", "aard_Copy_Colour_Codes") -- Ctrl+D to copy selected text with color codes
do_plugin_check_now("23832d1089f727f5f34abad8", "aard_soundpack") -- pre-made collection of common sound triggers
end

DeleteVariable("just_reloading")
33 changes: 10 additions & 23 deletions MUSHclient/worlds/plugins/aard_channels_fiendish.xml
Original file line number Diff line number Diff line change
Expand Up @@ -607,24 +607,22 @@ function setupDisplay ()
drawTabs()
end
function OnPluginConnect ()
-- first time after connect, get tags right
end -- OnPluginConnect
function OnPluginClose ()
-- if enabled
if GetPluginInfo(GetPluginID(), 17) then
OnPluginDisable()
end -- if enabled
WindowDelete(win)
if GetVariable("just_reloading") then
local temp_tabs_data = {}
for i,v in ipairs(tabs_rects) do
temp_tabs_data[i] = {
["contents"] = v:serializeContents(),
["activity"] = tabs_activity[i]
}
end
SetVariable("temp_tabs_data", serialize.save_simple(temp_tabs_data))
end
end -- OnPluginClose
function OnPluginEnable ()
WindowShow(win, true)
-- if we are connected when the plugin loads, it must have been reloaded while playing
if IsConnected() then
OnPluginConnect()
end -- if already connected
end -- OnPluginEnable
function OnPluginDisable()
Expand Down Expand Up @@ -657,17 +655,6 @@ function OnPluginSaveState()
SetVariable("tabs_names", serialize.save("tabs_names"))
SetVariable("tabs_channel_captures", serialize.save("tabs_channel_captures"))
SetVariable("tabs_nonchannel_captures", serialize.save("tabs_nonchannel_captures"))
if GetVariable("just_reloading") then
local temp_tabs_data = {}
for i,v in ipairs(tabs_rects) do
temp_tabs_data[i] = {
["contents"] = v:serializeContents(),
["activity"] = tabs_activity[i]
}
end
SetVariable("temp_tabs_data", serialize.save_simple(temp_tabs_data))
end
end
function sanitize_filename(str)
Expand Down

0 comments on commit cb4f1a0

Please sign in to comment.