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

List:       kde-commits
Subject:    kdenonbeta/kopete/protocols/aim
From:       Martijn Klingens <klingens () kde ! org>
Date:       2002-12-28 0:21:58
[Download RAW message or body]

CVS commit by mklingens: 

Pass a _normalized_ name to the KopeteContact c'tor so 'JosefEifel' is stored
as 'josefeifel' and Kopete doesn't try to readd already-existing people to
my contact list...


  M +1 -1      aimcontact.cpp   1.76
  M +4 -3      aimprotocol.cpp   1.90


--- kdenonbeta/kopete/protocols/aim/aimcontact.cpp  #1.75:1.76
@@ -41,5 +41,5 @@
 AIMContact::AIMContact( const QString name, AIMProtocol *proto,
         KopeteMetaContact *parent )
-: KopeteContact( proto, name, parent )
+: KopeteContact( proto, tocNormalize( name ), parent )
 {
         // init vars

--- kdenonbeta/kopete/protocols/aim/aimprotocol.cpp  #1.89:1.90
@@ -112,8 +112,9 @@ AIMProtocol* AIMProtocol::protocol()
 }
 
-void AIMProtocol::slotIMReceived(QString sender, QString, bool)
+void AIMProtocol::slotIMReceived( QString sender, QString, bool )
 {
-        if( !contacts()[ tocNormalize( sender ) ] )
-                addNewContact(tocNormalize(sender), QString(), false, i18n("Unknown"));
+        QString screenName = tocNormalize( sender );
+        if( !contacts()[ screenName ] )
+                addNewContact( screenName, QString(), false, i18n( "Unknown" ) );
 }
 


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

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