mirror of
https://github.com/gissleh/irc.git
synced 2026-10-19 03:32:54 +00:00
client: Fixed incorrect numeric being listened to for nick errors.
This commit is contained in:
@@ -763,7 +763,7 @@ func (client *Client) handleEvent(event *Event) {
|
|||||||
client.Sendf("WHO %s", event.Args[0])
|
client.Sendf("WHO %s", event.Args[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
case "packet.443":
|
case "packet.431", "packet.432", "packet.433", "packet.436":
|
||||||
{
|
{
|
||||||
client.mutex.RLock()
|
client.mutex.RLock()
|
||||||
hasRegistered := client.nick != ""
|
hasRegistered := client.nick != ""
|
||||||
|
|||||||
+4
-4
@@ -37,13 +37,13 @@ func TestClient(t *testing.T) {
|
|||||||
{Kind: 'C', Data: "CAP REQ :multi-prefix userhost-in-names"},
|
{Kind: 'C', Data: "CAP REQ :multi-prefix userhost-in-names"},
|
||||||
{Kind: 'S', Data: ":testserver.example.com CAP * ACK :multi-prefix userhost-in-names"},
|
{Kind: 'S', Data: ":testserver.example.com CAP * ACK :multi-prefix userhost-in-names"},
|
||||||
{Kind: 'C', Data: "CAP END"},
|
{Kind: 'C', Data: "CAP END"},
|
||||||
{Kind: 'S', Data: ":testserver.example.com 443 * Test :Nick is not available"},
|
{Kind: 'S', Data: ":testserver.example.com 433 * Test :Nick is not available"},
|
||||||
{Kind: 'C', Data: "NICK Test2"},
|
{Kind: 'C', Data: "NICK Test2"},
|
||||||
{Kind: 'S', Data: ":testserver.example.com 443 * Test2 :Nick is not available"},
|
{Kind: 'S', Data: ":testserver.example.com 433 * Test2 :Nick is not available"},
|
||||||
{Kind: 'C', Data: "NICK Test3"},
|
{Kind: 'C', Data: "NICK Test3"},
|
||||||
{Kind: 'S', Data: ":testserver.example.com 443 * Test3 :Nick is not available"},
|
{Kind: 'S', Data: ":testserver.example.com 433 * Test3 :Nick is not available"},
|
||||||
{Kind: 'C', Data: "NICK Test4"},
|
{Kind: 'C', Data: "NICK Test4"},
|
||||||
{Kind: 'S', Data: ":testserver.example.com 443 * Test4 :Nick is not available"},
|
{Kind: 'S', Data: ":testserver.example.com 433 * Test4 :Nick is not available"},
|
||||||
{Kind: 'C', Data: "NICK Test768"},
|
{Kind: 'C', Data: "NICK Test768"},
|
||||||
{Kind: 'S', Data: ":testserver.example.com 001 Test768 :Welcome to the TestServer Internet Relay Chat Network test"},
|
{Kind: 'S', Data: ":testserver.example.com 001 Test768 :Welcome to the TestServer Internet Relay Chat Network test"},
|
||||||
{Kind: 'C', Data: "WHO Test768*"},
|
{Kind: 'C', Data: "WHO Test768*"},
|
||||||
|
|||||||
Reference in New Issue
Block a user