summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircserver.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/opieirc/ircserver.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opieirc/ircserver.cpp9
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,4 +1,7 @@
#include "ircserver.h"
+#include "ircversion.h"
+
+#include <qobject.h>
IRCServer::IRCServer() {
m_port = 6667;
@@ -49,7 +52,10 @@ QString IRCServer::name() {
}
unsigned short int IRCServer::port() {
+ if(m_port)
return m_port;
+
+ return 6667;
}
QString IRCServer::username() {
@@ -65,7 +71,10 @@ QString IRCServer::nick() {
}
QString IRCServer::realname() {
+ if(!m_realname.isEmpty())
return m_realname;
+
+ return QString(QObject::tr("Using")) + " " + QString(APP_VERSION);
}
QString IRCServer::channels() {