Mercurial > irccd
changeset 45:aa205621d7d6
Plugin history: add command keyword, #392
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 29 Feb 2016 13:11:58 +0100 |
parents | c4fe9a8b1a62 |
children | 131551c901ae |
files | plugins/history/history.js plugins/history/history.md |
diffstat | 2 files changed, 13 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/history/history.js Mon Feb 29 13:10:02 2016 +0100 +++ b/plugins/history/history.js Mon Feb 29 13:11:58 2016 +0100 @@ -136,11 +136,12 @@ { var args = message.trim().split(" "); var kw = { - "server": server.toString(), - "channel": channel, - "origin": origin, - "nickname": Util.splituser(origin), - "plugin": command(server), + channel: channel, + command: command(server), + nickname: Util.splituser(origin), + origin: origin, + plugin: Plugin.info().name, + server: server.toString() }; if (args.length !== 2 || args[0].length === 0 || args[1].length === 0) {
--- a/plugins/history/history.md Mon Feb 29 13:10:02 2016 +0100 +++ b/plugins/history/history.md Mon Feb 29 13:11:58 2016 +0100 @@ -58,13 +58,13 @@ The following keywords are supported: -| Format | Keywords | Notes | -|-------------------------|-----------------------------------|---------------------------------| -| (any) | server, channel, nickname, origin | | -| **file** | server, channel | does not support (any) | -| **format-seen** | target, (date) | target is the specified nick | -| **format-said** | target, message, (date) | | -| **format-unknown** | target | | +| Format | Keywords | Notes | +|-------------------------|----------------------------------------------------|---------------------------------| +| (any) | channel, command, nickname, origin, plugin, server | | +| **file** | channel, server | does not support (any) | +| **format-seen** | target, (date) | target is the specified nick | +| **format-said** | message, target, (date) | | +| **format-unknown** | target | | Example: