1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 01:57:59 +01:00

Move bang/count to args.

This commit is contained in:
Kris Maglione
2008-11-26 21:53:22 +00:00
parent 20ab9ef0c7
commit 0adf03a6b8
13 changed files with 139 additions and 131 deletions

View File

@@ -662,8 +662,9 @@ function Mail() //{{{
commands.add(["go[to]"],
"Select a folder",
function (args, special, count)
function (args)
{
let count = args.count;
args = args.string || "Inbox";
count = count > 0 ? (count - 1) : 0;
@@ -732,7 +733,7 @@ function Mail() //{{{
commands.add(["get[messages]"],
"Check for new messages",
function (args, special) mail.getNewMessages(!special),
function (args) mail.getNewMessages(!args.bang),
{
argCount: "0",
bang: true,