Skip to content

Some handy features (non-UTF8 charset decoding, webirc header support)#8

Open
Thulinma wants to merge 1 commit into
play-co:masterfrom
Thulinma:master
Open

Some handy features (non-UTF8 charset decoding, webirc header support)#8
Thulinma wants to merge 1 commit into
play-co:masterfrom
Thulinma:master

Conversation

@Thulinma

@Thulinma Thulinma commented Sep 4, 2011

Copy link
Copy Markdown

I've been using orbited2 for a while now on my own server to run a WebIRC script that connects to my IRC server.
However, this has a few problems:

1 - Some IRC clients do not produce valid UTF-8, crashing any user connected through orbited2.
2 - All users that connect though orbited2 show up as IP address "localhost", effectively making it impossible to ban them.

Problem 1 is fixed by the non-UTF8 charset decoding, turning all incoming data into valid UTF-8.
(Note: The non-UTF8 charset decoding was not added by me, but by a friend of mine: Pol Van Aubel ([email protected]) )

Problem 2 is fixed by the addition of a webirc setting in the config file, allowing people to set a password for the webirc "standard" that deals with solving exactly this problem.

Since my server is IPv6 enabled and apparently webirc has problems with non-IPv4 addresses, I made the webirc command only take the IPv4 part of the IPv6 address if available. This is obviously wrong in the case that the server is not IPv6 enabled, and even more wrong when somebody actually connects over IPv6. To combat this, I also added a "ipv6entry" command, which always takes the valid client address, but assumes the server reading this information understands both IPv4 and IPv6 (see this as the "future proof" version of this command).

I hope you find these additions useful and will add them to the main project!
Speaking of - is this still in active development? Just wondering :-)

@bivald

bivald commented Nov 28, 2011

Copy link
Copy Markdown

I think problem #2 has been discussed before and rejected since it was to narrow (even though I would like it as well). However, problem #1 is a real issue (and has been since orbited 0.7) and it would be awesome if it would be fixed.

@Thulinma

Copy link
Copy Markdown
Author

Perhaps just the ipv6entry config then - which simply copies the line you input in the setting, with the IP filled in. This is a very generic usage not restricted to just IRC... I've already used this to sent through the original IP address to several other server systems using this. It's been very helpful :-)

@bivald

bivald commented Nov 29, 2011

Copy link
Copy Markdown

I'm all for it

…nd support for webirc headers and a IPv6 equivalent thereof.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants