[Konversation-devel] [Bug 97954] Bad quietban (mode +q) notice

ismail cartman donmez ismail at kde.org.tr
Sun Mar 27 11:49:35 CEST 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=97954         
ismail kde org tr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From ismail kde org tr  2005-03-27 11:49 -------
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);
       }


More information about the Konversation-devel mailing list