Skip to content

disableTrigger() doesn't work on just-created simple trigger group with child trigger #5875

@bbcallen

Description

@bbcallen

Brief summary of issue / Description of requested feature:

disableTrigger() doesn't work on just-created simple trigger group with child trigger

Steps to reproduce the issue / Reasons for adding feature:

  1. Start mudlet.
  2. Start a clean profile offline. Make sure no alias/trigger/script/variable/timer defined
  3. Create a script named 'test', paste code below and save to execute
if exists('mygroup', 'trigger') == 0 then
    permGroup('mygroup', 'trigger')
end
if exists('mytr', 'trigger') == 0 then
    permPromptTrigger('mytr', 'mygroup', '')
end
enableTrigger('mytr')
disableTrigger('mygroup')
debugc("isActive('mygroup', 'trigger')=" .. isActive('mygroup', 'trigger'))
enableTrigger('mygroup')
debugc("isActive('mygroup', 'trigger')=" .. isActive('mygroup', 'trigger'))

Error output / Expected result of feature

Error output: (in error view)

*** starting new session ***
[DEBUG:] isActive('mygroup', 'trigger')=0
[DEBUG:] isActive('mygroup', 'trigger')=0

Expected result: (in error view)

*** starting new session ***
[DEBUG:] isActive('mygroup', 'trigger')=0
[DEBUG:] isActive('mygroup', 'trigger')=1

Extra information, such as Mudlet version, operating system and ideas for how to solve / implement:

  • Mudlet 4.14.1
  • macOS 11.6
  • x86_64
  1. After steps above, switch to trigger view, the trigger group 'mygroup' shows with a bug icon.
  2. Select the trigger group 'mygroup', the icon becomes locked icon.
  3. Switch back to script view, the script would lead to correct result.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions