From c501b398689febbcbf3635cd0f83987db4599b30 Mon Sep 17 00:00:00 2001 From: AreiaAard Date: Thu, 20 May 2021 12:39:38 -0400 Subject: [PATCH] Change ac ignore mob/s to ac ignore name/s, add /s to other ignore options --- areia_consider.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/areia_consider.xml b/areia_consider.xml index 6ac6644..6f88dfd 100644 --- a/areia_consider.xml +++ b/areia_consider.xml @@ -11,7 +11,7 @@ save_state="y" date_written="2021-04-11 21:00:00" requires="5.06" - version="1.13" + version="1.14" > \\w+)(?:\\s+(?\\w+))?$", "", + "^ac\\s+ignore\\s+flags?\\s+(?\\w+)(?:\\s+(?\\w+))?$", "", alias_flag.Enabled + alias_flag.IgnoreAliasCase + alias_flag.RegularExpression + alias_flag.Temporary, "Settings.ignore_flag_toggle" ) @@ -147,18 +147,18 @@ function Settings.initialize() "Settings.ignore_level_display" ) AddAlias("alias_settings_ignore_level_toggle", - "^ac\\s+ignore\\s+level\\s+(?\\d+)(?:\\s+(?\\w+))?$", "", + "^ac\\s+ignore\\s+levels?\\s+(?\\d+)(?:\\s+(?\\w+))?$", "", alias_flag.Enabled + alias_flag.IgnoreAliasCase + alias_flag.RegularExpression + alias_flag.Temporary, "Settings.ignore_level_toggle" ) AddAlias("alias_settings_ignore_mob_display", - "^ac\\s+ignore\\s+mobs?$", "", + "^ac\\s+ignore\\s+names?$", "", alias_flag.Enabled + alias_flag.IgnoreAliasCase + alias_flag.RegularExpression + alias_flag.Temporary, "Settings.ignore_mob_display" ) AddAlias("alias_settings_ignore_mob_toggle", - "^ac\\s+ignore\\s+mob\\s+(?.+?)$", "", + "^ac\\s+ignore\\s+names?\\s+(?.+?)$", "", alias_flag.Enabled + alias_flag.IgnoreAliasCase + alias_flag.RegularExpression + alias_flag.Temporary, "Settings.ignore_mob_toggle" ) @@ -326,7 +326,7 @@ function Settings.ignore_mob_toggle(alias, line, wc) local mob = wc.mob:lower() Settings.config.ignore.mobs[mob] = not Settings.config.ignore.mobs[mob] and true or nil Settings.save() - Utility.plugin_msg(string.format("%s @wignoreing mob @Y%s@w.", + Utility.plugin_msg(string.format("%s @wignoreing mobs named @Y%s@w.", Settings.config.ignore.mobs[mob] and "@GNow" or "@RNo longer", Utility.pascalCase(mob) ))