Diffstat (limited to 'noncore/net/opieirc/ircserver.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircserver.cpp | 13 |
1 files changed, 11 insertions, 2 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,3 +1,6 @@ #include "ircserver.h" +#include "ircversion.h" + +#include <qobject.h> IRCServer::IRCServer() { @@ -50,5 +53,8 @@ QString IRCServer::name() { unsigned short int IRCServer::port() { - return m_port; + if(m_port) + return m_port; + + return 6667; } @@ -66,5 +72,8 @@ QString IRCServer::nick() { QString IRCServer::realname() { - return m_realname; + if(!m_realname.isEmpty()) + return m_realname; + + return QString(QObject::tr("Using")) + " " + QString(APP_VERSION); } |