Browse Source

Migrate to GitHub

master
Trevor Slocum 5 years ago
parent
commit
1aeaeeffd9
  1. 24
      .gitlab-ci.yml
  2. 35
      .travis.yml
  3. 2
      AUTHORS
  4. 4
      README.md
  5. 3
      anonircd.go
  6. 4
      server.go

24
.gitlab-ci.yml

@ -1,24 +0,0 @@
image: golang:latest
stages:
- test
- build
before_script:
- go get -u github.com/golang/dep/cmd/dep
- export GOPATH=$(dirname $CI_PROJECT_DIR)/go
- mkdir -p $GOPATH/src
- cd $GOPATH/src
- ln -s $CI_PROJECT_DIR
- cd $CI_PROJECT_NAME
- dep ensure -update
test:
stage: test
script:
- go test
build:
stage: build
script:
- go build

35
.travis.yml

@ -0,0 +1,35 @@
language: go
go:
- 1.x
- tip
install: true
matrix:
allow_failures:
- go: tip
fast_finish: true
notifications:
email: false
before_script:
- GO_FILES=$(find . -iname '*.go' | grep -v /vendor/)
- PKGS=$(go list ./... | grep -v /vendor/)
# - go get github.com/golang/lint/golint
# - go get honnef.co/go/tools/cmd/megacheck
script:
- test -z $(gofmt -s -l $GO_FILES)
- go test -v -race $PKGS
- go vet $PKGS
# - megacheck $PKGS
# - golint -set_exit_status $PKGS
notifications:
irc:
channels:
- "z.1chan.us#anonircd"
on_success: change
on_failure: always

2
AUTHORS

@ -0,0 +1,2 @@
Originally created by Trevor 'tee' Slocum <tslocum@gmail.com>
Inspired by https://github.com/sageru-6ch/anonircd-v1

4
README.md

@ -1,7 +1,7 @@
# AnonIRCd
[![pipeline status](https://gitlab.com/tslocum/anonircd/badges/master/pipeline.svg)](https://gitlab.com/tslocum/anonircd/commits/master)
[![godoc](https://godoc.org/gitlab.com/tslocum/anonircd?status.svg)](https://godoc.org/gitlab.com/tslocum/anonircd)
[![Build Status](https://travis-ci.org/sageru-6ch/anonircd.svg?branch=master)](https://travis-ci.org/sageru-6ch/anonircd)
[![GoDoc](https://godoc.org/github.com/sageru-6ch/anonircd?status.svg)](https://godoc.org/github.com/sageru-6ch/anonircd)
AnonIRCd is an anonymous IRC daemon. All messages appear to be written by **Anonymous**.

3
anonircd.go

@ -1,6 +1,5 @@
// AnonIRCd - Anonymous IRC daemon
// https://gitlab.com/tslocum/anonircd
// Written by Trevor 'tee' Slocum <tslocum@gmail.com>
// https://github.com/sageru-6ch/anonircd
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by

4
server.go

@ -486,9 +486,9 @@ func (s *Server) handleRead(c *Client) {
c.host = strings.Trim(msg.Params[2], "\"")
c.write(&irc.Message{&anonirc, irc.RPL_WELCOME, []string{"Welcome to AnonIRC " + c.getPrefix().String()}})
c.write(&irc.Message{&anonirc, irc.RPL_YOURHOST, []string{"Your host is AnonIRC, running version AnonIRCd"}})
c.write(&irc.Message{&anonirc, irc.RPL_YOURHOST, []string{"Your host is AnonIRC, running version AnonIRCd https://github.com/sageru-6ch/anonircd"}})
c.write(&irc.Message{&anonirc, irc.RPL_CREATED, []string{fmt.Sprintf("This server was created %s", time.Unix(s.created, 0).UTC())}})
c.write(&irc.Message{&anonirc, strings.Join([]string{irc.RPL_MYINFO, c.nick, "AnonIRC AnonIRCd", CLIENT_MODES, CHANNEL_MODES, CHANNEL_MODES_ARG}, " "), []string{}})
c.write(&irc.Message{&anonirc, strings.Join([]string{irc.RPL_MYINFO, c.nick, "AnonIRC", "AnonIRCd", CLIENT_MODES, CHANNEL_MODES, CHANNEL_MODES_ARG}, " "), []string{}})
motdsplit := strings.Split(motd, "\n")
for i, motdmsg := range motdsplit {

Loading…
Cancel
Save