[Konversation-devel] [Bug 98730] Konversation does not warn or display properly outgoing messages that are too long
Peter Simonsson
peter.simonsson at gmail.com
Thu Jul 1 16:00:39 CEST 2010
https://bugs.kde.org/show_bug.cgi?id=98730
--- Comment #2 from Peter Simonsson <peter simonsson gmail com> 2010-07-01 16:00:32 ---
commit c6ee78da5d689f29d1d2f61abe2264709cb5c3a8
Author: Peter Simonsson <peter.simonsson at gmail.com>
Date: Sun Mar 20 14:26:44 2005 +0000
Handle normal messages that are longer then 512 chars
BUG:98730
svn path=/trunk/kdeextragear-2/konversation/; revision=399208
diff --git a/konversation/outputfilter.cpp b/konversation/outputfilter.cpp
index a58e1b7..6c9cb83 100644
--- a/konversation/outputfilter.cpp
+++ b/konversation/outputfilter.cpp
@@ -125,6 +125,11 @@ namespace Konversation {
else if(line.startsWith(commandChar+commandChar) &&
!destination.isEmpty())
{
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;
}
@@ -196,6 +201,11 @@ namespace Konversation {
else if(!destination.isEmpty())
{
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;
}
--
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