From e0583918834a3f8683e430adf3923ea89d2a449a Mon Sep 17 00:00:00 2001 From: "rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Mon, 2 May 2005 19:02:12 +0000 Subject: BUILD : 1.7.8 (753) BUGS : N/a NOTES : Merged anope-dev with trunk git-svn-id: svn://svn.anope.org/anope/trunk@753 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@516 5417fbe8-f217-4b02-8779-1006273d7864 --- .BANNER | 7 +- Changes | 39 +- Changes.conf | 108 + Config | 107 +- Makefile.in | 13 +- Makefile.win32 | 103 +- data/example.conf | 126 +- docs/EVENTS | 153 +- docs/FAQ | 20 + docs/WIN32.txt | 106 +- include/bahamut.h | 65 - include/commands.h | 1 - include/dreamforge.h | 44 - include/encrypt.h | 4 +- include/events.h | 7 +- include/extern.h | 345 +- include/hybrid.h | 51 - include/module.h | 9 + include/modules.h | 40 +- include/plexus.h | 60 - include/ptlink.h | 84 - include/rageircd.h | 48 - include/ratbox.h | 52 - include/services.h | 154 +- include/shadowircd.h | 77 - include/slist.h | 13 - include/solidircd.h | 71 - include/ultimate2.h | 54 - include/ultimate3.h | 58 - include/unreal31.h | 57 - include/unreal32.h | 85 - include/viagra.h | 67 - install.vbs | 273 ++ lang/cat.l | 380 ++- lang/de.l | 433 ++- lang/en_us.l | 392 ++- lang/es.l | 390 ++- lang/fr.l | 399 ++- lang/gr.l | 388 ++- lang/hun.l | 389 ++- lang/it.l | 387 ++- lang/nl.l | 394 ++- lang/pl.l | 400 ++- lang/pt.l | 379 ++- lang/ru.l | 385 ++- lang/tr.l | 378 +- makefile.inc.win32 | 83 +- src/Makefile | 36 +- src/bahamut.c | 1722 ---------- src/bin/am | 8 + src/botserv.c | 1575 +-------- src/channels.c | 65 +- src/chanserv.c | 4182 +---------------------- src/commands.c | 18 +- src/config.c | 402 ++- src/core/Makefile | 45 + src/core/Makefile.sub | 30 + src/core/Makefile.win32 | 25 + src/core/bs_act.c | 93 + src/core/bs_assign.c | 102 + src/core/bs_badwords.c | 290 ++ src/core/bs_bot.c | 372 ++ src/core/bs_botlist.c | 108 + src/core/bs_fantasy.c | 80 + src/core/bs_fantasy_kick.c | 87 + src/core/bs_fantasy_kickban.c | 90 + src/core/bs_fantasy_owner.c | 87 + src/core/bs_fantasy_seen.c | 136 + src/core/bs_fantasy_unban.c | 78 + src/core/bs_help.c | 67 + src/core/bs_info.c | 282 ++ src/core/bs_kick.c | 377 ++ src/core/bs_say.c | 97 + src/core/bs_set.c | 207 ++ src/core/bs_unassign.c | 88 + src/core/configure | 35 + src/core/cs_access.c | 507 +++ src/core/cs_akick.c | 584 ++++ src/core/cs_ban.c | 227 ++ src/core/cs_clear.c | 375 ++ src/core/cs_drop.c | 128 + src/core/cs_forbid.c | 132 + src/core/cs_getkey.c | 88 + src/core/cs_getpass.c | 100 + src/core/cs_help.c | 84 + src/core/cs_identify.c | 118 + src/core/cs_info.c | 249 ++ src/core/cs_invite.c | 88 + src/core/cs_kick.c | 152 + src/core/cs_list.c | 172 + src/core/cs_logout.c | 128 + src/core/cs_modes.c | 392 +++ src/core/cs_register.c | 199 ++ src/core/cs_sendpass.c | 123 + src/core/cs_set.c | 839 +++++ src/core/cs_status.c | 102 + src/core/cs_suspend.c | 188 + src/core/cs_topic.c | 119 + src/core/cs_xop.c | 474 +++ src/core/he_help.c | 76 + src/core/hs_del.c | 91 + src/core/hs_delall.c | 96 + src/core/hs_group.c | 121 + src/core/hs_help.c | 66 + src/core/hs_list.c | 179 + src/core/hs_off.c | 87 + src/core/hs_on.c | 102 + src/core/hs_set.c | 147 + src/core/hs_setall.c | 150 + src/core/ms_cancel.c | 105 + src/core/ms_check.c | 118 + src/core/ms_del.c | 199 ++ src/core/ms_help.c | 66 + src/core/ms_info.c | 231 ++ src/core/ms_list.c | 197 ++ src/core/ms_read.c | 201 ++ src/core/ms_rsend.c | 119 + src/core/ms_send.c | 73 + src/core/ms_sendall.c | 95 + src/core/ms_set.c | 265 ++ src/core/ms_staff.c | 92 + src/core/ns_access.c | 189 + src/core/ns_alist.c | 186 + src/core/ns_drop.c | 156 + src/core/ns_forbid.c | 151 + src/core/ns_getemail.c | 102 + src/core/ns_getpass.c | 111 + src/core/ns_ghost.c | 122 + src/core/ns_group.c | 326 ++ src/core/ns_help.c | 77 + src/core/ns_identify.c | 160 + src/core/ns_info.c | 272 ++ src/core/ns_list.c | 230 ++ src/core/ns_logout.c | 125 + src/core/ns_recover.c | 111 + src/core/ns_register.c | 486 +++ src/core/ns_release.c | 107 + src/core/ns_sendpass.c | 120 + src/core/ns_set.c | 519 +++ src/core/ns_status.c | 94 + src/core/ns_suspend.c | 193 ++ src/core/ns_update.c | 90 + src/core/os_admin.c | 250 ++ src/core/os_akill.c | 378 ++ src/core/os_chankill.c | 130 + src/core/os_chanlist.c | 116 + src/core/os_clearmodes.c | 356 ++ src/core/os_defcon.c | 167 + src/core/os_global.c | 81 + src/core/os_help.c | 66 + src/core/os_ignore.c | 200 ++ src/core/os_jupe.c | 88 + src/core/os_kick.c | 100 + src/core/os_killclones.c | 129 + src/core/os_logonnews.c | 65 + src/core/os_mode.c | 101 + src/core/os_modinfo.c | 149 + src/core/os_modlist.c | 182 + src/core/os_modload.c | 96 + src/core/os_modunload.c | 95 + src/core/os_noop.c | 106 + src/core/os_oline.c | 111 + src/core/os_oper.c | 244 ++ src/core/os_opernews.c | 65 + src/core/os_quit.c | 82 + src/core/os_randomnews.c | 65 + src/core/os_raw.c | 77 + src/core/os_reload.c | 84 + src/core/os_restart.c | 89 + src/core/os_session.c | 68 + src/core/os_set.c | 262 ++ src/core/os_sgline.c | 355 ++ src/core/os_shutdown.c | 83 + src/core/os_sqline.c | 355 ++ src/core/os_staff.c | 158 + src/core/os_stats.c | 400 +++ src/core/os_svsnick.c | 126 + src/core/os_szline.c | 350 ++ src/core/os_umode.c | 116 + src/core/os_update.c | 74 + src/core/os_userlist.c | 121 + src/datafiles.c | 4 +- src/dreamforge.c | 1421 -------- src/encrypt.c | 4 +- src/events.c | 48 +- src/helpserv.c | 33 +- src/hostserv.c | 523 +-- src/hybrid.c | 1564 --------- src/init.c | 22 +- src/ircd.c | 1114 ++++++ src/main.c | 18 +- src/makefile.win32 | 22 +- src/memoserv.c | 1164 +------ src/messages.c | 7 +- src/misc.c | 2 +- src/modules.c | 431 ++- src/modules/catserv/Makefile | 9 - src/modules/catserv/README | 4 - src/modules/catserv/catserv_extern.h | 11 - src/modules/catserv/catserv_messages.c | 14 - src/modules/catserv/catserv_messages.h | 10 - src/modules/catserv/ircd_catserv.c | 112 - src/modules/catserv/makefile.win32 | 4 - src/modules/catserv/meow.c | 9 - src/modules/catserv/meow.h | 9 - src/modules/catserv/purr.c | 8 - src/modules/catserv/purr.h | 9 - src/modules/configure | 30 +- src/modules/cs_appendtopic.c | 188 + src/modules/cs_enforce.c | 334 ++ src/modules/cs_tban.c | 171 + src/modules/demos/catserv/Makefile | 9 + src/modules/demos/catserv/README | 4 + src/modules/demos/catserv/catserv_extern.h | 11 + src/modules/demos/catserv/catserv_messages.c | 14 + src/modules/demos/catserv/catserv_messages.h | 10 + src/modules/demos/catserv/ircd_catserv.c | 112 + src/modules/demos/catserv/makefile.win32 | 4 + src/modules/demos/catserv/meow.c | 9 + src/modules/demos/catserv/meow.h | 9 + src/modules/demos/catserv/purr.c | 8 + src/modules/demos/catserv/purr.h | 9 + src/modules/demos/events.c | 82 + src/modules/demos/hs_conf.c | 74 + src/modules/demos/hs_moo.c | 119 + src/modules/events.c | 53 - src/modules/hs_moo.c | 119 - src/modules/makefile.inc.win32 | 4 +- src/modules/makefile.win32 | 1 - src/modules/module.h | 10 - src/modules/ns_maxemail.c | 190 ++ src/modules/ns_noop.c | 483 +++ src/modules/os_info.c | 639 ++++ src/news.c | 2 +- src/nickserv.c | 2599 +------------- src/operserv.c | 4727 +++----------------------- src/plexus.c | 1660 --------- src/protocol/Makefile | 45 + src/protocol/Makefile.sub | 30 + src/protocol/Makefile.win32 | 26 + src/protocol/bahamut.c | 1659 +++++++++ src/protocol/bahamut.h | 131 + src/protocol/configure | 35 + src/protocol/dreamforge.c | 1363 ++++++++ src/protocol/dreamforge.h | 111 + src/protocol/hybrid.c | 1504 ++++++++ src/protocol/hybrid.h | 115 + src/protocol/inspircd.c | 1500 ++++++++ src/protocol/inspircd.h | 124 + src/protocol/plexus.c | 1602 +++++++++ src/protocol/plexus.h | 126 + src/protocol/ptlink.c | 1691 +++++++++ src/protocol/ptlink.h | 149 + src/protocol/rageircd.c | 1655 +++++++++ src/protocol/rageircd.h | 113 + src/protocol/ratbox.c | 1808 ++++++++++ src/protocol/ratbox.h | 119 + src/protocol/shadowircd.c | 1799 ++++++++++ src/protocol/shadowircd.h | 142 + src/protocol/solidircd.c | 1687 +++++++++ src/protocol/solidircd.h | 137 + src/protocol/ultimate2.c | 1714 ++++++++++ src/protocol/ultimate2.h | 120 + src/protocol/ultimate3.c | 1797 ++++++++++ src/protocol/ultimate3.h | 125 + src/protocol/unreal31.c | 1571 +++++++++ src/protocol/unreal31.h | 124 + src/protocol/unreal32.c | 2202 ++++++++++++ src/protocol/unreal32.h | 153 + src/protocol/viagra.c | 1696 +++++++++ src/protocol/viagra.h | 132 + src/ptlink.c | 1748 ---------- src/rageircd.c | 1715 ---------- src/ratbox.c | 1868 ---------- src/servers.c | 4 +- src/shadowircd.c | 1856 ---------- src/solidircd.c | 1749 ---------- src/tools/Makefile.win32 | 3 +- src/tools/db-merger.c | 4 +- src/tools/epona2anope.c | 4 +- src/ultimate2.c | 1774 ---------- src/ultimate3.c | 1856 ---------- src/unreal31.c | 1635 --------- src/unreal32.c | 2262 ------------ src/users.c | 8 +- src/viagra.c | 1768 ---------- version.log | 331 +- 287 files changed, 58403 insertions(+), 42720 deletions(-) delete mode 100644 include/bahamut.h delete mode 100644 include/dreamforge.h delete mode 100644 include/hybrid.h create mode 100644 include/module.h delete mode 100644 include/plexus.h delete mode 100644 include/ptlink.h delete mode 100644 include/rageircd.h delete mode 100644 include/ratbox.h delete mode 100644 include/shadowircd.h delete mode 100644 include/solidircd.h delete mode 100644 include/ultimate2.h delete mode 100644 include/ultimate3.h delete mode 100644 include/unreal31.h delete mode 100644 include/unreal32.h delete mode 100644 include/viagra.h create mode 100644 install.vbs delete mode 100644 src/bahamut.c create mode 100644 src/core/Makefile create mode 100644 src/core/Makefile.sub create mode 100644 src/core/Makefile.win32 create mode 100644 src/core/bs_act.c create mode 100644 src/core/bs_assign.c create mode 100644 src/core/bs_badwords.c create mode 100644 src/core/bs_bot.c create mode 100644 src/core/bs_botlist.c create mode 100644 src/core/bs_fantasy.c create mode 100644 src/core/bs_fantasy_kick.c create mode 100644 src/core/bs_fantasy_kickban.c create mode 100644 src/core/bs_fantasy_owner.c create mode 100644 src/core/bs_fantasy_seen.c create mode 100644 src/core/bs_fantasy_unban.c create mode 100644 src/core/bs_help.c create mode 100644 src/core/bs_info.c create mode 100644 src/core/bs_kick.c create mode 100644 src/core/bs_say.c create mode 100644 src/core/bs_set.c create mode 100644 src/core/bs_unassign.c create mode 100755 src/core/configure create mode 100644 src/core/cs_access.c create mode 100644 src/core/cs_akick.c create mode 100644 src/core/cs_ban.c create mode 100644 src/core/cs_clear.c create mode 100644 src/core/cs_drop.c create mode 100644 src/core/cs_forbid.c create mode 100644 src/core/cs_getkey.c create mode 100644 src/core/cs_getpass.c create mode 100644 src/core/cs_help.c create mode 100644 src/core/cs_identify.c create mode 100644 src/core/cs_info.c create mode 100644 src/core/cs_invite.c create mode 100644 src/core/cs_kick.c create mode 100644 src/core/cs_list.c create mode 100644 src/core/cs_logout.c create mode 100644 src/core/cs_modes.c create mode 100644 src/core/cs_register.c create mode 100644 src/core/cs_sendpass.c create mode 100644 src/core/cs_set.c create mode 100644 src/core/cs_status.c create mode 100644 src/core/cs_suspend.c create mode 100644 src/core/cs_topic.c create mode 100644 src/core/cs_xop.c create mode 100644 src/core/he_help.c create mode 100644 src/core/hs_del.c create mode 100644 src/core/hs_delall.c create mode 100644 src/core/hs_group.c create mode 100644 src/core/hs_help.c create mode 100644 src/core/hs_list.c create mode 100644 src/core/hs_off.c create mode 100644 src/core/hs_on.c create mode 100644 src/core/hs_set.c create mode 100644 src/core/hs_setall.c create mode 100644 src/core/ms_cancel.c create mode 100644 src/core/ms_check.c create mode 100644 src/core/ms_del.c create mode 100644 src/core/ms_help.c create mode 100644 src/core/ms_info.c create mode 100644 src/core/ms_list.c create mode 100644 src/core/ms_read.c create mode 100644 src/core/ms_rsend.c create mode 100644 src/core/ms_send.c create mode 100644 src/core/ms_sendall.c create mode 100644 src/core/ms_set.c create mode 100644 src/core/ms_staff.c create mode 100644 src/core/ns_access.c create mode 100644 src/core/ns_alist.c create mode 100644 src/core/ns_drop.c create mode 100644 src/core/ns_forbid.c create mode 100644 src/core/ns_getemail.c create mode 100644 src/core/ns_getpass.c create mode 100644 src/core/ns_ghost.c create mode 100644 src/core/ns_group.c create mode 100644 src/core/ns_help.c create mode 100644 src/core/ns_identify.c create mode 100644 src/core/ns_info.c create mode 100644 src/core/ns_list.c create mode 100644 src/core/ns_logout.c create mode 100644 src/core/ns_recover.c create mode 100644 src/core/ns_register.c create mode 100644 src/core/ns_release.c create mode 100644 src/core/ns_sendpass.c create mode 100644 src/core/ns_set.c create mode 100644 src/core/ns_status.c create mode 100644 src/core/ns_suspend.c create mode 100644 src/core/ns_update.c create mode 100644 src/core/os_admin.c create mode 100644 src/core/os_akill.c create mode 100644 src/core/os_chankill.c create mode 100644 src/core/os_chanlist.c create mode 100644 src/core/os_clearmodes.c create mode 100644 src/core/os_defcon.c create mode 100644 src/core/os_global.c create mode 100644 src/core/os_help.c create mode 100644 src/core/os_ignore.c create mode 100644 src/core/os_jupe.c create mode 100644 src/core/os_kick.c create mode 100644 src/core/os_killclones.c create mode 100644 src/core/os_logonnews.c create mode 100644 src/core/os_mode.c create mode 100644 src/core/os_modinfo.c create mode 100644 src/core/os_modlist.c create mode 100644 src/core/os_modload.c create mode 100644 src/core/os_modunload.c create mode 100644 src/core/os_noop.c create mode 100644 src/core/os_oline.c create mode 100644 src/core/os_oper.c create mode 100644 src/core/os_opernews.c create mode 100644 src/core/os_quit.c create mode 100644 src/core/os_randomnews.c create mode 100644 src/core/os_raw.c create mode 100644 src/core/os_reload.c create mode 100644 src/core/os_restart.c create mode 100644 src/core/os_session.c create mode 100644 src/core/os_set.c create mode 100644 src/core/os_sgline.c create mode 100644 src/core/os_shutdown.c create mode 100644 src/core/os_sqline.c create mode 100644 src/core/os_staff.c create mode 100644 src/core/os_stats.c create mode 100644 src/core/os_svsnick.c create mode 100644 src/core/os_szline.c create mode 100644 src/core/os_umode.c create mode 100644 src/core/os_update.c create mode 100644 src/core/os_userlist.c delete mode 100644 src/dreamforge.c delete mode 100644 src/hybrid.c create mode 100644 src/ircd.c delete mode 100644 src/modules/catserv/Makefile delete mode 100644 src/modules/catserv/README delete mode 100644 src/modules/catserv/catserv_extern.h delete mode 100644 src/modules/catserv/catserv_messages.c delete mode 100644 src/modules/catserv/catserv_messages.h delete mode 100644 src/modules/catserv/ircd_catserv.c delete mode 100644 src/modules/catserv/makefile.win32 delete mode 100644 src/modules/catserv/meow.c delete mode 100644 src/modules/catserv/meow.h delete mode 100644 src/modules/catserv/purr.c delete mode 100644 src/modules/catserv/purr.h create mode 100644 src/modules/cs_appendtopic.c create mode 100644 src/modules/cs_enforce.c create mode 100644 src/modules/cs_tban.c create mode 100644 src/modules/demos/catserv/Makefile create mode 100644 src/modules/demos/catserv/README create mode 100644 src/modules/demos/catserv/catserv_extern.h create mode 100644 src/modules/demos/catserv/catserv_messages.c create mode 100644 src/modules/demos/catserv/catserv_messages.h create mode 100644 src/modules/demos/catserv/ircd_catserv.c create mode 100644 src/modules/demos/catserv/makefile.win32 create mode 100644 src/modules/demos/catserv/meow.c create mode 100644 src/modules/demos/catserv/meow.h create mode 100644 src/modules/demos/catserv/purr.c create mode 100644 src/modules/demos/catserv/purr.h create mode 100644 src/modules/demos/events.c create mode 100644 src/modules/demos/hs_conf.c create mode 100644 src/modules/demos/hs_moo.c delete mode 100644 src/modules/events.c delete mode 100644 src/modules/hs_moo.c delete mode 100644 src/modules/module.h create mode 100644 src/modules/ns_maxemail.c create mode 100644 src/modules/ns_noop.c create mode 100644 src/modules/os_info.c delete mode 100644 src/plexus.c create mode 100644 src/protocol/Makefile create mode 100644 src/protocol/Makefile.sub create mode 100644 src/protocol/Makefile.win32 create mode 100644 src/protocol/bahamut.c create mode 100644 src/protocol/bahamut.h create mode 100755 src/protocol/configure create mode 100644 src/protocol/dreamforge.c create mode 100644 src/protocol/dreamforge.h create mode 100644 src/protocol/hybrid.c create mode 100644 src/protocol/hybrid.h create mode 100644 src/protocol/inspircd.c create mode 100644 src/protocol/inspircd.h create mode 100644 src/protocol/plexus.c create mode 100644 src/protocol/plexus.h create mode 100644 src/protocol/ptlink.c create mode 100644 src/protocol/ptlink.h create mode 100644 src/protocol/rageircd.c create mode 100644 src/protocol/rageircd.h create mode 100644 src/protocol/ratbox.c create mode 100644 src/protocol/ratbox.h create mode 100644 src/protocol/shadowircd.c create mode 100644 src/protocol/shadowircd.h create mode 100644 src/protocol/solidircd.c create mode 100644 src/protocol/solidircd.h create mode 100644 src/protocol/ultimate2.c create mode 100644 src/protocol/ultimate2.h create mode 100644 src/protocol/ultimate3.c create mode 100644 src/protocol/ultimate3.h create mode 100644 src/protocol/unreal31.c create mode 100644 src/protocol/unreal31.h create mode 100644 src/protocol/unreal32.c create mode 100644 src/protocol/unreal32.h create mode 100644 src/protocol/viagra.c create mode 100644 src/protocol/viagra.h delete mode 100644 src/ptlink.c delete mode 100644 src/rageircd.c delete mode 100644 src/ratbox.c delete mode 100644 src/shadowircd.c delete mode 100644 src/solidircd.c delete mode 100644 src/ultimate2.c delete mode 100644 src/ultimate3.c delete mode 100644 src/unreal31.c delete mode 100644 src/unreal32.c delete mode 100644 src/viagra.c diff --git a/.BANNER b/.BANNER index bd5ff5884..22fe35fa6 100644 --- a/.BANNER +++ b/.BANNER @@ -7,7 +7,6 @@ | | |_| IRC Services v1.7.9 - This program will help you to compile your Services, and ask you questions regarding the compile-time settings of it during the process. For more options type ./Config --help @@ -16,8 +15,4 @@ Anope is a set of Services for IRC networks that allows users to manage their nicks and channels in a secure and efficient way, and administrators to manage their network with powerful tools. -Do not forget to read all the documents located in "docs/", -specially the README and INSTALL files. - -For all your Anope needs please visit our portal at -http://www.anope.org/ +For all your Anope needs please visit our portal at www.anope.org diff --git a/Changes b/Changes index ac81c9d5d..e9307ba47 100644 --- a/Changes +++ b/Changes @@ -1,7 +1,20 @@ Anope Version S V N ------------------- Provided by Anope Dev. - 2005 -04/16 I Changed subversion format from bdb to fsfs. [ #00] +04/30 A Modulepack with a few useful modules which are loaded by default. [ #00] +04/30 A Modularized all BotServ fantasy commands. [ #00] +04/30 A Event EVENT_PART_CHANNEL for when users part a channel. [ #00] +04/30 A Event EVENT_JOIN_CHANNEL for when users join a channel. [ #00] +04/25 A Support for multiple lines in module language texts. [ #00] +04/25 A Multi language module support. [ #00] +04/22 A Option to make OperServ configurable oper-only or not. [ #00] +04/21 A Events now accept argc/argv making them more useful/expandable. [ #00] +04/20 A Fully modular core now in place, including dynamic help. [ #00] +04/16 A Module subfolders now check configure executed if it exists. [ #00] +04/14 A Added EVENT_BOT_CMD for !commands in a botserv fantasy channel. [ #00] +04/14 A Added EVENT_RELOAD for config reloads. [ #00] +04/13 A moduleGetConfigDirective to allow config files access to the conf.[ #00] +04/12 A IRCD Protocol Module support. [ #00] 03/25 A Added nickserv suspend/unsuspend command. [ #00] 03/25 A Added check for UID in anoperc. Stops running as root. [ #00] 03/11 A Event for database backups. [ #00] @@ -11,6 +24,21 @@ Provided by Anope Dev. - 2005 02/13 A Internal Event support, see EVENTS in the doc folder for help [ #00] 02/05 A Support for Unreal 3.2 +I channel mode. [ #00] 02/03 A Merged anope-win32 branch into the main, now Win32 ready. [ #00] +05/01 F Typo in include/extern.h with restore_unsynced_topics. [#354] +05/01 F Modes with no arguments where required no longer set with OS mode.[#316] +05/01 F Update win32 documentation and files so it works again. [ #00] +04/30 F Removed newline after BOT_SEEN_UNKNOWN in most languages. [ #00] +04/30 F Updated docs/EVENTS for change to argc/argv and new events. [ #00] +04/27 F Rob's spelling mistakes. It's language, not langauge! [ #00] +04/25 F Displaying help texts with module language system. [ #00] +04/24 F Call to sstrdup() with NULL-args if empty topic was set. [ #00] +04/24 F Event for topic changes only being sent for registered channels. [ #00] +04/24 F Buffer normalization not checking allocated memory for errors. [ #00] +04/21 F Updated example modules to use id strings as versions. [ #00] +04/21 F Renamed EVENT_BOT_CMD to EVENT_BOT_FANTASY. [ #00] +04/19 F Updated docs/FAQ. [ #00] +04/19 F Case sensitive tokens for ircd modules actaully work now. [ #00] +04/16 F Events no longer cause a segfault after being modunload-ed. [ #00] 04/14 F When setting multiple ops, SecureOps will check each user. [#342] 04/12 F Users channel modes are correctly set on join. [#342] 04/11 F Make sure nick isn't in use on nickserv collide. [#341] @@ -66,6 +94,9 @@ Provided by Anope Dev. - 2005 01/30 F Compiling modules under Mac OSX. [#285] 03/07 R Removed Proxy Detector from core. [ #00] +Provided by Brain - 2005 +04/18 A InspIRCd 1.0 Beta 3 support module. [ #00] + Provided by Trystan - 2005 04/07 F Win32 now includes SVN revision in version [#328] 03/16 F Shadowircd nick handling and vhost changing [#321] @@ -77,6 +108,10 @@ Provided by DrStein - 2005 03/17 A Improvements on Config script. [ #00] 03/17 A OS SET SQL ON shall warn about SQL disabled in services.conf [ #00] 03/15 A ChanServ will now include the channel name in SET's responses [#318] +05/01 F Fixed small typo in data/example.conf for OSInfoDBName. [ #00] +05/01 F Updated modpack ns_noop to fix a few bugs. [ #00] +04/21 F alog() in ns_group wich was storing the wrong suspended nick. [#343] +04/21 F NS SUSPEND now uses the same reason for the whole group. [#343] 04/12 F Introduction text data file was missing. [ #00] 04/07 F NickServ shall give the correct response to GLIST/ALIST [#345] 03/15 F ChanServ's do_getkey() function is now using notice_lang() [#319] @@ -91,6 +126,7 @@ Provided by Ricardo - 2005 Provided by crazytoon - 2005 04/07 A Updated German language file. [ #00] +04/30 F gcc4.0 compiler errors. [ #00] 04/04 F Installation of mydbgen. [ #00] 04/04 F SolidIRCd code did not recognize channelmodes +S and +N. [#331] @@ -485,3 +521,4 @@ Provided by Anope Dev. 2004/03/28 Forked 1.7 development stream. NOTE: FOR PREVIOUS CHANGES PLEASE REFER TO FILE docs/OLDCHANGES + diff --git a/Changes.conf b/Changes.conf index 97a27b05e..169664459 100644 --- a/Changes.conf +++ b/Changes.conf @@ -1,6 +1,103 @@ Anope Version S V N ------------------- ** ADDED CONFIGURATION DIRECTIVES ** +# IRCDModule [REQUIRED] +# The ircd protocol module should be used when connecting anope to your +# chosen IRCD. This should be one of the following options, or a file +# provided by your IRCD author. +# +# Bahamut 1.4.27 [or later] - "bahamut" +# DreamForge 4.6.7 - "dreamforge" +# Hybrid IRCd 7.0 [experimental] - "hybrid" +# InspIRCd 1.0 Beta 3 - "inspircd" +# InspIRCd module is provided by Brain +# Plexus 2.0 [or later] - "plexus" +# PTLink 6.15.0 [experimental] - "ptlink" +# RageIRCd 2.0.0 [beta-6 of later] - "rageircd" +# Ratbox 2.0.6 [or later] - "ratbox" +# ShadowIRCD 4.0x [beta 7 or later] - "shadowircd" +# Solid IRCD 3.4.x [3.4.6 or later] - "solidircd" +# UltimateIRCd 3.0.0 [or later] - "ultimate3" +# UltimateIRCd 2.8.2 [or later] - "ultimate2" +# Unreal 3.2 [beta-19 or later] - "unreal32" +# Unreal 3.1.1 [or later] - "unreal31" +# ViagraIRCd 1.3.x [or later] - "viagra" +# + +#IRCDModule "unreal32" + +# HostCoreModules [RECOMMENDED] +# These modules will be loaded as part of HostServ's core. +# It is not recommended you change these settings unless you are +# sure you understand exactly what it is you are doing. +HostCoreModules "hs_help hs_on hs_off hs_group hs_list hs_set hs_setall hs_del hs_delall" + +# MemoCoreModules [RECOMMENDED] +# These modules will be loaded as part of MemoServ's core. +# It is not recommended you change these settings unless you are +# sure you understand exactly what it is you are doing. +MemoCoreModules "ms_send ms_cancel ms_list ms_read ms_del ms_set ms_info ms_rsend ms_check ms_staff ms_sendall ms_help" + +# HelpCoreModules [RECOMMENDED] +# These modules will be loaded as part of HelpServ's core. +# It is not recommended you change these settings unless you are +# sure you understand exactly what it is you are doing. +HelpCoreModules "he_help" + +# BotCoreModules [RECOMMENDED] +# These modules will be loaded as part of BotServ's core. +# It is not recommended you change these settings unless you are +# sure you understand exactly what it is you are doing. +BotCoreModules "bs_help bs_botlist bs_assign bs_set bs_kick bs_badwords bs_act bs_info bs_say bs_unassign bs_bot bs_fantasy bs_fantasy_kick bs_fantasy_kickban bs_fantasy_owner bs_fantasy_seen bs_fantasy_unban" + +# OperCoreModules [RECOMMENDED] +# These modules will be loaded as part of OperServ's core. +# It is not recommended you change these settings unless you are +# sure you understand exactly what it is you are doing. +OperCoreModules "os_help os_global os_stats os_oper os_admin os_staff os_mode os_kick os_clearmodes os_killclones os_akill os_sgline os_sqline os_szline os_chanlist os_userlist os_logonnews os_randomnews os_opernews os_session os_noop os_jupe os_ignore os_set os_reload os_update os_restart os_quit os_shutdown os_defcon os_chankill os_svsnick os_oline os_umode os_modload os_modunload os_modlist os_modinfo" + +# NickCoreModules [RECOMMENDED] +# These modules will be loaded as part of NickServ's core. +# It is not recommended you change these settings unless you are +# sure you understand exactly what it is you are doing. +NickCoreModules "ns_help ns_register ns_group ns_identify ns_access ns_set ns_drop ns_recover ns_release ns_sendpass ns_ghost ns_alist ns_info ns_list ns_logout ns_status ns_update ns_getpass ns_getemail ns_forbid ns_suspend" + +# ChanCoreModules [RECOMMENDED] +# These modules will be loaded as part of ChanServ's core. +# It is not recommended you change these settings unless you are +# sure you understand exactly what it is you are doing. +ChanCoreModules "cs_help cs_register cs_identify cs_set cs_xop cs_access cs_akick cs_drop cs_sendpass cs_ban cs_clear cs_modes cs_getkey cs_invite cs_kick cs_list cs_logout cs_topic cs_info cs_getpass cs_forbid cs_suspend cs_status" + +# OSOpersOnly [RECOMMENDED] +# If this is defined, only IRC Operators will be permitted to use +# OperServ, regardless of module based command access restrictions. + +OSOpersOnly + +# NSEmailMax [OPTIONAL] +# Module: ns_maxemail +# +# Limit the amount of registrations with the same email address to the +# amount given here. If set to 0 or left commented, there will be no limit +# enforced when registering new accounts or using /msg NickServ SET EMAIL. +# +#NSEmailMax 1 + +# NSAutoOPDBName [OPTIONAL] +# Module: ns_noop +# +# Use the given filename as database for the autoop list. If not given, +# the default of "autoop.db" will be used. +# +#NSAutoOPDBName "autoop.db" + +# OSInfoDBName [OPTIONAL] +# Module: os_info +# +# Use the given filename as database for the oper information lines. +# If not given, the default of "os_info.db" will be used. +# +#NSAutoOPDBName "os_info.db" ** MODIFIED CONFIGURATION DIRECTIVES ** @@ -25,6 +122,17 @@ Anope Version S V N #Numeric "3AX" #Numeric "4" +# ModuleDelayedAutoload [OPTIONAL] +# +# When compiled with module support, this contains a space separated list +# of modules to automaticaly load when services are ready for new clients. +# e.g. new pesudo clients such as CatServ :-) *meow* +# By default a number of modules that we found worth adding by default are +# loaded. Feel free to change this if you want to add more, or remove some +# from the list. +# +ModuleDelayedAutoload "cs_appendtopic cs_enforce ns_maxemail ns_noop os_info" + ** DELETED CONFIGURATION DIRECTIVES ** ########################################################################### diff --git a/Config b/Config index bb4417927..c6922cd2f 100755 --- a/Config +++ b/Config @@ -40,7 +40,6 @@ Run_Configure () { WITH_BIN="" WITH_DATA="" WITH_ENC="" -WITH_IRCD="" WITH_RUN="" WITH_PERM="" WITH_MYSQL="" @@ -58,10 +57,6 @@ if [ "$ENCRYPTION" != "" ] ; then WITH_ENC=" --with-encryption" fi -if [ "$IRCTYPE_DEF" != "" ] ; then - WITH_IRCD=" --with-ircd=$IRCTYPE_DEF" -fi - if [ "$RUNGROUP" != "" ] ; then WITH_RUN=" --with-rungroup=$RUNGROUP" fi @@ -75,9 +70,9 @@ if [ "$MYSQL" != "yes" ] ; then fi -echo "./configure $WITH_BIN $WITH_DATA $WITH_ENC $WITH_IRCD $WITH_RUN $WITH_PERM $WITH_MYSQL" +echo "./configure $WITH_BIN $WITH_DATA $WITH_ENC $WITH_RUN $WITH_PERM $WITH_MYSQL" -./configure $WITH_BIN $WITH_DATA $WITH_ENC $WITH_IRCD $WITH_RUN $WITH_PERM $WITH_MYSQL +./configure $WITH_BIN $WITH_DATA $WITH_ENC $WITH_RUN $WITH_PERM $WITH_MYSQL } ECHO2SUF='' @@ -281,104 +276,6 @@ echo "" #### -ok=0 -echo "Select the closest to the type of server on your IRC network:" -echo " 1) DreamForge 4.6.7 [dated IRCd, upgrade to a current one]" -echo " 2) Bahamut 1.4.27 [or later]" -echo " 3) UnrealIRCd 3.1.1 [or later (not 3.2)]" -echo " 4) UltimateIRCd 2.8.2 [or later]" -echo " 5) UltimateIRCd 3.0.0 [alpha26 or later]" -echo " 6) Hybrid IRCd 7.0 [experimental]" -echo " 7) ViagraIRCd 1.3.x [or later]" -echo " 8) PTlink 6.15.0 [experimental]" -echo " 9) RageIRCd 2.0.0 [beta-6 or later]" -echo " 10) Unreal 3.2 [Unreal 3.2 beta19 or later]" -echo " 11) Solid IRCD 3.4.x [Solid IRCD 3.4.6 or later]" -echo " 12) Plexus 2.0 [or later]" -echo " 13) Ratbox 2.0.6 [or later]" -echo " 14) ShadowIRCD 4.0x [beta 7 or later]" - -while [ $ok -eq 0 ] ; do - echo2 "[$IRCTYPE] " - if read INPUT ; then : ; else echo "" ; exit 1 ; fi - if [ ! "$INPUT" ] ; then - INPUT=$IRCTYPE - fi - case $INPUT in - no\ default) - echo "You must specify your IRC server type in order for Services to function" - echo "correctly." - ;; - 1) - IRCTYPE_DEF="IRC_DREAMFORGE" - ok=1; - ;; - 2) - IRCTYPE_DEF="IRC_BAHAMUT" - ok=1; - ;; - 3) - IRCTYPE_DEF="IRC_UNREAL31" - ok=1; - ;; - 4) - IRCTYPE_DEF="IRC_ULTIMATE2" - ok=1; - ;; - 5) - IRCTYPE_DEF="IRC_ULTIMATE3" - ok=1; - ;; - 6) - IRCTYPE_DEF="IRC_HYBRID" - ok=1; - ;; - 7) - IRCTYPE_DEF="IRC_VIAGRA" - ok=1; - ;; - 8) - IRCTYPE_DEF="IRC_PTLINK" - ok=1; - ;; - 9) - IRCTYPE_DEF="IRC_RAGE2" - ok=1; - ;; - - 10) - IRCTYPE_DEF="IRC_UNREAL32" - ok=1; - ;; - - 11) - IRCTYPE_DEF="IRC_SOLID" - ok=1; - ;; - 12) - IRCTYPE_DEF="IRC_PLEXUS" - ok=1; - ;; - 13) - IRCTYPE_DEF="IRC_RATBOX" - ok=1; - ;; - 14) - IRCTYPE_DEF="IRC_SHADOWIRCD" - ok=1; - ;; - - - *) - echo "Please enter a valid option number." - ;; - esac -done -IRCTYPE=$INPUT -echo "" - -#### - if [ "$ENCRYPTION" = "ENCRYPT_MD5" ] ; then DEF=yes else diff --git a/Makefile.in b/Makefile.in index 4b611beb6..19f743896 100644 --- a/Makefile.in +++ b/Makefile.in @@ -21,9 +21,9 @@ RUNGROUP=@RUNGROUP@ IRCDFILE=@IRCDFILE@ SHARED=@SHARED@ -all: language headers build tools modules -strict: language headers strict_build tools strict_modules -profile: language headers profile_build tools profile_modules +all: language headers build core protocols tools modules +strict: language headers strict_build core protocols tools strict_modules +profile: language headers profile_build core protocols tools profile_modules MAKEARGS = 'CFLAGS=${CFLAGS}' 'CC=${CC}' 'ANOPELIBS=${ANOPELIBS}' \ 'LDFLAGS=${LDFLAGS}' 'BINDEST=${BINDEST}' 'INSTALL=${INSTALL}' \ @@ -60,6 +60,13 @@ clean_modules: distclean_modules: (cd src ; ${MAKE} ${MAKEARGS} distclean_modules ) +protocols: build + @echo "*** Building protocol support"; + (cd src/protocol ; ./configure ; ${MAKE} ${MAKEARGS} all; ) + +core: build + @echo "*** Building Core modules"; + (cd src/ ; ${MAKE} ${MAKEARGS} core; ) tools: build (cd src/tools ; ${MAKE} ${MAKEARGS} all; ) diff --git a/Makefile.win32 b/Makefile.win32 index c39d56d38..5b31fff05 100644 --- a/Makefile.win32 +++ b/Makefile.win32 @@ -13,7 +13,7 @@ include Makefile.inc.win32 ########################################################################### -all: src languages tools modules install +all: src core protocols languages tools modules install src: include\version.h include\sysconf.h include\language.h include\sysconf.h cd src && $(MAKE) && cd .. @@ -25,22 +25,31 @@ install: cd lang && $(MAKE) install && cd .. cd src && $(MAKE) install && cd .. cd src\modules && $(MAKE) install && cd .. - cd src\modules && $(MAKE) subs-install && cd .. + cd src\modules && $(MAKE) subs-install && cd .. + cd src\protocol && $(MAKE) install && cd .. + cd src\core && $(MAKE) install && cd .. + cd src\tools && $(MAKE) install && cd .. -@echo --- -@echo Anope has been insalled successfully! - -@echo See docs/INSTALL for details on how to configure Anope for use. + -@echo See docs\INSTALL for details on how to configure Anope for use. -@echo --- clean: - cd lang && $(MAKE) spotless && cd .. cd src && $(MAKE) spotless && cd .. - cd src\modules && $(MAKE) spotless && cd ..\.. + cd src\modules && $(MAKE) spotless && cd .. + cd src\protocol && $(MAKE) spotless && cd .. + cd src\core && $(MAKE) spotless && cd .. + cd src\tools && $(MAKE) spotless && cd .. + cd lang && $(MAKE) spotless && cd .. -@erase *.exe version.h *.obj spotless: cd lang && $(MAKE) spotless && cd .. cd src && $(MAKE) spotless && cd .. cd src\modules && $(MAKE) spotless && cd ..\.. + cd src\protocol && $(MAKE) spotless && cd ..\.. + cd src\core && $(MAKE) spotless && cd ..\.. + cd src\tools && $(MAKE) spotless && cd ..\.. -@erase include\language.h include\version.h *~ anope.exe version.sh.exe *.obj anopesmtp.exe mypasql: @@ -48,84 +57,6 @@ mypasql: distclean: spotless -dist: - $(MAKE) clean -#Compile dreamforge - echo Compiling Dreamforge build - $(MAKE) IRCTYPE=/DIRC_DREAMFORGE CAPAB_C=dreamforge.c CAPAB_O=dreamforge.obj - -@copy src\$(PROGRAM) services-dreamforge.exe - $(MAKE) clean -#Compile bahamut - echo Compiling Bahamut build - $(MAKE) IRCTYPE=/DIRC_BAHAMUT CAPAB_C=bahamut.c CAPAB_O=bahamut.obj - -@copy src\$(PROGRAM) services-bahamut.exe - $(MAKE) clean -#Compile unreal - echo Compiling UnrealIRCd3.1 build - $(MAKE) IRCTYPE=/DIRC_UNREAL31 CAPAB_C=unreal31.c CAPAB_O=unreal31.obj - -@copy src\$(PROGRAM) services-unreal31.exe - $(MAKE) clean -#Compile ultimate2 - echo Compiling UltimateIRCd2 build - $(MAKE) IRCTYPE=/DIRC_ULTIMATE2 CAPAB_C=ultimate2.c CAPAB_O=ultimate2.obj - -@copy src\$(PROGRAM) services-ultimate2.exe - $(MAKE) clean -#Compile ultimate3 - echo Compiling UltimateIRCd 3.x build - $(MAKE) IRCTYPE=/DIRC_ULTIMATE3 CAPAB_C=ultimate3.c CAPAB_O=ultimate3.obj - -@copy src\$(PROGRAM) services-ultimate3.exe - $(MAKE) clean -#Compile hybrid - echo Compiling Hybrid build - $(MAKE) IRCTYPE=/DIRC_HYBRID CAPAB_C=hybrid.c CAPAB_O=hybrid.obj - -@copy src\$(PROGRAM) services-hybrid.exe - $(MAKE) clean -#Compile viagra - echo Compiling ViagraIRCd build - $(MAKE) IRCTYPE=/DIRC_VIAGRA CAPAB_C=viagra.c CAPAB_O=viagra.obj - -@copy src\$(PROGRAM) services-viagra.exe - $(MAKE) clean -#Compile ptlink - echo Compiling PTLink IRCd build - $(MAKE) IRCTYPE=/DIRC_PTLINK CAPAB_C=ptlink.c CAPAB_O=ptlink.obj - -@copy src\$(PROGRAM) services-ptlink.exe - $(MAKE) clean -#Compile rage2 - echo Compiling Rage2 IRCd build - $(MAKE) IRCTYPE=/DIRC_RAGE2 CAPAB_C=rageircd.c CAPAB_O=rageircd.obj - -@copy src\$(PROGRAM) services-rage2.exe - $(MAKE) clean -#Compile UnrealIRCD3.2 - echo Compiling UnrealIRCD3.2 IRCd build - $(MAKE) IRCTYPE=/DIRC_UNREAL32 CAPAB_C=unreal32.c CAPAB_O=unreal32.obj - -@copy src\$(PROGRAM) services-unreal32.exe - $(MAKE) clean -#Compile SolidIRCD - echo Compiling SolidIRCD IRCd build - $(MAKE) IRCTYPE=/DIRC_SOLID CAPAB_C=solidircd.c CAPAB_O=solidircd.obj - -@copy src\$(PROGRAM) services-solid.exe - $(MAKE) clean -#Compile PlexusIRCD - echo Compiling Plexus IRCd build - $(MAKE) IRCTYPE=/DIRC_PLEXUS CAPAB_C=plexus.c CAPAB_O=plexus.obj - -@copy src\$(PROGRAM) services-plexus.exe - $(MAKE) clean -#Compile Ratbox - echo Compiling Ratbox IRCd build - $(MAKE) IRCTYPE=/DIRC_RATBOX CAPAB_C=ratbox.c CAPAB_O=ratbox.obj - -@copy src\$(PROGRAM) services-ratbox.exe -#Compile ShadowIRCD - echo Compiling Shadow IRCd build - $(MAKE) IRCTYPE=/DIRC_SHADOWIRCD CAPAB_C=shadowircd.c CAPAB_O=shadwoircd.obj - -@copy src\$(PROGRAM) services-shadowircd.exe - -#Compile mypasql - $(MYPASQL_BUILD) - -#Cleanup - $(MAKE) spotless - - ########################################################################### @@ -135,6 +66,12 @@ languages: FRC tools: FRC cd src\tools && $(MAKE) && cd ..\.. +core: FRC + cd src\core && $(MAKE) && cd ..\.. + +protocols: FRC + cd src\protocol && $(MAKE) && cd ..\.. + modules: FRC cd src\modules && $(MAKE) && cd ..\.. diff --git a/data/example.conf b/data/example.conf index 69d82370a..9f62f906f 100644 --- a/data/example.conf +++ b/data/example.conf @@ -64,6 +64,84 @@ # superseded by that of other directives or incorporated into the main # program. +########################################################################### +# +# IRCD configuration +# +########################################################################### + +# IRCDModule [REQUIRED] +# The ircd protocol module should be used when connecting anope to your +# chosen IRCD. This should be one of the following options, or a file +# provided by your IRCD author. +# +# Bahamut 1.4.27 [or later] - "bahamut" +# DreamForge 4.6.7 - "dreamforge" +# Hybrid IRCd 7.0 [experimental] - "hybrid" +# InspIRCd 1.0 Beta 3 - "inspircd" +# InspIRCd module is provided by Brain +# Plexus 2.0 [or later] - "plexus" +# PTLink 6.15.0 [experimental] - "ptlink" +# RageIRCd 2.0.0 [beta-6 of later] - "rageircd" +# Ratbox 2.0.6 [or later] - "ratbox" +# ShadowIRCD 4.0x [beta 7 or later] - "shadowircd" +# Solid IRCD 3.4.x [3.4.6 or later] - "solidircd" +# UltimateIRCd 3.0.0 [or later] - "ultimate3" +# UltimateIRCd 2.8.2 [or later] - "ultimate2" +# Unreal 3.2 [beta-19 or later] - "unreal32" +# Unreal 3.1.1 [or later] - "unreal31" +# ViagraIRCd 1.3.x [or later] - "viagra" +# + +#IRCDModule "unreal32" + + +########################################################################### +# +# Core module configuration +# +########################################################################### +# HostCoreModules [RECOMMENDED] +# These modules will be loaded as part of HostServ's core. +# It is not recommended you change these settings unless you are +# sure you understand exactly what it is you are doing. +HostCoreModules "hs_help hs_on hs_off hs_group hs_list hs_set hs_setall hs_del hs_delall" + +# MemoCoreModules [RECOMMENDED] +# These modules will be loaded as part of MemoServ's core. +# It is not recommended you change these settings unless you are +# sure you understand exactly what it is you are doing. +MemoCoreModules "ms_send ms_cancel ms_list ms_read ms_del ms_set ms_info ms_rsend ms_check ms_staff ms_sendall ms_help" + +# HelpCoreModules [RECOMMENDED] +# These modules will be loaded as part of HelpServ's core. +# It is not recommended you change these settings unless you are +# sure you understand exactly what it is you are doing. +HelpCoreModules "he_help" + +# BotCoreModules [RECOMMENDED] +# These modules will be loaded as part of BotServ's core. +# It is not recommended you change these settings unless you are +# sure you understand exactly what it is you are doing. +BotCoreModules "bs_help bs_botlist bs_assign bs_set bs_kick bs_badwords bs_act bs_info bs_say bs_unassign bs_bot bs_fantasy bs_fantasy_kick bs_fantasy_kickban bs_fantasy_owner bs_fantasy_seen bs_fantasy_unban" + +# OperCoreModules [RECOMMENDED] +# These modules will be loaded as part of OperServ's core. +# It is not recommended you change these settings unless you are +# sure you understand exactly what it is you are doing. +OperCoreModules "os_help os_global os_stats os_oper os_admin os_staff os_mode os_kick os_clearmodes os_killclones os_akill os_sgline os_sqline os_szline os_chanlist os_userlist os_logonnews os_randomnews os_opernews os_session os_noop os_jupe os_ignore os_set os_reload os_update os_restart os_quit os_shutdown os_defcon os_chankill os_svsnick os_oline os_umode os_modload os_modunload os_modlist os_modinfo" + +# NickCoreModules [RECOMMENDED] +# These modules will be loaded as part of NickServ's core. +# It is not recommended you change these settings unless you are +# sure you understand exactly what it is you are doing. +NickCoreModules "ns_help ns_register ns_group ns_identify ns_access ns_set ns_drop ns_recover ns_release ns_sendpass ns_ghost ns_alist ns_info ns_list ns_logout ns_status ns_update ns_getpass ns_getemail ns_forbid ns_suspend" + +# ChanCoreModules [RECOMMENDED] +# These modules will be loaded as part of ChanServ's core. +# It is not recommended you change these settings unless you are +# sure you understand exactly what it is you are doing. +ChanCoreModules "cs_help cs_register cs_identify cs_set cs_xop cs_access cs_akick cs_drop cs_sendpass cs_ban cs_clear cs_modes cs_getkey cs_invite cs_kick cs_list cs_logout cs_topic cs_info cs_getpass cs_forbid cs_suspend cs_status" ########################################################################### # # Remote server configuration @@ -1242,6 +1320,13 @@ SessionAutoKillExpiry 30m # AddAkiller +# OSOpersOnly [RECOMMENDED] +# If this is defined, only IRC Operators will be permitted to use +# OperServ, regardless of module based command access restrictions. + +OSOpersOnly + + ########################################################################### # # DefCon configuration @@ -1426,7 +1511,46 @@ AddAkiller # When compiled with module support, this contains a space separated list # of modules to automaticaly load when services are ready for new clients. # e.g. new pesudo clients such as CatServ :-) *meow* +# By default a number of modules that we found worth adding by default are +# loaded. Feel free to change this if you want to add more, or remove some +# from the list. +# +ModuleDelayedAutoload "cs_appendtopic cs_enforce ns_maxemail ns_noop os_info" + +########################################################################### +# +# Module specific configuration +# +########################################################################### +# +# This section contains configuration options specific to certain modules. +# The options in here are for the modules shipped by default. You can add +# more options for other modules you load here. Check the documentation of +# the module to see what configuration options it provides. + +# NSEmailMax [OPTIONAL] +# Module: ns_maxemail +# +# Limit the amount of registrations with the same email address to the +# amount given here. If set to 0 or left commented, there will be no limit +# enforced when registering new accounts or using /msg NickServ SET EMAIL. +# +#NSEmailMax 1 + +# NSAutoOPDBName [OPTIONAL] +# Module: ns_noop +# +# Use the given filename as database for the autoop list. If not given, +# the default of "autoop.db" will be used. +# +#NSAutoOPDBName "autoop.db" + +# OSInfoDBName [OPTIONAL] +# Module: os_info +# +# Use the given filename as database for the oper information lines. +# If not given, the default of "os_info.db" will be used. # -#ModuleDelayedAutoload "ircd_catserv" +#OSInfoDBName "os_info.db" #EOF diff --git a/docs/EVENTS b/docs/EVENTS index 8b5185a9b..7d2fb34e7 100644 --- a/docs/EVENTS +++ b/docs/EVENTS @@ -78,7 +78,7 @@ Anope Internal Events A) All functions most be formatted as: - int functioname(char *message); + int functioname(int argc, char **argv); B) In AnopeInit you must declare EvtHook in some fashion; it is into this variable that we will create the event handler. Here is what @@ -112,9 +112,13 @@ Anope Internal Events is very simple; it could be as simple as a start, stop or message. In the case of saving it has a start and stop. - int my_save(char *source) + int my_save(int argc, char **argv) { - if (!stricmp(source, EVENT_START)) { + if (argc < 1) { + return MOD_CONT; + } + + if (!stricmp(argv[0], EVENT_START)) { alog("Saving the databases! has started"); } else { alog("Saving the databases is complete"); @@ -137,158 +141,207 @@ Anope Internal Events equal sign, but with string comparision. See the bundled events module for an example on how to do this. + The arguments are given as av[0] for the first argument, av[1] for the + second argument, and so on. If av[0] and av[1] are given, the event has + two arguments, and argc should be 2. + EVENT_BOT_ASSIGN A BotServ bot has been assigned to a channel. - The argument contains the name of the channel has been assigned to. + av[0] Name of the channel the bot has been assigned to. + av[1] The nickname of the bot that has been assigned to the channel. EVENT_BOT_CHANGE The properties of a BotServ bot have been changed. - The argument contains the nickname of the bot involved. + av[0] The nickname of the bot involved. EVENT_BOT_CREATE A new BotServ bot has been created, and is ready to use. - The argument contains the nickname of the newly created bot. + av[0] The nickname of the newly created bot. EVENT_BOT_DEL A BotServ bot is being deleted from BotServ. This event is being sent just before the actual deletion is performed. - The argument contains the nickname of the bot being deleted. + av[0] The nickname of the bot being deleted. + + EVENT_BOT_FANTASY + A fantasy command of the bot has been triggered. This event should be + used to create your own fantasy commands. + av[0] The fantasy command that has been triggered with leading '!'. + av[1] The nickname of the user that has triggered the fantasy + command. + av[2] The name of the channel the fantasy command has been triggered + on. + av[3] Contains any optional paramenters passed after the fantasy + command. If none are present, this will not exist, and argc will + will be 3. EVENT_BOT_JOIN A BotServ bot has joined a channel and opped itself. - The argument contains the channel name the bot is on. + av[0] The channel name the bot has just joined. + av[1] The nickname of the bot that has joined the channel. EVENT_BOT_UNASSIGN A BotServ bot is being unassigned from a channel. This event is being sent before the actual removing of the bot is done. - The argument contains the channel name the bot is on. + av[0] The channel name the bot has been unassigned from. + av[1] The nickname of the bot that has been unassigned. EVENT_CHAN_DROP A channel has been dropped and deleted. - The argument is the name of the channel that has been dropped. + av[0] The name of the channel that has been dropped. EVENT_CHAN_EXPIRE A channel has been expired and will be deleted. The event will be emitted just before the actual channel deletion happens. - The argument is the name of the channel being deleted. + av[0] The name of the channel that has been expired. EVENT_CHAN_FORBIDDEN A channel has been forbidden (ChanServ FORBID). - The argument is the name of the channel that has been forbidden. + av[0] The name of the channel that has been forbidden. EVENT_CHAN_REGISTERED A new channel has been registered. - The argument is the name of the channel that has been registered. + av[0] The name of the channel that has been registered. EVENT_CHAN_SUSPENDED A channel has been suspended (ChanServ SUSPEND). - The argument is the name of the channel that has been suspended. + av[0] The name of the channel that has been suspended. + + EVENT_CHAN_UNSUSPEND + A channel has been unsuspended (ChanServ UNSUSPEND). + av[0] The name of the channel that has been unsuspended. EVENT_CHANGE_NICK A user has just changed it's nick. - The argument contains the new nickname of the user. + av[0] The new nickname of the user. EVENT_CONNECT This event is emitted when the connection to our uplink hub is being made. - The argument is either EVENT_START or EVENT_STOP, to indicate if it's - emitted before or after the connection has been made. EVENT_STOP is - emitted before our burst is being sent over the link. + av[0] EVENT_START or EVENT_STOP, to indicate if it's emitted before + or after the connection has been made. EVENT_STOP is emitted + before our burst is being sent over the link. EVENT_DB_EXPIRE This event is emitted when the expiry routines for all things that can expire in Anope are being run. - The argument is either EVENT_START or EVENT_STOP, to indicate if it's - being emitted before or after the expiry routines have been run. + av[0] EVENT_START or EVENT_STOP, to indicate if it's being emitted + before or after the expiry routines have been run. EVENT_DB_SAVING This event is emitted when the databases are being saved. - The argument is either EVENT_START or EVENT_STOP, to indicate if it's - emitted before or after the saving routines. + av[0] EVENT_START or EVENT_STOP, to indicate if it's emitted before + or after the saving routines have been run. EVENT_DB_BACKUP This event is emitted when the databases are backed up. - The event will send EVENT_START when the backup commences, and - EVENT_STOP when it finishes. + av[0] EVENT_START when the backup commences, and EVENT_STOP when it + finishes. EVENT_DEFCON_LEVEL The DefCon level has just been changed. This event is emitted before any DefCon-related action is taken. The internal DefConLevel has already been raised at this point. - The argument contains the new level of DefCon being invoked. + av[0] The new level of DefCon being invoked. EVENT_GROUP A user has grouped it's nickname to another user group. - The argument contains the nickname of the user that joined the group. + av[0] The nickname of the user that joined the group. + + EVENT_JOIN_CHANNEL + A user joins a channel. + av[0] EVENT_START or EVENT_STOP. EVENT_START when the user has passed + all access checks and is allowed to join, but has not yet + joined the channel. EVENT_STOP when the user has joined and all + needed modes are set etc. + av[1] The nickname of the user joining the channel. + av[2] The name of the channel the user has joined. EVENT_NEWNICK A new user has been introduced on the network. - The argument contains the nickname of the newly introduced user. + av[0] The nickname of the newly introduced user. EVENT_NICK_DROPPED A user's nick has just been dropped. Note that the nickname information has already been deleted! - The argument contains the nickname of the user that has just been - dropped. + av[0] The nickname of the user that has just been dropped. EVENT_NICK_EXPIRE A user's nick has just expired. Note that, as with EVENT_NICK_DROPPED, the nickname information has already been deleted! - The argument contains the nickname of the user that has just expired. + av[0] The nickname of the user that has just expired. EVENT_NICK_FORBIDDEN A user's nick has just been forbidden. - The argument contains the nickname that has just been forbidden. + av[0] The nickname that has just been forbidden. EVENT_NICK_IDENTIFY A user has just identified for it's nickname with NickServ. - The argument contains the nickname of the user that just identified. + av[0] The nickname of the user that just identified. EVENT_NICK_REGISTERED A new user has just registered it's nickname. This event is being emitted when the registration is completed, but the user modes have not yet been set. - The argument contains the nickname of the newly registered user. + av[0] The nickname of the newly registered user. - EVENT_NICK_SUSPEND + EVENT_NICK_SUSPENDED A user's nick has just been suspended. - The argument contains the nickname that has just been suspended. + av[0] The nickname that has just been suspended. + + EVENT_NICK_UNSUSPEND + A user's nick has just been unsuspended. + av[0] The nickname that has just been unsuspended. + + EVENT_PART_CHANNEL + A user