summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2023-10-10 21:14:50 +0100
committerSadie Powell <sadie@witchery.services>2023-10-11 15:51:52 +0100
commita3241065c55fd2a69e8793b89a5d0b1a957b3fd0 (patch)
tree82f80ce2f3bbbdc1c1ef05fe611093cf0b34eab6
parentdc371aad6d059dbf7f30f6878c680532bedd4146 (diff)
Start migrating to range-based for loops.
-rw-r--r--include/anope.h8
-rw-r--r--include/modules/httpd.h18
-rw-r--r--include/modules/ldap.h4
-rw-r--r--include/modules/redis.h4
-rw-r--r--include/modules/sql.h20
-rw-r--r--include/version.cpp4
-rw-r--r--modules/commands/bs_badwords.cpp4
-rw-r--r--modules/commands/bs_botlist.cpp8
-rw-r--r--modules/commands/bs_info.cpp16
-rw-r--r--modules/commands/bs_kick.cpp29
-rw-r--r--modules/commands/bs_set.cpp6
-rw-r--r--modules/commands/cs_access.cpp35
-rw-r--r--modules/commands/cs_akick.cpp17
-rw-r--r--modules/commands/cs_clone.cpp10
-rw-r--r--modules/commands/cs_enforce.cpp37
-rw-r--r--modules/commands/cs_entrymsg.cpp8
-rw-r--r--modules/commands/cs_flags.cpp36
-rw-r--r--modules/commands/cs_info.cpp4
-rw-r--r--modules/commands/cs_list.cpp12
-rw-r--r--modules/commands/cs_log.cpp24
-rw-r--r--modules/commands/cs_mode.cpp87
-rw-r--r--modules/commands/cs_seen.cpp19
-rw-r--r--modules/commands/cs_set.cpp18
-rw-r--r--modules/commands/cs_set_misc.cpp7
-rw-r--r--modules/commands/cs_status.cpp6
-rw-r--r--modules/commands/cs_suspend.cpp7
-rw-r--r--modules/commands/cs_sync.cpp4
-rw-r--r--modules/commands/cs_unban.cpp12
-rw-r--r--modules/commands/cs_updown.cpp3
-rw-r--r--modules/commands/cs_xop.cpp35
-rw-r--r--modules/commands/help.cpp18
-rw-r--r--modules/commands/hs_del.cpp4
-rw-r--r--modules/commands/hs_group.cpp3
-rw-r--r--modules/commands/hs_list.cpp8
-rw-r--r--modules/commands/hs_request.cpp23
-rw-r--r--modules/commands/hs_set.cpp3
-rw-r--r--modules/commands/ms_ignore.cpp8
-rw-r--r--modules/commands/ms_list.cpp4
-rw-r--r--modules/commands/ms_sendall.cpp4
-rw-r--r--modules/commands/ms_staff.cpp4
-rw-r--r--modules/commands/ns_ajoin.cpp11
-rw-r--r--modules/commands/ns_alist.cpp11
-rw-r--r--modules/commands/ns_cert.cpp8
-rw-r--r--modules/commands/ns_getemail.cpp4
-rw-r--r--modules/commands/ns_group.cpp14
-rw-r--r--modules/commands/ns_info.cpp4
-rw-r--r--modules/commands/ns_list.cpp12
-rw-r--r--modules/commands/ns_recover.cpp8
-rw-r--r--modules/commands/ns_register.cpp4
-rw-r--r--modules/commands/ns_set.cpp37
-rw-r--r--modules/commands/ns_set_misc.cpp7
-rw-r--r--modules/commands/ns_suspend.cpp4
-rw-r--r--modules/commands/os_akill.cpp8
-rw-r--r--modules/commands/os_chankill.cpp4
-rw-r--r--modules/commands/os_config.cpp20
-rw-r--r--modules/commands/os_defcon.cpp21
-rw-r--r--modules/commands/os_dns.cpp103
-rw-r--r--modules/commands/os_forbid.cpp35
-rw-r--r--modules/commands/os_ignore.cpp4
-rw-r--r--modules/commands/os_info.cpp7
-rw-r--r--modules/commands/os_list.cpp60
-rw-r--r--modules/commands/os_logsearch.cpp4
-rw-r--r--modules/commands/os_mode.cpp9
-rw-r--r--modules/commands/os_modinfo.cpp16
-rw-r--r--modules/commands/os_news.cpp18
-rw-r--r--modules/commands/os_noop.cpp4
-rw-r--r--modules/commands/os_oper.cpp38
-rw-r--r--modules/commands/os_session.cpp21
-rw-r--r--modules/commands/os_stats.cpp10
-rw-r--r--modules/commands/os_sxline.cpp31
-rw-r--r--modules/cs_statusupdate.cpp20
-rw-r--r--modules/database/db_flatfile.cpp59
-rw-r--r--modules/database/db_old.cpp26
-rw-r--r--modules/database/db_redis.cpp53
-rw-r--r--modules/database/db_sql.cpp22
-rw-r--r--modules/database/db_sql_live.cpp12
-rw-r--r--modules/encryption/enc_bcrypt.cpp4
-rw-r--r--modules/encryption/enc_sha256.cpp4
-rw-r--r--modules/extra/m_ldap.cpp14
-rw-r--r--modules/extra/m_ldap_oper.cpp4
-rw-r--r--modules/extra/m_mysql.cpp56
-rw-r--r--modules/extra/m_regex_pcre.cpp9
-rw-r--r--modules/extra/m_regex_pcre2.cpp9
-rw-r--r--modules/extra/m_regex_posix.cpp9
-rw-r--r--modules/extra/m_regex_tre.cpp9
-rw-r--r--modules/extra/m_sql_log.cpp3
-rw-r--r--modules/extra/m_sql_oper.cpp4
-rw-r--r--modules/extra/m_sqlite.cpp47
-rw-r--r--modules/extra/stats/irc2sql/irc2sql.cpp11
-rw-r--r--modules/m_dns.cpp29
-rw-r--r--modules/m_dnsbl.cpp14
-rw-r--r--modules/m_httpd.cpp25
-rw-r--r--modules/m_proxyscan.cpp14
-rw-r--r--modules/m_redis.cpp53
-rw-r--r--modules/m_rewrite.cpp8
-rw-r--r--modules/m_sasl.cpp8
-rw-r--r--modules/m_xmlrpc.cpp8
-rw-r--r--modules/m_xmlrpc_main.cpp34
-rw-r--r--modules/ns_maxemail.cpp4
-rw-r--r--modules/protocol/bahamut.cpp10
-rw-r--r--modules/protocol/hybrid.cpp14
-rw-r--r--modules/protocol/inspircd.cpp22
-rw-r--r--modules/protocol/ngircd.cpp12
-rw-r--r--modules/protocol/plexus.cpp4
-rw-r--r--modules/protocol/ratbox.cpp6
-rw-r--r--modules/protocol/solanum.cpp7
-rw-r--r--modules/protocol/unrealircd.cpp70
-rw-r--r--modules/pseudoclients/botserv.cpp10
-rw-r--r--modules/pseudoclients/chanserv.cpp15
-rw-r--r--modules/pseudoclients/global.cpp4
-rw-r--r--modules/pseudoclients/memoserv.cpp7
-rw-r--r--modules/pseudoclients/nickserv.cpp24
-rw-r--r--modules/pseudoclients/operserv.cpp4
-rw-r--r--modules/webcpanel/pages/chanserv/drop.cpp3
-rw-r--r--modules/webcpanel/pages/chanserv/modes.cpp9
-rw-r--r--modules/webcpanel/pages/chanserv/utils.cpp4
-rw-r--r--modules/webcpanel/pages/memoserv/memos.cpp4
-rw-r--r--modules/webcpanel/pages/nickserv/access.cpp4
-rw-r--r--modules/webcpanel/pages/nickserv/alist.cpp4
-rw-r--r--modules/webcpanel/template_fileserver.cpp18
-rw-r--r--modules/webcpanel/webcpanel.h14
-rw-r--r--src/access.cpp33
-rw-r--r--src/base.cpp4
-rw-r--r--src/bots.cpp4
-rw-r--r--src/channels.cpp45
-rw-r--r--src/command.cpp9
-rw-r--r--src/config.cpp97
-rw-r--r--src/extensible.cpp5
-rw-r--r--src/init.cpp26
-rw-r--r--src/logger.cpp46
-rw-r--r--src/mail.cpp16
-rw-r--r--src/memos.cpp6
-rw-r--r--src/messages.cpp14
-rw-r--r--src/misc.cpp53
-rw-r--r--src/modes.cpp45
-rw-r--r--src/module.cpp4
-rw-r--r--src/modulemanager.cpp24
-rw-r--r--src/nickcore.cpp26
-rw-r--r--src/opertype.cpp48
-rw-r--r--src/protocol.cpp10
-rw-r--r--