Skip to content

Commit 8edf524

Browse files
committed
Fixed bug in recompiling triggers
1 parent c8a911a commit 8edf524

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dialogs/world_prefs/configuration.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,12 +2446,12 @@ int CMUSHclientDoc::RecompileRegularExpressions ()
24462446
} // end of try
24472447
catch(CException* e)
24482448
{
2449+
pTrigger->regexp = NULL;
24492450
e->Delete ();
24502451
iTriggerErrors++;
24512452
ColourNote ("red", "",
24522453
TFormat ("In %s, could not recompile trigger (%s) matching on: %s.",
24532454
(LPCTSTR) sPluginName, (LPCTSTR) pTrigger->strInternalName, (LPCTSTR) strRegexp));
2454-
pTrigger->regexp = NULL;
24552455
} // end of catch
24562456
} // end of for each trigger
24572457

@@ -2480,12 +2480,12 @@ int CMUSHclientDoc::RecompileRegularExpressions ()
24802480
} // end of try
24812481
catch(CException* e)
24822482
{
2483+
pAlias->regexp = NULL;
24832484
e->Delete ();
24842485
iAliasErrors++;
24852486
ColourNote ("red", "",
24862487
TFormat ("In %s, could not recompile alias (%s) matching on: %s.",
24872488
(LPCTSTR) sPluginName, (LPCTSTR) pAlias->strInternalName, (LPCTSTR) strRegexp));
2488-
pAlias->regexp = NULL;
24892489
} // end of catch
24902490
} // end of for each alias
24912491

0 commit comments

Comments
 (0)