Add config dir to default load path
[clinton/bobotpp.git] / source / User.H
index 2777c5c..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
@@ -59,17 +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 Parser;
-  friend class Channel;
+  friend class ChannelUserList;
   friend class Commands;
+  friend class ScriptCommands;
   friend class UserCommands;
 };