diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-28 22:12:09 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-28 22:12:09 +0000 |
commit | ab1f8e01faf322f2da77369e5700f2e7ff817ae5 (patch) | |
tree | 88830e0943e5cda5912dc5a1eba8995615afd9ae /src/modules/mysql/db_mysql_execute.cpp | |
parent | 3f80e1cad02735f692a5a300ee3b200a21f330aa (diff) |
Made it so you can register empty nonregistered channels to make registering channels through SQL a bit more effective, fixed a some small bugs found on the testnet, added some missing modes into InspIRCd1.2 support, and updated TODO and Changes.lang
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2799 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/mysql/db_mysql_execute.cpp')
-rw-r--r-- | src/modules/mysql/db_mysql_execute.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/mysql/db_mysql_execute.cpp b/src/modules/mysql/db_mysql_execute.cpp index adeabd267..09578ab51 100644 --- a/src/modules/mysql/db_mysql_execute.cpp +++ b/src/modules/mysql/db_mysql_execute.cpp @@ -19,6 +19,7 @@ class FakeNickCore : public NickCore ~FakeNickCore() { insert_core(this); + Users.clear(); } bool IsServicesOper() const { return true; } @@ -54,6 +55,7 @@ class FakeUser : public User (*list)->prev = this; *list = this; ++usercnt; + nc = NULL; } void SetNewNick(const std::string &newnick) { this->nick = newnick; } @@ -68,7 +70,12 @@ class FakeUser : public User class SQLTimer : public Timer { public: - SQLTimer() : Timer(Me->Delay, time(NULL), true) { } + SQLTimer() : Timer(Me->Delay, time(NULL), true) + { + mysqlpp::Query query(Me->Con); + query << "TRUNCATE TABLE `anope_commands`"; + ExecuteQuery(query); + } void Tick(time_t) { |