Version: (using KDE KDE 3.3.91) Installed from: Slackware Packages OS: Linux When setting mode +q (quietban) to a user, you can see only "mode +q to #channel", but you can't see to what user it's applied.
CVS commit by cartman: Handle quiet bans better BUG:97954 M +6 -4 channel.cpp 1.304 --- kdeextragear-2/konversation/konversation/channel.cpp #1.303:1.304 @@ -1413,11 +1413,13 @@ void Channel::updateMode(QString sourceN if(plus) { - if(fromMe) message=i18n("You set the channel mode to 'quiet'."); - else message=i18n("%1 sets the channel mode to 'quiet'.").arg(sourceNick); + QString user = parameter.isEmpty() ? "" : "on "+parameter; + if(fromMe) message=i18n("You set the channel mode to 'quiet' %1.").arg(user); + else message=i18n("%1 sets the channel mode to 'quiet' %2.").arg(sourceNick).arg(user); } else { - if(fromMe) message=i18n("You remove the 'quiet' channel mode."); - else message=i18n("%1 removes the 'quiet' channel mode.").arg(sourceNick); + QString user = parameter.isEmpty() ? "" : "on "+parameter; + if(fromMe) message=i18n("You remove the 'quiet' channel mode %1.").arg(user); + else message=i18n("%1 removes the 'quiet' channel mode %1.").arg(sourceNick).arg(user); }
commit 8360c657dc628cf7d2b47927bb955d0989bb2211 Author: İsmail Dönmez <ismail@kde.org> Date: Sun Mar 27 09:49:21 2005 +0000 Handle quiet bans better BUG:97954 svn path=/trunk/kdeextragear-2/konversation/; revision=400926 diff --git a/konversation/channel.cpp b/konversation/channel.cpp index 48f0161..8a93bef 100644 --- a/konversation/channel.cpp +++ b/konversation/channel.cpp @@ -1412,13 +1412,15 @@ void Channel::updateMode(QString sourceNick, char mode, bool plus, const QString case 'q': if(plus) { - if(fromMe) message=i18n("You set the channel mode to 'quiet'."); - else message=i18n("%1 sets the channel mode to 'quiet'.").arg(sourceNick); + QString user = parameter.isEmpty() ? "" : "on "+parameter; + if(fromMe) message=i18n("You set the channel mode to 'quiet' %1.").arg(user); + else message=i18n("%1 sets the channel mode to 'quiet' %2.").arg(sourceNick).arg(user); } else { - if(fromMe) message=i18n("You remove the 'quiet' channel mode."); - else message=i18n("%1 removes the 'quiet' channel mode.").arg(sourceNick); + QString user = parameter.isEmpty() ? "" : "on "+parameter; + if(fromMe) message=i18n("You remove the 'quiet' channel mode %1.").arg(user); + else message=i18n("%1 removes the 'quiet' channel mode %1.").arg(sourceNick).arg(user); } break;