Skip to content

Commit

Permalink
Merge pull request #1766 from elanthia-online/alias-v1.0.4
Browse files Browse the repository at this point in the history
[alias.lic] v1.0.4 bugfix in upstreamhook stopping
  • Loading branch information
mrhoribu authored Feb 1, 2025
2 parents 93b2d42 + 08cb617 commit 34d2722
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/alias.lic
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
game: Gemstone
tags: core, alias
required: Lich > 5.0.1
version: 1.0.3
version: 1.0.4
Help Contribute: https://github.com/elanthia-online/scripts
changelog:
1.0.4 (2025-01-31)
Bugfix in .include? syntax for stopping upstreamhook
1.0.3 (2024-05-08)
Update for sqlite3 gem version 2.0+ support
1.0.2 (2023-03-04)
Expand Down Expand Up @@ -44,7 +46,7 @@
=end

if Script.current.vars[1] =~ /^stop/i
if UpstreamHook.list.include('alias-service')
if UpstreamHook.list.include?('alias-service')
UpstreamHook.remove('alias-service')
respond "\n--- Lich: alias service stopped\n\n"
else
Expand Down Expand Up @@ -284,7 +286,6 @@ hook_proc = proc { |client_string|
$alias_setup_window.add(notebook)
$alias_setup_window.signal_connect('delete_event') {
report_errors {
modified = false
modified = new_char_aliases.any? { |a| (a[1] != nil) and a[1].sensitive? } || new_global_aliases.any? { |a| (a[1] != nil) and a[1].sensitive? }
unless modified
char_aliases.each_index { |i| if char_textboxes[i].nil? or (char_aliases[i][1] != char_textboxes[i].text); modified = true; echo modified; break; end }
Expand Down

0 comments on commit 34d2722

Please sign in to comment.