[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork/kopete/libkopete
From: Olivier Goffart <ogoffart () kde ! org>
Date: 2005-04-04 20:45:00
Message-ID: 20050404204500.8900963E () office ! kde ! org
[Download RAW message or body]
CVS commit by ogoffart:
Revert previous Jason commit about changing nickname.
Jason:
1) can you please test before commit ?
This pach simply can't works, because one need to update it on the server.
2) the function Contact::setDisplayName is marked as depraceted. That mean you \
shouldn't use it.
there is currently no method, in libkopete, to change the *nick* of an account. \
anyway, this could be added, if done nicely and properly
M +0 -8 kopetecommandhandler.cpp 1.45
M +0 -1 kopetecommandhandler.h 1.28
--- kdenetwork/kopete/libkopete/kopetecommandhandler.cpp #1.44:1.45
@@ -130,7 +130,4 @@ Kopete::CommandHandler::CommandHandler()
"useful for scripts." ), 1 );
- registerCommand( this, QString::fromLatin1("nick"), SLOT( slotNickCommand( \
const QString &, Kopete::ChatSession * ) ),
- i18n( "USAGE: /nick <nickname> - Change your nickname to the given \
one." ), 1 );
-
registerCommand( this, QString::fromLatin1("exec"), SLOT( slotExecCommand( \
const QString &, Kopete::ChatSession * ) ),
i18n( "USAGE: /exec [-o] <command> - Executes the specified command \
and displays the output in the chat buffer. " @@ -272,9 +269,4 @@ void \
Kopete::CommandHandler::slotSayComm }
-void Kopete::CommandHandler::slotNickCommand( const QString & args, \
Kopete::ChatSession *manager )
-{
- manager->account()->myself()->setDisplayName( args );
-}
-
void Kopete::CommandHandler::slotExecCommand( const QString &args, \
Kopete::ChatSession *manager ) {
--- kdenetwork/kopete/libkopete/kopetecommandhandler.h #1.27:1.28
@@ -187,5 +187,4 @@ class KOPETE_EXPORT CommandHandler : pub
void slotAwayAllCommand( const QString & args, Kopete::ChatSession \
*manager );
void slotSayCommand( const QString & args, Kopete::ChatSession \
*manager );
- void slotNickCommand( const QString & args, Kopete::ChatSession \
*manager );
private:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic