[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Increasing nick and username lengths?



I've increased the NICKLEN and USERLEN fields by 6 each (to match the
standard length used by the platform where our stuff is being hosted),
and am wondering if there are any hidden gotchas in there.

Specifically, I'm seeing mangled buffers, for instance you'll get two
messages in a row where the IRC server complains:

:luv-1@xxxxxxxxxxxxxxxxxxxxxxxx 421 LBC PRPRIVMSG :Unknown command
:luv-1@xxxxxxxxxxxxxxxxxxxxxxxx 421 LBC IVMSG :Unknown command

Notice that the PR on one of the messages got knocked over onto the
other (and yes, they did come in that order -- ??). This is usually
what's happening -- bits of one message show up in another, causing it
to fail at the IRC level because it's an invalid message or higher up
because it doesn't make sense as a protocol message anymore.

There's absolutely no way this is being generated on the client, the
whole PRIVMSG command is hidden behind an abstract sending method.

James