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,7 +1,10 @@ #include "ircserver.h" +#include "ircversion.h" + +#include <qobject.h> IRCServer::IRCServer() { m_port = 6667; } /* Setter implementations */ @@ -46,13 +49,16 @@ QString IRCServer::hostname() { QString IRCServer::name() { return m_name; } unsigned short int IRCServer::port() { - return m_port; + if(m_port) + return m_port; + + return 6667; } QString IRCServer::username() { return m_username; } @@ -62,13 +68,16 @@ QString IRCServer::password() { QString IRCServer::nick() { return m_nick; } QString IRCServer::realname() { - return m_realname; + if(!m_realname.isEmpty()) + return m_realname; + + return QString(QObject::tr("Using")) + " " + QString(APP_VERSION); } QString IRCServer::channels() { return m_channels; } |