Skip to content

Instantly share code, notes, and snippets.

View prawnsalad's full-sized avatar
💭
happening

Darren Whitlen prawnsalad

💭
happening
View GitHub Profile
if (command === 'message') {
let isPrivateMessage = false;
let bufferName = event.from_server ? '*' : event.target;
// PMs should go to a buffer with the name of the other user
if (!event.from_server && event.target === client.user.nick) {
isPrivateMessage = true;
bufferName = event.nick;
}
this.listen(this.$state, 'active.component.toggle', (component, props) => {
if (component === this.activeComponent) {
this.activeComponent = null;
} else if (component) {
this.activeComponentProps = props;
this.activeComponent = component;
}
});
'kiwi public';
/** @module */
/**
* Adds the +draft/typing IRCv3 spec to irc-framework
*/
export default function typingMiddleware() {
return function middleware(client, rawEvents, parsedEvents) {
addFunctionsToClient(client);
[c] BOUNCER listnetworks
[s] BOUNCER listnetworks network=freenode;host=irc.freenode.net;port=6667;state=disconnected;
[s] BOUNCER listnetworks network=snoonet;host=irc.snoonet.org;port=6697;state=connected;tls=1
[s] BOUNCER listnetworks RPL_OK
Using standard replies:
[c] BOUNCER listnetworks
[s] NOTE BOUNCER listnetworks network=freenode;host=irc.freenode.net;port=6667;state=disconnected; :A network
[s] NOTE BOUNCER listnetworks network=snoonet;host=irc.snoonet.org;port=6697;state=connected;tls=1 :A network
<template id="uidesigner_tmpl">
<div style="padding:0 1em;max-height:100%;overflow:auto;">
<h1>Header H1</h1>
<h2>Header H2</h2>
<h3>Header H3</h3>
<h4>Header H4</h4>
<h5>Header H5</h5>
<ul>
<li>List item 1</li>

Overhaul from previous CHATHISTORY spec

  • Explanation of each subcommand
  • Unified and simpler syntax for each subcommand
  • Removal of many ambiguities throughout the spec
  • Removal of conflicting command parameters
  • Removal of unrelated specs being mentioned in examples and notes
  • Simplified and explicity defined errors

title: IRCv3 chathistory extension

<div id='myloginform'>
<h1> some crazy login form styled to your website</h1>
<form @click.prevent="onFormSubmit">
<input v-model="nick" />
</form>
</div>
<script>
export function run(kiwi, config) {
var ctr = {
2019/10/05 22:25:45.485574 Using config /work/kiwi/webircgateway/config.conf
2019/10/05 22:25:45.489217 L_INFO Serving files from /work/personal/kiwiirc-production/dist
2019/10/05 22:25:45.489594 L_INFO Listening with letsencrypt TLS on 0.0.0.0:4443
2019/10/05 22:25:45.489603 L_INFO Listening on 0.0.0.0:7001
2019/10/05 22:25:45.489606 L_INFO Listening on /tmp/webircgateway.sock
2019/10/05 22:25:45.489957 L_WARN listen tcp 0.0.0.0:7001: bind: address already in use
2019/10/05 22:25:45.489979 L_WARN TCP error listening: listen tcp 0.0.0.0:6668: bind: address already in use
2019/10/05 22:25:45.490036 L_WARN Listening with letsencrypt failed: listen tcp 0.0.0.0:4443: bind: address already in use
kiwi.plugin('myplugin', function(kiwi) {
kiwi.on('irc.message', function(message, network, event) {
if (message.nick === '*bnc' && message.message) {
// Only show *bnc messages if we have the buffer open.
// We don't want confusing messages to users
let buffer = network.bufferByName('*bnc');
if (!buffer) {
event.handled = true;
}
}
yarn licenses v1.19.1
├─ (BSD-2-Clause OR MIT OR Apache-2.0)
│ └─ [email protected]
│ ├─ URL: https://github.com/dominictarr/rc.git
│ ├─ VendorName: Dominic Tarr
│ └─ VendorUrl: dominictarr.com
├─ (BSD-2-Clause OR WTFPL)
│ └─ [email protected]
│ ├─ URL: https://github.com/domenic/sinon-chai.git
│ ├─ VendorName: Domenic Denicola