summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-02-28 17:33:31 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-02-28 17:33:31 +0000
commit3f80e1cad02735f692a5a300ee3b200a21f330aa (patch)
treed7bcd3c5d1cfd54c725f4c9a0eb7984632b6be67 /include/users.h
parent393b5ab26e952f427f40a8ed6d10acfdf6ead96c (diff)
Added in support for live updating MySQL databases and the ability to execute commands to Anope through MySQL. Currently database support only applies to NickServ, ChanServ and BotServ but will be expanded soon.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2798 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/users.h b/include/users.h
index 525df393b..0d701f839 100644
--- a/include/users.h
+++ b/include/users.h
@@ -23,7 +23,7 @@ typedef std::list<ChannelContainer *> UChannelList;
/* Online user and channel data. */
class CoreExport User : public Extensible
{
- private:
+ protected:
std::string vident;
std::string ident;
std::string uid;
@@ -76,7 +76,7 @@ class CoreExport User : public Extensible
/** Update the nickname of a user record accordingly, should be
* called from ircd protocol.
*/
- void SetNewNick(const std::string &newnick);
+ virtual void SetNewNick(const std::string &newnick);
/** Update the displayed (vhost) of a user record.
* This is used (if set) instead of real host.
@@ -140,8 +140,8 @@ class CoreExport User : public Extensible
* @param fmt Format of the Message
* @param ... any number of parameters
*/
- void SendMessage(const std::string &source, const char *fmt, ...);
- void SendMessage(const std::string &source, const std::string &msg);
+ virtual void SendMessage(const std::string &source, const char *fmt, ...);
+ virtual void SendMessage(const std::string &source, const std::string &msg);
/** Check if the user should become identified because
* their svid matches the one stored in their nickcore
@@ -166,17 +166,17 @@ class CoreExport User : public Extensible
/** Get the account the user is logged in using
* @reurn The account or NULL
*/
- NickCore *Account() const;
+ virtual NickCore *Account() const;
/** Check if the user is identified for their nick
* @return true or false
*/
- const bool IsIdentified() const;
+ virtual const bool IsIdentified() const;
/** Check if the user is recognized for their nick (on the nicks access list)
* @return true or false
*/
- const bool IsRecognized() const;
+ virtual const bool IsRecognized() const;
/** Update the last usermask stored for a user, and check to see if they are recognized
*/