mirror of
https://github.com/anope/anope.git
synced 2026-07-06 12:13:14 +02:00
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
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user