Add config dir to default load path
[clinton/bobotpp.git] / source / User.H
index 1499ce9..9eef8d8 100644 (file)
@@ -1,5 +1,6 @@
 // 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
 
 // 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 #ifndef USER_H
 #define USER_H
 
 #include "UserList.H"
-#include "UserListItem.H"
 
 class Bot;
-class Utils;
-class Parser;
 class Channel;
 class Commands;
+class Parser;
 class UserCommands;
+class UserListItem;
 
 class User {
 
@@ -60,18 +60,25 @@ public:
     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 Utils;
   friend class Parser;
-  friend class Channel;
+  friend class ChannelUserList;
   friend class Commands;
+  friend class ScriptCommands;
   friend class UserCommands;
 };