[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/kopete/protocols/msn
From:       Diego Iastrubni <elcuco () kdemail ! net>
Date:       2004-07-14 12:33:25
Message-ID: 20040714123325.DD1A816B11 () office ! kde ! org
[Download RAW message or body]

CVS commit by iastrubni: 

CCMAIL:aplaut@netvision.net.il
send correct message direction to windows users.  Information taken from \
http://www.hypothetic.org/docs/msn/client/plaintext.php?printable=color


  M +6 -4      msnswitchboardsocket.cpp   1.103


--- kdenetwork/kopete/protocols/msn/msnswitchboardsocket.cpp  #1.102:1.103
@@ -294,5 +294,5 @@ void MSNSwitchBoardSocket::slotReadMessa
                 QString message=msg.right( msg.length() - msg.find("\r\n\r\n") - 4 \
);  
-                //Stupid MSN PLUS colors code. message with incorrect charactère are \
not showed correctly in the chatwindow.µ +                //Stupid MSN PLUS colors \
code. message with incorrect charact�e are not showed correctly in the chatwindow.  \
                //TODO: parse theses one to show the color too in Kopete
                 message.replace("\3","").replace("\4","").replace("\2","");
@@ -462,6 +462,8 @@ int MSNSwitchBoardSocket::sendMsg( const
         }
 
-        head += "; CS=0; PF=0\r\n"
-                "\r\n";
+        head += "; CS=0; PF=0";         
+        if (msg.plainBody().isRightToLeft()) 
+                head += "; RL=1";
+        head += "\r\n\r\n";             
 
         QString message= msg.plainBody().replace(  "\n" , "\r\n" );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic