X-Git-Url: http://www.git.cypherpunks.ru/?p=goircd.git;a=blobdiff_plain;f=daemon.go;h=0f2b9298d35b834a8fbd395397f267af12a47cf1;hp=d46ee07fe0944ea74e63694bd6787cbb253aeb6e;hb=a9e5e5cd2f6acb7d5f243e85f71b3cc0e27137df;hpb=9f6cca6c56d12478afb026ca4bd4ec3a688d6c9b diff --git a/daemon.go b/daemon.go index d46ee07..0f2b929 100644 --- a/daemon.go +++ b/daemon.go @@ -167,7 +167,8 @@ func ClientRegister(client *Client, cmd string, cols []string) { client.ReplyNotEnoughParameters("PASS") return } - client.password = &cols[1] + password := strings.TrimPrefix(cols[1], ":") + client.password = &password case "NICK": if len(cols) == 1 || len(cols[1]) < 1 { client.ReplyParts("431", "No nickname given")