| Summary: | Konversation does not warn or display properly outgoing messages that are too long | ||
|---|---|---|---|
| Product: | [Applications] konversation | Reporter: | Jason Keirstead <jason> |
| Component: | general | Assignee: | Konversation Bugs <konversation-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Jason Keirstead
2005-02-06 23:24:02 UTC
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;
commit c6ee78da5d689f29d1d2f61abe2264709cb5c3a8 Author: Peter Simonsson <peter.simonsson@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; } |