summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-04-23 05:08:26 -0400
committerAdam <Adam@anope.org>2012-04-23 05:08:26 -0400
commit573e49a7ead331219eb6f0d3ca9cf83e793a5c9c (patch)
treee145e04fa3d041cf92ce46da4ac790b63231059c /modules
parent63c639e108a00d7dbb0d7ac9891684fc83a3b207 (diff)
Reworked live SQL support yet again
Diffstat (limited to 'modules')
-rw-r--r--modules/commands/bs_badwords.cpp8
-rw-r--r--modules/commands/bs_bot.cpp13
-rw-r--r--modules/commands/bs_botlist.cpp2
-rw-r--r--modules/commands/bs_info.cpp10
-rw-r--r--modules/commands/bs_kick.cpp4
-rw-r--r--modules/commands/cs_access.cpp24
-rw-r--r--modules/commands/cs_akick.cpp17
-rw-r--r--modules/commands/cs_clone.cpp11
-rw-r--r--modules/commands/cs_drop.cpp2
-rw-r--r--modules/commands/cs_enforce.cpp14
-rw-r--r--modules/commands/cs_entrymsg.cpp25
-rw-r--r--modules/commands/cs_fantasy_stats.cpp5
-rw-r--r--modules/commands/cs_flags.cpp8
-rw-r--r--modules/commands/cs_info.cpp6
-rw-r--r--modules/commands/cs_list.cpp4
-rw-r--r--modules/commands/cs_log.cpp67
-rw-r--r--modules/commands/cs_mode.cpp16
-rw-r--r--modules/commands/cs_modes.cpp30
-rw-r--r--modules/commands/cs_register.cpp11
-rw-r--r--modules/commands/cs_saset.cpp4
-rw-r--r--modules/commands/cs_seen.cpp22
-rw-r--r--modules/commands/cs_set.cpp4
-rw-r--r--modules/commands/cs_set_founder.cpp5
-rw-r--r--modules/commands/cs_set_misc.cpp30
-rw-r--r--modules/commands/cs_set_successor.cpp2
-rw-r--r--modules/commands/cs_suspend.cpp34
-rw-r--r--modules/commands/cs_updown.cpp4
-rw-r--r--modules/commands/cs_xop.cpp20
-rw-r--r--modules/commands/help.cpp10
-rw-r--r--modules/commands/hs_del.cpp4
-rw-r--r--modules/commands/hs_group.cpp9
-rw-r--r--modules/commands/hs_list.cpp4
-rw-r--r--modules/commands/hs_off.cpp2
-rw-r--r--modules/commands/hs_on.cpp2
-rw-r--r--modules/commands/hs_request.cpp33
-rw-r--r--modules/commands/hs_set.cpp9
-rw-r--r--modules/commands/ms_cancel.cpp17
-rw-r--r--modules/commands/ms_check.cpp14
-rw-r--r--modules/commands/ms_del.cpp33
-rw-r--r--modules/commands/ms_info.cpp43
-rw-r--r--modules/commands/ms_list.cpp21
-rw-r--r--modules/commands/ms_read.cpp31
-rw-r--r--modules/commands/ms_rsend.cpp4
-rw-r--r--modules/commands/ms_sendall.cpp6
-rw-r--r--modules/commands/ms_set.cpp35
-rw-r--r--modules/commands/ms_staff.cpp4
-rw-r--r--modules/commands/ns_access.cpp3
-rw-r--r--modules/commands/ns_ajoin.cpp35
-rw-r--r--modules/commands/ns_alist.cpp4
-rw-r--r--modules/commands/ns_cert.cpp16
-rw-r--r--modules/commands/ns_drop.cpp2
-rw-r--r--modules/commands/ns_getemail.cpp4
-rw-r--r--modules/commands/ns_getpass.cpp2
-rw-r--r--modules/commands/ns_ghost.cpp2
-rw-r--r--modules/commands/ns_group.cpp82
-rw-r--r--modules/commands/ns_info.cpp2
-rw-r--r--modules/commands/ns_list.cpp4
-rw-r--r--modules/commands/ns_register.cpp39
-rw-r--r--modules/commands/ns_resetpass.cpp18
-rw-r--r--modules/commands/ns_saset.cpp6
-rw-r--r--modules/commands/ns_sendpass.cpp6
-rw-r--r--modules/commands/ns_set.cpp4
-rw-r--r--modules/commands/ns_set_autoop.cpp2
-rw-r--r--modules/commands/ns_set_display.cpp4
-rw-r--r--modules/commands/ns_set_email.cpp17
-rw-r--r--modules/commands/ns_set_greet.cpp2
-rw-r--r--modules/commands/ns_set_hide.cpp2
-rw-r--r--modules/commands/ns_set_kill.cpp2
-rw-r--r--modules/commands/ns_set_language.cpp2
-rw-r--r--modules/commands/ns_set_message.cpp2
-rw-r--r--modules/commands/ns_set_misc.cpp32
-rw-r--r--modules/commands/ns_set_private.cpp2
-rw-r--r--modules/commands/ns_set_secure.cpp2
-rw-r--r--modules/commands/ns_status.cpp2
-rw-r--r--modules/commands/ns_suspend.cpp45
-rw-r--r--modules/commands/os_akill.cpp8
-rw-r--r--modules/commands/os_forbid.cpp8
-rw-r--r--modules/commands/os_forbid.h24
-rw-r--r--modules/commands/os_ignore.cpp6
-rw-r--r--modules/commands/os_ignore.h28
-rw-r--r--modules/commands/os_modinfo.cpp4
-rw-r--r--modules/commands/os_news.cpp12
-rw-r--r--modules/commands/os_news.h24
-rw-r--r--modules/commands/os_oper.cpp34
-rw-r--r--modules/commands/os_session.cpp8
-rw-r--r--modules/commands/os_session.h24
-rw-r--r--modules/commands/os_stats.cpp9
-rw-r--r--modules/commands/os_sxline.cpp12
-rw-r--r--modules/database/db_flatfile.cpp12
-rw-r--r--modules/database/db_old.cpp4
-rw-r--r--modules/database/db_plain.cpp101
-rw-r--r--modules/database/db_sql.cpp50
-rw-r--r--modules/database/db_sql_live.cpp311
-rw-r--r--modules/database/db_sql_live_read.cpp179
-rw-r--r--modules/database/db_sql_live_write.cpp440
-rw-r--r--modules/encryption/enc_md5.cpp4
-rw-r--r--modules/encryption/enc_none.cpp4
-rw-r--r--modules/encryption/enc_old.cpp4
-rw-r--r--modules/encryption/enc_sha1.cpp4
-rw-r--r--modules/encryption/enc_sha256.cpp4
-rw-r--r--modules/extra/m_dnsbl.cpp4
-rw-r--r--modules/extra/m_ldap_authentication.cpp9
-rw-r--r--modules/extra/m_ldap_oper.cpp22
-rw-r--r--modules/extra/m_mysql.cpp81
-rw-r--r--modules/extra/m_proxyscan.cpp4
-rw-r--r--modules/extra/m_sqlite.cpp82
-rw-r--r--modules/extra/m_xmlrpc_main.cpp14
-rw-r--r--modules/extra/ns_maxemail.cpp4
-rw-r--r--modules/extra/sql.h7
-rw-r--r--modules/protocol/bahamut.cpp15
-rw-r--r--modules/protocol/inspircd-ts6.h16
-rw-r--r--modules/protocol/inspircd11.cpp18
-rw-r--r--modules/protocol/inspircd12.cpp6
-rw-r--r--modules/protocol/inspircd20.cpp6
-rw-r--r--modules/protocol/plexus.cpp25
-rw-r--r--modules/protocol/ratbox.cpp21
-rw-r--r--modules/protocol/unreal.cpp25
-rw-r--r--modules/pseudoclients/botserv.cpp6
-rw-r--r--modules/pseudoclients/chanserv.cpp24
-rw-r--r--modules/pseudoclients/global.cpp12
-rw-r--r--modules/pseudoclients/global.h2
-rw-r--r--modules/pseudoclients/hostserv.cpp6
-rw-r--r--modules/pseudoclients/memoserv.cpp46
-rw-r--r--modules/pseudoclients/nickserv.cpp37
-rw-r--r--modules/pseudoclients/operserv.cpp31
125 files changed, 1392 insertions, 1477 deletions
diff --git a/modules/commands/bs_badwords.cpp b/modules/commands/bs_badwords.cpp
index bb7a073f1..eaf00d347 100644
--- a/modules/commands/bs_badwords.cpp
+++ b/modules/commands/bs_badwords.cpp
@@ -81,7 +81,7 @@ class CommandBSBadwords : public Command
if (!Number || Number > ci->GetBadWordCount())
return;
- BadWord *bw = ci->GetBadWord(Number - 1);
+ const BadWord *bw = ci->GetBadWord(Number - 1);
ListFormatter::ListEntry entry;
entry["Number"] = stringify(Number);
entry["Word"] = bw->word;
@@ -96,7 +96,7 @@ class CommandBSBadwords : public Command
{
for (unsigned i = 0, end = ci->GetBadWordCount(); i < end; ++i)
{
- BadWord *bw = ci->GetBadWord(i);
+ const BadWord *bw = ci->GetBadWord(i);
if (!word.empty() && !Anope::Match(bw->word, word))
continue;
@@ -154,7 +154,7 @@ class CommandBSBadwords : public Command
for (unsigned i = 0, end = ci->GetBadWordCount(); i < end; ++i)
{
- BadWord *bw = ci->GetBadWord(i);
+ const BadWord *bw = ci->GetBadWord(i);
if (!bw->word.empty() && ((Config->BSCaseSensitive && realword.equals_cs(bw->word)) || (!Config->BSCaseSensitive && realword.equals_ci(bw->word))))
{
@@ -183,7 +183,7 @@ class CommandBSBadwords : public Command
else
{
unsigned i, end;
- BadWord *badword;
+ const BadWord *badword;
for (i = 0, end = ci->GetBadWordCount(); i < end; ++i)
{
diff --git a/modules/commands/bs_bot.cpp b/modules/commands/bs_bot.cpp
index 526cd922c..b1f22909f 100644
--- a/modules/commands/bs_bot.cpp
+++ b/modules/commands/bs_bot.cpp
@@ -22,7 +22,6 @@ class CommandBSBot : public Command
const Anope::string &user = params[2];
const Anope::string &host = params[3];
const Anope::string &real = params[4];
- BotInfo *bi;
if (findbot(nic