invokerune and destroyrune are aliases - a rune must see the command that actually runs, or "method/createrune" is bypassed by the alias */
| 1002 | |
| 1003 | /* invokerune and destroyrune are aliases - a rune must see the command that actually runs, or "method/createrune" is bypassed by the alias */ |
| 1004 | static const char *canonical_method(const char *method) |
| 1005 | { |
| 1006 | if (method && streq(method, "invokerune")) |
| 1007 | return "createrune"; |
| 1008 | if (method && streq(method, "destroyrune")) |
| 1009 | return "blacklistrune"; |
| 1010 | return method; |
| 1011 | } |
| 1012 | |
| 1013 | static struct command_result *json_checkrune(struct command *cmd, |
| 1014 | const char *buffer, |