// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+// 02110-1301, USA.
#include "StringTokenizer.H"
#include "ServerQueue.H"
: priority(pr), penalty(pen), type(t)
{ }
-
-
ServerQueueOtherItem::ServerQueueOtherItem(String l, int pr,
int pen, int t)
: ServerQueueItem(pr, pen, t), line(l)
{ }
+bool ServerQueueItem::operator< (const ServerQueueItem & item)
+{
+ // lower numeric priority is higher priority
+ return item.priority < priority;
+}
+
String
ServerQueueOtherItem::getLine()
{
return line;
}
-
-
ServerQueueChannelModeItem::ServerQueueChannelModeItem(String c, String m, String p)
: ServerQueueItem(CHANNELMODE_PRIORITY,
CHANNELMODE_PENALTY,