From ce664a160b1c1d4c75de5ba1867c96a0698326fd Mon Sep 17 00:00:00 2001 From: adam- Date: Tue, 4 Aug 2009 01:56:14 +0000 Subject: Fixed autoid git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2404 5417fbe8-f217-4b02-8779-1006273d7864 --- include/services.h | 7 +++++-- include/users.h | 9 ++++++--- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/services.h b/include/services.h index 55b437da3..c86a5bd1d 100644 --- a/include/services.h +++ b/include/services.h @@ -469,9 +469,7 @@ struct ircdvars_ { const char *ownerunset; /* Mode to unset for a owner */ const char *adminset; /* Mode to set for admin */ const char *adminunset; /* Mode to unset for admin */ - const char *modeonreg; /* Mode on Register */ const char *modeonunreg; /* Mode on Unregister */ - const char *modeonnick; /* Mode on nick change */ int sgline; /* Supports SGline */ int sqline; /* Supports SQline */ int szline; /* Supports SZline */ @@ -1355,6 +1353,11 @@ class CoreExport IRCDProto * @param account The account the user is logging out of */ virtual void SendAccountLogout(User *u, NickCore *account) { } + + /** Set a users auto identification token + * @param u The user + */ + virtual void SetAutoIdentificationToken(User *u) { } }; class CoreExport IRCDTS6Proto : public IRCDProto diff --git a/include/users.h b/include/users.h index fd05b5c17..360dfeec5 100644 --- a/include/users.h +++ b/include/users.h @@ -117,9 +117,6 @@ public: // XXX: exposing a tiny bit too much */ const std::string &GetIdent() const; - - - /** Updates the realname of the user record. */ void SetRealname(const std::string &realname); @@ -133,5 +130,11 @@ public: // XXX: exposing a tiny bit too much */ void SendMessage(const char *source, const char *fmt, ...); void SendMessage(const char *source, const std::string &msg); + + /** Check if the user should become identified because + * their svid matches the one stored in their nickcore + * @param svid Services id + */ + void CheckAuthenticationToken(const char *svid); }; -- cgit