diff options
Diffstat (limited to 'twittperator.js')
-rwxr-xr-x | twittperator.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/twittperator.js b/twittperator.js index 7189704..b50d7ac 100755 --- a/twittperator.js +++ b/twittperator.js @@ -1865,7 +1865,13 @@ let PLUGIN_INFO = SubCommand({ command: ["track"], description: "Track the specified words.", - action: function(arg) TrackingStream.start({track: arg}), + action: function(arg) { + if (arg.trim().length > 0) { + TrackingStream.start({track: arg}); + } else { + TrackingStream.stop(); + } + }, completer: function (context, args) { if (setting.trackWords) context.completions = [[setting.trackWords, "Global variable"]]; |