summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/crsm.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/crsm.cpp b/src/crsm.cpp
index 1c55ea1..10665cc 100644
--- a/src/crsm.cpp
+++ b/src/crsm.cpp
@@ -1695,6 +1695,16 @@ void CRSM::applyConfig()
{
prepareAndConnectIrc();
}
+ else
+ {
+ if(connection->isConnected())
+ {
+ if(connection->nickName() != Config.IRC.Nick)
+ {
+ connection->sendCommand(IrcCommand::createNick(Config.IRC.Nick));
+ }
+ }
+ }
}
else
{