mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-25 08:48:09 -05:00
Add /whowas command
This commit is contained in:
parent
00eebc9859
commit
7b11b10955
1 changed files with 11 additions and 0 deletions
11
commands.js
11
commands.js
|
@ -395,4 +395,15 @@ export default {
|
||||||
markServerBufferUnread(app);
|
markServerBufferUnread(app);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"whowas": {
|
||||||
|
usage: "<nick> [count]",
|
||||||
|
description: "Retrieve information about an offline user",
|
||||||
|
execute: (app, args) => {
|
||||||
|
if (args.length < 1) {
|
||||||
|
throw new Error("Missing nick");
|
||||||
|
}
|
||||||
|
getActiveClient(app).send({ command: "WHOWAS", params: args });
|
||||||
|
markServerBufferUnread(app);
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue