diff options
-rwxr-xr-x | twittperator.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/twittperator.js b/twittperator.js index 5a19106..b7e7ecc 100755 --- a/twittperator.js +++ b/twittperator.js @@ -1374,10 +1374,13 @@ function ReTweet(id) { // {{{ }); } // }}} function setup() { // {{{ + let SubCommands = [ + ]; + commands.addUserCommand(["tw[ittperator]"], "Twittperator command", - function(arg) { - let bang = arg.bang; - arg = arg.string.replace(/%URL%/g, liberator.modules.buffer.URL) + function(args) { + let bang = args.bang; + let arg = args.literalArg.replace(/%URL%/g, liberator.modules.buffer.URL) .replace(/%TITLE%/g, liberator.modules.buffer.title); if (bang && arg.match(/^\?\s*(.*)/)) |