Migrate to GitHub
parent
b0ac22eec0
commit
1aeaeeffd9
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,2 @@
|
|||
Originally created by Trevor 'tee' Slocum <tslocum@gmail.com>
|
||||
Inspired by https://github.com/sageru-6ch/anonircd-v1
|
|
@ -1,7 +1,7 @@
|
|||
# AnonIRCd
|
||||
|
||||
[](https://gitlab.com/tslocum/anonircd/commits/master)
|
||||
[](https://godoc.org/gitlab.com/tslocum/anonircd)
|
||||
[](https://travis-ci.org/sageru-6ch/anonircd)
|
||||
[](https://godoc.org/github.com/sageru-6ch/anonircd)
|
||||
|
||||
AnonIRCd is an anonymous IRC daemon. All messages appear to be written by **Anonymous**.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue