git ssb

0+

Dominic / ssb-irc



Commit ca83e81efcab58179c5f51dcb99d20ee51c645b8

dump state after loading everything!

Dominic Tarr committed on 7/20/2017, 10:53:07 AM
Parent: 6c6b3aeb35148f475c0f590a5bcbe2288be61d5e

Files changed

index.jschanged
index.jsView
@@ -13,9 +13,8 @@
1313 //load current state
1414 var state = ssb.init(sbot, sbot.id, next)
1515 var irc = IRC(config, next)
1616
17- console.log("STATE", state)
1817 function notify (note) {
1918 irc.say(
2019 note.type == 'channel'
2120 ? IRC.toChannel(note.target)
@@ -27,8 +26,9 @@
2726
2827 function next () {
2928 if(--n) return
3029 //XXX: properly persist state with a flumeview?
30 + console.log("STATE", state)
3131
3232 //make sure we have joined every channel
3333 for(var k in state.channels) {
3434 var channel = state.channels[k] === true ? k : state.channels[k]
@@ -53,4 +53,5 @@
5353 }
5454
5555
5656
57 +

Built with git-ssb-web