[Konversation-devel] [Bug 97954] Bad quietban (mode +q) notice
ismail donmez ( cartman )
ismail at kde.org
Thu Jul 1 16:01:08 CEST 2010
https://bugs.kde.org/show_bug.cgi?id=97954
--- Comment #2 from ismail ( cartman ) donmez <ismail kde org> 2010-07-01 16:01:05 ---
commit 8360c657dc628cf7d2b47927bb955d0989bb2211
Author: İsmail Dönmez <ismail at 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;
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Konversation-devel
mailing list