Opened 11 years ago

Closed 6 years ago

#1303 closed Defect (Fixed)

Please detect: "ERROR ... Bad username"

Reported by: DerFlash Owned by: akempgen
Component: Chat Core (IRC) Version: Local Build
Severity: Normal Keywords: username error
Cc: bte@…

Description

Some irc servers seem to look for bad username content like "shit" and then close the link before finishing the connect with this raw message:

ERROR :Closing Link: <nickname> by Diemen.NL.EU.Undernet.Org (USER: Bad username)

Example server: diemen.nl.eu.undernet.org
Username: in my case "flashit"

It should be enough to just recognize those errors and put it into the connections lastError variable. Since the connection then throws the "MVChatConnectionDidNotConnectNotification" which the client should use for displaying those errors then.

Change History (6)

comment:1 Changed 10 years ago by akempgen

cant reproduce the error with those steps, i can use flashit or the f-word and connect just fine...

comment:2 Changed 10 years ago by akempgen

  • Owner changed from timothy to akempgen
  • Status changed from new to assigned

to clarify: ticket is valid, i can reproduce with non-ascii chars in the username, just not with curse words

comment:3 Changed 10 years ago by akempgen

some examples

undernet:
NICK akempgen
USER Aleäx 0 * :Alex
NOTICE AUTH :*** Looking up your hostname
NOTICE AUTH :*** Checking Ident
NOTICE AUTH :*** Found your hostname
PING :528669262
PONG :528669262
NOTICE AUTH :*** No ident response
:SantaAna.CA.US.Undernet.org 468 akempgen :Your username is invalid.
:SantaAna.CA.US.Undernet.org 468 akempgen :Connect with your real username, in lowercase.
:SantaAna.CA.US.Undernet.org 468 akempgen :If your mail address were foo@bar.com, your username would be foo.
ERROR :Closing Link: akempgen by SantaAna.CA.US.Undernet.org (USER: Bad username)

quakenet:
NICK nightstalker
USER Aleäx 0 * :Alex
NOTICE AUTH :*** Looking up your hostname
NOTICE AUTH :*** Checking Ident
NOTICE AUTH :*** Found your hostname
PING :3711403703
PONG :3711403703
NOTICE AUTH :*** No ident response
:clanserver4u1.de.quakenet.org 468 nightstalker :Your username is invalid.
:clanserver4u1.de.quakenet.org 468 nightstalker :Connect with your real username, in lowercase.
:clanserver4u1.de.quakenet.org 468 nightstalker :If your mail address were foo@bar.com, your username would be foo.
ERROR :Closing Link: nightstalker by clanserver4u1.de.quakenet.org (USER: Bad username)

freenode:
NICK akempgen
USER Aleäx 0 * Alex
NOTICE AUTH *** Looking up your hostname...
NOTICE AUTH *** Checking ident
NOTICE AUTH *** Found your hostname
NOTICE AUTH *** No identd (auth) response
ERROR Closing Link: 127.0.0.1 (Invalid username [n=Aleäx])

future freenode:
NICK akempgen
USER Aleäx 0 * :Alex
:brown.freenode.net NOTICE * :*** Looking up your hostname...
:brown.freenode.net NOTICE * :*** Checking Ident
:brown.freenode.net NOTICE * :*** No Ident response
:brown.freenode.net NOTICE * :*** Found your hostname
:brown.freenode.net NOTICE akempgen :*** Your username is invalid. Please make sure that your username contains only alphanumeric characters.
ERROR :Closing Link: xxxxxxxx.dip.t-dialin.net (Invalid username [~Aleäx])

comment:4 Changed 10 years ago by akempgen

ERROR :Closing Link: 127.0.0.1 (Install identd)

comment:5 Changed 10 years ago by akempgen

  • milestone set to Colloquy 2.3
  • Status changed from assigned to accepted

comment:6 Changed 6 years ago by zach

  • Resolution set to Fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.