summaryrefslogtreecommitdiff
path: root/daemon.go
diff options
context:
space:
mode:
Diffstat (limited to 'daemon.go')
-rw-r--r--daemon.go3
1 files changed, 2 insertions, 1 deletions
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")