author | wazlaf <wazlaf> | 2002-09-20 23:28:14 (UTC) |
---|---|---|
committer | wazlaf <wazlaf> | 2002-09-20 23:28:14 (UTC) |
commit | 912092425248f7fc5155b4c7c46b7d00ec2676bc (patch) (unidiff) | |
tree | 5bbf746e83b2dffad89542c42031a573c34da751 /noncore/net/opieirc/ircserver.cpp | |
parent | cd3df897c1b0ed93c2be3ab411011a0bdfe88bf9 (diff) | |
download | opie-912092425248f7fc5155b4c7c46b7d00ec2676bc.zip opie-912092425248f7fc5155b4c7c46b7d00ec2676bc.tar.gz opie-912092425248f7fc5155b4c7c46b7d00ec2676bc.tar.bz2 |
support for client commands (only /join implemented so far), crash bugfix, fixed 2 leaks, server browser now includes a channel list
Diffstat (limited to 'noncore/net/opieirc/ircserver.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircserver.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircserver.cpp b/noncore/net/opieirc/ircserver.cpp index e16e2b2..e27e41d 100644 --- a/noncore/net/opieirc/ircserver.cpp +++ b/noncore/net/opieirc/ircserver.cpp | |||
@@ -1,12 +1,14 @@ | |||
1 | #include "ircserver.h" | 1 | #include "ircserver.h" |
2 | 2 | ||
3 | IRCServer::IRCServer() { | 3 | IRCServer::IRCServer() { |
4 | m_port = 6667; | 4 | m_port = 6667; |
5 | } | 5 | } |
6 | 6 | ||
7 | /* Setter implementations */ | ||
8 | |||
7 | void IRCServer::setHostname(QString hostname) { | 9 | void IRCServer::setHostname(QString hostname) { |
8 | m_hostname = hostname; | 10 | m_hostname = hostname; |
9 | } | 11 | } |
10 | 12 | ||
11 | void IRCServer::setName(QString name) { | 13 | void IRCServer::setName(QString name) { |
12 | m_name = name; | 14 | m_name = name; |
@@ -29,12 +31,18 @@ void IRCServer::setNick(QString nick) { | |||
29 | } | 31 | } |
30 | 32 | ||
31 | void IRCServer::setRealname(QString realname) { | 33 | void IRCServer::setRealname(QString realname) { |
32 | m_realname = realname; | 34 | m_realname = realname; |
33 | } | 35 | } |
34 | 36 | ||
37 | void IRCServer::setChannels(QString channels) { | ||
38 | m_channels = channels; | ||
39 | } | ||
40 | |||
41 | /* Getter implementations */ | ||
42 | |||
35 | QString IRCServer::hostname() { | 43 | QString IRCServer::hostname() { |
36 | return m_hostname; | 44 | return m_hostname; |
37 | } | 45 | } |
38 | 46 | ||
39 | QString IRCServer::name() { | 47 | QString IRCServer::name() { |
40 | return m_name; | 48 | return m_name; |
@@ -57,6 +65,10 @@ QString IRCServer::nick() { | |||
57 | } | 65 | } |
58 | 66 | ||
59 | QString IRCServer::realname() { | 67 | QString IRCServer::realname() { |
60 | return m_realname; | 68 | return m_realname; |
61 | } | 69 | } |
62 | 70 | ||
71 | QString IRCServer::channels() { | ||
72 | return m_channels; | ||
73 | } | ||
74 | |||