// User.H -*- C++ -*-
// Copyright (c) 1997, 1998 Etienne BERNARD
+// Copyright (C) 2009 Clinton Ebadi
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
NO_DEOP = 3
};
- User(String, String, String, int, UserList *);
+ User(String, String, String, int, UserListItem *);
User(String, int);
- int getLevel();
- int getProt();
- bool getAop();
+ int getLevel() const;
+ int getProt() const;
+ bool getAop() const;
+
+ std::string get_nick () const { return nick; }
+ std::string get_userhost () const { return userhost; }
+ int get_mode () const { return mode; }
+
+ bool operator< (const User &) const;
+ bool operator== (const User &) const;
friend class Bot;
friend class Parser;
- friend class Channel;
+ friend class ChannelUserList;
friend class Commands;
+ friend class ScriptCommands;
friend class UserCommands;
};