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

List:       kde-commits
Subject:    kdenetwork/kopete/protocols/irc
From:       Michel Hermier <michel.hermier () wanadoo ! fr>
Date:       2005-04-13 18:12:14
Message-ID: 20050413181214.57A83492 () office ! kde ! org
[Download RAW message or body]

CVS commit by hermier: 

Clean up the whois API.
Attempt to reduce verbosity of the whois message, due to the online status checking of the IRC victims.


  M +1 -1      ircprotocol.cpp   1.211
  M +3 -2      ircusercontact.cpp   1.111
  M +1 -1      libkirc/kircengine.h   1.20
  M +1 -1      libkirc/kircengine_commands.cpp   1.14


--- kdenetwork/kopete/protocols/irc/ircprotocol.cpp  #1.210:1.211
@@ -576,5 +576,5 @@ void IRCProtocol::slotQueryCommand( cons
 void IRCProtocol::slotWhoisCommand( const QString &args, Kopete::ChatSession *manager )
 {
-        static_cast<IRCAccount*>( manager->account() )->engine()->whoisUser( args );
+        static_cast<IRCAccount*>( manager->account() )->engine()->whois( args );
         static_cast<IRCAccount*>( manager->account() )->setCurrentCommandSource( manager );
 }

--- kdenetwork/kopete/protocols/irc/ircusercontact.cpp  #1.110:1.111
@@ -182,5 +182,6 @@ void IRCUserContact::userOnline()
         {
                 mOnlineTimer->start( 45000, true );
-                kircEngine()->writeMessage( QString::fromLatin1("WHOIS %1").arg(m_nickName) );
+                ircAccount()->setCurrentCommandSource(0);
+                kircEngine()->whois(m_nickName);
         }
 
@@ -193,5 +194,5 @@ void IRCUserContact::slotUserInfo()
         {
                 ircAccount()->setCurrentCommandSource(manager());
-                kircEngine()->whoisUser( m_nickName );
+                kircEngine()->whois(m_nickName);
         }
 }

--- kdenetwork/kopete/protocols/irc/libkirc/kircengine.h  #1.19:1.20
@@ -248,5 +248,5 @@ public slots:
         void user(const QString &newUsername, const QString &hostname, const QString &newRealname);
         void user(const QString &newUsername, Q_UINT8 mode, const QString &newRealname);
-        void whoisUser(const QString &user);
+        void whois(const QString &user);
 
 

--- kdenetwork/kopete/protocols/irc/libkirc/kircengine_commands.cpp  #1.13:1.14
@@ -304,5 +304,5 @@ void Engine::notice(Message &msg)
 }
 
-void Engine::whoisUser(const QString &user)
+void Engine::whois(const QString &user)
 {
         writeMessage("WHOIS", user);


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

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