[Konversation-devel] [Bug 98730] Konversation does not warn or display properly outgoing messages that are too long

Peter Simonsson psn at linux.se
Sun Mar 20 15:26:51 CET 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=98730         
psn linux se changed:

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



------- Additional Comments From psn linux se  2005-03-20 15:26 -------
CVS commit by psn: 

Handle normal messages that are longer then 512 chars

BUG:98730


  M +10 -0     outputfilter.cpp   1.146


--- kdeextragear-2/konversation/konversation/outputfilter.cpp  #1.145:1.146
 @ -126,4 +126,9  @ namespace Konversation {
         {
             result.toServer = "PRIVMSG " + name + " :" + inputLine.mid(1);
+
+            for(int i = 508; i < result.toServer.length(); i += 509) {
+                result.toServer.insert(i, "\nPRIVMSG " + destination + " :");
+            }
+
             result.output = inputLine.mid(1);
             result.type = Message;
 @ -197,4 +202,9  @ namespace Konversation {
         {
             result.toServer = "PRIVMSG " + destination + " :" + inputLine;
+
+            for(int i = 508; i < result.toServer.length(); i += 509) {
+                result.toServer.insert(i, "\nPRIVMSG " + destination + " :");
+            }
+
             result.output = inputLine;
             result.type = Message;


More information about the Konversation-devel mailing list