aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kvirc/sparser/kvi_sp_numeric.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/kvirc/sparser/kvi_sp_numeric.cpp b/src/kvirc/sparser/kvi_sp_numeric.cpp
index 78b0b1310..8e059d979 100644
--- a/src/kvirc/sparser/kvi_sp_numeric.cpp
+++ b/src/kvirc/sparser/kvi_sp_numeric.cpp
@@ -910,15 +910,19 @@ void KviServerParser::parseLoginNicknameProblem(KviIrcMessage *msg)
// Check for identity profiles
KviIdentityProfileSet * pSet = KviIdentityProfileSet::instance();
bool bProfilesEnabled = pSet ? (pSet->isEnabled() && !pSet->isEmpty()) : false;
+ KviIdentityProfile * pProfile = 0;
if(bProfilesEnabled)
{
- KviIdentityProfile * pProfile = pSet->findNetwork(msg->connection()->networkName());
+ pProfile = pSet->findNetwork(msg->connection()->networkName());
if(pProfile)
{
szNextNick = pProfile->altNick();
uNickCnt = 1;
}
- } else {
+ }
+
+ if(!pProfile)
+ {
switch(msg->connection()->stateData()->loginNickIndex())
{
case 0: