Run gofmt on irc.go
This commit is contained in:
@@ -209,7 +209,7 @@ func (b *Birc) doConnect() {
|
|||||||
func sanitizeNick(nick string) string {
|
func sanitizeNick(nick string) string {
|
||||||
sanitize := func(r rune) rune {
|
sanitize := func(r rune) rune {
|
||||||
if strings.ContainsRune("!+%@&#$:'\"?*,. ", r) {
|
if strings.ContainsRune("!+%@&#$:'\"?*,. ", r) {
|
||||||
return '-';
|
return '-'
|
||||||
}
|
}
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
@@ -306,7 +306,7 @@ func (b *Birc) getClient() (*girc.Client, error) {
|
|||||||
// skip gIRC internal rate limiting, since we have our own throttling
|
// skip gIRC internal rate limiting, since we have our own throttling
|
||||||
AllowFlood: true,
|
AllowFlood: true,
|
||||||
Debug: debug,
|
Debug: debug,
|
||||||
SupportedCaps: map[string][]string{ "overdrivenetworks.com/relaymsg": nil, "draft/relaymsg": nil },
|
SupportedCaps: map[string][]string{"overdrivenetworks.com/relaymsg": nil, "draft/relaymsg": nil},
|
||||||
})
|
})
|
||||||
return i, nil
|
return i, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user