diff options
author | Adam <Adam@anope.org> | 2010-11-15 23:07:13 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-12 19:33:59 -0500 |
commit | a85112172d842aa74aa5531788d383328d153e74 (patch) | |
tree | 7c2b02feb21f64b0b039992b92b86a09920a1eb5 /modules/extra/db_mysql.cpp | |
parent | 5f18cb018dee9ff71efbfdd247a8dc4ca472b16b (diff) |
Removed and deprecated /cs set mlock, removed /cs clear, removed /os clearmodes, removed /cs akick (un)stick, added /cs clearusers
Diffstat (limited to 'modules/extra/db_mysql.cpp')
-rw-r--r-- | modules/extra/db_mysql.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/extra/db_mysql.cpp b/modules/extra/db_mysql.cpp index 6f18077f8..147a35229 100644 --- a/modules/extra/db_mysql.cpp +++ b/modules/extra/db_mysql.cpp @@ -752,21 +752,16 @@ class DBMySQL : public Module NickCore *nc = NULL; spacesepstream sep(r.Get(i, "flags")); Anope::string flag, mask; - bool stuck = false; while (sep.GetToken(flag)) { if (flag.equals_cs("ISNICK")) nc = findcore(r.Get(i, "mask")); - else if (flag.equals_cs("STUCK")) - stuck = true; AutoKick *ak; if (nc) ak = ci->AddAkick(r.Get(i, "creator"), nc, r.Get(i, "reason"), atol(r.Get(i, "created").c_str()), atol(r.Get(i, "last_used").c_str())); else ak = ci->AddAkick(r.Get(i, "creator"), r.Get(i, "mask"), r.Get(i, "reason"), atol(r.Get(i, "created").c_str()), atol(r.Get(i, "last_used").c_str())); - if (stuck) - ak->SetFlag(AK_STUCK); if (nc) ak->SetFlag(AK_ISNICK); } @@ -1268,7 +1263,7 @@ class DBMySQL : public Module void OnAkickAdd(ChannelInfo *ci, AutoKick *ak) { this->RunQuery("INSERT INTO `anope_cs_akick` (channel, flags, mask, reason, creator, created, last_used) VALUES('" + this->Escape(ci->name) + "', '" + - (ak->HasFlag(AK_ISNICK) ? "ISNICK " : "") + (ak->HasFlag(AK_STUCK) ? "STUCK " : "") + "', '" + + (ak->HasFlag(AK_ISNICK) ? "ISNICK" : "") + "', '" + this->Escape(ak->HasFlag(AK_ISNICK) ? ak->nc->display : ak->mask) + "', '" + this->Escape(ak->reason) + "', '" + this->Escape(ak->creator) + "', " + stringify(ak->addtime) + ", " + stringify(ak->last_used) + ")"); } |