Trim possible :-prefix sent by Pidgin in PASS command
This commit is contained in:
parent
9f6cca6c56
commit
a9e5e5cd2f
|
@ -167,7 +167,8 @@ func ClientRegister(client *Client, cmd string, cols []string) {
|
||||||
client.ReplyNotEnoughParameters("PASS")
|
client.ReplyNotEnoughParameters("PASS")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
client.password = &cols[1]
|
password := strings.TrimPrefix(cols[1], ":")
|
||||||
|
client.password = &password
|
||||||
case "NICK":
|
case "NICK":
|
||||||
if len(cols) == 1 || len(cols[1]) < 1 {
|
if len(cols) == 1 || len(cols[1]) < 1 {
|
||||||
client.ReplyParts("431", "No nickname given")
|
client.ReplyParts("431", "No nickname given")
|
||||||
|
|
Loading…
Reference in New Issue