forked from CringeStudios/gamja
Compare commits
32 Commits
eslint-ext
...
master
Author | SHA1 | Date | |
---|---|---|---|
d7c990d5d8 | |||
137a7d9014 | |||
38ac1fa83f | |||
![]() |
fcc80a85e3 | ||
![]() |
76b6931ebb | ||
![]() |
7d068fd1fe | ||
![]() |
735dd8fd8c | ||
![]() |
c461f4903e | ||
![]() |
f897e7d11b | ||
![]() |
95749ba516 | ||
![]() |
39a2bc4a3d | ||
![]() |
614ed5c895 | ||
![]() |
8d96f93fb5 | ||
![]() |
9922d11654 | ||
![]() |
57c5f2b1cc | ||
![]() |
0cc1c53fa4 | ||
![]() |
93d7d22726 | ||
![]() |
136353b2b5 | ||
![]() |
7dd21177bc | ||
![]() |
ca0cfdcc28 | ||
![]() |
1e3903c014 | ||
![]() |
5146b0cad8 | ||
![]() |
513cf825a5 | ||
![]() |
9fef11564d | ||
![]() |
9dda4ee438 | ||
![]() |
9299f79bab | ||
![]() |
e4088304bf | ||
![]() |
6ea3601718 | ||
![]() |
bcf3741ab4 | ||
![]() |
ec5e67336f | ||
![]() |
4d988c98d0 | ||
![]() |
62895d59ff |
@ -1,5 +1,4 @@
|
|||||||
# TODO switch back to alpine/latest once the "npm install" deadlock is fixed
|
image: alpine/latest
|
||||||
image: alpine/edge
|
|
||||||
packages:
|
packages:
|
||||||
- npm
|
- npm
|
||||||
- rsync
|
- rsync
|
||||||
@ -7,6 +6,8 @@ sources:
|
|||||||
- https://codeberg.org/emersion/gamja.git
|
- https://codeberg.org/emersion/gamja.git
|
||||||
secrets:
|
secrets:
|
||||||
- 7a146c8e-aeb4-46e7-99bf-05af7486bbe9 # deploy SSH key
|
- 7a146c8e-aeb4-46e7-99bf-05af7486bbe9 # deploy SSH key
|
||||||
|
artifacts:
|
||||||
|
- gamja/gamja.tar.gz
|
||||||
tasks:
|
tasks:
|
||||||
- setup: |
|
- setup: |
|
||||||
cd gamja
|
cd gamja
|
||||||
@ -14,6 +15,7 @@ tasks:
|
|||||||
- build: |
|
- build: |
|
||||||
cd gamja
|
cd gamja
|
||||||
npm run build
|
npm run build
|
||||||
|
tar -czf gamja.tar.gz -C dist .
|
||||||
- lint: |
|
- lint: |
|
||||||
cd gamja
|
cd gamja
|
||||||
npm run -- lint --max-warnings 0
|
npm run -- lint --max-warnings 0
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
A simple IRC web client.
|
A simple IRC web client.
|
||||||
|
|
||||||

|
<img src="https://fs.emersion.fr/protected/img/gamja/main.png" alt="Screenshot" width="800">
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ const commands = [
|
|||||||
if (args.length) {
|
if (args.length) {
|
||||||
params.push(args.join(" "));
|
params.push(args.join(" "));
|
||||||
}
|
}
|
||||||
getActiveClient(app).send({command: "AWAY", params});
|
getActiveClient(app).send({ command: "AWAY", params });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
ban,
|
ban,
|
||||||
@ -190,9 +190,10 @@ const commands = [
|
|||||||
throw new Error("Missing nick");
|
throw new Error("Missing nick");
|
||||||
}
|
}
|
||||||
let activeChannel = getActiveChannel(app);
|
let activeChannel = getActiveChannel(app);
|
||||||
getActiveClient(app).send({ command: "INVITE", params: [
|
getActiveClient(app).send({
|
||||||
nick, activeChannel,
|
command: "INVITE",
|
||||||
]});
|
params: [nick, activeChannel],
|
||||||
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ ...join, name: "j" },
|
{ ...join, name: "j" },
|
||||||
|
@ -323,6 +323,8 @@ export default class App extends Component {
|
|||||||
}
|
}
|
||||||
if (queryParams.debug === "1") {
|
if (queryParams.debug === "1") {
|
||||||
this.debug = true;
|
this.debug = true;
|
||||||
|
} else if (queryParams.debug === "0") {
|
||||||
|
this.debug = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.location.hash) {
|
if (window.location.hash) {
|
||||||
@ -760,7 +762,7 @@ export default class App extends Component {
|
|||||||
|
|
||||||
// Open a new buffer if the message doesn't come from me or is a
|
// Open a new buffer if the message doesn't come from me or is a
|
||||||
// self-message
|
// self-message
|
||||||
if ((!client.isMyNick(msg.prefix.name) || client.isMyNick(bufName)) && (msg.command !== "PART" && msg.comand !== "QUIT" && msg.command !== irc.RPL_MONONLINE && msg.command !== irc.RPL_MONOFFLINE)) {
|
if ((!client.isMyNick(msg.prefix.name) || client.isMyNick(bufName)) && (msg.command !== "PART" && msg.command !== "QUIT" && msg.command !== irc.RPL_MONONLINE && msg.command !== irc.RPL_MONOFFLINE)) {
|
||||||
this.createBuffer(serverID, bufName);
|
this.createBuffer(serverID, bufName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1073,6 +1075,7 @@ export default class App extends Component {
|
|||||||
case "ACK":
|
case "ACK":
|
||||||
case "BOUNCER":
|
case "BOUNCER":
|
||||||
case "MARKREAD":
|
case "MARKREAD":
|
||||||
|
case "REDACT":
|
||||||
// Ignore these
|
// Ignore these
|
||||||
return [];
|
return [];
|
||||||
default:
|
default:
|
||||||
@ -2003,7 +2006,9 @@ export default class App extends Component {
|
|||||||
this.lastFocusPingDate = now;
|
this.lastFocusPingDate = now;
|
||||||
|
|
||||||
for (let client of this.clients.values()) {
|
for (let client of this.clients.values()) {
|
||||||
client.send({ command: "PING", params: ["gamja"] });
|
if (client.status === Client.Status.REGISTERED) {
|
||||||
|
client.send({ command: "PING", params: ["gamja"] });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ function _Timestamp({ date, url, showSeconds }) {
|
|||||||
if (showSeconds) {
|
if (showSeconds) {
|
||||||
timestamp += ":--";
|
timestamp += ":--";
|
||||||
}
|
}
|
||||||
return html`<spam class="timestamp">${timestamp}</span>`;
|
return html`<span class="timestamp">${timestamp}</span>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
let hh = date.getHours().toString().padStart(2, "0");
|
let hh = date.getHours().toString().padStart(2, "0");
|
||||||
@ -94,7 +94,7 @@ function canFoldMessage(msg) {
|
|||||||
|
|
||||||
class LogLine extends Component {
|
class LogLine extends Component {
|
||||||
shouldComponentUpdate(nextProps) {
|
shouldComponentUpdate(nextProps) {
|
||||||
return this.props.message !== nextProps.message;
|
return this.props.message !== nextProps.message || this.props.redacted !== nextProps.redacted;
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
@ -143,12 +143,18 @@ class LogLine extends Component {
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
lineClass = "talk";
|
|
||||||
let prefix = "<", suffix = ">";
|
let prefix = "<", suffix = ">";
|
||||||
if (msg.command === "NOTICE") {
|
if (msg.command === "NOTICE") {
|
||||||
|
lineClass += " notice";
|
||||||
prefix = suffix = "-";
|
prefix = suffix = "-";
|
||||||
}
|
}
|
||||||
content = html`${prefix}${createNick(msg.prefix.name)}${suffix} ${linkify(stripANSI(text), onChannelClick)}`;
|
if (this.props.redacted) {
|
||||||
|
content = html`<i>This message has been deleted.</i>`;
|
||||||
|
} else {
|
||||||
|
content = html`${linkify(stripANSI(text), onChannelClick)}`;
|
||||||
|
lineClass += " talk";
|
||||||
|
}
|
||||||
|
content = html`<span class="nick-caret">${prefix}</span>${createNick(msg.prefix.name)}<span class="nick-caret">${suffix}</span> ${content}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
let allowedPrefixes = server.statusMsg;
|
let allowedPrefixes = server.statusMsg;
|
||||||
@ -274,9 +280,15 @@ class LogLine extends Component {
|
|||||||
break;
|
break;
|
||||||
case "TOPIC":
|
case "TOPIC":
|
||||||
let topic = msg.params[1];
|
let topic = msg.params[1];
|
||||||
content = html`
|
if (topic) {
|
||||||
${createNick(msg.prefix.name)} changed the topic to: ${linkify(stripANSI(topic), onChannelClick)}
|
content = html`
|
||||||
`;
|
${createNick(msg.prefix.name)} changed the topic to: ${linkify(stripANSI(topic), onChannelClick)}
|
||||||
|
`;
|
||||||
|
} else {
|
||||||
|
content = html`
|
||||||
|
${createNick(msg.prefix.name)} cleared the topic
|
||||||
|
`;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "INVITE":
|
case "INVITE":
|
||||||
invitee = msg.params[0];
|
invitee = msg.params[0];
|
||||||
@ -703,6 +715,7 @@ export default class Buffer extends Component {
|
|||||||
message=${msg}
|
message=${msg}
|
||||||
buffer=${buf}
|
buffer=${buf}
|
||||||
server=${server}
|
server=${server}
|
||||||
|
redacted=${buf.redacted.has(msg.tags.msgid)}
|
||||||
onChannelClick=${onChannelClick}
|
onChannelClick=${onChannelClick}
|
||||||
onNickClick=${onNickClick}
|
onNickClick=${onNickClick}
|
||||||
onVerifyClick=${onVerifyClick}
|
onVerifyClick=${onVerifyClick}
|
||||||
@ -808,7 +821,7 @@ export default class Buffer extends Component {
|
|||||||
|
|
||||||
if (sep.length > 0) {
|
if (sep.length > 0) {
|
||||||
children.push(createFoldGroup(foldMessages));
|
children.push(createFoldGroup(foldMessages));
|
||||||
children.push(sep);
|
children.push(...sep);
|
||||||
foldMessages = [];
|
foldMessages = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,8 +42,8 @@ function KeyBindingsHelp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function CommandsHelp() {
|
function CommandsHelp() {
|
||||||
let l = Object.keys(commands).map((name) => {
|
let l = [...commands.keys()].map((name) => {
|
||||||
let cmd = commands[name];
|
let cmd = commands.get(name);
|
||||||
|
|
||||||
let usage = [html`<strong>/${name}</strong>`];
|
let usage = [html`<strong>/${name}</strong>`];
|
||||||
if (cmd.usage) {
|
if (cmd.usage) {
|
||||||
|
@ -63,7 +63,8 @@ if (remoteHost) {
|
|||||||
ws.close();
|
ws.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on("error", () => {
|
client.on("error", (err) => {
|
||||||
|
console.log(err);
|
||||||
ws.close(WS_BAD_GATEWAY);
|
ws.close(WS_BAD_GATEWAY);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -7,7 +7,7 @@ gamja settings can be overridden using URL query parameters:
|
|||||||
replaced with a randomly generated value)
|
replaced with a randomly generated value)
|
||||||
- `channels`: comma-separated list of channels to join (`#` needs to be escaped)
|
- `channels`: comma-separated list of channels to join (`#` needs to be escaped)
|
||||||
- `open`: [IRC URL] to open
|
- `open`: [IRC URL] to open
|
||||||
- `debug`: if set to 1, debug mode is enabled
|
- `debug`: enable debug logs if set to `1`, disable debug logs if set to `0`
|
||||||
|
|
||||||
Alternatively, the channels can be set with the URL fragment (ie, by just
|
Alternatively, the channels can be set with the URL fragment (ie, by just
|
||||||
appending the channel name to the gamja URL).
|
appending the channel name to the gamja URL).
|
||||||
|
@ -23,16 +23,34 @@ export default [
|
|||||||
destructuredArrayIgnorePattern: "^_",
|
destructuredArrayIgnorePattern: "^_",
|
||||||
}],
|
}],
|
||||||
"no-var": "error",
|
"no-var": "error",
|
||||||
|
"no-eval": "error",
|
||||||
|
"no-implied-eval": "error",
|
||||||
"eqeqeq": "error",
|
"eqeqeq": "error",
|
||||||
"no-invalid-this": "error",
|
"no-invalid-this": "error",
|
||||||
|
"no-extend-native": "error",
|
||||||
"prefer-arrow-callback": "error",
|
"prefer-arrow-callback": "error",
|
||||||
|
"no-implicit-globals": "error",
|
||||||
|
"no-throw-literal": "error",
|
||||||
"no-implicit-coercion": "warn",
|
"no-implicit-coercion": "warn",
|
||||||
"object-shorthand": "warn",
|
"object-shorthand": "warn",
|
||||||
|
"curly": "warn",
|
||||||
|
"camelcase": "warn",
|
||||||
"@stylistic/js/indent": ["warn", "tab"],
|
"@stylistic/js/indent": ["warn", "tab"],
|
||||||
"@stylistic/js/quotes": ["warn", "double"],
|
"@stylistic/js/quotes": ["warn", "double"],
|
||||||
"@stylistic/js/semi": "warn",
|
"@stylistic/js/semi": "warn",
|
||||||
|
"@stylistic/js/brace-style": ["warn", "1tbs"],
|
||||||
"@stylistic/js/comma-dangle": ["warn", "always-multiline"],
|
"@stylistic/js/comma-dangle": ["warn", "always-multiline"],
|
||||||
|
"@stylistic/js/comma-spacing": "warn",
|
||||||
"@stylistic/js/arrow-parens": "warn",
|
"@stylistic/js/arrow-parens": "warn",
|
||||||
|
"@stylistic/js/arrow-spacing": "warn",
|
||||||
|
"@stylistic/js/block-spacing": "warn",
|
||||||
|
"@stylistic/js/object-curly-spacing": ["warn", "always"],
|
||||||
|
"@stylistic/js/object-curly-newline": ["warn", {
|
||||||
|
multiline: true,
|
||||||
|
consistent: true,
|
||||||
|
}],
|
||||||
|
"@stylistic/js/array-bracket-spacing": ["warn", "never"],
|
||||||
|
"@stylistic/js/array-bracket-newline": ["warn", "consistent"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
14
index.html
14
index.html
@ -3,7 +3,19 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; frame-src 'none'; object-src 'none'; connect-src *;">
|
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; frame-src 'none'; object-src 'none'; connect-src *;">
|
||||||
<title>gamja IRC client</title>
|
<title>Cringe Studios Internet IRC Relay Chat Client</title>
|
||||||
|
|
||||||
|
<meta name="description" content="Cringe Studios Internet IRC Relay Chat Client">
|
||||||
|
<meta property="og:image" content="https://nsfw.cringe-studios.com/Wikimedia_Community_Logo-IRC.png">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:url" content="https://irc.cringe-studios.com/">
|
||||||
|
<meta property="og:title" content="Cringe Studios Internet IRC Relay Chat Client">
|
||||||
|
<meta property="og:description" content="Cringe Studios Internet IRC Relay Chat Client">
|
||||||
|
|
||||||
|
<meta name="theme-color" content="#8000f0" data-react-helmet="true">
|
||||||
|
<link rel="icon" href="https://nsfw.cringe-studios.com/Wikimedia_Community_Logo-IRC.png">
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="./style.css">
|
<link rel="stylesheet" href="./style.css">
|
||||||
<script type="module" src="./main.js"></script>
|
<script type="module" src="./main.js"></script>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
@ -21,6 +21,7 @@ const permanentCaps = [
|
|||||||
"draft/account-registration",
|
"draft/account-registration",
|
||||||
"draft/chathistory",
|
"draft/chathistory",
|
||||||
"draft/extended-monitor",
|
"draft/extended-monitor",
|
||||||
|
"draft/message-redaction",
|
||||||
"draft/read-marker",
|
"draft/read-marker",
|
||||||
|
|
||||||
"soju.im/bouncer-networks",
|
"soju.im/bouncer-networks",
|
||||||
|
@ -43,9 +43,9 @@ export function redirectAuthorize({ serverMetadata, clientId, redirectUri, scope
|
|||||||
// TODO: use the state param to prevent cross-site request
|
// TODO: use the state param to prevent cross-site request
|
||||||
// forgery
|
// forgery
|
||||||
let params = {
|
let params = {
|
||||||
response_type: "code",
|
"response_type": "code",
|
||||||
client_id: clientId,
|
"client_id": clientId,
|
||||||
redirect_uri: redirectUri,
|
"redirect_uri": redirectUri,
|
||||||
};
|
};
|
||||||
if (scope) {
|
if (scope) {
|
||||||
params.scope = scope;
|
params.scope = scope;
|
||||||
@ -66,12 +66,12 @@ function buildPostHeaders(clientId, clientSecret) {
|
|||||||
|
|
||||||
export async function exchangeCode({ serverMetadata, redirectUri, code, clientId, clientSecret }) {
|
export async function exchangeCode({ serverMetadata, redirectUri, code, clientId, clientSecret }) {
|
||||||
let data = {
|
let data = {
|
||||||
grant_type: "authorization_code",
|
"grant_type": "authorization_code",
|
||||||
code,
|
code,
|
||||||
redirect_uri: redirectUri,
|
"redirect_uri": redirectUri,
|
||||||
};
|
};
|
||||||
if (!clientSecret) {
|
if (!clientSecret) {
|
||||||
data.client_id = clientId;
|
data["client_id"] = clientId;
|
||||||
}
|
}
|
||||||
|
|
||||||
let resp = await fetch(serverMetadata.token_endpoint, {
|
let resp = await fetch(serverMetadata.token_endpoint, {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gamja IRC client",
|
"name": "Cringe Studios Internet IRC Relay Chat Client",
|
||||||
"short_name": "gamja",
|
"short_name": "IRC",
|
||||||
"start_url": ".",
|
"start_url": ".",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"scope": "."
|
"scope": "."
|
||||||
|
2272
package-lock.json
generated
2272
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -4,13 +4,13 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"htm": "^3.0.4",
|
"htm": "^3.0.4",
|
||||||
"linkifyjs": "^4.1.3",
|
"linkifyjs": "^4.1.3",
|
||||||
"preact": "10.17.1"
|
"preact": "^10.17.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.11.1",
|
"@eslint/js": "^9.11.1",
|
||||||
"@parcel/packager-raw-url": "^2.0.0",
|
"@parcel/packager-raw-url": "^2.0.0",
|
||||||
"@parcel/transformer-webmanifest": "^2.0.0",
|
"@parcel/transformer-webmanifest": "^2.0.0",
|
||||||
"@stylistic/eslint-plugin-js": "^2.8.0",
|
"@stylistic/eslint-plugin-js": "^3.1.0",
|
||||||
"eslint": "^9.11.1",
|
"eslint": "^9.11.1",
|
||||||
"globals": "^15.9.0",
|
"globals": "^15.9.0",
|
||||||
"node-static": "^0.7.11",
|
"node-static": "^0.7.11",
|
||||||
|
29
state.js
29
state.js
@ -153,10 +153,24 @@ function trimStartCharacter(s, c) {
|
|||||||
return s.substring(i);
|
return s.substring(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getBouncerNetworkNameFromBuffer(state, buffer) {
|
||||||
|
let server = state.servers.get(buffer.server);
|
||||||
|
let network = state.bouncerNetworks.get(server.bouncerNetID);
|
||||||
|
if (!network) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return getServerName(server, network);
|
||||||
|
}
|
||||||
|
|
||||||
/* Returns 1 if a should appear after b, -1 if a should appear before b, or
|
/* Returns 1 if a should appear after b, -1 if a should appear before b, or
|
||||||
* 0 otherwise. */
|
* 0 otherwise. */
|
||||||
function compareBuffers(a, b) {
|
function compareBuffers(state, a, b) {
|
||||||
if (a.server !== b.server) {
|
if (a.server !== b.server) {
|
||||||
|
let aServerName = getBouncerNetworkNameFromBuffer(state, a);
|
||||||
|
let bServerName = getBouncerNetworkNameFromBuffer(state, b);
|
||||||
|
if (aServerName && bServerName && aServerName !== bServerName) {
|
||||||
|
return aServerName.localeCompare(bServerName);
|
||||||
|
}
|
||||||
return a.server > b.server ? 1 : -1;
|
return a.server > b.server ? 1 : -1;
|
||||||
}
|
}
|
||||||
if (isServerBuffer(a) !== isServerBuffer(b)) {
|
if (isServerBuffer(a) !== isServerBuffer(b)) {
|
||||||
@ -217,7 +231,7 @@ function insertMessage(list, msg) {
|
|||||||
}
|
}
|
||||||
console.assert(insertBefore >= 0, "");
|
console.assert(insertBefore >= 0, "");
|
||||||
|
|
||||||
list = [ ...list ];
|
list = [...list];
|
||||||
list.splice(insertBefore, 0, msg);
|
list.splice(insertBefore, 0, msg);
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
@ -361,10 +375,11 @@ export const State = {
|
|||||||
hasInitialWho: false, // if channel
|
hasInitialWho: false, // if channel
|
||||||
members: new irc.CaseMapMap(null, client.cm), // if channel
|
members: new irc.CaseMapMap(null, client.cm), // if channel
|
||||||
messages: [],
|
messages: [],
|
||||||
|
redacted: new Set(),
|
||||||
unread: Unread.NONE,
|
unread: Unread.NONE,
|
||||||
prevReadReceipt: null,
|
prevReadReceipt: null,
|
||||||
});
|
});
|
||||||
bufferList = bufferList.sort(compareBuffers);
|
bufferList = bufferList.sort((a, b) => compareBuffers(state, a, b));
|
||||||
let buffers = new Map(bufferList.map((buf) => [buf.id, buf]));
|
let buffers = new Map(bufferList.map((buf) => [buf.id, buf]));
|
||||||
return [id, { buffers }];
|
return [id, { buffers }];
|
||||||
},
|
},
|
||||||
@ -665,6 +680,14 @@ export const State = {
|
|||||||
|
|
||||||
return { members };
|
return { members };
|
||||||
});
|
});
|
||||||
|
case "REDACT":
|
||||||
|
target = msg.params[0];
|
||||||
|
if (client.isMyNick(target)) {
|
||||||
|
target = msg.prefix.name;
|
||||||
|
}
|
||||||
|
return updateBuffer(target, (buf) => {
|
||||||
|
return { redacted: new Set(buf.redacted).add(msg.params[1]) };
|
||||||
|
});
|
||||||
case irc.RPL_MONONLINE:
|
case irc.RPL_MONONLINE:
|
||||||
case irc.RPL_MONOFFLINE:
|
case irc.RPL_MONOFFLINE:
|
||||||
targets = msg.params[1].split(",");
|
targets = msg.params[1].split(",");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user