diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2015-11-05 14:45:08 +0100 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2015-11-05 14:45:08 +0100 |
| commit | e08efd9ad57fbe44c68cb98c5cb9b3ac46b96439 (patch) | |
| tree | 7e0fd4036d28e92bb43c2f4bcfd583f9179774b2 /src/crsm.cpp | |
| parent | 0b455f219c67063fe52655e2e500db65477fb153 (diff) | |
| download | manager-e08efd9ad57fbe44c68cb98c5cb9b3ac46b96439.tar.gz manager-e08efd9ad57fbe44c68cb98c5cb9b3ac46b96439.zip | |
Add config options IRC.User and IRC.Port
Diffstat (limited to 'src/crsm.cpp')
| -rw-r--r-- | src/crsm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crsm.cpp b/src/crsm.cpp index 15c4ff8..607fd00 100644 --- a/src/crsm.cpp +++ b/src/crsm.cpp @@ -1569,7 +1569,8 @@ void CRSM::kick(const QString& pcName, const QString& reason) void CRSM::prepareAndConnectIrc() { connection = new IrcConnection(Config.IRC.Server); - connection->setUserName(Config.IRC.Nick); + connection->setPort(Config.IRC.Port); + connection->setUserName(Config.IRC.User.isEmpty() ? Config.IRC.Nick : Config.IRC.User); connection->setNickName(Config.IRC.Nick); connection->setRealName(Config.IRC.RealName); connection->setReconnectDelay(Config.IRC.ReconnectDelay); |
