_topic(QString()),
network(network)
{
- setObjectName(QString::number(network->networkId()) + "/" + channelname);
+ setObjectName(QString::number(network->networkId().toInt()) + "/" + channelname);
}
IrcChannel::~IrcChannel() {
return isvalid;
}
-bool IrcChannel::initialized() const {
- return _initialized;
-}
-
QString IrcChannel::name() const {
return _name;
}
//qDebug() << "PART" << name() << ircuser->nick() << ircUsers().count();
// if you wonder why there is no counterpart to ircUserParted:
// the joines are propagted by the ircuser. the signal ircUserParted is only for convenience
+ disconnect(ircuser, 0, this, 0);
emit ircUserParted(ircuser);
- if(network->isMyNick(ircuser))
+ if(network->isMe(ircuser))
deleteLater();
}
}
}
void IrcChannel::ircUserDestroyed() {
+ qDebug() << "IrcChannel::ircUserDestroyed()";
IrcUser *ircUser = static_cast<IrcUser *>(sender());
Q_ASSERT(ircUser);
_userModes.remove(ircUser);
emit ircUserNickSet(ircUser, nick);
}
-void IrcChannel::setInitialized() {
- _initialized = true;
- emit initDone();
-}
-