Diffstat (limited to 'noncore/net/opieirc/ircserver.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircserver.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircserver.cpp b/noncore/net/opieirc/ircserver.cpp index e27e41d..7e7e412 100644 --- a/noncore/net/opieirc/ircserver.cpp +++ b/noncore/net/opieirc/ircserver.cpp @@ -1,2 +1,5 @@ #include "ircserver.h" +#include "ircversion.h" + +#include <qobject.h> @@ -51,3 +54,6 @@ QString IRCServer::name() { unsigned short int IRCServer::port() { + if(m_port) return m_port; + + return 6667; } @@ -67,3 +73,6 @@ QString IRCServer::nick() { QString IRCServer::realname() { + if(!m_realname.isEmpty()) return m_realname; + + return QString(QObject::tr("Using")) + " " + QString(APP_VERSION); } |