# HG changeset patch # User David Demelier # Date 1456747918 -3600 # Node ID aa205621d7d601f98c2e5a0108c2c3d0b41a0b5e # Parent c4fe9a8b1a62607dc408402adca412a93ecbf4b5 Plugin history: add command keyword, #392 diff -r c4fe9a8b1a62 -r aa205621d7d6 plugins/history/history.js --- 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) { diff -r c4fe9a8b1a62 -r aa205621d7d6 plugins/history/history.md --- 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: