- connect(network, SIGNAL(myNickSet(QString)),
- this, SLOT(updateNickSelector()));
- connect(network, SIGNAL(identitySet(IdentityId)),
- this, SLOT(setIdentity(IdentityId)));
+ connect(network, SIGNAL(identitySet(IdentityId)), this, SLOT(setIdentity(IdentityId)));
+ if(network->me()) {
+ connect(network->me(), SIGNAL(nickSet(QString)), this, SLOT(updateNickSelector()));
+ connect(network->me(), SIGNAL(userModesSet(QString)), this, SLOT(updateNickSelector()));
+ connect(network->me(), SIGNAL(userModesAdded(QString)), this, SLOT(updateNickSelector()));
+ connect(network->me(), SIGNAL(userModesRemoved(QString)), this, SLOT(updateNickSelector()));
+ }