Add support for bot mode
References: https://ircv3.net/specs/extensions/bot-mode
This commit is contained in:
parent
8507500d74
commit
6b04cb1417
3 changed files with 12 additions and 0 deletions
4
state.js
4
state.js
|
@ -454,6 +454,10 @@ export const State = {
|
|||
if (who.flags !== undefined) {
|
||||
who.away = who.flags.indexOf("G") >= 0; // H for here, G for gone
|
||||
who.operator = who.flags.indexOf("*") >= 0;
|
||||
let botFlag = client.isupport.bot();
|
||||
if (botFlag) {
|
||||
who.bot = who.flags.indexOf(botFlag) >= 0;
|
||||
}
|
||||
delete who.flags;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue