_unlimitedReconnectRetries(false),
_codecForServer(0),
_codecForEncoding(0),
- _codecForDecoding(0)
+ _codecForDecoding(0),
+ _autoAwayActive(false)
{
setObjectName(QString::number(networkid.toInt()));
}
IrcChannel *Network::newIrcChannel(const QString &channelname) {
if(!_ircChannels.contains(channelname.toLower())) {
- IrcChannel *channel = new IrcChannel(channelname, this);
+ IrcChannel *channel = ircChannelFactory(channelname);
if(proxy())
proxy()->synchronize(channel);
while(channelIter != channelIterEnd) {
channelName = channelIter.key();
- ircChannel = new IrcChannel(channelName, this);
+ ircChannel = ircChannelFactory(channelName);
ircChannel->fromVariantMap(channelIter.value().toMap());
ircChannel->setInitialized();
proxy()->synchronize(ircChannel);