mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-14 16:09:32 +01:00
don't set CapNegotiating for blind CAP REQ
This commit is contained in:
parent
97886dd00f
commit
4268c4a936
@ -291,7 +291,6 @@ func (msg *CapCommand) HandleRegServer(server *Server) {
|
|||||||
client.Reply(RplCap(client, CAP_LIST, client.capabilities))
|
client.Reply(RplCap(client, CAP_LIST, client.capabilities))
|
||||||
|
|
||||||
case CAP_REQ:
|
case CAP_REQ:
|
||||||
client.capState = CapNegotiating
|
|
||||||
for capability := range msg.capabilities {
|
for capability := range msg.capabilities {
|
||||||
if !SupportedCapabilities[capability] {
|
if !SupportedCapabilities[capability] {
|
||||||
client.Reply(RplCap(client, CAP_NAK, msg.capabilities))
|
client.Reply(RplCap(client, CAP_NAK, msg.capabilities))
|
||||||
|
Loading…
Reference in New Issue
Block a user