Bug 124265 - User Limit in Channel Options Dialog broken
Summary: User Limit in Channel Options Dialog broken
Status: CLOSED WORKSFORME
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-26 00:41 UTC by Sebastian Wiedenroth
Modified: 2006-05-18 15:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Wiedenroth 2006-03-26 00:41:18 UTC
Version:           0.19+ Build 3102 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 3.4.4 
OS:                Linux

Enabling / disabling or changing the "User limit" mode in the "Channel Options" Dialog does not work correctly.

The raw log shows some strange things:

increasing user limit (was set previously):
[00:07:53] << MODE #test2 +K onversation::ChannelOptionsDialog
returns a log of 472s "unknown mode char"

decreasinguser limit:
[00:12:21] << MODE #test2 +k
[00:12:21] >> :irc.server 461 Nick MODE +k :Not enough parameters

disabling user limit:
[00:13:14] << MODE #test2 -

enabling user limit:
does nothing

try on an other channel+computer (there with konvi 0.19 #3100 on fbsd)

enabling user limit:
<< MODE #test +d get

increasing user limit:
MODE #test +h owOSD

decreasing:
<< MODE #test +D Widget

disabling:
<< TOPIC #test
>> :irc.server 331 nick #test :No topic is set.
<< MODE #test -t
>> nick!bla@blub MODE #test -t


Typing /mode by hand or using the "channel mode buttons" works fine.
For more information just contact me. ;-)
Comment 1 Shintaro Matsuoka 2006-05-18 09:10:07 UTC
SVN commit 542070 by shin:

Fix the problem that "User Limit" in Channel Option Dialog doesn't work correctly.

Thank you for the report. Please confirm this fix.
CCBUG: 124265

 M  +1 -1      channeloptionsdialog.cpp  


--- trunk/extragear/network/konversation/src/channeloptionsdialog.cpp #542069:542070
@@ -321,7 +321,7 @@
         mode += "n";
         modes.append(mode);
         mode = (m_widget->userLimitChBox->isChecked() ? "+" : "-");
-        mode += "l" + m_widget->userLimitEdit->value();
+        mode += "l" + QString::number( m_widget->userLimitEdit->value() );
         modes.append(mode);
         mode = (m_widget->inviteModeChBox->isChecked() ? "+" : "-");
         mode += "i";
Comment 2 Sebastian Wiedenroth 2006-05-18 12:31:37 UTC
thanks, works perfect now ;-)