Changeset 98 in code


Ignore:
Timestamp:
Mar 13, 2020, 5:13:03 PM (5 years ago)
Author:
contact
Message:

Rename project to soju

Location:
trunk
Files:
4 added
2 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/README.md

    r91 r98  
    1 # jounce
     1# soju
    22
    33A user-friendly IRC bouncer.
     
    1111## Usage
    1212
    13     sqlite3 jounce.db <schema.sql
    14     go run ./cmd/jouncectl create-user jounce
    15     go run ./cmd/jounce
     13    sqlite3 soju.db <schema.sql
     14    go run ./cmd/sojuctl create-user soju
     15    go run ./cmd/soju
    1616
    17 Then connect with username `jounce@chat.freenode.net` and join `#jounce`.
     17Then connect with username `soju@chat.freenode.net` and join `#soju`.
    1818
    1919## Contributing
     
    2828
    2929[mailing list]: https://lists.sr.ht/~emersion/public-inbox
    30 [issue tracker]: https://todo.sr.ht/~emersion/jounce
     30[issue tracker]: https://todo.sr.ht/~emersion/soju
  • trunk/bridge.go

    r69 r98  
    1 package jounce
     1package soju
    22
    33import (
  • trunk/config/config.go

    r77 r98  
    3131                Hostname:  hostname,
    3232                SQLDriver: "sqlite3",
    33                 SQLSource: "jounce.db",
     33                SQLSource: "soju.db",
    3434        }
    3535}
  • trunk/db.go

    r95 r98  
    1 package jounce
     1package soju
    22
    33import (
  • trunk/downstream.go

    r95 r98  
    1 package jounce
     1package soju
    22
    33import (
     
    411411                Prefix:  dc.srv.prefix(),
    412412                Command: irc.RPL_WELCOME,
    413                 Params:  []string{dc.nick, "Welcome to jounce, " + dc.nick},
     413                Params:  []string{dc.nick, "Welcome to soju, " + dc.nick},
    414414        })
    415415        dc.SendMessage(&irc.Message{
     
    426426                Prefix:  dc.srv.prefix(),
    427427                Command: irc.RPL_MYINFO,
    428                 Params:  []string{dc.nick, dc.srv.Hostname, "jounce", "aiwroO", "OovaimnqpsrtklbeI"},
     428                Params:  []string{dc.nick, dc.srv.Hostname, "soju", "aiwroO", "OovaimnqpsrtklbeI"},
    429429        })
    430430        // TODO: RPL_ISUPPORT
  • trunk/go.mod

    r96 r98  
    1 module git.sr.ht/~emersion/jounce
     1module git.sr.ht/~emersion/soju
    22
    33go 1.13
  • trunk/irc.go

    r96 r98  
    1 package jounce
     1package soju
    22
    33import (
  • trunk/ring.go

    r59 r98  
    1 package jounce
     1package soju
    22
    33import (
     
    8787func (rc *RingConsumer) diff() uint64 {
    8888        if rc.cur > rc.ring.cur {
    89                 panic("jounce: consumer cursor greater than producer cursor")
     89                panic("soju: consumer cursor greater than producer cursor")
    9090        }
    9191        return rc.ring.cur - rc.cur
     
    9696func (rc *RingConsumer) Peek() *irc.Message {
    9797        if rc.closed {
    98                 panic("jounce: RingConsumer.Peek called after Close")
     98                panic("soju: RingConsumer.Peek called after Close")
    9999        }
    100100
     
    113113        msg := rc.ring.buffer[i]
    114114        if msg == nil {
    115                 panic("jounce: unexpected nil ring buffer entry")
     115                panic("soju: unexpected nil ring buffer entry")
    116116        }
    117117        return msg
  • trunk/server.go

    r91 r98  
    1 package jounce
     1package soju
    22
    33import (
  • trunk/upstream.go

    r97 r98  
    1 package jounce
     1package soju
    22
    33import (
Note: See TracChangeset for help on using the changeset viewer.