summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-24 06:51:19 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-24 06:51:19 +0000
commit80c9c4903e3110e19cc9e98c14fc43784f99d844 (patch)
tree6d6d637eabafd6a469516c8b3694f0eee0f2520c
parent757c7ad97341ffb65daeb14826024323daf1336d (diff)
Fixed dropping nicks registered through MySQL
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2907 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--include/users.h2
-rw-r--r--src/modules/mysql/db_mysql_execute.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/users.h b/include/users.h
index 0d701f839..719957616 100644
--- a/include/users.h
+++ b/include/users.h
@@ -157,7 +157,7 @@ class CoreExport User : public Extensible
/** Login the user to a NickCore
* @param core The account the user is useing
*/
- void Login(NickCore *core);
+ virtual void Login(NickCore *core);
/** Logout the user
*/
diff --git a/src/modules/mysql/db_mysql_execute.cpp b/src/modules/mysql/db_mysql_execute.cpp
index 09578ab51..6a4cb1236 100644
--- a/src/modules/mysql/db_mysql_execute.cpp
+++ b/src/modules/mysql/db_mysql_execute.cpp
@@ -63,6 +63,7 @@ class FakeUser : public User
void SendMessage(const std::string &, const char *, ...) { }
void SendMessage(const std::string &, const std::string &) { }
+ void Login(NickCore *core) { nc = core; }
NickCore *Account() const { return nc; }
const bool IsIdentified() const { return nc ? true : false; }
} SQLUser;