From f85af28663814f3262f5ecfcd20a4b4f67c23067 Mon Sep 17 00:00:00 2001 From: skyhusker Date: Wed, 26 Jan 2005 22:45:53 +0000 Subject: * 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). --- (limited to 'noncore/net/opieirc/ircchannellist.cpp') 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,5 +1,7 @@ #include + #include "ircchannellist.h" +#include "ircchannelperson.h" IRCChannelList::IRCChannelList(IRCChannel *channel, QWidget *parent, const char *name, WFlags f) : QListBox(parent, name, f) { m_channel = channel; @@ -13,14 +15,14 @@ void IRCChannelList::update() { 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(); -- cgit v0.9.0.2