Bug 127110

Summary: maximum channel length needs to be increased
Product: [Fedora] Fedora Reporter: Colin Charles <byte>
Component: xchatAssignee: Daniel Reed <djr>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: barryn
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-02 21:54:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
new chanlen limit patch
none
new spec file for rebuilding none

Description Colin Charles 2004-07-01 22:30:21 UTC
Description of problem:
While trying to get on an IRC server and automatically have it join
channels for me, I noticed that the last few channels in the
list/string wasn't being joined properly. There was no indication as
to why this was the case, so I ended up digging into source :P

Version-Release number of selected component (if applicable):
xchat-2.0.9-1

How reproducible:
Always

Steps to Reproduce:
1. Start X-Chat
2. X-Chat -> Server List
3. In the Join Channels: dialog, enter a list of channels
(#channelname,#channel2,#channel3) and so on
4. Make it exceed 202 characters - there is no visual feedback that
the string limit is 202 characters, it allows you to type till more
5. So I go on typing, and get to 209 characters
6. When it connects to the server, it just cuts off everything after
202 characters. And there is no error message as to why this is done.
So joing a channel like #fedora-devel, can become #fed and thats it
  
Actual results:
Last channel in the 202 limit gets its string cut off (like
#fedora-devel becomes #fed where, the 'd' is char #202). Channels
afterward just don't show as being automatically joined, and now I
have to manually join them

Expected results:
It joins all my channels in the Join Channel: list

Additional info:
Seems src/common/xchat.h has a hard defined limit at 202 - who decided
on this arbritrary number ?

Attached is a patch to rebuild it, at a limit of 300. Why did I choose
300? Because on a standard 1024x768 display, that seems like a good
average. 

Otherwise, there must be a visible limit, and the user must get
feedback that the limit exists while entering information into the
Join Channels: dialog

Comment 1 Colin Charles 2004-07-01 22:31:40 UTC
Created attachment 101576 [details]
new chanlen limit patch

Comment 2 Colin Charles 2004-07-01 22:32:25 UTC
Created attachment 101577 [details]
new spec file for rebuilding

Comment 3 Mike A. Harris 2004-08-02 05:51:01 UTC
This should probably be submitted to the xchat author directly,
in case there is a specific reason the code has this limit.

Comment 4 Daniel Reed 2004-08-02 21:54:25 UTC
This has been migrated upstream:
http://sourceforge.net/tracker/index.php?func=detail&atid=100239&aid=1002292&group_id=239