[BUG][IRCe] IRCe doesn't handle IPv6 addresses
Jecel Assumpcao Jr
jecel at merlintec.com
Wed May 12 19:15:52 UTC 2004
When someone uses an IPv6 address (like SamB in #slate) you get a
debugger in the IRC client and things become messy from then on.
The problem is in IRCProtocolMessage class>>#fromString: which assumes
that a $: indicates a trailer. That is ok for IPv4 addresses, which are
decimal numbers separated by $. but IPv6 has hexadecimal numbers
separated by $:
A quick patch is to ignore $: characters before a space
trailerStart _ remainder indexOf: $:
startingAt: (remainder indexOf: $ startingAt: 2
This avoids having "commands _ tokens removeFirst: 1" execute with an
empty "tokens", but is most certainly not the proper fix for this.
More information about the Squeak-dev