diff --git a/Classes/IRC/IRCClient.m b/Classes/IRC/IRCClient.m
index 5bbe81a15b..cea6beb498 100755
--- a/Classes/IRC/IRCClient.m
+++ b/Classes/IRC/IRCClient.m
@@ -1168,7 +1168,7 @@ - (void)decryptIncomingMessage:(NSString **)message channel:(IRCChannel *)chan
#pragma mark -
#pragma mark Plugins and Scripts
-- (void)executeTextualCmdScript:(NSDictionary *)details
+-(void)executeTextualCmdScript:(NSDictionary *)details
{
if ([details containsKey:@"path"] == NO) {
return;
@@ -1179,8 +1179,12 @@ - (void)executeTextualCmdScript:(NSDictionary *)details
#ifdef TXUserScriptsFolderAvailable
BOOL MLNonsandboxedScript = NO;
- if ([scriptPath contains:[TPCPreferences whereScriptsUnsupervisedPath]]) {
- MLNonsandboxedScript = YES;
+ NSString *userScriptsPath = [TPCPreferences whereScriptsUnsupervisedPath];
+
+ if (NSObjectIsNotEmpty(userScriptsPath)) {
+ if ([scriptPath contains:[TPCPreferences whereScriptsUnsupervisedPath]]) {
+ MLNonsandboxedScript = YES;
+ }
}
#endif
diff --git a/Classes/Preferences/TPCPreferences.m b/Classes/Preferences/TPCPreferences.m
index 89e3d9cd21..7fa046c97d 100755
--- a/Classes/Preferences/TPCPreferences.m
+++ b/Classes/Preferences/TPCPreferences.m
@@ -260,7 +260,7 @@ + (NSString *)whereScriptsUnsupervisedPath
error:NULL].relativePath;
}
- return nil;
+ return NSStringEmptyPlaceholder;
}
#endif
diff --git a/Resources/Info.plist b/Resources/Info.plist
index 74c4bddfdd..187bfdb9f9 100755
--- a/Resources/Info.plist
+++ b/Resources/Info.plist
@@ -45,8 +45,8 @@
NSPrincipalClass
NSApplication
TXBundleBuildNumber
- 11454
+ 11457
TXBundleBuildReference
- 2.1.1-188-g8736839-stdbuild,llvm4.0
+ 2.1.1-188-g0b797db-stdbuild,llvm4.0