mirror of https://github.com/fluffle/goirc
Run gofmt over everything, for great justice.
This commit is contained in:
parent
6bb5558c46
commit
c419ef1ead
|
@ -124,7 +124,7 @@ func (conn *Conn) Mode(t string, modestring ...string) {
|
||||||
func (conn *Conn) Away(message ...string) {
|
func (conn *Conn) Away(message ...string) {
|
||||||
msg := strings.Join(message, " ")
|
msg := strings.Join(message, " ")
|
||||||
if msg != "" {
|
if msg != "" {
|
||||||
msg = " :"+msg
|
msg = " :" + msg
|
||||||
}
|
}
|
||||||
conn.out <- "AWAY"+msg
|
conn.out <- "AWAY"+msg
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,7 +160,7 @@ func hasPort(s string) bool {
|
||||||
// flood controlled using hybrid's algorithm if conn.Flood is true
|
// flood controlled using hybrid's algorithm if conn.Flood is true
|
||||||
func (conn *Conn) send() {
|
func (conn *Conn) send() {
|
||||||
lastsent := time.Nanoseconds()
|
lastsent := time.Nanoseconds()
|
||||||
var badness, linetime, second int64 = 0, 0, 1000000000;
|
var badness, linetime, second int64 = 0, 0, 1000000000
|
||||||
for line := range conn.out {
|
for line := range conn.out {
|
||||||
// Hybrid's algorithm allows for 2 seconds per line and an additional
|
// Hybrid's algorithm allows for 2 seconds per line and an additional
|
||||||
// 1/120 of a second per character on that line.
|
// 1/120 of a second per character on that line.
|
||||||
|
|
|
@ -12,4 +12,3 @@ func TestIRC(t *testing.T) {
|
||||||
t.FailNow()
|
t.FailNow()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue