author | skyhusker <skyhusker> | 2005-01-26 22:45:53 (UTC) |
---|---|---|
committer | skyhusker <skyhusker> | 2005-01-26 22:45:53 (UTC) |
commit | f85af28663814f3262f5ecfcd20a4b4f67c23067 (patch) (side-by-side diff) | |
tree | 994bd8c5a9f361ca7eff8ef9fb404f89f6f90f78 /noncore/net/opieirc/ircchannellist.cpp | |
parent | cbaf2c1c6eb42bc8a283a40fe922603a44c29304 (diff) | |
download | opie-f85af28663814f3262f5ecfcd20a4b4f67c23067.zip opie-f85af28663814f3262f5ecfcd20a4b4f67c23067.tar.gz opie-f85af28663814f3262f5ecfcd20a4b4f67c23067.tar.bz2 |
* Created new class for IRCChannelPerson.
* Added whois, ping and version entries to channel popup menu.
* Fixed action on CTCP PING reply (was interpreted as a request).
Diffstat (limited to 'noncore/net/opieirc/ircchannellist.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircchannellist.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/noncore/net/opieirc/ircchannellist.cpp b/noncore/net/opieirc/ircchannellist.cpp index c32c535..8cf144e 100644 --- a/noncore/net/opieirc/ircchannellist.cpp +++ b/noncore/net/opieirc/ircchannellist.cpp @@ -1,6 +1,8 @@ #include <qpe/resource.h> + #include "ircchannellist.h" +#include "ircchannelperson.h" IRCChannelList::IRCChannelList(IRCChannel *channel, QWidget *parent, const char *name, WFlags f) : QListBox(parent, name, f) { m_channel = channel; } @@ -12,16 +14,16 @@ void IRCChannelList::update() { QListIterator<IRCChannelPerson> it = m_channel->people(); clear(); for (; it.current(); ++it) { IRCChannelPerson *person = it.current(); - if (person->flags & PERSON_FLAG_OP) { - insertItem(op, "1" + person->person->nick()); - } else if (person->flags & PERSON_FLAG_HALFOP) { - insertItem(op, "2" + person->person->nick()); - } else if (person->flags & PERSON_FLAG_VOICE) { - insertItem(voice, "3" + person->person->nick()); + if (person->flags() & IRCChannelPerson::PERSON_FLAG_OP) { + insertItem(op, "1" + person->nick()); + } else if (person->flags() & IRCChannelPerson::PERSON_FLAG_HALFOP) { + insertItem(op, "2" + person->nick()); + } else if (person->flags() & IRCChannelPerson::PERSON_FLAG_VOICE) { + insertItem(voice, "3" + person->nick()); } else { - insertItem("4" + person->person->nick()); + insertItem("4" + person->nick()); } } sort(); adjustNicks(); |