Removed type from declaration

(it will be inferred from the right-hand side)
This commit is contained in:
Peter Hellberg 2014-12-15 01:37:58 +01:00
parent 9c20251e9d
commit 86ee6f12c5
2 changed files with 2 additions and 2 deletions

View File

@ -338,7 +338,7 @@ func (c *Client) handleShell(channel ssh.Channel) {
if !c.Server.IsOp(c) {
c.SysMsg("You're not an admin.")
} else {
var split []string = strings.SplitN(line, " ", 2)
var split = strings.SplitN(line, " ", 2)
var msg string
if len(split) > 1 {
msg = split[1]

View File

@ -34,7 +34,7 @@ const (
var colors = []string{"31", "32", "33", "34", "35", "36", "37", "91", "92", "93", "94", "95", "96", "97"}
// deColor is used for removing ANSI Escapes
var deColor *regexp.Regexp = regexp.MustCompile("\033\\[[\\d;]+m")
var deColor = regexp.MustCompile("\033\\[[\\d;]+m")
// DeColorString removes all color from the given string
func DeColorString(s string) string {