projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Breaking protocol with alpha2.... and it won't be the last one...
[quassel.git]
/
src
/
common
/
ircuser.cpp
diff --git
a/src/common/ircuser.cpp
b/src/common/ircuser.cpp
index
c3c2d0c
..
efa7541
100644
(file)
--- a/
src/common/ircuser.cpp
+++ b/
src/common/ircuser.cpp
@@
-226,12
+226,7
@@
void IrcUser::setNick(const QString &nick) {
}
void IrcUser::updateObjectName() {
}
void IrcUser::updateObjectName() {
- QString newName = QString::number(network()->networkId().toInt()) + "/" + _nick;
- QString oldName = objectName();
- if(oldName != newName) {
- setObjectName(newName);
- emit renameObject(oldName, newName);
- }
+ renameObject(QString::number(network()->networkId().toInt()) + "/" + _nick);
}
void IrcUser::updateHostmask(const QString &mask) {
}
void IrcUser::updateHostmask(const QString &mask) {
@@
-264,6
+259,8
@@
void IrcUser::partChannel(IrcChannel *channel) {
disconnect(channel, 0, this, 0);
channel->part(this);
emit channelParted(channel->name());
disconnect(channel, 0, this, 0);
channel->part(this);
emit channelParted(channel->name());
+ if(_channels.isEmpty())
+ deleteLater();
}
}
}
}