Migrate to GitHub

This commit is contained in:
Trevor Slocum 2017-10-26 16:35:18 -07:00
parent b0ac22eec0
commit 1aeaeeffd9
6 changed files with 42 additions and 30 deletions

View File

@ -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 Normal file
View File

@ -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 Normal file
View File

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

View File

@ -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**.

View File

@ -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

View File

@ -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 {