From a96514c284514116300794696f062c7fa6b1f79f Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Dec 2005 19:17:41 +0000 Subject: Added new docs for class InspIRCd and globals.h etc git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2451 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/man/man3/Admin.3 | 4 +- docs/man/man3/BanItem.3 | 2 +- docs/man/man3/ConfigReader.3 | 264 +-- docs/man/man3/Event.3 | 38 +- docs/man/man3/ExemptItem.3 | 2 +- docs/man/man3/FileReader.3 | 82 +- docs/man/man3/HostItem.3 | 16 +- docs/man/man3/InspIRCd.3 | 71 + docs/man/man3/InspSocket.3 | 6 +- docs/man/man3/InviteItem.3 | 2 +- docs/man/man3/ModeParameter.3 | 8 +- docs/man/man3/Module.3 | 324 ++-- docs/man/man3/Request.3 | 50 +- docs/man/man3/Server.3 | 786 ++++----- docs/man/man3/ServerConfig.3 | 21 +- docs/man/man3/SocketEngine.3 | 8 +- docs/man/man3/Version.3 | 4 +- .../_home_brain_inspircd-cvs_inspircd_include_.3 | 6 + docs/man/man3/channels.cpp.3 | 432 ++++- docs/man/man3/channels.h.3 | 384 ++++- docs/man/man3/chanrec.3 | 272 +-- docs/man/man3/command_t.3 | 4 +- docs/man/man3/commands.h.3 | 2 +- docs/man/man3/connection.3 | 2 +- docs/man/man3/globals.h.3 | 174 ++ docs/man/man3/inspircd.h.3 | 271 +++ docs/man/man3/inspircd_io.h.3 | 13 +- docs/man/man3/message.h.3 | 6 +- docs/man/man3/modules.cpp.3 | 197 +-- docs/man/man3/modules.h.3 | 153 +- docs/man/man3/serverstats.3 | 126 ++ docs/man/man3/typedefs.h.3 | 6 + docs/man/man3/ucrec.3 | 18 +- docs/man/man3/userrec.3 | 24 +- docs/man/man3/users.h.3 | 2 + docs/module-doc/annotated.html | 6 +- docs/module-doc/base_8h-source.html | 2 +- docs/module-doc/base_8h.html | 2 +- docs/module-doc/base_8h__dep__incl.md5 | 2 +- docs/module-doc/channels_8cpp-source.html | 656 ++++++-- docs/module-doc/channels_8cpp.html | 601 ++++++- docs/module-doc/channels_8cpp__incl.gif | Bin 23887 -> 46683 bytes docs/module-doc/channels_8cpp__incl.map | 18 +- docs/module-doc/channels_8cpp__incl.md5 | 2 +- docs/module-doc/channels_8h-source.html | 222 +-- docs/module-doc/channels_8h.html | 542 +++++- docs/module-doc/channels_8h__dep__incl.gif | Bin 7694 -> 7072 bytes docs/module-doc/channels_8h__dep__incl.map | 19 +- docs/module-doc/channels_8h__dep__incl.md5 | 2 +- docs/module-doc/classAdmin-members.html | 2 +- docs/module-doc/classAdmin.html | 4 +- docs/module-doc/classBanItem-members.html | 2 +- docs/module-doc/classBanItem.html | 4 +- docs/module-doc/classBoolSet-members.html | 2 +- docs/module-doc/classBoolSet.html | 2 +- docs/module-doc/classConfigReader-members.html | 2 +- docs/module-doc/classConfigReader.html | 282 ++-- docs/module-doc/classConnectClass-members.html | 2 +- docs/module-doc/classConnectClass.html | 2 +- docs/module-doc/classDNS-members.html | 2 +- docs/module-doc/classDNS.html | 2 +- docs/module-doc/classELine-members.html | 2 +- docs/module-doc/classELine.html | 2 +- docs/module-doc/classEvent-members.html | 2 +- docs/module-doc/classEvent.html | 44 +- docs/module-doc/classExemptItem-members.html | 2 +- docs/module-doc/classExemptItem.html | 4 +- docs/module-doc/classExtMode-members.html | 2 +- docs/module-doc/classExtMode.html | 2 +- docs/module-doc/classExtensible-members.html | 2 +- docs/module-doc/classExtensible.html | 2 +- docs/module-doc/classFileReader-members.html | 2 +- docs/module-doc/classFileReader.html | 84 +- docs/module-doc/classGLine-members.html | 2 +- docs/module-doc/classGLine.html | 2 +- docs/module-doc/classHostItem-members.html | 2 +- docs/module-doc/classHostItem.html | 14 +- docs/module-doc/classInspIRCd-members.html | 20 + docs/module-doc/classInspIRCd.html | 246 +++ docs/module-doc/classInspIRCd__coll__graph.gif | Bin 0 -> 1041 bytes docs/module-doc/classInspIRCd__coll__graph.map | 1 + docs/module-doc/classInspIRCd__coll__graph.md5 | 1 + docs/module-doc/classInspSocket-members.html | 2 +- docs/module-doc/classInspSocket.html | 22 +- docs/module-doc/classInviteItem-members.html | 2 +- docs/module-doc/classInviteItem.html | 4 +- docs/module-doc/classInvited-members.html | 2 +- docs/module-doc/classInvited.html | 2 +- docs/module-doc/classKLine-members.html | 2 +- docs/module-doc/classKLine.html | 2 +- docs/module-doc/classModeParameter-members.html | 2 +- docs/module-doc/classModeParameter.html | 16 +- docs/module-doc/classModule-members.html | 2 +- docs/module-doc/classModule.html | 172 +- docs/module-doc/classModuleFactory-members.html | 2 +- docs/module-doc/classModuleFactory.html | 2 +- docs/module-doc/classModuleMessage-members.html | 2 +- docs/module-doc/classModuleMessage.html | 2 +- docs/module-doc/classQLine-members.html | 2 +- docs/module-doc/classQLine.html | 2 +- docs/module-doc/classRequest-members.html | 2 +- docs/module-doc/classRequest.html | 58 +- docs/module-doc/classServer-members.html | 2 +- docs/module-doc/classServer.html | 732 +++++---- docs/module-doc/classServerConfig-members.html | 5 +- docs/module-doc/classServerConfig.html | 78 +- docs/module-doc/classServerConfig__coll__graph.gif | Bin 14101 -> 14299 bytes docs/module-doc/classServerConfig__coll__graph.map | 2 +- docs/module-doc/classServerConfig__coll__graph.md5 | 2 +- docs/module-doc/classSocketEngine-members.html | 2 +- docs/module-doc/classSocketEngine.html | 36 +- docs/module-doc/classVersion-members.html | 2 +- docs/module-doc/classVersion.html | 4 +- docs/module-doc/classWhoWasUser-members.html | 2 +- docs/module-doc/classWhoWasUser.html | 2 +- docs/module-doc/classXLine-members.html | 2 +- docs/module-doc/classXLine.html | 2 +- docs/module-doc/classZLine-members.html | 2 +- docs/module-doc/classZLine.html | 2 +- docs/module-doc/classchanrec-members.html | 2 +- docs/module-doc/classchanrec.html | 280 ++-- docs/module-doc/classclassbase-members.html | 2 +- docs/module-doc/classclassbase.html | 2 +- docs/module-doc/classcommand__t-members.html | 2 +- docs/module-doc/classcommand__t.html | 6 +- docs/module-doc/classconnection-members.html | 2 +- docs/module-doc/classconnection.html | 6 +- docs/module-doc/classes.html | 28 +- docs/module-doc/classserverstats-members.html | 24 + docs/module-doc/classserverstats.html | 359 ++++ docs/module-doc/classserverstats__coll__graph.gif | Bin 0 -> 2894 bytes docs/module-doc/classserverstats__coll__graph.map | 1 + docs/module-doc/classserverstats__coll__graph.md5 | 1 + docs/module-doc/classstd_1_1char__traits.html | 2 +- docs/module-doc/classucrec-members.html | 2 +- docs/module-doc/classucrec.html | 16 +- docs/module-doc/classuserrec-members.html | 2 +- docs/module-doc/classuserrec.html | 44 +- docs/module-doc/commands_8h-source.html | 2 +- docs/module-doc/commands_8h.html | 11 +- docs/module-doc/commands_8h__dep__incl.gif | Bin 1171 -> 1604 bytes docs/module-doc/commands_8h__dep__incl.map | 5 +- docs/module-doc/commands_8h__dep__incl.md5 | 2 +- docs/module-doc/connection_8h-source.html | 2 +- docs/module-doc/connection_8h.html | 14 +- docs/module-doc/connection_8h__dep__incl.gif | Bin 6534 -> 1193 bytes docs/module-doc/connection_8h__dep__incl.map | 12 +- docs/module-doc/connection_8h__dep__incl.md5 | 2 +- docs/module-doc/ctables_8h-source.html | 6 +- docs/module-doc/ctables_8h.html | 13 +- docs/module-doc/ctables_8h__dep__incl.gif | Bin 2532 -> 2805 bytes docs/module-doc/ctables_8h__dep__incl.map | 8 +- docs/module-doc/ctables_8h__dep__incl.md5 | 2 +- docs/module-doc/ctables_8h__incl.gif | Bin 2930 -> 1827 bytes docs/module-doc/ctables_8h__incl.map | 1 + docs/module-doc/ctables_8h__incl.md5 | 2 +- docs/module-doc/dir_000000.html | 2 +- docs/module-doc/dir_000001.html | 2 +- docs/module-doc/dir_000002.html | 2 +- docs/module-doc/dir_000003.html | 4 +- docs/module-doc/dir_000003_dep.gif | Bin 2111 -> 2124 bytes docs/module-doc/dir_000003_dep.map | 2 +- docs/module-doc/dir_000004.html | 6 +- docs/module-doc/dir_000005.html | 4 +- docs/module-doc/dir_000005_000004.html | 2 +- docs/module-doc/dir_000005_dep.gif | Bin 1342 -> 1347 bytes docs/module-doc/dir_000005_dep.map | 2 +- docs/module-doc/dirs.html | 2 +- docs/module-doc/dns_8h-source.html | 2 +- docs/module-doc/dns_8h.html | 2 +- docs/module-doc/files.html | 4 +- docs/module-doc/functions.html | 2 +- docs/module-doc/functions_0x62.html | 2 +- docs/module-doc/functions_0x63.html | 2 +- docs/module-doc/functions_0x64.html | 2 +- docs/module-doc/functions_0x65.html | 6 +- docs/module-doc/functions_0x66.html | 2 +- docs/module-doc/functions_0x67.html | 8 +- docs/module-doc/functions_0x68.html | 2 +- docs/module-doc/functions_0x69.html | 5 +- docs/module-doc/functions_0x6a.html | 2 +- docs/module-doc/functions_0x6b.html | 2 +- docs/module-doc/functions_0x6c.html | 5 +- docs/module-doc/functions_0x6d.html | 8 +- docs/module-doc/functions_0x6e.html | 2 +- docs/module-doc/functions_0x6f.html | 2 +- docs/module-doc/functions_0x70.html | 5 +- docs/module-doc/functions_0x71.html | 2 +- docs/module-doc/functions_0x72.html | 9 +- docs/module-doc/functions_0x73.html | 20 +- docs/module-doc/functions_0x74.html | 2 +- docs/module-doc/functions_0x75.html | 5 +- docs/module-doc/functions_0x76.html | 2 +- docs/module-doc/functions_0x77.html | 2 +- docs/module-doc/functions_0x7e.html | 2 +- docs/module-doc/functions_func.html | 2 +- docs/module-doc/functions_func_0x62.html | 2 +- docs/module-doc/functions_func_0x63.html | 2 +- docs/module-doc/functions_func_0x64.html | 2 +- docs/module-doc/functions_func_0x65.html | 6 +- docs/module-doc/functions_func_0x66.html | 2 +- docs/module-doc/functions_func_0x67.html | 8 +- docs/module-doc/functions_func_0x68.html | 2 +- docs/module-doc/functions_func_0x69.html | 5 +- docs/module-doc/functions_func_0x6a.html | 2 +- docs/module-doc/functions_func_0x6c.html | 5 +- docs/module-doc/functions_func_0x6d.html | 2 +- docs/module-doc/functions_func_0x6e.html | 2 +- docs/module-doc/functions_func_0x6f.html | 2 +- docs/module-doc/functions_func_0x70.html | 2 +- docs/module-doc/functions_func_0x71.html | 2 +- docs/module-doc/functions_func_0x72.html | 5 +- docs/module-doc/functions_func_0x73.html | 5 +- docs/module-doc/functions_func_0x74.html | 2 +- docs/module-doc/functions_func_0x75.html | 5 +- docs/module-doc/functions_func_0x76.html | 2 +- docs/module-doc/functions_func_0x77.html | 2 +- docs/module-doc/functions_func_0x7e.html | 2 +- docs/module-doc/functions_vars.html | 32 +- docs/module-doc/globals.html | 14 +- docs/module-doc/globals_0x62.html | 9 +- docs/module-doc/globals_0x63.html | 20 +- docs/module-doc/globals_0x64.html | 11 +- docs/module-doc/globals_0x65.html | 7 +- docs/module-doc/globals_0x66.html | 19 +- docs/module-doc/globals_0x67.html | 13 +- docs/module-doc/globals_0x68.html | 10 +- docs/module-doc/globals_0x69.html | 17 +- docs/module-doc/globals_0x6b.html | 23 + docs/module-doc/globals_0x6c.html | 8 +- docs/module-doc/globals_0x6d.html | 27 +- docs/module-doc/globals_0x6e.html | 4 +- docs/module-doc/globals_0x6f.html | 4 +- docs/module-doc/globals_0x70.html | 9 +- docs/module-doc/globals_0x71.html | 4 +- docs/module-doc/globals_0x72.html | 10 +- docs/module-doc/globals_0x73.html | 10 +- docs/module-doc/globals_0x74.html | 10 +- docs/module-doc/globals_0x75.html | 4 +- docs/module-doc/globals_0x76.html | 4 +- docs/module-doc/globals_0x77.html | 24 +- docs/module-doc/globals_0x78.html | 4 +- docs/module-doc/globals_0x7a.html | 4 +- docs/module-doc/globals_8h-source.html | 69 + docs/module-doc/globals_8h.html | 1019 ++++++++++++ docs/module-doc/globals_8h__dep__incl.gif | Bin 0 -> 3839 bytes docs/module-doc/globals_8h__dep__incl.map | 7 + docs/module-doc/globals_8h__dep__incl.md5 | 1 + docs/module-doc/globals_8h__incl.gif | Bin 0 -> 5496 bytes docs/module-doc/globals_8h__incl.map | 4 + docs/module-doc/globals_8h__incl.md5 | 1 + docs/module-doc/globals_defs.html | 29 +- docs/module-doc/globals_enum.html | 2 +- docs/module-doc/globals_eval.html | 2 +- docs/module-doc/globals_func.html | 101 +- docs/module-doc/globals_type.html | 5 +- docs/module-doc/globals_vars.html | 34 +- docs/module-doc/graph_legend.html | 2 +- docs/module-doc/hashcomp_8h-source.html | 2 +- docs/module-doc/hashcomp_8h.html | 5 +- docs/module-doc/hashcomp_8h__dep__incl.gif | Bin 1287 -> 1634 bytes docs/module-doc/hashcomp_8h__dep__incl.map | 3 +- docs/module-doc/hashcomp_8h__dep__incl.md5 | 2 +- docs/module-doc/hierarchy.html | 4 +- docs/module-doc/inherit__graph__10.gif | Bin 460 -> 587 bytes docs/module-doc/inherit__graph__10.map | 2 +- docs/module-doc/inherit__graph__10.md5 | 2 +- docs/module-doc/inherit__graph__11.gif | Bin 508 -> 423 bytes docs/module-doc/inherit__graph__11.map | 2 +- docs/module-doc/inherit__graph__11.md5 | 2 +- docs/module-doc/inherit__graph__12.gif | Bin 0 -> 460 bytes docs/module-doc/inherit__graph__12.map | 2 + docs/module-doc/inherit__graph__12.md5 | 1 + docs/module-doc/inherit__graph__13.gif | Bin 0 -> 508 bytes docs/module-doc/inherit__graph__13.map | 2 + docs/module-doc/inherit__graph__13.md5 | 1 + docs/module-doc/inherit__graph__5.gif | Bin 434 -> 396 bytes docs/module-doc/inherit__graph__5.map | 2 +- docs/module-doc/inherit__graph__5.md5 | 2 +- docs/module-doc/inherit__graph__6.gif | Bin 600 -> 434 bytes docs/module-doc/inherit__graph__6.map | 2 +- docs/module-doc/inherit__graph__6.md5 | 2 +- docs/module-doc/inherit__graph__7.gif | Bin 526 -> 600 bytes docs/module-doc/inherit__graph__7.map | 2 +- docs/module-doc/inherit__graph__7.md5 | 2 +- docs/module-doc/inherit__graph__8.gif | Bin 608 -> 526 bytes docs/module-doc/inherit__graph__8.map | 2 +- docs/module-doc/inherit__graph__8.md5 | 2 +- docs/module-doc/inherit__graph__9.gif | Bin 587 -> 608 bytes docs/module-doc/inherit__graph__9.map | 2 +- docs/module-doc/inherit__graph__9.md5 | 2 +- docs/module-doc/inherits.html | 24 +- docs/module-doc/inspircd_8h-source.html | 150 ++ docs/module-doc/inspircd_8h.html | 1210 ++++++++++++++ docs/module-doc/inspircd_8h__dep__incl.gif | Bin 0 -> 7341 bytes docs/module-doc/inspircd_8h__dep__incl.map | 10 + docs/module-doc/inspircd_8h__dep__incl.md5 | 1 + docs/module-doc/inspircd_8h__incl.gif | Bin 0 -> 15655 bytes docs/module-doc/inspircd_8h__incl.map | 5 + docs/module-doc/inspircd_8h__incl.md5 | 1 + docs/module-doc/inspircd__io_8h-source.html | 61 +- docs/module-doc/inspircd__io_8h.html | 56 +- docs/module-doc/inspircd__io_8h__dep__incl.gif | Bin 1630 -> 2443 bytes docs/module-doc/inspircd__io_8h__dep__incl.map | 7 +- docs/module-doc/inspircd__io_8h__dep__incl.md5 | 2 +- docs/module-doc/inspircd__io_8h__incl.gif | Bin 2262 -> 2701 bytes docs/module-doc/inspircd__io_8h__incl.map | 2 + docs/module-doc/inspircd__io_8h__incl.md5 | 2 +- docs/module-doc/main.html | 2 +- docs/module-doc/message_8h-source.html | 8 +- docs/module-doc/message_8h.html | 24 +- docs/module-doc/mode_8h-source.html | 4 +- docs/module-doc/mode_8h.html | 4 +- docs/module-doc/modules_8cpp-source.html | 1732 ++++++++++---------- docs/module-doc/modules_8cpp.html | 379 ++--- docs/module-doc/modules_8cpp__incl.gif | Bin 42289 -> 57401 bytes docs/module-doc/modules_8cpp__incl.map | 26 +- docs/module-doc/modules_8cpp__incl.md5 | 2 +- docs/module-doc/modules_8h-source.html | 21 +- docs/module-doc/modules_8h.html | 389 ++++- docs/module-doc/modules_8h__dep__incl.gif | Bin 1765 -> 1743 bytes docs/module-doc/modules_8h__dep__incl.map | 6 +- docs/module-doc/modules_8h__dep__incl.md5 | 2 +- docs/module-doc/modules_8h__incl.gif | Bin 8071 -> 6845 bytes docs/module-doc/modules_8h__incl.map | 7 +- docs/module-doc/modules_8h__incl.md5 | 2 +- docs/module-doc/namespaceirc.html | 2 +- docs/module-doc/namespacemembers.html | 2 +- docs/module-doc/namespacemembers_type.html | 2 +- docs/module-doc/namespacenspace.html | 2 +- docs/module-doc/namespaces.html | 2 +- docs/module-doc/namespacestd.html | 2 +- docs/module-doc/socket_8cpp-source.html | 22 +- docs/module-doc/socket_8cpp.html | 11 +- docs/module-doc/socket_8cpp__incl.gif | Bin 14200 -> 20018 bytes docs/module-doc/socket_8cpp__incl.map | 7 +- docs/module-doc/socket_8cpp__incl.md5 | 2 +- docs/module-doc/socket_8h-source.html | 2 +- docs/module-doc/socket_8h.html | 11 +- docs/module-doc/socket_8h__dep__incl.gif | Bin 2605 -> 2237 bytes docs/module-doc/socket_8h__dep__incl.map | 9 +- docs/module-doc/socket_8h__dep__incl.md5 | 2 +- docs/module-doc/socketengine_8cpp-source.html | 30 +- docs/module-doc/socketengine_8cpp.html | 10 +- docs/module-doc/socketengine_8cpp__incl.gif | Bin 5594 -> 4854 bytes docs/module-doc/socketengine_8cpp__incl.map | 4 +- docs/module-doc/socketengine_8cpp__incl.md5 | 2 +- docs/module-doc/socketengine_8h-source.html | 6 +- docs/module-doc/socketengine_8h.html | 10 +- docs/module-doc/socketengine_8h__incl.gif | Bin 4073 -> 4616 bytes docs/module-doc/socketengine_8h__incl.map | 2 + docs/module-doc/socketengine_8h__incl.md5 | 2 +- docs/module-doc/structdns__ip4list-members.html | 2 +- docs/module-doc/structdns__ip4list.html | 2 +- .../structirc_1_1InAddr__HashComp-members.html | 2 +- docs/module-doc/structirc_1_1InAddr__HashComp.html | 2 +- .../structirc_1_1StrHashComp-members.html | 2 +- docs/module-doc/structirc_1_1StrHashComp.html | 2 +- .../structirc_1_1irc__char__traits-members.html | 2 +- .../module-doc/structirc_1_1irc__char__traits.html | 2 +- ...ctnspace_1_1hash_3_01in__addr_01_4-members.html | 2 +- .../structnspace_1_1hash_3_01in__addr_01_4.html | 2 +- ...ructnspace_1_1hash_3_01string_01_4-members.html | 2 +- .../structnspace_1_1hash_3_01string_01_4.html | 2 +- docs/module-doc/tree.html | 6 + docs/module-doc/typedefs_8h-source.html | 11 +- docs/module-doc/typedefs_8h.html | 46 +- docs/module-doc/typedefs_8h__dep__incl.gif | Bin 789 -> 1217 bytes docs/module-doc/typedefs_8h__dep__incl.map | 3 +- docs/module-doc/typedefs_8h__dep__incl.md5 | 2 +- docs/module-doc/typedefs_8h__incl.gif | Bin 8687 -> 12028 bytes docs/module-doc/typedefs_8h__incl.map | 10 +- docs/module-doc/typedefs_8h__incl.md5 | 2 +- docs/module-doc/userprocess_8h-source.html | 2 +- docs/module-doc/userprocess_8h.html | 2 +- docs/module-doc/users_8cpp-source.html | 14 +- docs/module-doc/users_8cpp.html | 13 +- docs/module-doc/users_8cpp__incl.gif | Bin 6230 -> 7197 bytes docs/module-doc/users_8cpp__incl.map | 9 +- docs/module-doc/users_8cpp__incl.md5 | 2 +- docs/module-doc/users_8h-source.html | 2 +- docs/module-doc/users_8h.html | 26 +- docs/module-doc/users_8h__dep__incl.gif | Bin 5255 -> 10481 bytes docs/module-doc/users_8h__dep__incl.map | 20 +- docs/module-doc/users_8h__dep__incl.md5 | 2 +- docs/module-doc/xline_8h-source.html | 2 +- docs/module-doc/xline_8h.html | 22 +- 387 files changed, 10810 insertions(+), 4170 deletions(-) create mode 100644 docs/man/man3/InspIRCd.3 create mode 100644 docs/man/man3/globals.h.3 create mode 100644 docs/man/man3/inspircd.h.3 create mode 100644 docs/man/man3/serverstats.3 create mode 100644 docs/module-doc/classInspIRCd-members.html create mode 100644 docs/module-doc/classInspIRCd.html create mode 100644 docs/module-doc/classInspIRCd__coll__graph.gif create mode 100644 docs/module-doc/classInspIRCd__coll__graph.map create mode 100644 docs/module-doc/classInspIRCd__coll__graph.md5 create mode 100644 docs/module-doc/classserverstats-members.html create mode 100644 docs/module-doc/classserverstats.html create mode 100644 docs/module-doc/classserverstats__coll__graph.gif create mode 100644 docs/module-doc/classserverstats__coll__graph.map create mode 100644 docs/module-doc/classserverstats__coll__graph.md5 create mode 100644 docs/module-doc/globals_0x6b.html create mode 100644 docs/module-doc/globals_8h-source.html create mode 100644 docs/module-doc/globals_8h.html create mode 100644 docs/module-doc/globals_8h__dep__incl.gif create mode 100644 docs/module-doc/globals_8h__dep__incl.map create mode 100644 docs/module-doc/globals_8h__dep__incl.md5 create mode 100644 docs/module-doc/globals_8h__incl.gif create mode 100644 docs/module-doc/globals_8h__incl.map create mode 100644 docs/module-doc/globals_8h__incl.md5 create mode 100644 docs/module-doc/inherit__graph__12.gif create mode 100644 docs/module-doc/inherit__graph__12.map create mode 100644 docs/module-doc/inherit__graph__12.md5 create mode 100644 docs/module-doc/inherit__graph__13.gif create mode 100644 docs/module-doc/inherit__graph__13.map create mode 100644 docs/module-doc/inherit__graph__13.md5 create mode 100644 docs/module-doc/inspircd_8h-source.html create mode 100644 docs/module-doc/inspircd_8h.html create mode 100644 docs/module-doc/inspircd_8h__dep__incl.gif create mode 100644 docs/module-doc/inspircd_8h__dep__incl.map create mode 100644 docs/module-doc/inspircd_8h__dep__incl.md5 create mode 100644 docs/module-doc/inspircd_8h__incl.gif create mode 100644 docs/module-doc/inspircd_8h__incl.map create mode 100644 docs/module-doc/inspircd_8h__incl.md5 diff --git a/docs/man/man3/Admin.3 b/docs/man/man3/Admin.3 index 31a231609..b2148e15a 100644 --- a/docs/man/man3/Admin.3 +++ b/docs/man/man3/Admin.3 @@ -43,10 +43,10 @@ Definition at line 125 of file modules.h. .PP .SS "Admin::Admin (\fBstd::string\fP name, \fBstd::string\fP email, \fBstd::string\fP nick)" .PP -Definition at line 171 of file modules.cpp. +Definition at line 163 of file modules.cpp. .PP .nf -171 : Name(name), Email(email), Nick(nick) { }; +163 : Name(name), Email(email), Nick(nick) { }; .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/BanItem.3 b/docs/man/man3/BanItem.3 index ae351b6a6..3b5a630f2 100644 --- a/docs/man/man3/BanItem.3 +++ b/docs/man/man3/BanItem.3 @@ -16,7 +16,7 @@ Inherits \fBHostItem\fP. .PP A subclass of \fBHostItem\fP designed to hold channel bans (+b). .PP -Definition at line 52 of file channels.h. +Definition at line 54 of file channels.h. .SH "Author" .PP diff --git a/docs/man/man3/ConfigReader.3 b/docs/man/man3/ConfigReader.3 index f0236bfe9..4812464bd 100644 --- a/docs/man/man3/ConfigReader.3 +++ b/docs/man/man3/ConfigReader.3 @@ -93,19 +93,19 @@ Default constructor. .PP This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure. .PP -Definition at line 739 of file modules.cpp. +Definition at line 731 of file modules.cpp. .PP References cache, ServerConfig::ClearStack(), CONF_FILE_NOT_FOUND, error, errorlog, ServerConfig::LoadConf(), and readerror. .PP .nf -740 { -741 Config->ClearStack(); -742 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -743 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -744 this->readerror = Config->LoadConf(CONFIG_FILE,this->cache,this->errorlog); -745 if (!this->readerror) -746 this->error = CONF_FILE_NOT_FOUND; -747 } +732 { +733 Config->ClearStack(); +734 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +735 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +736 this->readerror = Config->LoadConf(CONFIG_FILE,this->cache,this->errorlog); +737 if (!this->readerror) +738 this->error = CONF_FILE_NOT_FOUND; +739 } .fi .PP .SS "ConfigReader::ConfigReader (\fBstd::string\fP filename)" @@ -114,19 +114,19 @@ Overloaded constructor. .PP This constructor initialises the ConfigReader class to read a user-specified config file .PP -Definition at line 759 of file modules.cpp. +Definition at line 751 of file modules.cpp. .PP References cache, ServerConfig::ClearStack(), CONF_FILE_NOT_FOUND, error, errorlog, ServerConfig::LoadConf(), and readerror. .PP .nf -760 { -761 Config->ClearStack(); -762 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -763 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -764 this->readerror = Config->LoadConf(filename.c_str(),this->cache,this->errorlog); -765 if (!this->readerror) -766 this->error = CONF_FILE_NOT_FOUND; -767 }; +752 { +753 Config->ClearStack(); +754 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +755 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +756 this->readerror = Config->LoadConf(filename.c_str(),this->cache,this->errorlog); +757 if (!this->readerror) +758 this->error = CONF_FILE_NOT_FOUND; +759 }; .fi .PP .SS "ConfigReader::~ConfigReader ()" @@ -135,17 +135,17 @@ Default destructor. .PP This method destroys the ConfigReader class. .PP -Definition at line 750 of file modules.cpp. +Definition at line 742 of file modules.cpp. .PP References cache, and errorlog. .PP .nf -751 { -752 if (this->cache) -753 delete this->cache; -754 if (this->errorlog) -755 delete this->errorlog; -756 } +743 { +744 if (this->cache) +745 delete this->cache; +746 if (this->errorlog) +747 delete this->errorlog; +748 } .fi .PP .SH "Member Function Documentation" @@ -156,41 +156,41 @@ Dumps the list of errors in a config file to an output location. .PP If bail is true, then the program will abort. If bail is false and user points to a valid user record, the error report will be spooled to the given user by means of NOTICE. if bool is false AND user is false, the error report will be spooled to all opers by means of a NOTICE to all opers. .PP -Definition at line 838 of file modules.cpp. +Definition at line 830 of file modules.cpp. .PP -References errorlog, connection::fd, and userrec::nick. +References errorlog, connection::fd, userrec::nick, WriteOpers(), and WriteServ(). .PP .nf -839 { -840 if (bail) -841 { -842 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); -843 exit(0); -844 } -845 else -846 { -847 char dataline[1024]; -848 if (user) -849 { -850 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); -851 while (!errorlog->eof()) -852 { -853 errorlog->getline(dataline,1024); -854 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); -855 } -856 } -857 else -858 { -859 WriteOpers('There were errors in the configuration file:',user->nick); -860 while (!errorlog->eof()) -861 { -862 errorlog->getline(dataline,1024); -863 WriteOpers(dataline); -864 } -865 } -866 return; -867 } -868 } +831 { +832 if (bail) +833 { +834 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); +835 exit(0); +836 } +837 else +838 { +839 char dataline[1024]; +840 if (user) +841 { +842 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); +843 while (!errorlog->eof()) +844 { +845 errorlog->getline(dataline,1024); +846 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); +847 } +848 } +849 else +850 { +851 WriteOpers('There were errors in the configuration file:',user->nick); +852 while (!errorlog->eof()) +853 { +854 errorlog->getline(dataline,1024); +855 WriteOpers(dataline); +856 } +857 } +858 return; +859 } +860 } .fi .PP .SS "int ConfigReader::Enumerate (\fBstd::string\fP tag)" @@ -199,14 +199,14 @@ Counts the number of times a given tag appears in the config file. .PP This method counts the number of times a tag appears in a config file, for use where there are several tags of the same kind, e.g. with opers and connect types. It can be used with the index value of \fBConfigReader::ReadValue\fP to loop through all copies of a multiple instance tag. .PP -Definition at line 871 of file modules.cpp. +Definition at line 863 of file modules.cpp. .PP References cache, and ServerConfig::EnumConf(). .PP .nf -872 { -873 return Config->EnumConf(cache,tag.c_str()); -874 } +864 { +865 return Config->EnumConf(cache,tag.c_str()); +866 } .fi .PP .SS "int ConfigReader::EnumerateValues (\fBstd::string\fP tag, int index)" @@ -215,14 +215,14 @@ Returns the number of items within a tag. .PP For example if the tag was then this function would return 2. Spaces and newlines both qualify as valid seperators between values. .PP -Definition at line 876 of file modules.cpp. +Definition at line 868 of file modules.cpp. .PP References cache, and ServerConfig::EnumValues(). .PP .nf -877 { -878 return Config->EnumValues(cache, tag.c_str(), index); -879 } +869 { +870 return Config->EnumValues(cache, tag.c_str(), index); +871 } .fi .PP .SS "long ConfigReader::GetError ()" @@ -231,16 +231,16 @@ Returns the last error to occur. .PP Valid errors can be found by looking in \fBmodules.h\fP. Any nonzero value indicates an error condition. A call to \fBGetError()\fP resets the error flag back to 0. .PP -Definition at line 831 of file modules.cpp. +Definition at line 823 of file modules.cpp. .PP References error. .PP .nf -832 { -833 long olderr = this->error; -834 this->error = 0; -835 return olderr; -836 } +824 { +825 long olderr = this->error; +826 this->error = 0; +827 return olderr; +828 } .fi .PP .SS "bool ConfigReader::ReadFlag (\fBstd::string\fP tag, \fBstd::string\fP name, int index)" @@ -249,26 +249,26 @@ Retrieves a boolean value from the config file. .PP This method retrieves a boolean value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. The values '1', 'yes' and 'true' in the config file count as true to ReadFlag, and any other value counts as false. .PP -Definition at line 785 of file modules.cpp. +Definition at line 777 of file modules.cpp. .PP References cache, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf(). .PP .nf -786 { -787 char val[MAXBUF]; -788 char t[MAXBUF]; -789 char n[MAXBUF]; -790 strlcpy(t,tag.c_str(),MAXBUF); -791 strlcpy(n,name.c_str(),MAXBUF); -792 int res = Config->ReadConf(cache,t,n,index,val); -793 if (!res) -794 { -795 this->error = CONF_VALUE_NOT_FOUND; -796 return false; -797 } -798 std::string s = val; -799 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); -800 } +778 { +779 char val[MAXBUF]; +780 char t[MAXBUF]; +781 char n[MAXBUF]; +782 strlcpy(t,tag.c_str(),MAXBUF); +783 strlcpy(n,name.c_str(),MAXBUF); +784 int res = Config->ReadConf(cache,t,n,index,val); +785 if (!res) +786 { +787 this->error = CONF_VALUE_NOT_FOUND; +788 return false; +789 } +790 std::string s = val; +791 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); +792 } .fi .PP .SS "long ConfigReader::ReadInteger (\fBstd::string\fP tag, \fBstd::string\fP name, int index, bool needs_unsigned)" @@ -277,38 +277,38 @@ Retrieves an integer value from the config file. .PP This method retrieves an integer value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. Any invalid integer values in the tag will cause the objects error value to be set, and any call to \fBGetError()\fP will return CONF_INVALID_NUMBER to be returned. needs_unsigned is set if the number must be unsigned. If a signed number is placed into a tag which is specified unsigned, 0 will be returned and \fBGetError()\fP will return CONF_NOT_UNSIGNED .PP -Definition at line 802 of file modules.cpp. +Definition at line 794 of file modules.cpp. .PP References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf(). .PP .nf -803 { -804 char val[MAXBUF]; -805 char t[MAXBUF]; -806 char n[MAXBUF]; -807 strlcpy(t,tag.c_str(),MAXBUF); -808 strlcpy(n,name.c_str(),MAXBUF); -809 int res = Config->ReadConf(cache,t,n,index,val); -810 if (!res) -811 { -812 this->error = CONF_VALUE_NOT_FOUND; -813 return 0; +795 { +796 char val[MAXBUF]; +797 char t[MAXBUF]; +798 char n[MAXBUF]; +799 strlcpy(t,tag.c_str(),MAXBUF); +800 strlcpy(n,name.c_str(),MAXBUF); +801 int res = Config->ReadConf(cache,t,n,index,val); +802 if (!res) +803 { +804 this->error = CONF_VALUE_NOT_FOUND; +805 return 0; +806 } +807 for (unsigned int i = 0; i < strlen(val); i++) +808 { +809 if (!isdigit(val[i])) +810 { +811 this->error = CONF_NOT_A_NUMBER; +812 return 0; +813 } 814 } -815 for (unsigned int i = 0; i < strlen(val); i++) +815 if ((needs_unsigned) && (atoi(val)<0)) 816 { -817 if (!isdigit(val[i])) -818 { -819 this->error = CONF_NOT_A_NUMBER; -820 return 0; -821 } -822 } -823 if ((needs_unsigned) && (atoi(val)<0)) -824 { -825 this->error = CONF_NOT_UNSIGNED; -826 return 0; -827 } -828 return atoi(val); -829 } +817 this->error = CONF_NOT_UNSIGNED; +818 return 0; +819 } +820 return atoi(val); +821 } .fi .PP .SS "\fBstd::string\fP ConfigReader::ReadValue (\fBstd::string\fP tag, \fBstd::string\fP name, int index)" @@ -317,25 +317,25 @@ Retrieves a value from the config file. .PP This method retrieves a value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. .PP -Definition at line 769 of file modules.cpp. +Definition at line 761 of file modules.cpp. .PP References cache, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf(). .PP .nf -770 { -771 char val[MAXBUF]; -772 char t[MAXBUF]; -773 char n[MAXBUF]; -774 strlcpy(t,tag.c_str(),MAXBUF); -775 strlcpy(n,name.c_str(),MAXBUF); -776 int res = Config->ReadConf(cache,t,n,index,val); -777 if (!res) -778 { -779 this->error = CONF_VALUE_NOT_FOUND; -780 return ''; -781 } -782 return val; -783 } +762 { +763 char val[MAXBUF]; +764 char t[MAXBUF]; +765 char n[MAXBUF]; +766 strlcpy(t,tag.c_str(),MAXBUF); +767 strlcpy(n,name.c_str(),MAXBUF); +768 int res = Config->ReadConf(cache,t,n,index,val); +769 if (!res) +770 { +771 this->error = CONF_VALUE_NOT_FOUND; +772 return ''; +773 } +774 return val; +775 } .fi .PP .SS "bool ConfigReader::Verify ()" @@ -344,14 +344,14 @@ Returns true if a config file is valid. .PP This method is partially implemented and will only return false if the config file does not exist or could not be opened. .PP -Definition at line 881 of file modules.cpp. +Definition at line 873 of file modules.cpp. .PP References readerror. .PP .nf -882 { -883 return this->readerror; -884 } +874 { +875 return this->readerror; +876 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/Event.3 b/docs/man/man3/Event.3 index d47289f04..36017ae32 100644 --- a/docs/man/man3/Event.3 +++ b/docs/man/man3/Event.3 @@ -65,10 +65,10 @@ Definition at line 197 of file modules.h. .PP Create a new Event. .PP -Definition at line 202 of file modules.cpp. +Definition at line 194 of file modules.cpp. .PP .nf -202 : data(anydata), source(src), id(eventid) { }; +194 : data(anydata), source(src), id(eventid) { }; .fi .PP .SH "Member Function Documentation" @@ -77,14 +77,14 @@ Definition at line 202 of file modules.cpp. .PP Get the Event data. .PP -Definition at line 204 of file modules.cpp. +Definition at line 196 of file modules.cpp. .PP References data. .PP .nf -205 { -206 return this->data; -207 } +197 { +198 return this->data; +199 } .fi .PP .SS "\fBstd::string\fP Event::GetEventID ()" @@ -93,28 +93,28 @@ Get the event ID. .PP Use this to determine the event type for safe casting of the data .PP -Definition at line 220 of file modules.cpp. +Definition at line 212 of file modules.cpp. .PP References id. .PP .nf -221 { -222 return this->id; -223 } +213 { +214 return this->id; +215 } .fi .PP .SS "\fBModule\fP * Event::GetSource ()" .PP Get the event Source. .PP -Definition at line 209 of file modules.cpp. +Definition at line 201 of file modules.cpp. .PP References source. .PP .nf -210 { -211 return this->source; -212 } +202 { +203 return this->source; +204 } .fi .PP .SS "char * Event::Send ()\fC [virtual]\fP" @@ -125,15 +125,15 @@ The return result of an \fBEvent::Send()\fP will always be NULL as no replies ar .PP Implements \fBModuleMessage\fP. .PP -Definition at line 214 of file modules.cpp. +Definition at line 206 of file modules.cpp. .PP References FOREACH_MOD. .PP .nf -215 { -216 FOREACH_MOD OnEvent(this); -217 return NULL; -218 } +207 { +208 FOREACH_MOD OnEvent(this); +209 return NULL; +210 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/ExemptItem.3 b/docs/man/man3/ExemptItem.3 index 2420d3566..6ff6339ed 100644 --- a/docs/man/man3/ExemptItem.3 +++ b/docs/man/man3/ExemptItem.3 @@ -16,7 +16,7 @@ Inherits \fBHostItem\fP. .PP A subclass of \fBHostItem\fP designed to hold channel exempts (+e). .PP -Definition at line 60 of file channels.h. +Definition at line 62 of file channels.h. .SH "Author" .PP diff --git a/docs/man/man3/FileReader.3 b/docs/man/man3/FileReader.3 index f9688416d..ee136db97 100644 --- a/docs/man/man3/FileReader.3 +++ b/docs/man/man3/FileReader.3 @@ -66,11 +66,11 @@ Default constructor. .PP This method does not load any file into memory, you must use the LoadFile method after constructing the class this way. .PP -Definition at line 894 of file modules.cpp. +Definition at line 886 of file modules.cpp. .PP .nf -895 { -896 } +887 { +888 } .fi .PP .SS "FileReader::FileReader (\fBstd::string\fP filename)" @@ -79,16 +79,16 @@ Secondary constructor. .PP This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, \fBFileReader::FileSize\fP returns 0. .PP -Definition at line 887 of file modules.cpp. +Definition at line 879 of file modules.cpp. .PP -References fc. +References fc, and readfile(). .PP .nf -888 { -889 file_cache c; -890 readfile(c,filename.c_str()); -891 this->fc = c; -892 } +880 { +881 file_cache c; +882 readfile(c,filename.c_str()); +883 this->fc = c; +884 } .fi .PP .SS "FileReader::~FileReader ()" @@ -97,11 +97,11 @@ Default destructor. .PP This deletes the memory allocated to the file. .PP -Definition at line 906 of file modules.cpp. +Definition at line 898 of file modules.cpp. .PP .nf -907 { -908 } +899 { +900 } .fi .PP .SH "Member Function Documentation" @@ -110,21 +110,21 @@ Definition at line 906 of file modules.cpp. .PP Returns true if the file exists This function will return false if the file could not be opened. .PP -Definition at line 910 of file modules.cpp. +Definition at line 902 of file modules.cpp. .PP References fc. .PP .nf -911 { -912 if (fc.size() == 0) -913 { -914 return(false); -915 } -916 else -917 { -918 return(true); -919 } -920 } +903 { +904 if (fc.size() == 0) +905 { +906 return(false); +907 } +908 else +909 { +910 return(true); +911 } +912 } .fi .PP .SS "int FileReader::FileSize ()" @@ -133,14 +133,14 @@ Returns the size of the file in lines. .PP This method returns the number of lines in the read file. If it is 0, no lines have been read into memory, either because the file is empty or it does not exist, or cannot be opened due to permission problems. .PP -Definition at line 929 of file modules.cpp. +Definition at line 921 of file modules.cpp. .PP References fc. .PP .nf -930 { -931 return fc.size(); -932 } +922 { +923 return fc.size(); +924 } .fi .PP .SS "\fBstd::string\fP FileReader::GetLine (int x)" @@ -149,16 +149,16 @@ Retrieve one line from the file. .PP This method retrieves one line from the text file. If an empty non-NULL string is returned, the index was out of bounds, or the line had no data on it. .PP -Definition at line 922 of file modules.cpp. +Definition at line 914 of file modules.cpp. .PP References fc. .PP .nf -923 { -924 if ((x<0) || ((unsigned)x>fc.size())) -925 return ''; -926 return fc[x]; -927 } +915 { +916 if ((x<0) || ((unsigned)x>fc.size())) +917 return ''; +918 return fc[x]; +919 } .fi .PP .SS "void FileReader::LoadFile (\fBstd::string\fP filename)" @@ -167,16 +167,16 @@ Used to load a file. .PP This method loads a file into the class ready for GetLine and and other methods to be called. If the file could not be loaded, \fBFileReader::FileSize\fP returns 0. .PP -Definition at line 898 of file modules.cpp. +Definition at line 890 of file modules.cpp. .PP -References fc. +References fc, and readfile(). .PP .nf -899 { -900 file_cache c; -901 readfile(c,filename.c_str()); -902 this->fc = c; -903 } +891 { +892 file_cache c; +893 readfile(c,filename.c_str()); +894 this->fc = c; +895 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/HostItem.3 b/docs/man/man3/HostItem.3 index 0862d378e..2cd48e892 100644 --- a/docs/man/man3/HostItem.3 +++ b/docs/man/man3/HostItem.3 @@ -43,36 +43,36 @@ Holds an entry for a ban list, exemption list, or invite list. This class contains a single element in a channel list, such as a banlist. .PP -Definition at line 36 of file channels.h. +Definition at line 38 of file channels.h. .SH "Constructor & Destructor Documentation" .PP .SS "HostItem::HostItem ()\fC [inline]\fP" .PP -Definition at line 43 of file channels.h. +Definition at line 45 of file channels.h. .PP .nf -43 { /* stub */ } +45 { /* stub */ } .fi .PP .SS "virtual HostItem::~HostItem ()\fC [inline, virtual]\fP" .PP -Definition at line 44 of file channels.h. +Definition at line 46 of file channels.h. .PP .nf -44 { /* stub */ } +46 { /* stub */ } .fi .PP .SH "Member Data Documentation" .PP .SS "char \fBHostItem::data\fP[MAXBUF]" .PP -Definition at line 41 of file channels.h. +Definition at line 43 of file channels.h. .SS "char \fBHostItem::set_by\fP[NICKMAX]" .PP -Definition at line 40 of file channels.h. +Definition at line 42 of file channels.h. .SS "time_t \fBHostItem::set_time\fP" .PP -Definition at line 39 of file channels.h. +Definition at line 41 of file channels.h. .SH "Author" .PP diff --git a/docs/man/man3/InspIRCd.3 b/docs/man/man3/InspIRCd.3 new file mode 100644 index 000000000..5e2a718f7 --- /dev/null +++ b/docs/man/man3/InspIRCd.3 @@ -0,0 +1,71 @@ +.TH "InspIRCd" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +InspIRCd \- +.SH SYNOPSIS +.br +.PP +\fC#include \fP +.PP +.SS "Public Member Functions" + +.in +1c +.ti -1c +.RI "bool \fBLoadModule\fP (const char *filename)" +.br +.ti -1c +.RI "bool \fBUnloadModule\fP (const char *filename)" +.br +.ti -1c +.RI "\fBInspIRCd\fP (int argc, char **argv)" +.br +.ti -1c +.RI "int \fBRun\fP ()" +.br +.in -1c +.SS "Public Attributes" + +.in +1c +.ti -1c +.RI "time_t \fBstartup_time\fP" +.br +.in -1c +.SS "Private Member Functions" + +.in +1c +.ti -1c +.RI "void \fBerase_factory\fP (int j)" +.br +.ti -1c +.RI "void \fBerase_module\fP (int j)" +.br +.in -1c +.SH "Detailed Description" +.PP +Definition at line 95 of file inspircd.h. +.SH "Constructor & Destructor Documentation" +.PP +.SS "InspIRCd::InspIRCd (int argc, char ** argv)" +.PP +.SH "Member Function Documentation" +.PP +.SS "void InspIRCd::erase_factory (int j)\fC [private]\fP" +.PP +.SS "void InspIRCd::erase_module (int j)\fC [private]\fP" +.PP +.SS "bool InspIRCd::LoadModule (const char * filename)" +.PP +.SS "int InspIRCd::Run ()" +.PP +.SS "bool InspIRCd::UnloadModule (const char * filename)" +.PP +.SH "Member Data Documentation" +.PP +.SS "time_t \fBInspIRCd::startup_time\fP" +.PP +Definition at line 103 of file inspircd.h. + +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/InspSocket.3 b/docs/man/man3/InspSocket.3 index fc39dc8e6..06bd1e1cf 100644 --- a/docs/man/man3/InspSocket.3 +++ b/docs/man/man3/InspSocket.3 @@ -212,7 +212,7 @@ This constructor is used to create a new socket, either listening for connection .PP Definition at line 62 of file socket.cpp. .PP -References SocketEngine::AddFd(), addr, addy, BindSocket(), Close(), DEBUG, fd, I_CONNECTING, I_ERR_BIND, I_ERR_CONNECT, I_ERR_SOCKET, I_ERROR, I_LISTENING, IP, OnError(), OpenTCPSocket(), state, timeout, timeout_end, and X_ESTAB_MODULE. +References SocketEngine::AddFd(), addr, addy, BindSocket(), Close(), DEBUG, ERROR, fd, I_CONNECTING, I_ERR_BIND, I_ERR_CONNECT, I_ERR_SOCKET, I_ERROR, I_LISTENING, IP, log(), OnError(), OpenTCPSocket(), state, timeout, timeout_end, and X_ESTAB_MODULE. .PP .nf 63 { @@ -540,7 +540,7 @@ Reads all pending bytes from the socket into a char* array which can be up to 16 .PP Definition at line 158 of file socket.cpp. .PP -References DEBUG, and ibuf. +References DEBUG, ibuf, and log(). .PP .nf 159 { @@ -566,7 +566,7 @@ The core uses this to change socket states, and you should not call it directly. .PP Definition at line 248 of file socket.cpp. .PP -References DEBUG, and state. +References DEBUG, log(), and state. .PP Referenced by Poll(). .PP diff --git a/docs/man/man3/InviteItem.3 b/docs/man/man3/InviteItem.3 index 618052d99..03eeb6189 100644 --- a/docs/man/man3/InviteItem.3 +++ b/docs/man/man3/InviteItem.3 @@ -16,7 +16,7 @@ Inherits \fBHostItem\fP. .PP A subclass of \fBHostItem\fP designed to hold channel invites (+I). .PP -Definition at line 68 of file channels.h. +Definition at line 70 of file channels.h. .SH "Author" .PP diff --git a/docs/man/man3/ModeParameter.3 b/docs/man/man3/ModeParameter.3 index 75add436a..c1af78bc6 100644 --- a/docs/man/man3/ModeParameter.3 +++ b/docs/man/man3/ModeParameter.3 @@ -31,22 +31,22 @@ Holds a custom parameter to a module-defined channel mode e.g. for +L this would hold the channel name. .PP -Definition at line 77 of file channels.h. +Definition at line 79 of file channels.h. .SH "Member Data Documentation" .PP .SS "char \fBModeParameter::channel\fP[CHANMAX]" .PP -Definition at line 82 of file channels.h. +Definition at line 84 of file channels.h. .PP Referenced by chanrec::SetCustomModeParam(). .SS "char \fBModeParameter::mode\fP" .PP -Definition at line 80 of file channels.h. +Definition at line 82 of file channels.h. .PP Referenced by chanrec::SetCustomModeParam(). .SS "char \fBModeParameter::parameter\fP[MAXBUF]" .PP -Definition at line 81 of file channels.h. +Definition at line 83 of file channels.h. .PP Referenced by chanrec::SetCustomModeParam(). diff --git a/docs/man/man3/Module.3 b/docs/man/man3/Module.3 index 5dea65737..111e53012 100644 --- a/docs/man/man3/Module.3 +++ b/docs/man/man3/Module.3 @@ -2,7 +2,7 @@ .ad l .nh .SH NAME -Module \- Base class for all InspIRCd modules This class is the base class for InspIRCd modules. +Module \- Base class for all \fBInspIRCd\fP modules This class is the base class for \fBInspIRCd\fP modules. .PP .SH SYNOPSIS @@ -336,7 +336,7 @@ Inherits \fBclassbase\fP. .in -1c .SH "Detailed Description" .PP -Base class for all InspIRCd modules This class is the base class for InspIRCd modules. +Base class for all \fBInspIRCd\fP modules This class is the base class for \fBInspIRCd\fP modules. All modules must inherit from this class, its methods will be called when irc server events occur. class inherited from module must be instantiated by the \fBModuleFactory\fP class (see relevent section) for the plugin to be initialised. .PP @@ -354,20 +354,20 @@ Default constructor Creates a module class. .PP .PP -Definition at line 228 of file modules.cpp. +Definition at line 220 of file modules.cpp. .PP .nf -228 { } +220 { } .fi .PP .SS "Module::~Module ()\fC [virtual]\fP" .PP Default destructor destroys a module class. .PP -Definition at line 229 of file modules.cpp. +Definition at line 221 of file modules.cpp. .PP .nf -229 { } +221 { } .fi .PP .SH "Member Function Documentation" @@ -378,12 +378,12 @@ Returns the version number of a Module. .PP The method should return a \fBVersion\fP object with its version information assigned via \fBVersion::Version\fP .PP -Definition at line 240 of file modules.cpp. +Definition at line 232 of file modules.cpp. .PP References VF_VENDOR. .PP .nf -240 { return Version(1,0,0,0,VF_VENDOR); } +232 { return Version(1,0,0,0,VF_VENDOR); } .fi .PP .SS "void Module::On005Numeric (\fBstd::string\fP & output)\fC [virtual]\fP" @@ -399,10 +399,10 @@ The module should modify the 005 numeric if needed to indicate its features. .PP .PP -Definition at line 250 of file modules.cpp. +Definition at line 242 of file modules.cpp. .PP .nf -250 { }; +242 { }; .fi .PP .SS "int Module::OnAccessCheck (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel, int access_type)\fC [virtual]\fP" @@ -446,12 +446,12 @@ This function is called before many functions which check a users status on a ch .PP .PP -Definition at line 249 of file modules.cpp. +Definition at line 241 of file modules.cpp. .PP References ACR_DEFAULT. .PP .nf -249 { return ACR_DEFAULT; }; +241 { return ACR_DEFAULT; }; .fi .PP .SS "int Module::OnAddBan (\fBuserrec\fP * source, \fBchanrec\fP * channel, \fBstd::string\fP banmask)\fC [virtual]\fP" @@ -476,10 +476,10 @@ Return a non-zero value to 'eat' the mode change and prevent the ban from being .PP .PP -Definition at line 275 of file modules.cpp. +Definition at line 267 of file modules.cpp. .PP .nf -275 { return 0; }; +267 { return 0; }; .fi .PP .SS "void Module::OnAddELine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -501,10 +501,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 301 of file modules.cpp. +Definition at line 293 of file modules.cpp. .PP .nf -301 { }; +293 { }; .fi .PP .SS "void Module::OnAddGLine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -526,10 +526,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 297 of file modules.cpp. +Definition at line 289 of file modules.cpp. .PP .nf -297 { }; +289 { }; .fi .PP .SS "void Module::OnAddKLine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -551,10 +551,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 299 of file modules.cpp. +Definition at line 291 of file modules.cpp. .PP .nf -299 { }; +291 { }; .fi .PP .SS "void Module::OnAddQLine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP nickmask)\fC [virtual]\fP" @@ -576,10 +576,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 300 of file modules.cpp. +Definition at line 292 of file modules.cpp. .PP .nf -300 { }; +292 { }; .fi .PP .SS "void Module::OnAddZLine (long duration, \fBuserrec\fP * source, \fBstd::string\fP reason, \fBstd::string\fP ipmask)\fC [virtual]\fP" @@ -601,10 +601,10 @@ This method is triggered after the line is added. .PP .PP -Definition at line 298 of file modules.cpp. +Definition at line 290 of file modules.cpp. .PP .nf -298 { }; +290 { }; .fi .PP .SS "void Module::OnBackgroundTimer (time_t curtime)\fC [virtual]\fP" @@ -620,10 +620,10 @@ This timer can be used to control timed features. Its period is not accurate eno .PP .PP -Definition at line 254 of file modules.cpp. +Definition at line 246 of file modules.cpp. .PP .nf -254 { }; +246 { }; .fi .PP .SS "void Module::OnChangeHost (\fBuserrec\fP * user, \fBstd::string\fP newhost)\fC [virtual]\fP" @@ -641,10 +641,10 @@ This event triggers after the host has been set. .PP .PP -Definition at line 295 of file modules.cpp. +Definition at line 287 of file modules.cpp. .PP .nf -295 { }; +287 { }; .fi .PP .SS "int Module::OnChangeLocalUserGECOS (\fBuserrec\fP * user, \fBstd::string\fP newhost)\fC [virtual]\fP" @@ -667,10 +667,10 @@ return 1 to deny the name change, or 0 to allow it. .PP .PP -Definition at line 268 of file modules.cpp. +Definition at line 260 of file modules.cpp. .PP .nf -268 { return 0; }; +260 { return 0; }; .fi .PP .SS "int Module::OnChangeLocalUserHost (\fBuserrec\fP * user, \fBstd::string\fP newhost)\fC [virtual]\fP" @@ -693,10 +693,10 @@ Return 1 to deny the host change, or 0 to allow it. .PP .PP -Definition at line 267 of file modules.cpp. +Definition at line 259 of file modules.cpp. .PP .nf -267 { return 0; }; +259 { return 0; }; .fi .PP .SS "void Module::OnChangeName (\fBuserrec\fP * user, \fBstd::string\fP gecos)\fC [virtual]\fP" @@ -714,10 +714,10 @@ This event triggers after the name has been set. .PP .PP -Definition at line 296 of file modules.cpp. +Definition at line 288 of file modules.cpp. .PP .nf -296 { }; +288 { }; .fi .PP .SS "int Module::OnCheckBan (\fBuserrec\fP * user, \fBchanrec\fP * chan)\fC [virtual]\fP" @@ -740,10 +740,10 @@ This method will always be called for each join, wether or not the user actually .PP .PP -Definition at line 265 of file modules.cpp. +Definition at line 257 of file modules.cpp. .PP .nf -265 { return 0; }; +257 { return 0; }; .fi .PP .SS "int Module::OnCheckInvite (\fBuserrec\fP * user, \fBchanrec\fP * chan)\fC [virtual]\fP" @@ -766,10 +766,10 @@ This method will always be called for each join, wether or not the channel is ac .PP .PP -Definition at line 262 of file modules.cpp. +Definition at line 254 of file modules.cpp. .PP .nf -262 { return 0; }; +254 { return 0; }; .fi .PP .SS "int Module::OnCheckKey (\fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP keygiven)\fC [virtual]\fP" @@ -792,10 +792,10 @@ This method will always be called for each join, wether or not the channel is ac .PP .PP -Definition at line 263 of file modules.cpp. +Definition at line 255 of file modules.cpp. .PP .nf -263 { return 0; }; +255 { return 0; }; .fi .PP .SS "int Module::OnCheckLimit (\fBuserrec\fP * user, \fBchanrec\fP * chan)\fC [virtual]\fP" @@ -818,10 +818,10 @@ This method will always be called for each join, wether or not the channel is ac .PP .PP -Definition at line 264 of file modules.cpp. +Definition at line 256 of file modules.cpp. .PP .nf -264 { return 0; }; +256 { return 0; }; .fi .PP .SS "bool Module::OnCheckReady (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -842,10 +842,10 @@ true to indicate readiness, false if otherwise .PP .PP -Definition at line 257 of file modules.cpp. +Definition at line 249 of file modules.cpp. .PP .nf -257 { return true; }; +249 { return true; }; .fi .PP .SS "void Module::OnCleanup (int target_type, void * item)\fC [virtual]\fP" @@ -863,10 +863,10 @@ This method is called once for every user and channel on the network, so that wh .PP .PP -Definition at line 307 of file modules.cpp. +Definition at line 299 of file modules.cpp. .PP .nf -307 { }; +299 { }; .fi .PP .SS "void Module::OnDecodeMetaData (int target_type, void * target, \fBstd::string\fP extname, \fBstd::string\fP extdata)\fC [virtual]\fP" @@ -888,10 +888,10 @@ Please see src/modules/m_swhois.cpp for a working example of how to use this met .PP .PP -Definition at line 292 of file modules.cpp. +Definition at line 284 of file modules.cpp. .PP .nf -292 { }; +284 { }; .fi .PP .SS "int Module::OnDelBan (\fBuserrec\fP * source, \fBchanrec\fP * channel, \fBstd::string\fP banmask)\fC [virtual]\fP" @@ -916,10 +916,10 @@ Return a non-zero value to 'eat' the mode change and prevent the ban from being .PP .PP -Definition at line 276 of file modules.cpp. +Definition at line 268 of file modules.cpp. .PP .nf -276 { return 0; }; +268 { return 0; }; .fi .PP .SS "void Module::OnDelELine (\fBuserrec\fP * source, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -937,10 +937,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 306 of file modules.cpp. +Definition at line 298 of file modules.cpp. .PP .nf -306 { }; +298 { }; .fi .PP .SS "void Module::OnDelGLine (\fBuserrec\fP * source, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -958,10 +958,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 302 of file modules.cpp. +Definition at line 294 of file modules.cpp. .PP .nf -302 { }; +294 { }; .fi .PP .SS "void Module::OnDelKLine (\fBuserrec\fP * source, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -979,10 +979,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 304 of file modules.cpp. +Definition at line 296 of file modules.cpp. .PP .nf -304 { }; +296 { }; .fi .PP .SS "void Module::OnDelQLine (\fBuserrec\fP * source, \fBstd::string\fP nickmask)\fC [virtual]\fP" @@ -1000,10 +1000,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 305 of file modules.cpp. +Definition at line 297 of file modules.cpp. .PP .nf -305 { }; +297 { }; .fi .PP .SS "void Module::OnDelZLine (\fBuserrec\fP * source, \fBstd::string\fP ipmask)\fC [virtual]\fP" @@ -1021,10 +1021,10 @@ This method is triggered after the line is deleted. .PP .PP -Definition at line 303 of file modules.cpp. +Definition at line 295 of file modules.cpp. .PP .nf -303 { }; +295 { }; .fi .PP .SS "void Module::OnEvent (\fBEvent\fP * event)\fC [virtual]\fP" @@ -1040,10 +1040,10 @@ Please see the documentation of \fBEvent::Send()\fP for further information. The .PP .PP -Definition at line 270 of file modules.cpp. +Definition at line 262 of file modules.cpp. .PP .nf -270 { return; }; +262 { return; }; .fi .PP .SS "int Module::OnExtendedMode (\fBuserrec\fP * user, void * target, char modechar, int type, bool mode_on, \fBstring_list\fP & params)\fC [virtual]\fP" @@ -1069,10 +1069,10 @@ The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the .PP .PP -Definition at line 238 of file modules.cpp. +Definition at line 230 of file modules.cpp. .PP .nf -238 { return false; } +230 { return false; } .fi .PP .SS "void Module::OnGetServerDescription (\fBstd::string\fP servername, \fBstd::string\fP & description)\fC [virtual]\fP" @@ -1090,10 +1090,10 @@ You may change or define the description given in \fBstd::string\fP &description .PP .PP -Definition at line 286 of file modules.cpp. +Definition at line 278 of file modules.cpp. .PP .nf -286 { }; +278 { }; .fi .PP .SS "void Module::OnGlobalConnect (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1109,10 +1109,10 @@ This event is informational only. You should not change any user information in .PP .PP -Definition at line 274 of file modules.cpp. +Definition at line 266 of file modules.cpp. .PP .nf -274 { }; +266 { }; .fi .PP .SS "void Module::OnGlobalOper (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1128,10 +1128,10 @@ You cannot override this and prevent it from happening as it is already happened .PP .PP -Definition at line 273 of file modules.cpp. +Definition at line 265 of file modules.cpp. .PP .nf -273 { }; +265 { }; .fi .PP .SS "void Module::OnInfo (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1149,10 +1149,10 @@ The userrec will contain the information of the user who typed the command. Modu .PP .PP -Definition at line 242 of file modules.cpp. +Definition at line 234 of file modules.cpp. .PP .nf -242 { }; +234 { }; .fi .PP .SS "int Module::OnKill (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1177,10 +1177,10 @@ If a client is killed by a server, e.g. a nickname collision or protocol error, .PP .PP -Definition at line 251 of file modules.cpp. +Definition at line 243 of file modules.cpp. .PP .nf -251 { return 0; }; +243 { return 0; }; .fi .PP .SS "void Module::OnLoadModule (\fBModule\fP * mod, \fBstd::string\fP name)\fC [virtual]\fP" @@ -1198,10 +1198,10 @@ mod will contain a pointer to the module, and string will contain its name, for .PP .PP -Definition at line 252 of file modules.cpp. +Definition at line 244 of file modules.cpp. .PP .nf -252 { }; +244 { }; .fi .PP .SS "int Module::OnLocalTopicChange (\fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP topic)\fC [virtual]\fP" @@ -1223,10 +1223,10 @@ Return 1 to deny the topic change, or 0 to allow it. .PP .PP -Definition at line 269 of file modules.cpp. +Definition at line 261 of file modules.cpp. .PP .nf -269 { return 0; }; +261 { return 0; }; .fi .PP .SS "void Module::OnMode (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1248,10 +1248,10 @@ The text variable contains the remainder of the mode string after the target, e. .PP .PP -Definition at line 239 of file modules.cpp. +Definition at line 231 of file modules.cpp. .PP .nf -239 { }; +231 { }; .fi .PP .SS "void Module::OnOper (\fBuserrec\fP * user, \fBstd::string\fP opertype)\fC [virtual]\fP" @@ -1269,10 +1269,10 @@ The userrec will contain the oper mode 'o' as this function is called after any .PP .PP -Definition at line 241 of file modules.cpp. +Definition at line 233 of file modules.cpp. .PP .nf -241 { }; +233 { }; .fi .PP .SS "int Module::OnOperCompare (\fBstd::string\fP password, \fBstd::string\fP input)\fC [virtual]\fP" @@ -1295,10 +1295,10 @@ The password field (from the config file) is in 'password' and is to be compared .PP .PP -Definition at line 272 of file modules.cpp. +Definition at line 264 of file modules.cpp. .PP .nf -272 { return 0; }; +264 { return 0; }; .fi .PP .SS "void Module::OnPostLocalTopicChange (\fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP topic)\fC [virtual]\fP" @@ -1318,10 +1318,10 @@ To block topic changes you must use OnLocalTopicChange instead. .PP .PP -Definition at line 285 of file modules.cpp. +Definition at line 277 of file modules.cpp. .PP .nf -285 { }; +277 { }; .fi .PP .SS "int Module::OnPreCommand (\fBstd::string\fP command, char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" @@ -1348,10 +1348,10 @@ This event occurs for all registered commands, wether they are registered in the .PP .PP -Definition at line 256 of file modules.cpp. +Definition at line 248 of file modules.cpp. .PP .nf -256 { return 0; }; +248 { return 0; }; .fi .PP .SS "int Module::OnRawMode (\fBuserrec\fP * user, \fBchanrec\fP * chan, char mode, \fBstd::string\fP param, bool adding, int pcnt)\fC [virtual]\fP" @@ -1382,10 +1382,10 @@ Return 1 from this function to block the mode character from being processed ent .PP .PP -Definition at line 261 of file modules.cpp. +Definition at line 253 of file modules.cpp. .PP .nf -261 { return 0; }; +253 { return 0; }; .fi .PP .SS "void Module::OnRawSocketAccept (int fd, \fBstd::string\fP ip, int localport)\fC [virtual]\fP" @@ -1405,10 +1405,10 @@ This is intended for raw socket processing (e.g. modules which wrap the tcp conn .PP .PP -Definition at line 277 of file modules.cpp. +Definition at line 269 of file modules.cpp. .PP .nf -277 { }; +269 { }; .fi .PP .SS "void Module::OnRawSocketClose (int fd)\fC [virtual]\fP" @@ -1424,10 +1424,10 @@ When this event is called, shutdown() has not yet been called on the socket. .PP .PP -Definition at line 279 of file modules.cpp. +Definition at line 271 of file modules.cpp. .PP .nf -279 { }; +271 { }; .fi .PP .SS "int Module::OnRawSocketRead (int fd, char * buffer, unsigned int count, int & readresult)\fC [virtual]\fP" @@ -1454,10 +1454,10 @@ nonzero if the event was handled, in which case readresult must be valid on exit .PP .PP -Definition at line 280 of file modules.cpp. +Definition at line 272 of file modules.cpp. .PP .nf -280 { return 0; }; +272 { return 0; }; .fi .PP .SS "int Module::OnRawSocketWrite (int fd, char * buffer, int count)\fC [virtual]\fP" @@ -1482,10 +1482,10 @@ Number of characters actually written or 0 if you didn't handle the operation .PP .PP -Definition at line 278 of file modules.cpp. +Definition at line 270 of file modules.cpp. .PP .nf -278 { return 0; }; +270 { return 0; }; .fi .PP .SS "void Module::OnRehash (\fBstd::string\fP parameter)\fC [virtual]\fP" @@ -1501,10 +1501,10 @@ This method is called prior to a /REHASH or when a SIGHUP is received from the o .PP .PP -Definition at line 235 of file modules.cpp. +Definition at line 227 of file modules.cpp. .PP .nf -235 { } +227 { } .fi .PP .SS "void Module::OnRemoteKill (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1522,10 +1522,10 @@ Called when an oper wants to disconnect a remote user via KILL. .PP .PP -Definition at line 283 of file modules.cpp. +Definition at line 275 of file modules.cpp. .PP .nf -283 { }; +275 { }; .fi .PP .SS "char * Module::OnRequest (\fBRequest\fP * request)\fC [virtual]\fP" @@ -1541,12 +1541,12 @@ Please see the documentation of \fBRequest::Send()\fP for further information. T .PP .PP -Definition at line 271 of file modules.cpp. +Definition at line 263 of file modules.cpp. .PP Referenced by Request::Send(). .PP .nf -271 { return NULL; }; +263 { return NULL; }; .fi .PP .SS "void Module::OnSendList (\fBuserrec\fP * user, \fBchanrec\fP * channel, char mode)\fC [virtual]\fP" @@ -1566,10 +1566,10 @@ For example, when a /MODE channel +b (without any other parameters) is called, i .PP .PP -Definition at line 255 of file modules.cpp. +Definition at line 247 of file modules.cpp. .PP .nf -255 { }; +247 { }; .fi .PP .SS "void Module::OnServerRaw (\fBstd::string\fP & raw, bool inbound, \fBuserrec\fP * user)\fC [virtual]\fP" @@ -1589,10 +1589,10 @@ This method is the lowest level of handler available to a module. It will be cal .PP .PP -Definition at line 236 of file modules.cpp. +Definition at line 228 of file modules.cpp. .PP .nf -236 { } +228 { } .fi .PP .SS "void Module::OnStats (char symbol)\fC [virtual]\fP" @@ -1606,10 +1606,10 @@ Called on all /STATS commands This method is triggered for all /STATS use, inclu .PP .PP -Definition at line 266 of file modules.cpp. +Definition at line 258 of file modules.cpp. .PP .nf -266 { }; +258 { }; .fi .PP .SS "void Module::OnSyncChannel (\fBchanrec\fP * chan, \fBModule\fP * proto, void * opaque)\fC [virtual]\fP" @@ -1631,18 +1631,18 @@ For a good example of how to use this function, please see src/modules/m_chanpro .PP .PP -Definition at line 288 of file modules.cpp. +Definition at line 280 of file modules.cpp. .PP .nf -288 { }; +280 { }; .fi .PP .SS "void Module::OnSyncChannelMetaData (\fBchanrec\fP * chan, \fBModule\fP * proto, void * opaque, \fBstd::string\fP extname)\fC [virtual]\fP" .PP -Definition at line 290 of file modules.cpp. +Definition at line 282 of file modules.cpp. .PP .nf -290 { }; +282 { }; .fi .PP .SS "void Module::OnSyncUser (\fBuserrec\fP * user, \fBModule\fP * proto, void * opaque)\fC [virtual]\fP" @@ -1662,18 +1662,18 @@ When this function is called, it will be called from the module which implements .PP .PP -Definition at line 287 of file modules.cpp. +Definition at line 279 of file modules.cpp. .PP .nf -287 { }; +279 { }; .fi .PP .SS "void Module::OnSyncUserMetaData (\fBuserrec\fP * user, \fBModule\fP * proto, void * opaque, \fBstd::string\fP extname)\fC [virtual]\fP" .PP -Definition at line 291 of file modules.cpp. +Definition at line 283 of file modules.cpp. .PP .nf -291 { }; +283 { }; .fi .PP .SS "void Module::OnUnloadModule (\fBModule\fP * mod, \fBstd::string\fP name)\fC [virtual]\fP" @@ -1691,10 +1691,10 @@ mod will contain a pointer to the module, and string will contain its name, for .PP .PP -Definition at line 253 of file modules.cpp. +Definition at line 245 of file modules.cpp. .PP .nf -253 { }; +245 { }; .fi .PP .SS "void Module::OnUserConnect (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1710,10 +1710,10 @@ The details of the connecting user are available to you in the parameter userrec .PP .PP -Definition at line 230 of file modules.cpp. +Definition at line 222 of file modules.cpp. .PP .nf -230 { } +222 { } .fi .PP .SS "void Module::OnUserDisconnect (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -1729,10 +1729,10 @@ The details of the exiting user are available to you in the parameter userrec *u .PP .PP -Definition at line 232 of file modules.cpp. +Definition at line 224 of file modules.cpp. .PP .nf -232 { } +224 { } .fi .PP .SS "void Module::OnUserInvite (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel)\fC [virtual]\fP" @@ -1752,10 +1752,10 @@ You cannot prevent the invite from occuring using this function, to do that, use .PP .PP -Definition at line 284 of file modules.cpp. +Definition at line 276 of file modules.cpp. .PP .nf -284 { }; +276 { }; .fi .PP .SS "void Module::OnUserJoin (\fBuserrec\fP * user, \fBchanrec\fP * channel)\fC [virtual]\fP" @@ -1773,10 +1773,10 @@ The details of the joining user are available to you in the parameter userrec *u .PP .PP -Definition at line 233 of file modules.cpp. +Definition at line 225 of file modules.cpp. .PP .nf -233 { } +225 { } .fi .PP .SS "void Module::OnUserKick (\fBuserrec\fP * source, \fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1798,10 +1798,10 @@ If this method is called, the kick is already underway and cannot be prevented, .PP .PP -Definition at line 260 of file modules.cpp. +Definition at line 252 of file modules.cpp. .PP .nf -260 { }; +252 { }; .fi .PP .SS "void Module::OnUserMessage (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1823,10 +1823,10 @@ The dest variable contains a userrec* if target_type is TYPE_USER and a chanrec* .PP .PP -Definition at line 281 of file modules.cpp. +Definition at line 273 of file modules.cpp. .PP .nf -281 { }; +273 { }; .fi .PP .SS "void Module::OnUserNotice (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1848,10 +1848,10 @@ The dest variable contains a userrec* if target_type is TYPE_USER and a chanrec* .PP .PP -Definition at line 282 of file modules.cpp. +Definition at line 274 of file modules.cpp. .PP .nf -282 { }; +274 { }; .fi .PP .SS "void Module::OnUserPart (\fBuserrec\fP * user, \fBchanrec\fP * channel)\fC [virtual]\fP" @@ -1869,10 +1869,10 @@ The details of the leaving user are available to you in the parameter userrec *u .PP .PP -Definition at line 234 of file modules.cpp. +Definition at line 226 of file modules.cpp. .PP .nf -234 { } +226 { } .fi .PP .SS "void Module::OnUserPostNick (\fBuserrec\fP * user, \fBstd::string\fP oldnick)\fC [virtual]\fP" @@ -1890,10 +1890,10 @@ This can be used to track users after nickchanges have been applied. Please note .PP .PP -Definition at line 248 of file modules.cpp. +Definition at line 240 of file modules.cpp. .PP .nf -248 { }; +240 { }; .fi .PP .SS "int Module::OnUserPreInvite (\fBuserrec\fP * source, \fBuserrec\fP * dest, \fBchanrec\fP * channel)\fC [virtual]\fP" @@ -1918,10 +1918,10 @@ Returning 1 from this function stops the process immediately, causing no output .PP .PP -Definition at line 244 of file modules.cpp. +Definition at line 236 of file modules.cpp. .PP .nf -244 { return 0; }; +236 { return 0; }; .fi .PP .SS "int Module::OnUserPreJoin (\fBuserrec\fP * user, \fBchanrec\fP * chan, const char * cname)\fC [virtual]\fP" @@ -1948,10 +1948,10 @@ If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be .PP .PP -Definition at line 237 of file modules.cpp. +Definition at line 229 of file modules.cpp. .PP .nf -237 { return 0; } +229 { return 0; } .fi .PP .SS "int Module::OnUserPreKick (\fBuserrec\fP * source, \fBuserrec\fP * user, \fBchanrec\fP * chan, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1978,10 +1978,10 @@ Returning a value of 1 from this function stops the process immediately, causing .PP .PP -Definition at line 259 of file modules.cpp. +Definition at line 251 of file modules.cpp. .PP .nf -259 { return 0; }; +251 { return 0; }; .fi .PP .SS "int Module::OnUserPreMessage (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP & text)\fC [virtual]\fP" @@ -2008,10 +2008,10 @@ Returning any nonzero value from this function stops the process immediately, ca .PP .PP -Definition at line 245 of file modules.cpp. +Definition at line 237 of file modules.cpp. .PP .nf -245 { return 0; }; +237 { return 0; }; .fi .PP .SS "int Module::OnUserPreNick (\fBuserrec\fP * user, \fBstd::string\fP newnick)\fC [virtual]\fP" @@ -2034,10 +2034,10 @@ This can be used to implement Q-lines etc. Please note that although you can see .PP .PP -Definition at line 247 of file modules.cpp. +Definition at line 239 of file modules.cpp. .PP .nf -247 { return 0; }; +239 { return 0; }; .fi .PP .SS "int Module::OnUserPreNotice (\fBuserrec\fP * user, void * dest, int target_type, \fBstd::string\fP & text)\fC [virtual]\fP" @@ -2064,10 +2064,10 @@ Returning any nonzero value from this function stops the process immediately, ca .PP .PP -Definition at line 246 of file modules.cpp. +Definition at line 238 of file modules.cpp. .PP .nf -246 { return 0; }; +238 { return 0; }; .fi .PP .SS "void Module::OnUserQuit (\fBuserrec\fP * user, \fBstd::string\fP message)\fC [virtual]\fP" @@ -2085,10 +2085,10 @@ The details of the exiting user are available to you in the parameter userrec *u .PP .PP -Definition at line 231 of file modules.cpp. +Definition at line 223 of file modules.cpp. .PP .nf -231 { } +223 { } .fi .PP .SS "void Module::OnUserRegister (\fBuserrec\fP * user)\fC [virtual]\fP" @@ -2104,10 +2104,10 @@ before the user is sent the MOTD etc). Modules can use this method if they are p .PP .PP -Definition at line 258 of file modules.cpp. +Definition at line 250 of file modules.cpp. .PP .nf -258 { }; +250 { }; .fi .PP .SS "void Module::OnWallops (\fBuserrec\fP * user, \fBstd::string\fP text)\fC [virtual]\fP" @@ -2123,10 +2123,10 @@ Called after every WALLOPS command. .PP .PP -Definition at line 294 of file modules.cpp. +Definition at line 286 of file modules.cpp. .PP .nf -294 { }; +286 { }; .fi .PP .SS "void Module::OnWhois (\fBuserrec\fP * source, \fBuserrec\fP * dest)\fC [virtual]\fP" @@ -2144,10 +2144,10 @@ The source parameter contains the details of the user who issued the WHOIS comma .PP .PP -Definition at line 243 of file modules.cpp. +Definition at line 235 of file modules.cpp. .PP .nf -243 { }; +235 { }; .fi .PP .SS "void Module::ProtoSendMetaData (void * opaque, int target_type, void * target, \fBstd::string\fP extname, \fBstd::string\fP extdata)\fC [virtual]\fP" @@ -2173,10 +2173,10 @@ More documentation to follow soon. Please see src/modules/m_swhois.cpp for examp .PP .PP -Definition at line 293 of file modules.cpp. +Definition at line 285 of file modules.cpp. .PP .nf -293 { }; +285 { }; .fi .PP .SS "void Module::ProtoSendMode (void * opaque, int target_type, void * target, \fBstd::string\fP modeline)\fC [virtual]\fP" @@ -2200,10 +2200,10 @@ More documentation to follow soon. Please see src/modules/m_chanprotect.cpp for .PP .PP -Definition at line 289 of file modules.cpp. +Definition at line 281 of file modules.cpp. .PP .nf -289 { }; +281 { }; .fi .PP diff --git a/docs/man/man3/Request.3 b/docs/man/man3/Request.3 index ecaf1ef9a..e9353856c 100644 --- a/docs/man/man3/Request.3 +++ b/docs/man/man3/Request.3 @@ -65,10 +65,10 @@ Definition at line 157 of file modules.h. .PP Create a new Request. .PP -Definition at line 173 of file modules.cpp. +Definition at line 165 of file modules.cpp. .PP .nf -173 : data(anydata), source(src), dest(dst) { }; +165 : data(anydata), source(src), dest(dst) { }; .fi .PP .SH "Member Function Documentation" @@ -77,42 +77,42 @@ Definition at line 173 of file modules.cpp. .PP Fetch the Request data. .PP -Definition at line 175 of file modules.cpp. +Definition at line 167 of file modules.cpp. .PP References data. .PP .nf -176 { -177 return this->data; -178 } +168 { +169 return this->data; +170 } .fi .PP .SS "\fBModule\fP * Request::GetDest ()" .PP Fetch the request destination (should be 'this' in the receiving module). .PP -Definition at line 185 of file modules.cpp. +Definition at line 177 of file modules.cpp. .PP References dest. .PP .nf -186 { -187 return this->dest; -188 } +178 { +179 return this->dest; +180 } .fi .PP .SS "\fBModule\fP * Request::GetSource ()" .PP Fetch the request source. .PP -Definition at line 180 of file modules.cpp. +Definition at line 172 of file modules.cpp. .PP References source. .PP .nf -181 { -182 return this->source; -183 } +173 { +174 return this->source; +175 } .fi .PP .SS "char * Request::Send ()\fC [virtual]\fP" @@ -123,21 +123,21 @@ Upon returning the result will be arbitary data returned by the module you sent .PP Implements \fBModuleMessage\fP. .PP -Definition at line 190 of file modules.cpp. +Definition at line 182 of file modules.cpp. .PP References dest, and Module::OnRequest(). .PP .nf -191 { -192 if (this->dest) -193 { -194 return dest->OnRequest(this); -195 } -196 else -197 { -198 return NULL; -199 } -200 } +183 { +184 if (this->dest) +185 { +186 return dest->OnRequest(this); +187 } +188 else +189 { +190 return NULL; +191 } +192 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/Server.3 b/docs/man/man3/Server.3 index 0584cb751..415ab762b 100644 --- a/docs/man/man3/Server.3 +++ b/docs/man/man3/Server.3 @@ -124,7 +124,7 @@ Inherits \fBclassbase\fP. .br .RI "\fIAdds an extended mode letter which is parsed by a module and handled in a list fashion. \fP" .ti -1c -.RI "virtual void \fBAddCommand\fP (char *cmd, handlerfunc f, char flags, int minparams, char *source)" +.RI "virtual void \fBAddCommand\fP (char *cmd, \fBhandlerfunc\fP f, char flags, int minparams, char *source)" .br .RI "\fIAdds a command to the command table. \fP" .ti -1c @@ -265,11 +265,11 @@ Default constructor. .PP Creates a Server object. .PP -Definition at line 313 of file modules.cpp. +Definition at line 305 of file modules.cpp. .PP .nf -314 { -315 } +306 { +307 } .fi .PP .SS "Server::~Server ()\fC [virtual]\fP" @@ -278,16 +278,16 @@ Default destructor. .PP Destroys a Server object. .PP -Definition at line 317 of file modules.cpp. +Definition at line 309 of file modules.cpp. .PP .nf -318 { -319 } +310 { +311 } .fi .PP .SH "Member Function Documentation" .PP -.SS "void Server::AddCommand (char * cmd, handlerfunc f, char flags, int minparams, char * source)\fC [virtual]\fP" +.SS "void Server::AddCommand (char * cmd, \fBhandlerfunc\fP f, char flags, int minparams, char * source)\fC [virtual]\fP" .PP Adds a command to the command table. .PP @@ -297,14 +297,14 @@ typedef void (handlerfunc) (char**, int, userrec*); ... void \fBhandle_kill(char .PP When the command is typed, the parameters will be placed into the parameters array (similar to argv) and the parameter count will be placed into pcnt (similar to argv). There will never be any less parameters than the 'minparams' value you specified when creating the command. The *user parameter is the class of the user which caused the command to trigger, who will always have the flag you specified in 'flags' when creating the initial command. For example to create an oper only command create the commands with flags='o'. The source parameter is used for resource tracking, and should contain the name of your module (with file extension) e.g. 'm_blarp.so'. If you place the wrong identifier here, you can cause crashes if your module is unloaded. .PP -Definition at line 419 of file modules.cpp. +Definition at line 411 of file modules.cpp. .PP References createcommand(). .PP .nf -420 { -421 createcommand(cmd,f,flags,minparams,source); -422 } +412 { +413 createcommand(cmd,f,flags,minparams,source); +414 } .fi .PP .SS "void Server::AddELine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -313,14 +313,14 @@ Adds a E-line The E-line is enforced as soon as it is added. .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 663 of file modules.cpp. +Definition at line 655 of file modules.cpp. .PP References add_eline(). .PP .nf -664 { -665 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -666 } +656 { +657 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +658 } .fi .PP .SS "bool Server::AddExtendedListMode (char modechar)\fC [virtual]\fP" @@ -337,19 +337,19 @@ This call is used to implement modes like +q and +a. The characteristics of thes .PP (4) The mode and its parameter are NOT stored in the channels modes structure .PP -It is down to the module handling the mode to maintain state and determine what 'items' (e.g. users, or a banlist) have the mode set on them, and process the modes at the correct times, e.g. during access checks on channels, etc. When the extended mode is triggered the OnExtendedMode method will be triggered as above. Note that the target you are given will be a channel, if for example your mode is set 'on a user' (in for example +a) you must use Server::Find to locate the user the mode is operating on. Your mode handler may return 1 to handle the mode AND tell the core to display the mode change, e.g. '+aaa one two three' in the case of the mode for 'two', or it may return -1 to 'eat' the mode change, so the above example would become '+aa one three' after processing. +It is down to the module handling the mode to maintain state and determine what 'items' (e.g. users, or a banlist) have the mode set on them, and process the modes at the correct times, e.g. during access checks on channels, etc. When the extended mode is triggered the OnExtendedMode method will be triggered as above. Note that the target you are given will be a channel, if for example your mode is set 'on a user' (in for example +a) you must use \fBServer::Find\fP to locate the user the mode is operating on. Your mode handler may return 1 to handle the mode AND tell the core to display the mode change, e.g. '+aaa one two three' in the case of the mode for 'two', or it may return -1 to 'eat' the mode change, so the above example would become '+aa one three' after processing. .PP -Definition at line 587 of file modules.cpp. +Definition at line 579 of file modules.cpp. .PP References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL. .PP .nf -588 { -589 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -590 if (res) -591 ModeMakeList(modechar); -592 return res; -593 } +580 { +581 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +582 if (res) +583 ModeMakeList(modechar); +584 return res; +585 } .fi .PP .SS "bool Server::AddExtendedMode (char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)\fC [virtual]\fP" @@ -358,37 +358,37 @@ Adds an extended mode letter which is parsed by a module. .PP This allows modules to add extra mode letters, e.g. +x for hostcloak. the 'type' parameter is either MT_CHANNEL, MT_CLIENT, or MT_SERVER, to indicate wether the mode is a channel mode, a client mode, or a server mode. requires_oper is used with MT_CLIENT type modes only to indicate the mode can only be set or unset by an oper. If this is used for MT_CHANNEL type modes it is ignored. params_when_on is the number of modes to expect when the mode is turned on (for type MT_CHANNEL only), e.g. with mode +k, this would have a value of 1. the params_when_off value has a similar value to params_when_on, except it indicates the number of parameters to expect when the mode is disabled. Modes which act in a similar way to channel mode +l (e.g. require a parameter to enable, but not to disable) should use this parameter. The function returns false if the mode is unavailable, and will not attempt to allocate another character, as this will confuse users. This also means that as only one module can claim a specific mode character, the core does not need to keep track of which modules own which modes, which speeds up operation of the server. In this version, a mode can have at most one parameter, attempting to use more parameters will have undefined effects. .PP -Definition at line 559 of file modules.cpp. +Definition at line 551 of file modules.cpp. .PP -References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER. +References DEBUG, DoAddExtendedMode(), log(), MT_CLIENT, and MT_SERVER. .PP .nf -560 { -561 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) -562 { -563 if (type == MT_SERVER) -564 { -565 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); -566 return false; -567 } -568 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -569 { -570 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); -571 return false; -572 } -573 if ((params_when_on>1) || (params_when_off>1)) -574 { -575 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); -576 return false; -577 } -578 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -579 } -580 else -581 { -582 log(DEBUG,'*** API ERROR *** Muppet modechar detected.'); -583 } -584 return false; -585 } +552 { +553 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) +554 { +555 if (type == MT_SERVER) +556 { +557 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); +558 return false; +559 } +560 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +561 { +562 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); +563 return false; +564 } +565 if ((params_when_on>1) || (params_when_off>1)) +566 { +567 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); +568 return false; +569 } +570 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +571 } +572 else +573 { +574 log(DEBUG,'*** API ERROR *** Muppet modechar detected.'); +575 } +576 return false; +577 } .fi .PP .SS "void Server::AddGLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -397,14 +397,14 @@ Adds a G-line The G-line is propogated to all of the servers in the mesh and enf .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 643 of file modules.cpp. +Definition at line 635 of file modules.cpp. .PP References add_gline(). .PP .nf -644 { -645 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -646 } +636 { +637 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +638 } .fi .PP .SS "void Server::AddKLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -413,14 +413,14 @@ Adds a K-line The K-line is enforced as soon as it is added. .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 658 of file modules.cpp. +Definition at line 650 of file modules.cpp. .PP References add_kline(). .PP .nf -659 { -660 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -661 } +651 { +652 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +653 } .fi .PP .SS "void Server::AddQLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP nickname)\fC [virtual]\fP" @@ -429,28 +429,28 @@ Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enf .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 648 of file modules.cpp. +Definition at line 640 of file modules.cpp. .PP References add_qline(). .PP .nf -649 { -650 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); -651 } +641 { +642 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +643 } .fi .PP .SS "void Server::AddSocket (\fBInspSocket\fP * sock)\fC [virtual]\fP" .PP Adds a class derived from \fBInspSocket\fP to the server's socket engine. .PP -Definition at line 321 of file modules.cpp. +Definition at line 313 of file modules.cpp. .PP References module_sockets. .PP .nf -322 { -323 module_sockets.push_back(sock); -324 } +314 { +315 module_sockets.push_back(sock); +316 } .fi .PP .SS "void Server::AddZLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP ipaddr)\fC [virtual]\fP" @@ -459,14 +459,14 @@ Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enf .PP The duration must be in seconds, however you can use the \fBServer::CalcDuration\fP method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name. .PP -Definition at line 653 of file modules.cpp. +Definition at line 645 of file modules.cpp. .PP References add_zline(). .PP .nf -654 { -655 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); -656 } +646 { +647 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +648 } .fi .PP .SS "long Server::CalcDuration (\fBstd::string\fP duration)\fC [virtual]\fP" @@ -475,14 +475,14 @@ Calculates a duration This method will take a string containing a formatted dura .PP '1w2d') and return its value as a total number of seconds. This is the same function used internally by /GLINE etc to set the ban times. .PP -Definition at line 693 of file modules.cpp. +Definition at line 685 of file modules.cpp. .PP References duration(). .PP .nf -694 { -695 return duration(delta.c_str()); -696 } +686 { +687 return duration(delta.c_str()); +688 } .fi .PP .SS "void Server::CallCommandHandler (\fBstd::string\fP commandname, char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" @@ -493,12 +493,14 @@ You can use this function to trigger other commands in the ircd, such as PRIVMSG .br ) you may use them as callback identifiers. The first parameter to this method is the name of the command handler you wish to call, e.g. PRIVMSG. This will be a command handler previously registered by the core or wih \fBAddCommand()\fP. The second parameter is an array of parameters, and the third parameter is a count of parameters in the array. If you do not pass enough parameters to meet the minimum needed by the handler, the functiom will silently ignore it. The final parameter is the user executing the command handler, used for privilage checks, etc. .PP -Definition at line 404 of file modules.cpp. +Definition at line 396 of file modules.cpp. +.PP +References call_handler(). .PP .nf -405 { -406 call_handler(commandname.c_str(),parameters,pcnt,user); -407 } +397 { +398 call_handler(commandname.c_str(),parameters,pcnt,user); +399 } .fi .PP .SS "void Server::ChangeGECOS (\fBuserrec\fP * user, \fBstd::string\fP gecos)\fC [virtual]\fP" @@ -507,14 +509,14 @@ Change GECOS (fullname) of a user. .PP You should always call this method to change a user's GECOS rather than writing directly to the fullname member of userrec, as any change applied via this method will be propogated to any linked servers. .PP -Definition at line 502 of file modules.cpp. +Definition at line 494 of file modules.cpp. .PP References ChangeName(). .PP .nf -503 { -504 ChangeName(user,gecos.c_str()); -505 } +495 { +496 ChangeName(user,gecos.c_str()); +497 } .fi .PP .SS "void Server::ChangeHost (\fBuserrec\fP * user, \fBstd::string\fP host)\fC [virtual]\fP" @@ -523,14 +525,14 @@ Change displayed hostname of a user. .PP You should always call this method to change a user's host rather than writing directly to the dhost member of userrec, as any change applied via this method will be propogated to any linked servers. .PP -Definition at line 497 of file modules.cpp. +Definition at line 489 of file modules.cpp. .PP References ChangeDisplayedHost(). .PP .nf -498 { -499 ChangeDisplayedHost(user,host.c_str()); -500 } +490 { +491 ChangeDisplayedHost(user,host.c_str()); +492 } .fi .PP .SS "void Server::ChangeUserNick (\fBuserrec\fP * user, \fBstd::string\fP nickname)\fC [virtual]\fP" @@ -539,12 +541,14 @@ Forces a user nickchange. .PP This command works similarly to SVSNICK, and can be used to implement Q-lines etc. If you specify an invalid nickname, the nick change will be dropped and the target user will receive the error numeric for it. .PP -Definition at line 389 of file modules.cpp. +Definition at line 381 of file modules.cpp. +.PP +References force_nickchange(). .PP .nf -390 { -391 force_nickchange(user,nickname.c_str()); -392 } +382 { +383 force_nickchange(user,nickname.c_str()); +384 } .fi .PP .SS "\fBstd::string\fP Server::ChanMode (\fBuserrec\fP * User, \fBchanrec\fP * Chan)\fC [virtual]\fP" @@ -553,14 +557,14 @@ Attempts to look up a user's privilages on a channel. .PP This function will return a string containing either @, %, +, or an empty string, representing the user's privilages upon the channel you specify. .PP -Definition at line 527 of file modules.cpp. +Definition at line 519 of file modules.cpp. .PP References cmode(). .PP .nf -528 { -529 return cmode(User,Chan); -530 } +520 { +521 return cmode(User,Chan); +522 } .fi .PP .SS "bool Server::CommonChannels (\fBuserrec\fP * u1, \fBuserrec\fP * u2)\fC [virtual]\fP" @@ -569,14 +573,14 @@ Returns true if two users share a common channel. .PP This method is used internally by the NICK and QUIT commands, and the \fBServer::SendCommon\fP method. .PP -Definition at line 475 of file modules.cpp. +Definition at line 467 of file modules.cpp. .PP References common_channels(). .PP .nf -476 { -477 return (common_channels(u1,u2) != 0); -478 } +468 { +469 return (common_channels(u1,u2) != 0); +470 } .fi .PP .SS "int Server::CountUsers (\fBchanrec\fP * c)\fC [virtual]\fP" @@ -585,103 +589,103 @@ Returns a count of the number of users on a channel. .PP This will NEVER be 0, as if the chanrec exists, it will have at least one user in the channel. .PP -Definition at line 595 of file modules.cpp. +Definition at line 587 of file modules.cpp. .PP .nf -596 { -597 return usercount(c); -598 } +588 { +589 return usercount(c); +590 } .fi .PP .SS "bool Server::DelELine (\fBstd::string\fP hostmask)\fC [virtual]\fP" .PP Deletes a local E-Line. .PP -Definition at line 688 of file modules.cpp. +Definition at line 680 of file modules.cpp. .PP References del_eline(). .PP .nf -689 { -690 return del_eline(hostmask.c_str()); -691 } +681 { +682 return del_eline(hostmask.c_str()); +683 } .fi .PP .SS "bool Server::DelGLine (\fBstd::string\fP hostmask)\fC [virtual]\fP" .PP Deletes a G-Line from all servers on the mesh. .PP -Definition at line 668 of file modules.cpp. +Definition at line 660 of file modules.cpp. .PP References del_gline(). .PP .nf -669 { -670 return del_gline(hostmask.c_str()); -671 } +661 { +662 return del_gline(hostmask.c_str()); +663 } .fi .PP .SS "bool Server::DelKLine (\fBstd::string\fP hostmask)\fC [virtual]\fP" .PP Deletes a local K-Line. .PP -Definition at line 683 of file modules.cpp. +Definition at line 675 of file modules.cpp. .PP References del_kline(). .PP .nf -684 { -685 return del_kline(hostmask.c_str()); -686 } +676 { +677 return del_kline(hostmask.c_str()); +678 } .fi .PP .SS "bool Server::DelQLine (\fBstd::string\fP nickname)\fC [virtual]\fP" .PP Deletes a Q-Line from all servers on the mesh. .PP -Definition at line 673 of file modules.cpp. +Definition at line 665 of file modules.cpp. .PP References del_qline(). .PP .nf -674 { -675 return del_qline(nickname.c_str()); -676 } +666 { +667 return del_qline(nickname.c_str()); +668 } .fi .PP .SS "void Server::DelSocket (\fBInspSocket\fP * sock)\fC [virtual]\fP" .PP Deletes a class derived from \fBInspSocket\fP from the server's socket engine. .PP -Definition at line 337 of file modules.cpp. +Definition at line 329 of file modules.cpp. .PP References module_sockets. .PP .nf -338 { -339 for (std::vector::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) -340 { -341 if (*a == sock) -342 { -343 module_sockets.erase(a); -344 return; -345 } -346 } -347 } +330 { +331 for (std::vector::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) +332 { +333 if (*a == sock) +334 { +335 module_sockets.erase(a); +336 return; +337 } +338 } +339 } .fi .PP .SS "bool Server::DelZLine (\fBstd::string\fP ipaddr)\fC [virtual]\fP" .PP Deletes a Z-Line from all servers on the mesh. .PP -Definition at line 678 of file modules.cpp. +Definition at line 670 of file modules.cpp. .PP References del_zline(). .PP .nf -679 { -680 return del_zline(ipaddr.c_str()); -681 } +671 { +672 return del_zline(ipaddr.c_str()); +673 } .fi .PP .SS "\fBchanrec\fP * Server::FindChannel (\fBstd::string\fP channel)\fC [virtual]\fP" @@ -690,12 +694,14 @@ Attempts to look up a channel and return a pointer to it. .PP This function will return NULL if the channel does not exist. .PP -Definition at line 522 of file modules.cpp. +Definition at line 514 of file modules.cpp. +.PP +References FindChan(). .PP .nf -523 { -524 return FindChan(channel.c_str()); -525 } +515 { +516 return FindChan(channel.c_str()); +517 } .fi .PP .SS "\fBuserrec\fP * Server::FindDescriptor (int socket)\fC [virtual]\fP" @@ -704,12 +710,12 @@ Attempts to look up a nick using the file descriptor associated with that nick. .PP This function will return NULL if the file descriptor is not associated with a valid user. .PP -Definition at line 517 of file modules.cpp. +Definition at line 509 of file modules.cpp. .PP .nf -518 { -519 return (socket < 65536 ? fd_ref_table[socket] : NULL); -520 } +510 { +511 return (socket < 65536 ? fd_ref_table[socket] : NULL); +512 } .fi .PP .SS "\fBModule\fP * Server::FindModule (\fBstd::string\fP name)\fC [virtual]\fP" @@ -718,21 +724,21 @@ This function finds a module by name. .PP You must provide the filename of the module. If the module cannot be found (is not loaded) the function will return NULL. .PP -Definition at line 727 of file modules.cpp. +Definition at line 719 of file modules.cpp. .PP References MODCOUNT, ServerConfig::module_names, and modules. .PP .nf -728 { -729 for (int i = 0; i <= MODCOUNT; i++) -730 { -731 if (Config->module_names[i] == name) -732 { -733 return modules[i]; -734 } -735 } -736 return NULL; -737 } +720 { +721 for (int i = 0; i <= MODCOUNT; i++) +722 { +723 if (Config->module_names[i] == name) +724 { +725 return modules[i]; +726 } +727 } +728 return NULL; +729 } .fi .PP .SS "\fBuserrec\fP * Server::FindNick (\fBstd::string\fP nick)\fC [virtual]\fP" @@ -741,12 +747,14 @@ Attempts to look up a nick and return a pointer to it. .PP This function will return NULL if the nick does not exist. .PP -Definition at line 512 of file modules.cpp. +Definition at line 504 of file modules.cpp. +.PP +References Find(). .PP .nf -513 { -514 return Find(nick); -515 } +505 { +506 return Find(nick); +507 } .fi .PP .SS "\fBAdmin\fP Server::GetAdmin ()\fC [virtual]\fP" @@ -755,12 +763,14 @@ Returns the information of the server as returned by the /ADMIN command. .PP See the \fBAdmin\fP class for further information of the return value. The members \fBAdmin::Nick\fP, \fBAdmin::Email\fP and \fBAdmin::Name\fP contain the information for the server where the module is loaded. .PP -Definition at line 552 of file modules.cpp. +Definition at line 544 of file modules.cpp. +.PP +References ServerConfig::AdminEmail, ServerConfig::AdminName, and ServerConfig::AdminNick. .PP .nf -553 { -554 return Admin(getadminname(),getadminemail(),getadminnick()); -555 } +545 { +546 return Admin(Config->AdminName,Config->AdminEmail,Config->AdminNick); +547 } .fi .PP .SS "\fBServerConfig\fP * Server::GetConfig ()" @@ -769,48 +779,54 @@ Obtains a pointer to the server's \fBServerConfig\fP object. .PP The \fBServerConfig\fP object contains most of the configuration data of the IRC server, as read from the config file by the core. .PP -Definition at line 332 of file modules.cpp. +Definition at line 324 of file modules.cpp. .PP .nf -333 { -334 return Config; -335 } +325 { +326 return Config; +327 } .fi .PP .SS "\fBstd::string\fP Server::GetNetworkName ()\fC [virtual]\fP" .PP Returns the network name, global to all linked servers. .PP -Definition at line 542 of file modules.cpp. +Definition at line 534 of file modules.cpp. +.PP +References ServerConfig::Network. .PP .nf -543 { -544 return getnetworkname(); -545 } +535 { +536 return Config->Network; +537 } .fi .PP .SS "\fBstd::string\fP Server::GetServerDescription ()\fC [virtual]\fP" .PP Returns the server description string of the local server. .PP -Definition at line 547 of file modules.cpp. +Definition at line 539 of file modules.cpp. +.PP +References ServerConfig::ServerDesc. .PP .nf -548 { -549 return getserverdesc(); -550 } +540 { +541 return Config->ServerDesc; +542 } .fi .PP .SS "\fBstd::string\fP Server::GetServerName ()\fC [virtual]\fP" .PP Returns the server name of the server where the module is loaded. .PP -Definition at line 537 of file modules.cpp. +Definition at line 529 of file modules.cpp. +.PP +References ServerConfig::ServerName. .PP .nf -538 { -539 return getservername(); -540 } +530 { +531 return Config->ServerName; +532 } .fi .PP .SS "\fBchanuserlist\fP Server::GetUsers (\fBchanrec\fP * chan)\fC [virtual]\fP" @@ -819,22 +835,22 @@ Fetches the userlist of a channel. .PP This function must be here and not a member of userrec or chanrec due to include constraints. .PP -Definition at line 377 of file modules.cpp. +Definition at line 369 of file modules.cpp. .PP References chanrec::GetUsers(). .PP .nf -378 { -379 chanuserlist userl; -380 userl.clear(); -381 std::vector *list = chan->GetUsers(); -382 for (std::vector::iterator i = list->begin(); i != list->end(); i++) -383 { -384 char* o = *i; -385 userl.push_back((userrec*)o); -386 } -387 return userl; -388 } +370 { +371 chanuserlist userl; +372 userl.clear(); +373 std::vector *list = chan->GetUsers(); +374 for (std::vector::iterator i = list->begin(); i != list->end(); i++) +375 { +376 char* o = *i; +377 userl.push_back((userrec*)o); +378 } +379 return userl; +380 } .fi .PP .SS "bool Server::IsNick (\fBstd::string\fP nick)\fC [virtual]\fP" @@ -843,14 +859,14 @@ Returns true if a nick is valid. .PP Nicks for unregistered connections will return false. .PP -Definition at line 507 of file modules.cpp. +Definition at line 499 of file modules.cpp. .PP References isnick(). .PP .nf -508 { -509 return (isnick(nick.c_str()) != 0); -510 } +500 { +501 return (isnick(nick.c_str()) != 0); +502 } .fi .PP .SS "bool Server::IsOnChannel (\fBuserrec\fP * User, \fBchanrec\fP * Chan)\fC [virtual]\fP" @@ -859,14 +875,14 @@ Checks if a user is on a channel. .PP This function will return true or false to indicate if user 'User' is on channel 'Chan'. .PP -Definition at line 532 of file modules.cpp. +Definition at line 524 of file modules.cpp. .PP References has_channel(). .PP .nf -533 { -534 return has_channel(User,Chan); -535 } +525 { +526 return has_channel(User,Chan); +527 } .fi .PP .SS "bool Server::IsUlined (\fBstd::string\fP server)\fC [virtual]\fP" @@ -875,60 +891,62 @@ Returns true if the servername you give is ulined. .PP ULined servers have extra privilages. They are allowed to change nicknames on remote servers, change modes of clients which are on remote servers and set modes of channels where there are no channel operators for that channel on the ulined server, amongst other things. Ulined server data is also broadcast across the mesh at all times as opposed to selectively messaged in the case of normal servers, as many ulined server types (such as services) do not support meshed links and must operate in this manner. .PP -Definition at line 399 of file modules.cpp. +Definition at line 391 of file modules.cpp. .PP References is_uline(). .PP .nf -400 { -401 return is_uline(server.c_str()); -402 } +392 { +393 return is_uline(server.c_str()); +394 } .fi .PP .SS "bool Server::IsValidMask (\fBstd::string\fP mask)\fC [virtual]\fP" .PP Returns true if a nick!ident string is correctly formatted, false if otherwise. .PP -Definition at line 698 of file modules.cpp. +Definition at line 690 of file modules.cpp. .PP .nf -699 { -700 const char* dest = mask.c_str(); -701 if (strchr(dest,'!')==0) -702 return false; -703 if (strchr(dest,'@')==0) -704 return false; -705 for (unsigned int i = 0; i < strlen(dest); i++) -706 if (dest[i] < 32) -707 return false; -708 for (unsigned int i = 0; i < strlen(dest); i++) -709 if (dest[i] > 126) -710 return false; -711 unsigned int c = 0; -712 for (unsigned int i = 0; i < strlen(dest); i++) -713 if (dest[i] == '!') -714 c++; -715 if (c>1) -716 return false; -717 c = 0; -718 for (unsigned int i = 0; i < strlen(dest); i++) -719 if (dest[i] == '@') -720 c++; -721 if (c>1) -722 return false; -723 -724 return true; -725 } +691 { +692 const char* dest = mask.c_str(); +693 if (strchr(dest,'!')==0) +694 return false; +695 if (strchr(dest,'@')==0) +696 return false; +697 for (unsigned int i = 0; i < strlen(dest); i++) +698 if (dest[i] < 32) +699 return false; +700 for (unsigned int i = 0; i < strlen(dest); i++) +701 if (dest[i] > 126) +702 return false; +703 unsigned int c = 0; +704 for (unsigned int i = 0; i < strlen(dest); i++) +705 if (dest[i] == '!') +706 c++; +707 if (c>1) +708 return false; +709 c = 0; +710 for (unsigned int i = 0; i < strlen(dest); i++) +711 if (dest[i] == '@') +712 c++; +713 if (c>1) +714 return false; +715 +716 return true; +717 } .fi .PP .SS "bool Server::IsValidModuleCommand (\fBstd::string\fP commandname, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" .PP -Definition at line 409 of file modules.cpp. +Definition at line 401 of file modules.cpp. +.PP +References is_valid_cmd(). .PP .nf -410 { -411 return is_valid_cmd(commandname.c_str(), pcnt, user); -412 } +402 { +403 return is_valid_cmd(commandname.c_str(), pcnt, user); +404 } .fi .PP .SS "\fBchanrec\fP * Server::JoinUserToChannel (\fBuserrec\fP * user, \fBstd::string\fP cname, \fBstd::string\fP key)\fC [virtual]\fP" @@ -937,12 +955,14 @@ Forces a user to join a channel. .PP This is similar to svsjoin and can be used to implement redirection, etc. On success, the return value is a valid pointer to a chanrec* of the channel the user was joined to. On failure, the result is NULL. .PP -Definition at line 367 of file modules.cpp. +Definition at line 359 of file modules.cpp. +.PP +References add_channel(). .PP .nf -368 { -369 return add_channel(user,cname.c_str(),key.c_str(),false); -370 } +360 { +361 return add_channel(user,cname.c_str(),key.c_str(),false); +362 } .fi .PP .SS "void Server::Log (int level, \fBstd::string\fP s)\fC [virtual]\fP" @@ -951,12 +971,14 @@ Writes a log string. .PP This method writes a line of text to the log. If the level given is lower than the level given in the configuration, this command has no effect. .PP -Definition at line 414 of file modules.cpp. +Definition at line 406 of file modules.cpp. +.PP +References log(). .PP .nf -415 { -416 log(level,'%s',s.c_str()); -417 } +407 { +408 log(level,'%s',s.c_str()); +409 } .fi .PP .SS "bool Server::MatchText (\fBstd::string\fP sliteral, \fBstd::string\fP spattern)\fC [virtual]\fP" @@ -965,15 +987,15 @@ Matches text against a glob pattern. .PP Uses the ircd's internal matching function to match string against a globbing pattern, e.g. *!*@*.com Returns true if the literal successfully matches the pattern, false if otherwise. .PP -Definition at line 354 of file modules.cpp. +Definition at line 346 of file modules.cpp. .PP .nf -355 { -356 char literal[MAXBUF],pattern[MAXBUF]; -357 strlcpy(literal,sliteral.c_str(),MAXBUF); -358 strlcpy(pattern,spattern.c_str(),MAXBUF); -359 return match(literal,pattern); -360 } +347 { +348 char literal[MAXBUF],pattern[MAXBUF]; +349 strlcpy(literal,sliteral.c_str(),MAXBUF); +350 strlcpy(pattern,spattern.c_str(),MAXBUF); +351 return match(literal,pattern); +352 } .fi .PP .SS "\fBchanrec\fP * Server::PartUserFromChannel (\fBuserrec\fP * user, \fBstd::string\fP cname, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -982,12 +1004,14 @@ Forces a user to part a channel. .PP This is similar to svspart and can be used to implement redirection, etc. Although the return value of this function is a pointer to a channel record, the returned data is undefined and should not be read or written to. This behaviour may be changed in a future version. .PP -Definition at line 372 of file modules.cpp. +Definition at line 364 of file modules.cpp. +.PP +References del_channel(). .PP .nf -373 { -374 return del_channel(user,cname.c_str(),reason.c_str(),false); -375 } +365 { +366 return del_channel(user,cname.c_str(),reason.c_str(),false); +367 } .fi .PP .SS "bool Server::PseudoToUser (\fBuserrec\fP * alive, \fBuserrec\fP * zombie, \fBstd::string\fP message)\fC [virtual]\fP" @@ -996,39 +1020,39 @@ This user takes one user, and switches their file descriptor with another user, .PP The user in 'alive' is booted off the server with the given message. The user referred to by 'zombie' should have previously been locked with Server::ZombifyUser, otherwise stale sockets and file descriptor leaks can occur. After this call, the pointer to alive will be invalid, and the pointer to zombie will be equivalent in effect to the old pointer to alive. .PP -Definition at line 613 of file modules.cpp. +Definition at line 605 of file modules.cpp. .PP -References userrec::chans, userrec::ClearBuffer(), connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset. +References userrec::chans, userrec::ClearBuffer(), connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, kill_link(), chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, chanrec::topicset, Write(), WriteFrom(), and WriteServ(). .PP .nf -614 { -615 zombie->fd = alive->fd; -616 alive->fd = FD_MAGIC_NUMBER; -617 alive->ClearBuffer(); -618 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); -619 kill_link(alive,message.c_str()); -620 fd_ref_table[zombie->fd] = zombie; -621 for (unsigned int i = 0; i < zombie->chans.size(); i++) -622 { -623 if (zombie->chans[i].channel != NULL) -624 { -625 if (zombie->chans[i].channel->name) -626 { -627 chanrec* Ptr = zombie->chans[i].channel; -628 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); -629 if (Ptr->topicset) -630 { -631 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); -632 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); -633 } -634 userlist(zombie,Ptr); -635 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); -636 -637 } -638 } -639 } -640 return true; -641 } +606 { +607 zombie->fd = alive->fd; +608 alive->fd = FD_MAGIC_NUMBER; +609 alive->ClearBuffer(); +610 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); +611 kill_link(alive,message.c_str()); +612 fd_ref_table[zombie->fd] = zombie; +613 for (unsigned int i = 0; i < zombie->chans.size(); i++) +614 { +615 if (zombie->chans[i].channel != NULL) +616 { +617 if (zombie->chans[i].channel->name) +618 { +619 chanrec* Ptr = zombie->chans[i].channel; +620 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); +621 if (Ptr->topicset) +622 { +623 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); +624 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +625 } +626 userlist(zombie,Ptr); +627 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); +628 +629 } +630 } +631 } +632 return true; +633 } .fi .PP .SS "void Server::QuitUser (\fBuserrec\fP * user, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1041,25 +1065,27 @@ WARNING! .PP Once you call this function, userrec* user will immediately become INVALID. You MUST NOT write to, or read from this pointer after calling the QuitUser method UNDER ANY CIRCUMSTANCES! The best course of action after calling this method is to immediately bail from your handler. .PP -Definition at line 394 of file modules.cpp. +Definition at line 386 of file modules.cpp. +.PP +References kill_link(). .PP .nf -395 { -396 kill_link(user,reason.c_str()); -397 } +387 { +388 kill_link(user,reason.c_str()); +389 } .fi .PP .SS "void Server::RehashServer ()\fC [virtual]\fP" .PP -Definition at line 326 of file modules.cpp. +Definition at line 318 of file modules.cpp. .PP -References ServerConfig::Read(). +References ServerConfig::Read(), and WriteOpers(). .PP .nf -327 { -328 WriteOpers('*** Rehashing config file'); -329 Config->Read(false,NULL); -330 } +319 { +320 WriteOpers('*** Rehashing config file'); +321 Config->Read(false,NULL); +322 } .fi .PP .SS "void Server::Send (int Socket, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1068,12 +1094,14 @@ Sends a line of text down a TCP/IP socket. .PP This method writes a line of text to an established socket, cutting it to 510 characters plus a carriage return and linefeed if required. .PP -Definition at line 429 of file modules.cpp. +Definition at line 421 of file modules.cpp. +.PP +References Write(). .PP .nf -430 { -431 Write(Socket,'%s',s.c_str()); -432 } +422 { +423 Write(Socket,'%s',s.c_str()); +424 } .fi .PP .SS "void Server::SendChannel (\fBuserrec\fP * User, \fBchanrec\fP * Channel, \fBstd::string\fP s, bool IncludeSender)\fC [virtual]\fP" @@ -1082,19 +1110,21 @@ Sends text from a user to a channel (mulicast). .PP This method writes a line of text to a channel, with the given user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in MODE (see RFC 1459). .PP -Definition at line 463 of file modules.cpp. +Definition at line 455 of file modules.cpp. +.PP +References ChanExceptSender(), and WriteChannel(). .PP .nf -464 { -465 if (IncludeSender) -466 { -467 WriteChannel(Channel,User,'%s',s.c_str()); -468 } -469 else -470 { -471 ChanExceptSender(Channel,User,'%s',s.c_str()); -472 } -473 } +456 { +457 if (IncludeSender) +458 { +459 WriteChannel(Channel,User,'%s',s.c_str()); +460 } +461 else +462 { +463 ChanExceptSender(Channel,User,'%s',s.c_str()); +464 } +465 } .fi .PP .SS "void Server::SendChannelServerNotice (\fBstd::string\fP ServName, \fBchanrec\fP * Channel, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1103,12 +1133,12 @@ Writes text to a channel, but from a server, including all. .PP This can be used to send server notices to a group of users. .PP -Definition at line 458 of file modules.cpp. +Definition at line 450 of file modules.cpp. .PP .nf -459 { -460 WriteChannelWithServ((char*)ServName.c_str(), Channel, '%s', text.c_str()); -461 } +451 { +452 WriteChannelWithServ((char*)ServName.c_str(), Channel, '%s', text.c_str()); +453 } .fi .PP .SS "void Server::SendCommon (\fBuserrec\fP * User, \fBstd::string\fP text, bool IncludeSender)\fC [virtual]\fP" @@ -1117,19 +1147,21 @@ Sends text from a user to one or more channels (mulicast). .PP This method writes a line of text to all users which share a common channel with a given user, with the user's nick/ident/host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in NICK (see RFC 1459). Otherwise, it is only sent to the other recipients, as seen in QUIT. .PP -Definition at line 480 of file modules.cpp. +Definition at line 472 of file modules.cpp. +.PP +References WriteCommon(), and WriteCommonExcept(). .PP .nf -481 { -482 if (IncludeSender) -483 { -484 WriteCommon(User,'%s',text.c_str()); -485 } -486 else -487 { -488 WriteCommonExcept(User,'%s',text.c_str()); -489 } -490 } +473 { +474 if (IncludeSender) +475 { +476 WriteCommon(User,'%s',text.c_str()); +477 } +478 else +479 { +480 WriteCommonExcept(User,'%s',text.c_str()); +481 } +482 } .fi .PP .SS "void Server::SendFrom (int Socket, \fBuserrec\fP * User, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1138,12 +1170,14 @@ Sends text from a user to a socket. .PP This method writes a line of text to an established socket, with the given user's nick/ident /host combination prepended, as used in PRIVSG etc commands (see RFC 1459) .PP -Definition at line 439 of file modules.cpp. +Definition at line 431 of file modules.cpp. +.PP +References WriteFrom(). .PP .nf -440 { -441 WriteFrom(Socket,User,'%s',s.c_str()); -442 } +432 { +433 WriteFrom(Socket,User,'%s',s.c_str()); +434 } .fi .PP .SS "void Server::SendMode (char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" @@ -1166,14 +1200,14 @@ Srv->SendMode(modes,3,user); .PP The modes will originate from the server where the command was issued, however responses (e.g. numerics) will be sent to the user you provide as the third parameter. You must be sure to get the number of parameters correct in the pcnt parameter otherwise you could leave your server in an unstable state! .PP -Definition at line 424 of file modules.cpp. +Definition at line 416 of file modules.cpp. .PP References server_mode(). .PP .nf -425 { -426 server_mode(parameters,pcnt,user); -427 } +417 { +418 server_mode(parameters,pcnt,user); +419 } .fi .PP .SS "void Server::SendOpers (\fBstd::string\fP s)\fC [virtual]\fP" @@ -1182,12 +1216,14 @@ Sends text to all opers. .PP This method sends a server notice to all opers with the usermode +s. .PP -Definition at line 349 of file modules.cpp. +Definition at line 341 of file modules.cpp. +.PP +References WriteOpers(). .PP .nf -350 { -351 WriteOpers('%s',s.c_str()); -352 } +342 { +343 WriteOpers('%s',s.c_str()); +344 } .fi .PP .SS "void Server::SendServ (int Socket, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1196,12 +1232,14 @@ Sends text from the server to a socket. .PP This method writes a line of text to an established socket, with the servername prepended as used by numerics (see RFC 1459) .PP -Definition at line 434 of file modules.cpp. +Definition at line 426 of file modules.cpp. +.PP +References WriteServ(). .PP .nf -435 { -436 WriteServ(Socket,'%s',s.c_str()); -437 } +427 { +428 WriteServ(Socket,'%s',s.c_str()); +429 } .fi .PP .SS "void Server::SendTo (\fBuserrec\fP * Source, \fBuserrec\fP * Dest, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1218,23 +1256,23 @@ The format will become: .PP Which is useful for numerics and server notices to single users, etc. .PP -Definition at line 444 of file modules.cpp. +Definition at line 436 of file modules.cpp. .PP -References connection::fd. +References connection::fd, Write(), and WriteTo(). .PP .nf -445 { -446 if (!Source) -447 { -448 // if source is NULL, then the message originates from the local server -449 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); -450 } -451 else -452 { -453 // otherwise it comes from the user specified -454 WriteTo(Source,Dest,'%s',s.c_str()); -455 } -456 } +437 { +438 if (!Source) +439 { +440 // if source is NULL, then the message originates from the local server +441 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); +442 } +443 else +444 { +445 // otherwise it comes from the user specified +446 WriteTo(Source,Dest,'%s',s.c_str()); +447 } +448 } .fi .PP .SS "void Server::SendToModeMask (\fBstd::string\fP modes, int flags, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1247,12 +1285,12 @@ Serv->SendToModeMask('xi', WM_OR, 'm00'); .PP Then the text 'm00' will be sent to all users with EITHER mode x or i. Conversely if you used WM_AND, the user must have both modes set to receive the message. .PP -Definition at line 362 of file modules.cpp. +Definition at line 354 of file modules.cpp. .PP .nf -363 { -364 WriteMode(modes.c_str(),flags,'%s',text.c_str()); -365 } +355 { +356 WriteMode(modes.c_str(),flags,'%s',text.c_str()); +357 } .fi .PP .SS "void Server::SendWallops (\fBuserrec\fP * User, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1261,12 +1299,14 @@ Sends a WALLOPS message. .PP This method writes a WALLOPS message to all users with the +w flag, originating from the specified user. .PP -Definition at line 492 of file modules.cpp. +Definition at line 484 of file modules.cpp. +.PP +References WriteWallOps(). .PP .nf -493 { -494 WriteWallOps(User,false,'%s',text.c_str()); -495 } +485 { +486 WriteWallOps(User,false,'%s',text.c_str()); +487 } .fi .PP .SS "bool Server::UserToPseudo (\fBuserrec\fP * user, \fBstd::string\fP message)\fC [virtual]\fP" @@ -1275,21 +1315,21 @@ Remove a user's connection to the irc server, but leave their client in existenc .PP When you call this function, the user's file descriptor will be replaced with the value of FD_MAGIC_NUMBER and their old file descriptor will be closed. This idle client will remain until it is restored with a valid file descriptor, or is removed from IRC by an operator After this call, the pointer to user will be invalid. .PP -Definition at line 601 of file modules.cpp. +Definition at line 593 of file modules.cpp. .PP -References userrec::ClearBuffer(), SocketEngine::DelFd(), connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident. +References userrec::ClearBuffer(), SocketEngine::DelFd(), connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, and Write(). .PP .nf -602 { -603 unsigned int old_fd = user->fd; -604 user->fd = FD_MAGIC_NUMBER; -605 user->ClearBuffer(); -606 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); -607 SE->DelFd(old_fd); -608 shutdown(old_fd,2); -609 close(old_fd); -610 return true; -611 } +594 { +595 unsigned int old_fd = user->fd; +596 user->fd = FD_MAGIC_NUMBER; +597 user->ClearBuffer(); +598 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); +599 SE->DelFd(old_fd); +600 shutdown(old_fd,2); +601 close(old_fd); +602 return true; +603 } .fi .PP diff --git a/docs/man/man3/ServerConfig.3 b/docs/man/man3/ServerConfig.3 index 8a713cdc1..18db5e7a1 100644 --- a/docs/man/man3/ServerConfig.3 +++ b/docs/man/man3/ServerConfig.3 @@ -187,6 +187,10 @@ Inherits \fBclassbase\fP. .RI "std::vector< \fBstd::string\fP > \fBmodule_names\fP" .br .RI "\fIA list of module names (names only, no paths) which are currently loaded by the server. \fP" +.ti -1c +.RI "int \fBports\fP [255]" +.br +.RI "\fIA list of ports which the server is listening on. \fP" .in -1c .SS "Private Member Functions" @@ -271,16 +275,22 @@ Definition at line 216 of file inspircd_io.h. Holds the email address of the admin, for output in the /ADMIN command. .PP Definition at line 89 of file inspircd_io.h. +.PP +Referenced by Server::GetAdmin(). .SS "char \fBServerConfig::AdminName\fP[MAXBUF]" .PP Holds the admin's name, for output in the /ADMIN command. .PP Definition at line 84 of file inspircd_io.h. +.PP +Referenced by Server::GetAdmin(). .SS "char \fBServerConfig::AdminNick\fP[MAXBUF]" .PP Holds the admin's nickname, for output in the /ADMIN command. .PP Definition at line 94 of file inspircd_io.h. +.PP +Referenced by Server::GetAdmin(). .SS "bool \fBServerConfig::AllowHalfop\fP" .PP If this value is true, halfops have been enabled in the configuration file. @@ -401,6 +411,8 @@ Definition at line 182 of file inspircd_io.h. .SS "char \fBServerConfig::Network\fP[MAXBUF]" .PP Definition at line 74 of file inspircd_io.h. +.PP +Referenced by Server::GetNetworkName(). .SS "bool \fBServerConfig::nofork\fP" .PP If this value is true, the owner of the server specified -nofork on the command line, causing the daemon to stay in the foreground. @@ -411,6 +423,11 @@ Definition at line 158 of file inspircd_io.h. The full pathname and filename of the PID file as defined in the configuration. .PP Definition at line 229 of file inspircd_io.h. +.SS "int \fBServerConfig::ports\fP[255]" +.PP +A list of ports which the server is listening on. +.PP +Definition at line 251 of file inspircd_io.h. .SS "char \fBServerConfig::PrefixQuit\fP[MAXBUF]" .PP The quit prefix in use, or an empty string. @@ -436,13 +453,15 @@ Definition at line 112 of file inspircd_io.h. Holds the description of the local server as defined by the administrator. .PP Definition at line 79 of file inspircd_io.h. +.PP +Referenced by Server::GetServerDescription(). .SS "char \fBServerConfig::ServerName\fP[MAXBUF]" .PP Holds the server name of the local server as defined by the administrator. .PP Definition at line 68 of file inspircd_io.h. .PP -Referenced by userrec::userrec(). +Referenced by Server::GetServerName(), and userrec::userrec(). .SS "unsigned int \fBServerConfig::SoftLimit\fP" .PP The soft limit value assigned to the irc server. diff --git a/docs/man/man3/SocketEngine.3 b/docs/man/man3/SocketEngine.3 index 07daeff47..9a1a5ea58 100644 --- a/docs/man/man3/SocketEngine.3 +++ b/docs/man/man3/SocketEngine.3 @@ -75,7 +75,7 @@ Please note that if there is a catastrophic failure (for example, you try and en .PP Definition at line 35 of file socketengine.cpp. .PP -References DEBUG, and EngineHandle. +References DEBUG, EngineHandle, and log(). .PP .nf 36 { @@ -95,7 +95,7 @@ Destructor The destructor transparently tidies up any resources used by the sock .PP Definition at line 46 of file socketengine.cpp. .PP -References DEBUG, and EngineHandle. +References DEBUG, EngineHandle, and log(). .PP .nf 47 { @@ -119,7 +119,7 @@ You must provide a type (see the consts in \fBsocketengine.h\fP) and a boolean f .PP Definition at line 65 of file socketengine.cpp. .PP -References DEBUG, EngineHandle, fds, ref, and X_READBIT. +References DEBUG, EngineHandle, fds, log(), ref, and X_READBIT. .PP Referenced by InspSocket::InspSocket(), and InspSocket::Poll(). .PP @@ -168,7 +168,7 @@ Delete a file descriptor f rom the engine This function call deletes a file desc .PP Definition at line 103 of file socketengine.cpp. .PP -References DEBUG, EngineHandle, fds, ref, and X_READBIT. +References DEBUG, EngineHandle, fds, log(), ref, and X_READBIT. .PP Referenced by InspSocket::Poll(), and Server::UserToPseudo(). .PP diff --git a/docs/man/man3/Version.3 b/docs/man/man3/Version.3 index 5cc2a2b77..abb990e74 100644 --- a/docs/man/man3/Version.3 +++ b/docs/man/man3/Version.3 @@ -49,10 +49,10 @@ Definition at line 113 of file modules.h. .PP .SS "Version::Version (int major, int minor, int revision, int build, int flags)" .PP -Definition at line 167 of file modules.cpp. +Definition at line 159 of file modules.cpp. .PP .nf -167 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; +159 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_include_.3 b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_include_.3 index 3f59aa590..75e0ef123 100644 --- a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_include_.3 +++ b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_include_.3 @@ -25,9 +25,15 @@ .RI "file \fBdns.h\fP" .br .ti -1c +.RI "file \fBglobals.h\fP" +.br +.ti -1c .RI "file \fBhashcomp.h\fP" .br .ti -1c +.RI "file \fBinspircd.h\fP" +.br +.ti -1c .RI "file \fBinspircd_io.h\fP" .br .ti -1c diff --git a/docs/man/man3/channels.cpp.3 b/docs/man/man3/channels.cpp.3 index 0d5feb55c..25dc3b6bd 100644 --- a/docs/man/man3/channels.cpp.3 +++ b/docs/man/man3/channels.cpp.3 @@ -46,6 +46,8 @@ channels.cpp \- .br \fC#include 'dynamic.h'\fP .br +\fC#include 'commands.h'\fP +.br \fC#include 'wildcard.h'\fP .br \fC#include 'message.h'\fP @@ -58,6 +60,8 @@ channels.cpp \- .br \fC#include 'helperfuncs.h'\fP .br +\fC#include 'typedefs.h'\fP +.br .SS "Namespaces" @@ -73,43 +77,50 @@ channels.cpp \- .RI "#define \fBnspace\fP std" .br .in -1c -.SS "Variables" +.SS "Functions" .in +1c .ti -1c -.RI "\fBServerConfig\fP * \fBConfig\fP" +.RI "\fBchanrec\fP * \fBForceChan\fP (\fBchanrec\fP *Ptr, \fBucrec\fP &a, \fBuserrec\fP *user, int created)" .br .ti -1c -.RI "int \fBMODCOUNT\fP = -1" +.RI "\fBchanrec\fP * \fBadd_channel\fP (\fBuserrec\fP *user, const char *cn, const char *key, bool override)" .br .ti -1c -.RI "std::vector< \fBModule\fP * > \fBmodules\fP" +.RI "\fBchanrec\fP * \fBdel_channel\fP (\fBuserrec\fP *user, const char *cname, const char *reason, bool local)" .br .ti -1c -.RI "std::vector< \fBircd_module\fP * > \fBfactory\fP" +.RI "void \fBkick_channel\fP (\fBuserrec\fP *src, \fBuserrec\fP *user, \fBchanrec\fP *Ptr, char *reason)" .br +.in -1c +.SS "Variables" + +.in +1c .ti -1c -.RI "int \fBWHOWAS_STALE\fP" +.RI "\fBServerConfig\fP * \fBConfig\fP" .br .ti -1c -.RI "int \fBWHOWAS_MAX\fP" +.RI "int \fBMODCOUNT\fP = -1" .br .ti -1c -.RI "time_t \fBstartup_time\fP" +.RI "std::vector< \fBModule\fP * > \fBmodules\fP" .br .ti -1c -.RI "std::vector< \fBstd::string\fP > \fBmodule_names\fP" +.RI "std::vector< \fBircd_module\fP * > \fBfactory\fP" .br .ti -1c -.RI "int \fBboundPortCount\fP" +.RI "int \fBWHOWAS_STALE\fP" .br .ti -1c -.RI "std::stringstream \fBconfig_f\fP" +.RI "int \fBWHOWAS_MAX\fP" .br .ti -1c .RI "time_t \fBTIME\fP" .br .ti -1c +.RI "\fBchan_hash\fP \fBchanlist\fP" +.br +.ti -1c .RI "std::vector< \fBModeParameter\fP > \fBcustom_mode_params\fP" .br .in -1c @@ -117,37 +128,414 @@ channels.cpp \- .PP .SS "#define nspace std" .PP -Definition at line 53 of file channels.cpp. +Definition at line 55 of file channels.cpp. +.SH "Function Documentation" +.PP +.SS "\fBchanrec\fP* add_channel (\fBuserrec\fP * user, const char * cn, const char * key, bool override)" +.PP +Definition at line 195 of file channels.cpp. +.PP +References chanrec::bans, chanrec::binarymodes, chanlist, userrec::chans, CM_INVITEONLY, CM_NOEXTERNAL, CM_TOPICLOCK, DEBUG, DEFAULT, connection::fd, FindChan(), ForceChan(), FOREACH_RESULT, userrec::GetFullHost(), has_channel(), userrec::IsInvited(), chanrec::key, chanrec::limit, log(), userrec::modes, chanrec::name, userrec::nick, userrec::RemoveInvite(), TIME, and WriteServ(). +.PP +Referenced by Server::JoinUserToChannel(). +.PP +.nf +196 { +197 if ((!user) || (!cn)) +198 { +199 log(DEFAULT,'*** BUG *** add_channel was given an invalid parameter'); +200 return 0; +201 } +202 +203 int created = 0; +204 char cname[MAXBUF]; +205 int MOD_RESULT = 0; +206 strncpy(cname,cn,CHANMAX); +207 +208 log(DEBUG,'add_channel: %s %s',user->nick,cname); +209 +210 chanrec* Ptr = FindChan(cname); +211 +212 if (!Ptr) +213 { +214 if (user->fd > -1) +215 { +216 MOD_RESULT = 0; +217 FOREACH_RESULT(OnUserPreJoin(user,NULL,cname)); +218 if (MOD_RESULT == 1) +219 return NULL; +220 } +221 /* create a new one */ +222 chanlist[cname] = new chanrec(); +223 strlcpy(chanlist[cname]->name, cname,CHANMAX); +224 chanlist[cname]->binarymodes = CM_TOPICLOCK | CM_NOEXTERNAL; +225 chanlist[cname]->created = TIME; +226 strcpy(chanlist[cname]->topic, ''); +227 strncpy(chanlist[cname]->setby, user->nick,NICKMAX); +228 chanlist[cname]->topicset = 0; +229 Ptr = chanlist[cname]; +230 log(DEBUG,'add_channel: created: %s',cname); +231 /* set created to 2 to indicate user +232 * is the first in the channel +233 * and should be given ops */ +234 created = 2; +235 } +236 else +237 { +238 /* Already on the channel */ +239 if (has_channel(user,Ptr)) +240 return NULL; +241 +242 // remote users are allowed us to bypass channel modes +243 // and bans (used by servers) +244 if (user->fd > -1) +245 { +246 MOD_RESULT = 0; +247 FOREACH_RESULT(OnUserPreJoin(user,Ptr,cname)); +248 if (MOD_RESULT == 1) +249 { +250 return NULL; +251 } +252 else +253 { +254 if (*Ptr->key) +255 { +256 MOD_RESULT = 0; +257 FOREACH_RESULT(OnCheckKey(user, Ptr, key ? key : '')); +258 if (!MOD_RESULT) +259 { +260 if (!key) +261 { +262 log(DEBUG,'add_channel: no key given in JOIN'); +263 WriteServ(user->fd,'475 %s %s :Cannot join channel (Requires key)',user->nick, Ptr->name); +264 return NULL; +265 } +266 else +267 { +268 if (strcasecmp(key,Ptr->key)) +269 { +270 log(DEBUG,'add_channel: bad key given in JOIN'); +271 WriteServ(user->fd,'475 %s %s :Cannot join channel (Incorrect key)',user->nick, Ptr->name); +272 return NULL; +273 } +274 } +275 } +276 } +277 if (Ptr->binarymodes & CM_INVITEONLY) +278 { +279 MOD_RESULT = 0; +280 FOREACH_RESULT(OnCheckInvite(user, Ptr)); +281 if (!MOD_RESULT) +282 { +283 log(DEBUG,'add_channel: channel is +i'); +284 if (user->IsInvited(Ptr->name)) +285 { +286 /* user was invited to channel */ +287 /* there may be an optional channel NOTICE here */ +288 } +289 else +290 { +291 WriteServ(user->fd,'473 %s %s :Cannot join channel (Invite only)',user->nick, Ptr->name); +292 return NULL; +293 } +294 } +295 user->RemoveInvite(Ptr->name); +296 } +297 if (Ptr->limit) +298 { +299 MOD_RESULT = 0; +300 FOREACH_RESULT(OnCheckLimit(user, Ptr)); +301 if (!MOD_RESULT) +302 { +303 if (usercount(Ptr) >= Ptr->limit) +304 { +305 WriteServ(user->fd,'471 %s %s :Cannot join channel (Channel is full)',user->nick, Ptr->name); +306 return NULL; +307 } +308 } +309 } +310 if (Ptr->bans.size()) +311 { +312 log(DEBUG,'add_channel: about to walk banlist'); +313 MOD_RESULT = 0; +314 FOREACH_RESULT(OnCheckBan(user, Ptr)); +315 if (!MOD_RESULT) +316 { +317 for (BanList::iterator i = Ptr->bans.begin(); i != Ptr->bans.end(); i++) +318 { +319 if (match(user->GetFullHost(),i->data)) +320 { +321 WriteServ(user->fd,'474 %s %s :Cannot join channel (You're banned)',user->nick, Ptr->name); +322 return NULL; +323 } +324 } +325 } +326 } +327 } +328 } +329 else +330 { +331 log(DEBUG,'Overridden checks'); +332 } +333 created = 1; +334 } +335 +336 log(DEBUG,'Passed channel checks'); +337 +338 for (unsigned int index =0; index < user->chans.size(); index++) +339 { +340 if (user->chans[index].channel == NULL) +341 { +342 return ForceChan(Ptr,user->chans[index],user,created); +343 } +344 } +345 /* XXX: If the user is an oper here, we can just extend their user->chans vector by one +346 * and put the channel in here. Same for remote users which are not bound by +347 * the channel limits. Otherwise, nope, youre boned. +348 */ +349 if (user->fd < 0) +350 { +351 ucrec a; +352 chanrec* c = ForceChan(Ptr,a,user,created); +353 user->chans.push_back(a); +354 return c; +355 } +356 else if (strchr(user->modes,'o')) +357 { +358 /* Oper allows extension up to the OPERMAXCHANS value */ +359 if (user->chans.size() < OPERMAXCHANS) +360 { +361 ucrec a; +362 chanrec* c = ForceChan(Ptr,a,user,created); +363 user->chans.push_back(a); +364 return c; +365 } +366 } +367 log(DEBUG,'add_channel: user channel max exceeded: %s %s',user->nick,cname); +368 WriteServ(user->fd,'405 %s %s :You are on too many channels',user->nick, cname); +369 return NULL; +370 } +.fi +.PP +.SS "\fBchanrec\fP* del_channel (\fBuserrec\fP * user, const char * cname, const char * reason, bool local)" +.PP +Definition at line 401 of file channels.cpp. +.PP +References chanlist, userrec::chans, DEBUG, DEFAULT, chanrec::DelUser(), FindChan(), FOREACH_MOD, log(), chanrec::name, userrec::nick, and WriteChannel(). +.PP +Referenced by Server::PartUserFromChannel(). +.PP +.nf +402 { +403 if ((!user) || (!cname)) +404 { +405 log(DEFAULT,'*** BUG *** del_channel was given an invalid parameter'); +406 return NULL; +407 } +408 +409 chanrec* Ptr = FindChan(cname); +410 +411 if (!Ptr) +412 return NULL; +413 +414 FOREACH_MOD OnUserPart(user,Ptr); +415 log(DEBUG,'del_channel: removing: %s %s',user->nick,Ptr->name); +416 +417 for (unsigned int i =0; i < user->chans.size(); i++) +418 { +419 /* zap it from the channel list of the user */ +420 if (user->chans[i].channel == Ptr) +421 { +422 if (reason) +423 { +424 WriteChannel(Ptr,user,'PART %s :%s',Ptr->name, reason); +425 } +426 else +427 { +428 WriteChannel(Ptr,user,'PART :%s',Ptr->name); +429 } +430 user->chans[i].uc_modes = 0; +431 user->chans[i].channel = NULL; +432 log(DEBUG,'del_channel: unlinked: %s %s',user->nick,Ptr->name); +433 break; +434 } +435 } +436 +437 Ptr->DelUser((char*)user); +438 +439 /* if there are no users left on the channel */ +440 if (!usercount(Ptr)) +441 { +442 chan_hash::iterator iter = chanlist.find(Ptr->name); +443 +444 log(DEBUG,'del_channel: destroying channel: %s',Ptr->name); +445 +446 /* kill the record */ +447 if (iter != chanlist.end()) +448 { +449 log(DEBUG,'del_channel: destroyed: %s',Ptr->name); +450 delete Ptr; +451 chanlist.erase(iter); +452 } +453 } +454 +455 return NULL; +456 } +.fi +.PP +.SS "\fBchanrec\fP * ForceChan (\fBchanrec\fP * Ptr, \fBucrec\fP & a, \fBuserrec\fP * user, int created)" +.PP +Definition at line 372 of file channels.cpp. +.PP +References chanrec::AddUser(), ucrec::channel, DEBUG, FOREACH_MOD, log(), chanrec::name, chanrec::setby, chanrec::topic, chanrec::topicset, ucrec::uc_modes, UCMODE_OP, WriteChannel(), and WriteServ(). +.PP +Referenced by add_channel(). +.PP +.nf +373 { +374 if (created == 2) +375 { +376 /* first user in is given ops */ +377 a.uc_modes = UCMODE_OP; +378 } +379 else +380 { +381 a.uc_modes = 0; +382 } +383 a.channel = Ptr; +384 Ptr->AddUser((char*)user); +385 WriteChannel(Ptr,user,'JOIN :%s',Ptr->name); +386 log(DEBUG,'Sent JOIN to client'); +387 if (Ptr->topicset) +388 { +389 WriteServ(user->fd,'332 %s %s :%s', user->nick, Ptr->name, Ptr->topic); +390 WriteServ(user->fd,'333 %s %s %s %lu', user->nick, Ptr->name, Ptr->setby, (unsigned long)Ptr->topicset); +391 } +392 userlist(user,Ptr); +393 WriteServ(user->fd,'366 %s %s :End of /NAMES list.', user->nick, Ptr->name); +394 FOREACH_MOD OnUserJoin(user,Ptr); +395 return Ptr; +396 } +.fi +.PP +.SS "void kick_channel (\fBuserrec\fP * src, \fBuserrec\fP * user, \fBchanrec\fP * Ptr, char * reason)" +.PP +Definition at line 459 of file channels.cpp. +.PP +References AC_KICK, ACR_DEFAULT, ACR_DENY, chanlist, userrec::chans, cstatus(), DEBUG, DEFAULT, chanrec::DelUser(), connection::fd, FOREACH_MOD, FOREACH_RESULT, has_channel(), is_uline(), log(), chanrec::name, userrec::nick, userrec::server, STATUS_HOP, WriteChannel(), and WriteServ(). +.PP +.nf +460 { +461 if ((!src) || (!user) || (!Ptr) || (!reason)) +462 { +463 log(DEFAULT,'*** BUG *** kick_channel was given an invalid parameter'); +464 return; +465 } +466 +467 if ((!Ptr) || (!user) || (!src)) +468 { +469 return; +470 } +471 +472 log(DEBUG,'kick_channel: removing: %s %s %s',user->nick,Ptr->name,src->nick); +473 +474 if (!has_channel(user,Ptr)) +475 { +476 WriteServ(src->fd,'441 %s %s %s :They are not on that channel',src->nick, user->nick, Ptr->name); +477 return; +478 } +479 +480 int MOD_RESULT = 0; +481 FOREACH_RESULT(OnAccessCheck(src,user,Ptr,AC_KICK)); +482 if ((MOD_RESULT == ACR_DENY) && (!is_uline(src->server))) +483 return; +484 +485 if ((MOD_RESULT == ACR_DEFAULT) || (!is_uline(src->server))) +486 { +487 if ((cstatus(src,Ptr) < STATUS_HOP) || (cstatus(src,Ptr) < cstatus(user,Ptr))) +488 { +489 if (cstatus(src,Ptr) == STATUS_HOP) +490 { +491 WriteServ(src->fd,'482 %s %s :You must be a channel operator',src->nick, Ptr->name); +492 } +493 else +494 { +495 WriteServ(src->fd,'482 %s %s :You must be at least a half-operator to change modes on this channel',src->nick, Ptr->name); +496 } +497 +498 return; +499 } +500 } +501 +502 if (!is_uline(src->server)) +503 { +504 MOD_RESULT = 0; +505 FOREACH_RESULT(OnUserPreKick(src,user,Ptr,reason)); +506 if (MOD_RESULT) +507 return; +508 } +509 +510 FOREACH_MOD OnUserKick(src,user,Ptr,reason); +511 +512 for (unsigned int i =0; i < user->chans.size(); i++) +513 { +514 /* zap it from the channel list of the user */ +515 if (user->chans[i].channel) +516 if (!strcasecmp(user->chans[i].channel->name,Ptr->name)) +517 { +518 WriteChannel(Ptr,src,'KICK %s %s :%s',Ptr->name, user->nick, reason); +519 user->chans[i].uc_modes = 0; +520 user->chans[i].channel = NULL; +521 log(DEBUG,'del_channel: unlinked: %s %s',user->nick,Ptr->name); +522 break; +523 } +524 } +525 +526 Ptr->DelUser((char*)user); +527 +528 /* if there are no users left on the channel */ +529 if (!usercount(Ptr)) +530 { +531 chan_hash::iterator iter = chanlist.find(Ptr->name); +532 +533 log(DEBUG,'del_channel: destroying channel: %s',Ptr->name); +534 +535 /* kill the record */ +536 if (iter != chanlist.end()) +537 { +538 log(DEBUG,'del_channel: destroyed: %s',Ptr->name); +539 delete Ptr; +540 chanlist.erase(iter); +541 } +542 } +543 } +.fi +.PP .SH "Variable Documentation" .PP -.SS "int \fBboundPortCount\fP" +.SS "\fBchan_hash\fP \fBchanlist\fP" .PP +Referenced by add_channel(), del_channel(), and kick_channel(). .SS "\fBServerConfig\fP* \fBConfig\fP" .PP -.SS "std::stringstream \fBconfig_f\fP" -.PP .SS "std::vector<\fBModeParameter\fP> \fBcustom_mode_params\fP" .PP -Definition at line 71 of file channels.cpp. +Definition at line 70 of file channels.cpp. .PP Referenced by chanrec::GetModeParameter(), and chanrec::SetCustomModeParam(). .SS "std::vector<\fBircd_module\fP*> factory" .PP .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 938 of file modules.cpp. +Definition at line 930 of file modules.cpp. .PP Referenced by Server::FindModule(). -.SS "std::vector<\fBstd::string\fP> \fBmodule_names\fP" -.PP .SS "std::vector<\fBModule\fP*> modules" .PP Referenced by Server::FindModule(). -.SS "time_t \fBstartup_time\fP" -.PP .SS "time_t \fBTIME\fP" .PP -Referenced by userrec::userrec(). +Referenced by add_channel(), and userrec::userrec(). .SS "int \fBWHOWAS_MAX\fP" .PP .SS "int \fBWHOWAS_STALE\fP" diff --git a/docs/man/man3/channels.h.3 b/docs/man/man3/channels.h.3 index f1fb458f0..d69ebe674 100644 --- a/docs/man/man3/channels.h.3 +++ b/docs/man/man3/channels.h.3 @@ -102,17 +102,34 @@ channels.h \- .br .RI "\fIHolds a complete invite list. \fP" .in -1c +.SS "Functions" + +.in +1c +.ti -1c +.RI "\fBchanrec\fP * \fBadd_channel\fP (\fBuserrec\fP *user, const char *cn, const char *key, bool override)" +.br +.ti -1c +.RI "\fBchanrec\fP * \fBdel_channel\fP (\fBuserrec\fP *user, const char *cname, const char *reason, bool local)" +.br +.ti -1c +.RI "void \fBkick_channel\fP (\fBuserrec\fP *src, \fBuserrec\fP *user, \fBchanrec\fP *Ptr, char *reason)" +.br +.in -1c .SH "Define Documentation" .PP .SS "#define CM_INVITEONLY 4" .PP Definition at line 28 of file channels.h. +.PP +Referenced by add_channel(). .SS "#define CM_MODERATED 8" .PP Definition at line 29 of file channels.h. .SS "#define CM_NOEXTERNAL 2" .PP Definition at line 27 of file channels.h. +.PP +Referenced by add_channel(). .SS "#define CM_PRIVATE 32" .PP Definition at line 31 of file channels.h. @@ -122,38 +139,389 @@ Definition at line 30 of file channels.h. .SS "#define CM_TOPICLOCK 1" .PP Definition at line 26 of file channels.h. +.PP +Referenced by add_channel(). .SS "#define UCMODE_FOUNDER 16" .PP -Definition at line 234 of file channels.h. +Definition at line 236 of file channels.h. .SS "#define UCMODE_HOP 4" .PP -Definition at line 232 of file channels.h. +Definition at line 234 of file channels.h. .SS "#define UCMODE_OP 1" .PP -Definition at line 230 of file channels.h. +Definition at line 232 of file channels.h. +.PP +Referenced by ForceChan(). .SS "#define UCMODE_PROTECT 8" .PP -Definition at line 233 of file channels.h. +Definition at line 235 of file channels.h. .SS "#define UCMODE_VOICE 2" .PP -Definition at line 231 of file channels.h. +Definition at line 233 of file channels.h. .SH "Typedef Documentation" .PP .SS "typedef std::vector<\fBBanItem\fP> \fBBanList\fP" .PP Holds a complete ban list. .PP -Definition at line 87 of file channels.h. +Definition at line 89 of file channels.h. .SS "typedef std::vector<\fBExemptItem\fP> \fBExemptList\fP" .PP Holds a complete exempt list. .PP -Definition at line 91 of file channels.h. +Definition at line 93 of file channels.h. .SS "typedef std::vector<\fBInviteItem\fP> \fBInviteList\fP" .PP Holds a complete invite list. .PP -Definition at line 95 of file channels.h. +Definition at line 97 of file channels.h. +.SH "Function Documentation" +.PP +.SS "\fBchanrec\fP* add_channel (\fBuserrec\fP * user, const char * cn, const char * key, bool override)" +.PP +Definition at line 195 of file channels.cpp. +.PP +References chanrec::bans, chanrec::binarymodes, chanlist, userrec::chans, CM_INVITEONLY, CM_NOEXTERNAL, CM_TOPICLOCK, DEBUG, DEFAULT, connection::fd, FindChan(), ForceChan(), FOREACH_RESULT, userrec::GetFullHost(), has_channel(), userrec::IsInvited(), chanrec::key, chanrec::limit, log(), userrec::modes, chanrec::name, userrec::nick, userrec::RemoveInvite(), TIME, and WriteServ(). +.PP +Referenced by Server::JoinUserToChannel(). +.PP +.nf +196 { +197 if ((!user) || (!cn)) +198 { +199 log(DEFAULT,'*** BUG *** add_channel was given an invalid parameter'); +200 return 0; +201 } +202 +203 int created = 0; +204 char cname[MAXBUF]; +205 int MOD_RESULT = 0; +206 strncpy(cname,cn,CHANMAX); +207 +208 log(DEBUG,'add_channel: %s %s',user->nick,cname); +209 +210 chanrec* Ptr = FindChan(cname); +211 +212 if (!Ptr) +213 { +214 if (user->fd > -1) +215 { +216 MOD_RESULT = 0; +217 FOREACH_RESULT(OnUserPreJoin(user,NULL,cname)); +218 if (MOD_RESULT == 1) +219 return NULL; +220 } +221 /* create a new one */ +222 chanlist[cname] = new chanrec(); +223 strlcpy(chanlist[cname]->name, cname,CHANMAX); +224 chanlist[cname]->binarymodes = CM_TOPICLOCK | CM_NOEXTERNAL; +225 chanlist[cname]->created = TIME; +226 strcpy(chanlist[cname]->topic, ''); +227 strncpy(chanlist[cname]->setby, user->nick,NICKMAX); +228 chanlist[cname]->topicset = 0; +229 Ptr = chanlist[cname]; +230 log(DEBUG,'add_channel: created: %s',cname); +231 /* set created to 2 to indicate user +232 * is the first in the channel +233 * and should be given ops */ +234 created = 2; +235 } +236 else +237 { +238 /* Already on the channel */ +239 if (has_channel(user,Ptr)) +240 return NULL; +241 +242 // remote users are allowed us to bypass channel modes +243 // and bans (used by servers) +244 if (user->fd > -1) +245 { +246 MOD_RESULT = 0; +247 FOREACH_RESULT(OnUserPreJoin(user,Ptr,cname)); +248 if (MOD_RESULT == 1) +249 { +250 return NULL; +251 } +252 else +253 { +254 if (*Ptr->key) +255 { +256 MOD_RESULT = 0; +257 FOREACH_RESULT(OnCheckKey(user, Ptr, key ? key : '')); +258 if (!MOD_RESULT) +259 { +260 if (!key) +261 { +262 log(DEBUG,'add_channel: no key given in JOIN'); +263 WriteServ(user->fd,'475 %s %s :Cannot join channel (Requires key)',user->nick, Ptr->name); +264 return NULL; +265 } +266 else +267 { +268 if (strcasecmp(key,Ptr->key)) +269 { +270 log(DEBUG,'add_channel: bad key given in JOIN'); +271 WriteServ(user->fd,'475 %s %s :Cannot join channel (Incorrect key)',user->nick, Ptr->name); +272 return NULL; +273 } +274 } +275 } +276 } +277 if (Ptr->binarymodes & CM_INVITEONLY) +278 { +279 MOD_RESULT = 0; +280 FOREACH_RESULT(OnCheckInvite(user, Ptr)); +281 if (!MOD_RESULT) +282 { +283 log(DEBUG,'add_channel: channel is +i'); +284 if (user->IsInvited(Ptr->name)) +285 { +286 /* user was invited to channel */ +287 /* there may be an optional channel NOTICE here */ +288 } +289 else +290 { +291 WriteServ(user->fd,'473 %s %s :Cannot join channel (Invite only)',user->nick, Ptr->name); +292 return NULL; +293 } +294 } +295 user->RemoveInvite(Ptr->name); +296 } +297 if (Ptr->limit) +298 { +299 MOD_RESULT = 0; +300 FOREACH_RESULT(OnCheckLimit(user, Ptr)); +301 if (!MOD_RESULT) +302 { +303 if (usercount(Ptr) >= Ptr->limit) +304 { +305 WriteServ(user->fd,'471 %s %s :Cannot join channel (Channel is full)',user->nick, Ptr->name); +306 return NULL; +307 } +308 } +309 } +310 if (Ptr->bans.size()) +311 { +312 log(DEBUG,'add_channel: about to walk banlist'); +313 MOD_RESULT = 0; +314 FOREACH_RESULT(OnCheckBan(user, Ptr)); +315 if (!MOD_RESULT) +316 { +317 for (BanList::iterator i = Ptr->bans.begin(); i != Ptr->bans.end(); i++) +318 { +319 if (match(user->GetFullHost(),i->data)) +320 { +321 WriteServ(user->fd,'474 %s %s :Cannot join channel (You're banned)',user->nick, Ptr->name); +322 return NULL; +323 } +324 } +325 } +326 } +327 } +328 } +329 else +330 { +331 log(DEBUG,'Overridden checks'); +332 } +333 created = 1; +334 } +335 +336 log(DEBUG,'Passed channel checks'); +337 +338 for (unsigned int index =0; index < user->chans.size(); index++) +339 { +340 if (user->chans[index].channel == NULL) +341 { +342 return ForceChan(Ptr,user->chans[index],user,created); +343 } +344 } +345 /* XXX: If the user is an oper here, we can just extend their user->chans vector by one +346 * and put the channel in here. Same for remote users which are not bound by +347 * the channel limits. Otherwise, nope, youre boned. +348 */ +349 if (user->fd < 0) +350 { +351 ucrec a; +352 chanrec* c = ForceChan(Ptr,a,user,created); +353 user->chans.push_back(a); +354 return c; +355 } +356 else if (strchr(user->modes,'o')) +357 { +358 /* Oper allows extension up to the OPERMAXCHANS value */ +359 if (user->chans.size() < OPERMAXCHANS) +360 { +361 ucrec a; +362 chanrec* c = ForceChan(Ptr,a,user,created); +363 user->chans.push_back(a); +364 return c; +365 } +366 } +367 log(DEBUG,'add_channel: user channel max exceeded: %s %s',user->nick,cname); +368 WriteServ(user->fd,'405 %s %s :You are on too many channels',user->nick, cname); +369 return NULL; +370 } +.fi +.PP +.SS "\fBchanrec\fP* del_channel (\fBuserrec\fP * user, const char * cname, const char * reason, bool local)" +.PP +Definition at line 401 of file channels.cpp. +.PP +References chanlist, userrec::chans, DEBUG, DEFAULT, chanrec::DelUser(), FindChan(), FOREACH_MOD, log(), chanrec::name, userrec::nick, and WriteChannel(). +.PP +Referenced by Server::PartUserFromChannel(). +.PP +.nf +402 { +403 if ((!user) || (!cname)) +404 { +405 log(DEFAULT,'*** BUG *** del_channel was given an invalid parameter'); +406 return NULL; +407 } +408 +409 chanrec* Ptr = FindChan(cname); +410 +411 if (!Ptr) +412 return NULL; +413 +414 FOREACH_MOD OnUserPart(user,Ptr); +415 log(DEBUG,'del_channel: removing: %s %s',user->nick,Ptr->name); +416 +417 for (unsigned int i =0; i < user->chans.size(); i++) +418 { +419 /* zap it from the channel list of the user */ +420 if (user->chans[i].channel == Ptr) +421 { +422 if (reason) +423 { +424 WriteChannel(Ptr,user,'PART %s :%s',Ptr->name, reason); +425 } +426 else +427 { +428 WriteChannel(Ptr,user,'PART :%s',Ptr->name); +429 } +430 user->chans[i].uc_modes = 0; +431 user->chans[i].channel = NULL; +432 log(DEBUG,'del_channel: unlinked: %s %s',user->nick,Ptr->name); +433 break; +434 } +435 } +436 +437 Ptr->DelUser((char*)user); +438 +439 /* if there are no users left on the channel */ +440 if (!usercount(Ptr)) +441 { +442 chan_hash::iterator iter = chanlist.find(Ptr->name); +443 +444 log(DEBUG,'del_channel: destroying channel: %s',Ptr->name); +445 +446 /* kill the record */ +447 if (iter != chanlist.end()) +448 { +449 log(DEBUG,'del_channel: destroyed: %s',Ptr->name); +450 delete Ptr; +451 chanlist.erase(iter); +452 } +453 } +454 +455 return NULL; +456 } +.fi +.PP +.SS "void kick_channel (\fBuserrec\fP * src, \fBuserrec\fP * user, \fBchanrec\fP * Ptr, char * reason)" +.PP +Definition at line 459 of file channels.cpp. +.PP +References AC_KICK, ACR_DEFAULT, ACR_DENY, chanlist, userrec::chans, cstatus(), DEBUG, DEFAULT, chanrec::DelUser(), connection::fd, FOREACH_MOD, FOREACH_RESULT, has_channel(), is_uline(), log(), chanrec::name, userrec::nick, userrec::server, STATUS_HOP, WriteChannel(), and WriteServ(). +.PP +.nf +460 { +461 if ((!src) || (!user) || (!Ptr) || (!reason)) +462 { +463 log(DEFAULT,'*** BUG *** kick_channel was given an invalid parameter'); +464 return; +465 } +466 +467 if ((!Ptr) || (!user) || (!src)) +468 { +469 return; +470 } +471 +472 log(DEBUG,'kick_channel: removing: %s %s %s',user->nick,Ptr->name,src->nick); +473 +474 if (!has_channel(user,Ptr)) +475 { +476 WriteServ(src->fd,'441 %s %s %s :They are not on that channel',src->nick, user->nick, Ptr->name); +477 return; +478 } +479 +480 int MOD_RESULT = 0; +481 FOREACH_RESULT(OnAccessCheck(src,user,Ptr,AC_KICK)); +482 if ((MOD_RESULT == ACR_DENY) && (!is_uline(src->server))) +483 return; +484 +485 if ((MOD_RESULT == ACR_DEFAULT) || (!is_uline(src->server))) +486 { +487 if ((cstatus(src,Ptr) < STATUS_HOP) || (cstatus(src,Ptr) < cstatus(user,Ptr))) +488 { +489 if (cstatus(src,Ptr) == STATUS_HOP) +490 { +491 WriteServ(src->fd,'482 %s %s :You must be a channel operator',src->nick, Ptr->name); +492 } +493 else +494 { +495 WriteServ(src->fd,'482 %s %s :You must be at least a half-operator to change modes on this channel',src->nick, Ptr->name); +496 } +497 +498 return; +499 } +500 } +501 +502 if (!is_uline(src->server)) +503 { +504 MOD_RESULT = 0; +505 FOREACH_RESULT(OnUserPreKick(src,user,Ptr,reason)); +506 if (MOD_RESULT) +507 return; +508 } +509 +510 FOREACH_MOD OnUserKick(src,user,Ptr,reason); +511 +512 for (unsigned int i =0; i < user->chans.size(); i++) +513 { +514 /* zap it from the channel list of the user */ +515 if (user->chans[i].channel) +516 if (!strcasecmp(user->chans[i].channel->name,Ptr->name)) +517 { +518 WriteChannel(Ptr,src,'KICK %s %s :%s',Ptr->name, user->nick, reason); +519 user->chans[i].uc_modes = 0; +520 user->chans[i].channel = NULL; +521 log(DEBUG,'del_channel: unlinked: %s %s',user->nick,Ptr->name); +522 break; +523 } +524 } +525 +526 Ptr->DelUser((char*)user); +527 +528 /* if there are no users left on the channel */ +529 if (!usercount(Ptr)) +530 { +531 chan_hash::iterator iter = chanlist.find(Ptr->name); +532 +533 log(DEBUG,'del_channel: destroying channel: %s',Ptr->name); +534 +535 /* kill the record */ +536 if (iter != chanlist.end()) +537 { +538 log(DEBUG,'del_channel: destroyed: %s',Ptr->name); +539 delete Ptr; +540 chanlist.erase(iter); +541 } +542 } +543 } +.fi +.PP .SH "Author" .PP Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/chanrec.3 b/docs/man/man3/chanrec.3 index 3a6a2b8d3..393b75457 100644 --- a/docs/man/man3/chanrec.3 +++ b/docs/man/man3/chanrec.3 @@ -109,36 +109,36 @@ Holds all relevent information for a channel. This class represents a channel, and contains its name, modes, time created, topic, topic set time, etc, and an instance of the BanList type. .PP -Definition at line 101 of file channels.h. +Definition at line 103 of file channels.h. .SH "Constructor & Destructor Documentation" .PP .SS "chanrec::chanrec ()" .PP Creates a channel record and initialises it with default values. .PP -Definition at line 73 of file channels.cpp. +Definition at line 74 of file channels.cpp. .PP References binarymodes, created, custom_modes, internal_userlist, key, limit, name, setby, topic, and topicset. .PP .nf -74 { -75 strcpy(name,''); -76 strcpy(custom_modes,''); -77 strcpy(topic,''); -78 strcpy(setby,''); -79 strcpy(key,''); -80 created = topicset = limit = 0; -81 binarymodes = 0; -82 internal_userlist.clear(); -83 } +75 { +76 strcpy(name,''); +77 strcpy(custom_modes,''); +78 strcpy(topic,''); +79 strcpy(setby,''); +80 strcpy(key,''); +81 created = topicset = limit = 0; +82 binarymodes = 0; +83 internal_userlist.clear(); +84 } .fi .PP .SS "virtual chanrec::~chanrec ()\fC [inline, virtual]\fP" .PP -Definition at line 224 of file channels.h. +Definition at line 226 of file channels.h. .PP .nf -224 { /* stub */ } +226 { /* stub */ } .fi .PP .SH "Member Function Documentation" @@ -154,15 +154,17 @@ Add a user pointer to the internal reference list. .PP The data inserted into the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison. .PP -Definition at line 166 of file channels.cpp. +Definition at line 167 of file channels.cpp. .PP -References DEBUG, and internal_userlist. +References DEBUG, internal_userlist, and log(). +.PP +Referenced by ForceChan(). .PP .nf -167 { -168 internal_userlist.push_back(castuser); -169 log(DEBUG,'Added casted user to channel's internal list'); -170 } +168 { +169 internal_userlist.push_back(castuser); +170 log(DEBUG,'Added casted user to channel's internal list'); +171 } .fi .PP .SS "void chanrec::DelUser (char * castuser)" @@ -176,23 +178,25 @@ Delete a user pointer to the internal reference list. .PP The data removed from the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison. .PP -Definition at line 172 of file channels.cpp. +Definition at line 173 of file channels.cpp. +.PP +References DEBUG, internal_userlist, log(), and name. .PP -References DEBUG, internal_userlist, and name. +Referenced by del_channel(), and kick_channel(). .PP .nf -173 { -174 for (std::vector::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) -175 { -176 if (*a == castuser) -177 { -178 log(DEBUG,'Removed casted user from channel's internal list'); -179 internal_userlist.erase(a); -180 return; -181 } -182 } -183 log(DEBUG,'BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!',name); -184 } +174 { +175 for (std::vector::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) +176 { +177 if (*a == castuser) +178 { +179 log(DEBUG,'Removed casted user from channel's internal list'); +180 internal_userlist.erase(a); +181 return; +182 } +183 } +184 log(DEBUG,'BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!',name); +185 } .fi .PP .SS "\fBstd::string\fP chanrec::GetModeParameter (char mode)" @@ -213,24 +217,24 @@ The parameter for this mode is returned, or an empty string .PP .PP -Definition at line 146 of file channels.cpp. +Definition at line 147 of file channels.cpp. .PP References custom_mode_params. .PP .nf -147 { -148 if (custom_mode_params.size()) -149 { -150 for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -151 { -152 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -153 { -154 return i->parameter; -155 } -156 } -157 } -158 return ''; -159 } +148 { +149 if (custom_mode_params.size()) +150 { +151 for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) +152 { +153 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +154 { +155 return i->parameter; +156 } +157 } +158 } +159 return ''; +160 } .fi .PP .SS "long chanrec::GetUserCounter ()" @@ -244,12 +248,12 @@ The number of users on this channel .PP .PP -Definition at line 161 of file channels.cpp. +Definition at line 162 of file channels.cpp. .PP .nf -162 { -163 return (this->internal_userlist.size()); -164 } +163 { +164 return (this->internal_userlist.size()); +165 } .fi .PP .SS "std::vector< char * > * chanrec::GetUsers ()" @@ -265,16 +269,16 @@ This function returns a vector of userrec pointers, each of which has been caste .PP .PP -Definition at line 186 of file channels.cpp. +Definition at line 187 of file channels.cpp. .PP References internal_userlist. .PP Referenced by Server::GetUsers(). .PP .nf -187 { -188 return &internal_userlist; -189 } +188 { +189 return &internal_userlist; +190 } .fi .PP .SS "bool chanrec::IsCustomModeSet (char mode)" @@ -293,12 +297,12 @@ True if the custom mode is set, false if otherwise .PP .PP -Definition at line 141 of file channels.cpp. +Definition at line 142 of file channels.cpp. .PP .nf -142 { -143 return (strchr(this->custom_modes,mode)); -144 } +143 { +144 return (strchr(this->custom_modes,mode)); +145 } .fi .PP .SS "void chanrec::SetCustomMode (char mode, bool mode_on)" @@ -314,33 +318,33 @@ Sets or unsets a custom mode in the channels info. .PP .PP -Definition at line 85 of file channels.cpp. +Definition at line 86 of file channels.cpp. .PP -References custom_modes, DEBUG, and SetCustomModeParam(). +References custom_modes, DEBUG, log(), and SetCustomModeParam(). .PP .nf -86 { -87 if (mode_on) { -88 static char m[3]; -89 m[0] = mode; -90 m[1] = '\0'; -91 if (!strchr(this->custom_modes,mode)) -92 { -93 strlcat(custom_modes,m,MAXMODES); -94 } -95 log(DEBUG,'Custom mode %c set',mode); -96 } -97 else { -98 -99 std::string a = this->custom_modes; -100 int pos = a.find(mode); -101 a.erase(pos,1); -102 strncpy(this->custom_modes,a.c_str(),MAXMODES); -103 -104 log(DEBUG,'Custom mode %c removed: modelist='%s'',mode,this->custom_modes); -105 this->SetCustomModeParam(mode,'',false); -106 } -107 } +87 { +88 if (mode_on) { +89 static char m[3]; +90 m[0] = mode; +91 m[1] = '\0'; +92 if (!strchr(this->custom_modes,mode)) +93 { +94 strlcat(custom_modes,m,MAXMODES); +95 } +96 log(DEBUG,'Custom mode %c set',mode); +97 } +98 else { +99 +100 std::string a = this->custom_modes; +101 int pos = a.find(mode); +102 a.erase(pos,1); +103 strncpy(this->custom_modes,a.c_str(),MAXMODES); +104 +105 log(DEBUG,'Custom mode %c removed: modelist='%s'',mode,this->custom_modes); +106 this->SetCustomModeParam(mode,'',false); +107 } +108 } .fi .PP .SS "void chanrec::SetCustomModeParam (char mode, char * parameter, bool mode_on)" @@ -358,42 +362,42 @@ Sets or unsets the parameters for a custom mode in a channels info. .PP .PP -Definition at line 110 of file channels.cpp. +Definition at line 111 of file channels.cpp. .PP -References ModeParameter::channel, custom_mode_params, DEBUG, ModeParameter::mode, and ModeParameter::parameter. +References ModeParameter::channel, custom_mode_params, DEBUG, log(), ModeParameter::mode, and ModeParameter::parameter. .PP Referenced by SetCustomMode(). .PP .nf -111 { -112 -113 log(DEBUG,'SetCustomModeParam called'); -114 ModeParameter M; -115 M.mode = mode; -116 strlcpy(M.channel,this->name,CHANMAX); -117 strlcpy(M.parameter,parameter,MAXBUF); -118 if (mode_on) -119 { -120 log(DEBUG,'Custom mode parameter %c %s added',mode,parameter); -121 custom_mode_params.push_back(M); -122 } -123 else -124 { -125 if (custom_mode_params.size()) -126 { -127 for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -128 { -129 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -130 { -131 log(DEBUG,'Custom mode parameter %c %s removed',mode,parameter); -132 custom_mode_params.erase(i); -133 return; -134 } -135 } -136 } -137 log(DEBUG,'*** BUG *** Attempt to remove non-existent mode parameter!'); -138 } -139 } +112 { +113 +114 log(DEBUG,'SetCustomModeParam called'); +115 ModeParameter M; +116 M.mode = mode; +117 strlcpy(M.channel,this->name,CHANMAX); +118 strlcpy(M.parameter,parameter,MAXBUF); +119 if (mode_on) +120 { +121 log(DEBUG,'Custom mode parameter %c %s added',mode,parameter); +122 custom_mode_params.push_back(M); +123 } +124 else +125 { +126 if (custom_mode_params.size()) +127 { +128 for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) +129 { +130 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +131 { +132 log(DEBUG,'Custom mode parameter %c %s removed',mode,parameter); +133 custom_mode_params.erase(i); +134 return; +135 } +136 } +137 } +138 log(DEBUG,'*** BUG *** Attempt to remove non-existent mode parameter!'); +139 } +140 } .fi .PP .SH "Member Data Documentation" @@ -402,19 +406,21 @@ Referenced by SetCustomMode(). .PP The list of all bans set on the channel. .PP -Definition at line 149 of file channels.h. +Definition at line 151 of file channels.h. +.PP +Referenced by add_channel(). .SS "char \fBchanrec::binarymodes\fP" .PP Contains a bitmask of the CM_* builtin (RFC) binary mode symbols. .PP -Definition at line 145 of file channels.h. +Definition at line 147 of file channels.h. .PP -Referenced by chanrec(). +Referenced by add_channel(), and chanrec(). .SS "time_t \fBchanrec::created\fP" .PP Creation time. .PP -Definition at line 123 of file channels.h. +Definition at line 125 of file channels.h. .PP Referenced by chanrec(). .SS "char \fBchanrec::custom_modes\fP[MAXMODES]" @@ -423,14 +429,14 @@ Custom modes for the channel. .PP Plugins may use this field in any way they see fit. .PP -Definition at line 110 of file channels.h. +Definition at line 112 of file channels.h. .PP Referenced by chanrec(), and SetCustomMode(). .SS "std::vector \fBchanrec::internal_userlist\fP" .PP User list (casted to char*'s to stop forward declaration stuff) (chicken and egg scenario!). .PP -Definition at line 115 of file channels.h. +Definition at line 117 of file channels.h. .PP Referenced by AddUser(), chanrec(), DelUser(), and GetUsers(). .SS "char \fBchanrec::key\fP[32]" @@ -439,52 +445,52 @@ Contains the channel key. .PP If this value is an empty string, there is no channel key in place. .PP -Definition at line 141 of file channels.h. +Definition at line 143 of file channels.h. .PP -Referenced by chanrec(). +Referenced by add_channel(), and chanrec(). .SS "short int \fBchanrec::limit\fP" .PP Contains the channel user limit. .PP If this value is zero, there is no limit in place. .PP -Definition at line 136 of file channels.h. +Definition at line 138 of file channels.h. .PP -Referenced by chanrec(). +Referenced by add_channel(), and chanrec(). .SS "char \fBchanrec::name\fP[CHANMAX]" .PP The channels name. .PP -Definition at line 106 of file channels.h. +Definition at line 108 of file channels.h. .PP -Referenced by chanrec(), DelUser(), and Server::PseudoToUser(). +Referenced by add_channel(), chanrec(), del_channel(), DelUser(), ForceChan(), kick_channel(), and Server::PseudoToUser(). .SS "char \fBchanrec::setby\fP[NICKMAX]" .PP The last user to set the topic. .PP If this member is an empty string, no topic was ever set. .PP -Definition at line 131 of file channels.h. +Definition at line 133 of file channels.h. .PP -Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(), ForceChan(), and Server::PseudoToUser(). .SS "char \fBchanrec::topic\fP[MAXBUF]" .PP Channel topic. .PP If this is an empty string, no channel topic is set. .PP -Definition at line 120 of file channels.h. +Definition at line 122 of file channels.h. .PP -Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(), ForceChan(), and Server::PseudoToUser(). .SS "time_t \fBchanrec::topicset\fP" .PP Time topic was set. .PP If no topic was ever set, this will be equal to \fBchanrec::created\fP .PP -Definition at line 127 of file channels.h. +Definition at line 129 of file channels.h. .PP -Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(), ForceChan(), and Server::PseudoToUser(). .SH "Author" .PP diff --git a/docs/man/man3/command_t.3 b/docs/man/man3/command_t.3 index d9c551c30..37dbe8e76 100644 --- a/docs/man/man3/command_t.3 +++ b/docs/man/man3/command_t.3 @@ -20,7 +20,7 @@ Inherits \fBExtensible\fP. .br .RI "\fICommand name. \fP" .ti -1c -.RI "handlerfunc * \fBhandler_function\fP" +.RI "\fBhandlerfunc\fP * \fBhandler_function\fP" .br .RI "\fIHandler function as in typedef. \fP" .ti -1c @@ -61,7 +61,7 @@ Definition at line 31 of file ctables.h. User flags needed to execute the command or 0. .PP Definition at line 37 of file ctables.h. -.SS "handlerfunc* \fBcommand_t::handler_function\fP" +.SS "\fBhandlerfunc\fP* \fBcommand_t::handler_function\fP" .PP Handler function as in typedef. .PP diff --git a/docs/man/man3/commands.h.3 b/docs/man/man3/commands.h.3 index 338196308..27e6cf0a7 100644 --- a/docs/man/man3/commands.h.3 +++ b/docs/man/man3/commands.h.3 @@ -309,7 +309,7 @@ These are the handlers for user commands. .PP Functions for u:lined servers. .PP -Referenced by userrec::HasPermission(), and Server::IsUlined(). +Referenced by userrec::HasPermission(), Server::IsUlined(), and kick_channel(). .SH "Author" .PP Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/connection.3 b/docs/man/man3/connection.3 index 46175dd7f..c341c9284 100644 --- a/docs/man/man3/connection.3 +++ b/docs/man/man3/connection.3 @@ -139,7 +139,7 @@ File descriptor of the connection. .PP Definition at line 42 of file connection.h. .PP -Referenced by connection(), ConfigReader::DumpErrors(), Server::PseudoToUser(), Server::SendTo(), userrec::userrec(), and Server::UserToPseudo(). +Referenced by add_channel(), connection(), ConfigReader::DumpErrors(), kick_channel(), Server::PseudoToUser(), Server::SendTo(), userrec::userrec(), and Server::UserToPseudo(). .SS "bool \fBconnection::haspassed\fP" .PP True if server/user has authenticated, false if otherwise. diff --git a/docs/man/man3/globals.h.3 b/docs/man/man3/globals.h.3 new file mode 100644 index 000000000..06d0d81f1 --- /dev/null +++ b/docs/man/man3/globals.h.3 @@ -0,0 +1,174 @@ +.TH "globals.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +globals.h \- +.SH SYNOPSIS +.br +.PP +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include 'users.h'\fP +.br +\fC#include 'channels.h'\fP +.br + +.SS "Typedefs" + +.in +1c +.ti -1c +.RI "typedef std::deque< \fBstd::string\fP > \fBfile_cache\fP" +.br +.in -1c +.SS "Functions" + +.in +1c +.ti -1c +.RI "void \fBWriteOpers\fP (char *text,...)" +.br +.ti -1c +.RI "void \fBlog\fP (int level, char *text,...)" +.br +.ti -1c +.RI "void \fBWrite\fP (int sock, char *text,...)" +.br +.ti -1c +.RI "void \fBWriteServ\fP (int sock, char *text,...)" +.br +.ti -1c +.RI "void \fBWriteFrom\fP (int sock, \fBuserrec\fP *user, char *text,...)" +.br +.ti -1c +.RI "void \fBWriteTo\fP (\fBuserrec\fP *source, \fBuserrec\fP *dest, char *data,...)" +.br +.ti -1c +.RI "void \fBWriteChannel\fP (\fBchanrec\fP *Ptr, \fBuserrec\fP *user, char *text,...)" +.br +.ti -1c +.RI "void \fBChanExceptSender\fP (\fBchanrec\fP *Ptr, \fBuserrec\fP *user, char *text,...)" +.br +.ti -1c +.RI "int \fBcommon_channels\fP (\fBuserrec\fP *u, \fBuserrec\fP *u2)" +.br +.ti -1c +.RI "void \fBWriteCommon\fP (\fBuserrec\fP *u, char *text,...)" +.br +.ti -1c +.RI "void \fBWriteCommonExcept\fP (\fBuserrec\fP *u, char *text,...)" +.br +.ti -1c +.RI "void \fBWriteWallOps\fP (\fBuserrec\fP *source, bool local_only, char *text,...)" +.br +.ti -1c +.RI "int \fBisnick\fP (const char *n)" +.br +.ti -1c +.RI "\fBuserrec\fP * \fBFind\fP (\fBstd::string\fP nick)" +.br +.ti -1c +.RI "\fBchanrec\fP * \fBFindChan\fP (const char *chan)" +.br +.ti -1c +.RI "char * \fBcmode\fP (\fBuserrec\fP *user, \fBchanrec\fP *chan)" +.br +.ti -1c +.RI "\fBstd::string\fP \fBgetservername\fP ()" +.br +.ti -1c +.RI "\fBstd::string\fP \fBgetnetworkname\fP ()" +.br +.ti -1c +.RI "\fBstd::string\fP \fBgetadminname\fP ()" +.br +.ti -1c +.RI "\fBstd::string\fP \fBgetadminemail\fP ()" +.br +.ti -1c +.RI "\fBstd::string\fP \fBgetadminnick\fP ()" +.br +.ti -1c +.RI "void \fBreadfile\fP (\fBfile_cache\fP &F, const char *fname)" +.br +.ti -1c +.RI "int \fBModeDefiend\fP (char c, int i)" +.br +.in -1c +.SH "Typedef Documentation" +.PP +.SS "typedef std::deque<\fBstd::string\fP> \fBfile_cache\fP" +.PP +Definition at line 29 of file globals.h. +.SH "Function Documentation" +.PP +.SS "void ChanExceptSender (\fBchanrec\fP * Ptr, \fBuserrec\fP * user, char * text, ...)" +.PP +Referenced by Server::SendChannel(). +.SS "char* cmode (\fBuserrec\fP * user, \fBchanrec\fP * chan)" +.PP +Referenced by Server::ChanMode(). +.SS "int common_channels (\fBuserrec\fP * u, \fBuserrec\fP * u2)" +.PP +Referenced by Server::CommonChannels(). +.SS "\fBuserrec\fP* Find (\fBstd::string\fP nick)" +.PP +Referenced by Server::FindNick(). +.SS "\fBchanrec\fP* FindChan (const char * chan)" +.PP +Referenced by add_channel(), del_channel(), and Server::FindChannel(). +.SS "\fBstd::string\fP getadminemail ()" +.PP +.SS "\fBstd::string\fP getadminname ()" +.PP +.SS "\fBstd::string\fP getadminnick ()" +.PP +.SS "\fBstd::string\fP getnetworkname ()" +.PP +.SS "\fBstd::string\fP getservername ()" +.PP +.SS "int isnick (const char * n)" +.PP +Referenced by Server::IsNick(). +.SS "void log (int level, char * text, ...)" +.PP +Referenced by add_channel(), Server::AddExtendedMode(), SocketEngine::AddFd(), chanrec::AddUser(), del_channel(), SocketEngine::DelFd(), chanrec::DelUser(), ForceChan(), InspSocket::InspSocket(), kick_channel(), Server::Log(), InspSocket::Read(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), SocketEngine::SocketEngine(), and SocketEngine::~SocketEngine(). +.SS "int ModeDefiend (char c, int i)" +.PP +.SS "void readfile (\fBfile_cache\fP & F, const char * fname)" +.PP +Referenced by FileReader::FileReader(), and FileReader::LoadFile(). +.SS "void Write (int sock, char * text, ...)" +.PP +Referenced by Server::PseudoToUser(), Server::Send(), Server::SendTo(), and Server::UserToPseudo(). +.SS "void WriteChannel (\fBchanrec\fP * Ptr, \fBuserrec\fP * user, char * text, ...)" +.PP +Referenced by del_channel(), ForceChan(), kick_channel(), and Server::SendChannel(). +.SS "void WriteCommon (\fBuserrec\fP * u, char * text, ...)" +.PP +Referenced by Server::SendCommon(). +.SS "void WriteCommonExcept (\fBuserrec\fP * u, char * text, ...)" +.PP +Referenced by Server::SendCommon(). +.SS "void WriteFrom (int sock, \fBuserrec\fP * user, char * text, ...)" +.PP +Referenced by Server::PseudoToUser(), and Server::SendFrom(). +.SS "void WriteOpers (char * text, ...)" +.PP +Referenced by userrec::AddBuffer(), userrec::AddWriteBuf(), ConfigReader::DumpErrors(), Server::RehashServer(), and Server::SendOpers(). +.SS "void WriteServ (int sock, char * text, ...)" +.PP +Referenced by add_channel(), ConfigReader::DumpErrors(), ForceChan(), kick_channel(), Server::PseudoToUser(), and Server::SendServ(). +.SS "void WriteTo (\fBuserrec\fP * source, \fBuserrec\fP * dest, char * data, ...)" +.PP +Referenced by Server::SendTo(). +.SS "void WriteWallOps (\fBuserrec\fP * source, bool local_only, char * text, ...)" +.PP +Referenced by Server::SendWallops(). +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/inspircd.h.3 b/docs/man/man3/inspircd.h.3 new file mode 100644 index 000000000..7ad3acf2c --- /dev/null +++ b/docs/man/man3/inspircd.h.3 @@ -0,0 +1,271 @@ +.TH "inspircd.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +inspircd.h \- +.SH SYNOPSIS +.br +.PP +\fC#include 'inspircd_config.h'\fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include 'inspircd_io.h'\fP +.br +\fC#include 'inspircd_util.h'\fP +.br +\fC#include 'users.h'\fP +.br +\fC#include 'channels.h'\fP +.br +\fC#include 'socket.h'\fP +.br + +.SS "Classes" + +.in +1c +.ti -1c +.RI "class \fBserverstats\fP" +.br +.ti -1c +.RI "class \fBInspIRCd\fP" +.br +.in -1c +.SS "Defines" + +.in +1c +.ti -1c +.RI "#define \fBERROR\fP -1" +.br +.ti -1c +.RI "#define \fBTRUE\fP 1" +.br +.ti -1c +.RI "#define \fBFALSE\fP 0" +.br +.ti -1c +.RI "#define \fBMAXSOCKS\fP 64" +.br +.ti -1c +.RI "#define \fBMAXCOMMAND\fP 32" +.br +.ti -1c +.RI "#define \fBWM_AND\fP 1" +.br +.ti -1c +.RI "#define \fBWM_OR\fP 2" +.br +.ti -1c +.RI "#define \fBTYPE_USER\fP 1" +.br +.ti -1c +.RI "#define \fBTYPE_CHANNEL\fP 2" +.br +.ti -1c +.RI "#define \fBTYPE_SERVER\fP 3" +.br +.ti -1c +.RI "#define \fBIS_LOCAL\fP(x) (x->fd > -1)" +.br +.ti -1c +.RI "#define \fBIS_REMOTE\fP(x) (x->fd < 0)" +.br +.ti -1c +.RI "#define \fBIS_MODULE_CREATED\fP(x) (x->fd == FD_MAGIC_NUMBER)" +.br +.in -1c +.SS "Typedefs" + +.in +1c +.ti -1c +.RI "typedef void( \fBhandlerfunc\fP )(char **, int, \fBuserrec\fP *)" +.br +.in -1c +.SS "Functions" + +.in +1c +.ti -1c +.RI "void \fBforce_nickchange\fP (\fBuserrec\fP *user, const char *newnick)" +.br +.ti -1c +.RI "void \fBkill_link\fP (\fBuserrec\fP *user, const char *r)" +.br +.ti -1c +.RI "void \fBkill_link_silent\fP (\fBuserrec\fP *user, const char *r)" +.br +.ti -1c +.RI "void \fBcall_handler\fP (const char *commandname, char **parameters, int pcnt, \fBuserrec\fP *user)" +.br +.ti -1c +.RI "bool \fBis_valid_cmd\fP (const char *commandname, int pcnt, \fBuserrec\fP *user)" +.br +.ti -1c +.RI "\fBstd::string\fP \fBGetRevision\fP ()" +.br +.ti -1c +.RI "int \fBloop_call\fP (\fBhandlerfunc\fP fn, char **parameters, int pcnt, \fBuserrec\fP *u, int start, int end, int joins)" +.br +.ti -1c +.RI "void \fBAddWhoWas\fP (\fBuserrec\fP *u)" +.br +.ti -1c +.RI "void \fBConnectUser\fP (\fBuserrec\fP *user)" +.br +.ti -1c +.RI "\fBuserrec\fP * \fBReHashNick\fP (char *Old, char *New)" +.br +.ti -1c +.RI "char * \fBModuleError\fP ()" +.br +.ti -1c +.RI "void \fBAddOper\fP (\fBuserrec\fP *user)" +.br +.ti -1c +.RI "void \fBDeleteOper\fP (\fBuserrec\fP *user)" +.br +.ti -1c +.RI "void \fBhandle_version\fP (char **parameters, int pcnt, \fBuserrec\fP *user)" +.br +.ti -1c +.RI "void \fBAddServerName\fP (\fBstd::string\fP servername)" +.br +.ti -1c +.RI "const char * \fBFindServerNamePtr\fP (\fBstd::string\fP servername)" +.br +.ti -1c +.RI "\fBstd::string\fP \fBGetVersionString\fP ()" +.br +.ti -1c +.RI "void * \fBdns_task\fP (void *arg)" +.br +.ti -1c +.RI "void \fBprocess_buffer\fP (const char *cmdbuf, \fBuserrec\fP *user)" +.br +.ti -1c +.RI "void \fBFullConnectUser\fP (\fBuserrec\fP *user)" +.br +.in -1c +.SH "Define Documentation" +.PP +.SS "#define ERROR -1" +.PP +Definition at line 49 of file inspircd.h. +.PP +Referenced by InspSocket::InspSocket(). +.SS "#define FALSE 0" +.PP +Definition at line 51 of file inspircd.h. +.SS "#define IS_LOCAL(x) (x->fd > -1)" +.PP +Definition at line 66 of file inspircd.h. +.SS "#define IS_MODULE_CREATED(x) (x->fd == FD_MAGIC_NUMBER)" +.PP +Definition at line 68 of file inspircd.h. +.SS "#define IS_REMOTE(x) (x->fd < 0)" +.PP +Definition at line 67 of file inspircd.h. +.SS "#define MAXCOMMAND 32" +.PP +Definition at line 53 of file inspircd.h. +.SS "#define MAXSOCKS 64" +.PP +Definition at line 52 of file inspircd.h. +.SS "#define TRUE 1" +.PP +Definition at line 50 of file inspircd.h. +.SS "#define TYPE_CHANNEL 2" +.PP +Definition at line 63 of file inspircd.h. +.SS "#define TYPE_SERVER 3" +.PP +Definition at line 64 of file inspircd.h. +.SS "#define TYPE_USER 1" +.PP +Definition at line 62 of file inspircd.h. +.SS "#define WM_AND 1" +.PP +Definition at line 57 of file inspircd.h. +.SS "#define WM_OR 2" +.PP +Definition at line 58 of file inspircd.h. +.SH "Typedef Documentation" +.PP +.SS "typedef void( \fBhandlerfunc\fP)(char **, int, \fBuserrec\fP *)" +.PP +Definition at line 70 of file inspircd.h. +.SH "Function Documentation" +.PP +.SS "void AddOper (\fBuserrec\fP * user)" +.PP +.SS "void AddServerName (\fBstd::string\fP servername)" +.PP +.SS "void AddWhoWas (\fBuserrec\fP * u)" +.PP +.SS "void call_handler (const char * commandname, char ** parameters, int pcnt, \fBuserrec\fP * user)" +.PP +Referenced by Server::CallCommandHandler(). +.SS "void ConnectUser (\fBuserrec\fP * user)" +.PP +.SS "void DeleteOper (\fBuserrec\fP * user)" +.PP +.SS "void* dns_task (void * arg)" +.PP +.SS "const char* FindServerNamePtr (\fBstd::string\fP servername)" +.PP +Referenced by userrec::userrec(). +.SS "void force_nickchange (\fBuserrec\fP * user, const char * newnick)" +.PP +Referenced by Server::ChangeUserNick(). +.SS "void FullConnectUser (\fBuserrec\fP * user)" +.PP +.SS "\fBstd::string\fP GetRevision ()" +.PP +.SS "\fBstd::string\fP GetVersionString ()" +.PP +.SS "void handle_version (char ** parameters, int pcnt, \fBuserrec\fP * user)" +.PP +.SS "bool is_valid_cmd (const char * commandname, int pcnt, \fBuserrec\fP * user)" +.PP +Referenced by Server::IsValidModuleCommand(). +.SS "void kill_link (\fBuserrec\fP * user, const char * r)" +.PP +Referenced by Server::PseudoToUser(), and Server::QuitUser(). +.SS "void kill_link_silent (\fBuserrec\fP * user, const char * r)" +.PP +.SS "int loop_call (\fBhandlerfunc\fP fn, char ** parameters, int pcnt, \fBuserrec\fP * u, int start, int end, int joins)" +.PP +.SS "char* ModuleError ()" +.PP +.SS "void process_buffer (const char * cmdbuf, \fBuserrec\fP * user)" +.PP +.SS "\fBuserrec\fP* ReHashNick (char * Old, char * New)" +.PP +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/inspircd_io.h.3 b/docs/man/man3/inspircd_io.h.3 index fa150ea79..623efdc4a 100644 --- a/docs/man/man3/inspircd_io.h.3 +++ b/docs/man/man3/inspircd_io.h.3 @@ -31,7 +31,7 @@ inspircd_io.h \- .ti -1c .RI "#define \fBDEBUG\fP 10" .br -.RI "\fIFlags for use with log(). \fP" +.RI "\fIFlags for use with \fBlog()\fP. \fP" .ti -1c .RI "#define \fBVERBOSE\fP 20" .br @@ -69,19 +69,24 @@ inspircd_io.h \- .ti -1c .RI "void \fBWritePID\fP (\fBstd::string\fP filename)" .br +.ti -1c +.RI "int \fBBindPorts\fP ()" +.br .in -1c .SH "Define Documentation" .PP .SS "#define DEBUG 10" .PP -Flags for use with log(). +Flags for use with \fBlog()\fP. .PP Definition at line 28 of file inspircd_io.h. .PP -Referenced by Server::AddExtendedMode(), SocketEngine::AddFd(), chanrec::AddUser(), SocketEngine::DelFd(), chanrec::DelUser(), InspSocket::InspSocket(), InspSocket::Read(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), SocketEngine::SocketEngine(), and SocketEngine::~SocketEngine(). +Referenced by add_channel(), Server::AddExtendedMode(), SocketEngine::AddFd(), chanrec::AddUser(), del_channel(), SocketEngine::DelFd(), chanrec::DelUser(), ForceChan(), InspSocket::InspSocket(), kick_channel(), InspSocket::Read(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), SocketEngine::SocketEngine(), and SocketEngine::~SocketEngine(). .SS "#define DEFAULT 30" .PP Definition at line 30 of file inspircd_io.h. +.PP +Referenced by add_channel(), del_channel(), and kick_channel(). .SS "#define NONE 50" .PP Definition at line 32 of file inspircd_io.h. @@ -93,6 +98,8 @@ Definition at line 31 of file inspircd_io.h. Definition at line 29 of file inspircd_io.h. .SH "Function Documentation" .PP +.SS "int BindPorts ()" +.PP .SS "int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char * addr)" .PP Referenced by InspSocket::InspSocket(). diff --git a/docs/man/man3/message.h.3 b/docs/man/man3/message.h.3 index 719defbf5..f677c6554 100644 --- a/docs/man/man3/message.h.3 +++ b/docs/man/man3/message.h.3 @@ -101,22 +101,20 @@ Referenced by Server::ChangeGECOS(). .PP .SS "char* cmode (\fBuserrec\fP * user, \fBchanrec\fP * chan)" .PP -Referenced by Server::ChanMode(). .SS "int common_channels (\fBuserrec\fP * u, \fBuserrec\fP * u2)" .PP -Referenced by Server::CommonChannels(). .SS "int cstatus (\fBuserrec\fP * user, \fBchanrec\fP * chan)" .PP +Referenced by kick_channel(). .SS "int has_channel (\fBuserrec\fP * u, \fBchanrec\fP * c)" .PP -Referenced by Server::IsOnChannel(). +Referenced by add_channel(), Server::IsOnChannel(), and kick_channel(). .SS "bool hasumode (\fBuserrec\fP * user, char mode)" .PP .SS "int isident (const char * n)" .PP .SS "int isnick (const char * n)" .PP -Referenced by Server::IsNick(). .SS "void NonBlocking (int s)" .PP .SS "void send_network_quit (const char * nick, const char * reason)" diff --git a/docs/man/man3/modules.cpp.3 b/docs/man/man3/modules.cpp.3 index b8eec9add..0739843bf 100644 --- a/docs/man/man3/modules.cpp.3 +++ b/docs/man/man3/modules.cpp.3 @@ -106,6 +106,9 @@ modules.cpp \- .RI "\fBServerConfig\fP * \fBConfig\fP" .br .ti -1c +.RI "\fBInspIRCd\fP * \fBServerInstance\fP" +.br +.ti -1c .RI "int \fBMODCOUNT\fP = -1" .br .ti -1c @@ -121,24 +124,6 @@ modules.cpp \- .RI "time_t \fBTIME\fP" .br .ti -1c -.RI "int \fBWHOWAS_STALE\fP" -.br -.ti -1c -.RI "int \fBWHOWAS_MAX\fP" -.br -.ti -1c -.RI "time_t \fBstartup_time\fP" -.br -.ti -1c -.RI "int \fBboundPortCount\fP" -.br -.ti -1c -.RI "int \fBportCount\fP" -.br -.ti -1c -.RI "int \fBports\fP [MAXSOCKS]" -.br -.ti -1c .RI "\fBuserrec\fP * \fBfd_ref_table\fP [65536]" .br .ti -1c @@ -148,15 +133,9 @@ modules.cpp \- .RI "\fBchan_hash\fP \fBchanlist\fP" .br .ti -1c -.RI "\fBwhowas_hash\fP \fBwhowas\fP" -.br -.ti -1c .RI "\fBcommand_table\fP \fBcmdlist\fP" .br .ti -1c -.RI "\fBaddress_cache\fP \fBIP\fP" -.br -.ti -1c .RI "\fBExtModeList\fP \fBEMode\fP" .br .in -1c @@ -164,149 +143,147 @@ modules.cpp \- .PP .SS "bool DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off)" .PP -Definition at line 142 of file modules.cpp. +Definition at line 134 of file modules.cpp. .PP References EMode, and ModeDefined(). .PP Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode(). .PP .nf -143 { -144 if (ModeDefined(modechar,type)) { -145 return false; -146 } -147 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); -148 return true; -149 } +135 { +136 if (ModeDefined(modechar,type)) { +137 return false; +138 } +139 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); +140 return true; +141 } .fi .PP .SS "std::vector<\fBircd_module\fP*> factory (255)" .PP .SS "bool ModeDefined (char modechar, int type)" .PP -Definition at line 79 of file modules.cpp. +Definition at line 71 of file modules.cpp. .PP References EMode. .PP Referenced by DoAddExtendedMode(). .PP .nf -80 { -81 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -82 { -83 if ((i->modechar == modechar) && (i->type == type)) -84 { -85 return true; -86 } -87 } -88 return false; -89 } +72 { +73 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +74 { +75 if ((i->modechar == modechar) && (i->type == type)) +76 { +77 return true; +78 } +79 } +80 return false; +81 } .fi .PP .SS "int ModeDefinedOff (char modechar, int type)" .PP -Definition at line 129 of file modules.cpp. +Definition at line 121 of file modules.cpp. .PP References EMode. .PP .nf -130 { -131 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -132 { -133 if ((i->modechar == modechar) && (i->type == type)) -134 { -135 return i->params_when_off; -136 } -137 } -138 return 0; -139 } +122 { +123 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +124 { +125 if ((i->modechar == modechar) && (i->type == type)) +126 { +127 return i->params_when_off; +128 } +129 } +130 return 0; +131 } .fi .PP .SS "int ModeDefinedOn (char modechar, int type)" .PP -Definition at line 116 of file modules.cpp. +Definition at line 108 of file modules.cpp. .PP References EMode. .PP .nf -117 { -118 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -119 { -120 if ((i->modechar == modechar) && (i->type == type)) -121 { -122 return i->params_when_on; -123 } -124 } -125 return 0; -126 } +109 { +110 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +111 { +112 if ((i->modechar == modechar) && (i->type == type)) +113 { +114 return i->params_when_on; +115 } +116 } +117 return 0; +118 } .fi .PP .SS "bool ModeDefinedOper (char modechar, int type)" .PP -Definition at line 103 of file modules.cpp. +Definition at line 95 of file modules.cpp. .PP References EMode. .PP .nf -104 { -105 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -106 { -107 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) -108 { -109 return true; -110 } -111 } -112 return false; -113 } +96 { +97 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +98 { +99 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) +100 { +101 return true; +102 } +103 } +104 return false; +105 } .fi .PP .SS "bool ModeIsListMode (char modechar, int type)" .PP -Definition at line 91 of file modules.cpp. +Definition at line 83 of file modules.cpp. .PP References EMode. .PP .nf -92 { -93 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -94 { -95 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) -96 { -97 return true; -98 } -99 } -100 return false; -101 } +84 { +85 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +86 { +87 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) +88 { +89 return true; +90 } +91 } +92 return false; +93 } .fi .PP .SS "void ModeMakeList (char modechar)" .PP -Definition at line 152 of file modules.cpp. +Definition at line 144 of file modules.cpp. .PP References EMode, and MT_CHANNEL. .PP Referenced by Server::AddExtendedListMode(). .PP .nf -153 { -154 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -155 { -156 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) -157 { -158 i->list = true; -159 return; -160 } -161 } -162 return; -163 } +145 { +146 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +147 { +148 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) +149 { +150 i->list = true; +151 return; +152 } +153 } +154 return; +155 } .fi .PP .SS "std::vector<\fBModule\fP*> modules (255)" .PP .SH "Variable Documentation" .PP -.SS "int \fBboundPortCount\fP" -.PP .SS "\fBchan_hash\fP \fBchanlist\fP" .PP .SS "\fBuser_hash\fP \fBclientlist\fP" @@ -317,39 +294,27 @@ Referenced by Server::AddExtendedListMode(). .PP .SS "\fBExtModeList\fP \fBEMode\fP" .PP -Definition at line 76 of file modules.cpp. +Definition at line 68 of file modules.cpp. .PP Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList(). .SS "std::vector<\fBircd_module\fP*> factory" .PP .SS "\fBuserrec\fP* \fBfd_ref_table\fP[65536]" .PP -.SS "\fBaddress_cache\fP \fBIP\fP" -.PP .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 938 of file modules.cpp. +Definition at line 930 of file modules.cpp. .SS "std::vector<\fBInspSocket\fP*> \fBmodule_sockets\fP" .PP Referenced by Server::AddSocket(), and Server::DelSocket(). .SS "std::vector<\fBModule\fP*> modules" .PP -.SS "int \fBportCount\fP" -.PP -.SS "int \fBports\fP[MAXSOCKS]" -.PP .SS "\fBSocketEngine\fP* \fBSE\fP" .PP -.SS "time_t \fBstartup_time\fP" +.SS "\fBInspIRCd\fP* \fBServerInstance\fP" .PP .SS "time_t \fBTIME\fP" .PP -.SS "\fBwhowas_hash\fP \fBwhowas\fP" -.PP -.SS "int \fBWHOWAS_MAX\fP" -.PP -.SS "int \fBWHOWAS_STALE\fP" -.PP .SH "Author" .PP Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/modules.h.3 b/docs/man/man3/modules.h.3 index 28f7e5404..24fd4c360 100644 --- a/docs/man/man3/modules.h.3 +++ b/docs/man/man3/modules.h.3 @@ -51,7 +51,7 @@ modules.h \- .ti -1c .RI "class \fBModule\fP" .br -.RI "\fIBase class for all InspIRCd modules This class is the base class for InspIRCd modules. \fP" +.RI "\fIBase class for all \fBInspIRCd\fP modules This class is the base class for \fBInspIRCd\fP modules. \fP" .ti -1c .RI "class \fBServer\fP" .br @@ -192,11 +192,29 @@ modules.h \- .in +1c .ti -1c -.RI "void \fBcreatecommand\fP (char *cmd, handlerfunc f, char flags, int minparams, char *source)" +.RI "void \fBcreatecommand\fP (char *cmd, \fBhandlerfunc\fP f, char flags, int minparams, char *source)" .br .ti -1c .RI "void \fBserver_mode\fP (char **parameters, int pcnt, \fBuserrec\fP *user)" .br +.ti -1c +.RI "bool \fBModeDefined\fP (char c, int i)" +.br +.ti -1c +.RI "bool \fBModeDefinedOper\fP (char c, int i)" +.br +.ti -1c +.RI "int \fBModeDefinedOn\fP (char c, int i)" +.br +.ti -1c +.RI "int \fBModeDefinedOff\fP (char c, int i)" +.br +.ti -1c +.RI "void \fBModeMakeList\fP (char modechar)" +.br +.ti -1c +.RI "bool \fBModeIsListMode\fP (char modechar, int type)" +.br .in -1c .SH "Define Documentation" .PP @@ -221,6 +239,8 @@ Definition at line 47 of file modules.h. .SS "#define AC_KICK 0" .PP Definition at line 40 of file modules.h. +.PP +Referenced by kick_channel(). .SS "#define AC_OP 2" .PP Definition at line 42 of file modules.h. @@ -236,10 +256,12 @@ Used with OnAccessCheck() method of modules. .PP Definition at line 37 of file modules.h. .PP -Referenced by Module::OnAccessCheck(). +Referenced by kick_channel(), and Module::OnAccessCheck(). .SS "#define ACR_DENY 1" .PP Definition at line 38 of file modules.h. +.PP +Referenced by kick_channel(). .SS "#define CONF_FILE_NOT_FOUND 0x000200" .PP Definition at line 1520 of file modules.h. @@ -277,7 +299,7 @@ Referenced by Server::PseudoToUser(), and Server::UserToPseudo(). .PP Definition at line 81 of file modules.h. .PP -Referenced by Event::Send(). +Referenced by del_channel(), ForceChan(), kick_channel(), and Event::Send(). .SS "#define FOREACH_RESULT(x)" .PP \fBValue:\fP @@ -295,6 +317,8 @@ Referenced by Event::Send(). .fi .PP Definition at line 89 of file modules.h. +.PP +Referenced by add_channel(), and kick_channel(). .SS "#define MT_CHANNEL 1" .PP Used with OnExtendedMode() method of modules. @@ -357,9 +381,128 @@ Definition at line 1686 of file modules.h. Definition at line 70 of file modules.h. .SH "Function Documentation" .PP -.SS "void createcommand (char * cmd, handlerfunc f, char flags, int minparams, char * source)" +.SS "void createcommand (char * cmd, \fBhandlerfunc\fP f, char flags, int minparams, char * source)" .PP Referenced by Server::AddCommand(). +.SS "bool ModeDefined (char c, int i)" +.PP +Definition at line 71 of file modules.cpp. +.PP +References EMode. +.PP +Referenced by DoAddExtendedMode(). +.PP +.nf +72 { +73 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +74 { +75 if ((i->modechar == modechar) && (i->type == type)) +76 { +77 return true; +78 } +79 } +80 return false; +81 } +.fi +.PP +.SS "int ModeDefinedOff (char c, int i)" +.PP +Definition at line 121 of file modules.cpp. +.PP +References EMode. +.PP +.nf +122 { +123 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +124 { +125 if ((i->modechar == modechar) && (i->type == type)) +126 { +127 return i->params_when_off; +128 } +129 } +130 return 0; +131 } +.fi +.PP +.SS "int ModeDefinedOn (char c, int i)" +.PP +Definition at line 108 of file modules.cpp. +.PP +References EMode. +.PP +.nf +109 { +110 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +111 { +112 if ((i->modechar == modechar) && (i->type == type)) +113 { +114 return i->params_when_on; +115 } +116 } +117 return 0; +118 } +.fi +.PP +.SS "bool ModeDefinedOper (char c, int i)" +.PP +Definition at line 95 of file modules.cpp. +.PP +References EMode. +.PP +.nf +96 { +97 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +98 { +99 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) +100 { +101 return true; +102 } +103 } +104 return false; +105 } +.fi +.PP +.SS "bool ModeIsListMode (char modechar, int type)" +.PP +Definition at line 83 of file modules.cpp. +.PP +References EMode. +.PP +.nf +84 { +85 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +86 { +87 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) +88 { +89 return true; +90 } +91 } +92 return false; +93 } +.fi +.PP +.SS "void ModeMakeList (char modechar)" +.PP +Definition at line 144 of file modules.cpp. +.PP +References EMode, and MT_CHANNEL. +.PP +Referenced by Server::AddExtendedListMode(). +.PP +.nf +145 { +146 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +147 { +148 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) +149 { +150 i->list = true; +151 return; +152 } +153 } +154 return; +155 } +.fi +.PP .SS "void server_mode (char ** parameters, int pcnt, \fBuserrec\fP * user)" .PP .SH "Author" diff --git a/docs/man/man3/serverstats.3 b/docs/man/man3/serverstats.3 new file mode 100644 index 000000000..18657e790 --- /dev/null +++ b/docs/man/man3/serverstats.3 @@ -0,0 +1,126 @@ +.TH "serverstats" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +serverstats \- +.SH SYNOPSIS +.br +.PP +\fC#include \fP +.PP +.SS "Public Member Functions" + +.in +1c +.ti -1c +.RI "\fBserverstats\fP ()" +.br +.in -1c +.SS "Public Attributes" + +.in +1c +.ti -1c +.RI "int \fBstatsAccept\fP" +.br +.ti -1c +.RI "int \fBstatsRefused\fP" +.br +.ti -1c +.RI "int \fBstatsUnknown\fP" +.br +.ti -1c +.RI "int \fBstatsCollisions\fP" +.br +.ti -1c +.RI "int \fBstatsDns\fP" +.br +.ti -1c +.RI "int \fBstatsDnsGood\fP" +.br +.ti -1c +.RI "int \fBstatsDnsBad\fP" +.br +.ti -1c +.RI "int \fBstatsConnects\fP" +.br +.ti -1c +.RI "int \fBstatsSent\fP" +.br +.ti -1c +.RI "int \fBstatsRecv\fP" +.br +.in -1c +.SH "Detailed Description" +.PP +Definition at line 72 of file inspircd.h. +.SH "Constructor & Destructor Documentation" +.PP +.SS "serverstats::serverstats ()\fC [inline]\fP" +.PP +Definition at line 86 of file inspircd.h. +.PP +References statsAccept, statsCollisions, statsConnects, statsDns, statsDnsBad, statsDnsGood, statsRecv, statsRefused, statsSent, and statsUnknown. +.PP +.nf +87 { +88 statsAccept = statsRefused = statsUnknown = 0; +89 statsCollisions = statsDns = statsDnsGood = 0; +90 statsDnsBad = statsConnects = statsSent = statsRecv = 0; +91 } +.fi +.PP +.SH "Member Data Documentation" +.PP +.SS "int \fBserverstats::statsAccept\fP" +.PP +Definition at line 75 of file inspircd.h. +.PP +Referenced by serverstats(). +.SS "int \fBserverstats::statsCollisions\fP" +.PP +Definition at line 78 of file inspircd.h. +.PP +Referenced by serverstats(). +.SS "int \fBserverstats::statsConnects\fP" +.PP +Definition at line 82 of file inspircd.h. +.PP +Referenced by serverstats(). +.SS "int \fBserverstats::statsDns\fP" +.PP +Definition at line 79 of file inspircd.h. +.PP +Referenced by serverstats(). +.SS "int \fBserverstats::statsDnsBad\fP" +.PP +Definition at line 81 of file inspircd.h. +.PP +Referenced by serverstats(). +.SS "int \fBserverstats::statsDnsGood\fP" +.PP +Definition at line 80 of file inspircd.h. +.PP +Referenced by serverstats(). +.SS "int \fBserverstats::statsRecv\fP" +.PP +Definition at line 84 of file inspircd.h. +.PP +Referenced by serverstats(). +.SS "int \fBserverstats::statsRefused\fP" +.PP +Definition at line 76 of file inspircd.h. +.PP +Referenced by serverstats(). +.SS "int \fBserverstats::statsSent\fP" +.PP +Definition at line 83 of file inspircd.h. +.PP +Referenced by serverstats(). +.SS "int \fBserverstats::statsUnknown\fP" +.PP +Definition at line 77 of file inspircd.h. +.PP +Referenced by serverstats(). + +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/typedefs.h.3 b/docs/man/man3/typedefs.h.3 index e919dd1f0..d93fbb901 100644 --- a/docs/man/man3/typedefs.h.3 +++ b/docs/man/man3/typedefs.h.3 @@ -56,6 +56,9 @@ typedefs.h \- .ti -1c .RI "typedef ExtModeList::iterator \fBExtModeListIter\fP" .br +.ti -1c +.RI "typedef std::deque< \fBstd::string\fP > \fBfile_cache\fP" +.br .in -1c .SH "Typedef Documentation" .PP @@ -74,6 +77,9 @@ Definition at line 26 of file typedefs.h. .SS "typedef ExtModeList::iterator \fBExtModeListIter\fP" .PP Definition at line 27 of file typedefs.h. +.SS "typedef std::deque<\fBstd::string\fP> \fBfile_cache\fP" +.PP +Definition at line 28 of file typedefs.h. .SS "typedef std::vector<\fBstd::string\fP> \fBservernamelist\fP" .PP Definition at line 25 of file typedefs.h. diff --git a/docs/man/man3/ucrec.3 b/docs/man/man3/ucrec.3 index 2b88bcc46..764821843 100644 --- a/docs/man/man3/ucrec.3 +++ b/docs/man/man3/ucrec.3 @@ -40,23 +40,23 @@ Holds a user's modes on a channel This class associates a users privilages with The uc_modes member holds a bitmask of which privilages the user has on the channel, such as op, voice, etc. .PP -Definition at line 241 of file channels.h. +Definition at line 243 of file channels.h. .SH "Constructor & Destructor Documentation" .PP .SS "ucrec::ucrec ()\fC [inline]\fP" .PP -Definition at line 254 of file channels.h. +Definition at line 256 of file channels.h. .PP .nf -254 { /* stub */ } +256 { /* stub */ } .fi .PP .SS "virtual ucrec::~ucrec ()\fC [inline, virtual]\fP" .PP -Definition at line 255 of file channels.h. +Definition at line 257 of file channels.h. .PP .nf -255 { /* stub */ } +257 { /* stub */ } .fi .PP .SH "Member Data Documentation" @@ -67,14 +67,18 @@ Points to the channel record where the given modes apply. .PP If the record is not in use, this value will be NULL. .PP -Definition at line 252 of file channels.h. +Definition at line 254 of file channels.h. +.PP +Referenced by ForceChan(). .SS "char \fBucrec::uc_modes\fP" .PP Contains a bitmask of the UCMODE_OP . .PP .. UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon the channel. .PP -Definition at line 247 of file channels.h. +Definition at line 249 of file channels.h. +.PP +Referenced by ForceChan(). .SH "Author" .PP diff --git a/docs/man/man3/userrec.3 b/docs/man/man3/userrec.3 index 6d88cb3d5..ce863107f 100644 --- a/docs/man/man3/userrec.3 +++ b/docs/man/man3/userrec.3 @@ -199,7 +199,7 @@ Definition at line 111 of file users.h. .PP Definition at line 36 of file users.cpp. .PP -References awaymsg, connection::bytes_in, connection::bytes_out, chans, connection::cmds_in, connection::cmds_out, dhost, dns_done, connection::fd, flood, fullname, connection::haspassed, connection::host, ident, connection::idle_lastmsg, invites, connection::ip, connection::lastping, lines_in, modes, nick, connection::nping, oper, connection::port, recvq, connection::registered, reset_due, sendq, server, ServerConfig::ServerName, connection::signon, TIME, and timeout. +References awaymsg, connection::bytes_in, connection::bytes_out, chans, connection::cmds_in, connection::cmds_out, dhost, dns_done, connection::fd, FindServerNamePtr(), flood, fullname, connection::haspassed, connection::host, ident, connection::idle_lastmsg, invites, connection::ip, connection::lastping, lines_in, modes, nick, connection::nping, oper, connection::port, recvq, connection::registered, reset_due, sendq, server, ServerConfig::ServerName, connection::signon, TIME, and timeout. .PP .nf 37 { @@ -247,7 +247,7 @@ The buffer can grow to any size within limits of the available memory, managed b .PP Definition at line 198 of file users.cpp. .PP -References recvq, recvqmax, and SetWriteError(). +References recvq, recvqmax, SetWriteError(), and WriteOpers(). .PP .nf 199 { @@ -284,7 +284,7 @@ You may add any amount of text up to this users sendq value, if you exceed the s .PP Definition at line 254 of file users.cpp. .PP -References sendq, sendqmax, and SetWriteError(). +References sendq, sendqmax, SetWriteError(), and WriteOpers(). .PP .nf 255 { @@ -419,6 +419,8 @@ Definition at line 72 of file users.cpp. .PP References dhost, ident, and nick. .PP +Referenced by add_channel(). +.PP .nf 73 { 74 static char result[MAXBUF]; @@ -561,6 +563,8 @@ Definition at line 96 of file users.cpp. .PP References invites. .PP +Referenced by add_channel(). +.PP .nf 97 { 98 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) @@ -600,7 +604,9 @@ This member function is called on successfully joining an invite only channel to .PP Definition at line 122 of file users.cpp. .PP -References DEBUG, and invites. +References DEBUG, invites, and log(). +.PP +Referenced by add_channel(). .PP .nf 123 { @@ -633,7 +639,7 @@ This is done because the actual disconnect of a client may occur at an inopportu .PP Definition at line 292 of file users.cpp. .PP -References DEBUG, and WriteError. +References DEBUG, log(), and WriteError. .PP Referenced by AddBuffer(), AddWriteBuf(), and FlushWriteBuf(). .PP @@ -661,7 +667,7 @@ Referenced by userrec(). .PP Definition at line 149 of file users.h. .PP -Referenced by Server::PseudoToUser(), and userrec(). +Referenced by add_channel(), del_channel(), kick_channel(), Server::PseudoToUser(), and userrec(). .SS "char \fBuserrec::dhost\fP[160]" .PP The host displayed to non-opers (used for cloaking etc). @@ -723,7 +729,7 @@ This may contain any of the following RFC characters: o, w, s, i Your module may .PP Definition at line 147 of file users.h. .PP -Referenced by userrec(). +Referenced by add_channel(), and userrec(). .SS "char \fBuserrec::nick\fP[NICKMAX]" .PP The users nickname. @@ -732,7 +738,7 @@ An invalid nickname indicates an unregistered connection prior to the NICK comma .PP Definition at line 124 of file users.h. .PP -Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), and userrec(). +Referenced by add_channel(), del_channel(), ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), kick_channel(), Server::PseudoToUser(), and userrec(). .SS "char \fBuserrec::oper\fP[NICKMAX]" .PP The oper type they logged in as, if they are an oper. @@ -797,7 +803,7 @@ The server the user is connected to. .PP Definition at line 153 of file users.h. .PP -Referenced by userrec(). +Referenced by kick_channel(), and userrec(). .SS "long \fBuserrec::threshold\fP" .PP Definition at line 208 of file users.h. diff --git a/docs/man/man3/users.h.3 b/docs/man/man3/users.h.3 index 03ced5bd9..8f98caab3 100644 --- a/docs/man/man3/users.h.3 +++ b/docs/man/man3/users.h.3 @@ -82,6 +82,8 @@ Definition at line 35 of file users.h. .SS "#define STATUS_HOP 2" .PP Definition at line 30 of file users.h. +.PP +Referenced by kick_channel(). .SS "#define STATUS_NORMAL 0" .PP Definition at line 32 of file users.h. diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index 4138116fc..3bce7949d 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -29,19 +29,21 @@ nspace::hash< string > HostItemHolds an entry for a ban list, exemption list, or invite list irc::InAddr_HashCompThis class returns true if two in_addr structs match + InspIRCd InspSocketInspSocket is an extendable socket class which modules can use for TCP socket support InvitedHolds a channel name to which a user has been invited InviteItemA subclass of HostItem designed to hold channel invites (+I) irc::irc_char_traitsThe irc_char_traits class is used for RFC-style comparison of strings KLineKLine class ModeParameterHolds a custom parameter to a module-defined channel mode e.g - ModuleBase class for all InspIRCd modules This class is the base class for InspIRCd modules + ModuleBase class for all InspIRCd modules This class is the base class for InspIRCd modules ModuleFactoryInstantiates classes inherited from Module This class creates a class inherited from type Module, using new ModuleMessageBase class of Request and Event This class is used to represent a basic data structure which is passed between modules for safe inter-module communications QLineQLine class RequestUnicast message directed at a given module ServerAllows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers ServerConfigThis class holds the bulk of the runtime configuration for the ircd + serverstats SocketEngineThe actual socketengine class presents the same interface on all operating systems, but its private members and internal behaviour should be treated as blackboxed, and vary from system to system and upon the config settings chosen by the server admin irc::StrHashCompThis class returns true if two strings match ucrecHolds a user's modes on a channel This class associates a users privilages with a channel by creating a pointer link between a userrec and chanrec class @@ -51,7 +53,7 @@ XLineXLine is the base class for ban lines such as G lines and K lines ZLineZLine class -
Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index 48ac11d29..5bf35fa88 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -88,7 +88,7 @@ 00161 00162 #endif 00163 -
Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +
Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index 1468dbb28..08420dfa3 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -68,7 +68,7 @@ This graph shows which files directly or indirectly include this file:

26 of file base.h. -
Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
Generated on Wed Dec 14 19:16:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/base_8h__dep__incl.md5 b/docs/module-doc/base_8h__dep__incl.md5 index d0ae08dfb..f7dba84b9 100644 --- a/docs/module-doc/base_8h__dep__incl.md5 +++ b/docs/module-doc/base_8h__dep__incl.md5 @@ -1 +1 @@ -0046ef0e1b705028d107ddd398e9b859 \ No newline at end of file +2f30fe04f1854df5912b946d431d890e \ No newline at end of file diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index 49355b4a8..7000fa17d 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -11,7 +11,7 @@ 00002 * | Inspire Internet Relay Chat Daemon | 00003 * +------------------------------------+ 00004 * -00005 * Inspire is copyright (C) 2002-2004 ChatSpike-Dev. +00005 * Inspire is copyright (C) 2002-2005 ChatSpike-Dev. 00006 * E-mail: 00007 * <brain@chatspike.net> 00008 * <Craig@chatspike.net> @@ -26,7 +26,7 @@ 00017 using namespace std; 00018 00019 #include "inspircd_config.h" -00020 #include "inspircd.h" +00020 #include "inspircd.h" 00021 #include "inspircd_io.h" 00022 #include "inspircd_util.h" 00023 #include <unistd.h> @@ -46,157 +46,513 @@ 00037 #include <deque> 00038 #include "users.h" 00039 #include "ctables.h" -00040 #include "globals.h" +00040 #include "globals.h" 00041 #include "modules.h" 00042 #include "dynamic.h" -00043 #include "wildcard.h" -00044 #include "message.h" -00045 #include "mode.h" -00046 #include "xline.h" -00047 #include "inspstring.h" -00048 #include "helperfuncs.h" -00049 -00050 #ifdef GCC3 -00051 #define nspace __gnu_cxx -00052 #else -00053 #define nspace std -00054 #endif -00055 -00056 extern ServerConfig* Config; -00057 -00058 extern int MODCOUNT; -00059 extern std::vector<Module*> modules; -00060 extern std::vector<ircd_module*> factory; -00061 extern int WHOWAS_STALE; -00062 extern int WHOWAS_MAX; -00063 extern time_t startup_time; -00064 extern std::vector<std::string> module_names; -00065 extern int boundPortCount; -00066 extern std::stringstream config_f; -00067 extern time_t TIME; -00068 -00069 using namespace std; -00070 -00071 std::vector<ModeParameter> custom_mode_params; -00072 -00073 chanrec::chanrec() -00074 { -00075 strcpy(name,""); -00076 strcpy(custom_modes,""); -00077 strcpy(topic,""); -00078 strcpy(setby,""); -00079 strcpy(key,""); -00080 created = topicset = limit = 0; -00081 binarymodes = 0; -00082 internal_userlist.clear(); -00083 } -00084 -00085 void chanrec::SetCustomMode(char mode,bool mode_on) -00086 { -00087 if (mode_on) { -00088 static char m[3]; -00089 m[0] = mode; -00090 m[1] = '\0'; -00091 if (!strchr(this->custom_modes,mode)) -00092 { -00093 strlcat(custom_modes,m,MAXMODES); -00094 } -00095 log(DEBUG,"Custom mode %c set",mode); -00096 } -00097 else { -00098 -00099 std::string a = this->custom_modes; -00100 int pos = a.find(mode); -00101 a.erase(pos,1); -00102 strncpy(this->custom_modes,a.c_str(),MAXMODES); -00103 -00104 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes); -00105 this->SetCustomModeParam(mode,"",false); -00106 } -00107 } -00108 +00043 #include "commands.h" +00044 #include "wildcard.h" +00045 #include "message.h" +00046 #include "mode.h" +00047 #include "xline.h" +00048 #include "inspstring.h" +00049 #include "helperfuncs.h" +00050 #include "typedefs.h" +00051 +00052 #ifdef GCC3 +00053 #define nspace __gnu_cxx +00054 #else +00055 #define nspace std +00056 #endif +00057 +00058 extern ServerConfig* Config; +00059 +00060 extern int MODCOUNT; +00061 extern std::vector<Module*> modules; +00062 extern std::vector<ircd_module*> factory; +00063 extern int WHOWAS_STALE; +00064 extern int WHOWAS_MAX; +00065 extern time_t TIME; +00066 extern chan_hash chanlist; +00067 +00068 using namespace std; +00069 +00070 std::vector<ModeParameter> custom_mode_params; +00071 +00072 chanrec* ForceChan(chanrec* Ptr,ucrec &a,userrec* user, int created); +00073 +00074 chanrec::chanrec() +00075 { +00076 strcpy(name,""); +00077 strcpy(custom_modes,""); +00078 strcpy(topic,""); +00079 strcpy(setby,""); +00080 strcpy(key,""); +00081 created = topicset = limit = 0; +00082 binarymodes = 0; +00083 internal_userlist.clear(); +00084 } +00085 +00086 void chanrec::SetCustomMode(char mode,bool mode_on) +00087 { +00088 if (mode_on) { +00089 static char m[3]; +00090 m[0] = mode; +00091 m[1] = '\0'; +00092 if (!strchr(this->custom_modes,mode)) +00093 { +00094 strlcat(custom_modes,m,MAXMODES); +00095 } +00096 log(DEBUG,"Custom mode %c set",mode); +00097 } +00098 else { +00099 +00100 std::string a = this->custom_modes; +00101 int pos = a.find(mode); +00102 a.erase(pos,1); +00103 strncpy(this->custom_modes,a.c_str(),MAXMODES); +00104 +00105 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes); +00106 this->SetCustomModeParam(mode,"",false); +00107 } +00108 } 00109 -00110 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) -00111 { -00112 -00113 log(DEBUG,"SetCustomModeParam called"); -00114 ModeParameter M; -00115 M.mode = mode; -00116 strlcpy(M.channel,this->name,CHANMAX); -00117 strlcpy(M.parameter,parameter,MAXBUF); -00118 if (mode_on) -00119 { -00120 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter); -00121 custom_mode_params.push_back(M); -00122 } -00123 else -00124 { -00125 if (custom_mode_params.size()) -00126 { -00127 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -00128 { -00129 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00130 { -00131 log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter); -00132 custom_mode_params.erase(i); -00133 return; -00134 } -00135 } -00136 } -00137 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!"); -00138 } -00139 } -00140 -00141 bool chanrec::IsCustomModeSet(char mode) -00142 { -00143 return (strchr(this->custom_modes,mode)); -00144 } -00145 -00146 std::string chanrec::GetModeParameter(char mode) -00147 { -00148 if (custom_mode_params.size()) -00149 { -00150 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -00151 { -00152 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00153 { -00154 return i->parameter; -00155 } -00156 } -00157 } -00158 return ""; -00159 } -00160 -00161 long chanrec::GetUserCounter() -00162 { -00163 return (this->internal_userlist.size()); -00164 } -00165 -00166 void chanrec::AddUser(char* castuser) -00167 { -00168 internal_userlist.push_back(castuser); -00169 log(DEBUG,"Added casted user to channel's internal list"); -00170 } -00171 -00172 void chanrec::DelUser(char* castuser) -00173 { -00174 for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) -00175 { -00176 if (*a == castuser) -00177 { -00178 log(DEBUG,"Removed casted user from channel's internal list"); -00179 internal_userlist.erase(a); -00180 return; -00181 } -00182 } -00183 log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name); -00184 } -00185 -00186 std::vector<char*> *chanrec::GetUsers() -00187 { -00188 return &internal_userlist; -00189 } -
Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +00110 +00111 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) +00112 { +00113 +00114 log(DEBUG,"SetCustomModeParam called"); +00115 ModeParameter M; +00116 M.mode = mode; +00117 strlcpy(M.channel,this->name,CHANMAX); +00118 strlcpy(M.parameter,parameter,MAXBUF); +00119 if (mode_on) +00120 { +00121 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter); +00122 custom_mode_params.push_back(M); +00123 } +00124 else +00125 { +00126 if (custom_mode_params.size()) +00127 { +00128 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) +00129 { +00130 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +00131 { +00132 log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter); +00133 custom_mode_params.erase(i); +00134 return; +00135 } +00136 } +00137 } +00138 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!"); +00139 } +00140 } +00141 +00142 bool chanrec::IsCustomModeSet(char mode) +00143 { +00144 return (strchr(this->custom_modes,mode)); +00145 } +00146 +00147 std::string chanrec::GetModeParameter(char mode) +00148 { +00149 if (custom_mode_params.size()) +00150 { +00151 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) +00152 { +00153 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) +00154 { +00155 return i->parameter; +00156 } +00157 } +00158 } +00159 return ""; +00160 } +00161 +00162 long chanrec::GetUserCounter() +00163 { +00164 return (this->internal_userlist.size()); +00165 } +00166 +00167 void chanrec::AddUser(char* castuser) +00168 { +00169 internal_userlist.push_back(castuser); +00170 log(DEBUG,"Added casted user to channel's internal list"); +00171 } +00172 +00173 void chanrec::DelUser(char* castuser) +00174 { +00175 for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) +00176 { +00177 if (*a == castuser) +00178 { +00179 log(DEBUG,"Removed casted user from channel's internal list"); +00180 internal_userlist.erase(a); +00181 return; +00182 } +00183 } +00184 log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name); +00185 } +00186 +00187 std::vector<char*> *chanrec::GetUsers() +00188 { +00189 return &internal_userlist; +00190 } +00191 +00192 /* add a channel to a user, creating the record for it if needed and linking +00193 * it to the user record */ +00194 +00195 chanrec* add_channel(userrec *user, const char* cn, const char* key, bool override) +00196 { +00197 if ((!user) || (!cn)) +00198 { +00199 log(DEFAULT,"*** BUG *** add_channel was given an invalid parameter"); +00200 return 0; +00201 } +00202 +00203 int created = 0; +00204 char cname[MAXBUF]; +00205 int MOD_RESULT = 0; +00206 strncpy(cname,cn,CHANMAX); +00207 +00208 log(DEBUG,"add_channel: %s %s",user->nick,cname); +00209 +00210 chanrec* Ptr = FindChan(cname); +00211 +00212 if (!Ptr) +00213 { +00214 if (user->fd > -1) +00215 { +00216 MOD_RESULT = 0; +00217 FOREACH_RESULT(OnUserPreJoin(user,NULL,cname)); +00218 if (MOD_RESULT == 1) +00219 return NULL; +00220 } +00221 /* create a new one */ +00222 chanlist[cname] = new chanrec(); +00223 strlcpy(chanlist[cname]->name, cname,CHANMAX); +00224 chanlist[cname]->binarymodes = CM_TOPICLOCK | CM_NOEXTERNAL; +00225 chanlist[cname]->created = TIME; +00226 strcpy(chanlist[cname]->topic, ""); +00227 strncpy(chanlist[cname]->setby, user->nick,NICKMAX); +00228 chanlist[cname]->topicset = 0; +00229 Ptr = chanlist[cname]; +00230 log(DEBUG,"add_channel: created: %s",cname); +00231 /* set created to 2 to indicate user +00232 * is the first in the channel +00233 * and should be given ops */ +00234 created = 2; +00235 } +00236 else +00237 { +00238 /* Already on the channel */ +00239 if (has_channel(user,Ptr)) +00240 return NULL; +00241 +00242 // remote users are allowed us to bypass channel modes +00243 // and bans (used by servers) +00244 if (user->fd > -1) +00245 { +00246 MOD_RESULT = 0; +00247 FOREACH_RESULT(OnUserPreJoin(user,Ptr,cname)); +00248 if (MOD_RESULT == 1) +00249 { +00250 return NULL; +00251 } +00252 else +00253 { +00254 if (*Ptr->key) +00255 { +00256 MOD_RESULT = 0; +00257 FOREACH_RESULT(OnCheckKey(user, Ptr, key ? key : "")); +00258 if (!MOD_RESULT) +00259 { +00260 if (!key) +00261 { +00262 log(DEBUG,"add_channel: no key given in JOIN"); +00263 WriteServ(user->fd,"475 %s %s :Cannot join channel (Requires key)",user->nick, Ptr->name); +00264 return NULL; +00265 } +00266 else +00267 { +00268 if (strcasecmp(key,Ptr->key)) +00269 { +00270 log(DEBUG,"add_channel: bad key given in JOIN"); +00271 WriteServ(user->fd,"475 %s %s :Cannot join channel (Incorrect key)",user->nick, Ptr->name); +00272 return NULL; +00273 } +00274 } +00275 } +00276 } +00277 if (Ptr->binarymodes & CM_INVITEONLY) +00278 { +00279 MOD_RESULT = 0; +00280 FOREACH_RESULT(OnCheckInvite(user, Ptr)); +00281 if (!MOD_RESULT) +00282 { +00283 log(DEBUG,"add_channel: channel is +i"); +00284 if (user->IsInvited(Ptr->name)) +00285 { +00286 /* user was invited to channel */ +00287 /* there may be an optional channel NOTICE here */ +00288 } +00289 else +00290 { +00291 WriteServ(user->fd,"473 %s %s :Cannot join channel (Invite only)",user->nick, Ptr->name); +00292 return NULL; +00293 } +00294 } +00295 user->RemoveInvite(Ptr->name); +00296 } +00297 if (Ptr->limit) +00298 { +00299 MOD_RESULT = 0; +00300 FOREACH_RESULT(OnCheckLimit(user, Ptr)); +00301 if (!MOD_RESULT) +00302 { +00303 if (usercount(Ptr) >= Ptr->limit) +00304 { +00305 WriteServ(user->fd,"471 %s %s :Cannot join channel (Channel is full)",user->nick, Ptr->name); +00306 return NULL; +00307 } +00308 } +00309 } +00310 if (Ptr->bans.size()) +00311 { +00312 log(DEBUG,"add_channel: about to walk banlist"); +00313 MOD_RESULT = 0; +00314 FOREACH_RESULT(OnCheckBan(user, Ptr)); +00315 if (!MOD_RESULT) +00316 { +00317 for (BanList::iterator i = Ptr->bans.begin(); i != Ptr->bans.end(); i++) +00318 { +00319 if (match(user->GetFullHost(),i->data)) +00320 { +00321 WriteServ(user->fd,"474 %s %s :Cannot join channel (You're banned)",user->nick, Ptr->name); +00322 return NULL; +00323 } +00324 } +00325 } +00326 } +00327 } +00328 } +00329 else +00330 { +00331 log(DEBUG,"Overridden checks"); +00332 } +00333 created = 1; +00334 } +00335 +00336 log(DEBUG,"Passed channel checks"); +00337 +00338 for (unsigned int index =0; index < user->chans.size(); index++) +00339 { +00340 if (user->chans[index].channel == NULL) +00341 { +00342 return ForceChan(Ptr,user->chans[index],user,created); +00343 } +00344 } +00345 /* XXX: If the user is an oper here, we can just extend their user->chans vector by one +00346 * and put the channel in here. Same for remote users which are not bound by +00347 * the channel limits. Otherwise, nope, youre boned. +00348 */ +00349 if (user->fd < 0) +00350 { +00351 ucrec a; +00352 chanrec* c = ForceChan(Ptr,a,user,created); +00353 user->chans.push_back(a); +00354 return c; +00355 } +00356 else if (strchr(user->modes,'o')) +00357 { +00358 /* Oper allows extension up to the OPERMAXCHANS value */ +00359 if (user->chans.size() < OPERMAXCHANS) +00360 { +00361 ucrec a; +00362 chanrec* c = ForceChan(Ptr,a,user,created); +00363 user->chans.push_back(a); +00364 return c; +00365 } +00366 } +00367 log(DEBUG,"add_channel: user channel max exceeded: %s %s",user->nick,cname); +00368 WriteServ(user->fd,"405 %s %s :You are on too many channels",user->nick, cname); +00369 return NULL; +00370 } +00371 +00372 chanrec* ForceChan(chanrec* Ptr,ucrec &a,userrec* user, int created) +00373 { +00374 if (created == 2) +00375 { +00376 /* first user in is given ops */ +00377 a.uc_modes = UCMODE_OP; +00378 } +00379 else +00380 { +00381 a.uc_modes = 0; +00382 } +00383 a.channel = Ptr; +00384 Ptr->AddUser((char*)user); +00385 WriteChannel(Ptr,user,"JOIN :%s",Ptr->name); +00386 log(DEBUG,"Sent JOIN to client"); +00387 if (Ptr->topicset) +00388 { +00389 WriteServ(user->fd,"332 %s %s :%s", user->nick, Ptr->name, Ptr->topic); +00390 WriteServ(user->fd,"333 %s %s %s %lu", user->nick, Ptr->name, Ptr->setby, (unsigned long)Ptr->topicset); +00391 } +00392 userlist(user,Ptr); +00393 WriteServ(user->fd,"366 %s %s :End of /NAMES list.", user->nick, Ptr->name); +00394 FOREACH_MOD OnUserJoin(user,Ptr); +00395 return Ptr; +00396 } +00397 +00398 /* remove a channel from a users record, and remove the record from memory +00399 * if the channel has become empty */ +00400 +00401 chanrec* del_channel(userrec *user, const char* cname, const char* reason, bool local) +00402 { +00403 if ((!user) || (!cname)) +00404 { +00405 log(DEFAULT,"*** BUG *** del_channel was given an invalid parameter"); +00406 return NULL; +00407 } +00408 +00409 chanrec* Ptr = FindChan(cname); +00410 +00411 if (!Ptr) +00412 return NULL; +00413 +00414 FOREACH_MOD OnUserPart(user,Ptr); +00415 log(DEBUG,"del_channel: removing: %s %s",user->nick,Ptr->name); +00416 +00417 for (unsigned int i =0; i < user->chans.size(); i++) +00418 { +00419 /* zap it from the channel list of the user */ +00420 if (user->chans[i].channel == Ptr) +00421 { +00422 if (reason) +00423 { +00424 WriteChannel(Ptr,user,"PART %s :%s",Ptr->name, reason); +00425 } +00426 else +00427 { +00428 WriteChannel(Ptr,user,"PART :%s",Ptr->name); +00429 } +00430 user->chans[i].uc_modes = 0; +00431 user->chans[i].channel = NULL; +00432 log(DEBUG,"del_channel: unlinked: %s %s",user->nick,Ptr->name); +00433 break; +00434 } +00435 } +00436 +00437 Ptr->DelUser((char*)user); +00438 +00439 /* if there are no users left on the channel */ +00440 if (!usercount(Ptr)) +00441 { +00442 chan_hash::iterator iter = chanlist.find(Ptr->name); +00443 +00444 log(DEBUG,"del_channel: destroying channel: %s",Ptr->name); +00445 +00446 /* kill the record */ +00447 if (iter != chanlist.end()) +00448 { +00449 log(DEBUG,"del_channel: destroyed: %s",Ptr->name); +00450 delete Ptr; +00451 chanlist.erase(iter); +00452 } +00453 } +00454 +00455 return NULL; +00456 } +00457 +00458 +00459 void kick_channel(userrec *src,userrec *user, chanrec *Ptr, char* reason) +00460 { +00461 if ((!src) || (!user) || (!Ptr) || (!reason)) +00462 { +00463 log(DEFAULT,"*** BUG *** kick_channel was given an invalid parameter"); +00464 return; +00465 } +00466 +00467 if ((!Ptr) || (!user) || (!src)) +00468 { +00469 return; +00470 } +00471 +00472 log(DEBUG,"kick_channel: removing: %s %s %s",user->nick,Ptr->name,src->nick); +00473 +00474 if (!has_channel(user,Ptr)) +00475 { +00476 WriteServ(src->fd,"441 %s %s %s :They are not on that channel",src->nick, user->nick, Ptr->name); +00477 return; +00478 } +00479 +00480 int MOD_RESULT = 0; +00481 FOREACH_RESULT(OnAccessCheck(src,user,Ptr,AC_KICK)); +00482 if ((MOD_RESULT == ACR_DENY) && (!is_uline(src->server))) +00483 return; +00484 +00485 if ((MOD_RESULT == ACR_DEFAULT) || (!is_uline(src->server))) +00486 { +00487 if ((cstatus(src,Ptr) < STATUS_HOP) || (cstatus(src,Ptr) < cstatus(user,Ptr))) +00488 { +00489 if (cstatus(src,Ptr) == STATUS_HOP) +00490 { +00491 WriteServ(src->fd,"482 %s %s :You must be a channel operator",src->nick, Ptr->name); +00492 } +00493 else +00494 { +00495 WriteServ(src->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",src->nick, Ptr->name); +00496 } +00497 +00498 return; +00499 } +00500 } +00501 +00502 if (!is_uline(src->server)) +00503 { +00504 MOD_RESULT = 0; +00505 FOREACH_RESULT(OnUserPreKick(src,user,Ptr,reason)); +00506 if (MOD_RESULT) +00507 return; +00508 } +00509 +00510 FOREACH_MOD OnUserKick(src,user,Ptr,reason); +00511 +00512 for (unsigned int i =0; i < user->chans.size(); i++) +00513 { +00514 /* zap it from the channel list of the user */ +00515 if (user->chans[i].channel) +00516 if (!strcasecmp(user->chans[i].channel->name,Ptr->name)) +00517 { +00518 WriteChannel(Ptr,src,"KICK %s %s :%s",Ptr->name, user->nick, reason); +00519 user->chans[i].uc_modes = 0; +00520 user->chans[i].channel = NULL; +00521 log(DEBUG,"del_channel: unlinked: %s %s",user->nick,Ptr->name); +00522 break; +00523 } +00524 } +00525 +00526 Ptr->DelUser((char*)user); +00527 +00528 /* if there are no users left on the channel */ +00529 if (!usercount(Ptr)) +00530 { +00531 chan_hash::iterator iter = chanlist.find(Ptr->name); +00532 +00533 log(DEBUG,"del_channel: destroying channel: %s",Ptr->name); +00534 +00535 /* kill the record */ +00536 if (iter != chanlist.end()) +00537 { +00538 log(DEBUG,"del_channel: destroyed: %s",Ptr->name); +00539 delete Ptr; +00540 chanlist.erase(iter); +00541 } +00542 } +00543 } +00544 +00545 +
Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html index 996394eac..3eeac7995 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -8,7 +8,7 @@

channels.cpp File Reference

#include "inspircd_config.h"
-#include "inspircd.h"
+#include "inspircd.h"
#include "inspircd_io.h"
#include "inspircd_util.h"
#include <unistd.h>
@@ -24,26 +24,32 @@ #include <deque>
#include "users.h"
#include "ctables.h"
-#include "globals.h"
+#include "globals.h"
#include "modules.h"
#include "dynamic.h"
+#include "commands.h"
#include "wildcard.h"
#include "message.h"
#include "mode.h"
#include "xline.h"
#include "inspstring.h"
#include "helperfuncs.h"
+#include "typedefs.h"

Include dependency graph for channels.cpp:

- - - - - - - + + + + + + + + + + +

@@ -55,6 +61,15 @@ Include dependency graph for channels.cpp:


Defines

#define nspace   std +

Functions

+chanrecForceChan (chanrec *Ptr, ucrec &a, userrec *user, int created) + +chanrecadd_channel (userrec *user, const char *cn, const char *key, bool override) + +chanrecdel_channel (userrec *user, const char *cname, const char *reason, bool local) + +void kick_channel (userrec *src, userrec *user, chanrec *Ptr, char *reason) +

Variables

ServerConfigConfig @@ -68,16 +83,10 @@ Include dependency graph for channels.cpp:

int WHOWAS_MAX -time_t startup_time - -std::vector< std::stringmodule_names - -int boundPortCount - -std::stringstream config_f - time_t TIME +chan_hash chanlist + std::vector< ModeParametercustom_mode_params @@ -104,17 +113,43 @@ Include dependency graph for channels.cpp:

53 of file channels.cpp. +Definition at line 55 of file channels.cpp. -

Variable Documentation

-

+


Function Documentation

+

@@ -127,17 +162,226 @@ Definition at line 53
- + + + + + + + + + + + + + + + + + + + + + + + + + + +
int boundPortCount chanrec* add_channel userrec user,
const char *  cn,
const char *  key,
bool  override
+

+ +

+Definition at line 195 of file channels.cpp. +

+References chanrec::bans, chanrec::binarymodes, chanlist, userrec::chans, CM_INVITEONLY, CM_NOEXTERNAL, CM_TOPICLOCK, DEBUG, DEFAULT, connection::fd, FindChan(), ForceChan(), FOREACH_RESULT, userrec::GetFullHost(), has_channel(), userrec::IsInvited(), chanrec::key, chanrec::limit, log(), userrec::modes, chanrec::name, userrec::nick, userrec::RemoveInvite(), TIME, and WriteServ(). +

+Referenced by Server::JoinUserToChannel().

00196 {
+00197         if ((!user) || (!cn))
+00198         {
+00199                 log(DEFAULT,"*** BUG *** add_channel was given an invalid parameter");
+00200                 return 0;
+00201         }
+00202 
+00203         int created = 0;
+00204         char cname[MAXBUF];
+00205         int MOD_RESULT = 0;
+00206         strncpy(cname,cn,CHANMAX);
+00207 
+00208         log(DEBUG,"add_channel: %s %s",user->nick,cname);
+00209 
+00210         chanrec* Ptr = FindChan(cname);
+00211 
+00212         if (!Ptr)
+00213         {
+00214                 if (user->fd > -1)
+00215                 {
+00216                         MOD_RESULT = 0;
+00217                         FOREACH_RESULT(OnUserPreJoin(user,NULL,cname));
+00218                         if (MOD_RESULT == 1)
+00219                                 return NULL;
+00220                 }
+00221                 /* create a new one */
+00222                 chanlist[cname] = new chanrec();
+00223                 strlcpy(chanlist[cname]->name, cname,CHANMAX);
+00224                 chanlist[cname]->binarymodes = CM_TOPICLOCK | CM_NOEXTERNAL;
+00225                 chanlist[cname]->created = TIME;
+00226                 strcpy(chanlist[cname]->topic, "");
+00227                 strncpy(chanlist[cname]->setby, user->nick,NICKMAX);
+00228                 chanlist[cname]->topicset = 0;
+00229                 Ptr = chanlist[cname];
+00230                 log(DEBUG,"add_channel: created: %s",cname);
+00231                 /* set created to 2 to indicate user
+00232                  * is the first in the channel
+00233                  * and should be given ops */
+00234                 created = 2;
+00235         }
+00236         else
+00237         {
+00238                 /* Already on the channel */
+00239                 if (has_channel(user,Ptr))
+00240                         return NULL;
+00241 
+00242                 // remote users are allowed us to bypass channel modes
+00243                 // and bans (used by servers)
+00244                 if (user->fd > -1)
+00245                 {
+00246                         MOD_RESULT = 0;
+00247                         FOREACH_RESULT(OnUserPreJoin(user,Ptr,cname));
+00248                         if (MOD_RESULT == 1)
+00249                         {
+00250                                 return NULL;
+00251                         }
+00252                         else
+00253                         {
+00254                                 if (*Ptr->key)
+00255                                 {
+00256                                         MOD_RESULT = 0;
+00257                                         FOREACH_RESULT(OnCheckKey(user, Ptr, key ? key : ""));
+00258                                         if (!MOD_RESULT)
+00259                                         {
+00260                                                 if (!key)
+00261                                                 {
+00262                                                         log(DEBUG,"add_channel: no key given in JOIN");
+00263                                                         WriteServ(user->fd,"475 %s %s :Cannot join channel (Requires key)",user->nick, Ptr->name);
+00264                                                         return NULL;
+00265                                                 }
+00266                                                 else
+00267                                                 {
+00268                                                         if (strcasecmp(key,Ptr->key))
+00269                                                         {
+00270                                                                 log(DEBUG,"add_channel: bad key given in JOIN");
+00271                                                                 WriteServ(user->fd,"475 %s %s :Cannot join channel (Incorrect key)",user->nick, Ptr->name);
+00272                                                                 return NULL;
+00273                                                         }
+00274                                                 }
+00275                                         }
+00276                                 }
+00277                                 if (Ptr->binarymodes & CM_INVITEONLY)
+00278                                 {
+00279                                         MOD_RESULT = 0;
+00280                                         FOREACH_RESULT(OnCheckInvite(user, Ptr));
+00281                                         if (!MOD_RESULT)
+00282                                         {
+00283                                                 log(DEBUG,"add_channel: channel is +i");
+00284                                                 if (user->IsInvited(Ptr->name))
+00285                                                 {
+00286                                                         /* user was invited to channel */
+00287                                                         /* there may be an optional channel NOTICE here */
+00288                                                 }
+00289                                                 else
+00290                                                 {
+00291                                                         WriteServ(user->fd,"473 %s %s :Cannot join channel (Invite only)",user->nick, Ptr->name);
+00292                                                         return NULL;
+00293                                                 }
+00294                                         }
+00295                                         user->RemoveInvite(Ptr->name);
+00296                                 }
+00297                                 if (Ptr->limit)
+00298                                 {
+00299                                         MOD_RESULT = 0;
+00300                                         FOREACH_RESULT(OnCheckLimit(user, Ptr));
+00301                                         if (!MOD_RESULT)
+00302                                         {
+00303                                                 if (usercount(Ptr) >= Ptr->limit)
+00304                                                 {
+00305                                                         WriteServ(user->fd,"471 %s %s :Cannot join channel (Channel is full)",user->nick, Ptr->name);
+00306                                                         return NULL;
+00307                                                 }
+00308                                         }
+00309                                 }
+00310                                 if (Ptr->bans.size())
+00311                                 {
+00312                                         log(DEBUG,"add_channel: about to walk banlist");
+00313                                         MOD_RESULT = 0;
+00314                                         FOREACH_RESULT(OnCheckBan(user, Ptr));
+00315                                         if (!MOD_RESULT)
+00316                                         {
+00317                                                 for (BanList::iterator i = Ptr->bans.begin(); i != Ptr->bans.end(); i++)
+00318                                                 {
+00319                                                         if (match(user->GetFullHost(),i->data))
+00320                                                         {
+00321                                                                 WriteServ(user->fd,"474 %s %s :Cannot join channel (You're banned)",user->nick, Ptr->name);
+00322                                                                 return NULL;
+00323                                                         }
+00324                                                 }
+00325                                         }
+00326                                 }
+00327                         }
+00328                 }
+00329                 else
+00330                 {
+00331                         log(DEBUG,"Overridden checks");
+00332                 }
+00333                 created = 1;
+00334         }
+00335 
+00336         log(DEBUG,"Passed channel checks");
+00337 
+00338         for (unsigned int index =0; index < user->chans.size(); index++)
+00339         {
+00340                 if (user->chans[index].channel == NULL)
+00341                 {
+00342                         return ForceChan(Ptr,user->chans[index],user,created);
+00343                 }
+00344         }
+00345         /* XXX: If the user is an oper here, we can just extend their user->chans vector by one
+00346          * and put the channel in here. Same for remote users which are not bound by
+00347          * the channel limits. Otherwise, nope, youre boned.
+00348          */
+00349         if (user->fd < 0)
+00350         {
+00351                 ucrec a;
+00352                 chanrec* c = ForceChan(Ptr,a,user,created);
+00353                 user->chans.push_back(a);
+00354                 return c;
+00355         }
+00356         else if (strchr(user->modes,'o'))
+00357         {
+00358                 /* Oper allows extension up to the OPERMAXCHANS value */
+00359                 if (user->chans.size() < OPERMAXCHANS)
+00360                 {
+00361                         ucrec a;
+00362                         chanrec* c = ForceChan(Ptr,a,user,created);
+00363                         user->chans.push_back(a);
+00364                         return c;
+00365                 }
+00366         }
+00367         log(DEBUG,"add_channel: user channel max exceeded: %s %s",user->nick,cname);
+00368         WriteServ(user->fd,"405 %s %s :You are on too many channels",user->nick, cname);
+00369         return NULL;
+00370 }
+

-

+

@@ -150,17 +394,106 @@ Definition at line 53
- + + + + + + + + + + + + + + + + + + + + + + + + + + +
ServerConfig* Config chanrec* del_channel userrec user,
const char *  cname,
const char *  reason,
bool  local
+

+ +

+Definition at line 401 of file channels.cpp. +

+References chanlist, userrec::chans, DEBUG, DEFAULT, chanrec::DelUser(), FindChan(), FOREACH_MOD, log(), chanrec::name, userrec::nick, and WriteChannel(). +

+Referenced by Server::PartUserFromChannel().

00402 {
+00403         if ((!user) || (!cname))
+00404         {
+00405                 log(DEFAULT,"*** BUG *** del_channel was given an invalid parameter");
+00406                 return NULL;
+00407         }
+00408 
+00409         chanrec* Ptr = FindChan(cname);
+00410 
+00411         if (!Ptr)
+00412                 return NULL;
+00413 
+00414         FOREACH_MOD OnUserPart(user,Ptr);
+00415         log(DEBUG,"del_channel: removing: %s %s",user->nick,Ptr->name);
+00416 
+00417         for (unsigned int i =0; i < user->chans.size(); i++)
+00418         {
+00419                 /* zap it from the channel list of the user */
+00420                 if (user->chans[i].channel == Ptr)
+00421                 {
+00422                         if (reason)
+00423                         {
+00424                                 WriteChannel(Ptr,user,"PART %s :%s",Ptr->name, reason);
+00425                         }
+00426                         else
+00427                         {
+00428                                 WriteChannel(Ptr,user,"PART :%s",Ptr->name);
+00429                         }
+00430                         user->chans[i].uc_modes = 0;
+00431                         user->chans[i].channel = NULL;
+00432                         log(DEBUG,"del_channel: unlinked: %s %s",user->nick,Ptr->name);
+00433                         break;
+00434                 }
+00435         }
+00436 
+00437         Ptr->DelUser((char*)user);
+00438 
+00439         /* if there are no users left on the channel */
+00440         if (!usercount(Ptr))
+00441         {
+00442                 chan_hash::iterator iter = chanlist.find(Ptr->name);
+00443 
+00444                 log(DEBUG,"del_channel: destroying channel: %s",Ptr->name);
+00445 
+00446                 /* kill the record */
+00447                 if (iter != chanlist.end())
+00448                 {
+00449                         log(DEBUG,"del_channel: destroyed: %s",Ptr->name);
+00450                         delete Ptr;
+00451                         chanlist.erase(iter);
+00452                 }
+00453         }
+00454 
+00455         return NULL;
+00456 }
+

-

+

@@ -173,17 +506,75 @@ Definition at line 53
- + + + + + + + + + + + + + + + + + + + + + + + + + + +
std::stringstream config_f chanrec * ForceChan chanrec Ptr,
ucrec a,
userrec user,
int  created
+

+ +

+Definition at line 372 of file channels.cpp. +

+References chanrec::AddUser(), ucrec::channel, DEBUG, FOREACH_MOD, log(), chanrec::name, chanrec::setby, chanrec::topic, chanrec::topicset, ucrec::uc_modes, UCMODE_OP, WriteChannel(), and WriteServ(). +

+Referenced by add_channel().

00373 {
+00374         if (created == 2)
+00375         {
+00376                 /* first user in is given ops */
+00377                 a.uc_modes = UCMODE_OP;
+00378         }
+00379         else
+00380         {
+00381                 a.uc_modes = 0;
+00382         }
+00383         a.channel = Ptr;
+00384         Ptr->AddUser((char*)user);
+00385         WriteChannel(Ptr,user,"JOIN :%s",Ptr->name);
+00386         log(DEBUG,"Sent JOIN to client");
+00387         if (Ptr->topicset)
+00388         {
+00389                 WriteServ(user->fd,"332 %s %s :%s", user->nick, Ptr->name, Ptr->topic);
+00390                 WriteServ(user->fd,"333 %s %s %s %lu", user->nick, Ptr->name, Ptr->setby, (unsigned long)Ptr->topicset);
+00391         }
+00392         userlist(user,Ptr);
+00393         WriteServ(user->fd,"366 %s %s :End of /NAMES list.", user->nick, Ptr->name);
+00394         FOREACH_MOD OnUserJoin(user,Ptr);
+00395         return Ptr;
+00396 }
+

-

+

@@ -199,18 +590,105 @@ Definition at line 53

-Definition at line 71 of file channels.cpp. +Definition at line 459 of file channels.cpp. +

+References AC_KICK, ACR_DEFAULT, ACR_DENY, chanlist, userrec::chans, cstatus(), DEBUG, DEFAULT, chanrec::DelUser(), connection::fd, FOREACH_MOD, FOREACH_RESULT, has_channel(), is_uline(), log(), chanrec::name, userrec::nick, userrec::server, STATUS_HOP, WriteChannel(), and WriteServ().

00460 {
+00461         if ((!src) || (!user) || (!Ptr) || (!reason))
+00462         {
+00463                 log(DEFAULT,"*** BUG *** kick_channel was given an invalid parameter");
+00464                 return;
+00465         }
+00466 
+00467         if ((!Ptr) || (!user) || (!src))
+00468         {
+00469                 return;
+00470         }
+00471 
+00472         log(DEBUG,"kick_channel: removing: %s %s %s",user->nick,Ptr->name,src->nick);
+00473 
+00474         if (!has_channel(user,Ptr))
+00475         {
+00476                 WriteServ(src->fd,"441 %s %s %s :They are not on that channel",src->nick, user->nick, Ptr->name);
+00477                 return;
+00478         }
+00479 
+00480         int MOD_RESULT = 0;
+00481         FOREACH_RESULT(OnAccessCheck(src,user,Ptr,AC_KICK));
+00482         if ((MOD_RESULT == ACR_DENY) && (!is_uline(src->server)))
+00483                 return;
+00484 
+00485         if ((MOD_RESULT == ACR_DEFAULT) || (!is_uline(src->server)))
+00486         {
+00487                 if ((cstatus(src,Ptr) < STATUS_HOP) || (cstatus(src,Ptr) < cstatus(user,Ptr)))
+00488                 {
+00489                         if (cstatus(src,Ptr) == STATUS_HOP)
+00490                         {
+00491                                 WriteServ(src->fd,"482 %s %s :You must be a channel operator",src->nick, Ptr->name);
+00492                         }
+00493                         else
+00494                         {
+00495                                 WriteServ(src->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",src->nick, Ptr->name);
+00496                         }
+00497 
+00498                         return;
+00499                 }
+00500         }
+00501 
+00502         if (!is_uline(src->server))
+00503         {
+00504                 MOD_RESULT = 0;
+00505                 FOREACH_RESULT(OnUserPreKick(src,user,Ptr,reason));
+00506                 if (MOD_RESULT)
+00507                         return;
+00508         }
+00509 
+00510         FOREACH_MOD OnUserKick(src,user,Ptr,reason);
+00511 
+00512         for (unsigned int i =0; i < user->chans.size(); i++)
+00513         {
+00514                 /* zap it from the channel list of the user */
+00515                 if (user->chans[i].channel)
+00516                 if (!strcasecmp(user->chans[i].channel->name,Ptr->name))
+00517                 {
+00518                         WriteChannel(Ptr,src,"KICK %s %s :%s",Ptr->name, user->nick, reason);
+00519                         user->chans[i].uc_modes = 0;
+00520                         user->chans[i].channel = NULL;
+00521                         log(DEBUG,"del_channel: unlinked: %s %s",user->nick,Ptr->name);
+00522                         break;
+00523                 }
+00524         }
+00525 
+00526         Ptr->DelUser((char*)user);
+00527 
+00528         /* if there are no users left on the channel */
+00529         if (!usercount(Ptr))
+00530         {
+00531                 chan_hash::iterator iter = chanlist.find(Ptr->name);
+00532 
+00533                 log(DEBUG,"del_channel: destroying channel: %s",Ptr->name);
+00534 
+00535                 /* kill the record */
+00536                 if (iter != chanlist.end())
+00537                 {
+00538                         log(DEBUG,"del_channel: destroyed: %s",Ptr->name);
+00539                         delete Ptr;
+00540                         chanlist.erase(iter);
+00541                 }
+00542         }
+00543 }
+

-Referenced by chanrec::GetModeParameter(), and chanrec::SetCustomModeParam(). +

- + + + + + + + + + + + + + + + + + + + + + + + + + + +
std::vector<ModeParameter> custom_mode_params void kick_channel userrec src,
userrec user,
chanrec Ptr,
char *  reason
-

+


Variable Documentation

+

@@ -224,16 +702,41 @@ Referenced by chanrec::Get + +
- +
std::vector<ircd_module*> factory chan_hash chanlist

+ +

+Referenced by add_channel(), del_channel(), and kick_channel().

+

+ + +
+ + + + +
ServerConfig* Config
-

+ + + + + +
+   + + +

+

+

@@ -249,18 +752,18 @@ Referenced by chanrec::Get

-Definition at line 938 of file modules.cpp. +Definition at line 70 of file channels.cpp.

-Referenced by Server::FindModule(). +Referenced by chanrec::GetModeParameter(), and chanrec::SetCustomModeParam().

- +
int MODCOUNT = -1 std::vector<ModeParameter> custom_mode_params
-

+

@@ -277,13 +780,13 @@ Referenced by Server::FindM
- +
std::vector<std::string> module_names std::vector<ircd_module*> factory
-

+

@@ -299,16 +802,18 @@ Referenced by Server::FindM

-Referenced by Server::FindModule(). +Definition at line 930 of file modules.cpp. +

+Referenced by Server::FindModule().

- +
std::vector<Module*> modules int MODCOUNT = -1
-

+

@@ -322,7 +827,9 @@ Referenced by Server::FindM + +

+Referenced by Server::FindModule().

- +
time_t startup_time std::vector<Module*> modules

-

@@ -347,7 +854,7 @@ Referenced by Server::FindM

-Referenced by userrec::userrec(). +Referenced by add_channel(), and userrec::userrec().

@@ -356,7 +863,7 @@ Referenced by userrec::userre - +
int WHOWAS_MAX int WHOWAS_MAX
@@ -379,7 +886,7 @@ Referenced by
userrec::userre - +
int WHOWAS_STALE int WHOWAS_STALE
@@ -396,7 +903,7 @@ Referenced by
userrec::userre -


Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
Generated on Wed Dec 14 19:16:14 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/channels_8cpp__incl.gif b/docs/module-doc/channels_8cpp__incl.gif index 37e28ff42..863abc3e5 100644 Binary files a/docs/module-doc/channels_8cpp__incl.gif and b/docs/module-doc/channels_8cpp__incl.gif differ diff --git a/docs/module-doc/channels_8cpp__incl.map b/docs/module-doc/channels_8cpp__incl.map index 66f731cbf..f6471abe1 100644 --- a/docs/module-doc/channels_8cpp__incl.map +++ b/docs/module-doc/channels_8cpp__incl.map @@ -1,8 +1,12 @@ base referer -rect $inspircd__io_8h-source.html 163,513 259,540 -rect $users_8h-source.html 324,159 388,185 -rect $ctables_8h-source.html 319,513 393,540 -rect $modules_8h-source.html 169,463 252,489 -rect $message_8h-source.html 168,209 253,236 -rect $mode_8h-source.html 177,311 244,337 -rect $xline_8h-source.html 180,159 241,185 +rect $inspircd_8h-source.html 580,665 660,692 +rect $inspircd__io_8h-source.html 712,615 808,641 +rect $globals_8h-source.html 872,767 947,793 +rect $users_8h-source.html 1009,716 1073,743 +rect $ctables_8h-source.html 452,868 527,895 +rect $modules_8h-source.html 315,767 397,793 +rect $commands_8h-source.html 860,361 959,388 +rect $message_8h-source.html 867,412 952,439 +rect $mode_8h-source.html 876,108 943,135 +rect $xline_8h-source.html 879,159 940,185 +rect $typedefs_8h-source.html 168,1020 253,1047 diff --git a/docs/module-doc/channels_8cpp__incl.md5 b/docs/module-doc/channels_8cpp__incl.md5 index 0f6924e90..319dd1c05 100644 --- a/docs/module-doc/channels_8cpp__incl.md5 +++ b/docs/module-doc/channels_8cpp__incl.md5 @@ -1 +1 @@ -a1941ab3cf03fba8030e6802191251a3 \ No newline at end of file +4f90f86ea2d42fe100213ae570a3e482 \ No newline at end of file diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index b97c331ba..d2ae71063 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -39,116 +39,122 @@ 00030 #define CM_SECRET 16 00031 #define CM_PRIVATE 32 00032 -00036 class HostItem : public classbase -00037 { -00038 public: -00039 time_t set_time; -00040 char set_by[NICKMAX]; -00041 char data[MAXBUF]; -00042 -00043 HostItem() { /* stub */ } -00044 virtual ~HostItem() { /* stub */ } -00045 }; -00046 -00047 // banlist is inherited from HostList mainly for readability -00048 // reasons only -00049 -00052 class BanItem : public HostItem -00053 { -00054 }; -00055 -00056 // same with this... +00033 class userrec; +00034 +00038 class HostItem : public classbase +00039 { +00040 public: +00041 time_t set_time; +00042 char set_by[NICKMAX]; +00043 char data[MAXBUF]; +00044 +00045 HostItem() { /* stub */ } +00046 virtual ~HostItem() { /* stub */ } +00047 }; +00048 +00049 // banlist is inherited from HostList mainly for readability +00050 // reasons only +00051 +00054 class BanItem : public HostItem +00055 { +00056 }; 00057 -00060 class ExemptItem : public HostItem -00061 { -00062 }; -00063 -00064 // and this... +00058 // same with this... +00059 +00062 class ExemptItem : public HostItem +00063 { +00064 }; 00065 -00068 class InviteItem : public HostItem -00069 { -00070 }; -00071 -00072 -00077 class ModeParameter : public classbase -00078 { -00079 public: -00080 char mode; -00081 char parameter[MAXBUF]; -00082 char channel[CHANMAX]; -00083 }; -00084 -00087 typedef std::vector<BanItem> BanList; -00088 -00091 typedef std::vector<ExemptItem> ExemptList; -00092 -00095 typedef std::vector<InviteItem> InviteList; -00096 -00101 class chanrec : public Extensible -00102 { -00103 public: -00106 char name[CHANMAX]; /* channel name */ -00110 char custom_modes[MAXMODES]; /* modes handled by modules */ -00111 -00115 std::vector<char*> internal_userlist; -00116 -00120 char topic[MAXBUF]; -00123 time_t created; -00127 time_t topicset; -00131 char setby[NICKMAX]; -00132 -00136 short int limit; -00137 -00141 char key[32]; -00142 -00145 char binarymodes; -00146 -00149 BanList bans; -00150 -00155 void SetCustomMode(char mode,bool mode_on); -00156 -00162 void SetCustomModeParam(char mode,char* parameter,bool mode_on); -00163 -00168 bool IsCustomModeSet(char mode); -00169 -00180 std::string GetModeParameter(char mode); -00181 -00189 long GetUserCounter(); -00190 -00198 void AddUser(char* castuser); -00199 -00207 void DelUser(char* castuser); -00208 -00218 std::vector<char*> *GetUsers(); -00219 -00222 chanrec(); -00223 -00224 virtual ~chanrec() { /* stub */ } -00225 }; -00226 -00227 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o -00228 * needs to come AFTER struct chanrec */ -00229 -00230 #define UCMODE_OP 1 -00231 #define UCMODE_VOICE 2 -00232 #define UCMODE_HOP 4 -00233 #define UCMODE_PROTECT 8 -00234 #define UCMODE_FOUNDER 16 -00235 -00241 class ucrec : public classbase -00242 { -00243 public: -00247 char uc_modes; -00248 -00252 chanrec *channel; -00253 -00254 ucrec() { /* stub */ } -00255 virtual ~ucrec() { /* stub */ } -00256 }; -00257 -00258 #endif -00259 -
Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +00066 // and this... +00067 +00070 class InviteItem : public HostItem +00071 { +00072 }; +00073 +00074 +00079 class ModeParameter : public classbase +00080 { +00081 public: +00082 char mode; +00083 char parameter[MAXBUF]; +00084 char channel[CHANMAX]; +00085 }; +00086 +00089 typedef std::vector<BanItem> BanList; +00090 +00093 typedef std::vector<ExemptItem> ExemptList; +00094 +00097 typedef std::vector<InviteItem> InviteList; +00098 +00103 class chanrec : public Extensible +00104 { +00105 public: +00108 char name[CHANMAX]; /* channel name */ +00112 char custom_modes[MAXMODES]; /* modes handled by modules */ +00113 +00117 std::vector<char*> internal_userlist; +00118 +00122 char topic[MAXBUF]; +00125 time_t created; +00129 time_t topicset; +00133 char setby[NICKMAX]; +00134 +00138 short int limit; +00139 +00143 char key[32]; +00144 +00147 char binarymodes; +00148 +00151 BanList bans; +00152 +00157 void SetCustomMode(char mode,bool mode_on); +00158 +00164 void SetCustomModeParam(char mode,char* parameter,bool mode_on); +00165 +00170 bool IsCustomModeSet(char mode); +00171 +00182 std::string GetModeParameter(char mode); +00183 +00191 long GetUserCounter(); +00192 +00200 void AddUser(char* castuser); +00201 +00209 void DelUser(char* castuser); +00210 +00220 std::vector<char*> *GetUsers(); +00221 +00224 chanrec(); +00225 +00226 virtual ~chanrec() { /* stub */ } +00227 }; +00228 +00229 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o +00230 * needs to come AFTER struct chanrec */ +00231 +00232 #define UCMODE_OP 1 +00233 #define UCMODE_VOICE 2 +00234 #define UCMODE_HOP 4 +00235 #define UCMODE_PROTECT 8 +00236 #define UCMODE_FOUNDER 16 +00237 +00243 class ucrec : public classbase +00244 { +00245 public: +00249 char uc_modes; +00250 +00254 chanrec *channel; +00255 +00256 ucrec() { /* stub */ } +00257 virtual ~ucrec() { /* stub */ } +00258 }; +00259 +00260 chanrec* add_channel(userrec *user, const char* cn, const char* key, bool override); +00261 chanrec* del_channel(userrec *user, const char* cname, const char* reason, bool local); +00262 void kick_channel(userrec *src,userrec *user, chanrec *Ptr, char* reason); +00263 +00264 #endif +00265 +
Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index 70eddfacb..fe3e3e2fe 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -22,16 +22,15 @@ Include dependency graph for channels.h:

- - - - - - - - - - + + + + + + + + +

@@ -92,6 +91,13 @@ This graph shows which files directly or indirectly include this file:

typedef std::vector< InviteItemInviteList  Holds a complete invite list.
+

Functions

+chanrecadd_channel (userrec *user, const char *cn, const char *key, bool override) + +chanrecdel_channel (userrec *user, const char *cname, const char *reason, bool local) + +void kick_channel (userrec *src, userrec *user, chanrec *Ptr, char *reason) +

Define Documentation

@@ -116,7 +122,9 @@ This graph shows which files directly or indirectly include this file:

-Definition at line 28 of file channels.h. +Definition at line 28 of file channels.h. +

+Referenced by add_channel().

@@ -166,7 +174,9 @@ Definition at line 29 of

-Definition at line 27 of file channels.h. +Definition at line 27 of file channels.h. +

+Referenced by add_channel().

@@ -241,7 +251,9 @@ Definition at line 30 of

-Definition at line 26 of file channels.h. +Definition at line 26 of file channels.h. +

+Referenced by add_channel().

@@ -266,7 +278,7 @@ Definition at line 26 of

-Definition at line 234 of file channels.h. +Definition at line 236 of file channels.h.

@@ -291,7 +303,7 @@ Definition at line 234 o

-Definition at line 232 of file channels.h. +Definition at line 234 of file channels.h.

@@ -316,7 +328,9 @@ Definition at line 232 o

-Definition at line 230 of file channels.h. +Definition at line 232 of file channels.h. +

+Referenced by ForceChan().

@@ -341,7 +355,7 @@ Definition at line 230 o

-Definition at line 233 of file channels.h. +Definition at line 235 of file channels.h.

@@ -366,7 +380,7 @@ Definition at line 233 o

-Definition at line 231 of file channels.h. +Definition at line 233 of file channels.h.


Typedef Documentation

@@ -394,7 +408,7 @@ Holds a complete ban list.

-Definition at line 87 of file channels.h. +Definition at line 89 of file channels.h.

@@ -421,7 +435,7 @@ Holds a complete exempt list.

-Definition at line 91 of file channels.h. +Definition at line 93 of file channels.h.

@@ -448,10 +462,494 @@ Holds a complete invite list.

-Definition at line 95 of file channels.h. +Definition at line 97 of file channels.h. + + +


Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
chanrec* add_channel userrec user,
const char *  cn,
const char *  key,
bool  override
+
+ + + + + +
+   + + +

+ +

+Definition at line 195 of file channels.cpp. +

+References chanrec::bans, chanrec::binarymodes, chanlist, userrec::chans, CM_INVITEONLY, CM_NOEXTERNAL, CM_TOPICLOCK, DEBUG, DEFAULT, connection::fd, FindChan(), ForceChan(), FOREACH_RESULT, userrec::GetFullHost(), has_channel(), userrec::IsInvited(), chanrec::key, chanrec::limit, log(), userrec::modes, chanrec::name, userrec::nick, userrec::RemoveInvite(), TIME, and WriteServ(). +

+Referenced by Server::JoinUserToChannel().

00196 {
+00197         if ((!user) || (!cn))
+00198         {
+00199                 log(DEFAULT,"*** BUG *** add_channel was given an invalid parameter");
+00200                 return 0;
+00201         }
+00202 
+00203         int created = 0;
+00204         char cname[MAXBUF];
+00205         int MOD_RESULT = 0;
+00206         strncpy(cname,cn,CHANMAX);
+00207 
+00208         log(DEBUG,"add_channel: %s %s",user->nick,cname);
+00209 
+00210         chanrec* Ptr = FindChan(cname);
+00211 
+00212         if (!Ptr)
+00213         {
+00214                 if (user->fd > -1)
+00215                 {
+00216                         MOD_RESULT = 0;
+00217                         FOREACH_RESULT(OnUserPreJoin(user,NULL,cname));
+00218                         if (MOD_RESULT == 1)
+00219                                 return NULL;
+00220                 }
+00221                 /* create a new one */
+00222                 chanlist[cname] = new chanrec();
+00223                 strlcpy(chanlist[cname]->name, cname,CHANMAX);
+00224                 chanlist[cname]->binarymodes = CM_TOPICLOCK | CM_NOEXTERNAL;
+00225                 chanlist[cname]->created = TIME;
+00226                 strcpy(chanlist[cname]->topic, "");
+00227                 strncpy(chanlist[cname]->setby, user->nick,NICKMAX);
+00228                 chanlist[cname]->topicset = 0;
+00229                 Ptr = chanlist[cname];
+00230                 log(DEBUG,"add_channel: created: %s",cname);
+00231                 /* set created to 2 to indicate user
+00232                  * is the first in the channel
+00233                  * and should be given ops */
+00234                 created = 2;
+00235         }
+00236         else
+00237         {
+00238                 /* Already on the channel */
+00239                 if (has_channel(user,Ptr))
+00240                         return NULL;
+00241 
+00242                 // remote users are allowed us to bypass channel modes
+00243                 // and bans (used by servers)
+00244                 if (user->fd > -1)
+00245                 {
+00246                         MOD_RESULT = 0;
+00247                         FOREACH_RESULT(OnUserPreJoin(user,Ptr,cname));
+00248                         if (MOD_RESULT == 1)
+00249                         {
+00250                                 return NULL;
+00251                         }
+00252                         else
+00253                         {
+00254                                 if (*Ptr->key)
+00255                                 {
+00256                                         MOD_RESULT = 0;
+00257                                         FOREACH_RESULT(OnCheckKey(user, Ptr, key ? key : ""));
+00258                                         if (!MOD_RESULT)
+00259                                         {
+00260                                                 if (!key)
+00261                                                 {
+00262                                                         log(DEBUG,"add_channel: no key given in JOIN");
+00263                                                         WriteServ(user->fd,"475 %s %s :Cannot join channel (Requires key)",user->nick, Ptr->name);
+00264                                                         return NULL;
+00265                                                 }
+00266                                                 else
+00267                                                 {
+00268                                                         if (strcasecmp(key,Ptr->key))
+00269                                                         {
+00270                                                                 log(DEBUG,"add_channel: bad key given in JOIN");
+00271                                                                 WriteServ(user->fd,"475 %s %s :Cannot join channel (Incorrect key)",user->nick, Ptr->name);
+00272                                                                 return NULL;
+00273                                                         }
+00274                                                 }
+00275                                         }
+00276                                 }
+00277                                 if (Ptr->binarymodes & CM_INVITEONLY)
+00278                                 {
+00279                                         MOD_RESULT = 0;
+00280                                         FOREACH_RESULT(OnCheckInvite(user, Ptr));
+00281                                         if (!MOD_RESULT)
+00282                                         {
+00283                                                 log(DEBUG,"add_channel: channel is +i");
+00284                                                 if (user->IsInvited(Ptr->name))
+00285                                                 {
+00286                                                         /* user was invited to channel */
+00287                                                         /* there may be an optional channel NOTICE here */
+00288                                                 }
+00289                                                 else
+00290                                                 {
+00291                                                         WriteServ(user->fd,"473 %s %s :Cannot join channel (Invite only)",user->nick, Ptr->name);
+00292                                                         return NULL;
+00293                                                 }
+00294                                         }
+00295                                         user->RemoveInvite(Ptr->name);
+00296                                 }
+00297                                 if (Ptr->limit)
+00298                                 {
+00299                                         MOD_RESULT = 0;
+00300                                         FOREACH_RESULT(OnCheckLimit(user, Ptr));
+00301                                         if (!MOD_RESULT)
+00302                                         {
+00303                                                 if (usercount(Ptr) >= Ptr->limit)
+00304                                                 {
+00305                                                         WriteServ(user->fd,"471 %s %s :Cannot join channel (Channel is full)",user->nick, Ptr->name);
+00306                                                         return NULL;
+00307                                                 }
+00308                                         }
+00309                                 }
+00310                                 if (Ptr->bans.size())
+00311                                 {
+00312                                         log(DEBUG,"add_channel: about to walk banlist");
+00313                                         MOD_RESULT = 0;
+00314                                         FOREACH_RESULT(OnCheckBan(user, Ptr));
+00315                                         if (!MOD_RESULT)
+00316                                         {
+00317                                                 for (BanList::iterator i = Ptr->bans.begin(); i != Ptr->bans.end(); i++)
+00318                                                 {
+00319                                                         if (match(user->GetFullHost(),i->data))
+00320                                                         {
+00321                                                                 WriteServ(user->fd,"474 %s %s :Cannot join channel (You're banned)",user->nick, Ptr->name);
+00322                                                                 return NULL;
+00323                                                         }
+00324                                                 }
+00325                                         }
+00326                                 }
+00327                         }
+00328                 }
+00329                 else
+00330                 {
+00331                         log(DEBUG,"Overridden checks");
+00332                 }
+00333                 created = 1;
+00334         }
+00335 
+00336         log(DEBUG,"Passed channel checks");
+00337 
+00338         for (unsigned int index =0; index < user->chans.size(); index++)
+00339         {
+00340                 if (user->chans[index].channel == NULL)
+00341                 {
+00342                         return ForceChan(Ptr,user->chans[index],user,created);
+00343                 }
+00344         }
+00345         /* XXX: If the user is an oper here, we can just extend their user->chans vector by one
+00346          * and put the channel in here. Same for remote users which are not bound by
+00347          * the channel limits. Otherwise, nope, youre boned.
+00348          */
+00349         if (user->fd < 0)
+00350         {
+00351                 ucrec a;
+00352                 chanrec* c = ForceChan(Ptr,a,user,created);
+00353                 user->chans.push_back(a);
+00354                 return c;
+00355         }
+00356         else if (strchr(user->modes,'o'))
+00357         {
+00358                 /* Oper allows extension up to the OPERMAXCHANS value */
+00359                 if (user->chans.size() < OPERMAXCHANS)
+00360                 {
+00361                         ucrec a;
+00362                         chanrec* c = ForceChan(Ptr,a,user,created);
+00363                         user->chans.push_back(a);
+00364                         return c;
+00365                 }
+00366         }
+00367         log(DEBUG,"add_channel: user channel max exceeded: %s %s",user->nick,cname);
+00368         WriteServ(user->fd,"405 %s %s :You are on too many channels",user->nick, cname);
+00369         return NULL;
+00370 }
+
+

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
chanrec* del_channel userrec user,
const char *  cname,
const char *  reason,
bool  local
+
+ + + + + +
+   + + +

+ +

+Definition at line 401 of file channels.cpp. +

+References chanlist, userrec::chans, DEBUG, DEFAULT, chanrec::DelUser(), FindChan(), FOREACH_MOD, log(), chanrec::name, userrec::nick, and WriteChannel(). +

+Referenced by Server::PartUserFromChannel().

00402 {
+00403         if ((!user) || (!cname))
+00404         {
+00405                 log(DEFAULT,"*** BUG *** del_channel was given an invalid parameter");
+00406                 return NULL;
+00407         }
+00408 
+00409         chanrec* Ptr = FindChan(cname);
+00410 
+00411         if (!Ptr)
+00412                 return NULL;
+00413 
+00414         FOREACH_MOD OnUserPart(user,Ptr);
+00415         log(DEBUG,"del_channel: removing: %s %s",user->nick,Ptr->name);
+00416 
+00417         for (unsigned int i =0; i < user->chans.size(); i++)
+00418         {
+00419                 /* zap it from the channel list of the user */
+00420                 if (user->chans[i].channel == Ptr)
+00421                 {
+00422                         if (reason)
+00423                         {
+00424                                 WriteChannel(Ptr,user,"PART %s :%s",Ptr->name, reason);
+00425                         }
+00426                         else
+00427                         {
+00428                                 WriteChannel(Ptr,user,"PART :%s",Ptr->name);
+00429                         }
+00430                         user->chans[i].uc_modes = 0;
+00431                         user->chans[i].channel = NULL;
+00432                         log(DEBUG,"del_channel: unlinked: %s %s",user->nick,Ptr->name);
+00433                         break;
+00434                 }
+00435         }
+00436 
+00437         Ptr->DelUser((char*)user);
+00438 
+00439         /* if there are no users left on the channel */
+00440         if (!usercount(Ptr))
+00441         {
+00442                 chan_hash::iterator iter = chanlist.find(Ptr->name);
+00443 
+00444                 log(DEBUG,"del_channel: destroying channel: %s",Ptr->name);
+00445 
+00446                 /* kill the record */
+00447                 if (iter != chanlist.end())
+00448                 {
+00449                         log(DEBUG,"del_channel: destroyed: %s",Ptr->name);
+00450                         delete Ptr;
+00451                         chanlist.erase(iter);
+00452                 }
+00453         }
+00454 
+00455         return NULL;
+00456 }
+
+

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void kick_channel userrec src,
userrec user,
chanrec Ptr,
char *  reason
+
+ + + +
+   + + +

+ +

+Definition at line 459 of file channels.cpp. +

+References AC_KICK, ACR_DEFAULT, ACR_DENY, chanlist, userrec::chans, cstatus(), DEBUG, DEFAULT, chanrec::DelUser(), connection::fd, FOREACH_MOD, FOREACH_RESULT, has_channel(), is_uline(), log(), chanrec::name, userrec::nick, userrec::server, STATUS_HOP, WriteChannel(), and WriteServ().

00460 {
+00461         if ((!src) || (!user) || (!Ptr) || (!reason))
+00462         {
+00463                 log(DEFAULT,"*** BUG *** kick_channel was given an invalid parameter");
+00464                 return;
+00465         }
+00466 
+00467         if ((!Ptr) || (!user) || (!src))
+00468         {
+00469                 return;
+00470         }
+00471 
+00472         log(DEBUG,"kick_channel: removing: %s %s %s",user->nick,Ptr->name,src->nick);
+00473 
+00474         if (!has_channel(user,Ptr))
+00475         {
+00476                 WriteServ(src->fd,"441 %s %s %s :They are not on that channel",src->nick, user->nick, Ptr->name);
+00477                 return;
+00478         }
+00479 
+00480         int MOD_RESULT = 0;
+00481         FOREACH_RESULT(OnAccessCheck(src,user,Ptr,AC_KICK));
+00482         if ((MOD_RESULT == ACR_DENY) && (!is_uline(src->server)))
+00483                 return;
+00484 
+00485         if ((MOD_RESULT == ACR_DEFAULT) || (!is_uline(src->server)))
+00486         {
+00487                 if ((cstatus(src,Ptr) < STATUS_HOP) || (cstatus(src,Ptr) < cstatus(user,Ptr)))
+00488                 {
+00489                         if (cstatus(src,Ptr) == STATUS_HOP)
+00490                         {
+00491                                 WriteServ(src->fd,"482 %s %s :You must be a channel operator",src->nick, Ptr->name);
+00492                         }
+00493                         else
+00494                         {
+00495                                 WriteServ(src->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",src->nick, Ptr->name);
+00496                         }
+00497 
+00498                         return;
+00499                 }
+00500         }
+00501 
+00502         if (!is_uline(src->server))
+00503         {
+00504                 MOD_RESULT = 0;
+00505                 FOREACH_RESULT(OnUserPreKick(src,user,Ptr,reason));
+00506                 if (MOD_RESULT)
+00507                         return;
+00508         }
+00509 
+00510         FOREACH_MOD OnUserKick(src,user,Ptr,reason);
+00511 
+00512         for (unsigned int i =0; i < user->chans.size(); i++)
+00513         {
+00514                 /* zap it from the channel list of the user */
+00515                 if (user->chans[i].channel)
+00516                 if (!strcasecmp(user->chans[i].channel->name,Ptr->name))
+00517                 {
+00518                         WriteChannel(Ptr,src,"KICK %s %s :%s",Ptr->name, user->nick, reason);
+00519                         user->chans[i].uc_modes = 0;
+00520                         user->chans[i].channel = NULL;
+00521                         log(DEBUG,"del_channel: unlinked: %s %s",user->nick,Ptr->name);
+00522                         break;
+00523                 }
+00524         }
+00525 
+00526         Ptr->DelUser((char*)user);
+00527 
+00528         /* if there are no users left on the channel */
+00529         if (!usercount(Ptr))
+00530         {
+00531                 chan_hash::iterator iter = chanlist.find(Ptr->name);
+00532 
+00533                 log(DEBUG,"del_channel: destroying channel: %s",Ptr->name);
+00534 
+00535                 /* kill the record */
+00536                 if (iter != chanlist.end())
+00537                 {
+00538                         log(DEBUG,"del_channel: destroyed: %s",Ptr->name);
+00539                         delete Ptr;
+00540                         chanlist.erase(iter);
+00541                 }
+00542         }
+00543 }
+
+

+

-


Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
Generated on Wed Dec 14 19:16:15 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/channels_8h__dep__incl.gif b/docs/module-doc/channels_8h__dep__incl.gif index c40f195d0..44faae19a 100644 Binary files a/docs/module-doc/channels_8h__dep__incl.gif and b/docs/module-doc/channels_8h__dep__incl.gif differ diff --git a/docs/module-doc/channels_8h__dep__incl.map b/docs/module-doc/channels_8h__dep__incl.map index 639a4ae08..51a68abc7 100644 --- a/docs/module-doc/channels_8h__dep__incl.map +++ b/docs/module-doc/channels_8h__dep__incl.map @@ -1,11 +1,10 @@ base referer -rect $users_8cpp-source.html 423,57 503,84 -rect $users_8h-source.html 144,260 208,287 -rect $commands_8h-source.html 261,57 360,84 -rect $message_8h-source.html 268,361 353,388 -rect $mode_8h-source.html 277,311 344,337 -rect $typedefs_8h-source.html 268,108 353,135 -rect $xline_8h-source.html 280,463 341,489 -rect $channels_8cpp-source.html 413,387 512,413 -rect $modules_8cpp-source.html 413,260 512,287 -rect $userprocess_8h-source.html 259,260 363,287 +rect $users_8cpp-source.html 407,83 487,109 +rect $users_8h-source.html 144,257 208,284 +rect $commands_8h-source.html 257,57 356,84 +rect $globals_8h-source.html 269,159 344,185 +rect $typedefs_8h-source.html 404,209 489,236 +rect $inspircd_8h-source.html 267,108 347,135 +rect $message_8h-source.html 264,311 349,337 +rect $mode_8h-source.html 273,361 340,388 +rect $xline_8h-source.html 276,463 337,489 diff --git a/docs/module-doc/channels_8h__dep__incl.md5 b/docs/module-doc/channels_8h__dep__incl.md5 index 344d252bc..7cdd2a07a 100644 --- a/docs/module-doc/channels_8h__dep__incl.md5 +++ b/docs/module-doc/channels_8h__dep__incl.md5 @@ -1 +1 @@ -e01fe683fcd4d4c38b8d4f6b57a6a4ae \ No newline at end of file +c1ac9086e017050822f2734a737f9114 \ No newline at end of file diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index 083cbdaba..03b44986f 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -13,7 +13,7 @@ NameAdmin NickAdmin ~classbase()classbase [inline] -
Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index a42bdad48..88d159fe1 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -81,7 +81,7 @@ Definition at line 125 of

-Definition at line 171 of file modules.cpp.

00171 : Name(name), Email(email), Nick(nick) { };
+Definition at line 163 of file modules.cpp.
00163 : Name(name), Email(email), Nick(nick) { };
 

@@ -165,7 +165,7 @@ Definition at line 128 of


The documentation for this class was generated from the following files: -
Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index 69799a6c7..15d99bd40 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index a05193b22..f9270f2c0 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -28,9 +28,9 @@ A subclass of HostItem designed to h

-Definition at line 52 of file channels.h.


The documentation for this class was generated from the following file:
    +Definition at line 54 of file channels.h.
    The documentation for this class was generated from the following file: -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classBoolSet-members.html b/docs/module-doc/classBoolSet-members.html index 3b044c3fe..b16f5c2bb 100644 --- a/docs/module-doc/classBoolSet-members.html +++ b/docs/module-doc/classBoolSet-members.html @@ -17,7 +17,7 @@ operator|(BoolSet other)BoolSet Set(int number)BoolSet Unset(int number)BoolSet -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classBoolSet.html b/docs/module-doc/classBoolSet.html index 067b3beb3..dfeab1879 100644 --- a/docs/module-doc/classBoolSet.html +++ b/docs/module-doc/classBoolSet.html @@ -405,7 +405,7 @@ Definition at line 106 of fi
    The documentation for this class was generated from the following file: -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index 06a8d7d5d..02f31cdb0 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -24,7 +24,7 @@ Verify()ConfigReader ~classbase()classbase [inline] ~ConfigReader()ConfigReader -
    Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 24e0048aa..706de5241 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -102,16 +102,16 @@ Default constructor.

    This constructor initialises the ConfigReader class to read the inspircd.conf file as specified when running ./configure.

    -Definition at line 739 of file modules.cpp. -

    -References cache, ServerConfig::ClearStack(), CONF_FILE_NOT_FOUND, error, errorlog, ServerConfig::LoadConf(), and readerror.

    00740 {
    -00741         Config->ClearStack();
    -00742         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
    -00743         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
    -00744         this->readerror = Config->LoadConf(CONFIG_FILE,this->cache,this->errorlog);
    -00745         if (!this->readerror)
    -00746                 this->error = CONF_FILE_NOT_FOUND;
    -00747 }
    +Definition at line 731 of file modules.cpp.
    +

    +References cache, ServerConfig::ClearStack(), CONF_FILE_NOT_FOUND, error, errorlog, ServerConfig::LoadConf(), and readerror.

    00732 {
    +00733         Config->ClearStack();
    +00734         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
    +00735         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
    +00736         this->readerror = Config->LoadConf(CONFIG_FILE,this->cache,this->errorlog);
    +00737         if (!this->readerror)
    +00738                 this->error = CONF_FILE_NOT_FOUND;
    +00739 }
     

    @@ -146,16 +146,16 @@ Overloaded constructor.

    This constructor initialises the ConfigReader class to read a user-specified config file

    -Definition at line 759 of file modules.cpp. +Definition at line 751 of file modules.cpp.

    -References cache, ServerConfig::ClearStack(), CONF_FILE_NOT_FOUND, error, errorlog, ServerConfig::LoadConf(), and readerror.

    00760 {
    -00761         Config->ClearStack();
    -00762         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
    -00763         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
    -00764         this->readerror = Config->LoadConf(filename.c_str(),this->cache,this->errorlog);
    -00765         if (!this->readerror)
    -00766                 this->error = CONF_FILE_NOT_FOUND;
    -00767 };
    +References cache, ServerConfig::ClearStack(), CONF_FILE_NOT_FOUND, error, errorlog, ServerConfig::LoadConf(), and readerror.
    00752 {
    +00753         Config->ClearStack();
    +00754         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
    +00755         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
    +00756         this->readerror = Config->LoadConf(filename.c_str(),this->cache,this->errorlog);
    +00757         if (!this->readerror)
    +00758                 this->error = CONF_FILE_NOT_FOUND;
    +00759 };
     

    @@ -189,14 +189,14 @@ Default destructor.

    This method destroys the ConfigReader class.

    -Definition at line 750 of file modules.cpp. +Definition at line 742 of file modules.cpp.

    -References cache, and errorlog.

    00751 {
    -00752         if (this->cache)
    -00753                 delete this->cache;
    -00754         if (this->errorlog)
    -00755                 delete this->errorlog;
    -00756 }
    +References cache, and errorlog.
    00743 {
    +00744         if (this->cache)
    +00745                 delete this->cache;
    +00746         if (this->errorlog)
    +00747                 delete this->errorlog;
    +00748 }
     

    @@ -241,38 +241,38 @@ Dumps the list of errors in a config file to an output location.

    If bail is true, then the program will abort. If bail is false and user points to a valid user record, the error report will be spooled to the given user by means of NOTICE. if bool is false AND user is false, the error report will be spooled to all opers by means of a NOTICE to all opers.

    -Definition at line 838 of file modules.cpp. -

    -References errorlog, connection::fd, and userrec::nick.

    00839 {
    -00840         if (bail)
    -00841         {
    -00842                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
    -00843                 exit(0);
    -00844         }
    -00845         else
    -00846         {
    -00847                 char dataline[1024];
    -00848                 if (user)
    -00849                 {
    -00850                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
    -00851                         while (!errorlog->eof())
    -00852                         {
    -00853                                 errorlog->getline(dataline,1024);
    -00854                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
    -00855                         }
    -00856                 }
    -00857                 else
    -00858                 {
    -00859                         WriteOpers("There were errors in the configuration file:",user->nick);
    -00860                         while (!errorlog->eof())
    -00861                         {
    -00862                                 errorlog->getline(dataline,1024);
    -00863                                 WriteOpers(dataline);
    -00864                         }
    -00865                 }
    -00866                 return;
    -00867         }
    -00868 }
    +Definition at line 830 of file modules.cpp.
    +

    +References errorlog, connection::fd, userrec::nick, WriteOpers(), and WriteServ().

    00831 {
    +00832         if (bail)
    +00833         {
    +00834                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
    +00835                 exit(0);
    +00836         }
    +00837         else
    +00838         {
    +00839                 char dataline[1024];
    +00840                 if (user)
    +00841                 {
    +00842                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
    +00843                         while (!errorlog->eof())
    +00844                         {
    +00845                                 errorlog->getline(dataline,1024);
    +00846                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
    +00847                         }
    +00848                 }
    +00849                 else
    +00850                 {
    +00851                         WriteOpers("There were errors in the configuration file:",user->nick);
    +00852                         while (!errorlog->eof())
    +00853                         {
    +00854                                 errorlog->getline(dataline,1024);
    +00855                                 WriteOpers(dataline);
    +00856                         }
    +00857                 }
    +00858                 return;
    +00859         }
    +00860 }
     

    @@ -307,11 +307,11 @@ Counts the number of times a given tag appears in the config file.

    This method counts the number of times a tag appears in a config file, for use where there are several tags of the same kind, e.g. with opers and connect types. It can be used with the index value of ConfigReader::ReadValue to loop through all copies of a multiple instance tag.

    -Definition at line 871 of file modules.cpp. +Definition at line 863 of file modules.cpp.

    -References cache, and ServerConfig::EnumConf().

    00872 {
    -00873         return Config->EnumConf(cache,tag.c_str());
    -00874 }
    +References cache, and ServerConfig::EnumConf().
    00864 {
    +00865         return Config->EnumConf(cache,tag.c_str());
    +00866 }
     

    @@ -355,11 +355,11 @@ Returns the number of items within a tag.

    For example if the tag was <test tag="blah" data="foo"> then this function would return 2. Spaces and newlines both qualify as valid seperators between values.

    -Definition at line 876 of file modules.cpp. +Definition at line 868 of file modules.cpp.

    -References cache, and ServerConfig::EnumValues().

    00877 {
    -00878         return Config->EnumValues(cache, tag.c_str(), index);
    -00879 }
    +References cache, and ServerConfig::EnumValues().
    00869 {
    +00870         return Config->EnumValues(cache, tag.c_str(), index);
    +00871 }
     

    @@ -393,13 +393,13 @@ Returns the last error to occur.

    Valid errors can be found by looking in modules.h. Any nonzero value indicates an error condition. A call to GetError() resets the error flag back to 0.

    -Definition at line 831 of file modules.cpp. +Definition at line 823 of file modules.cpp.

    -References error.

    00832 {
    -00833         long olderr = this->error;
    -00834         this->error = 0;
    -00835         return olderr;
    -00836 }
    +References error.
    00824 {
    +00825         long olderr = this->error;
    +00826         this->error = 0;
    +00827         return olderr;
    +00828 }
     

    @@ -449,23 +449,23 @@ Retrieves a boolean value from the config file.

    This method retrieves a boolean value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. The values "1", "yes" and "true" in the config file count as true to ReadFlag, and any other value counts as false.

    -Definition at line 785 of file modules.cpp. -

    -References cache, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf().

    00786 {
    -00787         char val[MAXBUF];
    -00788         char t[MAXBUF];
    -00789         char n[MAXBUF];
    -00790         strlcpy(t,tag.c_str(),MAXBUF);
    -00791         strlcpy(n,name.c_str(),MAXBUF);
    -00792         int res = Config->ReadConf(cache,t,n,index,val);
    -00793         if (!res)
    -00794         {
    -00795                 this->error = CONF_VALUE_NOT_FOUND;
    -00796                 return false;
    -00797         }
    -00798         std::string s = val;
    -00799         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
    -00800 }
    +Definition at line 777 of file modules.cpp.
    +

    +References cache, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf().

    00778 {
    +00779         char val[MAXBUF];
    +00780         char t[MAXBUF];
    +00781         char n[MAXBUF];
    +00782         strlcpy(t,tag.c_str(),MAXBUF);
    +00783         strlcpy(n,name.c_str(),MAXBUF);
    +00784         int res = Config->ReadConf(cache,t,n,index,val);
    +00785         if (!res)
    +00786         {
    +00787                 this->error = CONF_VALUE_NOT_FOUND;
    +00788                 return false;
    +00789         }
    +00790         std::string s = val;
    +00791         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
    +00792 }
     

    @@ -521,35 +521,35 @@ Retrieves an integer value from the config file.

    This method retrieves an integer value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve. Any invalid integer values in the tag will cause the objects error value to be set, and any call to GetError() will return CONF_INVALID_NUMBER to be returned. needs_unsigned is set if the number must be unsigned. If a signed number is placed into a tag which is specified unsigned, 0 will be returned and GetError() will return CONF_NOT_UNSIGNED

    -Definition at line 802 of file modules.cpp. -

    -References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf().

    00803 {
    -00804         char val[MAXBUF];
    -00805         char t[MAXBUF];
    -00806         char n[MAXBUF];
    -00807         strlcpy(t,tag.c_str(),MAXBUF);
    -00808         strlcpy(n,name.c_str(),MAXBUF);
    -00809         int res = Config->ReadConf(cache,t,n,index,val);
    -00810         if (!res)
    -00811         {
    -00812                 this->error = CONF_VALUE_NOT_FOUND;
    -00813                 return 0;
    +Definition at line 794 of file modules.cpp.
    +

    +References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf().

    00795 {
    +00796         char val[MAXBUF];
    +00797         char t[MAXBUF];
    +00798         char n[MAXBUF];
    +00799         strlcpy(t,tag.c_str(),MAXBUF);
    +00800         strlcpy(n,name.c_str(),MAXBUF);
    +00801         int res = Config->ReadConf(cache,t,n,index,val);
    +00802         if (!res)
    +00803         {
    +00804                 this->error = CONF_VALUE_NOT_FOUND;
    +00805                 return 0;
    +00806         }
    +00807         for (unsigned int i = 0; i < strlen(val); i++)
    +00808         {
    +00809                 if (!isdigit(val[i]))
    +00810                 {
    +00811                         this->error = CONF_NOT_A_NUMBER;
    +00812                         return 0;
    +00813                 }
     00814         }
    -00815         for (unsigned int i = 0; i < strlen(val); i++)
    +00815         if ((needs_unsigned) && (atoi(val)<0))
     00816         {
    -00817                 if (!isdigit(val[i]))
    -00818                 {
    -00819                         this->error = CONF_NOT_A_NUMBER;
    -00820                         return 0;
    -00821                 }
    -00822         }
    -00823         if ((needs_unsigned) && (atoi(val)<0))
    -00824         {
    -00825                 this->error = CONF_NOT_UNSIGNED;
    -00826                 return 0;
    -00827         }
    -00828         return atoi(val);
    -00829 }
    +00817                 this->error = CONF_NOT_UNSIGNED;
    +00818                 return 0;
    +00819         }
    +00820         return atoi(val);
    +00821 }
     

    @@ -599,22 +599,22 @@ Retrieves a value from the config file.

    This method retrieves a value from the config file. Where multiple copies of the tag exist in the config file, index indicates which of the values to retrieve.

    -Definition at line 769 of file modules.cpp. -

    -References cache, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf().

    00770 {
    -00771         char val[MAXBUF];
    -00772         char t[MAXBUF];
    -00773         char n[MAXBUF];
    -00774         strlcpy(t,tag.c_str(),MAXBUF);
    -00775         strlcpy(n,name.c_str(),MAXBUF);
    -00776         int res = Config->ReadConf(cache,t,n,index,val);
    -00777         if (!res)
    -00778         {
    -00779                 this->error = CONF_VALUE_NOT_FOUND;
    -00780                 return "";
    -00781         }
    -00782         return val;
    -00783 }
    +Definition at line 761 of file modules.cpp.
    +

    +References cache, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf().

    00762 {
    +00763         char val[MAXBUF];
    +00764         char t[MAXBUF];
    +00765         char n[MAXBUF];
    +00766         strlcpy(t,tag.c_str(),MAXBUF);
    +00767         strlcpy(n,name.c_str(),MAXBUF);
    +00768         int res = Config->ReadConf(cache,t,n,index,val);
    +00769         if (!res)
    +00770         {
    +00771                 this->error = CONF_VALUE_NOT_FOUND;
    +00772                 return "";
    +00773         }
    +00774         return val;
    +00775 }
     

    @@ -648,11 +648,11 @@ Returns true if a config file is valid.

    This method is partially implemented and will only return false if the config file does not exist or could not be opened.

    -Definition at line 881 of file modules.cpp. +Definition at line 873 of file modules.cpp.

    -References readerror.

    00882 {
    -00883         return this->readerror;
    -00884 }
    +References readerror.
    00874 {
    +00875         return this->readerror;
    +00876 }
     

    @@ -685,7 +685,7 @@ It will contain a pointer to the configuration file data with unneeded data (suc

    Definition at line 1537 of file modules.h.

    -Referenced by ConfigReader(), Enumerate(), EnumerateValues(), ReadFlag(), ReadInteger(), ReadValue(), and ~ConfigReader(). +Referenced by ConfigReader(), Enumerate(), EnumerateValues(), ReadFlag(), ReadInteger(), ReadValue(), and ~ConfigReader().

    @@ -712,7 +712,7 @@ Referenced by ConfigReader(

    Definition at line 1542 of file modules.h.

    -Referenced by ConfigReader(), GetError(), ReadFlag(), ReadInteger(), and ReadValue(). +Referenced by ConfigReader(), GetError(), ReadFlag(), ReadInteger(), and ReadValue().

    @@ -739,7 +739,7 @@ Referenced by ConfigReader(

    Definition at line 1538 of file modules.h.

    -Referenced by ConfigReader(), DumpErrors(), and ~ConfigReader(). +Referenced by ConfigReader(), DumpErrors(), and ~ConfigReader().

    @@ -768,12 +768,12 @@ Used to store errors.

    Definition at line 1541 of file modules.h.

    -Referenced by ConfigReader(), and Verify(). +Referenced by ConfigReader(), and Verify().


    The documentation for this class was generated from the following files: -
    Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index 8526cd42f..fd25f56cd 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -19,7 +19,7 @@ thresholdConnectClass typeConnectClass ~classbase()classbase [inline] -
    Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index eca316bed..a10520294 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -363,7 +363,7 @@ Definition at line 53 of fi
    The documentation for this class was generated from the following file: -
    Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classDNS-members.html b/docs/module-doc/classDNS-members.html index a42729e56..efde00a13 100644 --- a/docs/module-doc/classDNS-members.html +++ b/docs/module-doc/classDNS-members.html @@ -36,7 +36,7 @@ SetNS(std::string dnsserver)DNS tDNS [private] ~DNS()DNS -
    Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classDNS.html b/docs/module-doc/classDNS.html index 8e6422155..18811cb34 100644 --- a/docs/module-doc/classDNS.html +++ b/docs/module-doc/classDNS.html @@ -961,7 +961,7 @@ Definition at line 41 of file
    The documentation for this class was generated from the following file: -
    Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classELine-members.html b/docs/module-doc/classELine-members.html index 059ffbd77..bfb550091 100644 --- a/docs/module-doc/classELine-members.html +++ b/docs/module-doc/classELine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
    Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classELine.html b/docs/module-doc/classELine.html index 0e6a9d2bb..dd3975c00 100644 --- a/docs/module-doc/classELine.html +++ b/docs/module-doc/classELine.html @@ -59,7 +59,7 @@ Definition at line 93 of fi
    The documentation for this class was generated from the following file: -
    Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classEvent-members.html b/docs/module-doc/classEvent-members.html index 38fa1817c..e23790a4c 100644 --- a/docs/module-doc/classEvent-members.html +++ b/docs/module-doc/classEvent-members.html @@ -18,7 +18,7 @@ sourceEvent [protected] ~classbase()classbase [inline] ~ModuleMessage()ModuleMessage [inline, virtual] -
    Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classEvent.html b/docs/module-doc/classEvent.html index 345726b9e..a7c7ae246 100644 --- a/docs/module-doc/classEvent.html +++ b/docs/module-doc/classEvent.html @@ -102,7 +102,7 @@ Create a new Event.

    -Definition at line 202 of file modules.cpp.

    00202 : data(anydata), source(src), id(eventid) { };
    +Definition at line 194 of file modules.cpp.
    00194 : data(anydata), source(src), id(eventid) { };
     

    @@ -137,11 +137,11 @@ Get the Event data.

    -Definition at line 204 of file modules.cpp. +Definition at line 196 of file modules.cpp.

    -References data.

    00205 {
    -00206         return this->data;
    -00207 }
    +References data.
    00197 {
    +00198         return this->data;
    +00199 }
     

    @@ -175,11 +175,11 @@ Get the event ID.

    Use this to determine the event type for safe casting of the data

    -Definition at line 220 of file modules.cpp. +Definition at line 212 of file modules.cpp.

    -References id.

    00221 {
    -00222         return this->id;
    -00223 }
    +References id.
    00213 {
    +00214         return this->id;
    +00215 }
     

    @@ -213,11 +213,11 @@ Get the event Source.

    -Definition at line 209 of file modules.cpp. +Definition at line 201 of file modules.cpp.

    -References source.

    00210 {
    -00211         return this->source;
    -00212 }
    +References source.
    00202 {
    +00203         return this->source;
    +00204 }
     

    @@ -253,12 +253,12 @@ The return result of an Event::S

    Implements ModuleMessage.

    -Definition at line 214 of file modules.cpp. +Definition at line 206 of file modules.cpp.

    -References FOREACH_MOD.

    00215 {
    -00216         FOREACH_MOD OnEvent(this);
    -00217         return NULL;
    -00218 }
    +References FOREACH_MOD.
    00207 {
    +00208         FOREACH_MOD OnEvent(this);
    +00209         return NULL;
    +00210 }
     

    @@ -291,7 +291,7 @@ This member holds a pointer to arbitary data set by the emitter of the message.

    Definition at line 202 of file modules.h.

    -Referenced by GetData(). +Referenced by GetData().

    @@ -320,7 +320,7 @@ This is arbitary text which should be used to distinguish one type of event from

    Definition at line 211 of file modules.h.

    -Referenced by GetEventID(). +Referenced by GetEventID().

    @@ -349,12 +349,12 @@ This is a pointer to the sender of the message, which can be used to directly tr

    Definition at line 206 of file modules.h.

    -Referenced by GetSource(). +Referenced by GetSource().


    The documentation for this class was generated from the following files: -
    Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index 19c71af5a..e84efb986 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
    Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index 7e9604702..8f2f1172d 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -28,9 +28,9 @@ A subclass of HostItem designed to h

    -Definition at line 60 of file channels.h.


    The documentation for this class was generated from the following file:
      +Definition at line 62 of file channels.h.
      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classExtMode-members.html b/docs/module-doc/classExtMode-members.html index 256a367de..b93cebf62 100644 --- a/docs/module-doc/classExtMode-members.html +++ b/docs/module-doc/classExtMode-members.html @@ -16,7 +16,7 @@ params_when_onExtMode typeExtMode ~classbase()classbase [inline] -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index b884de563..a270f0099 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -258,7 +258,7 @@ Definition at line 240 of
      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classExtensible-members.html b/docs/module-doc/classExtensible-members.html index 605569d09..89894749f 100644 --- a/docs/module-doc/classExtensible-members.html +++ b/docs/module-doc/classExtensible-members.html @@ -14,7 +14,7 @@ GetExtList(std::deque< std::string > &list)Extensible Shrink(std::string key)Extensible ~classbase()classbase [inline] -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index 981e24c9d..8b4cc47e6 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -236,7 +236,7 @@ Definition at line 55 of fil
      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index 59000b532..92dd85ddd 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -17,7 +17,7 @@ LoadFile(std::string filename)FileReader ~classbase()classbase [inline] ~FileReader()FileReader -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index 68ee50110..a0eff7f08 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -43,7 +43,7 @@ Inheritance diagram for FileReader:

       Returns the size of the file in lines.

      Private Attributes

      -file_cache fc +file_cache fc

      Detailed Description

      @@ -82,8 +82,8 @@ Default constructor.

      This method does not load any file into memory, you must use the LoadFile method after constructing the class this way.

      -Definition at line 894 of file modules.cpp.

      00895 {
      -00896 }
      +Definition at line 886 of file modules.cpp.
      00887 {
      +00888 }
       

      @@ -118,13 +118,13 @@ Secondary constructor.

      This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, FileReader::FileSize returns 0.

      -Definition at line 887 of file modules.cpp. +Definition at line 879 of file modules.cpp.

      -References fc.

      00888 {
      -00889         file_cache c;
      -00890         readfile(c,filename.c_str());
      -00891         this->fc = c;
      -00892 }
      +References fc, and readfile().
      00880 {
      +00881         file_cache c;
      +00882         readfile(c,filename.c_str());
      +00883         this->fc = c;
      +00884 }
       

      @@ -158,8 +158,8 @@ Default destructor.

      This deletes the memory allocated to the file.

      -Definition at line 906 of file modules.cpp.

      00907 {
      -00908 }
      +Definition at line 898 of file modules.cpp.
      00899 {
      +00900 }
       

      @@ -194,18 +194,18 @@ Returns true if the file exists This function will return false if the file coul

      -Definition at line 910 of file modules.cpp. -

      -References fc.

      00911 {
      -00912         if (fc.size() == 0)
      -00913         {
      -00914                 return(false);
      -00915         }
      -00916         else
      -00917         {
      -00918                 return(true);
      -00919         }
      -00920 }
      +Definition at line 902 of file modules.cpp.
      +

      +References fc.

      00903 {
      +00904         if (fc.size() == 0)
      +00905         {
      +00906                 return(false);
      +00907         }
      +00908         else
      +00909         {
      +00910                 return(true);
      +00911         }
      +00912 }
       

      @@ -239,11 +239,11 @@ Returns the size of the file in lines.

      This method returns the number of lines in the read file. If it is 0, no lines have been read into memory, either because the file is empty or it does not exist, or cannot be opened due to permission problems.

      -Definition at line 929 of file modules.cpp. +Definition at line 921 of file modules.cpp.

      -References fc.

      00930 {
      -00931         return fc.size();
      -00932 }
      +References fc.
      00922 {
      +00923         return fc.size();
      +00924 }
       

      @@ -278,13 +278,13 @@ Retrieve one line from the file.

      This method retrieves one line from the text file. If an empty non-NULL string is returned, the index was out of bounds, or the line had no data on it.

      -Definition at line 922 of file modules.cpp. +Definition at line 914 of file modules.cpp.

      -References fc.

      00923 {
      -00924         if ((x<0) || ((unsigned)x>fc.size()))
      -00925                 return "";
      -00926         return fc[x];
      -00927 }
      +References fc.
      00915 {
      +00916         if ((x<0) || ((unsigned)x>fc.size()))
      +00917                 return "";
      +00918         return fc[x];
      +00919 }
       

      @@ -319,13 +319,13 @@ Used to load a file.

      This method loads a file into the class ready for GetLine and and other methods to be called. If the file could not be loaded, FileReader::FileSize returns 0.

      -Definition at line 898 of file modules.cpp. +Definition at line 890 of file modules.cpp.

      -References fc.

      00899 {
      -00900         file_cache c;
      -00901         readfile(c,filename.c_str());
      -00902         this->fc = c;
      -00903 }
      +References fc, and readfile().
      00891 {
      +00892         file_cache c;
      +00893         readfile(c,filename.c_str());
      +00894         this->fc = c;
      +00895 }
       

      @@ -338,7 +338,7 @@ References fc.

      - +
      file_cache FileReader::fc [private] file_cache FileReader::fc [private]
      @@ -356,12 +356,12 @@ References fc.
      Definition at line 1620 of file modules.h.

      -Referenced by Exists(), FileReader(), FileSize(), GetLine(), and LoadFile(). +Referenced by Exists(), FileReader(), FileSize(), GetLine(), and LoadFile().


      The documentation for this class was generated from the following files: -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classGLine-members.html b/docs/module-doc/classGLine-members.html index 43c9572d7..19fa8dab8 100644 --- a/docs/module-doc/classGLine-members.html +++ b/docs/module-doc/classGLine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index dbc12a0c4..27a583304 100644 --- a/docs/module-doc/classGLine.html +++ b/docs/module-doc/classGLine.html @@ -62,7 +62,7 @@ Definition at line 84 of fi
      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index 0c1672c7b..074136932 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index 068f139c1..571b45330 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -43,7 +43,7 @@ This class contains a single element in a channel list, such as a banlist.

      -Definition at line 36 of file channels.h.


      Constructor & Destructor Documentation

      +Definition at line 38 of file channels.h.

      Constructor & Destructor Documentation

      @@ -70,7 +70,7 @@ Definition at line 36 of

      -Definition at line 43 of file channels.h.

      00043 { /* stub */ }
      +Definition at line 45 of file channels.h.
      00045 { /* stub */ }
       

      @@ -102,7 +102,7 @@ Definition at line 43 of

      -Definition at line 44 of file channels.h.

      00044 { /* stub */ }
      +Definition at line 46 of file channels.h.
      00046 { /* stub */ }
       

      @@ -131,7 +131,7 @@ Definition at line 44 of

      -Definition at line 41 of file channels.h. +Definition at line 43 of file channels.h.

      @@ -156,7 +156,7 @@ Definition at line 41 of

      -Definition at line 40 of file channels.h. +Definition at line 42 of file channels.h.

      @@ -181,12 +181,12 @@ Definition at line 40 of

      -Definition at line 39 of file channels.h. +Definition at line 41 of file channels.h.


      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classInspIRCd-members.html b/docs/module-doc/classInspIRCd-members.html new file mode 100644 index 000000000..876bc4066 --- /dev/null +++ b/docs/module-doc/classInspIRCd-members.html @@ -0,0 +1,20 @@ + + +InspIRCd: Member List + + + + +

      InspIRCd Member List

      This is the complete list of members for InspIRCd, including all inherited members.

      + + + + + + + +
      erase_factory(int j)InspIRCd [private]
      erase_module(int j)InspIRCd [private]
      InspIRCd(int argc, char **argv)InspIRCd
      LoadModule(const char *filename)InspIRCd
      Run()InspIRCd
      startup_timeInspIRCd
      UnloadModule(const char *filename)InspIRCd


      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
      + + diff --git a/docs/module-doc/classInspIRCd.html b/docs/module-doc/classInspIRCd.html new file mode 100644 index 000000000..227dd7f1b --- /dev/null +++ b/docs/module-doc/classInspIRCd.html @@ -0,0 +1,246 @@ + + +InspIRCd: InspIRCd Class Reference + + + + +

      InspIRCd Class Reference

      #include <inspircd.h> +

      +Collaboration diagram for InspIRCd:

      Collaboration graph
      +
      [legend]
      List of all members. + + + + + + + + + + + + + + + + + + +

      Public Member Functions

      bool LoadModule (const char *filename)
      bool UnloadModule (const char *filename)
       InspIRCd (int argc, char **argv)
      int Run ()

      Public Attributes

      time_t startup_time

      Private Member Functions

      void erase_factory (int j)
      void erase_module (int j)
      +

      Detailed Description

      + +

      + +

      +Definition at line 95 of file inspircd.h.


      Constructor & Destructor Documentation

      +

      + + + + +
      + + + + + + + + + + + + + + + + + + +
      InspIRCd::InspIRCd int  argc,
      char **  argv
      +
      + + + + + +
      +   + + +

      +

      +


      Member Function Documentation

      +

      + + + + +
      + + + + + + + + + +
      void InspIRCd::erase_factory int  j  )  [private]
      +
      + + + + + +
      +   + + +

      +

      +

      + + + + +
      + + + + + + + + + +
      void InspIRCd::erase_module int  j  )  [private]
      +
      + + + + + +
      +   + + +

      +

      +

      + + + + +
      + + + + + + + + + +
      bool InspIRCd::LoadModule const char *  filename  ) 
      +
      + + + + + +
      +   + + +

      +

      +

      + + + + +
      + + + + + + + + +
      int InspIRCd::Run  ) 
      +
      + + + + + +
      +   + + +

      +

      +

      + + + + +
      + + + + + + + + + +
      bool InspIRCd::UnloadModule const char *  filename  ) 
      +
      + + + + + +
      +   + + +

      +

      +


      Member Data Documentation

      +

      + + + + +
      + + + + +
      time_t InspIRCd::startup_time
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 103 of file inspircd.h.

      +


      The documentation for this class was generated from the following file: +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
      + + diff --git a/docs/module-doc/classInspIRCd__coll__graph.gif b/docs/module-doc/classInspIRCd__coll__graph.gif new file mode 100644 index 000000000..43cef99ee Binary files /dev/null and b/docs/module-doc/classInspIRCd__coll__graph.gif differ diff --git a/docs/module-doc/classInspIRCd__coll__graph.map b/docs/module-doc/classInspIRCd__coll__graph.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/classInspIRCd__coll__graph.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/classInspIRCd__coll__graph.md5 b/docs/module-doc/classInspIRCd__coll__graph.md5 new file mode 100644 index 000000000..a144ffcc9 --- /dev/null +++ b/docs/module-doc/classInspIRCd__coll__graph.md5 @@ -0,0 +1 @@ +b3dafd7c4d84a4bd0d14f723f37928d7 \ No newline at end of file diff --git a/docs/module-doc/classInspSocket-members.html b/docs/module-doc/classInspSocket-members.html index 16d215b62..4636f9f16 100644 --- a/docs/module-doc/classInspSocket-members.html +++ b/docs/module-doc/classInspSocket-members.html @@ -39,7 +39,7 @@ timeout_endInspSocket [private] Write(std::string data)InspSocket [virtual] ~InspSocket()InspSocket [virtual] -
      Generated on Wed Dec 14 15:55:49 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classInspSocket.html b/docs/module-doc/classInspSocket.html index 7118cc2c1..17e451bec 100644 --- a/docs/module-doc/classInspSocket.html +++ b/docs/module-doc/classInspSocket.html @@ -273,25 +273,25 @@ This constructor is used to create a new socket, either listening for connection

      Definition at line 62 of file socket.cpp.

      -References SocketEngine::AddFd(), addr, addy, BindSocket(), Close(), DEBUG, fd, I_CONNECTING, I_ERR_BIND, I_ERR_CONNECT, I_ERR_SOCKET, I_ERROR, I_LISTENING, IP, OnError(), OpenTCPSocket(), state, timeout, timeout_end, and X_ESTAB_MODULE.

      00063 {
      +References SocketEngine::AddFd(), addr, addy, BindSocket(), Close(), DEBUG, ERROR, fd, I_CONNECTING, I_ERR_BIND, I_ERR_CONNECT, I_ERR_SOCKET, I_ERROR, I_LISTENING, IP, log(), OnError(), OpenTCPSocket(), state, timeout, timeout_end, and X_ESTAB_MODULE.
      00063 {
       00064         if (listening) {
      -00065                 if ((this->fd = OpenTCPSocket()) == ERROR)
      +00065                 if ((this->fd = OpenTCPSocket()) == ERROR)
       00066                 {
       00067                         this->fd = -1;
       00068                         this->state = I_ERROR;
       00069                         this->OnError(I_ERR_SOCKET);
      -00070                         log(DEBUG,"OpenTCPSocket() error");
      +00070                         log(DEBUG,"OpenTCPSocket() error");
       00071                         return;
       00072                 }
       00073                 else
       00074                 {
      -00075                         if (BindSocket(this->fd,this->client,this->server,port,(char*)host.c_str()) == ERROR)
      +00075                         if (BindSocket(this->fd,this->client,this->server,port,(char*)host.c_str()) == ERROR)
       00076                         {
       00077                                 this->Close();
       00078                                 this->fd = -1;
       00079                                 this->state = I_ERROR;
       00080                                 this->OnError(I_ERR_BIND);
      -00081                                 log(DEBUG,"BindSocket() error %s",strerror(errno));
      +00081                                 log(DEBUG,"BindSocket() error %s",strerror(errno));
       00082                                 return;
       00083                         }
       00084                         else
      @@ -299,7 +299,7 @@ References SocketEngin
       00086                                 this->state = I_LISTENING;
       00087                                 SE->AddFd(this->fd,true,X_ESTAB_MODULE);
       00088                                 socket_ref[this->fd] = this;
      -00089                                 log(DEBUG,"New socket now in I_LISTENING state");
      +00089                                 log(DEBUG,"New socket now in I_LISTENING state");
       00090                                 return;
       00091                         }
       00092                 }                       
      @@ -919,7 +919,7 @@ Reads all pending bytes from the socket into a char* array which can be up to 16
       

      Definition at line 158 of file socket.cpp.

      -References DEBUG, and ibuf.

      00159 {
      +References DEBUG, ibuf, and log().
      00159 {
       00160         int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0);
       00161         if (n > 0)
       00162         {
      @@ -928,7 +928,7 @@ References DEBUG, an
       00165         }
       00166         else
       00167         {
      -00168                 log(DEBUG,"EOF or error on socket");
      +00168                 log(DEBUG,"EOF or error on socket");
       00169                 return NULL;
       00170         }
       00171 }
      @@ -968,10 +968,10 @@ The core uses this to change socket states, and you should not call it directly.
       

      Definition at line 248 of file socket.cpp.

      -References DEBUG, and state. +References DEBUG, log(), and state.

      Referenced by Poll().

      00249 {
      -00250         log(DEBUG,"Socket state change");
      +00250         log(DEBUG,"Socket state change");
       00251         this->state = s;
       00252 }
       
      @@ -1465,7 +1465,7 @@ Referenced by InspSocket()
      The documentation for this class was generated from the following files:
      -
      Generated on Wed Dec 14 15:55:49 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index 2baba93c3..e9103c7a6 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -14,7 +14,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
      Generated on Wed Dec 14 15:55:49 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index ffdb356d1..37047e6ea 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -28,9 +28,9 @@ A subclass of HostItem designed to h

      -Definition at line 68 of file channels.h.


      The documentation for this class was generated from the following file:
        +Definition at line 70 of file channels.h.
        The documentation for this class was generated from the following file: -
        Generated on Wed Dec 14 15:55:49 2005 for InspIRCd by  +
        Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
        diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index a96f81b00..0c8bc01f9 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -10,7 +10,7 @@ channelInvited classbase()classbase [inline] ~classbase()classbase [inline] -
        Generated on Wed Dec 14 15:55:49 2005 for InspIRCd by  +
        Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
        diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index 311975774..9e1c20016 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -59,7 +59,7 @@ Referenced by userrec::Invite
        The documentation for this class was generated from the following file:
        -
        Generated on Wed Dec 14 15:55:49 2005 for InspIRCd by  +
        Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
        diff --git a/docs/module-doc/classKLine-members.html b/docs/module-doc/classKLine-members.html index 81ea4c30e..0e58ade78 100644 --- a/docs/module-doc/classKLine-members.html +++ b/docs/module-doc/classKLine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
        Generated on Wed Dec 14 15:55:49 2005 for InspIRCd by  +
        Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
        diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index 967be95a3..17fa151f0 100644 --- a/docs/module-doc/classKLine.html +++ b/docs/module-doc/classKLine.html @@ -62,7 +62,7 @@ Definition at line 73 of fi
        The documentation for this class was generated from the following file: -
        Generated on Wed Dec 14 15:55:49 2005 for InspIRCd by  +
        Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
        diff --git a/docs/module-doc/classModeParameter-members.html b/docs/module-doc/classModeParameter-members.html index 83b9cd56f..67ec13862 100644 --- a/docs/module-doc/classModeParameter-members.html +++ b/docs/module-doc/classModeParameter-members.html @@ -12,7 +12,7 @@ modeModeParameter parameterModeParameter ~classbase()classbase [inline] -
        Generated on Wed Dec 14 15:55:49 2005 for InspIRCd by  +
        Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
        diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index 1504087e2..1a7c0e835 100644 --- a/docs/module-doc/classModeParameter.html +++ b/docs/module-doc/classModeParameter.html @@ -35,7 +35,7 @@ for +L this would hold the channel name.

        -Definition at line 77 of file channels.h.


        Member Data Documentation

        +Definition at line 79 of file channels.h.

        Member Data Documentation

        @@ -58,9 +58,9 @@ Definition at line 77 of

        -Definition at line 82 of file channels.h. +Definition at line 84 of file channels.h.

        -Referenced by chanrec::SetCustomModeParam(). +Referenced by chanrec::SetCustomModeParam().

        @@ -85,9 +85,9 @@ Referenced by chanrec::Set

        -Definition at line 80 of file channels.h. +Definition at line 82 of file channels.h.

        -Referenced by chanrec::SetCustomModeParam(). +Referenced by chanrec::SetCustomModeParam().

        @@ -112,14 +112,14 @@ Referenced by chanrec::Set

        -Definition at line 81 of file channels.h. +Definition at line 83 of file channels.h.

        -Referenced by chanrec::SetCustomModeParam(). +Referenced by chanrec::SetCustomModeParam().


        The documentation for this class was generated from the following file: -
        Generated on Wed Dec 14 15:55:49 2005 for InspIRCd by  +
        Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
        diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index 6afedb7df..08dcca923 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -89,7 +89,7 @@ ProtoSendMode(void *opaque, int target_type, void *target, std::string modeline)Module [virtual] ~classbase()classbase [inline] ~Module()Module [virtual] -
        Generated on Wed Dec 14 15:55:50 2005 for InspIRCd by  +
        Generated on Wed Dec 14 19:16:27 2005 for InspIRCd by  doxygen 1.4.4-20050815
        diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index da8947364..07293e12f 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -5,7 +5,7 @@ -

        Module Class Reference

        Base class for all InspIRCd modules This class is the base class for InspIRCd modules. +

        Module Class Reference

        Base class for all InspIRCd modules This class is the base class for InspIRCd modules. More...

        #include <modules.h> @@ -261,7 +261,7 @@ Inheritance diagram for Module:

         Called immediately before any read() operation on a client socket in the core.

        Detailed Description

        -Base class for all InspIRCd modules This class is the base class for InspIRCd modules. +Base class for all InspIRCd modules This class is the base class for InspIRCd modules.

        All modules must inherit from this class, its methods will be called when irc server events occur. class inherited from module must be instantiated by the ModuleFactory class (see relevent section) for the plugin to be initialised.

        @@ -302,7 +302,7 @@ Default constructor Creates a module class.

        -Definition at line 228 of file modules.cpp.

        00228 { }
        +Definition at line 220 of file modules.cpp.
        00220 { }
         

        @@ -336,7 +336,7 @@ Default destructor destroys a module class.

        -Definition at line 229 of file modules.cpp.

        00229 { }
        +Definition at line 221 of file modules.cpp.
        00221 { }
         

        @@ -371,9 +371,9 @@ Returns the version number of a Module.

        The method should return a Version object with its version information assigned via Version::Version

        -Definition at line 240 of file modules.cpp. +Definition at line 232 of file modules.cpp.

        -References VF_VENDOR.

        00240 { return Version(1,0,0,0,VF_VENDOR); }
        +References VF_VENDOR.
        00232 { return Version(1,0,0,0,VF_VENDOR); }
         

        @@ -413,7 +413,7 @@ The module should modify the 005 numeric if needed to indicate its features.

        -Definition at line 250 of file modules.cpp.

        00250 { };
        +Definition at line 242 of file modules.cpp.
        00242 { };
         

        @@ -488,9 +488,9 @@ This function is called before many functions which check a users status on a ch

        -Definition at line 249 of file modules.cpp. +Definition at line 241 of file modules.cpp.

        -References ACR_DEFAULT.

        00249 { return ACR_DEFAULT; };
        +References ACR_DEFAULT.
        00241 { return ACR_DEFAULT; };
         

        @@ -548,7 +548,7 @@ Return a non-zero value to 'eat' the mode change and prevent the ban from being

        Returns:
        1 to block the ban, 0 to continue as normal

        -Definition at line 275 of file modules.cpp.

        00275 { return 0; };
        +Definition at line 267 of file modules.cpp.
        00267 { return 0; };
         

        @@ -612,7 +612,7 @@ This method is triggered after the line is added.

        Parameters:

        -Definition at line 301 of file modules.cpp.

        00301 { };
        +Definition at line 293 of file modules.cpp.
        00293 { };
         

        @@ -676,7 +676,7 @@ This method is triggered after the line is added.

        Parameters:

        -Definition at line 297 of file modules.cpp.

        00297 { };
        +Definition at line 289 of file modules.cpp.
        00289 { };
         

        @@ -740,7 +740,7 @@ This method is triggered after the line is added.

        Parameters:

        -Definition at line 299 of file modules.cpp.

        00299 { };
        +Definition at line 291 of file modules.cpp.
        00291 { };
         

        @@ -804,7 +804,7 @@ This method is triggered after the line is added.

        Parameters:

        -Definition at line 300 of file modules.cpp.

        00300 { };
        +Definition at line 292 of file modules.cpp.
        00292 { };
         

        @@ -868,7 +868,7 @@ This method is triggered after the line is added.

        Parameters:

        -Definition at line 298 of file modules.cpp.

        00298 { };
        +Definition at line 290 of file modules.cpp.
        00290 { };
         

        @@ -908,7 +908,7 @@ This timer can be used to control timed features. Its period is not accurate eno

        -Definition at line 254 of file modules.cpp.

        00254 { };
        +Definition at line 246 of file modules.cpp.
        00246 { };
         

        @@ -958,7 +958,7 @@ This event triggers after the host has been set.

        Parameters:<

        -Definition at line 295 of file modules.cpp.

        00295 { };
        +Definition at line 287 of file modules.cpp.
        00287 { };
         

        @@ -1009,7 +1009,7 @@ return 1 to deny the name change, or 0 to allow it.

        Parameter
        Returns:
        1 to deny the GECOS change, 0 to allow

        -Definition at line 268 of file modules.cpp.

        00268 { return 0; };
        +Definition at line 260 of file modules.cpp.
        00260 { return 0; };
         

        @@ -1060,7 +1060,7 @@ Return 1 to deny the host change, or 0 to allow it.

        Parameter
        Returns:
        1 to deny the host change, 0 to allow

        -Definition at line 267 of file modules.cpp.

        00267 { return 0; };
        +Definition at line 259 of file modules.cpp.
        00259 { return 0; };
         

        @@ -1110,7 +1110,7 @@ This event triggers after the name has been set.

        Parameters:<

        -Definition at line 296 of file modules.cpp.

        00296 { };
        +Definition at line 288 of file modules.cpp.
        00288 { };
         

        @@ -1161,7 +1161,7 @@ This method will always be called for each join, wether or not the user actually

        Returns:
        1 to explicitly allow the join, 0 to proceed as normal

        -Definition at line 265 of file modules.cpp.

        00265 { return 0; };
        +Definition at line 257 of file modules.cpp.
        00257 { return 0; };
         

        @@ -1212,7 +1212,7 @@ This method will always be called for each join, wether or not the channel is ac

        Returns:
        1 to explicitly allow the join, 0 to proceed as normal

        -Definition at line 262 of file modules.cpp.

        00262 { return 0; };
        +Definition at line 254 of file modules.cpp.
        00254 { return 0; };
         

        @@ -1269,7 +1269,7 @@ This method will always be called for each join, wether or not the channel is ac

        Returns:
        1 to explicitly allow the join, 0 to proceed as normal

        -Definition at line 263 of file modules.cpp.

        00263 { return 0; };
        +Definition at line 255 of file modules.cpp.
        00255 { return 0; };
         

        @@ -1320,7 +1320,7 @@ This method will always be called for each join, wether or not the channel is ac

        Returns:
        1 to explicitly allow the join, 0 to proceed as normal

        -Definition at line 264 of file modules.cpp.

        00264 { return 0; };
        +Definition at line 256 of file modules.cpp.
        00256 { return 0; };
         

        @@ -1361,7 +1361,7 @@ For example a module which implements ident lookups will continue to return fals

        Returns:
        true to indicate readiness, false if otherwise

        -Definition at line 257 of file modules.cpp.

        00257 { return true; };
        +Definition at line 249 of file modules.cpp.
        00249 { return true; };
         

        @@ -1411,7 +1411,7 @@ This method is called once for every user and channel on the network, so that wh

        -Definition at line 307 of file modules.cpp.

        00307 { };
        +Definition at line 299 of file modules.cpp.
        00299 { };
         

        @@ -1475,7 +1475,7 @@ Please see src/modules/m_swhois.cpp for a working example of how to use this met

        -Definition at line 292 of file modules.cpp.

        00292 { };
        +Definition at line 284 of file modules.cpp.
        00284 { };
         

        @@ -1533,7 +1533,7 @@ Return a non-zero value to 'eat' the mode change and prevent the ban from being

        Returns:
        1 to block the unban, 0 to continue as normal

        -Definition at line 276 of file modules.cpp.

        00276 { return 0; };
        +Definition at line 268 of file modules.cpp.
        00268 { return 0; };
         

        @@ -1583,7 +1583,7 @@ This method is triggered after the line is deleted.

        Parameter

        -Definition at line 306 of file modules.cpp.

        00306 { };
        +Definition at line 298 of file modules.cpp.
        00298 { };
         

        @@ -1633,7 +1633,7 @@ This method is triggered after the line is deleted.

        Parameter

        -Definition at line 302 of file modules.cpp.

        00302 { };
        +Definition at line 294 of file modules.cpp.
        00294 { };
         

        @@ -1683,7 +1683,7 @@ This method is triggered after the line is deleted.

        Parameter

        -Definition at line 304 of file modules.cpp.

        00304 { };
        +Definition at line 296 of file modules.cpp.
        00296 { };
         

        @@ -1733,7 +1733,7 @@ This method is triggered after the line is deleted.

        Parameter

        -Definition at line 305 of file modules.cpp.

        00305 { };
        +Definition at line 297 of file modules.cpp.
        00297 { };
         

        @@ -1783,7 +1783,7 @@ This method is triggered after the line is deleted.

        Parameter

        -Definition at line 303 of file modules.cpp.

        00303 { };
        +Definition at line 295 of file modules.cpp.
        00295 { };
         

        @@ -1823,7 +1823,7 @@ Please see the documentation of

        -Definition at line 270 of file modules.cpp.

        00270 { return; };
        +Definition at line 262 of file modules.cpp.
        00262 { return; };
         

        @@ -1901,7 +1901,7 @@ The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the

        -Definition at line 238 of file modules.cpp.

        00238 { return false; }
        +Definition at line 230 of file modules.cpp.
        00230 { return false; }
         

        @@ -1951,7 +1951,7 @@ You may change or define the description given in 286 of file modules.cpp.

        00286 { };
        +Definition at line 278 of file modules.cpp.
        00278 { };
         

        @@ -1991,7 +1991,7 @@ This event is informational only. You should not change any user information in

        -Definition at line 274 of file modules.cpp.

        00274 { };
        +Definition at line 266 of file modules.cpp.
        00266 { };
         

        @@ -2031,7 +2031,7 @@ You cannot override this and prevent it from happening as it is already happened

        -Definition at line 273 of file modules.cpp.

        00273 { };
        +Definition at line 265 of file modules.cpp.
        00265 { };
         

        @@ -2073,7 +2073,7 @@ The userrec will contain the information of the user who typed the command. Modu

        -Definition at line 242 of file modules.cpp.

        00242 { };
        +Definition at line 234 of file modules.cpp.
        00234 { };
         

        @@ -2131,7 +2131,7 @@ If a client is killed by a server, e.g. a nickname collision or protocol error,

        Returns:
        1 to prevent the kill, 0 to allow

        -Definition at line 251 of file modules.cpp.

        00251 { return 0; };
        +Definition at line 243 of file modules.cpp.
        00243 { return 0; };
         

        @@ -2181,7 +2181,7 @@ mod will contain a pointer to the module, and string will contain its name, for

        -Definition at line 252 of file modules.cpp.

        00252 { };
        +Definition at line 244 of file modules.cpp.
        00244 { };
         

        @@ -2239,7 +2239,7 @@ Return 1 to deny the topic change, or 0 to allow it.

        Paramete

        -Definition at line 269 of file modules.cpp.

        00269 { return 0; };
        +Definition at line 261 of file modules.cpp.
        00261 { return 0; };
         

        @@ -2303,7 +2303,7 @@ The text variable contains the remainder of the mode string after the target, e.

        -Definition at line 239 of file modules.cpp.

        00239 { };
        +Definition at line 231 of file modules.cpp.
        00231 { };
         

        @@ -2353,7 +2353,7 @@ The userrec will contain the oper mode 'o' as this function is called after any

        -Definition at line 241 of file modules.cpp.

        00241 { };
        +Definition at line 233 of file modules.cpp.
        00233 { };
         

        @@ -2404,7 +2404,7 @@ The password field (from the config file) is in 'password' and is to be compared

        Returns:
        1 to match the passwords, 0 to do nothing

        -Definition at line 272 of file modules.cpp.

        00272 { return 0; };
        +Definition at line 264 of file modules.cpp.
        00264 { return 0; };
         

        @@ -2461,7 +2461,7 @@ To block topic changes you must use OnLocalTopicChange instead.

        -Definition at line 285 of file modules.cpp.

        00285 { };
        +Definition at line 277 of file modules.cpp.
        00277 { };
         

        @@ -2526,7 +2526,7 @@ This event occurs for all registered commands, wether they are registered in the

        Returns:
        1 to block the command, 0 to allow

        -Definition at line 256 of file modules.cpp.

        00256 { return 0; };
        +Definition at line 248 of file modules.cpp.
        00248 { return 0; };
         

        @@ -2605,7 +2605,7 @@ Return 1 from this function to block the mode character from being processed ent

        Returns:
        1 to deny the mode, 0 to allow

        -Definition at line 261 of file modules.cpp.

        00261 { return 0; };
        +Definition at line 253 of file modules.cpp.
        00253 { return 0; };
         

        @@ -2662,7 +2662,7 @@ This is intended for raw socket processing (e.g. modules which wrap the tcp conn

        -Definition at line 277 of file modules.cpp.

        00277 { };
        +Definition at line 269 of file modules.cpp.
        00269 { };
         

        @@ -2702,7 +2702,7 @@ When this event is called, shutdown() has not yet been called on the socket.

        -Definition at line 279 of file modules.cpp.

        00279 { };
        +Definition at line 271 of file modules.cpp.
        00271 { };
         

        @@ -2767,7 +2767,7 @@ This occurs AFTER the select() or poll() so there is always data waiting to be r

        Returns:
        nonzero if the event was handled, in which case readresult must be valid on exit

        -Definition at line 280 of file modules.cpp.

        00280 { return 0; };
        +Definition at line 272 of file modules.cpp.
        00272 { return 0; };
         

        @@ -2825,7 +2825,7 @@ Because this event is a low level event no user information is associated with i

        Returns:
        Number of characters actually written or 0 if you didn't handle the operation

        -Definition at line 278 of file modules.cpp.

        00278 { return 0; };
        +Definition at line 270 of file modules.cpp.
        00270 { return 0; };
         

        @@ -2865,7 +2865,7 @@ This method is called prior to a /REHASH or when a SIGHUP is received from the o

        -Definition at line 235 of file modules.cpp.

        00235 { }
        +Definition at line 227 of file modules.cpp.
        00227 { }
         

        @@ -2922,7 +2922,7 @@ Called when an oper wants to disconnect a remote user via KILL.

        -Definition at line 283 of file modules.cpp.

        00283 { };
        +Definition at line 275 of file modules.cpp.
        00275 { };
         

        @@ -2962,9 +2962,9 @@ Please see the documentation of 271 of file modules.cpp. +Definition at line 263 of file modules.cpp.

        -Referenced by Request::Send().

        00271 { return NULL; };
        +Referenced by Request::Send().
        00263 { return NULL; };
         

        @@ -3021,7 +3021,7 @@ For example, when a /MODE channel +b (without any other parameters) is called, i

        -Definition at line 255 of file modules.cpp.

        00255 { };
        +Definition at line 247 of file modules.cpp.
        00247 { };
         

        @@ -3078,7 +3078,7 @@ This method is the lowest level of handler available to a module. It will be cal

        -Definition at line 236 of file modules.cpp.

        00236 { }
        +Definition at line 228 of file modules.cpp.
        00228 { }
         

        @@ -3118,7 +3118,7 @@ Called on all /STATS commands This method is triggered for all /STATS use, inclu

        -Definition at line 266 of file modules.cpp.

        00266 { };
        +Definition at line 258 of file modules.cpp.
        00258 { };
         

        @@ -3177,7 +3177,7 @@ For a good example of how to use this function, please see src/modules/m_chanpro

        -Definition at line 288 of file modules.cpp.

        00288 { };
        +Definition at line 280 of file modules.cpp.
        00280 { };
         

        @@ -3231,7 +3231,7 @@ Definition at line 288

        -Definition at line 290 of file modules.cpp.

        00290 { };
        +Definition at line 282 of file modules.cpp.
        00282 { };
         

        @@ -3288,7 +3288,7 @@ When this function is called, it will be called from the module which implements

        -Definition at line 287 of file modules.cpp.

        00287 { };
        +Definition at line 279 of file modules.cpp.
        00279 { };
         

        @@ -3342,7 +3342,7 @@ Definition at line 287

        -Definition at line 291 of file modules.cpp.

        00291 { };
        +Definition at line 283 of file modules.cpp.
        00283 { };
         

        @@ -3392,7 +3392,7 @@ mod will contain a pointer to the module, and string will contain its name, for

        -Definition at line 253 of file modules.cpp.

        00253 { };
        +Definition at line 245 of file modules.cpp.
        00245 { };
         

        @@ -3432,7 +3432,7 @@ The details of the connecting user are available to you in the parameter userrec

        -Definition at line 230 of file modules.cpp.

        00230 { }
        +Definition at line 222 of file modules.cpp.
        00222 { }
         

        @@ -3472,7 +3472,7 @@ The details of the exiting user are available to you in the parameter userrec *u

        -Definition at line 232 of file modules.cpp.

        00232 { }
        +Definition at line 224 of file modules.cpp.
        00224 { }
         

        @@ -3529,7 +3529,7 @@ You cannot prevent the invite from occuring using this function, to do that, use

        -Definition at line 284 of file modules.cpp.

        00284 { };
        +Definition at line 276 of file modules.cpp.
        00276 { };
         

        @@ -3579,7 +3579,7 @@ The details of the joining user are available to you in the parameter userrec *u

        -Definition at line 233 of file modules.cpp.

        00233 { }
        +Definition at line 225 of file modules.cpp.
        00225 { }
         

        @@ -3643,7 +3643,7 @@ If this method is called, the kick is already underway and cannot be prevented,

        -Definition at line 260 of file modules.cpp.

        00260 { };
        +Definition at line 252 of file modules.cpp.
        00252 { };
         

        @@ -3707,7 +3707,7 @@ The dest variable contains a userrec* if target_type is TYPE_USER and a chanrec*

        -Definition at line 281 of file modules.cpp.

        00281 { };
        +Definition at line 273 of file modules.cpp.
        00273 { };
         

        @@ -3771,7 +3771,7 @@ The dest variable contains a userrec* if target_type is TYPE_USER and a chanrec*

        -Definition at line 282 of file modules.cpp.

        00282 { };
        +Definition at line 274 of file modules.cpp.
        00274 { };
         

        @@ -3821,7 +3821,7 @@ The details of the leaving user are available to you in the parameter userrec *u

        -Definition at line 234 of file modules.cpp.

        00234 { }
        +Definition at line 226 of file modules.cpp.
        00226 { }
         

        @@ -3871,7 +3871,7 @@ This can be used to track users after nickchanges have been applied. Please note

        -Definition at line 248 of file modules.cpp.

        00248 { };
        +Definition at line 240 of file modules.cpp.
        00240 { };
         

        @@ -3929,7 +3929,7 @@ Returning 1 from this function stops the process immediately, causing no output

        Returns:
        1 to deny the invite, 0 to allow

        -Definition at line 244 of file modules.cpp.

        00244 { return 0; };
        +Definition at line 236 of file modules.cpp.
        00236 { return 0; };
         

        @@ -3988,7 +3988,7 @@ If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be

        Returns:
        1 To prevent the join, 0 to allow it.

        -Definition at line 237 of file modules.cpp.

        00237 { return 0; }
        +Definition at line 229 of file modules.cpp.
        00229 { return 0; }
         

        @@ -4053,7 +4053,7 @@ Returning a value of 1 from this function stops the process immediately, causing

        Returns:
        1 to prevent the kick, 0 to allow it

        -Definition at line 259 of file modules.cpp.

        00259 { return 0; };
        +Definition at line 251 of file modules.cpp.
        00251 { return 0; };
         

        @@ -4118,7 +4118,7 @@ Returning any nonzero value from this function stops the process immediately, ca

        Returns:
        1 to deny the NOTICE, 0 to allow it

        -Definition at line 245 of file modules.cpp.

        00245 { return 0; };
        +Definition at line 237 of file modules.cpp.
        00237 { return 0; };
         

        @@ -4169,7 +4169,7 @@ This can be used to implement Q-lines etc. Please note that although you can see

        Returns:
        1 to deny the change, 0 to allow

        -Definition at line 247 of file modules.cpp.

        00247 { return 0; };
        +Definition at line 239 of file modules.cpp.
        00239 { return 0; };
         

        @@ -4234,7 +4234,7 @@ Returning any nonzero value from this function stops the process immediately, ca

        Returns:
        1 to deny the NOTICE, 0 to allow it

        -Definition at line 246 of file modules.cpp.

        00246 { return 0; };
        +Definition at line 238 of file modules.cpp.
        00238 { return 0; };
         

        @@ -4284,7 +4284,7 @@ The details of the exiting user are available to you in the parameter userrec *u

        -Definition at line 231 of file modules.cpp.

        00231 { }
        +Definition at line 223 of file modules.cpp.
        00223 { }
         

        @@ -4324,7 +4324,7 @@ before the user is sent the MOTD etc). Modules can use this method if they are p

        -Definition at line 258 of file modules.cpp.

        00258 { };
        +Definition at line 250 of file modules.cpp.
        00250 { };
         

        @@ -4374,7 +4374,7 @@ Called after every WALLOPS command.

        -Definition at line 294 of file modules.cpp.

        00294 { };
        +Definition at line 286 of file modules.cpp.
        00286 { };
         

        @@ -4424,7 +4424,7 @@ The source parameter contains the details of the user who issued the WHOIS comma

        -Definition at line 243 of file modules.cpp.

        00243 { };
        +Definition at line 235 of file modules.cpp.
        00235 { };
         

        @@ -4496,7 +4496,7 @@ More documentation to follow soon. Please see src/modules/m_swhois.cpp for examp

        -Definition at line 293 of file modules.cpp.

        00293 { };
        +Definition at line 285 of file modules.cpp.
        00285 { };
         

        @@ -4562,7 +4562,7 @@ More documentation to follow soon. Please see src/modules/m_chanprotect.cpp for

        -Definition at line 289 of file modules.cpp.

        00289 { };
        +Definition at line 281 of file modules.cpp.
        00281 { };
         

        @@ -4570,7 +4570,7 @@ Definition at line 289


        The documentation for this class was generated from the following files: -
        Generated on Wed Dec 14 15:55:50 2005 for InspIRCd by  +
        Generated on Wed Dec 14 19:16:27 2005 for InspIRCd by  doxygen 1.4.4-20050815
        diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index 7525c56fc..afd2289f8 100644 --- a/docs/module-doc/classModuleFactory-members.html +++ b/docs/module-doc/classModuleFactory-members.html @@ -12,7 +12,7 @@ ModuleFactory()ModuleFactory [inline] ~classbase()classbase [inline] ~ModuleFactory()ModuleFactory [inline, virtual] -
        Generated on Wed Dec 14 15:55:50 2005 for InspIRCd by  +
        Generated on Wed Dec 14 19:16:27 2005 for InspIRCd by  doxygen 1.4.4-20050815
        diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index b85431e98..95f29051f 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -134,7 +134,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h
      -
      Generated on Wed Dec 14 15:55:50 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:27 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classModuleMessage-members.html b/docs/module-doc/classModuleMessage-members.html index c6b0fe1f9..78b120d70 100644 --- a/docs/module-doc/classModuleMessage-members.html +++ b/docs/module-doc/classModuleMessage-members.html @@ -11,7 +11,7 @@ Send()=0ModuleMessage [pure virtual] ~classbase()classbase [inline] ~ModuleMessage()ModuleMessage [inline, virtual] -
      Generated on Wed Dec 14 15:55:50 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:27 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classModuleMessage.html b/docs/module-doc/classModuleMessage.html index 314d2a5be..411534828 100644 --- a/docs/module-doc/classModuleMessage.html +++ b/docs/module-doc/classModuleMessage.html @@ -101,7 +101,7 @@ Implemented in Request, an
      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:50 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:27 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classQLine-members.html b/docs/module-doc/classQLine-members.html index 943dc5c4e..bbdcd1341 100644 --- a/docs/module-doc/classQLine-members.html +++ b/docs/module-doc/classQLine-members.html @@ -16,7 +16,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
      Generated on Wed Dec 14 15:55:50 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:27 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index e40dfe340..f867bb102 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -92,7 +92,7 @@ Definition at line 119 of f
      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:50 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:27 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classRequest-members.html b/docs/module-doc/classRequest-members.html index 9db0d82ad..e031e42ba 100644 --- a/docs/module-doc/classRequest-members.html +++ b/docs/module-doc/classRequest-members.html @@ -18,7 +18,7 @@ sourceRequest [protected] ~classbase()classbase [inline] ~ModuleMessage()ModuleMessage [inline, virtual] -
      Generated on Wed Dec 14 15:55:50 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:27 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classRequest.html b/docs/module-doc/classRequest.html index bab6382ae..2ccfadc1e 100644 --- a/docs/module-doc/classRequest.html +++ b/docs/module-doc/classRequest.html @@ -102,7 +102,7 @@ Create a new Request.

      -Definition at line 173 of file modules.cpp.

      00173 : data(anydata), source(src), dest(dst) { };
      +Definition at line 165 of file modules.cpp.
      00165 : data(anydata), source(src), dest(dst) { };
       

      @@ -137,11 +137,11 @@ Fetch the Request data.

      -Definition at line 175 of file modules.cpp. +Definition at line 167 of file modules.cpp.

      -References data.

      00176 {
      -00177         return this->data;
      -00178 }
      +References data.
      00168 {
      +00169         return this->data;
      +00170 }
       

      @@ -175,11 +175,11 @@ Fetch the request destination (should be 'this' in the receiving module).

      -Definition at line 185 of file modules.cpp. +Definition at line 177 of file modules.cpp.

      -References dest.

      00186 {
      -00187         return this->dest;
      -00188 }
      +References dest.
      00178 {
      +00179         return this->dest;
      +00180 }
       

      @@ -213,11 +213,11 @@ Fetch the request source.

      -Definition at line 180 of file modules.cpp. +Definition at line 172 of file modules.cpp.

      -References source.

      00181 {
      -00182         return this->source;
      -00183 }
      +References source.
      00173 {
      +00174         return this->source;
      +00175 }
       

      @@ -253,18 +253,18 @@ Upon returning the result will be arbitary data returned by the module you sent

      Implements ModuleMessage.

      -Definition at line 190 of file modules.cpp. -

      -References dest, and Module::OnRequest().

      00191 {
      -00192         if (this->dest)
      -00193         {
      -00194                 return dest->OnRequest(this);
      -00195         }
      -00196         else
      -00197         {
      -00198                 return NULL;
      -00199         }
      -00200 }
      +Definition at line 182 of file modules.cpp.
      +

      +References dest, and Module::OnRequest().

      00183 {
      +00184         if (this->dest)
      +00185         {
      +00186                 return dest->OnRequest(this);
      +00187         }
      +00188         else
      +00189         {
      +00190                 return NULL;
      +00191         }
      +00192 }
       

      @@ -297,7 +297,7 @@ This member holds a pointer to arbitary data set by the emitter of the message.

      Definition at line 162 of file modules.h.

      -Referenced by GetData(). +Referenced by GetData().

      @@ -326,7 +326,7 @@ The single destination of the Request.

      Definition at line 169 of file modules.h.

      -Referenced by GetDest(), and Send(). +Referenced by GetDest(), and Send().

      @@ -355,12 +355,12 @@ This is a pointer to the sender of the message, which can be used to directly tr

      Definition at line 166 of file modules.h.

      -Referenced by GetSource(). +Referenced by GetSource().


      The documentation for this class was generated from the following files: -
      Generated on Wed Dec 14 15:55:50 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:27 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index 20ed4fe2c..b099d44b0 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -68,7 +68,7 @@ UserToPseudo(userrec *user, std::string message)Server [virtual] ~classbase()classbase [inline] ~Server()Server [virtual] -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:27 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index 065d3386c..67c35d924 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -102,7 +102,7 @@ Inheritance diagram for Server:

      virtual bool AddExtendedListMode (char modechar)  Adds an extended mode letter which is parsed by a module and handled in a list fashion.
      -virtual void AddCommand (char *cmd, handlerfunc f, char flags, int minparams, char *source) +virtual void AddCommand (char *cmd, handlerfunc f, char flags, int minparams, char *source)  Adds a command to the command table.
      virtual void SendMode (char **parameters, int pcnt, userrec *user) @@ -233,8 +233,8 @@ Default constructor.

      Creates a Server object.

      -Definition at line 313 of file modules.cpp.

      00314 {
      -00315 }
      +Definition at line 305 of file modules.cpp.
      00306 {
      +00307 }
       

      @@ -268,8 +268,8 @@ Default destructor.

      Destroys a Server object.

      -Definition at line 317 of file modules.cpp.

      00318 {
      -00319 }
      +Definition at line 309 of file modules.cpp.
      00310 {
      +00311 }
       

      @@ -290,7 +290,7 @@ Definition at line 317 - handlerfunc  + handlerfunc  f, @@ -334,11 +334,11 @@ This allows modules to add extra commands into the command table. You must place typedef void (handlerfunc) (char**, int, userrec*); ... void handle_kill(char **parameters, int pcnt, userrec *user)

      When the command is typed, the parameters will be placed into the parameters array (similar to argv) and the parameter count will be placed into pcnt (similar to argv). There will never be any less parameters than the 'minparams' value you specified when creating the command. The *user parameter is the class of the user which caused the command to trigger, who will always have the flag you specified in 'flags' when creating the initial command. For example to create an oper only command create the commands with flags='o'. The source parameter is used for resource tracking, and should contain the name of your module (with file extension) e.g. "m_blarp.so". If you place the wrong identifier here, you can cause crashes if your module is unloaded.

      -Definition at line 419 of file modules.cpp. +Definition at line 411 of file modules.cpp.

      -References createcommand().

      00420 {
      -00421         createcommand(cmd,f,flags,minparams,source);
      -00422 }
      +References createcommand().
      00412 {
      +00413         createcommand(cmd,f,flags,minparams,source);
      +00414 }
       

      @@ -394,11 +394,11 @@ Adds a E-line The E-line is enforced as soon as it is added.

      The duration must be in seconds, however you can use the Server::CalcDuration method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name.

      -Definition at line 663 of file modules.cpp. +Definition at line 655 of file modules.cpp.

      -References add_eline().

      00664 {
      -00665         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
      -00666 }
      +References add_eline().
      00656 {
      +00657         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
      +00658 }
       

      @@ -436,16 +436,16 @@ This call is used to implement modes like +q and +a. The characteristics of thes (2) They always take exactly one parameter when being added or removed

      (3) They can be set multiple times, usually on users in channels

      (4) The mode and its parameter are NOT stored in the channels modes structure

      -It is down to the module handling the mode to maintain state and determine what 'items' (e.g. users, or a banlist) have the mode set on them, and process the modes at the correct times, e.g. during access checks on channels, etc. When the extended mode is triggered the OnExtendedMode method will be triggered as above. Note that the target you are given will be a channel, if for example your mode is set 'on a user' (in for example +a) you must use Server::Find to locate the user the mode is operating on. Your mode handler may return 1 to handle the mode AND tell the core to display the mode change, e.g. '+aaa one two three' in the case of the mode for 'two', or it may return -1 to 'eat' the mode change, so the above example would become '+aa one three' after processing. +It is down to the module handling the mode to maintain state and determine what 'items' (e.g. users, or a banlist) have the mode set on them, and process the modes at the correct times, e.g. during access checks on channels, etc. When the extended mode is triggered the OnExtendedMode method will be triggered as above. Note that the target you are given will be a channel, if for example your mode is set 'on a user' (in for example +a) you must use Server::Find to locate the user the mode is operating on. Your mode handler may return 1 to handle the mode AND tell the core to display the mode change, e.g. '+aaa one two three' in the case of the mode for 'two', or it may return -1 to 'eat' the mode change, so the above example would become '+aa one three' after processing.

      -Definition at line 587 of file modules.cpp. +Definition at line 579 of file modules.cpp.

      -References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL.

      00588 {
      -00589         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
      -00590         if (res)
      -00591                 ModeMakeList(modechar);
      -00592         return res;
      -00593 }
      +References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL.
      00580 {
      +00581         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
      +00582         if (res)
      +00583                 ModeMakeList(modechar);
      +00584         return res;
      +00585 }
       

      @@ -507,34 +507,34 @@ Adds an extended mode letter which is parsed by a module.

      This allows modules to add extra mode letters, e.g. +x for hostcloak. the "type" parameter is either MT_CHANNEL, MT_CLIENT, or MT_SERVER, to indicate wether the mode is a channel mode, a client mode, or a server mode. requires_oper is used with MT_CLIENT type modes only to indicate the mode can only be set or unset by an oper. If this is used for MT_CHANNEL type modes it is ignored. params_when_on is the number of modes to expect when the mode is turned on (for type MT_CHANNEL only), e.g. with mode +k, this would have a value of 1. the params_when_off value has a similar value to params_when_on, except it indicates the number of parameters to expect when the mode is disabled. Modes which act in a similar way to channel mode +l (e.g. require a parameter to enable, but not to disable) should use this parameter. The function returns false if the mode is unavailable, and will not attempt to allocate another character, as this will confuse users. This also means that as only one module can claim a specific mode character, the core does not need to keep track of which modules own which modes, which speeds up operation of the server. In this version, a mode can have at most one parameter, attempting to use more parameters will have undefined effects.

      -Definition at line 559 of file modules.cpp. -

      -References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER.

      00560 {
      -00561         if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z')))
      -00562         {
      -00563                 if (type == MT_SERVER)
      -00564                 {
      -00565                         log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
      -00566                         return false;
      -00567                 }
      -00568                 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
      -00569                 {
      -00570                         log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
      -00571                         return false;
      -00572                 }
      -00573                 if ((params_when_on>1) || (params_when_off>1))
      -00574                 {
      -00575                         log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
      -00576                         return false;
      -00577                 }
      -00578                 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
      -00579         }
      -00580         else
      -00581         {
      -00582                 log(DEBUG,"*** API ERROR *** Muppet modechar detected.");
      -00583         }
      -00584         return false;
      -00585 }
      +Definition at line 551 of file modules.cpp.
      +

      +References DEBUG, DoAddExtendedMode(), log(), MT_CLIENT, and MT_SERVER.

      00552 {
      +00553         if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z')))
      +00554         {
      +00555                 if (type == MT_SERVER)
      +00556                 {
      +00557                         log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
      +00558                         return false;
      +00559                 }
      +00560                 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
      +00561                 {
      +00562                         log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
      +00563                         return false;
      +00564                 }
      +00565                 if ((params_when_on>1) || (params_when_off>1))
      +00566                 {
      +00567                         log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
      +00568                         return false;
      +00569                 }
      +00570                 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
      +00571         }
      +00572         else
      +00573         {
      +00574                 log(DEBUG,"*** API ERROR *** Muppet modechar detected.");
      +00575         }
      +00576         return false;
      +00577 }
       

      @@ -590,11 +590,11 @@ Adds a G-line The G-line is propogated to all of the servers in the mesh and enf

      The duration must be in seconds, however you can use the Server::CalcDuration method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name.

      -Definition at line 643 of file modules.cpp. +Definition at line 635 of file modules.cpp.

      -References add_gline().

      00644 {
      -00645         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
      -00646 }
      +References add_gline().
      00636 {
      +00637         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
      +00638 }
       

      @@ -650,11 +650,11 @@ Adds a K-line The K-line is enforced as soon as it is added.

      The duration must be in seconds, however you can use the Server::CalcDuration method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name.

      -Definition at line 658 of file modules.cpp. +Definition at line 650 of file modules.cpp.

      -References add_kline().

      00659 {
      -00660         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
      -00661 }
      +References add_kline().
      00651 {
      +00652         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
      +00653 }
       

      @@ -710,11 +710,11 @@ Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enf

      The duration must be in seconds, however you can use the Server::CalcDuration method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name.

      -Definition at line 648 of file modules.cpp. +Definition at line 640 of file modules.cpp.

      -References add_qline().

      00649 {
      -00650         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
      -00651 }
      +References add_qline().
      00641 {
      +00642         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
      +00643 }
       

      @@ -749,11 +749,11 @@ Adds a class derived from InspSocket

      -Definition at line 321 of file modules.cpp. +Definition at line 313 of file modules.cpp.

      -References module_sockets.

      00322 {
      -00323         module_sockets.push_back(sock);
      -00324 }
      +References module_sockets.
      00314 {
      +00315         module_sockets.push_back(sock);
      +00316 }
       

      @@ -809,11 +809,11 @@ Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enf

      The duration must be in seconds, however you can use the Server::CalcDuration method to convert durations into the 1w2d3h3m6s format used by /GLINE etc. The source is an arbitary string used to indicate who or what sent the data, usually this is the nickname of a person, or a server name.

      -Definition at line 653 of file modules.cpp. +Definition at line 645 of file modules.cpp.

      -References add_zline().

      00654 {
      -00655         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
      -00656 }
      +References add_zline().
      00646 {
      +00647         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
      +00648 }
       

      @@ -848,11 +848,11 @@ Calculates a duration This method will take a string containing a formatted dura

      "1w2d") and return its value as a total number of seconds. This is the same function used internally by /GLINE etc to set the ban times.

      -Definition at line 693 of file modules.cpp. +Definition at line 685 of file modules.cpp.

      -References duration().

      00694 {
      -00695         return duration(delta.c_str());
      -00696 }
      +References duration().
      00686 {
      +00687         return duration(delta.c_str());
      +00688 }
       

      @@ -909,9 +909,11 @@ Calls the handler for a command, either implemented by the core or by another mo You can use this function to trigger other commands in the ircd, such as PRIVMSG, JOIN, KICK etc, or even as a method of callback. By defining command names that are untypeable for users on irc (e.g. those which contain a or
      ) you may use them as callback identifiers. The first parameter to this method is the name of the command handler you wish to call, e.g. PRIVMSG. This will be a command handler previously registered by the core or wih AddCommand(). The second parameter is an array of parameters, and the third parameter is a count of parameters in the array. If you do not pass enough parameters to meet the minimum needed by the handler, the functiom will silently ignore it. The final parameter is the user executing the command handler, used for privilage checks, etc.

      -Definition at line 404 of file modules.cpp.

      00405 {
      -00406         call_handler(commandname.c_str(),parameters,pcnt,user);
      -00407 }
      +Definition at line 396 of file modules.cpp.
      +

      +References call_handler().

      00397 {
      +00398         call_handler(commandname.c_str(),parameters,pcnt,user);
      +00399 }
       

      @@ -955,11 +957,11 @@ Change GECOS (fullname) of a user.

      You should always call this method to change a user's GECOS rather than writing directly to the fullname member of userrec, as any change applied via this method will be propogated to any linked servers.

      -Definition at line 502 of file modules.cpp. +Definition at line 494 of file modules.cpp.

      -References ChangeName().

      00503 {
      -00504         ChangeName(user,gecos.c_str());
      -00505 }
      +References ChangeName().
      00495 {
      +00496         ChangeName(user,gecos.c_str());
      +00497 }
       

      @@ -1003,11 +1005,11 @@ Change displayed hostname of a user.

      You should always call this method to change a user's host rather than writing directly to the dhost member of userrec, as any change applied via this method will be propogated to any linked servers.

      -Definition at line 497 of file modules.cpp. +Definition at line 489 of file modules.cpp.

      -References ChangeDisplayedHost().

      00498 {
      -00499         ChangeDisplayedHost(user,host.c_str());
      -00500 }
      +References ChangeDisplayedHost().
      00490 {
      +00491         ChangeDisplayedHost(user,host.c_str());
      +00492 }
       

      @@ -1051,9 +1053,11 @@ Forces a user nickchange.

      This command works similarly to SVSNICK, and can be used to implement Q-lines etc. If you specify an invalid nickname, the nick change will be dropped and the target user will receive the error numeric for it.

      -Definition at line 389 of file modules.cpp.

      00390 {
      -00391         force_nickchange(user,nickname.c_str());
      -00392 }
      +Definition at line 381 of file modules.cpp.
      +

      +References force_nickchange().

      00382 {
      +00383         force_nickchange(user,nickname.c_str());
      +00384 }
       

      @@ -1097,11 +1101,11 @@ Attempts to look up a user's privilages on a channel.

      This function will return a string containing either @, %, +, or an empty string, representing the user's privilages upon the channel you specify.

      -Definition at line 527 of file modules.cpp. +Definition at line 519 of file modules.cpp.

      -References cmode().

      00528 {
      -00529         return cmode(User,Chan);
      -00530 }
      +References cmode().
      00520 {
      +00521         return cmode(User,Chan);
      +00522 }
       

      @@ -1145,11 +1149,11 @@ Returns true if two users share a common channel.

      This method is used internally by the NICK and QUIT commands, and the Server::SendCommon method.

      -Definition at line 475 of file modules.cpp. +Definition at line 467 of file modules.cpp.

      -References common_channels().

      00476 {
      -00477         return (common_channels(u1,u2) != 0);
      -00478 }
      +References common_channels().
      00468 {
      +00469         return (common_channels(u1,u2) != 0);
      +00470 }
       

      @@ -1184,9 +1188,9 @@ Returns a count of the number of users on a channel.

      This will NEVER be 0, as if the chanrec exists, it will have at least one user in the channel.

      -Definition at line 595 of file modules.cpp.

      00596 {
      -00597         return usercount(c);
      -00598 }
      +Definition at line 587 of file modules.cpp.
      00588 {
      +00589         return usercount(c);
      +00590 }
       

      @@ -1221,11 +1225,11 @@ Deletes a local E-Line.

      -Definition at line 688 of file modules.cpp. +Definition at line 680 of file modules.cpp.

      -References del_eline().

      00689 {
      -00690         return del_eline(hostmask.c_str());
      -00691 }
      +References del_eline().
      00681 {
      +00682         return del_eline(hostmask.c_str());
      +00683 }
       

      @@ -1260,11 +1264,11 @@ Deletes a G-Line from all servers on the mesh.

      -Definition at line 668 of file modules.cpp. +Definition at line 660 of file modules.cpp.

      -References del_gline().

      00669 {
      -00670         return del_gline(hostmask.c_str());
      -00671 }
      +References del_gline().
      00661 {
      +00662         return del_gline(hostmask.c_str());
      +00663 }
       

      @@ -1299,11 +1303,11 @@ Deletes a local K-Line.

      -Definition at line 683 of file modules.cpp. +Definition at line 675 of file modules.cpp.

      -References del_kline().

      00684 {
      -00685         return del_kline(hostmask.c_str());
      -00686 }
      +References del_kline().
      00676 {
      +00677         return del_kline(hostmask.c_str());
      +00678 }
       

      @@ -1338,11 +1342,11 @@ Deletes a Q-Line from all servers on the mesh.

      -Definition at line 673 of file modules.cpp. +Definition at line 665 of file modules.cpp.

      -References del_qline().

      00674 {
      -00675         return del_qline(nickname.c_str());
      -00676 }
      +References del_qline().
      00666 {
      +00667         return del_qline(nickname.c_str());
      +00668 }
       

      @@ -1377,18 +1381,18 @@ Deletes a class derived from InspSocke

      -Definition at line 337 of file modules.cpp. +Definition at line 329 of file modules.cpp.

      -References module_sockets.

      00338 {
      -00339         for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++)
      -00340         {
      -00341                 if (*a == sock)
      -00342                 {
      -00343                         module_sockets.erase(a);
      -00344                         return;
      -00345                 }
      -00346         }
      -00347 }
      +References module_sockets.
      00330 {
      +00331         for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++)
      +00332         {
      +00333                 if (*a == sock)
      +00334                 {
      +00335                         module_sockets.erase(a);
      +00336                         return;
      +00337                 }
      +00338         }
      +00339 }
       

      @@ -1423,11 +1427,11 @@ Deletes a Z-Line from all servers on the mesh.

      -Definition at line 678 of file modules.cpp. +Definition at line 670 of file modules.cpp.

      -References del_zline().

      00679 {
      -00680         return del_zline(ipaddr.c_str());
      -00681 }
      +References del_zline().
      00671 {
      +00672         return del_zline(ipaddr.c_str());
      +00673 }
       

      @@ -1462,9 +1466,11 @@ Attempts to look up a channel and return a pointer to it.

      This function will return NULL if the channel does not exist.

      -Definition at line 522 of file modules.cpp.

      00523 {
      -00524         return FindChan(channel.c_str());
      -00525 }
      +Definition at line 514 of file modules.cpp.
      +

      +References FindChan().

      00515 {
      +00516         return FindChan(channel.c_str());
      +00517 }
       

      @@ -1499,9 +1505,9 @@ Attempts to look up a nick using the file descriptor associated with that nick.

      This function will return NULL if the file descriptor is not associated with a valid user.

      -Definition at line 517 of file modules.cpp.

      00518 {
      -00519         return (socket < 65536 ? fd_ref_table[socket] : NULL);
      -00520 }
      +Definition at line 509 of file modules.cpp.
      00510 {
      +00511         return (socket < 65536 ? fd_ref_table[socket] : NULL);
      +00512 }
       

      @@ -1536,18 +1542,18 @@ This function finds a module by name.

      You must provide the filename of the module. If the module cannot be found (is not loaded) the function will return NULL.

      -Definition at line 727 of file modules.cpp. -

      -References MODCOUNT, ServerConfig::module_names, and modules.

      00728 {
      -00729         for (int i = 0; i <= MODCOUNT; i++)
      -00730         {
      -00731                 if (Config->module_names[i] == name)
      -00732                 {
      -00733                         return modules[i];
      -00734                 }
      -00735         }
      -00736         return NULL;
      -00737 }
      +Definition at line 719 of file modules.cpp.
      +

      +References MODCOUNT, ServerConfig::module_names, and modules.

      00720 {
      +00721         for (int i = 0; i <= MODCOUNT; i++)
      +00722         {
      +00723                 if (Config->module_names[i] == name)
      +00724                 {
      +00725                         return modules[i];
      +00726                 }
      +00727         }
      +00728         return NULL;
      +00729 }
       

      @@ -1582,9 +1588,11 @@ Attempts to look up a nick and return a pointer to it.

      This function will return NULL if the nick does not exist.

      -Definition at line 512 of file modules.cpp.

      00513 {
      -00514         return Find(nick);
      -00515 }
      +Definition at line 504 of file modules.cpp.
      +

      +References Find().

      00505 {
      +00506         return Find(nick);
      +00507 }
       

      @@ -1618,9 +1626,11 @@ Returns the information of the server as returned by the /ADMIN command.

      See the Admin class for further information of the return value. The members Admin::Nick, Admin::Email and Admin::Name contain the information for the server where the module is loaded.

      -Definition at line 552 of file modules.cpp.

      00553 {
      -00554         return Admin(getadminname(),getadminemail(),getadminnick());
      -00555 }
      +Definition at line 544 of file modules.cpp.
      +

      +References ServerConfig::AdminEmail, ServerConfig::AdminName, and ServerConfig::AdminNick.

      00545 {
      +00546         return Admin(Config->AdminName,Config->AdminEmail,Config->AdminNick);
      +00547 }
       

      @@ -1654,9 +1664,9 @@ Obtains a pointer to the server's Se

      The ServerConfig object contains most of the configuration data of the IRC server, as read from the config file by the core.

      -Definition at line 332 of file modules.cpp.

      00333 {
      -00334         return Config;
      -00335 }
      +Definition at line 324 of file modules.cpp.
      00325 {
      +00326         return Config;
      +00327 }
       

      @@ -1690,9 +1700,11 @@ Returns the network name, global to all linked servers.

      -Definition at line 542 of file modules.cpp.

      00543 {
      -00544         return getnetworkname();
      -00545 }
      +Definition at line 534 of file modules.cpp.
      +

      +References ServerConfig::Network.

      00535 {
      +00536         return Config->Network;
      +00537 }
       

      @@ -1726,9 +1738,11 @@ Returns the server description string of the local server.

      -Definition at line 547 of file modules.cpp.

      00548 {
      -00549         return getserverdesc();
      -00550 }
      +Definition at line 539 of file modules.cpp.
      +

      +References ServerConfig::ServerDesc.

      00540 {
      +00541         return Config->ServerDesc;
      +00542 }
       

      @@ -1762,9 +1776,11 @@ Returns the server name of the server where the module is loaded.

      -Definition at line 537 of file modules.cpp.

      00538 {
      -00539         return getservername();
      -00540 }
      +Definition at line 529 of file modules.cpp.
      +

      +References ServerConfig::ServerName.

      00530 {
      +00531         return Config->ServerName;
      +00532 }
       

      @@ -1799,19 +1815,19 @@ Fetches the userlist of a channel.

      This function must be here and not a member of userrec or chanrec due to include constraints.

      -Definition at line 377 of file modules.cpp. -

      -References chanrec::GetUsers().

      00378 {
      -00379         chanuserlist userl;
      -00380         userl.clear();
      -00381         std::vector<char*> *list = chan->GetUsers();
      -00382         for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++)
      -00383         {
      -00384                 char* o = *i;
      -00385                 userl.push_back((userrec*)o);
      -00386         }
      -00387         return userl;
      -00388 }
      +Definition at line 369 of file modules.cpp.
      +

      +References chanrec::GetUsers().

      00370 {
      +00371         chanuserlist userl;
      +00372         userl.clear();
      +00373         std::vector<char*> *list = chan->GetUsers();
      +00374         for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++)
      +00375         {
      +00376                 char* o = *i;
      +00377                 userl.push_back((userrec*)o);
      +00378         }
      +00379         return userl;
      +00380 }
       

      @@ -1846,11 +1862,11 @@ Returns true if a nick is valid.

      Nicks for unregistered connections will return false.

      -Definition at line 507 of file modules.cpp. +Definition at line 499 of file modules.cpp.

      -References isnick().

      00508 {
      -00509         return (isnick(nick.c_str()) != 0);
      -00510 }
      +References isnick().
      00500 {
      +00501         return (isnick(nick.c_str()) != 0);
      +00502 }
       

      @@ -1894,11 +1910,11 @@ Checks if a user is on a channel.

      This function will return true or false to indicate if user 'User' is on channel 'Chan'.

      -Definition at line 532 of file modules.cpp. +Definition at line 524 of file modules.cpp.

      -References has_channel().

      00533 {
      -00534         return has_channel(User,Chan);
      -00535 }
      +References has_channel().
      00525 {
      +00526         return has_channel(User,Chan);
      +00527 }
       

      @@ -1933,11 +1949,11 @@ Returns true if the servername you give is ulined.

      ULined servers have extra privilages. They are allowed to change nicknames on remote servers, change modes of clients which are on remote servers and set modes of channels where there are no channel operators for that channel on the ulined server, amongst other things. Ulined server data is also broadcast across the mesh at all times as opposed to selectively messaged in the case of normal servers, as many ulined server types (such as services) do not support meshed links and must operate in this manner.

      -Definition at line 399 of file modules.cpp. +Definition at line 391 of file modules.cpp.

      -References is_uline().

      00400 {
      -00401         return is_uline(server.c_str());
      -00402 }
      +References is_uline().
      00392 {
      +00393         return is_uline(server.c_str());
      +00394 }
       

      @@ -1972,33 +1988,33 @@ Returns true if a nick!ident string is correctly formatted, false if otherwise.

      -Definition at line 698 of file modules.cpp.

      00699 {
      -00700         const char* dest = mask.c_str();
      -00701         if (strchr(dest,'!')==0)
      -00702                 return false;
      -00703         if (strchr(dest,'@')==0)
      -00704                 return false;
      -00705         for (unsigned int i = 0; i < strlen(dest); i++)
      -00706                 if (dest[i] < 32)
      -00707                         return false;
      -00708         for (unsigned int i = 0; i < strlen(dest); i++)
      -00709                 if (dest[i] > 126)
      -00710                         return false;
      -00711         unsigned int c = 0;
      -00712         for (unsigned int i = 0; i < strlen(dest); i++)
      -00713                 if (dest[i] == '!')
      -00714                         c++;
      -00715         if (c>1)
      -00716                 return false;
      -00717         c = 0;
      -00718         for (unsigned int i = 0; i < strlen(dest); i++)
      -00719                 if (dest[i] == '@')
      -00720                         c++;
      -00721         if (c>1)
      -00722                 return false;
      -00723 
      -00724         return true;
      -00725 }
      +Definition at line 690 of file modules.cpp.
      00691 {
      +00692         const char* dest = mask.c_str();
      +00693         if (strchr(dest,'!')==0)
      +00694                 return false;
      +00695         if (strchr(dest,'@')==0)
      +00696                 return false;
      +00697         for (unsigned int i = 0; i < strlen(dest); i++)
      +00698                 if (dest[i] < 32)
      +00699                         return false;
      +00700         for (unsigned int i = 0; i < strlen(dest); i++)
      +00701                 if (dest[i] > 126)
      +00702                         return false;
      +00703         unsigned int c = 0;
      +00704         for (unsigned int i = 0; i < strlen(dest); i++)
      +00705                 if (dest[i] == '!')
      +00706                         c++;
      +00707         if (c>1)
      +00708                 return false;
      +00709         c = 0;
      +00710         for (unsigned int i = 0; i < strlen(dest); i++)
      +00711                 if (dest[i] == '@')
      +00712                         c++;
      +00713         if (c>1)
      +00714                 return false;
      +00715 
      +00716         return true;
      +00717 }
       

      @@ -2046,9 +2062,11 @@ Definition at line 698

      -Definition at line 409 of file modules.cpp.

      00410 {
      -00411         return is_valid_cmd(commandname.c_str(), pcnt, user);
      -00412 }
      +Definition at line 401 of file modules.cpp.
      +

      +References is_valid_cmd().

      00402 {
      +00403         return is_valid_cmd(commandname.c_str(), pcnt, user);
      +00404 }
       

      @@ -2098,9 +2116,11 @@ Forces a user to join a channel.

      This is similar to svsjoin and can be used to implement redirection, etc. On success, the return value is a valid pointer to a chanrec* of the channel the user was joined to. On failure, the result is NULL.

      -Definition at line 367 of file modules.cpp.

      00368 {
      -00369         return add_channel(user,cname.c_str(),key.c_str(),false);
      -00370 }
      +Definition at line 359 of file modules.cpp.
      +

      +References add_channel().

      00360 {
      +00361         return add_channel(user,cname.c_str(),key.c_str(),false);
      +00362 }
       

      @@ -2144,9 +2164,11 @@ Writes a log string.

      This method writes a line of text to the log. If the level given is lower than the level given in the configuration, this command has no effect.

      -Definition at line 414 of file modules.cpp.

      00415 {
      -00416         log(level,"%s",s.c_str());
      -00417 }
      +Definition at line 406 of file modules.cpp.
      +

      +References log().

      00407 {
      +00408         log(level,"%s",s.c_str());
      +00409 }
       

      @@ -2190,12 +2212,12 @@ Matches text against a glob pattern.

      Uses the ircd's internal matching function to match string against a globbing pattern, e.g. *!*@*.com Returns true if the literal successfully matches the pattern, false if otherwise.

      -Definition at line 354 of file modules.cpp.

      00355 {
      -00356         char literal[MAXBUF],pattern[MAXBUF];
      -00357         strlcpy(literal,sliteral.c_str(),MAXBUF);
      -00358         strlcpy(pattern,spattern.c_str(),MAXBUF);
      -00359         return match(literal,pattern);
      -00360 }
      +Definition at line 346 of file modules.cpp.
      00347 {
      +00348         char literal[MAXBUF],pattern[MAXBUF];
      +00349         strlcpy(literal,sliteral.c_str(),MAXBUF);
      +00350         strlcpy(pattern,spattern.c_str(),MAXBUF);
      +00351         return match(literal,pattern);
      +00352 }
       

      @@ -2245,9 +2267,11 @@ Forces a user to part a channel.

      This is similar to svspart and can be used to implement redirection, etc. Although the return value of this function is a pointer to a channel record, the returned data is undefined and should not be read or written to. This behaviour may be changed in a future version.

      -Definition at line 372 of file modules.cpp.

      00373 {
      -00374         return del_channel(user,cname.c_str(),reason.c_str(),false);
      -00375 }
      +Definition at line 364 of file modules.cpp.
      +

      +References del_channel().

      00365 {
      +00366         return del_channel(user,cname.c_str(),reason.c_str(),false);
      +00367 }
       

      @@ -2297,36 +2321,36 @@ This user takes one user, and switches their file descriptor with another user,

      The user in 'alive' is booted off the server with the given message. The user referred to by 'zombie' should have previously been locked with Server::ZombifyUser, otherwise stale sockets and file descriptor leaks can occur. After this call, the pointer to alive will be invalid, and the pointer to zombie will be equivalent in effect to the old pointer to alive.

      -Definition at line 613 of file modules.cpp. -

      -References userrec::chans, userrec::ClearBuffer(), connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset.

      00614 {
      -00615         zombie->fd = alive->fd;
      -00616         alive->fd = FD_MAGIC_NUMBER;
      -00617         alive->ClearBuffer();
      -00618         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
      -00619         kill_link(alive,message.c_str());
      -00620         fd_ref_table[zombie->fd] = zombie;
      -00621         for (unsigned int i = 0; i < zombie->chans.size(); i++)
      -00622         {
      -00623                 if (zombie->chans[i].channel != NULL)
      -00624                 {
      -00625                         if (zombie->chans[i].channel->name)
      -00626                         {
      -00627                                 chanrec* Ptr = zombie->chans[i].channel;
      -00628                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
      -00629                                 if (Ptr->topicset)
      -00630                                 {
      -00631                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
      -00632                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
      -00633                                 }
      -00634                                 userlist(zombie,Ptr);
      -00635                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
      -00636 
      -00637                         }
      -00638                 }
      -00639         }
      -00640         return true;
      -00641 }
      +Definition at line 605 of file modules.cpp.
      +

      +References userrec::chans, userrec::ClearBuffer(), connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, kill_link(), chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, chanrec::topicset, Write(), WriteFrom(), and WriteServ().

      00606 {
      +00607         zombie->fd = alive->fd;
      +00608         alive->fd = FD_MAGIC_NUMBER;
      +00609         alive->ClearBuffer();
      +00610         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
      +00611         kill_link(alive,message.c_str());
      +00612         fd_ref_table[zombie->fd] = zombie;
      +00613         for (unsigned int i = 0; i < zombie->chans.size(); i++)
      +00614         {
      +00615                 if (zombie->chans[i].channel != NULL)
      +00616                 {
      +00617                         if (zombie->chans[i].channel->name)
      +00618                         {
      +00619                                 chanrec* Ptr = zombie->chans[i].channel;
      +00620                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
      +00621                                 if (Ptr->topicset)
      +00622                                 {
      +00623                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
      +00624                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
      +00625                                 }
      +00626                                 userlist(zombie,Ptr);
      +00627                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
      +00628 
      +00629                         }
      +00630                 }
      +00631         }
      +00632         return true;
      +00633 }
       

      @@ -2372,9 +2396,11 @@ To the user, it will appear as if they typed /QUIT themselves, except for the fa WARNING!

      Once you call this function, userrec* user will immediately become INVALID. You MUST NOT write to, or read from this pointer after calling the QuitUser method UNDER ANY CIRCUMSTANCES! The best course of action after calling this method is to immediately bail from your handler.

      -Definition at line 394 of file modules.cpp.

      00395 {
      -00396         kill_link(user,reason.c_str());
      -00397 }
      +Definition at line 386 of file modules.cpp.
      +

      +References kill_link().

      00387 {
      +00388         kill_link(user,reason.c_str());
      +00389 }
       

      @@ -2406,12 +2432,12 @@ Definition at line 394

      -Definition at line 326 of file modules.cpp. +Definition at line 318 of file modules.cpp.

      -References ServerConfig::Read().

      00327 {
      -00328         WriteOpers("*** Rehashing config file");
      -00329         Config->Read(false,NULL);
      -00330 }
      +References ServerConfig::Read(), and WriteOpers().
      00319 {
      +00320         WriteOpers("*** Rehashing config file");
      +00321         Config->Read(false,NULL);
      +00322 }
       

      @@ -2455,9 +2481,11 @@ Sends a line of text down a TCP/IP socket.

      This method writes a line of text to an established socket, cutting it to 510 characters plus a carriage return and linefeed if required.

      -Definition at line 429 of file modules.cpp.

      00430 {
      -00431         Write(Socket,"%s",s.c_str());
      -00432 }
      +Definition at line 421 of file modules.cpp.
      +

      +References Write().

      00422 {
      +00423         Write(Socket,"%s",s.c_str());
      +00424 }
       

      @@ -2513,16 +2541,18 @@ Sends text from a user to a channel (mulicast).

      This method writes a line of text to a channel, with the given user's nick/ident /host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in MODE (see RFC 1459).

      -Definition at line 463 of file modules.cpp.

      00464 {
      -00465         if (IncludeSender)
      -00466         {
      -00467                 WriteChannel(Channel,User,"%s",s.c_str());
      -00468         }
      -00469         else
      -00470         {
      -00471                 ChanExceptSender(Channel,User,"%s",s.c_str());
      -00472         }
      -00473 }
      +Definition at line 455 of file modules.cpp.
      +

      +References ChanExceptSender(), and WriteChannel().

      00456 {
      +00457         if (IncludeSender)
      +00458         {
      +00459                 WriteChannel(Channel,User,"%s",s.c_str());
      +00460         }
      +00461         else
      +00462         {
      +00463                 ChanExceptSender(Channel,User,"%s",s.c_str());
      +00464         }
      +00465 }
       

      @@ -2572,9 +2602,9 @@ Writes text to a channel, but from a server, including all.

      This can be used to send server notices to a group of users.

      -Definition at line 458 of file modules.cpp.

      00459 {
      -00460         WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str());
      -00461 }
      +Definition at line 450 of file modules.cpp.
      00451 {
      +00452         WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str());
      +00453 }
       

      @@ -2624,16 +2654,18 @@ Sends text from a user to one or more channels (mulicast).

      This method writes a line of text to all users which share a common channel with a given user, with the user's nick/ident/host combination prepended, as used in PRIVMSG etc commands (see RFC 1459). If the IncludeSender flag is set, then the text is also sent back to the user from which it originated, as seen in NICK (see RFC 1459). Otherwise, it is only sent to the other recipients, as seen in QUIT.

      -Definition at line 480 of file modules.cpp.

      00481 {
      -00482         if (IncludeSender)
      -00483         {
      -00484                 WriteCommon(User,"%s",text.c_str());
      -00485         }
      -00486         else
      -00487         {
      -00488                 WriteCommonExcept(User,"%s",text.c_str());
      -00489         }
      -00490 }
      +Definition at line 472 of file modules.cpp.
      +

      +References WriteCommon(), and WriteCommonExcept().

      00473 {
      +00474         if (IncludeSender)
      +00475         {
      +00476                 WriteCommon(User,"%s",text.c_str());
      +00477         }
      +00478         else
      +00479         {
      +00480                 WriteCommonExcept(User,"%s",text.c_str());
      +00481         }
      +00482 }
       

      @@ -2683,9 +2715,11 @@ Sends text from a user to a socket.

      This method writes a line of text to an established socket, with the given user's nick/ident /host combination prepended, as used in PRIVSG etc commands (see RFC 1459)

      -Definition at line 439 of file modules.cpp.

      00440 {
      -00441         WriteFrom(Socket,User,"%s",s.c_str());
      -00442 }
      +Definition at line 431 of file modules.cpp.
      +

      +References WriteFrom().

      00432 {
      +00433         WriteFrom(Socket,User,"%s",s.c_str());
      +00434 }
       

      @@ -2742,11 +2776,11 @@ modes[2] = user->nick;

      Srv->SendMode(modes,3,user);

      The modes will originate from the server where the command was issued, however responses (e.g. numerics) will be sent to the user you provide as the third parameter. You must be sure to get the number of parameters correct in the pcnt parameter otherwise you could leave your server in an unstable state!

      -Definition at line 424 of file modules.cpp. +Definition at line 416 of file modules.cpp.

      -References server_mode().

      00425 {
      -00426         server_mode(parameters,pcnt,user);
      -00427 }
      +References server_mode().
      00417 {
      +00418         server_mode(parameters,pcnt,user);
      +00419 }
       

      @@ -2781,9 +2815,11 @@ Sends text to all opers.

      This method sends a server notice to all opers with the usermode +s.

      -Definition at line 349 of file modules.cpp.

      00350 {
      -00351         WriteOpers("%s",s.c_str());
      -00352 }
      +Definition at line 341 of file modules.cpp.
      +

      +References WriteOpers().

      00342 {
      +00343         WriteOpers("%s",s.c_str());
      +00344 }
       

      @@ -2827,9 +2863,11 @@ Sends text from the server to a socket.

      This method writes a line of text to an established socket, with the servername prepended as used by numerics (see RFC 1459)

      -Definition at line 434 of file modules.cpp.

      00435 {
      -00436         WriteServ(Socket,"%s",s.c_str());
      -00437 }
      +Definition at line 426 of file modules.cpp.
      +

      +References WriteServ().

      00427 {
      +00428         WriteServ(Socket,"%s",s.c_str());
      +00429 }
       

      @@ -2883,20 +2921,20 @@ The format will become:

      :localserver TEXT

      Which is useful for numerics and server notices to single users, etc.

      -Definition at line 444 of file modules.cpp. -

      -References connection::fd.

      00445 {
      -00446         if (!Source)
      -00447         {
      -00448                 // if source is NULL, then the message originates from the local server
      -00449                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
      -00450         }
      -00451         else
      -00452         {
      -00453                 // otherwise it comes from the user specified
      -00454                 WriteTo(Source,Dest,"%s",s.c_str());
      -00455         }
      -00456 }
      +Definition at line 436 of file modules.cpp.
      +

      +References connection::fd, Write(), and WriteTo().

      00437 {
      +00438         if (!Source)
      +00439         {
      +00440                 // if source is NULL, then the message originates from the local server
      +00441                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
      +00442         }
      +00443         else
      +00444         {
      +00445                 // otherwise it comes from the user specified
      +00446                 WriteTo(Source,Dest,"%s",s.c_str());
      +00447         }
      +00448 }
       

      @@ -2948,9 +2986,9 @@ These can be RFC specified modes such as +i, or module provided modes, including Serv->SendToModeMask("xi", WM_OR, "m00");

      Then the text 'm00' will be sent to all users with EITHER mode x or i. Conversely if you used WM_AND, the user must have both modes set to receive the message.

      -Definition at line 362 of file modules.cpp.

      00363 {
      -00364         WriteMode(modes.c_str(),flags,"%s",text.c_str());
      -00365 }
      +Definition at line 354 of file modules.cpp.
      00355 {
      +00356         WriteMode(modes.c_str(),flags,"%s",text.c_str());
      +00357 }
       

      @@ -2994,9 +3032,11 @@ Sends a WALLOPS message.

      This method writes a WALLOPS message to all users with the +w flag, originating from the specified user.

      -Definition at line 492 of file modules.cpp.

      00493 {
      -00494         WriteWallOps(User,false,"%s",text.c_str());
      -00495 }
      +Definition at line 484 of file modules.cpp.
      +

      +References WriteWallOps().

      00485 {
      +00486         WriteWallOps(User,false,"%s",text.c_str());
      +00487 }
       

      @@ -3040,18 +3080,18 @@ Remove a user's connection to the irc server, but leave their client in existenc

      When you call this function, the user's file descriptor will be replaced with the value of FD_MAGIC_NUMBER and their old file descriptor will be closed. This idle client will remain until it is restored with a valid file descriptor, or is removed from IRC by an operator After this call, the pointer to user will be invalid.

      -Definition at line 601 of file modules.cpp. -

      -References userrec::ClearBuffer(), SocketEngine::DelFd(), connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident.

      00602 {
      -00603         unsigned int old_fd = user->fd;
      -00604         user->fd = FD_MAGIC_NUMBER;
      -00605         user->ClearBuffer();
      -00606         Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str());
      -00607         SE->DelFd(old_fd);
      -00608         shutdown(old_fd,2);
      -00609         close(old_fd);
      -00610         return true;
      -00611 }
      +Definition at line 593 of file modules.cpp.
      +

      +References userrec::ClearBuffer(), SocketEngine::DelFd(), connection::fd, FD_MAGIC_NUMBER, connection::host, userrec::ident, and Write().

      00594 {
      +00595         unsigned int old_fd = user->fd;
      +00596         user->fd = FD_MAGIC_NUMBER;
      +00597         user->ClearBuffer();
      +00598         Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str());
      +00599         SE->DelFd(old_fd);
      +00600         shutdown(old_fd,2);
      +00601         close(old_fd);
      +00602         return true;
      +00603 }
       

      @@ -3059,7 +3099,7 @@ References userrec::ClearBuff


      The documentation for this class was generated from the following files: -
      Generated on Wed Dec 14 15:55:50 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:27 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classServerConfig-members.html b/docs/module-doc/classServerConfig-members.html index 5e30ba1de..6ef03ed50 100644 --- a/docs/module-doc/classServerConfig-members.html +++ b/docs/module-doc/classServerConfig-members.html @@ -44,19 +44,20 @@ NetworkServerConfig noforkServerConfig PIDServerConfig + portsServerConfig PrefixQuitServerConfig Read(bool bail, userrec *user)ServerConfig ReadConf(std::stringstream *config_f, const char *tag, const char *var, int index, char *result)ServerConfig restartpassServerConfig - RULESServerConfig rulesServerConfig + RULESServerConfig ServerConfig()ServerConfig ServerDescServerConfig ServerNameServerConfig SoftLimitServerConfig unlimitcoreServerConfig ~classbase()classbase [inline] -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classServerConfig.html b/docs/module-doc/classServerConfig.html index c359b2c7d..037f117b4 100644 --- a/docs/module-doc/classServerConfig.html +++ b/docs/module-doc/classServerConfig.html @@ -16,7 +16,7 @@ Inheritance diagram for ServerConfig:

      [legend]
      Collaboration diagram for ServerConfig:

      Collaboration graph
      - +
      [legend]
      List of all members. @@ -128,10 +128,10 @@ Inheritance diagram for ServerConfig:

      char 
      - + - + @@ -146,6 +146,9 @@ Inheritance diagram for ServerConfig:

      std::vector< std::string
      + + + @@ -222,7 +225,7 @@ Clears the include stack in preperation for a ConfigReader::ConfigReader(). +Referenced by ConfigReader::ConfigReader().
      addrs [MAXBUF][255]
       A list of IP addresses the server is listening on.
      file_cache MOTD
      file_cache MOTD
       The MOTD file, cached in a file_cache type.
      file_cache RULES
      file_cache RULES
       The RULES file, cached in a file_cache type.
      char PID [1024]
      module_names
       A list of module names (names only, no paths) which are currently loaded by the server.
      int ports [255]
       A list of ports which the server is listening on.

      Private Member Functions

      int fgets_safe (char *buffer, size_t maxsize, FILE *&file)

      @@ -412,7 +415,7 @@ Referenced by userrec::HasPer

      -Referenced by ConfigReader::Enumerate(). +Referenced by ConfigReader::Enumerate().

      @@ -457,7 +460,7 @@ Referenced by ConfigReader:

      -Referenced by ConfigReader::EnumerateValues(). +Referenced by ConfigReader::EnumerateValues().

      @@ -547,7 +550,7 @@ it can read both windows and UNIX style linefeeds transparently.

      -Referenced by ConfigReader::ConfigReader(). +Referenced by ConfigReader::ConfigReader().

      @@ -588,7 +591,7 @@ Read the entire configuration into memory and initialize this class.

      All other methods should be used only by the core.

      -Referenced by Server::RehashServer(). +Referenced by Server::RehashServer().

      @@ -645,7 +648,7 @@ Referenced by Server::Rehas

      -Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue(). +Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue().


      Member Data Documentation

      @@ -700,7 +703,9 @@ Holds the email address of the admin, for output in the /ADMIN command.

      -Definition at line 89 of file inspircd_io.h. +Definition at line 89 of file inspircd_io.h. +

      +Referenced by Server::GetAdmin().

      @@ -727,7 +732,9 @@ Holds the admin's name, for output in the /ADMIN command.

      -Definition at line 84 of file inspircd_io.h. +Definition at line 84 of file inspircd_io.h. +

      +Referenced by Server::GetAdmin().

      @@ -754,7 +761,9 @@ Holds the admin's nickname, for output in the /ADMIN command.

      -Definition at line 94 of file inspircd_io.h. +Definition at line 94 of file inspircd_io.h. +

      +Referenced by Server::GetAdmin().

      @@ -1217,7 +1226,7 @@ A list of module names (names only, no paths) which are currently loaded by the

      Definition at line 247 of file inspircd_io.h.

      -Referenced by Server::FindModule(). +Referenced by Server::FindModule().

      @@ -1226,7 +1235,7 @@ Referenced by Server::FindM - +
      file_cache ServerConfig::MOTD file_cache ServerConfig::MOTD
      @@ -1350,7 +1359,9 @@ Definition at line
      182

      -Definition at line 74 of file inspircd_io.h. +Definition at line 74 of file inspircd_io.h. +

      +Referenced by Server::GetNetworkName().

      @@ -1407,6 +1418,33 @@ The full pathname and filename of the PID file as defined in the configuration. Definition at line 229 of file inspircd_io.h. +

      + + + + +
      + + + + +
      int ServerConfig::ports[255]
      +
      + + + + + +
      +   + + +

      +A list of ports which the server is listening on. +

      + +

      +Definition at line 251 of file inspircd_io.h.

      @@ -1467,7 +1505,7 @@ Definition at line 102
      - +
      file_cache ServerConfig::RULES file_cache ServerConfig::RULES
      @@ -1539,7 +1577,9 @@ Holds the description of the local server as defined by the administrator.

      -Definition at line 79 of file inspircd_io.h. +Definition at line 79 of file inspircd_io.h. +

      +Referenced by Server::GetServerDescription().

      @@ -1568,7 +1608,7 @@ Holds the server name of the local server as defined by the administrator.

      Definition at line 68 of file inspircd_io.h.

      -Referenced by userrec::userrec(). +Referenced by Server::GetServerName(), and userrec::userrec().

      @@ -1627,7 +1667,7 @@ Definition at line 166


      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classServerConfig__coll__graph.gif b/docs/module-doc/classServerConfig__coll__graph.gif index 299c2a369..96bfe068b 100644 Binary files a/docs/module-doc/classServerConfig__coll__graph.gif and b/docs/module-doc/classServerConfig__coll__graph.gif differ diff --git a/docs/module-doc/classServerConfig__coll__graph.map b/docs/module-doc/classServerConfig__coll__graph.map index 026a524ee..aca75f307 100644 --- a/docs/module-doc/classServerConfig__coll__graph.map +++ b/docs/module-doc/classServerConfig__coll__graph.map @@ -1,2 +1,2 @@ base referer -rect $classclassbase.html 38,11 118,37 +rect $classclassbase.html 38,12 118,39 diff --git a/docs/module-doc/classServerConfig__coll__graph.md5 b/docs/module-doc/classServerConfig__coll__graph.md5 index 7c238fb05..8b64681f9 100644 --- a/docs/module-doc/classServerConfig__coll__graph.md5 +++ b/docs/module-doc/classServerConfig__coll__graph.md5 @@ -1 +1 @@ -2e10a0ef0c4d0446b103d1c843d9b249 \ No newline at end of file +ccb417531b2d5c8c500f80e926167613 \ No newline at end of file diff --git a/docs/module-doc/classSocketEngine-members.html b/docs/module-doc/classSocketEngine-members.html index a19d6103a..7ba725cfc 100644 --- a/docs/module-doc/classSocketEngine-members.html +++ b/docs/module-doc/classSocketEngine-members.html @@ -17,7 +17,7 @@ tsSocketEngine [private] Wait(std::vector< int > &fdlist)SocketEngine ~SocketEngine()SocketEngine -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classSocketEngine.html b/docs/module-doc/classSocketEngine.html index 772f60752..ee8167bb8 100644 --- a/docs/module-doc/classSocketEngine.html +++ b/docs/module-doc/classSocketEngine.html @@ -83,8 +83,8 @@ Please note that if there is a catastrophic failure (for example, you try and en

      Definition at line 35 of file socketengine.cpp.

      -References DEBUG, and EngineHandle.

      00036 {
      -00037         log(DEBUG,"SocketEngine::SocketEngine()");
      +References DEBUG, EngineHandle, and log().
      00036 {
      +00037         log(DEBUG,"SocketEngine::SocketEngine()");
       00038 #ifdef USE_EPOLL
       00039         EngineHandle = epoll_create(65535);
       00040 #endif
      @@ -127,8 +127,8 @@ Destructor The destructor transparently tidies up any resources used by the sock
       

      Definition at line 46 of file socketengine.cpp.

      -References DEBUG, and EngineHandle.

      00047 {
      -00048         log(DEBUG,"SocketEngine::~SocketEngine()");
      +References DEBUG, EngineHandle, and log().
      00047 {
      +00048         log(DEBUG,"SocketEngine::~SocketEngine()");
       00049 #ifdef USE_EPOLL
       00050         close(EngineHandle);
       00051 #endif
      @@ -188,7 +188,7 @@ You must provide a type (see the consts in 65 of file socketengine.cpp.
       

      -References DEBUG, EngineHandle, fds, ref, and X_READBIT. +References DEBUG, EngineHandle, fds, log(), ref, and X_READBIT.

      Referenced by InspSocket::InspSocket(), and InspSocket::Poll().

      00066 {
       00067         if ((fd < 0) || (fd > 65535))
      @@ -197,30 +197,30 @@ Referenced by InspSocket::In
       00070         ref[fd] = type;
       00071         if (readable)
       00072         {
      -00073                 log(DEBUG,"Set readbit");
      +00073                 log(DEBUG,"Set readbit");
       00074                 ref[fd] |= X_READBIT;
       00075         }
      -00076         log(DEBUG,"Add socket %d",fd);
      +00076         log(DEBUG,"Add socket %d",fd);
       00077 #ifdef USE_EPOLL
       00078         struct epoll_event ev;
      -00079         log(DEBUG,"epoll: Add socket to events, ep=%d socket=%d",EngineHandle,fd);
      +00079         log(DEBUG,"epoll: Add socket to events, ep=%d socket=%d",EngineHandle,fd);
       00080         readable ? ev.events = EPOLLIN | EPOLLET : ev.events = EPOLLOUT | EPOLLET;
       00081         ev.data.fd = fd;
       00082         int i = epoll_ctl(EngineHandle, EPOLL_CTL_ADD, fd, &ev);
       00083         if (i < 0)
       00084         {
      -00085                 log(DEBUG,"epoll: List insertion failure!");
      +00085                 log(DEBUG,"epoll: List insertion failure!");
       00086                 return false;
       00087         }
       00088 #endif
       00089 #ifdef USE_KQUEUE
       00090         struct kevent ke;
      -00091         log(DEBUG,"kqueue: Add socket to events, kq=%d socket=%d",EngineHandle,fd);
      +00091         log(DEBUG,"kqueue: Add socket to events, kq=%d socket=%d",EngineHandle,fd);
       00092         EV_SET(&ke, fd, readable ? EVFILT_READ : EVFILT_WRITE, EV_ADD, 0, 0, NULL);
       00093         int i = kevent(EngineHandle, &ke, 1, 0, 0, NULL);
       00094         if (i == -1)
       00095         {
      -00096                 log(DEBUG,"kqueue: List insertion failure!");
      +00096                 log(DEBUG,"kqueue: List insertion failure!");
       00097                 return false;
       00098         }
       00099 #endif
      @@ -262,10 +262,10 @@ Delete a file descriptor f rom the engine This function call deletes a file desc
       

      Definition at line 103 of file socketengine.cpp.

      -References DEBUG, EngineHandle, fds, ref, and X_READBIT. +References DEBUG, EngineHandle, fds, log(), ref, and X_READBIT.

      -Referenced by InspSocket::Poll(), and Server::UserToPseudo().

      00104 {
      -00105         log(DEBUG,"SocketEngine::DelFd(%d)",fd);
      +Referenced by InspSocket::Poll(), and Server::UserToPseudo().
      00104 {
      +00105         log(DEBUG,"SocketEngine::DelFd(%d)",fd);
       00106 
       00107         if ((fd < 0) || (fd > 65535))
       00108                 return false;
      @@ -276,7 +276,7 @@ Referenced by InspSocket::Po
       00113                 if (*i == fd)
       00114                 {
       00115                         fds.erase(i);
      -00116                         log(DEBUG,"Deleted fd %d",fd);
      +00116                         log(DEBUG,"Deleted fd %d",fd);
       00117                         found = true;
       00118                         break;
       00119                 }
      @@ -287,7 +287,7 @@ Referenced by InspSocket::Po
       00124         int i = kevent(EngineHandle, &ke, 1, 0, 0, NULL);
       00125         if (i == -1)
       00126         {
      -00127                 log(DEBUG,"kqueue: Failed to remove socket from queue!");
      +00127                 log(DEBUG,"kqueue: Failed to remove socket from queue!");
       00128                 return false;
       00129         }
       00130 #endif
      @@ -298,7 +298,7 @@ Referenced by InspSocket::Po
       00135         int i = epoll_ctl(EngineHandle, EPOLL_CTL_DEL, fd, &ev);
       00136         if (i < 0)
       00137         {
      -00138                 log(DEBUG,"epoll: List deletion failure!");
      +00138                 log(DEBUG,"epoll: List deletion failure!");
       00139                 return false;
       00140         }
       00141 #endif
      @@ -589,7 +589,7 @@ Referenced by Wait()
       
      The documentation for this class was generated from the following files:
      -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index 807f49cea..40a66249f 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -15,7 +15,7 @@ RevisionVersion Version(int major, int minor, int revision, int build, int flags)Version ~classbase()classbase [inline] -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 245964d99..2b39d5d5b 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -97,7 +97,7 @@ Definition at line 113 of

      -Definition at line 167 of file modules.cpp.

      00167 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { };
      +Definition at line 159 of file modules.cpp.
      00159 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { };
       

      @@ -231,7 +231,7 @@ Definition at line 116 of


      The documentation for this class was generated from the following files: -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classWhoWasUser-members.html b/docs/module-doc/classWhoWasUser-members.html index d7492b9e1..59a557a52 100644 --- a/docs/module-doc/classWhoWasUser-members.html +++ b/docs/module-doc/classWhoWasUser-members.html @@ -13,7 +13,7 @@ nickWhoWasUser serverWhoWasUser signonWhoWasUser -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classWhoWasUser.html b/docs/module-doc/classWhoWasUser.html index 31b53e3e2..5eb8091ac 100644 --- a/docs/module-doc/classWhoWasUser.html +++ b/docs/module-doc/classWhoWasUser.html @@ -212,7 +212,7 @@ Definition at line 341 of f
      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classXLine-members.html b/docs/module-doc/classXLine-members.html index d17c0a1c6..e31a65ea8 100644 --- a/docs/module-doc/classXLine-members.html +++ b/docs/module-doc/classXLine-members.html @@ -14,7 +14,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index 813b8cac1..4d4260822 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -185,7 +185,7 @@ Definition at line 53 of fi
      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classZLine-members.html b/docs/module-doc/classZLine-members.html index 2e483c05d..0fc18f1ee 100644 --- a/docs/module-doc/classZLine-members.html +++ b/docs/module-doc/classZLine-members.html @@ -16,7 +16,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index 769ce9807..bdc481060 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -92,7 +92,7 @@ Definition at line 108 of f
      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index 3cc7f0f90..bcca4f16a 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -34,7 +34,7 @@ topicsetchanrec ~chanrec()chanrec [inline, virtual] ~classbase()classbase [inline] -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index eaa2780f0..97d321cf6 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -94,7 +94,7 @@ This class represents a channel, and contains its name, modes, time created, top

      -Definition at line 101 of file channels.h.


      Constructor & Destructor Documentation

      +Definition at line 103 of file channels.h.

      Constructor & Destructor Documentation

      @@ -123,18 +123,18 @@ Creates a channel record and initialises it with default values.

      -Definition at line 73 of file channels.cpp. +Definition at line 74 of file channels.cpp.

      -References binarymodes, created, custom_modes, internal_userlist, key, limit, name, setby, topic, and topicset.

      00074 {
      -00075         strcpy(name,"");
      -00076         strcpy(custom_modes,"");
      -00077         strcpy(topic,"");
      -00078         strcpy(setby,"");
      -00079         strcpy(key,"");
      -00080         created = topicset = limit = 0;
      -00081         binarymodes = 0;
      -00082         internal_userlist.clear();
      -00083 }
      +References binarymodes, created, custom_modes, internal_userlist, key, limit, name, setby, topic, and topicset.
      00075 {
      +00076         strcpy(name,"");
      +00077         strcpy(custom_modes,"");
      +00078         strcpy(topic,"");
      +00079         strcpy(setby,"");
      +00080         strcpy(key,"");
      +00081         created = topicset = limit = 0;
      +00082         binarymodes = 0;
      +00083         internal_userlist.clear();
      +00084 }
       

      @@ -166,7 +166,7 @@ References binarymodes,

      -Definition at line 224 of file channels.h.

      00224 { /* stub */ }
      +Definition at line 226 of file channels.h.
      00226 { /* stub */ }
       

      @@ -207,12 +207,14 @@ Add a user pointer to the internal reference list. The data inserted into the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison.

      -Definition at line 166 of file channels.cpp. +Definition at line 167 of file channels.cpp.

      -References DEBUG, and internal_userlist.

      00167 {
      -00168         internal_userlist.push_back(castuser);
      -00169         log(DEBUG,"Added casted user to channel's internal list");
      -00170 }
      +References DEBUG, internal_userlist, and log().
      +

      +Referenced by ForceChan().

      00168 {
      +00169         internal_userlist.push_back(castuser);
      +00170         log(DEBUG,"Added casted user to channel's internal list");
      +00171 }
       

      @@ -252,20 +254,22 @@ Delete a user pointer to the internal reference list. The data removed from the reference list is a table as it is an arbitary pointer compared to other users by its memory address, as this is a very fast 32 or 64 bit integer comparison.

      -Definition at line 172 of file channels.cpp. -

      -References DEBUG, internal_userlist, and name.

      00173 {
      -00174         for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++)
      -00175         {
      -00176                 if (*a == castuser)
      -00177                 {
      -00178                         log(DEBUG,"Removed casted user from channel's internal list");
      -00179                         internal_userlist.erase(a);
      -00180                         return;
      -00181                 }
      -00182         }
      -00183         log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name);
      -00184 }
      +Definition at line 173 of file channels.cpp.
      +

      +References DEBUG, internal_userlist, log(), and name. +

      +Referenced by del_channel(), and kick_channel().

      00174 {
      +00175         for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++)
      +00176         {
      +00177                 if (*a == castuser)
      +00178                 {
      +00179                         log(DEBUG,"Removed casted user from channel's internal list");
      +00180                         internal_userlist.erase(a);
      +00181                         return;
      +00182                 }
      +00183         }
      +00184         log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name);
      +00185 }
       

      @@ -307,21 +311,21 @@ For example if "+L #foo" is set, and you pass this method 'L', it will return 'f

      Returns:
      The parameter for this mode is returned, or an empty string

      -Definition at line 146 of file channels.cpp. -

      -References custom_mode_params.

      00147 {
      -00148         if (custom_mode_params.size())
      -00149         {
      -00150                 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
      -00151                 {
      -00152                         if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
      -00153                         {
      -00154                                 return i->parameter;
      -00155                         }
      -00156                 }
      -00157         }
      -00158         return "";
      -00159 }
      +Definition at line 147 of file channels.cpp.
      +

      +References custom_mode_params.

      00148 {
      +00149         if (custom_mode_params.size())
      +00150         {
      +00151                 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
      +00152                 {
      +00153                         if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
      +00154                         {
      +00155                                 return i->parameter;
      +00156                         }
      +00157                 }
      +00158         }
      +00159         return "";
      +00160 }
       

      @@ -356,9 +360,9 @@ Obtain the channel "user counter" This returns the channel reference counter, wh

      Returns:
      The number of users on this channel

      -Definition at line 161 of file channels.cpp.

      00162 {
      -00163         return (this->internal_userlist.size());
      -00164 }
      +Definition at line 162 of file channels.cpp.
      00163 {
      +00164         return (this->internal_userlist.size());
      +00165 }
       

      @@ -394,13 +398,13 @@ These are used for rapid comparison to determine channel membership for PRIVMSG,

      Returns:
      This function returns a vector of userrec pointers, each of which has been casted to char* to prevent circular references

      -Definition at line 186 of file channels.cpp. +Definition at line 187 of file channels.cpp.

      -References internal_userlist. +References internal_userlist.

      -Referenced by Server::GetUsers().

      00187 {
      -00188         return &internal_userlist;
      -00189 }
      +Referenced by Server::GetUsers().
      00188 {
      +00189         return &internal_userlist;
      +00190 }
       

      @@ -441,9 +445,9 @@ Returns true if a custom mode is set on a channel.

      Returns:
      True if the custom mode is set, false if otherwise

      -Definition at line 141 of file channels.cpp.

      00142 {
      -00143         return (strchr(this->custom_modes,mode));
      -00144 }
      +Definition at line 142 of file channels.cpp.
      00143 {
      +00144         return (strchr(this->custom_modes,mode));
      +00145 }
       

      @@ -493,30 +497,30 @@ Sets or unsets a custom mode in the channels info.

      -Definition at line 85 of file channels.cpp. -

      -References custom_modes, DEBUG, and SetCustomModeParam().

      00086 {
      -00087         if (mode_on) {
      -00088                 static char m[3];
      -00089                 m[0] = mode;
      -00090                 m[1] = '\0';
      -00091                 if (!strchr(this->custom_modes,mode))
      -00092                 {
      -00093                         strlcat(custom_modes,m,MAXMODES);
      -00094                 }
      -00095                 log(DEBUG,"Custom mode %c set",mode);
      -00096         }
      -00097         else {
      -00098 
      -00099                 std::string a = this->custom_modes;
      -00100                 int pos = a.find(mode);
      -00101                 a.erase(pos,1);
      -00102                 strncpy(this->custom_modes,a.c_str(),MAXMODES);
      -00103 
      -00104                 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes);
      -00105                 this->SetCustomModeParam(mode,"",false);
      -00106         }
      -00107 }
      +Definition at line 86 of file channels.cpp.
      +

      +References custom_modes, DEBUG, log(), and SetCustomModeParam().

      00087 {
      +00088         if (mode_on) {
      +00089                 static char m[3];
      +00090                 m[0] = mode;
      +00091                 m[1] = '\0';
      +00092                 if (!strchr(this->custom_modes,mode))
      +00093                 {
      +00094                         strlcat(custom_modes,m,MAXMODES);
      +00095                 }
      +00096                 log(DEBUG,"Custom mode %c set",mode);
      +00097         }
      +00098         else {
      +00099 
      +00100                 std::string a = this->custom_modes;
      +00101                 int pos = a.find(mode);
      +00102                 a.erase(pos,1);
      +00103                 strncpy(this->custom_modes,a.c_str(),MAXMODES);
      +00104 
      +00105                 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes);
      +00106                 this->SetCustomModeParam(mode,"",false);
      +00107         }
      +00108 }
       

      @@ -573,39 +577,39 @@ Sets or unsets the parameters for a custom mode in a channels info.

      -Definition at line 110 of file channels.cpp. -

      -References ModeParameter::channel, custom_mode_params, DEBUG, ModeParameter::mode, and ModeParameter::parameter. -

      -Referenced by SetCustomMode().

      00111 {
      -00112 
      -00113         log(DEBUG,"SetCustomModeParam called");
      -00114         ModeParameter M;
      -00115         M.mode = mode;
      -00116         strlcpy(M.channel,this->name,CHANMAX);
      -00117         strlcpy(M.parameter,parameter,MAXBUF);
      -00118         if (mode_on)
      -00119         {
      -00120                 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter);
      -00121                 custom_mode_params.push_back(M);
      -00122         }
      -00123         else
      -00124         {
      -00125                 if (custom_mode_params.size())
      -00126                 {
      -00127                         for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
      -00128                         {
      -00129                                 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
      -00130                                 {
      -00131                                         log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter);
      -00132                                         custom_mode_params.erase(i);
      -00133                                         return;
      -00134                                 }
      -00135                         }
      -00136                 }
      -00137                 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!");
      -00138         }
      -00139 }
      +Definition at line 111 of file channels.cpp.
      +

      +References ModeParameter::channel, custom_mode_params, DEBUG, log(), ModeParameter::mode, and ModeParameter::parameter. +

      +Referenced by SetCustomMode().

      00112 {
      +00113 
      +00114         log(DEBUG,"SetCustomModeParam called");
      +00115         ModeParameter M;
      +00116         M.mode = mode;
      +00117         strlcpy(M.channel,this->name,CHANMAX);
      +00118         strlcpy(M.parameter,parameter,MAXBUF);
      +00119         if (mode_on)
      +00120         {
      +00121                 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter);
      +00122                 custom_mode_params.push_back(M);
      +00123         }
      +00124         else
      +00125         {
      +00126                 if (custom_mode_params.size())
      +00127                 {
      +00128                         for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
      +00129                         {
      +00130                                 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
      +00131                                 {
      +00132                                         log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter);
      +00133                                         custom_mode_params.erase(i);
      +00134                                         return;
      +00135                                 }
      +00136                         }
      +00137                 }
      +00138                 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!");
      +00139         }
      +00140 }
       

      @@ -636,7 +640,9 @@ The list of all bans set on the channel.

      -Definition at line 149 of file channels.h. +Definition at line 151 of file channels.h. +

      +Referenced by add_channel().

      @@ -663,9 +669,9 @@ Contains a bitmask of the CM_* builtin (RFC) binary mode symbols.

      -Definition at line 145 of file channels.h. +Definition at line 147 of file channels.h.

      -Referenced by chanrec(). +Referenced by add_channel(), and chanrec().

      @@ -692,9 +698,9 @@ Creation time.

      -Definition at line 123 of file channels.h. +Definition at line 125 of file channels.h.

      -Referenced by chanrec(). +Referenced by chanrec().

      @@ -721,9 +727,9 @@ Custom modes for the channel.

      Plugins may use this field in any way they see fit.

      -Definition at line 110 of file channels.h. +Definition at line 112 of file channels.h.

      -Referenced by chanrec(), and SetCustomMode(). +Referenced by chanrec(), and SetCustomMode().

      @@ -750,9 +756,9 @@ User list (casted to char*'s to stop forward declaration stuff) (chicken and egg

      -Definition at line 115 of file channels.h. +Definition at line 117 of file channels.h.

      -Referenced by AddUser(), chanrec(), DelUser(), and GetUsers(). +Referenced by AddUser(), chanrec(), DelUser(), and GetUsers().

      @@ -779,9 +785,9 @@ Contains the channel key.

      If this value is an empty string, there is no channel key in place.

      -Definition at line 141 of file channels.h. +Definition at line 143 of file channels.h.

      -Referenced by chanrec(). +Referenced by add_channel(), and chanrec().

      @@ -808,9 +814,9 @@ Contains the channel user limit.

      If this value is zero, there is no limit in place.

      -Definition at line 136 of file channels.h. +Definition at line 138 of file channels.h.

      -Referenced by chanrec(). +Referenced by add_channel(), and chanrec().

      @@ -837,9 +843,9 @@ The channels name.

      -Definition at line 106 of file channels.h. +Definition at line 108 of file channels.h.

      -Referenced by chanrec(), DelUser(), and Server::PseudoToUser(). +Referenced by add_channel(), chanrec(), del_channel(), DelUser(), ForceChan(), kick_channel(), and Server::PseudoToUser().

      @@ -866,9 +872,9 @@ The last user to set the topic.

      If this member is an empty string, no topic was ever set.

      -Definition at line 131 of file channels.h. +Definition at line 133 of file channels.h.

      -Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(), ForceChan(), and Server::PseudoToUser().

      @@ -895,9 +901,9 @@ Channel topic.

      If this is an empty string, no channel topic is set.

      -Definition at line 120 of file channels.h. +Definition at line 122 of file channels.h.

      -Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(), ForceChan(), and Server::PseudoToUser().

      @@ -924,14 +930,14 @@ Time topic was set.

      If no topic was ever set, this will be equal to chanrec::created

      -Definition at line 127 of file channels.h. +Definition at line 129 of file channels.h.

      -Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(), ForceChan(), and Server::PseudoToUser().


      The documentation for this class was generated from the following files: -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index 501d7adb1..a24bd7491 100644 --- a/docs/module-doc/classclassbase-members.html +++ b/docs/module-doc/classclassbase-members.html @@ -9,7 +9,7 @@ ageclassbase classbase()classbase [inline] ~classbase()classbase [inline] -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index db3b992fd..795db3524 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -150,7 +150,7 @@ Referenced by classbase().
      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classcommand__t-members.html b/docs/module-doc/classcommand__t-members.html index 1d7a72aae..fbdbbbb15 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -20,7 +20,7 @@ total_bytescommand_t use_countcommand_t ~classbase()classbase [inline] -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index 51c0d9577..49f4c942a 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -26,7 +26,7 @@ Inheritance diagram for command_t:

      char command [MAXBUF]  Command name.
      -handlerfunc * handler_function +handlerfunchandler_function  Handler function as in typedef.
      char flags_needed @@ -111,7 +111,7 @@ Definition at line 37 of - +
      handlerfunc* command_t::handler_function handlerfunc* command_t::handler_function
      @@ -242,7 +242,7 @@ Definition at line 43 of
      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index cdf28dcb6..f52b9977f 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -28,7 +28,7 @@ Shrink(std::string key)Extensible signonconnection ~classbase()classbase [inline] -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index bf0ea2c46..cdaa102c2 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -258,7 +258,7 @@ File descriptor of the connection.

      Definition at line 42 of file connection.h.

      -Referenced by connection(), ConfigReader::DumpErrors(), Server::PseudoToUser(), Server::SendTo(), userrec::userrec(), and Server::UserToPseudo(). +Referenced by add_channel(), connection(), ConfigReader::DumpErrors(), kick_channel(), Server::PseudoToUser(), Server::SendTo(), userrec::userrec(), and Server::UserToPseudo().

      @@ -316,7 +316,7 @@ Not used if this is a serverrec

      Definition at line 46 of file connection.h.

      -Referenced by userrec::GetFullRealHost(), Server::PseudoToUser(), userrec::userrec(), and Server::UserToPseudo(). +Referenced by userrec::GetFullRealHost(), Server::PseudoToUser(), userrec::userrec(), and Server::UserToPseudo().

      @@ -524,7 +524,7 @@ Referenced by userrec::userre


      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index aa4fe2804..87df799cc 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -10,24 +10,24 @@
        A  
        D  
        H  
      -ModeParameter   StrHashComp (irc)   Admin   DNS   hash< in_addr > (nspace)   Module   
        U  
      -
        B  
      -dns_ip4list   hash< string > (nspace)   ModuleFactory   ucrec   BanItem   
        E  
      -HostItem   ModuleMessage   userrec   BoolSet   ELine   
        I  
      -
        Q  
      +
        M  
      +SocketEngine   Admin   DNS   hash< in_addr > (nspace)   ModeParameter   StrHashComp (irc)   
        B  
      +dns_ip4list   hash< string > (nspace)   Module   
        U  
      +BanItem   
        E  
      +HostItem   ModuleFactory   ucrec   BoolSet   ELine   
        I  
      +ModuleMessage   userrec   
        C  
      +Event   InAddr_HashComp (irc)   
        Q  
        V  
      -
        C  
      -Event   InAddr_HashComp (irc)   QLine   Version   chanrec   ExemptItem   InspSocket   
        R  
      +chanrec   ExemptItem   InspIRCd   QLine   Version   char_traits (std)   Extensible   InspSocket   
        R  
        W  
      -char_traits (std)   Extensible   Invited   Request   WhoWasUser   classbase   ExtMode   InviteItem   
        S  
      +classbase   ExtMode   Invited   Request   WhoWasUser   command_t   
        F  
      +InviteItem   
        S  
        X  
      -command_t   
        F  
      -irc_char_traits (irc)   Server   XLine   ConfigReader   FileReader   
        K  
      +ConfigReader   FileReader   irc_char_traits (irc)   Server   XLine   ConnectClass   
        G  
      +
        K  
      ServerConfig   
        Z  
      -ConnectClass   
        G  
      -KLine   SocketEngine   ZLine   connection   GLine   
        M  
      -

      A | B | C | D | E | F | G | H | I | K | M | Q | R | S | U | V | W | X | Z

      -


      Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +connection   GLine   KLine   serverstats   ZLine   

      A | B | C | D | E | F | G | H | I | K | M | Q | R | S | U | V | W | X | Z

      +


      Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classserverstats-members.html b/docs/module-doc/classserverstats-members.html new file mode 100644 index 000000000..c214ec3a5 --- /dev/null +++ b/docs/module-doc/classserverstats-members.html @@ -0,0 +1,24 @@ + + +InspIRCd: Member List + + + + +

      serverstats Member List

      This is the complete list of members for serverstats, including all inherited members.

      + + + + + + + + + + + +
      serverstats()serverstats [inline]
      statsAcceptserverstats
      statsCollisionsserverstats
      statsConnectsserverstats
      statsDnsserverstats
      statsDnsBadserverstats
      statsDnsGoodserverstats
      statsRecvserverstats
      statsRefusedserverstats
      statsSentserverstats
      statsUnknownserverstats


      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
      + + diff --git a/docs/module-doc/classserverstats.html b/docs/module-doc/classserverstats.html new file mode 100644 index 000000000..339a96961 --- /dev/null +++ b/docs/module-doc/classserverstats.html @@ -0,0 +1,359 @@ + + +InspIRCd: serverstats Class Reference + + + + +

      serverstats Class Reference

      #include <inspircd.h> +

      +Collaboration diagram for serverstats:

      Collaboration graph
      +
      [legend]
      List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + +

      Public Member Functions

       serverstats ()

      Public Attributes

      int statsAccept
      int statsRefused
      int statsUnknown
      int statsCollisions
      int statsDns
      int statsDnsGood
      int statsDnsBad
      int statsConnects
      int statsSent
      int statsRecv
      +

      Detailed Description

      + +

      + +

      +Definition at line 72 of file inspircd.h.


      Constructor & Destructor Documentation

      +

      + + + + +
      + + + + + + + + +
      serverstats::serverstats  )  [inline]
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 86 of file inspircd.h. +

      +References statsAccept, statsCollisions, statsConnects, statsDns, statsDnsBad, statsDnsGood, statsRecv, statsRefused, statsSent, and statsUnknown.

      00087         {
      +00088                 statsAccept = statsRefused = statsUnknown = 0;
      +00089                 statsCollisions = statsDns = statsDnsGood = 0;
      +00090                 statsDnsBad = statsConnects = statsSent = statsRecv = 0;
      +00091         }
      +
      +

      +

      +


      Member Data Documentation

      +

      + + + + +
      + + + + +
      int serverstats::statsAccept
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 75 of file inspircd.h. +

      +Referenced by serverstats().

      +

      + + + + +
      + + + + +
      int serverstats::statsCollisions
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 78 of file inspircd.h. +

      +Referenced by serverstats().

      +

      + + + + +
      + + + + +
      int serverstats::statsConnects
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 82 of file inspircd.h. +

      +Referenced by serverstats().

      +

      + + + + +
      + + + + +
      int serverstats::statsDns
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 79 of file inspircd.h. +

      +Referenced by serverstats().

      +

      + + + + +
      + + + + +
      int serverstats::statsDnsBad
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 81 of file inspircd.h. +

      +Referenced by serverstats().

      +

      + + + + +
      + + + + +
      int serverstats::statsDnsGood
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 80 of file inspircd.h. +

      +Referenced by serverstats().

      +

      + + + + +
      + + + + +
      int serverstats::statsRecv
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 84 of file inspircd.h. +

      +Referenced by serverstats().

      +

      + + + + +
      + + + + +
      int serverstats::statsRefused
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 76 of file inspircd.h. +

      +Referenced by serverstats().

      +

      + + + + +
      + + + + +
      int serverstats::statsSent
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 83 of file inspircd.h. +

      +Referenced by serverstats().

      +

      + + + + +
      + + + + +
      int serverstats::statsUnknown
      +
      + + + + + +
      +   + + +

      + +

      +Definition at line 77 of file inspircd.h. +

      +Referenced by serverstats().

      +


      The documentation for this class was generated from the following file: +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
      + + diff --git a/docs/module-doc/classserverstats__coll__graph.gif b/docs/module-doc/classserverstats__coll__graph.gif new file mode 100644 index 000000000..337b49865 Binary files /dev/null and b/docs/module-doc/classserverstats__coll__graph.gif differ diff --git a/docs/module-doc/classserverstats__coll__graph.map b/docs/module-doc/classserverstats__coll__graph.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/classserverstats__coll__graph.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/classserverstats__coll__graph.md5 b/docs/module-doc/classserverstats__coll__graph.md5 new file mode 100644 index 000000000..bebb257cf --- /dev/null +++ b/docs/module-doc/classserverstats__coll__graph.md5 @@ -0,0 +1 @@ +0d72c6ae7afecc93452896afbba8a691 \ No newline at end of file diff --git a/docs/module-doc/classstd_1_1char__traits.html b/docs/module-doc/classstd_1_1char__traits.html index 880c4e4ee..f89c32613 100644 --- a/docs/module-doc/classstd_1_1char__traits.html +++ b/docs/module-doc/classstd_1_1char__traits.html @@ -14,7 +14,7 @@
      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index a5c3c529a..7b2e09572 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -13,7 +13,7 @@ ucrec()ucrec [inline] ~classbase()classbase [inline] ~ucrec()ucrec [inline, virtual] -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index 67682559c..96fce0cc8 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -41,7 +41,7 @@ The uc_modes member holds a bitmask of which privilages the user has on the chan

      -Definition at line 241 of file channels.h.


      Constructor & Destructor Documentation

      +Definition at line 243 of file channels.h.

      Constructor & Destructor Documentation

      @@ -68,7 +68,7 @@ Definition at line 241 o

      -Definition at line 254 of file channels.h.

      00254 { /* stub */ }
      +Definition at line 256 of file channels.h.
      00256 { /* stub */ }
       

      @@ -100,7 +100,7 @@ Definition at line 254 o

      -Definition at line 255 of file channels.h.

      00255 { /* stub */ }
      +Definition at line 257 of file channels.h.
      00257 { /* stub */ }
       

      @@ -131,7 +131,9 @@ Points to the channel record where the given modes apply.

      If the record is not in use, this value will be NULL.

      -Definition at line 252 of file channels.h. +Definition at line 254 of file channels.h. +

      +Referenced by ForceChan().

      @@ -158,12 +160,14 @@ Contains a bitmask of the UCMODE_OP .

      .. UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon the channel.

      -Definition at line 247 of file channels.h. +Definition at line 249 of file channels.h. +

      +Referenced by ForceChan().


      The documentation for this class was generated from the following file: -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index 5a1fa02a5..6779391fd 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -70,7 +70,7 @@ WriteErroruserrec ~classbase()classbase [inline] ~userrec()userrec [virtual] -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index 9592f072d..dda1f1255 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -182,7 +182,7 @@ Definition at line 111 of f

      Definition at line 36 of file users.cpp.

      -References awaymsg, connection::bytes_in, connection::bytes_out, chans, connection::cmds_in, connection::cmds_out, dhost, dns_done, connection::fd, flood, fullname, connection::haspassed, connection::host, ident, connection::idle_lastmsg, invites, connection::ip, connection::lastping, lines_in, modes, nick, connection::nping, oper, connection::port, recvq, connection::registered, reset_due, sendq, server, ServerConfig::ServerName, connection::signon, TIME, and timeout.

      00037 {
      +References awaymsg, connection::bytes_in, connection::bytes_out, chans, connection::cmds_in, connection::cmds_out, dhost, dns_done, connection::fd, FindServerNamePtr(), flood, fullname, connection::haspassed, connection::host, ident, connection::idle_lastmsg, invites, connection::ip, connection::lastping, lines_in, modes, nick, connection::nping, oper, connection::port, recvq, connection::registered, reset_due, sendq, server, ServerConfig::ServerName, connection::signon, TIME, and timeout.
      00037 {
       00038         // the PROPER way to do it, AVOID bzero at *ALL* costs
       00039         strcpy(nick,"");
       00040         strcpy(ip,"127.0.0.1");
      @@ -192,7 +192,7 @@ References awaymsg, 00044         strcpy(dhost,"");
       00045         strcpy(fullname,"");
       00046         strcpy(modes,"");
      -00047         server = (char*)FindServerNamePtr(Config->ServerName);
      +00047         server = (char*)FindServerNamePtr(Config->ServerName);
       00048         strcpy(awaymsg,"");
       00049         strcpy(oper,"");
       00050         reset_due = TIME;
      @@ -276,7 +276,7 @@ The buffer can grow to any size within limits of the available memory, managed b
       

      Definition at line 198 of file users.cpp.

      -References recvq, recvqmax, and SetWriteError().

      00199 {
      +References recvq, recvqmax, SetWriteError(), and WriteOpers().
      00199 {
       00200         std::string b = "";
       00201         for (unsigned int i = 0; i < a.length(); i++)
       00202                 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7))
      @@ -294,7 +294,7 @@ References recvq, 00214         if (recvq.length() > (unsigned)this->recvqmax)
       00215         {
       00216                 this->SetWriteError("RecvQ exceeded");
      -00217                 WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax);
      +00217                 WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax);
       00218         }
       00219         // return false if we've had more than 600 characters WITHOUT
       00220         // a carriage return (this is BAD, drop the socket)
      @@ -336,12 +336,12 @@ You may add any amount of text up to this users sendq value, if you exceed the s
       

      Definition at line 254 of file users.cpp.

      -References sendq, sendqmax, and SetWriteError().

      00255 {
      +References sendq, sendqmax, SetWriteError(), and WriteOpers().
      00255 {
       00256         if (this->GetWriteError() != "")
       00257                 return;
       00258         if (sendq.length() + data.length() > (unsigned)this->sendqmax)
       00259         {
      -00260                 WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax);
      +00260                 WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax);
       00261                 this->SetWriteError("SendQ exceeded");
       00262                 return;
       00263         }
      @@ -427,7 +427,7 @@ Definition at line 232 of
       

      References recvq.

      -Referenced by Server::PseudoToUser(), and Server::UserToPseudo().

      00233 {
      +Referenced by Server::PseudoToUser(), and Server::UserToPseudo().
      00233 {
       00234         recvq = "";
       00235 }
       
      @@ -607,7 +607,9 @@ Returns the full displayed host of the user This member function returns the hos

      Definition at line 72 of file users.cpp.

      -References dhost, ident, and nick.

      00073 {
      +References dhost, ident, and nick.
      +

      +Referenced by add_channel().

      00073 {
       00074         static char result[MAXBUF];
       00075         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost);
       00076         return result;
      @@ -892,7 +894,9 @@ Returns true if a user is invited to a channel.
       

      Definition at line 96 of file users.cpp.

      -References invites.

      00097 {
      +References invites.
      +

      +Referenced by add_channel().

      00097 {
       00098         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
       00099         {
       00100                 if (i->channel) {
      @@ -990,8 +994,10 @@ This member function is called on successfully joining an invite only channel to
       

      Definition at line 122 of file users.cpp.

      -References DEBUG, and invites.

      00123 {
      -00124         log(DEBUG,"Removing invites");
      +References DEBUG, invites, and log().
      +

      +Referenced by add_channel().

      00123 {
      +00124         log(DEBUG,"Removing invites");
       00125         if (channel)
       00126         {
       00127                 if (invites.size())
      @@ -1046,10 +1052,10 @@ This is done because the actual disconnect of a client may occur at an inopportu
       

      Definition at line 292 of file users.cpp.

      -References DEBUG, and WriteError. +References DEBUG, log(), and WriteError.

      Referenced by AddBuffer(), AddWriteBuf(), and FlushWriteBuf().

      00293 {
      -00294         log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str());
      +00294         log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str());
       00295         // don't try to set the error twice, its already set take the first string.
       00296         if (this->WriteError == "")
       00297                 this->WriteError = error;
      @@ -1113,7 +1119,7 @@ Referenced by userrec().
       

      Definition at line 149 of file users.h.

      -Referenced by Server::PseudoToUser(), and userrec(). +Referenced by add_channel(), del_channel(), kick_channel(), Server::PseudoToUser(), and userrec().

      @@ -1258,7 +1264,7 @@ Two characters are added to the user-defined limit to compensate for the tilde e

      Definition at line 129 of file users.h.

      -Referenced by GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), userrec(), and Server::UserToPseudo(). +Referenced by GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), userrec(), and Server::UserToPseudo().

      @@ -1345,7 +1351,7 @@ This may contain any of the following RFC characters: o, w, s, i Your module may

      Definition at line 147 of file users.h.

      -Referenced by userrec(). +Referenced by add_channel(), and userrec().

      @@ -1374,7 +1380,7 @@ An invalid nickname indicates an unregistered connection prior to the NICK comma

      Definition at line 124 of file users.h.

      -Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), and userrec(). +Referenced by add_channel(), del_channel(), ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), kick_channel(), Server::PseudoToUser(), and userrec().

      @@ -1629,7 +1635,7 @@ The server the user is connected to.

      Definition at line 153 of file users.h.

      -Referenced by userrec(). +Referenced by kick_channel(), and userrec().

      @@ -1715,7 +1721,7 @@ Referenced by GetWriteError()


      The documentation for this class was generated from the following files: -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/commands_8h-source.html b/docs/module-doc/commands_8h-source.html index 46b8db3d3..e356b5056 100644 --- a/docs/module-doc/commands_8h-source.html +++ b/docs/module-doc/commands_8h-source.html @@ -97,7 +97,7 @@ 00094 void do_whois(userrec* user, userrec* dest,unsigned long signon, unsigned long idle, char* nick); 00095 00096 #endif -

      Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +

      Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/commands_8h.html b/docs/module-doc/commands_8h.html index c960cfd65..d29dad4f9 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -27,8 +27,9 @@ Include dependency graph for commands.h:

      - - + + +

      @@ -232,7 +233,7 @@ Other useful functions.

      -Referenced by Server::CalcDuration(). +Referenced by Server::CalcDuration().

      @@ -2459,10 +2460,10 @@ Functions for u:lined servers.

      -Referenced by userrec::HasPermission(), and Server::IsUlined(). +Referenced by userrec::HasPermission(), Server::IsUlined(), and kick_channel(). -


      Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:15 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/commands_8h__dep__incl.gif b/docs/module-doc/commands_8h__dep__incl.gif index 9c1fd4e97..ce28e5786 100644 Binary files a/docs/module-doc/commands_8h__dep__incl.gif and b/docs/module-doc/commands_8h__dep__incl.gif differ diff --git a/docs/module-doc/commands_8h__dep__incl.map b/docs/module-doc/commands_8h__dep__incl.map index 40f4817a8..26890d2cd 100644 --- a/docs/module-doc/commands_8h__dep__incl.map +++ b/docs/module-doc/commands_8h__dep__incl.map @@ -1,3 +1,4 @@ base referer -rect $modules_8cpp-source.html 154,7 252,34 -rect $users_8cpp-source.html 163,58 243,84 +rect $channels_8cpp-source.html 155,7 253,33 +rect $modules_8cpp-source.html 155,57 253,84 +rect $users_8cpp-source.html 164,108 244,135 diff --git a/docs/module-doc/commands_8h__dep__incl.md5 b/docs/module-doc/commands_8h__dep__incl.md5 index f583a9c38..d45b67fd3 100644 --- a/docs/module-doc/commands_8h__dep__incl.md5 +++ b/docs/module-doc/commands_8h__dep__incl.md5 @@ -1 +1 @@ -ccb4ab234f9170cb8c946ac0da24c81d \ No newline at end of file +779a17861bcecad946539378f1f9eeb8 \ No newline at end of file diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index 35ad1f235..e4e28adff 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -82,7 +82,7 @@ 00107 #endif 00108 00109 -

      Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +

      Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index 62f2424db..bc368f1b1 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -31,16 +31,8 @@ Include dependency graph for connection.h:

      - - - - - - - - - - + +

      @@ -51,7 +43,7 @@ This graph shows which files directly or indirectly include this file:

       Please note: classes serverrec and userrec both inherit from class connection. More...
      -
      Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:15 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/connection_8h__dep__incl.gif b/docs/module-doc/connection_8h__dep__incl.gif index c64a82a3c..7b447f6ad 100644 Binary files a/docs/module-doc/connection_8h__dep__incl.gif and b/docs/module-doc/connection_8h__dep__incl.gif differ diff --git a/docs/module-doc/connection_8h__dep__incl.map b/docs/module-doc/connection_8h__dep__incl.map index c3efed18d..537d63375 100644 --- a/docs/module-doc/connection_8h__dep__incl.map +++ b/docs/module-doc/connection_8h__dep__incl.map @@ -1,11 +1,3 @@ base referer -rect $users_8cpp-source.html 434,57 514,84 -rect $users_8h-source.html 155,235 219,261 -rect $channels_8cpp-source.html 424,387 523,413 -rect $modules_8cpp-source.html 424,285 523,312 -rect $commands_8h-source.html 272,108 371,135 -rect $message_8h-source.html 279,361 364,388 -rect $mode_8h-source.html 288,412 355,439 -rect $typedefs_8h-source.html 279,159 364,185 -rect $userprocess_8h-source.html 270,209 374,236 -rect $xline_8h-source.html 291,311 352,337 +rect $users_8cpp-source.html 268,32 348,59 +rect $users_8h-source.html 155,58 219,84 diff --git a/docs/module-doc/connection_8h__dep__incl.md5 b/docs/module-doc/connection_8h__dep__incl.md5 index 613f1d7f7..f230951e3 100644 --- a/docs/module-doc/connection_8h__dep__incl.md5 +++ b/docs/module-doc/connection_8h__dep__incl.md5 @@ -1 +1 @@ -c5ffe3853fdba64837971f3d30d71f14 \ No newline at end of file +48392e1e3cdad2c3fa929f7ffbab3e13 \ No newline at end of file diff --git a/docs/module-doc/ctables_8h-source.html b/docs/module-doc/ctables_8h-source.html index 7f6998b81..e0a06f50f 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -27,14 +27,14 @@ 00018 #define __CTABLES_H__ 00019 00020 #include "inspircd_config.h" -00021 #include "inspircd.h" +00021 #include "inspircd.h" 00022 #include "base.h" 00023 00026 class command_t : public Extensible 00027 { 00028 public: 00031 char command[MAXBUF]; -00034 handlerfunc *handler_function; +00034 handlerfunc *handler_function; 00037 char flags_needed; 00040 int min_params; 00043 long use_count; @@ -44,7 +44,7 @@ 00051 00052 #endif 00053 -

      Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +

      Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index eddf9defc..0c38e802d 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -8,22 +8,23 @@

      ctables.h File Reference

      #include "inspircd_config.h"
      -#include "inspircd.h"
      +#include "inspircd.h"
      #include "base.h"

      Include dependency graph for ctables.h:

      +

      This graph shows which files directly or indirectly include this file:

      - - - - + + + +

      @@ -34,7 +35,7 @@ This graph shows which files directly or indirectly include this file:

       A structure that defines a command. More...
      -
      Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:16 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/ctables_8h__dep__incl.gif b/docs/module-doc/ctables_8h__dep__incl.gif index 175dc53ee..d91d35317 100644 Binary files a/docs/module-doc/ctables_8h__dep__incl.gif and b/docs/module-doc/ctables_8h__dep__incl.gif differ diff --git a/docs/module-doc/ctables_8h__dep__incl.map b/docs/module-doc/ctables_8h__dep__incl.map index 2b918e669..87b8aefa4 100644 --- a/docs/module-doc/ctables_8h__dep__incl.map +++ b/docs/module-doc/ctables_8h__dep__incl.map @@ -1,5 +1,5 @@ base referer -rect $channels_8cpp-source.html 267,7 365,33 -rect $modules_8cpp-source.html 415,108 513,135 -rect $modules_8h-source.html 133,57 216,84 -rect $typedefs_8h-source.html 273,108 359,135 +rect $channels_8cpp-source.html 400,58 499,84 +rect $modules_8cpp-source.html 400,159 499,186 +rect $modules_8h-source.html 134,108 216,135 +rect $typedefs_8h-source.html 266,58 351,84 diff --git a/docs/module-doc/ctables_8h__dep__incl.md5 b/docs/module-doc/ctables_8h__dep__incl.md5 index 5b3718c8e..3307d14f6 100644 --- a/docs/module-doc/ctables_8h__dep__incl.md5 +++ b/docs/module-doc/ctables_8h__dep__incl.md5 @@ -1 +1 @@ -7aa3594f0112e287bece8166ab6a151c \ No newline at end of file +6858a245b05b677af1e0f72cce2d967f \ No newline at end of file diff --git a/docs/module-doc/ctables_8h__incl.gif b/docs/module-doc/ctables_8h__incl.gif index 4920046dd..60de0f9c6 100644 Binary files a/docs/module-doc/ctables_8h__incl.gif and b/docs/module-doc/ctables_8h__incl.gif differ diff --git a/docs/module-doc/ctables_8h__incl.map b/docs/module-doc/ctables_8h__incl.map index bfaa35cac..413e1a566 100644 --- a/docs/module-doc/ctables_8h__incl.map +++ b/docs/module-doc/ctables_8h__incl.map @@ -1,2 +1,3 @@ base referer +rect $inspircd_8h-source.html 132,57 212,84 rect $base_8h-source.html 141,108 203,135 diff --git a/docs/module-doc/ctables_8h__incl.md5 b/docs/module-doc/ctables_8h__incl.md5 index b510b2d77..8cde4cbba 100644 --- a/docs/module-doc/ctables_8h__incl.md5 +++ b/docs/module-doc/ctables_8h__incl.md5 @@ -1 +1 @@ -d5431bcb76ccd0bce090bde6c22e93eb \ No newline at end of file +4bac505726c8cdd742349b74377d3ac3 \ No newline at end of file diff --git a/docs/module-doc/dir_000000.html b/docs/module-doc/dir_000000.html index e07329a5b..3297fb792 100644 --- a/docs/module-doc/dir_000000.html +++ b/docs/module-doc/dir_000000.html @@ -20,7 +20,7 @@ directory  brain -
      Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/dir_000001.html b/docs/module-doc/dir_000001.html index 9a0e80022..54683974a 100644 --- a/docs/module-doc/dir_000001.html +++ b/docs/module-doc/dir_000001.html @@ -21,7 +21,7 @@ directory  inspircd-cvs -
      Generated on Wed Dec 14 15:55:51 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/dir_000002.html b/docs/module-doc/dir_000002.html index d2f1799fa..68847bb5e 100644 --- a/docs/module-doc/dir_000002.html +++ b/docs/module-doc/dir_000002.html @@ -21,7 +21,7 @@ directory  inspircd -
      Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/dir_000003.html b/docs/module-doc/dir_000003.html index bd1c212a2..6b733d943 100644 --- a/docs/module-doc/dir_000003.html +++ b/docs/module-doc/dir_000003.html @@ -13,7 +13,7 @@ - + @@ -26,7 +26,7 @@ directory  src -
      Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/dir_000003_dep.gif b/docs/module-doc/dir_000003_dep.gif index 8f270fee0..57efe33a6 100644 Binary files a/docs/module-doc/dir_000003_dep.gif and b/docs/module-doc/dir_000003_dep.gif differ diff --git a/docs/module-doc/dir_000003_dep.map b/docs/module-doc/dir_000003_dep.map index 43e9d1dd9..da683e754 100644 --- a/docs/module-doc/dir_000003_dep.map +++ b/docs/module-doc/dir_000003_dep.map @@ -1,7 +1,7 @@ base referer rect dir_000004.html 39,172 111,220 rect dir_000005.html 39,76 111,124 -rect dir_000005_000004.html 75,147 91,160 +rect dir_000005_000004.html 75,147 90,160 rect dir_000005_000004.html 71,168 79,176 rect dir_000003.html 28,55 217,231 rect dir_000002.html 17,17 228,241 diff --git a/docs/module-doc/dir_000004.html b/docs/module-doc/dir_000004.html index f7af0bb30..e22bf124b 100644 --- a/docs/module-doc/dir_000004.html +++ b/docs/module-doc/dir_000004.html @@ -29,8 +29,12 @@ file  dns.h [code] +file  globals.h [code] + file  hashcomp.h [code] +file  inspircd.h [code] + file  inspircd_io.h [code] file  message.h [code] @@ -52,7 +56,7 @@ file  xline.h [code] -
      Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/dir_000005.html b/docs/module-doc/dir_000005.html index b4752fb9d..8e30e0827 100644 --- a/docs/module-doc/dir_000005.html +++ b/docs/module-doc/dir_000005.html @@ -13,7 +13,7 @@ - + @@ -31,7 +31,7 @@ file  users.cpp [code] -
      Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
      Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/dir_000005_000004.html b/docs/module-doc/dir_000005_000004.html index d038bdadd..b97941555 100644 --- a/docs/module-doc/dir_000005_000004.html +++ b/docs/module-doc/dir_000005_000004.html @@ -7,7 +7,7 @@ -

      src → include Relation

      File in home » brain » inspircd-cvs » inspircd » srcIncludes file in home » brain » inspircd-cvs » inspircd » include
      channels.cppctables.h
      channels.cppinspircd_io.h
      channels.cppmessage.h
      channels.cppmode.h
      channels.cppmodules.h
      channels.cppusers.h
      channels.cppxline.h
      modules.cppcommands.h
      modules.cppctables.h
      modules.cpphashcomp.h
      modules.cppinspircd_io.h
      modules.cppmessage.h
      modules.cppmode.h
      modules.cppmodules.h
      modules.cppsocket.h
      modules.cppsocketengine.h
      modules.cpptypedefs.h
      modules.cppusers.h
      modules.cppxline.h
      socket.cppinspircd_io.h
      socket.cppsocket.h
      socket.cppsocketengine.h
      socketengine.cppsocketengine.h
      users.cppchannels.h
      users.cppcommands.h
      users.cppconnection.h
      users.cppusers.h

      Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +

      src → include Relation

      File in home » brain » inspircd-cvs » inspircd » srcIncludes file in home » brain » inspircd-cvs » inspircd » include
      channels.cppcommands.h
      channels.cppctables.h
      channels.cppglobals.h
      channels.cppinspircd.h
      channels.cppinspircd_io.h
      channels.cppmessage.h
      channels.cppmode.h
      channels.cppmodules.h
      channels.cpptypedefs.h
      channels.cppusers.h
      channels.cppxline.h
      modules.cppcommands.h
      modules.cppctables.h
      modules.cppglobals.h
      modules.cpphashcomp.h
      modules.cppinspircd.h
      modules.cppinspircd_io.h
      modules.cppmessage.h
      modules.cppmode.h
      modules.cppmodules.h
      modules.cppsocket.h
      modules.cppsocketengine.h
      modules.cpptypedefs.h
      modules.cppusers.h
      modules.cppxline.h
      socket.cppinspircd.h
      socket.cppinspircd_io.h
      socket.cppsocket.h
      socket.cppsocketengine.h
      socketengine.cppglobals.h
      socketengine.cppinspircd.h
      socketengine.cppsocketengine.h
      users.cppchannels.h
      users.cppcommands.h
      users.cppconnection.h
      users.cppinspircd.h
      users.cppusers.h

      Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
      diff --git a/docs/module-doc/dir_000005_dep.gif b/docs/module-doc/dir_000005_dep.gif index 41c07d90f..946e6e401 100644 Binary files a/docs/module-doc/dir_000005_dep.gif and b/docs/module-doc/dir_000005_dep.gif differ diff --git a/docs/module-doc/dir_000005_dep.map b/docs/module-doc/dir_000005_dep.map index 828963de3..230315694 100644 --- a/docs/module-doc/dir_000005_dep.map +++ b/docs/module-doc/dir_000005_dep.map @@ -1,6 +1,6 @@ base referer rect dir_000005.html 28,55 100,103 rect dir_000004.html 28,151 100,199 -rect dir_000005_000004.html 64,125 80,139 +rect dir_000005_000004.html 65,125 79,139 rect dir_000005_000004.html 60,147 68,155 rect dir_000003.html 17,17 111,113 diff --git a/docs/module-doc/dirs.html b/docs/module-doc/dirs.html index 17ae8e33b..310630555 100644 --- a/docs/module-doc/dirs.html +++ b/docs/module-doc/dirs.html @@ -21,7 +21,7 @@
-
Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/dns_8h-source.html b/docs/module-doc/dns_8h-source.html index 0da4207ee..0b07e2f90 100644 --- a/docs/module-doc/dns_8h-source.html +++ b/docs/module-doc/dns_8h-source.html @@ -75,7 +75,7 @@ 00098 }; 00099 00100 #endif -

Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +
Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/dns_8h.html b/docs/module-doc/dns_8h.html index 40c455429..2e4440242 100644 --- a/docs/module-doc/dns_8h.html +++ b/docs/module-doc/dns_8h.html @@ -25,7 +25,7 @@ Include dependency graph for dns.h:

 The DNS class allows fast nonblocking resolution of hostnames and ip addresses. More...
-
Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
Generated on Wed Dec 14 19:16:16 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index 9d421391e..39590f8aa 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -13,7 +13,9 @@ connection.h [code] ctables.h [code] dns.h [code] + globals.h [code] hashcomp.h [code] + inspircd.h [code] inspircd_io.h [code] message.h [code] mode.h [code] @@ -29,7 +31,7 @@ users.h [code] xline.h [code] -
Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +
Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 0f445f587..a2435f459 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -36,7 +36,7 @@ Here is a list of all class members with links to the classes they belong to: : classbase
  • AllowHalfop : ServerConfig
  • awaymsg : userrec -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x62.html b/docs/module-doc/functions_0x62.html index 55731bcdb..98cd0d1eb 100644 --- a/docs/module-doc/functions_0x62.html +++ b/docs/module-doc/functions_0x62.html @@ -22,7 +22,7 @@ Here is a list of all class members with links to the classes they belong to: : Version
  • bytes_in : connection
  • bytes_out : connection -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x63.html b/docs/module-doc/functions_0x63.html index 20d86f976..5aaa05f50 100644 --- a/docs/module-doc/functions_0x63.html +++ b/docs/module-doc/functions_0x63.html @@ -46,7 +46,7 @@ Here is a list of all class members with links to the classes they belong to: : chanrec
  • CreateModule() : ModuleFactory
  • custom_modes : chanrec -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x64.html b/docs/module-doc/functions_0x64.html index 0ee844213..90af80165 100644 --- a/docs/module-doc/functions_0x64.html +++ b/docs/module-doc/functions_0x64.html @@ -49,7 +49,7 @@ Here is a list of all class members with links to the classes they belong to: : ServerConfig
  • DumpErrors() : ConfigReader
  • duration : XLine -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x65.html b/docs/module-doc/functions_0x65.html index 74cbd6e7e..41ba8f632 100644 --- a/docs/module-doc/functions_0x65.html +++ b/docs/module-doc/functions_0x65.html @@ -19,7 +19,9 @@ Here is a list of all class members with links to the classes they belong to: : ConfigReader
  • EnumerateValues() : ConfigReader
  • EnumValues() : ServerConfig
  • eq() -: irc::irc_char_traits
  • error +: irc::irc_char_traits
  • erase_factory() +: InspIRCd
  • erase_module() +: InspIRCd
  • error : ConfigReader
  • errorlog : ConfigReader
  • Event() : Event
  • Exists() @@ -27,7 +29,7 @@ Here is a list of all class members with links to the classes they belong to: : Extensible
  • Extension_Items : Extensible
  • ExtMode() : ExtMode -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x66.html b/docs/module-doc/functions_0x66.html index e94f4d12d..05e498cca 100644 --- a/docs/module-doc/functions_0x66.html +++ b/docs/module-doc/functions_0x66.html @@ -30,7 +30,7 @@ Here is a list of all class members with links to the classes they belong to: : userrec
  • ForwardLookup() : DNS
  • fullname : WhoWasUser, userrec -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x67.html b/docs/module-doc/functions_0x67.html index 26ce0f1e7..529ab33d2 100644 --- a/docs/module-doc/functions_0x67.html +++ b/docs/module-doc/functions_0x67.html @@ -22,9 +22,9 @@ Here is a list of all class members with links to the classes they belong to: : ConfigReader
  • GetEventID() : Event
  • GetExt() : Extensible
  • GetExtList() -: Extensible
  • GetFD() -: DNS
  • GetFd() -: InspSocket
  • GetFullHost() +: Extensible
  • GetFd() +: InspSocket
  • GetFD() +: DNS
  • GetFullHost() : userrec
  • GetFullRealHost() : userrec
  • GetInviteList() : userrec
  • GetIP() @@ -44,7 +44,7 @@ Here is a list of all class members with links to the classes they belong to: : Server, chanrec
  • GetVersion() : Module
  • GetWriteError() : userrec -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x68.html b/docs/module-doc/functions_0x68.html index 3a117572c..4131e6476 100644 --- a/docs/module-doc/functions_0x68.html +++ b/docs/module-doc/functions_0x68.html @@ -20,7 +20,7 @@ Here is a list of all class members with links to the classes they belong to: : WhoWasUser, ConnectClass, InspSocket, connection
  • HostItem() : HostItem
  • hostmask : ELine, GLine, KLine -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x69.html b/docs/module-doc/functions_0x69.html index a13bf5c02..8d8478e5a 100644 --- a/docs/module-doc/functions_0x69.html +++ b/docs/module-doc/functions_0x69.html @@ -17,7 +17,8 @@ Here is a list of all class members with links to the classes they belong to: : Event
  • ident : WhoWasUser, userrec
  • idle_lastmsg : connection
  • include_stack -: ServerConfig
  • InspSocket() +: ServerConfig
  • InspIRCd() +: InspIRCd
  • InspSocket() : InspSocket
  • internal_userlist : chanrec
  • Invert() : BoolSet
  • invites @@ -34,7 +35,7 @@ Here is a list of all class members with links to the classes they belong to: : Server
  • IsValidMask() : Server
  • IsValidModuleCommand() : Server -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x6a.html b/docs/module-doc/functions_0x6a.html index 28b99da0e..a3db95b12 100644 --- a/docs/module-doc/functions_0x6a.html +++ b/docs/module-doc/functions_0x6a.html @@ -14,7 +14,7 @@ Here is a list of all class members with links to the classes they belong to:

    - j -

    -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x6b.html b/docs/module-doc/functions_0x6b.html index 857dc82b3..66cbdfb3f 100644 --- a/docs/module-doc/functions_0x6b.html +++ b/docs/module-doc/functions_0x6b.html @@ -15,7 +15,7 @@ Here is a list of all class members with links to the classes they belong to:
  • ke_list : SocketEngine
  • key : chanrec -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x6c.html b/docs/module-doc/functions_0x6c.html index c5e7db11c..bff22b689 100644 --- a/docs/module-doc/functions_0x6c.html +++ b/docs/module-doc/functions_0x6c.html @@ -19,13 +19,14 @@ Here is a list of all class members with links to the classes they belong to: : userrec
  • list : ExtMode
  • LoadConf() : ServerConfig
  • LoadFile() -: FileReader
  • localbuf +: FileReader
  • LoadModule() +: InspIRCd
  • localbuf : DNS
  • Log() : Server
  • log_file : ServerConfig
  • LogLevel : ServerConfig
  • lt() : irc::irc_char_traits -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x6d.html b/docs/module-doc/functions_0x6d.html index 52511f8c0..2541400f3 100644 --- a/docs/module-doc/functions_0x6d.html +++ b/docs/module-doc/functions_0x6d.html @@ -25,12 +25,12 @@ Here is a list of all class members with links to the classes they belong to: : ServerConfig
  • Module() : Module
  • module_names : ServerConfig
  • ModuleFactory() -: ModuleFactory
  • MOTD -: ServerConfig
  • motd -: ServerConfig
  • MyExecutable +: ModuleFactory
  • motd +: ServerConfig
  • MOTD +: ServerConfig
  • MyExecutable : ServerConfig
  • myfd : DNS -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x6e.html b/docs/module-doc/functions_0x6e.html index c79e25497..e0ecf3df2 100644 --- a/docs/module-doc/functions_0x6e.html +++ b/docs/module-doc/functions_0x6e.html @@ -25,7 +25,7 @@ Here is a list of all class members with links to the classes they belong to: : Admin
  • nofork : ServerConfig
  • nping : connection -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x6f.html b/docs/module-doc/functions_0x6f.html index d72f64cc3..7593ac7e4 100644 --- a/docs/module-doc/functions_0x6f.html +++ b/docs/module-doc/functions_0x6f.html @@ -101,7 +101,7 @@ Here is a list of all class members with links to the classes they belong to: : BoolSet
  • operator==() : BoolSet
  • operator|() : BoolSet -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x70.html b/docs/module-doc/functions_0x70.html index 06285b174..ae7bf859b 100644 --- a/docs/module-doc/functions_0x70.html +++ b/docs/module-doc/functions_0x70.html @@ -23,12 +23,13 @@ Here is a list of all class members with links to the classes they belong to: : userrec
  • pingtime : ConnectClass
  • Poll() : InspSocket
  • port -: InspSocket, connection
  • PrefixQuit +: InspSocket, connection
  • ports +: ServerConfig
  • PrefixQuit : ServerConfig
  • ProtoSendMetaData() : Module
  • ProtoSendMode() : Module
  • PseudoToUser() : Server -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x71.html b/docs/module-doc/functions_0x71.html index f82053366..786acc5fd 100644 --- a/docs/module-doc/functions_0x71.html +++ b/docs/module-doc/functions_0x71.html @@ -14,7 +14,7 @@ Here is a list of all class members with links to the classes they belong to:

    - q -

    -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x72.html b/docs/module-doc/functions_0x72.html index af3f0fb10..ffa8e9f5e 100644 --- a/docs/module-doc/functions_0x72.html +++ b/docs/module-doc/functions_0x72.html @@ -32,10 +32,11 @@ Here is a list of all class members with links to the classes they belong to: : ServerConfig
  • result : DNS
  • ReverseLookup() : DNS
  • Revision -: Version
  • RULES -: ServerConfig
  • rules -: ServerConfig -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +: Version
  • rules +: ServerConfig
  • RULES +: ServerConfig
  • Run() +: InspIRCd +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x73.html b/docs/module-doc/functions_0x73.html index 51ffe74be..555686707 100644 --- a/docs/module-doc/functions_0x73.html +++ b/docs/module-doc/functions_0x73.html @@ -30,7 +30,8 @@ Here is a list of all class members with links to the classes they belong to: : Server
  • ServerConfig() : ServerConfig
  • ServerDesc : ServerConfig
  • ServerName -: ServerConfig
  • Set() +: ServerConfig
  • serverstats() +: serverstats
  • Set() : BoolSet
  • set_by : HostItem
  • set_time : XLine, HostItem
  • setby @@ -44,9 +45,20 @@ Here is a list of all class members with links to the classes they belong to: : WhoWasUser, connection
  • SocketEngine() : SocketEngine
  • SoftLimit : ServerConfig
  • source -: XLine, Event, Request, command_t
  • state -: InspSocket -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +: XLine, Event, Request, command_t
  • startup_time +: InspIRCd
  • state +: InspSocket
  • statsAccept +: serverstats
  • statsCollisions +: serverstats
  • statsConnects +: serverstats
  • statsDns +: serverstats
  • statsDnsBad +: serverstats
  • statsDnsGood +: serverstats
  • statsRecv +: serverstats
  • statsRefused +: serverstats
  • statsSent +: serverstats
  • statsUnknown +: serverstats +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x74.html b/docs/module-doc/functions_0x74.html index b5c75256b..1c56235de 100644 --- a/docs/module-doc/functions_0x74.html +++ b/docs/module-doc/functions_0x74.html @@ -23,7 +23,7 @@ Here is a list of all class members with links to the classes they belong to: : command_t
  • ts : SocketEngine
  • type : ConnectClass, ExtMode -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x75.html b/docs/module-doc/functions_0x75.html index 9b7b71bf8..36b85dad2 100644 --- a/docs/module-doc/functions_0x75.html +++ b/docs/module-doc/functions_0x75.html @@ -15,12 +15,13 @@ Here is a list of all class members with links to the classes they belong to:
  • uc_modes : ucrec
  • ucrec() : ucrec
  • unlimitcore -: ServerConfig
  • Unset() +: ServerConfig
  • UnloadModule() +: InspIRCd
  • Unset() : BoolSet
  • use_count : command_t
  • userrec() : userrec
  • UserToPseudo() : Server -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x76.html b/docs/module-doc/functions_0x76.html index 0c2ff4e67..fd9ee7da5 100644 --- a/docs/module-doc/functions_0x76.html +++ b/docs/module-doc/functions_0x76.html @@ -15,7 +15,7 @@ Here is a list of all class members with links to the classes they belong to:
  • Verify() : ConfigReader
  • Version() : Version -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x77.html b/docs/module-doc/functions_0x77.html index d6efa6441..a306d63b6 100644 --- a/docs/module-doc/functions_0x77.html +++ b/docs/module-doc/functions_0x77.html @@ -16,7 +16,7 @@ Here is a list of all class members with links to the classes they belong to: : SocketEngine
  • Write() : InspSocket
  • WriteError : userrec -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_0x7e.html b/docs/module-doc/functions_0x7e.html index 2ba9f41ca..ab2abb6ab 100644 --- a/docs/module-doc/functions_0x7e.html +++ b/docs/module-doc/functions_0x7e.html @@ -27,7 +27,7 @@ Here is a list of all class members with links to the classes they belong to: : SocketEngine
  • ~ucrec() : ucrec
  • ~userrec() : userrec -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func.html b/docs/module-doc/functions_func.html index 251b34177..634c3966a 100644 --- a/docs/module-doc/functions_func.html +++ b/docs/module-doc/functions_func.html @@ -27,7 +27,7 @@ : userrec
  • AddZLine() : Server
  • Admin() : Admin -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x62.html b/docs/module-doc/functions_func_0x62.html index 9c96c00ec..9e6af1a24 100644 --- a/docs/module-doc/functions_func_0x62.html +++ b/docs/module-doc/functions_func_0x62.html @@ -15,7 +15,7 @@
  • BoolSet() : BoolSet
  • BufferIsReady() : userrec -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x63.html b/docs/module-doc/functions_func_0x63.html index fa45ea0f6..21a9cd1c5 100644 --- a/docs/module-doc/functions_func_0x63.html +++ b/docs/module-doc/functions_func_0x63.html @@ -35,7 +35,7 @@ : connection
  • CountUsers() : Server
  • CreateModule() : ModuleFactory -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x64.html b/docs/module-doc/functions_func_0x64.html index 5f00c56df..a71c48fe8 100644 --- a/docs/module-doc/functions_func_0x64.html +++ b/docs/module-doc/functions_func_0x64.html @@ -37,7 +37,7 @@ : DNS
  • dns_ntoa4_s() : DNS
  • DumpErrors() : ConfigReader -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x65.html b/docs/module-doc/functions_func_0x65.html index 840ec03ea..7282c3cf6 100644 --- a/docs/module-doc/functions_func_0x65.html +++ b/docs/module-doc/functions_func_0x65.html @@ -17,12 +17,14 @@ : ConfigReader
  • EnumerateValues() : ConfigReader
  • EnumValues() : ServerConfig
  • eq() -: irc::irc_char_traits
  • Event() +: irc::irc_char_traits
  • erase_factory() +: InspIRCd
  • erase_module() +: InspIRCd
  • Event() : Event
  • Exists() : FileReader
  • Extend() : Extensible
  • ExtMode() : ExtMode -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x66.html b/docs/module-doc/functions_func_0x66.html index 4e4b0f6a9..7bcf2443f 100644 --- a/docs/module-doc/functions_func_0x66.html +++ b/docs/module-doc/functions_func_0x66.html @@ -23,7 +23,7 @@ : Server
  • FlushWriteBuf() : userrec
  • ForwardLookup() : DNS -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x67.html b/docs/module-doc/functions_func_0x67.html index 76ab5f268..8fb533c89 100644 --- a/docs/module-doc/functions_func_0x67.html +++ b/docs/module-doc/functions_func_0x67.html @@ -22,9 +22,9 @@ : ConfigReader
  • GetEventID() : Event
  • GetExt() : Extensible
  • GetExtList() -: Extensible
  • GetFD() -: DNS
  • GetFd() -: InspSocket
  • GetFullHost() +: Extensible
  • GetFd() +: InspSocket
  • GetFD() +: DNS
  • GetFullHost() : userrec
  • GetFullRealHost() : userrec
  • GetInviteList() : userrec
  • GetIP() @@ -44,7 +44,7 @@ : Server, chanrec
  • GetVersion() : Module
  • GetWriteError() : userrec -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x68.html b/docs/module-doc/functions_func_0x68.html index 957813b80..6f1cc82eb 100644 --- a/docs/module-doc/functions_func_0x68.html +++ b/docs/module-doc/functions_func_0x68.html @@ -16,7 +16,7 @@ : userrec
  • HasResult() : DNS
  • HostItem() : HostItem -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x69.html b/docs/module-doc/functions_func_0x69.html index 29bf2dd4b..2b257cb7e 100644 --- a/docs/module-doc/functions_func_0x69.html +++ b/docs/module-doc/functions_func_0x69.html @@ -12,7 +12,8 @@

    - i -

    -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x6a.html b/docs/module-doc/functions_func_0x6a.html index 973fa4e50..151661d31 100644 --- a/docs/module-doc/functions_func_0x6a.html +++ b/docs/module-doc/functions_func_0x6a.html @@ -14,7 +14,7 @@

    - j -

    -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x6c.html b/docs/module-doc/functions_func_0x6c.html index 44f16456a..d56a1dda5 100644 --- a/docs/module-doc/functions_func_0x6c.html +++ b/docs/module-doc/functions_func_0x6c.html @@ -14,10 +14,11 @@

    - l -

    -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x6d.html b/docs/module-doc/functions_func_0x6d.html index 82ce85721..08e1c2bf5 100644 --- a/docs/module-doc/functions_func_0x6d.html +++ b/docs/module-doc/functions_func_0x6d.html @@ -16,7 +16,7 @@ : Server
  • Module() : Module
  • ModuleFactory() : ModuleFactory -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x6e.html b/docs/module-doc/functions_func_0x6e.html index b71ef73cf..97d22b0b7 100644 --- a/docs/module-doc/functions_func_0x6e.html +++ b/docs/module-doc/functions_func_0x6e.html @@ -14,7 +14,7 @@

    - n -

    -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x6f.html b/docs/module-doc/functions_func_0x6f.html index 1aa4c4439..1427bdd71 100644 --- a/docs/module-doc/functions_func_0x6f.html +++ b/docs/module-doc/functions_func_0x6f.html @@ -100,7 +100,7 @@ : BoolSet
  • operator==() : BoolSet
  • operator|() : BoolSet -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x70.html b/docs/module-doc/functions_func_0x70.html index a41d0b8dc..73ea2e205 100644 --- a/docs/module-doc/functions_func_0x70.html +++ b/docs/module-doc/functions_func_0x70.html @@ -18,7 +18,7 @@ : Module
  • ProtoSendMode() : Module
  • PseudoToUser() : Server -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x71.html b/docs/module-doc/functions_func_0x71.html index 25bfe62b2..588486972 100644 --- a/docs/module-doc/functions_func_0x71.html +++ b/docs/module-doc/functions_func_0x71.html @@ -14,7 +14,7 @@

    - q -

    -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x72.html b/docs/module-doc/functions_func_0x72.html index a2a774d06..4848fb78e 100644 --- a/docs/module-doc/functions_func_0x72.html +++ b/docs/module-doc/functions_func_0x72.html @@ -22,8 +22,9 @@ : Server
  • RemoveInvite() : userrec
  • Request() : Request
  • ReverseLookup() -: DNS -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +: DNS
  • Run() +: InspIRCd +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x73.html b/docs/module-doc/functions_func_0x73.html index d0163e702..ec0102ccc 100644 --- a/docs/module-doc/functions_func_0x73.html +++ b/docs/module-doc/functions_func_0x73.html @@ -25,7 +25,8 @@ : Server
  • SendWallops() : Server
  • Server() : Server
  • ServerConfig() -: ServerConfig
  • Set() +: ServerConfig
  • serverstats() +: serverstats
  • Set() : BoolSet
  • SetCustomMode() : chanrec
  • SetCustomModeParam() : chanrec
  • SetNS() @@ -34,7 +35,7 @@ : userrec
  • Shrink() : Extensible
  • SocketEngine() : SocketEngine -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x74.html b/docs/module-doc/functions_func_0x74.html index 02ca5bfba..57a8aa985 100644 --- a/docs/module-doc/functions_func_0x74.html +++ b/docs/module-doc/functions_func_0x74.html @@ -14,7 +14,7 @@

    - t -

    -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x75.html b/docs/module-doc/functions_func_0x75.html index 3c34d3db5..95ecf9741 100644 --- a/docs/module-doc/functions_func_0x75.html +++ b/docs/module-doc/functions_func_0x75.html @@ -13,11 +13,12 @@

    - u -

    -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x76.html b/docs/module-doc/functions_func_0x76.html index 252461733..f4a21a6d3 100644 --- a/docs/module-doc/functions_func_0x76.html +++ b/docs/module-doc/functions_func_0x76.html @@ -15,7 +15,7 @@
  • Verify() : ConfigReader
  • Version() : Version -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x77.html b/docs/module-doc/functions_func_0x77.html index 9e83806e4..bfcf49fc0 100644 --- a/docs/module-doc/functions_func_0x77.html +++ b/docs/module-doc/functions_func_0x77.html @@ -15,7 +15,7 @@
  • Wait() : SocketEngine
  • Write() : InspSocket -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_func_0x7e.html b/docs/module-doc/functions_func_0x7e.html index 6dea30f34..8ffc4fe13 100644 --- a/docs/module-doc/functions_func_0x7e.html +++ b/docs/module-doc/functions_func_0x7e.html @@ -27,7 +27,7 @@ : SocketEngine
  • ~ucrec() : ucrec
  • ~userrec() : userrec -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions_vars.html b/docs/module-doc/functions_vars.html index 4253b3c55..3653e468e 100644 --- a/docs/module-doc/functions_vars.html +++ b/docs/module-doc/functions_vars.html @@ -118,9 +118,9 @@ : ExtMode
  • modes : userrec
  • ModPath : ServerConfig
  • module_names -: ServerConfig
  • MOTD -: ServerConfig
  • motd -: ServerConfig
  • MyExecutable +: ServerConfig
  • motd +: ServerConfig
  • MOTD +: ServerConfig
  • MyExecutable : ServerConfig
  • myfd : DNS

    - n -

    - r -

    +: Version
  • rules +: ServerConfig
  • RULES +: ServerConfig

    - s -

    +: XLine, Event, Request, command_t
  • startup_time +: InspIRCd
  • state +: InspSocket
  • statsAccept +: serverstats
  • statsCollisions +: serverstats
  • statsConnects +: serverstats
  • statsDns +: serverstats
  • statsDnsBad +: serverstats
  • statsDnsGood +: serverstats
  • statsRecv +: serverstats
  • statsRefused +: serverstats
  • statsSent +: serverstats
  • statsUnknown +: serverstats

    - t -

    -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x62.html b/docs/module-doc/globals_0x62.html index b5059fd27..a56e64a1c 100644 --- a/docs/module-doc/globals_0x62.html +++ b/docs/module-doc/globals_0x62.html @@ -6,18 +6,19 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to:

    - b -

    -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +: socket.cpp +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x63.html b/docs/module-doc/globals_0x63.html index 004f8c42b..d851231a9 100644 --- a/docs/module-doc/globals_0x63.html +++ b/docs/module-doc/globals_0x63.html @@ -6,20 +6,22 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to:

    - c -

    -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x64.html b/docs/module-doc/globals_0x64.html index 8d2cd301a..94c26ce47 100644 --- a/docs/module-doc/globals_0x64.html +++ b/docs/module-doc/globals_0x64.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -15,17 +15,20 @@ Here is a list of all file members with links to the files they belong to:

  • DaemonSeed() : inspircd_io.h
  • DEBUG : modules.h, inspircd_io.h
  • DEFAULT -: modules.h, inspircd_io.h
  • del_eline() +: modules.h, inspircd_io.h
  • del_channel() +: channels.h, channels.cpp
  • del_eline() : xline.h
  • del_gline() : xline.h
  • del_kline() : xline.h
  • del_qline() : xline.h
  • del_zline() -: xline.h
  • do_whois() +: xline.h
  • DeleteOper() +: inspircd.h
  • dns_task() +: inspircd.h
  • do_whois() : commands.h
  • DoAddExtendedMode() : modules.cpp
  • DoBackgroundUserStuff() : userprocess.h
  • duration() : commands.h -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x65.html b/docs/module-doc/globals_0x65.html index 191696224..4dab69d96 100644 --- a/docs/module-doc/globals_0x65.html +++ b/docs/module-doc/globals_0x65.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -14,13 +14,14 @@ Here is a list of all file members with links to the files they belong to:

    - e -

    -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x66.html b/docs/module-doc/globals_0x66.html index d0eae47b3..9ead8ab03 100644 --- a/docs/module-doc/globals_0x66.html +++ b/docs/module-doc/globals_0x66.html @@ -6,21 +6,28 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to:

    - f -

    -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +: modules.h
  • FullConnectUser() +: inspircd.h +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x67.html b/docs/module-doc/globals_0x67.html index 263e5e63e..b2c8ae5af 100644 --- a/docs/module-doc/globals_0x67.html +++ b/docs/module-doc/globals_0x67.html @@ -6,18 +6,25 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to:

    - g -

    -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x68.html b/docs/module-doc/globals_0x68.html index 72535bc39..94bf4b511 100644 --- a/docs/module-doc/globals_0x68.html +++ b/docs/module-doc/globals_0x68.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -59,15 +59,17 @@ Here is a list of all file members with links to the files they belong to: : commands.h

  • handle_user() : commands.h
  • handle_userhost() : commands.h
  • handle_users() -: commands.h
  • handle_wallops() +: commands.h
  • handle_version() +: inspircd.h
  • handle_wallops() : commands.h
  • handle_who() : commands.h
  • handle_whois() : commands.h
  • handle_whowas() : commands.h
  • handle_zline() -: commands.h
  • has_channel() +: commands.h
  • handlerfunc +: inspircd.h
  • has_channel() : message.h
  • hasumode() : message.h -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x69.html b/docs/module-doc/globals_0x69.html index 0e570fca0..9c4b08d77 100644 --- a/docs/module-doc/globals_0x69.html +++ b/docs/module-doc/globals_0x69.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -25,13 +25,16 @@ Here is a list of all file members with links to the files they belong to: : socket.h

  • InspSocketState : socket.h
  • InvitedList : users.h
  • InviteList -: channels.h
  • IP -: modules.cpp
  • ircd_module -: modules.h
  • is_uline() -: commands.h
  • isident() +: channels.h
  • ircd_module +: modules.h
  • IS_LOCAL +: inspircd.h
  • IS_MODULE_CREATED +: inspircd.h
  • IS_REMOTE +: inspircd.h
  • is_uline() +: commands.h
  • is_valid_cmd() +: inspircd.h
  • isident() : message.h
  • isnick() -: message.h -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +: message.h, globals.h +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x6b.html b/docs/module-doc/globals_0x6b.html new file mode 100644 index 000000000..160d3a57e --- /dev/null +++ b/docs/module-doc/globals_0x6b.html @@ -0,0 +1,23 @@ + + +InspIRCd: Class Members + + + + + +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    + +

    +Here is a list of all file members with links to the files they belong to: +

    +

    - k -

    +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
    + + diff --git a/docs/module-doc/globals_0x6c.html b/docs/module-doc/globals_0x6c.html index 022ae2629..8c79f3b26 100644 --- a/docs/module-doc/globals_0x6c.html +++ b/docs/module-doc/globals_0x6c.html @@ -6,15 +6,17 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to:

    - l -

    -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +: userprocess.h
  • log() +: globals.h
  • loop_call() +: inspircd.h +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x6d.html b/docs/module-doc/globals_0x6d.html index cfbde6472..4b35b22c7 100644 --- a/docs/module-doc/globals_0x6d.html +++ b/docs/module-doc/globals_0x6d.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -17,23 +17,26 @@ Here is a list of all file members with links to the files they belong to: : xline.h

  • matches_kline() : xline.h
  • matches_qline() : xline.h
  • matches_zline() -: xline.h
  • merge_mode() +: xline.h
  • MAXCOMMAND +: inspircd.h
  • MAXSOCKS +: inspircd.h
  • merge_mode() : mode.h
  • merge_mode2() : mode.h
  • MODCOUNT -: modules.cpp, channels.cpp
  • ModeDefined() -: modules.cpp
  • ModeDefinedOff() -: modules.cpp
  • ModeDefinedOn() -: modules.cpp
  • ModeDefinedOper() -: modules.cpp
  • ModeIsListMode() -: modules.cpp
  • ModeMakeList() -: modules.cpp
  • module_names -: channels.cpp
  • module_sockets -: modules.cpp
  • modules +: modules.cpp, channels.cpp
  • ModeDefiend() +: globals.h
  • ModeDefined() +: modules.h, modules.cpp
  • ModeDefinedOff() +: modules.h, modules.cpp
  • ModeDefinedOn() +: modules.h, modules.cpp
  • ModeDefinedOper() +: modules.h, modules.cpp
  • ModeIsListMode() +: modules.h, modules.cpp
  • ModeMakeList() +: modules.h, modules.cpp
  • module_sockets +: modules.cpp
  • ModuleError() +: inspircd.h
  • modules : modules.cpp, channels.cpp
  • MT_CHANNEL : modules.h
  • MT_CLIENT : modules.h
  • MT_SERVER : modules.h -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x6e.html b/docs/module-doc/globals_0x6e.html index 24808a7ea..d1b67b301 100644 --- a/docs/module-doc/globals_0x6e.html +++ b/docs/module-doc/globals_0x6e.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -16,7 +16,7 @@ Here is a list of all file members with links to the files they belong to: : message.h

  • NONE : modules.h, inspircd_io.h
  • nspace : hashcomp.h, channels.cpp -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x6f.html b/docs/module-doc/globals_0x6f.html index 61c4a5c72..a0551d719 100644 --- a/docs/module-doc/globals_0x6f.html +++ b/docs/module-doc/globals_0x6f.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -16,7 +16,7 @@ Here is a list of all file members with links to the files they belong to: : userprocess.h

  • openSockfd : socket.cpp
  • OpenTCPSocket() : inspircd_io.h -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x70.html b/docs/module-doc/globals_0x70.html index 07b308c06..3dc89323a 100644 --- a/docs/module-doc/globals_0x70.html +++ b/docs/module-doc/globals_0x70.html @@ -6,19 +6,18 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to:

    - p -

    -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x71.html b/docs/module-doc/globals_0x71.html index 5ef20bf47..27a9241b1 100644 --- a/docs/module-doc/globals_0x71.html +++ b/docs/module-doc/globals_0x71.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -15,7 +15,7 @@ Here is a list of all file members with links to the files they belong to:

  • qline_make_global() : xline.h
  • qline_set_creation_time() : xline.h -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x72.html b/docs/module-doc/globals_0x72.html index a420f0540..6a979f60c 100644 --- a/docs/module-doc/globals_0x72.html +++ b/docs/module-doc/globals_0x72.html @@ -6,16 +6,18 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to:

    - r -

    -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +: xline.h
  • readfile() +: globals.h
  • ref +: socketengine.cpp
  • ReHashNick() +: inspircd.h +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x73.html b/docs/module-doc/globals_0x73.html index 1c37b1e40..c53d96d81 100644 --- a/docs/module-doc/globals_0x73.html +++ b/docs/module-doc/globals_0x73.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -15,12 +15,12 @@ Here is a list of all file members with links to the files they belong to:

  • SE : socket.cpp, modules.cpp
  • send_network_quit() : message.h
  • server_mode() -: modules.h, mode.h
  • servernamelist +: modules.h, mode.h
  • ServerInstance +: modules.cpp
  • servernamelist : typedefs.h
  • socket_ref : socket.cpp
  • SPARSE : modules.h, inspircd_io.h
  • Start() -: inspircd_io.h
  • startup_time -: modules.cpp, channels.cpp
  • stats_e() +: inspircd_io.h
  • stats_e() : xline.h
  • stats_g() : xline.h
  • stats_k() : xline.h
  • stats_q() @@ -32,7 +32,7 @@ Here is a list of all file members with links to the files they belong to: : users.h
  • string : hashcomp.h
  • string_list : modules.h -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x74.html b/docs/module-doc/globals_0x74.html index be2b2793f..d0593dbef 100644 --- a/docs/module-doc/globals_0x74.html +++ b/docs/module-doc/globals_0x74.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -19,8 +19,12 @@ Here is a list of all file members with links to the files they belong to: : mode.h

  • TidyBan() : message.h
  • tidystring() : message.h
  • TIME -: users.cpp, socket.cpp, modules.cpp, channels.cpp -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +: users.cpp, socket.cpp, modules.cpp, channels.cpp
  • TRUE +: inspircd.h
  • TYPE_CHANNEL +: inspircd.h
  • TYPE_SERVER +: inspircd.h
  • TYPE_USER +: inspircd.h +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x75.html b/docs/module-doc/globals_0x75.html index 72817cac7..c87eb3f88 100644 --- a/docs/module-doc/globals_0x75.html +++ b/docs/module-doc/globals_0x75.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -19,7 +19,7 @@ Here is a list of all file members with links to the files they belong to: : channels.h

  • UCMODE_VOICE : channels.h
  • user_hash : typedefs.h -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x76.html b/docs/module-doc/globals_0x76.html index 885147170..adbdd7ce1 100644 --- a/docs/module-doc/globals_0x76.html +++ b/docs/module-doc/globals_0x76.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -19,7 +19,7 @@ Here is a list of all file members with links to the files they belong to: : modules.h

  • VF_VENDOR : modules.h
  • VoidPointer : base.h -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x77.html b/docs/module-doc/globals_0x77.html index a4f5cb61f..58fe706b9 100644 --- a/docs/module-doc/globals_0x77.html +++ b/docs/module-doc/globals_0x77.html @@ -6,19 +6,29 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to:

    - w -

    -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +: channels.cpp
  • WHOWAS_STALE +: channels.cpp
  • WM_AND +: inspircd.h
  • WM_OR +: inspircd.h
  • Write() +: globals.h
  • WriteChannel() +: globals.h
  • WriteCommon() +: globals.h
  • WriteCommonExcept() +: globals.h
  • WriteFrom() +: globals.h
  • WriteOpers() +: globals.h
  • WritePID() +: inspircd_io.h
  • WriteServ() +: globals.h
  • WriteTo() +: globals.h
  • WriteWallOps() +: globals.h +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x78.html b/docs/module-doc/globals_0x78.html index a3a35f44b..7efd8b19e 100644 --- a/docs/module-doc/globals_0x78.html +++ b/docs/module-doc/globals_0x78.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -19,7 +19,7 @@ Here is a list of all file members with links to the files they belong to: : socketengine.h

  • X_LISTEN : socketengine.h
  • X_READBIT : socketengine.h -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_0x7a.html b/docs/module-doc/globals_0x7a.html index 2162b0839..d3f040a98 100644 --- a/docs/module-doc/globals_0x7a.html +++ b/docs/module-doc/globals_0x7a.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | x | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z

    Here is a list of all file members with links to the files they belong to: @@ -15,7 +15,7 @@ Here is a list of all file members with links to the files they belong to:

  • zline_make_global() : xline.h
  • zline_set_creation_time() : xline.h -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_8h-source.html b/docs/module-doc/globals_8h-source.html new file mode 100644 index 000000000..94e9e52e7 --- /dev/null +++ b/docs/module-doc/globals_8h-source.html @@ -0,0 +1,69 @@ + + +InspIRCd: globals.h Source File + + + + + +

    globals.h

    Go to the documentation of this file.
    00001 /*       +------------------------------------+
    +00002  *       | Inspire Internet Relay Chat Daemon |
    +00003  *       +------------------------------------+
    +00004  *
    +00005  *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
    +00006  *                       E-mail:
    +00007  *                <brain@chatspike.net>
    +00008  *                <Craig@chatspike.net>
    +00009  *     
    +00010  * Written by Craig Edwards, Craig McLure, and others.
    +00011  * This program is free but copyrighted software; see
    +00012  *            the file COPYING for details.
    +00013  *
    +00014  * ---------------------------------------------------
    +00015  */
    +00016 
    +00017 #ifndef __WORLD_H
    +00018 #define __WORLD_H
    +00019 
    +00020 // include the common header files
    +00021 
    +00022 #include <typeinfo>
    +00023 #include <iostream>
    +00024 #include <string>
    +00025 #include <deque>
    +00026 #include "users.h"
    +00027 #include "channels.h"
    +00028 
    +00029 typedef std::deque<std::string> file_cache;
    +00030 
    +00031 void WriteOpers(char* text, ...);
    +00032 void log(int level, char *text, ...);
    +00033 void Write(int sock,char *text, ...);
    +00034 void WriteServ(int sock, char* text, ...);
    +00035 void WriteFrom(int sock, userrec *user,char* text, ...);
    +00036 void WriteTo(userrec *source, userrec *dest,char *data, ...);
    +00037 void WriteChannel(chanrec* Ptr, userrec* user, char* text, ...);
    +00038 void ChanExceptSender(chanrec* Ptr, userrec* user, char* text, ...);
    +00039 int common_channels(userrec *u, userrec *u2);
    +00040 void WriteCommon(userrec *u, char* text, ...);
    +00041 void WriteCommonExcept(userrec *u, char* text, ...);
    +00042 void WriteWallOps(userrec *source, bool local_only, char* text, ...);
    +00043 int isnick(const char *n);
    +00044 userrec* Find(std::string nick);
    +00045 chanrec* FindChan(const char* chan);
    +00046 char* cmode(userrec *user, chanrec *chan);
    +00047 std::string getservername();
    +00048 std::string getnetworkname();
    +00049 std::string getadminname();
    +00050 std::string getadminemail();
    +00051 std::string getadminnick();
    +00052 void readfile(file_cache &F, const char* fname);
    +00053 int ModeDefiend(char c, int i);
    +00054 
    +00055 #endif
    +

    Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
    + + diff --git a/docs/module-doc/globals_8h.html b/docs/module-doc/globals_8h.html new file mode 100644 index 000000000..b23503e78 --- /dev/null +++ b/docs/module-doc/globals_8h.html @@ -0,0 +1,1019 @@ + + +InspIRCd: globals.h File Reference + + + + + +

    globals.h File Reference

    #include <typeinfo>
    +#include <iostream>
    +#include <string>
    +#include <deque>
    +#include "users.h"
    +#include "channels.h"
    + +

    +Include dependency graph for globals.h:

    + + + + + + +

    +This graph shows which files directly or indirectly include this file:

    + + + + + + + + + +

    +Go to the source code of this file. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Typedefs

    typedef std::deque< std::stringfile_cache

    Functions

    void WriteOpers (char *text,...)
    void log (int level, char *text,...)
    void Write (int sock, char *text,...)
    void WriteServ (int sock, char *text,...)
    void WriteFrom (int sock, userrec *user, char *text,...)
    void WriteTo (userrec *source, userrec *dest, char *data,...)
    void WriteChannel (chanrec *Ptr, userrec *user, char *text,...)
    void ChanExceptSender (chanrec *Ptr, userrec *user, char *text,...)
    int common_channels (userrec *u, userrec *u2)
    void WriteCommon (userrec *u, char *text,...)
    void WriteCommonExcept (userrec *u, char *text,...)
    void WriteWallOps (userrec *source, bool local_only, char *text,...)
    int isnick (const char *n)
    userrecFind (std::string nick)
    chanrecFindChan (const char *chan)
    char * cmode (userrec *user, chanrec *chan)
    std::string getservername ()
    std::string getnetworkname ()
    std::string getadminname ()
    std::string getadminemail ()
    std::string getadminnick ()
    void readfile (file_cache &F, const char *fname)
    int ModeDefiend (char c, int i)
    +


    Typedef Documentation

    +

    + + + + +
    + + + + +
    typedef std::deque<std::string> file_cache
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 29 of file globals.h.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void ChanExceptSender chanrec Ptr,
    userrec user,
    char *  text,
      ...
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::SendChannel().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    char* cmode userrec user,
    chanrec chan
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::ChanMode().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    int common_channels userrec u,
    userrec u2
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::CommonChannels().

    +

    + + + + +
    + + + + + + + + + +
    userrec* Find std::string  nick  ) 
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::FindNick().

    +

    + + + + +
    + + + + + + + + + +
    chanrec* FindChan const char *  chan  ) 
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by add_channel(), del_channel(), and Server::FindChannel().

    +

    + + + + +
    + + + + + + + + +
    std::string getadminemail  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + +
    std::string getadminname  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + +
    std::string getadminnick  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + +
    std::string getnetworkname  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + +
    std::string getservername  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + +
    int isnick const char *  n  ) 
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::IsNick().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void log int  level,
    char *  text,
      ...
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by add_channel(), Server::AddExtendedMode(), SocketEngine::AddFd(), chanrec::AddUser(), del_channel(), SocketEngine::DelFd(), chanrec::DelUser(), ForceChan(), InspSocket::InspSocket(), kick_channel(), Server::Log(), InspSocket::Read(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), SocketEngine::SocketEngine(), and SocketEngine::~SocketEngine().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    int ModeDefiend char  c,
    int  i
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    void readfile file_cache F,
    const char *  fname
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by FileReader::FileReader(), and FileReader::LoadFile().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void Write int  sock,
    char *  text,
      ...
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::PseudoToUser(), Server::Send(), Server::SendTo(), and Server::UserToPseudo().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void WriteChannel chanrec Ptr,
    userrec user,
    char *  text,
      ...
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by del_channel(), ForceChan(), kick_channel(), and Server::SendChannel().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void WriteCommon userrec u,
    char *  text,
      ...
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::SendCommon().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void WriteCommonExcept userrec u,
    char *  text,
      ...
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::SendCommon().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void WriteFrom int  sock,
    userrec user,
    char *  text,
      ...
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::PseudoToUser(), and Server::SendFrom().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    void WriteOpers char *  text,
      ...
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by userrec::AddBuffer(), userrec::AddWriteBuf(), ConfigReader::DumpErrors(), Server::RehashServer(), and Server::SendOpers().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void WriteServ int  sock,
    char *  text,
      ...
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by add_channel(), ConfigReader::DumpErrors(), ForceChan(), kick_channel(), Server::PseudoToUser(), and Server::SendServ().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void WriteTo userrec source,
    userrec dest,
    char *  data,
      ...
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::SendTo().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void WriteWallOps userrec source,
    bool  local_only,
    char *  text,
      ...
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::SendWallops().

    +


    Generated on Wed Dec 14 19:16:17 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
    + + diff --git a/docs/module-doc/globals_8h__dep__incl.gif b/docs/module-doc/globals_8h__dep__incl.gif new file mode 100644 index 000000000..4b448d416 Binary files /dev/null and b/docs/module-doc/globals_8h__dep__incl.gif differ diff --git a/docs/module-doc/globals_8h__dep__incl.map b/docs/module-doc/globals_8h__dep__incl.map new file mode 100644 index 000000000..20b679adc --- /dev/null +++ b/docs/module-doc/globals_8h__dep__incl.map @@ -0,0 +1,7 @@ +base referer +rect $channels_8cpp-source.html 305,57 404,84 +rect $modules_8cpp-source.html 305,133 404,160 +rect $socketengine_8cpp-source.html 292,235 417,261 +rect $inspircd__io_8h-source.html 140,57 236,84 +rect $socketengine_8h-source.html 132,209 244,236 +rect $typedefs_8h-source.html 145,108 231,135 diff --git a/docs/module-doc/globals_8h__dep__incl.md5 b/docs/module-doc/globals_8h__dep__incl.md5 new file mode 100644 index 000000000..c1e5ca4dd --- /dev/null +++ b/docs/module-doc/globals_8h__dep__incl.md5 @@ -0,0 +1 @@ +9d6f4bf521bab022edbf6a21bf5aa7ea \ No newline at end of file diff --git a/docs/module-doc/globals_8h__incl.gif b/docs/module-doc/globals_8h__incl.gif new file mode 100644 index 000000000..aa3102969 Binary files /dev/null and b/docs/module-doc/globals_8h__incl.gif differ diff --git a/docs/module-doc/globals_8h__incl.map b/docs/module-doc/globals_8h__incl.map new file mode 100644 index 000000000..70f97a908 --- /dev/null +++ b/docs/module-doc/globals_8h__incl.map @@ -0,0 +1,4 @@ +base referer +rect $users_8h-source.html 138,235 202,261 +rect $channels_8h-source.html 262,159 347,185 +rect $connection_8h-source.html 255,361 354,388 diff --git a/docs/module-doc/globals_8h__incl.md5 b/docs/module-doc/globals_8h__incl.md5 new file mode 100644 index 000000000..b01db37e7 --- /dev/null +++ b/docs/module-doc/globals_8h__incl.md5 @@ -0,0 +1 @@ +a3b3469472caf7df1d6ac1729fa3eb57 \ No newline at end of file diff --git a/docs/module-doc/globals_defs.html b/docs/module-doc/globals_defs.html index c1f6f95cf..cc3703257 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -6,7 +6,7 @@ -
    a | c | d | f | m | n | s | u | v
    +
    a | c | d | e | f | i | m | n | s | t | u | v | w

    @@ -43,13 +43,24 @@

  • DEBUG : modules.h, inspircd_io.h
  • DEFAULT : modules.h, inspircd_io.h +

    - e -

    - f -

    +

    - i -

    - m -

    @@ -64,6 +75,12 @@ : users.h
  • STATUS_OP : users.h
  • STATUS_VOICE : users.h +

    - t -

    - u -

    -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +

    - w -

    +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_enum.html b/docs/module-doc/globals_enum.html index aa397a6e2..1a4942c18 100644 --- a/docs/module-doc/globals_enum.html +++ b/docs/module-doc/globals_enum.html @@ -12,7 +12,7 @@
  • InspSocketError : socket.h
  • InspSocketState : socket.h -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_eval.html b/docs/module-doc/globals_eval.html index f066ce86e..4f3574670 100644 --- a/docs/module-doc/globals_eval.html +++ b/docs/module-doc/globals_eval.html @@ -19,7 +19,7 @@ : socket.h
  • I_ERROR : socket.h
  • I_LISTENING : socket.h -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_func.html b/docs/module-doc/globals_func.html index 630b2d087..09e6fe2ae 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -6,28 +6,35 @@ -
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | w | z
    +
    a | b | c | d | e | f | g | h | i | k | l | m | n | o | p | q | r | s | t | w | z

    - a -

    - b -

    - c -

    - d -

    - g -

    - i -

    +: message.h, globals.h +

    - k -

    - l -

    +: userprocess.h
  • log() +: globals.h
  • loop_call() +: inspircd.h

    - m -

    - n -

    - p -

    @@ -164,7 +200,9 @@ : xline.h

    - r -

    +: xline.h
  • readfile() +: globals.h
  • ReHashNick() +: inspircd.h

    - s -

    - w -

    +
  • Write() +: globals.h
  • WriteChannel() +: globals.h
  • WriteCommon() +: globals.h
  • WriteCommonExcept() +: globals.h
  • WriteFrom() +: globals.h
  • WriteOpers() +: globals.h
  • WritePID() +: inspircd_io.h
  • WriteServ() +: globals.h
  • WriteTo() +: globals.h
  • WriteWallOps() +: globals.h

    - z -

    -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_type.html b/docs/module-doc/globals_type.html index 8c2f6cab1..55904231a 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -19,7 +19,8 @@ : channels.h
  • ExtModeList : typedefs.h
  • ExtModeListIter : typedefs.h
  • file_cache -: modules.h
  • InvitedList +: typedefs.h, modules.h, globals.h
  • handlerfunc +: inspircd.h
  • InvitedList : users.h
  • InviteList : channels.h
  • ircd_module : modules.h
  • servernamelist @@ -29,7 +30,7 @@ : typedefs.h
  • VoidPointer : base.h
  • whowas_hash : typedefs.h -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_vars.html b/docs/module-doc/globals_vars.html index 6fe946e60..aaa6166b9 100644 --- a/docs/module-doc/globals_vars.html +++ b/docs/module-doc/globals_vars.html @@ -6,7 +6,7 @@ -
    a | b | c | e | f | i | m | o | p | r | s | t | w | x
    +
    a | b | c | e | f | m | o | r | s | t | w | x

    @@ -20,14 +20,13 @@ : xline.h

    - b -

    +: socket.cpp

    - c -

    - e -

    -

    - i -

    - m -

    - o -

    -

    - p -

    - r -

    - s -

    +: socket.cpp, modules.cpp
  • ServerInstance +: modules.cpp
  • socket_ref +: socket.cpp

    - t -

    - w -

    +
  • WHOWAS_MAX +: channels.cpp
  • WHOWAS_STALE +: channels.cpp

    - x -

    -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/graph_legend.html b/docs/module-doc/graph_legend.html index d1df49f64..b311a390d 100644 --- a/docs/module-doc/graph_legend.html +++ b/docs/module-doc/graph_legend.html @@ -67,7 +67,7 @@ A purple dashed arrow is used if a class is contained or used by another class.
  • A yellow dashed arrow denotes a relation between a template instance and the template class it was instantiated from. The arrow is labeled with the template parameters of the instance.
  • -
    Generated on Wed Dec 14 15:55:53 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/hashcomp_8h-source.html b/docs/module-doc/hashcomp_8h-source.html index 1e0fa4622..59008b12a 100644 --- a/docs/module-doc/hashcomp_8h-source.html +++ b/docs/module-doc/hashcomp_8h-source.html @@ -109,7 +109,7 @@ 00130 } 00131 00132 #endif -
    Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/hashcomp_8h.html b/docs/module-doc/hashcomp_8h.html index 8c1e6e7c3..c0e831778 100644 --- a/docs/module-doc/hashcomp_8h.html +++ b/docs/module-doc/hashcomp_8h.html @@ -16,8 +16,9 @@ Include dependency graph for hashcomp.h:

    - + +

    @@ -78,7 +79,7 @@ This graph shows which files directly or indirectly include this file:

    44 of file hashcomp.h. -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:17 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/hashcomp_8h__dep__incl.gif b/docs/module-doc/hashcomp_8h__dep__incl.gif index 076e8b9e0..d3caf5979 100644 Binary files a/docs/module-doc/hashcomp_8h__dep__incl.gif and b/docs/module-doc/hashcomp_8h__dep__incl.gif differ diff --git a/docs/module-doc/hashcomp_8h__dep__incl.map b/docs/module-doc/hashcomp_8h__dep__incl.map index f8f9b2cc4..52c40f1fc 100644 --- a/docs/module-doc/hashcomp_8h__dep__incl.map +++ b/docs/module-doc/hashcomp_8h__dep__incl.map @@ -1,3 +1,4 @@ base referer -rect $modules_8cpp-source.html 284,32 383,59 +rect $modules_8cpp-source.html 285,7 384,34 rect $typedefs_8h-source.html 151,58 236,84 +rect $channels_8cpp-source.html 285,58 384,84 diff --git a/docs/module-doc/hashcomp_8h__dep__incl.md5 b/docs/module-doc/hashcomp_8h__dep__incl.md5 index 02fa744bc..6be4611c3 100644 --- a/docs/module-doc/hashcomp_8h__dep__incl.md5 +++ b/docs/module-doc/hashcomp_8h__dep__incl.md5 @@ -1 +1 @@ -40ab5dae8b125b51cc6bddd308d045f3 \ No newline at end of file +6a6c46b821cf3dc5d3cadf06a3a1391b \ No newline at end of file diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index dd52dc05e..6d67cb6ba 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -62,12 +62,14 @@ This inheritance list is sorted roughly, but not completely, alphabetically: -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/inherit__graph__10.gif b/docs/module-doc/inherit__graph__10.gif index dfb0c4c56..ead171060 100644 Binary files a/docs/module-doc/inherit__graph__10.gif and b/docs/module-doc/inherit__graph__10.gif differ diff --git a/docs/module-doc/inherit__graph__10.map b/docs/module-doc/inherit__graph__10.map index cb5e68503..cf6c39bc6 100644 --- a/docs/module-doc/inherit__graph__10.map +++ b/docs/module-doc/inherit__graph__10.map @@ -1,2 +1,2 @@ base referer -rect $classSocketEngine.html 8,7 112,33 +rect $structnspace_1_1hash_3_01string_01_4.html 7,7 164,33 diff --git a/docs/module-doc/inherit__graph__10.md5 b/docs/module-doc/inherit__graph__10.md5 index 6349253e0..354478843 100644 --- a/docs/module-doc/inherit__graph__10.md5 +++ b/docs/module-doc/inherit__graph__10.md5 @@ -1 +1 @@ -949dcc70479b42522977703d4bb0a709 \ No newline at end of file +317e8030ba500855ca30d38cc6449d34 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__11.gif b/docs/module-doc/inherit__graph__11.gif index e79f9b374..8c35d516a 100644 Binary files a/docs/module-doc/inherit__graph__11.gif and b/docs/module-doc/inherit__graph__11.gif differ diff --git a/docs/module-doc/inherit__graph__11.map b/docs/module-doc/inherit__graph__11.map index f4dc152fc..8390fc618 100644 --- a/docs/module-doc/inherit__graph__11.map +++ b/docs/module-doc/inherit__graph__11.map @@ -1,2 +1,2 @@ base referer -rect $classWhoWasUser.html 8,7 112,33 +rect $classserverstats.html 7,7 95,33 diff --git a/docs/module-doc/inherit__graph__11.md5 b/docs/module-doc/inherit__graph__11.md5 index 49ded545f..2d37de06b 100644 --- a/docs/module-doc/inherit__graph__11.md5 +++ b/docs/module-doc/inherit__graph__11.md5 @@ -1 +1 @@ -5bff511d62c6faa81cdb63b1f78f6cd8 \ No newline at end of file +cf48882e944fddb7efa2fe6a320e8c63 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__12.gif b/docs/module-doc/inherit__graph__12.gif new file mode 100644 index 000000000..dfb0c4c56 Binary files /dev/null and b/docs/module-doc/inherit__graph__12.gif differ diff --git a/docs/module-doc/inherit__graph__12.map b/docs/module-doc/inherit__graph__12.map new file mode 100644 index 000000000..cb5e68503 --- /dev/null +++ b/docs/module-doc/inherit__graph__12.map @@ -0,0 +1,2 @@ +base referer +rect $classSocketEngine.html 8,7 112,33 diff --git a/docs/module-doc/inherit__graph__12.md5 b/docs/module-doc/inherit__graph__12.md5 new file mode 100644 index 000000000..6349253e0 --- /dev/null +++ b/docs/module-doc/inherit__graph__12.md5 @@ -0,0 +1 @@ +949dcc70479b42522977703d4bb0a709 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__13.gif b/docs/module-doc/inherit__graph__13.gif new file mode 100644 index 000000000..e79f9b374 Binary files /dev/null and b/docs/module-doc/inherit__graph__13.gif differ diff --git a/docs/module-doc/inherit__graph__13.map b/docs/module-doc/inherit__graph__13.map new file mode 100644 index 000000000..f4dc152fc --- /dev/null +++ b/docs/module-doc/inherit__graph__13.map @@ -0,0 +1,2 @@ +base referer +rect $classWhoWasUser.html 8,7 112,33 diff --git a/docs/module-doc/inherit__graph__13.md5 b/docs/module-doc/inherit__graph__13.md5 new file mode 100644 index 000000000..49ded545f --- /dev/null +++ b/docs/module-doc/inherit__graph__13.md5 @@ -0,0 +1 @@ +5bff511d62c6faa81cdb63b1f78f6cd8 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__5.gif b/docs/module-doc/inherit__graph__5.gif index f657b86ad..b55141572 100644 Binary files a/docs/module-doc/inherit__graph__5.gif and b/docs/module-doc/inherit__graph__5.gif differ diff --git a/docs/module-doc/inherit__graph__5.map b/docs/module-doc/inherit__graph__5.map index 9f8c7b021..ac2c9ebe9 100644 --- a/docs/module-doc/inherit__graph__5.map +++ b/docs/module-doc/inherit__graph__5.map @@ -1,2 +1,2 @@ base referer -rect $classInspSocket.html 7,7 95,33 +rect $classInspIRCd.html 7,7 84,33 diff --git a/docs/module-doc/inherit__graph__5.md5 b/docs/module-doc/inherit__graph__5.md5 index d2ac3e742..d6b0d6c87 100644 --- a/docs/module-doc/inherit__graph__5.md5 +++ b/docs/module-doc/inherit__graph__5.md5 @@ -1 +1 @@ -866431d87448beeff03effa477cb0785 \ No newline at end of file +027440a4e7d81cbfbc813d6bda090a43 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__6.gif b/docs/module-doc/inherit__graph__6.gif index 0f004ad81..f657b86ad 100644 Binary files a/docs/module-doc/inherit__graph__6.gif and b/docs/module-doc/inherit__graph__6.gif differ diff --git a/docs/module-doc/inherit__graph__6.map b/docs/module-doc/inherit__graph__6.map index dad9d9fcd..9f8c7b021 100644 --- a/docs/module-doc/inherit__graph__6.map +++ b/docs/module-doc/inherit__graph__6.map @@ -1,2 +1,2 @@ base referer -rect $structirc_1_1InAddr__HashComp.html 7,7 164,33 +rect $classInspSocket.html 7,7 95,33 diff --git a/docs/module-doc/inherit__graph__6.md5 b/docs/module-doc/inherit__graph__6.md5 index 9496775c7..d2ac3e742 100644 --- a/docs/module-doc/inherit__graph__6.md5 +++ b/docs/module-doc/inherit__graph__6.md5 @@ -1 +1 @@ -3c2c67e0c9a15d3aaf7860ffcd39768e \ No newline at end of file +866431d87448beeff03effa477cb0785 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__7.gif b/docs/module-doc/inherit__graph__7.gif index b68f09f13..0f004ad81 100644 Binary files a/docs/module-doc/inherit__graph__7.gif and b/docs/module-doc/inherit__graph__7.gif differ diff --git a/docs/module-doc/inherit__graph__7.map b/docs/module-doc/inherit__graph__7.map index 8c67f4a72..dad9d9fcd 100644 --- a/docs/module-doc/inherit__graph__7.map +++ b/docs/module-doc/inherit__graph__7.map @@ -1,2 +1,2 @@ base referer -rect $structirc_1_1StrHashComp.html 7,7 135,33 +rect $structirc_1_1InAddr__HashComp.html 7,7 164,33 diff --git a/docs/module-doc/inherit__graph__7.md5 b/docs/module-doc/inherit__graph__7.md5 index b62920d1d..9496775c7 100644 --- a/docs/module-doc/inherit__graph__7.md5 +++ b/docs/module-doc/inherit__graph__7.md5 @@ -1 +1 @@ -d94ccc9245ee31c76282e2c8ed0c0bb2 \ No newline at end of file +3c2c67e0c9a15d3aaf7860ffcd39768e \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__8.gif b/docs/module-doc/inherit__graph__8.gif index 2c759987a..b68f09f13 100644 Binary files a/docs/module-doc/inherit__graph__8.gif and b/docs/module-doc/inherit__graph__8.gif differ diff --git a/docs/module-doc/inherit__graph__8.map b/docs/module-doc/inherit__graph__8.map index e91564620..8c67f4a72 100644 --- a/docs/module-doc/inherit__graph__8.map +++ b/docs/module-doc/inherit__graph__8.map @@ -1,2 +1,2 @@ base referer -rect $structnspace_1_1hash_3_01in__addr_01_4.html 8,7 176,33 +rect $structirc_1_1StrHashComp.html 7,7 135,33 diff --git a/docs/module-doc/inherit__graph__8.md5 b/docs/module-doc/inherit__graph__8.md5 index 9c5f939fc..b62920d1d 100644 --- a/docs/module-doc/inherit__graph__8.md5 +++ b/docs/module-doc/inherit__graph__8.md5 @@ -1 +1 @@ -40e92872c26375b92021bb12d46d2211 \ No newline at end of file +d94ccc9245ee31c76282e2c8ed0c0bb2 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__9.gif b/docs/module-doc/inherit__graph__9.gif index ead171060..2c759987a 100644 Binary files a/docs/module-doc/inherit__graph__9.gif and b/docs/module-doc/inherit__graph__9.gif differ diff --git a/docs/module-doc/inherit__graph__9.map b/docs/module-doc/inherit__graph__9.map index cf6c39bc6..e91564620 100644 --- a/docs/module-doc/inherit__graph__9.map +++ b/docs/module-doc/inherit__graph__9.map @@ -1,2 +1,2 @@ base referer -rect $structnspace_1_1hash_3_01string_01_4.html 7,7 164,33 +rect $structnspace_1_1hash_3_01in__addr_01_4.html 8,7 176,33 diff --git a/docs/module-doc/inherit__graph__9.md5 b/docs/module-doc/inherit__graph__9.md5 index 354478843..9c5f939fc 100644 --- a/docs/module-doc/inherit__graph__9.md5 +++ b/docs/module-doc/inherit__graph__9.md5 @@ -1 +1 @@ -317e8030ba500855ca30d38cc6449d34 \ No newline at end of file +40e92872c26375b92021bb12d46d2211 \ No newline at end of file diff --git a/docs/module-doc/inherits.html b/docs/module-doc/inherits.html index d9f95000c..514c47665 100644 --- a/docs/module-doc/inherits.html +++ b/docs/module-doc/inherits.html @@ -60,36 +60,44 @@ - + + + + + - + - + - + - + - + + + + + - + -
    Generated on Wed Dec 14 15:55:53 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:30 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/inspircd_8h-source.html b/docs/module-doc/inspircd_8h-source.html new file mode 100644 index 000000000..e9f0d62f6 --- /dev/null +++ b/docs/module-doc/inspircd_8h-source.html @@ -0,0 +1,150 @@ + + +InspIRCd: inspircd.h Source File + + + + + +

    inspircd.h

    Go to the documentation of this file.
    00001 /*       +------------------------------------+
    +00002  *       | Inspire Internet Relay Chat Daemon |
    +00003  *       +------------------------------------+
    +00004  *
    +00005  *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
    +00006  *                       E-mail:
    +00007  *                <brain@chatspike.net>
    +00008  *                <Craig@chatspike.net>
    +00009  *     
    +00010  * Written by Craig Edwards, Craig McLure, and others.
    +00011  * This program is free but copyrighted software; see
    +00012  *            the file COPYING for details.
    +00013  *
    +00014  * ---------------------------------------------------
    +00015  */
    +00016 
    +00017 #ifndef __INSPIRCD_H__
    +00018 #define __INSPIRCD_H__
    +00019 
    +00020 #include "inspircd_config.h"
    +00021 #include <string>
    +00022 #include <stdio.h>
    +00023 #include <unistd.h>
    +00024 #include <signal.h>
    +00025 #include <time.h>
    +00026 #include <netdb.h>
    +00027 #include <string.h>
    +00028 #include <errno.h>
    +00029 #include <sys/types.h>
    +00030 
    +00031 #ifndef _LINUX_C_LIB_VERSION
    +00032 #include <sys/socket.h>
    +00033 #include <sys/stat.h>
    +00034 #include <netinet/in.h>
    +00035 #endif
    +00036 
    +00037 #include <arpa/inet.h>
    +00038 #include <string>
    +00039 #include <deque>
    +00040 
    +00041 #include "inspircd_io.h"
    +00042 #include "inspircd_util.h"
    +00043 #include "users.h"
    +00044 #include "channels.h"
    +00045 #include "socket.h"
    +00046 
    +00047 // some misc defines
    +00048 
    +00049 #define ERROR -1
    +00050 #define TRUE 1
    +00051 #define FALSE 0
    +00052 #define MAXSOCKS 64
    +00053 #define MAXCOMMAND 32
    +00054 
    +00055 // flags for use with WriteMode
    +00056 
    +00057 #define WM_AND 1
    +00058 #define WM_OR 2
    +00059 
    +00060 // flags for use with OnUserPreMessage and OnUserPreNotice
    +00061 
    +00062 #define TYPE_USER 1
    +00063 #define TYPE_CHANNEL 2
    +00064 #define TYPE_SERVER 3
    +00065 
    +00066 #define IS_LOCAL(x) (x->fd > -1)
    +00067 #define IS_REMOTE(x) (x->fd < 0)
    +00068 #define IS_MODULE_CREATED(x) (x->fd == FD_MAGIC_NUMBER)
    +00069 
    +00070 typedef void (handlerfunc) (char**, int, userrec*);
    +00071 
    +00072 class serverstats
    +00073 {
    +00074   public:
    +00075         int statsAccept;
    +00076         int statsRefused;
    +00077         int statsUnknown;
    +00078         int statsCollisions;
    +00079         int statsDns;
    +00080         int statsDnsGood;
    +00081         int statsDnsBad;
    +00082         int statsConnects;
    +00083         int statsSent;
    +00084         int statsRecv;
    +00085 
    +00086         serverstats()
    +00087         {
    +00088                 statsAccept = statsRefused = statsUnknown = 0;
    +00089                 statsCollisions = statsDns = statsDnsGood = 0;
    +00090                 statsDnsBad = statsConnects = statsSent = statsRecv = 0;
    +00091         }
    +00092 };
    +00093 
    +00094 
    +00095 class InspIRCd
    +00096 {
    +00097 
    +00098  private:
    +00099         void erase_factory(int j);
    +00100         void erase_module(int j);
    +00101 
    +00102  public:
    +00103         time_t startup_time;
    +00104 
    +00105         bool LoadModule(const char* filename);
    +00106         bool UnloadModule(const char* filename);
    +00107         InspIRCd(int argc, char** argv);
    +00108         int Run();
    +00109 
    +00110 };
    +00111 
    +00112 /* prototypes */
    +00113 void force_nickchange(userrec* user,const char* newnick);
    +00114 void kill_link(userrec *user,const char* r);
    +00115 void kill_link_silent(userrec *user,const char* r);
    +00116 void call_handler(const char* commandname,char **parameters, int pcnt, userrec *user);
    +00117 bool is_valid_cmd(const char* commandname, int pcnt, userrec * user);
    +00118 std::string GetRevision();
    +00119 int loop_call(handlerfunc fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins);
    +00120 void AddWhoWas(userrec* u);
    +00121 void ConnectUser(userrec *user);
    +00122 userrec* ReHashNick(char* Old, char* New);
    +00123 char* ModuleError();
    +00124 /* optimization tricks to save us walking the user hash */
    +00125 void AddOper(userrec* user);
    +00126 void DeleteOper(userrec* user);
    +00127 void handle_version(char **parameters, int pcnt, userrec *user);
    +00128 /* userrec optimization stuff */
    +00129 void AddServerName(std::string servername);
    +00130 const char* FindServerNamePtr(std::string servername);
    +00131 std::string GetVersionString();
    +00132 void* dns_task(void* arg);
    +00133 void process_buffer(const char* cmdbuf,userrec *user);
    +00134 void FullConnectUser(userrec* user);
    +00135 
    +00136 #endif
    +

    Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
    + + diff --git a/docs/module-doc/inspircd_8h.html b/docs/module-doc/inspircd_8h.html new file mode 100644 index 000000000..7fb7590fc --- /dev/null +++ b/docs/module-doc/inspircd_8h.html @@ -0,0 +1,1210 @@ + + +InspIRCd: inspircd.h File Reference + + + + + +

    inspircd.h File Reference

    #include "inspircd_config.h"
    +#include <string>
    +#include <stdio.h>
    +#include <unistd.h>
    +#include <signal.h>
    +#include <time.h>
    +#include <netdb.h>
    +#include <string.h>
    +#include <errno.h>
    +#include <sys/types.h>
    +#include <sys/socket.h>
    +#include <sys/stat.h>
    +#include <netinet/in.h>
    +#include <arpa/inet.h>
    +#include <deque>
    +#include "inspircd_io.h"
    +#include "inspircd_util.h"
    +#include "users.h"
    +#include "channels.h"
    +#include "socket.h"
    + +

    +Include dependency graph for inspircd.h:

    + + + + + + + +

    +This graph shows which files directly or indirectly include this file:

    + + + + + + + + + + + + +

    +Go to the source code of this file. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Classes

    class  serverstats
    class  InspIRCd

    Defines

    #define ERROR   -1
    #define TRUE   1
    #define FALSE   0
    #define MAXSOCKS   64
    #define MAXCOMMAND   32
    #define WM_AND   1
    #define WM_OR   2
    #define TYPE_USER   1
    #define TYPE_CHANNEL   2
    #define TYPE_SERVER   3
    #define IS_LOCAL(x)   (x->fd > -1)
    #define IS_REMOTE(x)   (x->fd < 0)
    #define IS_MODULE_CREATED(x)   (x->fd == FD_MAGIC_NUMBER)

    Typedefs

    typedef void( handlerfunc )(char **, int, userrec *)

    Functions

    void force_nickchange (userrec *user, const char *newnick)
    void kill_link (userrec *user, const char *r)
    void kill_link_silent (userrec *user, const char *r)
    void call_handler (const char *commandname, char **parameters, int pcnt, userrec *user)
    bool is_valid_cmd (const char *commandname, int pcnt, userrec *user)
    std::string GetRevision ()
    int loop_call (handlerfunc fn, char **parameters, int pcnt, userrec *u, int start, int end, int joins)
    void AddWhoWas (userrec *u)
    void ConnectUser (userrec *user)
    userrecReHashNick (char *Old, char *New)
    char * ModuleError ()
    void AddOper (userrec *user)
    void DeleteOper (userrec *user)
    void handle_version (char **parameters, int pcnt, userrec *user)
    void AddServerName (std::string servername)
    const char * FindServerNamePtr (std::string servername)
    std::string GetVersionString ()
    void * dns_task (void *arg)
    void process_buffer (const char *cmdbuf, userrec *user)
    void FullConnectUser (userrec *user)
    +


    Define Documentation

    +

    + + + + +
    + + + + +
    #define ERROR   -1
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 49 of file inspircd.h. +

    +Referenced by InspSocket::InspSocket().

    +

    + + + + +
    + + + + +
    #define FALSE   0
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 51 of file inspircd.h.

    +

    + + + + +
    + + + + + + + + + +
    #define IS_LOCAL  )    (x->fd > -1)
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 66 of file inspircd.h.

    +

    + + + + +
    + + + + + + + + + +
    #define IS_MODULE_CREATED  )    (x->fd == FD_MAGIC_NUMBER)
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 68 of file inspircd.h.

    +

    + + + + +
    + + + + + + + + + +
    #define IS_REMOTE  )    (x->fd < 0)
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 67 of file inspircd.h.

    +

    + + + + +
    + + + + +
    #define MAXCOMMAND   32
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 53 of file inspircd.h.

    +

    + + + + +
    + + + + +
    #define MAXSOCKS   64
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 52 of file inspircd.h.

    +

    + + + + +
    + + + + +
    #define TRUE   1
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 50 of file inspircd.h.

    +

    + + + + +
    + + + + +
    #define TYPE_CHANNEL   2
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 63 of file inspircd.h.

    +

    + + + + +
    + + + + +
    #define TYPE_SERVER   3
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 64 of file inspircd.h.

    +

    + + + + +
    + + + + +
    #define TYPE_USER   1
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 62 of file inspircd.h.

    +

    + + + + +
    + + + + +
    #define WM_AND   1
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 57 of file inspircd.h.

    +

    + + + + +
    + + + + +
    #define WM_OR   2
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 58 of file inspircd.h.

    +


    Typedef Documentation

    +

    + + + + +
    + + + + +
    typedef void( handlerfunc)(char **, int, userrec *)
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 70 of file inspircd.h.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + +
    void AddOper userrec user  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + +
    void AddServerName std::string  servername  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + +
    void AddWhoWas userrec u  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void call_handler const char *  commandname,
    char **  parameters,
    int  pcnt,
    userrec user
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::CallCommandHandler().

    +

    + + + + +
    + + + + + + + + + +
    void ConnectUser userrec user  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + +
    void DeleteOper userrec user  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + +
    void* dns_task void *  arg  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + +
    const char* FindServerNamePtr std::string  servername  ) 
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by userrec::userrec().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    void force_nickchange userrec user,
    const char *  newnick
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::ChangeUserNick().

    +

    + + + + +
    + + + + + + + + + +
    void FullConnectUser userrec user  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + +
    std::string GetRevision  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + +
    std::string GetVersionString  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void handle_version char **  parameters,
    int  pcnt,
    userrec user
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    bool is_valid_cmd const char *  commandname,
    int  pcnt,
    userrec user
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::IsValidModuleCommand().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    void kill_link userrec user,
    const char *  r
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::PseudoToUser(), and Server::QuitUser().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    void kill_link_silent userrec user,
    const char *  r
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    int loop_call handlerfunc  fn,
    char **  parameters,
    int  pcnt,
    userrec u,
    int  start,
    int  end,
    int  joins
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + +
    char* ModuleError  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    void process_buffer const char *  cmdbuf,
    userrec user
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    userrec* ReHashNick char *  Old,
    char *  New
    +
    + + + + + +
    +   + + +

    +

    +


    Generated on Wed Dec 14 19:16:18 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
    + + diff --git a/docs/module-doc/inspircd_8h__dep__incl.gif b/docs/module-doc/inspircd_8h__dep__incl.gif new file mode 100644 index 000000000..2c276626e Binary files /dev/null and b/docs/module-doc/inspircd_8h__dep__incl.gif differ diff --git a/docs/module-doc/inspircd_8h__dep__incl.map b/docs/module-doc/inspircd_8h__dep__incl.map new file mode 100644 index 000000000..280811f38 --- /dev/null +++ b/docs/module-doc/inspircd_8h__dep__incl.map @@ -0,0 +1,10 @@ +base referer +rect $channels_8cpp-source.html 469,83 568,110 +rect $modules_8cpp-source.html 469,260 568,287 +rect $socket_8cpp-source.html 315,362 400,388 +rect $socketengine_8cpp-source.html 295,463 420,490 +rect $users_8cpp-source.html 151,514 231,540 +rect $ctables_8h-source.html 153,159 228,186 +rect $typedefs_8h-source.html 315,108 400,135 +rect $inspircd__io_8h-source.html 143,260 239,287 +rect $socketengine_8h-source.html 135,412 247,439 diff --git a/docs/module-doc/inspircd_8h__dep__incl.md5 b/docs/module-doc/inspircd_8h__dep__incl.md5 new file mode 100644 index 000000000..5361c877a --- /dev/null +++ b/docs/module-doc/inspircd_8h__dep__incl.md5 @@ -0,0 +1 @@ +782bd90da01c2446bdc3773deda660d0 \ No newline at end of file diff --git a/docs/module-doc/inspircd_8h__incl.gif b/docs/module-doc/inspircd_8h__incl.gif new file mode 100644 index 000000000..a86c8b53e Binary files /dev/null and b/docs/module-doc/inspircd_8h__incl.gif differ diff --git a/docs/module-doc/inspircd_8h__incl.map b/docs/module-doc/inspircd_8h__incl.map new file mode 100644 index 000000000..c32bf91d7 --- /dev/null +++ b/docs/module-doc/inspircd_8h__incl.map @@ -0,0 +1,5 @@ +base referer +rect $inspircd__io_8h-source.html 139,615 235,642 +rect $users_8h-source.html 155,868 219,895 +rect $channels_8h-source.html 292,868 377,895 +rect $socket_8h-source.html 151,463 223,490 diff --git a/docs/module-doc/inspircd_8h__incl.md5 b/docs/module-doc/inspircd_8h__incl.md5 new file mode 100644 index 000000000..00acfb0a8 --- /dev/null +++ b/docs/module-doc/inspircd_8h__incl.md5 @@ -0,0 +1 @@ +8358cd32839305504555325b345eb8ff \ No newline at end of file diff --git a/docs/module-doc/inspircd__io_8h-source.html b/docs/module-doc/inspircd__io_8h-source.html index adb91f08c..c39058286 100644 --- a/docs/module-doc/inspircd__io_8h-source.html +++ b/docs/module-doc/inspircd__io_8h-source.html @@ -29,8 +29,8 @@ 00020 #include <sstream> 00021 #include <string> 00022 #include <vector> -00023 #include "inspircd.h" -00024 #include "globals.h" +00023 #include "inspircd.h" +00024 #include "globals.h" 00025 00028 #define DEBUG 10 00029 #define VERBOSE 20 @@ -111,9 +111,9 @@ 00212 00216 char addrs[MAXBUF][255]; 00217 -00220 file_cache MOTD; +00220 file_cache MOTD; 00221 -00224 file_cache RULES; +00224 file_cache RULES; 00225 00229 char PID[1024]; 00230 @@ -123,31 +123,34 @@ 00243 00247 std::vector<std::string> module_names; 00248 -00249 ServerConfig(); -00250 -00254 void ClearStack(); -00255 -00260 void Read(bool bail, userrec* user); -00261 -00262 bool LoadConf(const char* filename, std::stringstream *target, std::stringstream* errorstream); -00263 int ConfValue(char* tag, char* var, int index, char *result, std::stringstream *config); -00264 int ReadConf(std::stringstream *config_f,const char* tag, const char* var, int index, char *result); -00265 int ConfValueEnum(char* tag,std::stringstream *config); -00266 int EnumConf(std::stringstream *config_f,const char* tag); -00267 int EnumValues(std::stringstream *config, const char* tag, int index); -00268 }; -00269 -00270 -00271 void Exit (int); -00272 void Start (void); -00273 int DaemonSeed (void); -00274 bool FileExists (const char* file); -00275 int OpenTCPSocket (void); -00276 int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr); -00277 void WritePID(std::string filename); -00278 -00279 #endif -
    Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +00251 int ports[255]; +00252 +00253 ServerConfig(); +00254 +00258 void ClearStack(); +00259 +00264 void Read(bool bail, userrec* user); +00265 +00266 bool LoadConf(const char* filename, std::stringstream *target, std::stringstream* errorstream); +00267 int ConfValue(char* tag, char* var, int index, char *result, std::stringstream *config); +00268 int ReadConf(std::stringstream *config_f,const char* tag, const char* var, int index, char *result); +00269 int ConfValueEnum(char* tag,std::stringstream *config); +00270 int EnumConf(std::stringstream *config_f,const char* tag); +00271 int EnumValues(std::stringstream *config, const char* tag, int index); +00272 }; +00273 +00274 +00275 void Exit (int); +00276 void Start (void); +00277 int DaemonSeed (void); +00278 bool FileExists (const char* file); +00279 int OpenTCPSocket (void); +00280 int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr); +00281 void WritePID(std::string filename); +00282 int BindPorts(); +00283 +00284 #endif +
    Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/inspircd__io_8h.html b/docs/module-doc/inspircd__io_8h.html index 37dd23863..7fce7a098 100644 --- a/docs/module-doc/inspircd__io_8h.html +++ b/docs/module-doc/inspircd__io_8h.html @@ -10,18 +10,23 @@

    inspircd_io.h File Reference

    #include <sstream>
    #include <string>
    #include <vector>
    -#include "inspircd.h"
    -#include "globals.h"
    +#include "inspircd.h"
    +#include "globals.h"

    Include dependency graph for inspircd_io.h:

    + + + +

    This graph shows which files directly or indirectly include this file:

    - - - + + + +

    @@ -34,7 +39,7 @@ This graph shows which files directly or indirectly include this file:


    Defines

    #define DEBUG   10 - Flags for use with log().
    + Flags for use with log().
    #define VERBOSE   20 #define DEFAULT   30 @@ -58,6 +63,8 @@ This graph shows which files directly or indirectly include this file:

    void WritePID (std::string filename) +int BindPorts () +

    Define Documentation

    @@ -80,13 +87,13 @@ This graph shows which files directly or indirectly include this file:

    -Flags for use with log(). +Flags for use with log().

    Definition at line 28 of file inspircd_io.h.

    -Referenced by Server::AddExtendedMode(), SocketEngine::AddFd(), chanrec::AddUser(), SocketEngine::DelFd(), chanrec::DelUser(), InspSocket::InspSocket(), InspSocket::Read(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), SocketEngine::SocketEngine(), and SocketEngine::~SocketEngine(). +Referenced by add_channel(), Server::AddExtendedMode(), SocketEngine::AddFd(), chanrec::AddUser(), del_channel(), SocketEngine::DelFd(), chanrec::DelUser(), ForceChan(), InspSocket::InspSocket(), kick_channel(), InspSocket::Read(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), SocketEngine::SocketEngine(), and SocketEngine::~SocketEngine().

    @@ -111,7 +118,9 @@ Referenced by Server::AddEx

    -Definition at line 30 of file inspircd_io.h. +Definition at line 30 of file inspircd_io.h. +

    +Referenced by add_channel(), del_channel(), and kick_channel().

    @@ -190,6 +199,33 @@ Definition at line 29


    Function Documentation

    +

    + + + + +
    + + + + + + + + +
    int BindPorts  ) 
    +
    + + + + + +
    +   + + +

    +

    @@ -417,7 +453,7 @@ Referenced by InspSocket::In
    -


    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:19 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/inspircd__io_8h__dep__incl.gif b/docs/module-doc/inspircd__io_8h__dep__incl.gif index d9adbe194..9b7d71947 100644 Binary files a/docs/module-doc/inspircd__io_8h__dep__incl.gif and b/docs/module-doc/inspircd__io_8h__dep__incl.gif differ diff --git a/docs/module-doc/inspircd__io_8h__dep__incl.map b/docs/module-doc/inspircd__io_8h__dep__incl.map index 3d1893566..1b2fd55bc 100644 --- a/docs/module-doc/inspircd__io_8h__dep__incl.map +++ b/docs/module-doc/inspircd__io_8h__dep__incl.map @@ -1,4 +1,5 @@ base referer -rect $channels_8cpp-source.html 155,7 253,33 -rect $modules_8cpp-source.html 155,57 253,84 -rect $socket_8cpp-source.html 161,108 247,135 +rect $channels_8cpp-source.html 283,20 381,47 +rect $modules_8cpp-source.html 283,96 381,123 +rect $socket_8cpp-source.html 289,147 375,173 +rect $inspircd_8h-source.html 153,57 233,84 diff --git a/docs/module-doc/inspircd__io_8h__dep__incl.md5 b/docs/module-doc/inspircd__io_8h__dep__incl.md5 index 2c682c785..dcdb730b7 100644 --- a/docs/module-doc/inspircd__io_8h__dep__incl.md5 +++ b/docs/module-doc/inspircd__io_8h__dep__incl.md5 @@ -1 +1 @@ -7eca6ee03b8313db6051fb05e53f2d93 \ No newline at end of file +722bc875f4773acca578188c1eaafc53 \ No newline at end of file diff --git a/docs/module-doc/inspircd__io_8h__incl.gif b/docs/module-doc/inspircd__io_8h__incl.gif index f574379f0..7addcea98 100644 Binary files a/docs/module-doc/inspircd__io_8h__incl.gif and b/docs/module-doc/inspircd__io_8h__incl.gif differ diff --git a/docs/module-doc/inspircd__io_8h__incl.map b/docs/module-doc/inspircd__io_8h__incl.map index 5a14779e7..51ab7577f 100644 --- a/docs/module-doc/inspircd__io_8h__incl.map +++ b/docs/module-doc/inspircd__io_8h__incl.map @@ -1 +1,3 @@ base referer +rect $inspircd_8h-source.html 153,159 233,186 +rect $globals_8h-source.html 156,210 231,236 diff --git a/docs/module-doc/inspircd__io_8h__incl.md5 b/docs/module-doc/inspircd__io_8h__incl.md5 index 974329ef1..8a137bb78 100644 --- a/docs/module-doc/inspircd__io_8h__incl.md5 +++ b/docs/module-doc/inspircd__io_8h__incl.md5 @@ -1 +1 @@ -be7efab13a3353412e4a7bcda3182ee6 \ No newline at end of file +a89903b24a07224b6560b828285cf5bb \ No newline at end of file diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index cc6fc63b3..1030583a1 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -7,7 +7,7 @@

    InspIRCd Documentation

    -

    1.0Betareleases


    Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +

    1.0Betareleases


    Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/message_8h-source.html b/docs/module-doc/message_8h-source.html index 6d5e580d7..2d85dcae6 100644 --- a/docs/module-doc/message_8h-source.html +++ b/docs/module-doc/message_8h-source.html @@ -37,7 +37,7 @@ 00028 #include "users.h" 00029 #include "channels.h" 00030 -00031 int common_channels(userrec *u, userrec *u2); +00031 int common_channels(userrec *u, userrec *u2); 00032 void chop(char* str); 00033 void tidystring(char* str); 00034 void Blocking(int s); @@ -48,8 +48,8 @@ 00039 void ChangeName(userrec* user, const char* gecos); 00040 void ChangeDisplayedHost(userrec* user, const char* host); 00041 int isident(const char* n); -00042 int isnick(const char* n); -00043 char* cmode(userrec *user, chanrec *chan); +00042 int isnick(const char* n); +00043 char* cmode(userrec *user, chanrec *chan); 00044 int cstatus(userrec *user, chanrec *chan); 00045 int has_channel(userrec *u, chanrec *c); 00046 void TidyBan(char *ban); @@ -57,7 +57,7 @@ 00048 void send_network_quit(const char* nick, const char* reason); 00049 00050 #endif -
    Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/message_8h.html b/docs/module-doc/message_8h.html index ec2abd1ed..291b55ede 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -165,7 +165,7 @@ This graph shows which files directly or indirectly include this file:

    -Referenced by Server::ChangeHost(). +Referenced by Server::ChangeHost().

    @@ -204,7 +204,7 @@ Referenced by Server::Chang

    -Referenced by Server::ChangeGECOS(). +Referenced by Server::ChangeGECOS().

    @@ -343,9 +343,7 @@ Referenced by Server::Chang

    - -

    -Referenced by Server::ChanMode(). +

    @@ -382,9 +380,7 @@ Referenced by Server::ChanM

    - -

    -Referenced by Server::CommonChannels(). +

    @@ -421,7 +417,9 @@ Referenced by Server::Commo

    - + +

    +Referenced by kick_channel().

    @@ -460,7 +458,7 @@ Referenced by Server::Commo

    -Referenced by Server::IsOnChannel(). +Referenced by add_channel(), Server::IsOnChannel(), and kick_channel().

    @@ -553,9 +551,7 @@ Referenced by Server::IsOnC

    - -

    -Referenced by Server::IsNick(). +

    @@ -679,7 +675,7 @@ Referenced by Server::IsNic -


    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:19 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/mode_8h-source.html b/docs/module-doc/mode_8h-source.html index 1c5287364..e9840b46a 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -11,7 +11,7 @@ 00002 * | Inspire Internet Relay Chat Daemon | 00003 * +------------------------------------+ 00004 * -00005 * Inspire is copyright (C) 2002-2004 ChatSpike-Dev. +00005 * Inspire is copyright (C) 2002-2005 ChatSpike-Dev. 00006 * E-mail: 00007 * <brain@chatspike.net> 00008 * <Craig@chatspike.net> @@ -55,7 +55,7 @@ 00046 00047 00048 #endif -
    Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:11 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/mode_8h.html b/docs/module-doc/mode_8h.html index 5848b0695..fd523ca56 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -593,7 +593,7 @@ This graph shows which files directly or indirectly include this file:

    -Referenced by Server::SendMode(). +Referenced by Server::SendMode().

    @@ -792,7 +792,7 @@ Referenced by Server::SendM -


    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:19 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index 0ecd0c95b..c229ba336 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -26,7 +26,7 @@ 00017 using namespace std; 00018 00019 #include "inspircd_config.h" -00020 #include "inspircd.h" +00020 #include "inspircd.h" 00021 #include "inspircd_io.h" 00022 #include "inspircd_util.h" 00023 #include <unistd.h> @@ -44,7 +44,7 @@ 00035 #include <deque> 00036 #include "users.h" 00037 #include "ctables.h" -00038 #include "globals.h" +00038 #include "globals.h" 00039 #include "modules.h" 00040 #include "dynamic.h" 00041 #include "wildcard.h" @@ -61,893 +61,885 @@ 00052 00053 extern SocketEngine* SE; 00054 extern ServerConfig *Config; -00055 extern int MODCOUNT; -00056 extern std::vector<Module*> modules; -00057 extern std::vector<ircd_module*> factory; -00058 extern std::vector<InspSocket*> module_sockets; -00059 -00060 extern time_t TIME; -00061 extern int WHOWAS_STALE; -00062 extern int WHOWAS_MAX; -00063 extern time_t startup_time; -00064 extern int boundPortCount; -00065 extern int portCount; -00066 extern int ports[MAXSOCKS]; -00067 -00068 class Server; -00069 extern userrec* fd_ref_table[65536]; -00070 -00071 extern user_hash clientlist; -00072 extern chan_hash chanlist; -00073 extern whowas_hash whowas; -00074 extern command_table cmdlist; -00075 extern address_cache IP; -00076 ExtModeList EMode; -00077 -00078 // returns true if an extended mode character is in use -00079 bool ModeDefined(char modechar, int type) -00080 { -00081 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00082 { -00083 if ((i->modechar == modechar) && (i->type == type)) -00084 { -00085 return true; -00086 } -00087 } -00088 return false; -00089 } -00090 -00091 bool ModeIsListMode(char modechar, int type) -00092 { -00093 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00094 { -00095 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) -00096 { -00097 return true; -00098 } -00099 } -00100 return false; -00101 } -00102 -00103 bool ModeDefinedOper(char modechar, int type) -00104 { -00105 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00106 { -00107 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) -00108 { -00109 return true; -00110 } -00111 } -00112 return false; -00113 } -00114 -00115 // returns number of parameters for a custom mode when it is switched on -00116 int ModeDefinedOn(char modechar, int type) -00117 { -00118 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00119 { -00120 if ((i->modechar == modechar) && (i->type == type)) -00121 { -00122 return i->params_when_on; -00123 } -00124 } -00125 return 0; -00126 } -00127 -00128 // returns number of parameters for a custom mode when it is switched on -00129 int ModeDefinedOff(char modechar, int type) -00130 { -00131 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00132 { -00133 if ((i->modechar == modechar) && (i->type == type)) -00134 { -00135 return i->params_when_off; -00136 } -00137 } -00138 return 0; -00139 } -00140 -00141 // returns true if an extended mode character is in use -00142 bool DoAddExtendedMode(char modechar, int type, bool requires_oper, int params_on, int params_off) -00143 { -00144 if (ModeDefined(modechar,type)) { -00145 return false; -00146 } -00147 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); -00148 return true; -00149 } -00150 -00151 // turns a mode into a listmode -00152 void ModeMakeList(char modechar) -00153 { -00154 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00155 { -00156 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) -00157 { -00158 i->list = true; -00159 return; -00160 } -00161 } -00162 return; -00163 } +00055 extern InspIRCd* ServerInstance; +00056 extern int MODCOUNT; +00057 extern std::vector<Module*> modules; +00058 extern std::vector<ircd_module*> factory; +00059 extern std::vector<InspSocket*> module_sockets; +00060 +00061 extern time_t TIME; +00062 class Server; +00063 extern userrec* fd_ref_table[65536]; +00064 +00065 extern user_hash clientlist; +00066 extern chan_hash chanlist; +00067 extern command_table cmdlist; +00068 ExtModeList EMode; +00069 +00070 // returns true if an extended mode character is in use +00071 bool ModeDefined(char modechar, int type) +00072 { +00073 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00074 { +00075 if ((i->modechar == modechar) && (i->type == type)) +00076 { +00077 return true; +00078 } +00079 } +00080 return false; +00081 } +00082 +00083 bool ModeIsListMode(char modechar, int type) +00084 { +00085 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00086 { +00087 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) +00088 { +00089 return true; +00090 } +00091 } +00092 return false; +00093 } +00094 +00095 bool ModeDefinedOper(char modechar, int type) +00096 { +00097 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00098 { +00099 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) +00100 { +00101 return true; +00102 } +00103 } +00104 return false; +00105 } +00106 +00107 // returns number of parameters for a custom mode when it is switched on +00108 int ModeDefinedOn(char modechar, int type) +00109 { +00110 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00111 { +00112 if ((i->modechar == modechar) && (i->type == type)) +00113 { +00114 return i->params_when_on; +00115 } +00116 } +00117 return 0; +00118 } +00119 +00120 // returns number of parameters for a custom mode when it is switched on +00121 int ModeDefinedOff(char modechar, int type) +00122 { +00123 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00124 { +00125 if ((i->modechar == modechar) && (i->type == type)) +00126 { +00127 return i->params_when_off; +00128 } +00129 } +00130 return 0; +00131 } +00132 +00133 // returns true if an extended mode character is in use +00134 bool DoAddExtendedMode(char modechar, int type, bool requires_oper, int params_on, int params_off) +00135 { +00136 if (ModeDefined(modechar,type)) { +00137 return false; +00138 } +00139 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); +00140 return true; +00141 } +00142 +00143 // turns a mode into a listmode +00144 void ModeMakeList(char modechar) +00145 { +00146 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00147 { +00148 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) +00149 { +00150 i->list = true; +00151 return; +00152 } +00153 } +00154 return; +00155 } +00156 +00157 // version is a simple class for holding a modules version number +00158 +00159 Version::Version(int major, int minor, int revision, int build, int flags) : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; +00160 +00161 // admin is a simple class for holding a server's administrative info +00162 +00163 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; 00164 -00165 // version is a simple class for holding a modules version number +00165 Request::Request(char* anydata, Module* src, Module* dst) : data(anydata), source(src), dest(dst) { }; 00166 -00167 Version::Version(int major, int minor, int revision, int build, int flags) : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; -00168 -00169 // admin is a simple class for holding a server's administrative info -00170 -00171 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; -00172 -00173 Request::Request(char* anydata, Module* src, Module* dst) : data(anydata), source(src), dest(dst) { }; -00174 -00175 char* Request::GetData() -00176 { -00177 return this->data; -00178 } -00179 -00180 Module* Request::GetSource() -00181 { -00182 return this->source; -00183 } -00184 -00185 Module* Request::GetDest() -00186 { -00187 return this->dest; -00188 } -00189 -00190 char* Request::Send() -00191 { -00192 if (this->dest) -00193 { -00194 return dest->OnRequest(this); -00195 } -00196 else -00197 { -00198 return NULL; -00199 } -00200 } -00201 -00202 Event::Event(char* anydata, Module* src, std::string eventid) : data(anydata), source(src), id(eventid) { }; -00203 -00204 char* Event::GetData() -00205 { -00206 return this->data; -00207 } -00208 -00209 Module* Event::GetSource() -00210 { -00211 return this->source; -00212 } -00213 -00214 char* Event::Send() -00215 { -00216 FOREACH_MOD OnEvent(this); -00217 return NULL; -00218 } +00167 char* Request::GetData() +00168 { +00169 return this->data; +00170 } +00171 +00172 Module* Request::GetSource() +00173 { +00174 return this->source; +00175 } +00176 +00177 Module* Request::GetDest() +00178 { +00179 return this->dest; +00180 } +00181 +00182 char* Request::Send() +00183 { +00184 if (this->dest) +00185 { +00186 return dest->OnRequest(this); +00187 } +00188 else +00189 { +00190 return NULL; +00191 } +00192 } +00193 +00194 Event::Event(char* anydata, Module* src, std::string eventid) : data(anydata), source(src), id(eventid) { }; +00195 +00196 char* Event::GetData() +00197 { +00198 return this->data; +00199 } +00200 +00201 Module* Event::GetSource() +00202 { +00203 return this->source; +00204 } +00205 +00206 char* Event::Send() +00207 { +00208 FOREACH_MOD OnEvent(this); +00209 return NULL; +00210 } +00211 +00212 std::string Event::GetEventID() +00213 { +00214 return this->id; +00215 } +00216 +00217 +00218 // These declarations define the behavours of the base class Module (which does nothing at all) 00219 -00220 std::string Event::GetEventID() -00221 { -00222 return this->id; -00223 } -00224 -00225 -00226 // These declarations define the behavours of the base class Module (which does nothing at all) -00227 -00228 Module::Module(Server* Me) { } -00229 Module::~Module() { } -00230 void Module::OnUserConnect(userrec* user) { } -00231 void Module::OnUserQuit(userrec* user, std::string message) { } -00232 void Module::OnUserDisconnect(userrec* user) { } -00233 void Module::OnUserJoin(userrec* user, chanrec* channel) { } -00234 void Module::OnUserPart(userrec* user, chanrec* channel) { } -00235 void Module::OnRehash(std::string parameter) { } -00236 void Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { } -00237 int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; } -00238 int Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; } -00239 void Module::OnMode(userrec* user, void* dest, int target_type, std::string text) { }; -00240 Version Module::GetVersion() { return Version(1,0,0,0,VF_VENDOR); } -00241 void Module::OnOper(userrec* user, std::string opertype) { }; -00242 void Module::OnInfo(userrec* user) { }; -00243 void Module::OnWhois(userrec* source, userrec* dest) { }; -00244 int Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; }; -00245 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; -00246 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; -00247 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; -00248 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; -00249 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; -00250 void Module::On005Numeric(std::string &output) { }; -00251 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; -00252 void Module::OnLoadModule(Module* mod,std::string name) { }; -00253 void Module::OnUnloadModule(Module* mod,std::string name) { }; -00254 void Module::OnBackgroundTimer(time_t curtime) { }; -00255 void Module::OnSendList(userrec* user, chanrec* channel, char mode) { }; -00256 int Module::OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user) { return 0; }; -00257 bool Module::OnCheckReady(userrec* user) { return true; }; -00258 void Module::OnUserRegister(userrec* user) { }; -00259 int Module::OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { return 0; }; -00260 void Module::OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { }; -00261 int Module::OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt) { return 0; }; -00262 int Module::OnCheckInvite(userrec* user, chanrec* chan) { return 0; }; -00263 int Module::OnCheckKey(userrec* user, chanrec* chan, std::string keygiven) { return 0; }; -00264 int Module::OnCheckLimit(userrec* user, chanrec* chan) { return 0; }; -00265 int Module::OnCheckBan(userrec* user, chanrec* chan) { return 0; }; -00266 void Module::OnStats(char symbol) { }; -00267 int Module::OnChangeLocalUserHost(userrec* user, std::string newhost) { return 0; }; -00268 int Module::OnChangeLocalUserGECOS(userrec* user, std::string newhost) { return 0; }; -00269 int Module::OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { return 0; }; -00270 void Module::OnEvent(Event* event) { return; }; -00271 char* Module::OnRequest(Request* request) { return NULL; }; -00272 int Module::OnOperCompare(std::string password, std::string input) { return 0; }; -00273 void Module::OnGlobalOper(userrec* user) { }; -00274 void Module::OnGlobalConnect(userrec* user) { }; -00275 int Module::OnAddBan(userrec* source, chanrec* channel,std::string banmask) { return 0; }; -00276 int Module::OnDelBan(userrec* source, chanrec* channel,std::string banmask) { return 0; }; -00277 void Module::OnRawSocketAccept(int fd, std::string ip, int localport) { }; -00278 int Module::OnRawSocketWrite(int fd, char* buffer, int count) { return 0; }; -00279 void Module::OnRawSocketClose(int fd) { }; -00280 int Module::OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult) { return 0; }; -00281 void Module::OnUserMessage(userrec* user, void* dest, int target_type, std::string text) { }; -00282 void Module::OnUserNotice(userrec* user, void* dest, int target_type, std::string text) { }; -00283 void Module::OnRemoteKill(userrec* source, userrec* dest, std::string reason) { }; -00284 void Module::OnUserInvite(userrec* source,userrec* dest,chanrec* channel) { }; -00285 void Module::OnPostLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { }; -00286 void Module::OnGetServerDescription(std::string servername,std::string &description) { }; -00287 void Module::OnSyncUser(userrec* user, Module* proto, void* opaque) { }; -00288 void Module::OnSyncChannel(chanrec* chan, Module* proto, void* opaque) { }; -00289 void Module::ProtoSendMode(void* opaque, int target_type, void* target, std::string modeline) { }; -00290 void Module::OnSyncChannelMetaData(chanrec* chan, Module* proto,void* opaque, std::string extname) { }; -00291 void Module::OnSyncUserMetaData(userrec* user, Module* proto,void* opaque, std::string extname) { }; -00292 void Module::OnDecodeMetaData(int target_type, void* target, std::string extname, std::string extdata) { }; -00293 void Module::ProtoSendMetaData(void* opaque, int target_type, void* target, std::string extname, std::string extdata) { }; -00294 void Module::OnWallops(userrec* user, std::string text) { }; -00295 void Module::OnChangeHost(userrec* user, std::string newhost) { }; -00296 void Module::OnChangeName(userrec* user, std::string gecos) { }; -00297 void Module::OnAddGLine(long duration, userrec* source, std::string reason, std::string hostmask) { }; -00298 void Module::OnAddZLine(long duration, userrec* source, std::string reason, std::string ipmask) { }; -00299 void Module::OnAddKLine(long duration, userrec* source, std::string reason, std::string hostmask) { }; -00300 void Module::OnAddQLine(long duration, userrec* source, std::string reason, std::string nickmask) { }; -00301 void Module::OnAddELine(long duration, userrec* source, std::string reason, std::string hostmask) { }; -00302 void Module::OnDelGLine(userrec* source, std::string hostmask) { }; -00303 void Module::OnDelZLine(userrec* source, std::string ipmask) { }; -00304 void Module::OnDelKLine(userrec* source, std::string hostmask) { }; -00305 void Module::OnDelQLine(userrec* source, std::string nickmask) { }; -00306 void Module::OnDelELine(userrec* source, std::string hostmask) { }; -00307 void Module::OnCleanup(int target_type, void* item) { }; +00220 Module::Module(Server* Me) { } +00221 Module::~Module() { } +00222 void Module::OnUserConnect(userrec* user) { } +00223 void Module::OnUserQuit(userrec* user, std::string message) { } +00224 void Module::OnUserDisconnect(userrec* user) { } +00225 void Module::OnUserJoin(userrec* user, chanrec* channel) { } +00226 void Module::OnUserPart(userrec* user, chanrec* channel) { } +00227 void Module::OnRehash(std::string parameter) { } +00228 void Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { } +00229 int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; } +00230 int Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; } +00231 void Module::OnMode(userrec* user, void* dest, int target_type, std::string text) { }; +00232 Version Module::GetVersion() { return Version(1,0,0,0,VF_VENDOR); } +00233 void Module::OnOper(userrec* user, std::string opertype) { }; +00234 void Module::OnInfo(userrec* user) { }; +00235 void Module::OnWhois(userrec* source, userrec* dest) { }; +00236 int Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; }; +00237 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; +00238 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; +00239 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; +00240 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; +00241 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; +00242 void Module::On005Numeric(std::string &output) { }; +00243 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; +00244 void Module::OnLoadModule(Module* mod,std::string name) { }; +00245 void Module::OnUnloadModule(Module* mod,std::string name) { }; +00246 void Module::OnBackgroundTimer(time_t curtime) { }; +00247 void Module::OnSendList(userrec* user, chanrec* channel, char mode) { }; +00248 int Module::OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user) { return 0; }; +00249 bool Module::OnCheckReady(userrec* user) { return true; }; +00250 void Module::OnUserRegister(userrec* user) { }; +00251 int Module::OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { return 0; }; +00252 void Module::OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { }; +00253 int Module::OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt) { return 0; }; +00254 int Module::OnCheckInvite(userrec* user, chanrec* chan) { return 0; }; +00255 int Module::OnCheckKey(userrec* user, chanrec* chan, std::string keygiven) { return 0; }; +00256 int Module::OnCheckLimit(userrec* user, chanrec* chan) { return 0; }; +00257 int Module::OnCheckBan(userrec* user, chanrec* chan) { return 0; }; +00258 void Module::OnStats(char symbol) { }; +00259 int Module::OnChangeLocalUserHost(userrec* user, std::string newhost) { return 0; }; +00260 int Module::OnChangeLocalUserGECOS(userrec* user, std::string newhost) { return 0; }; +00261 int Module::OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { return 0; }; +00262 void Module::OnEvent(Event* event) { return; }; +00263 char* Module::OnRequest(Request* request) { return NULL; }; +00264 int Module::OnOperCompare(std::string password, std::string input) { return 0; }; +00265 void Module::OnGlobalOper(userrec* user) { }; +00266 void Module::OnGlobalConnect(userrec* user) { }; +00267 int Module::OnAddBan(userrec* source, chanrec* channel,std::string banmask) { return 0; }; +00268 int Module::OnDelBan(userrec* source, chanrec* channel,std::string banmask) { return 0; }; +00269 void Module::OnRawSocketAccept(int fd, std::string ip, int localport) { }; +00270 int Module::OnRawSocketWrite(int fd, char* buffer, int count) { return 0; }; +00271 void Module::OnRawSocketClose(int fd) { }; +00272 int Module::OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult) { return 0; }; +00273 void Module::OnUserMessage(userrec* user, void* dest, int target_type, std::string text) { }; +00274 void Module::OnUserNotice(userrec* user, void* dest, int target_type, std::string text) { }; +00275 void Module::OnRemoteKill(userrec* source, userrec* dest, std::string reason) { }; +00276 void Module::OnUserInvite(userrec* source,userrec* dest,chanrec* channel) { }; +00277 void Module::OnPostLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { }; +00278 void Module::OnGetServerDescription(std::string servername,std::string &description) { }; +00279 void Module::OnSyncUser(userrec* user, Module* proto, void* opaque) { }; +00280 void Module::OnSyncChannel(chanrec* chan, Module* proto, void* opaque) { }; +00281 void Module::ProtoSendMode(void* opaque, int target_type, void* target, std::string modeline) { }; +00282 void Module::OnSyncChannelMetaData(chanrec* chan, Module* proto,void* opaque, std::string extname) { }; +00283 void Module::OnSyncUserMetaData(userrec* user, Module* proto,void* opaque, std::string extname) { }; +00284 void Module::OnDecodeMetaData(int target_type, void* target, std::string extname, std::string extdata) { }; +00285 void Module::ProtoSendMetaData(void* opaque, int target_type, void* target, std::string extname, std::string extdata) { }; +00286 void Module::OnWallops(userrec* user, std::string text) { }; +00287 void Module::OnChangeHost(userrec* user, std::string newhost) { }; +00288 void Module::OnChangeName(userrec* user, std::string gecos) { }; +00289 void Module::OnAddGLine(long duration, userrec* source, std::string reason, std::string hostmask) { }; +00290 void Module::OnAddZLine(long duration, userrec* source, std::string reason, std::string ipmask) { }; +00291 void Module::OnAddKLine(long duration, userrec* source, std::string reason, std::string hostmask) { }; +00292 void Module::OnAddQLine(long duration, userrec* source, std::string reason, std::string nickmask) { }; +00293 void Module::OnAddELine(long duration, userrec* source, std::string reason, std::string hostmask) { }; +00294 void Module::OnDelGLine(userrec* source, std::string hostmask) { }; +00295 void Module::OnDelZLine(userrec* source, std::string ipmask) { }; +00296 void Module::OnDelKLine(userrec* source, std::string hostmask) { }; +00297 void Module::OnDelQLine(userrec* source, std::string nickmask) { }; +00298 void Module::OnDelELine(userrec* source, std::string hostmask) { }; +00299 void Module::OnCleanup(int target_type, void* item) { }; +00300 +00301 /* server is a wrapper class that provides methods to all of the C-style +00302 * exports in the core +00303 */ +00304 +00305 Server::Server() +00306 { +00307 } 00308 -00309 /* server is a wrapper class that provides methods to all of the C-style -00310 * exports in the core -00311 */ +00309 Server::~Server() +00310 { +00311 } 00312 -00313 Server::Server() +00313 void Server::AddSocket(InspSocket* sock) 00314 { -00315 } -00316 -00317 Server::~Server() -00318 { -00319 } -00320 -00321 void Server::AddSocket(InspSocket* sock) -00322 { -00323 module_sockets.push_back(sock); -00324 } -00325 -00326 void Server::RehashServer() -00327 { -00328 WriteOpers("*** Rehashing config file"); -00329 Config->Read(false,NULL); -00330 } -00331 -00332 ServerConfig* Server::GetConfig() -00333 { -00334 return Config; -00335 } -00336 -00337 void Server::DelSocket(InspSocket* sock) -00338 { -00339 for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) -00340 { -00341 if (*a == sock) -00342 { -00343 module_sockets.erase(a); -00344 return; -00345 } -00346 } -00347 } -00348 -00349 void Server::SendOpers(std::string s) -00350 { -00351 WriteOpers("%s",s.c_str()); +00315 module_sockets.push_back(sock); +00316 } +00317 +00318 void Server::RehashServer() +00319 { +00320 WriteOpers("*** Rehashing config file"); +00321 Config->Read(false,NULL); +00322 } +00323 +00324 ServerConfig* Server::GetConfig() +00325 { +00326 return Config; +00327 } +00328 +00329 void Server::DelSocket(InspSocket* sock) +00330 { +00331 for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) +00332 { +00333 if (*a == sock) +00334 { +00335 module_sockets.erase(a); +00336 return; +00337 } +00338 } +00339 } +00340 +00341 void Server::SendOpers(std::string s) +00342 { +00343 WriteOpers("%s",s.c_str()); +00344 } +00345 +00346 bool Server::MatchText(std::string sliteral, std::string spattern) +00347 { +00348 char literal[MAXBUF],pattern[MAXBUF]; +00349 strlcpy(literal,sliteral.c_str(),MAXBUF); +00350 strlcpy(pattern,spattern.c_str(),MAXBUF); +00351 return match(literal,pattern); 00352 } 00353 -00354 bool Server::MatchText(std::string sliteral, std::string spattern) +00354 void Server::SendToModeMask(std::string modes, int flags, std::string text) 00355 { -00356 char literal[MAXBUF],pattern[MAXBUF]; -00357 strlcpy(literal,sliteral.c_str(),MAXBUF); -00358 strlcpy(pattern,spattern.c_str(),MAXBUF); -00359 return match(literal,pattern); -00360 } -00361 -00362 void Server::SendToModeMask(std::string modes, int flags, std::string text) -00363 { -00364 WriteMode(modes.c_str(),flags,"%s",text.c_str()); -00365 } -00366 -00367 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) -00368 { -00369 return add_channel(user,cname.c_str(),key.c_str(),false); -00370 } -00371 -00372 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) -00373 { -00374 return del_channel(user,cname.c_str(),reason.c_str(),false); -00375 } -00376 -00377 chanuserlist Server::GetUsers(chanrec* chan) -00378 { -00379 chanuserlist userl; -00380 userl.clear(); -00381 std::vector<char*> *list = chan->GetUsers(); -00382 for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) -00383 { -00384 char* o = *i; -00385 userl.push_back((userrec*)o); -00386 } -00387 return userl; -00388 } -00389 void Server::ChangeUserNick(userrec* user, std::string nickname) -00390 { -00391 force_nickchange(user,nickname.c_str()); -00392 } -00393 -00394 void Server::QuitUser(userrec* user, std::string reason) -00395 { -00396 kill_link(user,reason.c_str()); -00397 } -00398 -00399 bool Server::IsUlined(std::string server) -00400 { -00401 return is_uline(server.c_str()); -00402 } -00403 -00404 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) -00405 { -00406 call_handler(commandname.c_str(),parameters,pcnt,user); -00407 } -00408 -00409 bool Server::IsValidModuleCommand(std::string commandname, int pcnt, userrec* user) -00410 { -00411 return is_valid_cmd(commandname.c_str(), pcnt, user); -00412 } -00413 -00414 void Server::Log(int level, std::string s) -00415 { -00416 log(level,"%s",s.c_str()); -00417 } -00418 -00419 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) -00420 { -00421 createcommand(cmd,f,flags,minparams,source); -00422 } -00423 -00424 void Server::SendMode(char **parameters, int pcnt, userrec *user) -00425 { -00426 server_mode(parameters,pcnt,user); -00427 } -00428 -00429 void Server::Send(int Socket, std::string s) -00430 { -00431 Write(Socket,"%s",s.c_str()); -00432 } -00433 -00434 void Server::SendServ(int Socket, std::string s) -00435 { -00436 WriteServ(Socket,"%s",s.c_str()); -00437 } -00438 -00439 void Server::SendFrom(int Socket, userrec* User, std::string s) -00440 { -00441 WriteFrom(Socket,User,"%s",s.c_str()); -00442 } -00443 -00444 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) -00445 { -00446 if (!Source) -00447 { -00448 // if source is NULL, then the message originates from the local server -00449 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); -00450 } -00451 else -00452 { -00453 // otherwise it comes from the user specified -00454 WriteTo(Source,Dest,"%s",s.c_str()); -00455 } -00456 } -00457 -00458 void Server::SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text) -00459 { -00460 WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str()); -00461 } -00462 -00463 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) -00464 { -00465 if (IncludeSender) -00466 { -00467 WriteChannel(Channel,User,"%s",s.c_str()); -00468 } -00469 else -00470 { -00471 ChanExceptSender(Channel,User,"%s",s.c_str()); -00472 } -00473 } -00474 -00475 bool Server::CommonChannels(userrec* u1, userrec* u2) -00476 { -00477 return (common_channels(u1,u2) != 0); -00478 } -00479 -00480 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) -00481 { -00482 if (IncludeSender) -00483 { -00484 WriteCommon(User,"%s",text.c_str()); -00485 } -00486 else -00487 { -00488 WriteCommonExcept(User,"%s",text.c_str()); -00489 } -00490 } -00491 -00492 void Server::SendWallops(userrec* User, std::string text) -00493 { -00494 WriteWallOps(User,false,"%s",text.c_str()); -00495 } -00496 -00497 void Server::ChangeHost(userrec* user, std::string host) -00498 { -00499 ChangeDisplayedHost(user,host.c_str()); -00500 } -00501 -00502 void Server::ChangeGECOS(userrec* user, std::string gecos) -00503 { -00504 ChangeName(user,gecos.c_str()); -00505 } -00506 -00507 bool Server::IsNick(std::string nick) -00508 { -00509 return (isnick(nick.c_str()) != 0); -00510 } -00511 -00512 userrec* Server::FindNick(std::string nick) -00513 { -00514 return Find(nick); -00515 } -00516 -00517 userrec* Server::FindDescriptor(int socket) -00518 { -00519 return (socket < 65536 ? fd_ref_table[socket] : NULL); -00520 } -00521 -00522 chanrec* Server::FindChannel(std::string channel) -00523 { -00524 return FindChan(channel.c_str()); -00525 } -00526 -00527 std::string Server::ChanMode(userrec* User, chanrec* Chan) -00528 { -00529 return cmode(User,Chan); -00530 } -00531 -00532 bool Server::IsOnChannel(userrec* User, chanrec* Chan) -00533 { -00534 return has_channel(User,Chan); -00535 } -00536 -00537 std::string Server::GetServerName() -00538 { -00539 return getservername(); -00540 } -00541 -00542 std::string Server::GetNetworkName() -00543 { -00544 return getnetworkname(); -00545 } -00546 -00547 std::string Server::GetServerDescription() -00548 { -00549 return getserverdesc(); -00550 } -00551 -00552 Admin Server::GetAdmin() -00553 { -00554 return Admin(getadminname(),getadminemail(),getadminnick()); -00555 } -00556 -00557 -00558 -00559 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) -00560 { -00561 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) -00562 { -00563 if (type == MT_SERVER) -00564 { -00565 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); -00566 return false; -00567 } -00568 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -00569 { -00570 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); -00571 return false; -00572 } -00573 if ((params_when_on>1) || (params_when_off>1)) -00574 { -00575 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); -00576 return false; -00577 } -00578 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -00579 } -00580 else -00581 { -00582 log(DEBUG,"*** API ERROR *** Muppet modechar detected."); -00583 } -00584 return false; +00356 WriteMode(modes.c_str(),flags,"%s",text.c_str()); +00357 } +00358 +00359 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) +00360 { +00361 return add_channel(user,cname.c_str(),key.c_str(),false); +00362 } +00363 +00364 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) +00365 { +00366 return del_channel(user,cname.c_str(),reason.c_str(),false); +00367 } +00368 +00369 chanuserlist Server::GetUsers(chanrec* chan) +00370 { +00371 chanuserlist userl; +00372 userl.clear(); +00373 std::vector<char*> *list = chan->GetUsers(); +00374 for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) +00375 { +00376 char* o = *i; +00377 userl.push_back((userrec*)o); +00378 } +00379 return userl; +00380 } +00381 void Server::ChangeUserNick(userrec* user, std::string nickname) +00382 { +00383 force_nickchange(user,nickname.c_str()); +00384 } +00385 +00386 void Server::QuitUser(userrec* user, std::string reason) +00387 { +00388 kill_link(user,reason.c_str()); +00389 } +00390 +00391 bool Server::IsUlined(std::string server) +00392 { +00393 return is_uline(server.c_str()); +00394 } +00395 +00396 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) +00397 { +00398 call_handler(commandname.c_str(),parameters,pcnt,user); +00399 } +00400 +00401 bool Server::IsValidModuleCommand(std::string commandname, int pcnt, userrec* user) +00402 { +00403 return is_valid_cmd(commandname.c_str(), pcnt, user); +00404 } +00405 +00406 void Server::Log(int level, std::string s) +00407 { +00408 log(level,"%s",s.c_str()); +00409 } +00410 +00411 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) +00412 { +00413 createcommand(cmd,f,flags,minparams,source); +00414 } +00415 +00416 void Server::SendMode(char **parameters, int pcnt, userrec *user) +00417 { +00418 server_mode(parameters,pcnt,user); +00419 } +00420 +00421 void Server::Send(int Socket, std::string s) +00422 { +00423 Write(Socket,"%s",s.c_str()); +00424 } +00425 +00426 void Server::SendServ(int Socket, std::string s) +00427 { +00428 WriteServ(Socket,"%s",s.c_str()); +00429 } +00430 +00431 void Server::SendFrom(int Socket, userrec* User, std::string s) +00432 { +00433 WriteFrom(Socket,User,"%s",s.c_str()); +00434 } +00435 +00436 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) +00437 { +00438 if (!Source) +00439 { +00440 // if source is NULL, then the message originates from the local server +00441 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); +00442 } +00443 else +00444 { +00445 // otherwise it comes from the user specified +00446 WriteTo(Source,Dest,"%s",s.c_str()); +00447 } +00448 } +00449 +00450 void Server::SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text) +00451 { +00452 WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str()); +00453 } +00454 +00455 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) +00456 { +00457 if (IncludeSender) +00458 { +00459 WriteChannel(Channel,User,"%s",s.c_str()); +00460 } +00461 else +00462 { +00463 ChanExceptSender(Channel,User,"%s",s.c_str()); +00464 } +00465 } +00466 +00467 bool Server::CommonChannels(userrec* u1, userrec* u2) +00468 { +00469 return (common_channels(u1,u2) != 0); +00470 } +00471 +00472 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) +00473 { +00474 if (IncludeSender) +00475 { +00476 WriteCommon(User,"%s",text.c_str()); +00477 } +00478 else +00479 { +00480 WriteCommonExcept(User,"%s",text.c_str()); +00481 } +00482 } +00483 +00484 void Server::SendWallops(userrec* User, std::string text) +00485 { +00486 WriteWallOps(User,false,"%s",text.c_str()); +00487 } +00488 +00489 void Server::ChangeHost(userrec* user, std::string host) +00490 { +00491 ChangeDisplayedHost(user,host.c_str()); +00492 } +00493 +00494 void Server::ChangeGECOS(userrec* user, std::string gecos) +00495 { +00496 ChangeName(user,gecos.c_str()); +00497 } +00498 +00499 bool Server::IsNick(std::string nick) +00500 { +00501 return (isnick(nick.c_str()) != 0); +00502 } +00503 +00504 userrec* Server::FindNick(std::string nick) +00505 { +00506 return Find(nick); +00507 } +00508 +00509 userrec* Server::FindDescriptor(int socket) +00510 { +00511 return (socket < 65536 ? fd_ref_table[socket] : NULL); +00512 } +00513 +00514 chanrec* Server::FindChannel(std::string channel) +00515 { +00516 return FindChan(channel.c_str()); +00517 } +00518 +00519 std::string Server::ChanMode(userrec* User, chanrec* Chan) +00520 { +00521 return cmode(User,Chan); +00522 } +00523 +00524 bool Server::IsOnChannel(userrec* User, chanrec* Chan) +00525 { +00526 return has_channel(User,Chan); +00527 } +00528 +00529 std::string Server::GetServerName() +00530 { +00531 return Config->ServerName; +00532 } +00533 +00534 std::string Server::GetNetworkName() +00535 { +00536 return Config->Network; +00537 } +00538 +00539 std::string Server::GetServerDescription() +00540 { +00541 return Config->ServerDesc; +00542 } +00543 +00544 Admin Server::GetAdmin() +00545 { +00546 return Admin(Config->AdminName,Config->AdminEmail,Config->AdminNick); +00547 } +00548 +00549 +00550 +00551 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) +00552 { +00553 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) +00554 { +00555 if (type == MT_SERVER) +00556 { +00557 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); +00558 return false; +00559 } +00560 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +00561 { +00562 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); +00563 return false; +00564 } +00565 if ((params_when_on>1) || (params_when_off>1)) +00566 { +00567 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); +00568 return false; +00569 } +00570 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +00571 } +00572 else +00573 { +00574 log(DEBUG,"*** API ERROR *** Muppet modechar detected."); +00575 } +00576 return false; +00577 } +00578 +00579 bool Server::AddExtendedListMode(char modechar) +00580 { +00581 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +00582 if (res) +00583 ModeMakeList(modechar); +00584 return res; 00585 } 00586 -00587 bool Server::AddExtendedListMode(char modechar) +00587 int Server::CountUsers(chanrec* c) 00588 { -00589 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -00590 if (res) -00591 ModeMakeList(modechar); -00592 return res; -00593 } -00594 -00595 int Server::CountUsers(chanrec* c) -00596 { -00597 return usercount(c); -00598 } -00599 -00600 -00601 bool Server::UserToPseudo(userrec* user,std::string message) -00602 { -00603 unsigned int old_fd = user->fd; -00604 user->fd = FD_MAGIC_NUMBER; -00605 user->ClearBuffer(); -00606 Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str()); -00607 SE->DelFd(old_fd); -00608 shutdown(old_fd,2); -00609 close(old_fd); -00610 return true; -00611 } -00612 -00613 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message) -00614 { -00615 zombie->fd = alive->fd; -00616 alive->fd = FD_MAGIC_NUMBER; -00617 alive->ClearBuffer(); -00618 Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick); -00619 kill_link(alive,message.c_str()); -00620 fd_ref_table[zombie->fd] = zombie; -00621 for (unsigned int i = 0; i < zombie->chans.size(); i++) -00622 { -00623 if (zombie->chans[i].channel != NULL) -00624 { -00625 if (zombie->chans[i].channel->name) -00626 { -00627 chanrec* Ptr = zombie->chans[i].channel; -00628 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name); -00629 if (Ptr->topicset) -00630 { -00631 WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic); -00632 WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); -00633 } -00634 userlist(zombie,Ptr); -00635 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name); -00636 -00637 } -00638 } -00639 } -00640 return true; -00641 } -00642 -00643 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask) -00644 { -00645 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00646 } -00647 -00648 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname) -00649 { -00650 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); -00651 } -00652 -00653 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr) -00654 { -00655 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); -00656 } -00657 -00658 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask) -00659 { -00660 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00661 } -00662 -00663 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask) -00664 { -00665 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00666 } -00667 -00668 bool Server::DelGLine(std::string hostmask) -00669 { -00670 return del_gline(hostmask.c_str()); -00671 } -00672 -00673 bool Server::DelQLine(std::string nickname) -00674 { -00675 return del_qline(nickname.c_str()); -00676 } -00677 -00678 bool Server::DelZLine(std::string ipaddr) -00679 { -00680 return del_zline(ipaddr.c_str()); -00681 } -00682 -00683 bool Server::DelKLine(std::string hostmask) -00684 { -00685 return del_kline(hostmask.c_str()); -00686 } -00687 -00688 bool Server::DelELine(std::string hostmask) -00689 { -00690 return del_eline(hostmask.c_str()); -00691 } -00692 -00693 long Server::CalcDuration(std::string delta) -00694 { -00695 return duration(delta.c_str()); -00696 } -00697 -00698 bool Server::IsValidMask(std::string mask) -00699 { -00700 const char* dest = mask.c_str(); -00701 if (strchr(dest,'!')==0) -00702 return false; -00703 if (strchr(dest,'@')==0) -00704 return false; -00705 for (unsigned int i = 0; i < strlen(dest); i++) -00706 if (dest[i] < 32) -00707 return false; -00708 for (unsigned int i = 0; i < strlen(dest); i++) -00709 if (dest[i] > 126) -00710 return false; -00711 unsigned int c = 0; -00712 for (unsigned int i = 0; i < strlen(dest); i++) -00713 if (dest[i] == '!') -00714 c++; -00715 if (c>1) -00716 return false; -00717 c = 0; -00718 for (unsigned int i = 0; i < strlen(dest); i++) -00719 if (dest[i] == '@') -00720 c++; -00721 if (c>1) -00722 return false; -00723 -00724 return true; -00725 } -00726 -00727 Module* Server::FindModule(std::string name) -00728 { -00729 for (int i = 0; i <= MODCOUNT; i++) -00730 { -00731 if (Config->module_names[i] == name) -00732 { -00733 return modules[i]; -00734 } -00735 } -00736 return NULL; -00737 } -00738 -00739 ConfigReader::ConfigReader() -00740 { -00741 Config->ClearStack(); -00742 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00743 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00744 this->readerror = Config->LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00745 if (!this->readerror) -00746 this->error = CONF_FILE_NOT_FOUND; -00747 } -00748 +00589 return usercount(c); +00590 } +00591 +00592 +00593 bool Server::UserToPseudo(userrec* user,std::string message) +00594 { +00595 unsigned int old_fd = user->fd; +00596 user->fd = FD_MAGIC_NUMBER; +00597 user->ClearBuffer(); +00598 Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str()); +00599 SE->DelFd(old_fd); +00600 shutdown(old_fd,2); +00601 close(old_fd); +00602 return true; +00603 } +00604 +00605 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message) +00606 { +00607 zombie->fd = alive->fd; +00608 alive->fd = FD_MAGIC_NUMBER; +00609 alive->ClearBuffer(); +00610 Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick); +00611 kill_link(alive,message.c_str()); +00612 fd_ref_table[zombie->fd] = zombie; +00613 for (unsigned int i = 0; i < zombie->chans.size(); i++) +00614 { +00615 if (zombie->chans[i].channel != NULL) +00616 { +00617 if (zombie->chans[i].channel->name) +00618 { +00619 chanrec* Ptr = zombie->chans[i].channel; +00620 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name); +00621 if (Ptr->topicset) +00622 { +00623 WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic); +00624 WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +00625 } +00626 userlist(zombie,Ptr); +00627 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name); +00628 +00629 } +00630 } +00631 } +00632 return true; +00633 } +00634 +00635 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask) +00636 { +00637 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00638 } +00639 +00640 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname) +00641 { +00642 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +00643 } +00644 +00645 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr) +00646 { +00647 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +00648 } +00649 +00650 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask) +00651 { +00652 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00653 } +00654 +00655 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask) +00656 { +00657 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00658 } +00659 +00660 bool Server::DelGLine(std::string hostmask) +00661 { +00662 return del_gline(hostmask.c_str()); +00663 } +00664 +00665 bool Server::DelQLine(std::string nickname) +00666 { +00667 return del_qline(nickname.c_str()); +00668 } +00669 +00670 bool Server::DelZLine(std::string ipaddr) +00671 { +00672 return del_zline(ipaddr.c_str()); +00673 } +00674 +00675 bool Server::DelKLine(std::string hostmask) +00676 { +00677 return del_kline(hostmask.c_str()); +00678 } +00679 +00680 bool Server::DelELine(std::string hostmask) +00681 { +00682 return del_eline(hostmask.c_str()); +00683 } +00684 +00685 long Server::CalcDuration(std::string delta) +00686 { +00687 return duration(delta.c_str()); +00688 } +00689 +00690 bool Server::IsValidMask(std::string mask) +00691 { +00692 const char* dest = mask.c_str(); +00693 if (strchr(dest,'!')==0) +00694 return false; +00695 if (strchr(dest,'@')==0) +00696 return false; +00697 for (unsigned int i = 0; i < strlen(dest); i++) +00698 if (dest[i] < 32) +00699 return false; +00700 for (unsigned int i = 0; i < strlen(dest); i++) +00701 if (dest[i] > 126) +00702 return false; +00703 unsigned int c = 0; +00704 for (unsigned int i = 0; i < strlen(dest); i++) +00705 if (dest[i] == '!') +00706 c++; +00707 if (c>1) +00708 return false; +00709 c = 0; +00710 for (unsigned int i = 0; i < strlen(dest); i++) +00711 if (dest[i] == '@') +00712 c++; +00713 if (c>1) +00714 return false; +00715 +00716 return true; +00717 } +00718 +00719 Module* Server::FindModule(std::string name) +00720 { +00721 for (int i = 0; i <= MODCOUNT; i++) +00722 { +00723 if (Config->module_names[i] == name) +00724 { +00725 return modules[i]; +00726 } +00727 } +00728 return NULL; +00729 } +00730 +00731 ConfigReader::ConfigReader() +00732 { +00733 Config->ClearStack(); +00734 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00735 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00736 this->readerror = Config->LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00737 if (!this->readerror) +00738 this->error = CONF_FILE_NOT_FOUND; +00739 } +00740 +00741 +00742 ConfigReader::~ConfigReader() +00743 { +00744 if (this->cache) +00745 delete this->cache; +00746 if (this->errorlog) +00747 delete this->errorlog; +00748 } 00749 -00750 ConfigReader::~ConfigReader() -00751 { -00752 if (this->cache) -00753 delete this->cache; -00754 if (this->errorlog) -00755 delete this->errorlog; -00756 } -00757 -00758 -00759 ConfigReader::ConfigReader(std::string filename) -00760 { -00761 Config->ClearStack(); -00762 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00763 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00764 this->readerror = Config->LoadConf(filename.c_str(),this->cache,this->errorlog); -00765 if (!this->readerror) -00766 this->error = CONF_FILE_NOT_FOUND; -00767 }; -00768 -00769 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) -00770 { -00771 char val[MAXBUF]; -00772 char t[MAXBUF]; -00773 char n[MAXBUF]; -00774 strlcpy(t,tag.c_str(),MAXBUF); -00775 strlcpy(n,name.c_str(),MAXBUF); -00776 int res = Config->ReadConf(cache,t,n,index,val); -00777 if (!res) -00778 { -00779 this->error = CONF_VALUE_NOT_FOUND; -00780 return ""; -00781 } -00782 return val; -00783 } -00784 -00785 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) -00786 { -00787 char val[MAXBUF]; -00788 char t[MAXBUF]; -00789 char n[MAXBUF]; -00790 strlcpy(t,tag.c_str(),MAXBUF); -00791 strlcpy(n,name.c_str(),MAXBUF); -00792 int res = Config->ReadConf(cache,t,n,index,val); -00793 if (!res) -00794 { -00795 this->error = CONF_VALUE_NOT_FOUND; -00796 return false; -00797 } -00798 std::string s = val; -00799 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); -00800 } -00801 -00802 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) -00803 { -00804 char val[MAXBUF]; -00805 char t[MAXBUF]; -00806 char n[MAXBUF]; -00807 strlcpy(t,tag.c_str(),MAXBUF); -00808 strlcpy(n,name.c_str(),MAXBUF); -00809 int res = Config->ReadConf(cache,t,n,index,val); -00810 if (!res) -00811 { -00812 this->error = CONF_VALUE_NOT_FOUND; -00813 return 0; +00750 +00751 ConfigReader::ConfigReader(std::string filename) +00752 { +00753 Config->ClearStack(); +00754 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00755 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00756 this->readerror = Config->LoadConf(filename.c_str(),this->cache,this->errorlog); +00757 if (!this->readerror) +00758 this->error = CONF_FILE_NOT_FOUND; +00759 }; +00760 +00761 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) +00762 { +00763 char val[MAXBUF]; +00764 char t[MAXBUF]; +00765 char n[MAXBUF]; +00766 strlcpy(t,tag.c_str(),MAXBUF); +00767 strlcpy(n,name.c_str(),MAXBUF); +00768 int res = Config->ReadConf(cache,t,n,index,val); +00769 if (!res) +00770 { +00771 this->error = CONF_VALUE_NOT_FOUND; +00772 return ""; +00773 } +00774 return val; +00775 } +00776 +00777 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) +00778 { +00779 char val[MAXBUF]; +00780 char t[MAXBUF]; +00781 char n[MAXBUF]; +00782 strlcpy(t,tag.c_str(),MAXBUF); +00783 strlcpy(n,name.c_str(),MAXBUF); +00784 int res = Config->ReadConf(cache,t,n,index,val); +00785 if (!res) +00786 { +00787 this->error = CONF_VALUE_NOT_FOUND; +00788 return false; +00789 } +00790 std::string s = val; +00791 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); +00792 } +00793 +00794 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) +00795 { +00796 char val[MAXBUF]; +00797 char t[MAXBUF]; +00798 char n[MAXBUF]; +00799 strlcpy(t,tag.c_str(),MAXBUF); +00800 strlcpy(n,name.c_str(),MAXBUF); +00801 int res = Config->ReadConf(cache,t,n,index,val); +00802 if (!res) +00803 { +00804 this->error = CONF_VALUE_NOT_FOUND; +00805 return 0; +00806 } +00807 for (unsigned int i = 0; i < strlen(val); i++) +00808 { +00809 if (!isdigit(val[i])) +00810 { +00811 this->error = CONF_NOT_A_NUMBER; +00812 return 0; +00813 } 00814 } -00815 for (unsigned int i = 0; i < strlen(val); i++) +00815 if ((needs_unsigned) && (atoi(val)<0)) 00816 { -00817 if (!isdigit(val[i])) -00818 { -00819 this->error = CONF_NOT_A_NUMBER; -00820 return 0; -00821 } -00822 } -00823 if ((needs_unsigned) && (atoi(val)<0)) -00824 { -00825 this->error = CONF_NOT_UNSIGNED; -00826 return 0; -00827 } -00828 return atoi(val); -00829 } -00830 -00831 long ConfigReader::GetError() -00832 { -00833 long olderr = this->error; -00834 this->error = 0; -00835 return olderr; -00836 } -00837 -00838 void ConfigReader::DumpErrors(bool bail, userrec* user) -00839 { -00840 if (bail) -00841 { -00842 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); -00843 exit(0); -00844 } -00845 else -00846 { -00847 char dataline[1024]; -00848 if (user) -00849 { -00850 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); -00851 while (!errorlog->eof()) -00852 { -00853 errorlog->getline(dataline,1024); -00854 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); -00855 } -00856 } -00857 else -00858 { -00859 WriteOpers("There were errors in the configuration file:",user->nick); -00860 while (!errorlog->eof()) -00861 { -00862 errorlog->getline(dataline,1024); -00863 WriteOpers(dataline); -00864 } -00865 } -00866 return; -00867 } -00868 } -00869 -00870 -00871 int ConfigReader::Enumerate(std::string tag) -00872 { -00873 return Config->EnumConf(cache,tag.c_str()); -00874 } -00875 -00876 int ConfigReader::EnumerateValues(std::string tag, int index) -00877 { -00878 return Config->EnumValues(cache, tag.c_str(), index); -00879 } -00880 -00881 bool ConfigReader::Verify() -00882 { -00883 return this->readerror; +00817 this->error = CONF_NOT_UNSIGNED; +00818 return 0; +00819 } +00820 return atoi(val); +00821 } +00822 +00823 long ConfigReader::GetError() +00824 { +00825 long olderr = this->error; +00826 this->error = 0; +00827 return olderr; +00828 } +00829 +00830 void ConfigReader::DumpErrors(bool bail, userrec* user) +00831 { +00832 if (bail) +00833 { +00834 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); +00835 exit(0); +00836 } +00837 else +00838 { +00839 char dataline[1024]; +00840 if (user) +00841 { +00842 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); +00843 while (!errorlog->eof()) +00844 { +00845 errorlog->getline(dataline,1024); +00846 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); +00847 } +00848 } +00849 else +00850 { +00851 WriteOpers("There were errors in the configuration file:",user->nick); +00852 while (!errorlog->eof()) +00853 { +00854 errorlog->getline(dataline,1024); +00855 WriteOpers(dataline); +00856 } +00857 } +00858 return; +00859 } +00860 } +00861 +00862 +00863 int ConfigReader::Enumerate(std::string tag) +00864 { +00865 return Config->EnumConf(cache,tag.c_str()); +00866 } +00867 +00868 int ConfigReader::EnumerateValues(std::string tag, int index) +00869 { +00870 return Config->EnumValues(cache, tag.c_str(), index); +00871 } +00872 +00873 bool ConfigReader::Verify() +00874 { +00875 return this->readerror; +00876 } +00877 +00878 +00879 FileReader::FileReader(std::string filename) +00880 { +00881 file_cache c; +00882 readfile(c,filename.c_str()); +00883 this->fc = c; 00884 } 00885 -00886 -00887 FileReader::FileReader(std::string filename) -00888 { -00889 file_cache c; -00890 readfile(c,filename.c_str()); -00891 this->fc = c; -00892 } -00893 -00894 FileReader::FileReader() -00895 { -00896 } +00886 FileReader::FileReader() +00887 { +00888 } +00889 +00890 void FileReader::LoadFile(std::string filename) +00891 { +00892 file_cache c; +00893 readfile(c,filename.c_str()); +00894 this->fc = c; +00895 } +00896 00897 -00898 void FileReader::LoadFile(std::string filename) +00898 FileReader::~FileReader() 00899 { -00900 file_cache c; -00901 readfile(c,filename.c_str()); -00902 this->fc = c; -00903 } -00904 -00905 -00906 FileReader::~FileReader() -00907 { -00908 } -00909 -00910 bool FileReader::Exists() -00911 { -00912 if (fc.size() == 0) -00913 { -00914 return(false); -00915 } -00916 else -00917 { -00918 return(true); -00919 } -00920 } -00921 -00922 std::string FileReader::GetLine(int x) -00923 { -00924 if ((x<0) || ((unsigned)x>fc.size())) -00925 return ""; -00926 return fc[x]; -00927 } -00928 -00929 int FileReader::FileSize() -00930 { -00931 return fc.size(); -00932 } -00933 -00934 -00935 std::vector<Module*> modules(255); -00936 std::vector<ircd_module*> factory(255); -00937 -00938 int MODCOUNT = -1; -00939 -00940 -
    Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +00900 } +00901 +00902 bool FileReader::Exists() +00903 { +00904 if (fc.size() == 0) +00905 { +00906 return(false); +00907 } +00908 else +00909 { +00910 return(true); +00911 } +00912 } +00913 +00914 std::string FileReader::GetLine(int x) +00915 { +00916 if ((x<0) || ((unsigned)x>fc.size())) +00917 return ""; +00918 return fc[x]; +00919 } +00920 +00921 int FileReader::FileSize() +00922 { +00923 return fc.size(); +00924 } +00925 +00926 +00927 std::vector<Module*> modules(255); +00928 std::vector<ircd_module*> factory(255); +00929 +00930 int MODCOUNT = -1; +00931 +00932 +
    Generated on Wed Dec 14 19:16:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index d6774b4b9..9a3fee018 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -8,7 +8,7 @@

    modules.cpp File Reference

    #include "inspircd_config.h"
    -#include "inspircd.h"
    +#include "inspircd.h"
    #include "inspircd_io.h"
    #include "inspircd_util.h"
    #include <unistd.h>
    @@ -22,7 +22,7 @@ #include <deque>
    #include "users.h"
    #include "ctables.h"
    -#include "globals.h"
    +#include "globals.h"
    #include "modules.h"
    #include "dynamic.h"
    #include "wildcard.h"
    @@ -40,18 +40,20 @@

    Include dependency graph for modules.cpp:

    - - - - - - - - - - - - + + + + + + + + + + + + + +

    @@ -81,6 +83,8 @@ Include dependency graph for modules.cpp:

    ServerConfigConfig +InspIRCdServerInstance + int MODCOUNT = -1 std::vector< Module * > modules @@ -91,30 +95,14 @@ Include dependency graph for modules.cpp:

    time_t TIME -int WHOWAS_STALE - -int WHOWAS_MAX - -time_t startup_time - -int boundPortCount - -int portCount - -int ports [MAXSOCKS] - userrecfd_ref_table [65536] user_hash clientlist chan_hash chanlist -whowas_hash whowas - command_table cmdlist -address_cache IP - ExtModeList EMode @@ -173,17 +161,17 @@ Include dependency graph for modules.cpp:

    142 of file modules.cpp. +Definition at line 134 of file modules.cpp.

    -References EMode, and ModeDefined(). +References EMode, and ModeDefined().

    -Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode().

    00143 {
    -00144         if (ModeDefined(modechar,type)) {
    -00145                 return false;
    -00146         }
    -00147         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    -00148         return true;
    -00149 }
    +Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode().
    00135 {
    +00136         if (ModeDefined(modechar,type)) {
    +00137                 return false;
    +00138         }
    +00139         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    +00140         return true;
    +00141 }
     

    @@ -253,20 +241,20 @@ Referenced by Server::AddEx

    -Definition at line 79 of file modules.cpp. +Definition at line 71 of file modules.cpp.

    -References EMode. +References EMode.

    -Referenced by DoAddExtendedMode().

    00080 {
    -00081         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00082         {
    -00083                 if ((i->modechar == modechar) && (i->type == type))
    -00084                 {
    -00085                         return true;
    -00086                 }
    -00087         }
    -00088         return false;
    -00089 }
    +Referenced by DoAddExtendedMode().
    00072 {
    +00073         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00074         {
    +00075                 if ((i->modechar == modechar) && (i->type == type))
    +00076                 {
    +00077                         return true;
    +00078                 }
    +00079         }
    +00080         return false;
    +00081 }
     

    @@ -308,18 +296,18 @@ Referenced by DoAddExtended

    -Definition at line 129 of file modules.cpp. +Definition at line 121 of file modules.cpp.

    -References EMode.

    00130 {
    -00131         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00132         {
    -00133                 if ((i->modechar == modechar) && (i->type == type))
    -00134                 {
    -00135                         return i->params_when_off;
    -00136                 }
    -00137         }
    -00138         return 0;
    -00139 }
    +References EMode.
    00122 {
    +00123         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00124         {
    +00125                 if ((i->modechar == modechar) && (i->type == type))
    +00126                 {
    +00127                         return i->params_when_off;
    +00128                 }
    +00129         }
    +00130         return 0;
    +00131 }
     

    @@ -361,18 +349,18 @@ References EMode.

    -Definition at line 116 of file modules.cpp. +Definition at line 108 of file modules.cpp.

    -References EMode.

    00117 {
    -00118         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00119         {
    -00120                 if ((i->modechar == modechar) && (i->type == type))
    -00121                 {
    -00122                         return i->params_when_on;
    -00123                 }
    -00124         }
    -00125         return 0;
    -00126 }
    +References EMode.
    00109 {
    +00110         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00111         {
    +00112                 if ((i->modechar == modechar) && (i->type == type))
    +00113                 {
    +00114                         return i->params_when_on;
    +00115                 }
    +00116         }
    +00117         return 0;
    +00118 }
     

    @@ -414,18 +402,18 @@ References EMode.

    -Definition at line 103 of file modules.cpp. +Definition at line 95 of file modules.cpp.

    -References EMode.

    00104 {
    -00105         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00106         {
    -00107                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    -00108                 {
    -00109                         return true;
    -00110                 }
    -00111         }
    -00112         return false;
    -00113 }
    +References EMode.
    00096 {
    +00097         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00098         {
    +00099                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    +00100                 {
    +00101                         return true;
    +00102                 }
    +00103         }
    +00104         return false;
    +00105 }
     

    @@ -467,18 +455,18 @@ References EMode.

    -Definition at line 91 of file modules.cpp. +Definition at line 83 of file modules.cpp.

    -References EMode.

    00092 {
    -00093         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00094         {
    -00095                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
    -00096                 {
    -00097                         return true;
    -00098                 }
    -00099         }
    -00100         return false;
    -00101 }
    +References EMode.
    00084 {
    +00085         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00086         {
    +00087                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
    +00088                 {
    +00089                         return true;
    +00090                 }
    +00091         }
    +00092         return false;
    +00093 }
     

    @@ -511,21 +499,21 @@ References EMode.

    -Definition at line 152 of file modules.cpp. +Definition at line 144 of file modules.cpp.

    -References EMode, and MT_CHANNEL. +References EMode, and MT_CHANNEL.

    -Referenced by Server::AddExtendedListMode().

    00153 {
    -00154         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00155         {
    -00156                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    -00157                 {
    -00158                         i->list = true;
    -00159                         return;
    -00160                 }
    -00161         }
    -00162         return;
    -00163 }
    +Referenced by Server::AddExtendedListMode().
    00145 {
    +00146         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00147         {
    +00148                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    +00149                 {
    +00150                         i->list = true;
    +00151                         return;
    +00152                 }
    +00153         }
    +00154         return;
    +00155 }
     

    @@ -560,29 +548,6 @@ Referenced by Server::AddEx


    Variable Documentation

    -

    - - - - -
    - - - - -
    int boundPortCount
    -
    - - - - - -
    -   - - -

    -

    @@ -697,9 +662,9 @@ Referenced by Server::AddEx

    -Definition at line 76 of file modules.cpp. +Definition at line 68 of file modules.cpp.

    -Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList(). +Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList().

    @@ -744,29 +709,6 @@ Referenced by DoAddExtended -

    - - - -

    - - - - -
    - - - - -
    address_cache IP
    -
    - - - - @@ -793,7 +735,7 @@ Referenced by DoAddExtended

    -Definition at line 938 of file modules.cpp. +Definition at line 930 of file modules.cpp.

    -   - -

    @@ -818,7 +760,7 @@ Definition at line 938

    -Referenced by Server::AddSocket(), and Server::DelSocket(). +Referenced by Server::AddSocket(), and Server::DelSocket().

    @@ -840,52 +782,6 @@ Referenced by Server::AddSo -

    - - - -

    - - - - -
    - - - - -
    int portCount
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    int ports[MAXSOCKS]
    -
    - - - - @@ -913,13 +809,13 @@ Referenced by Server::AddSo
    -   - -

    -

    +

    @@ -959,76 +855,7 @@ Referenced by Server::AddSo
    - +
    time_t startup_time InspIRCd* ServerInstance
    -

    - - - - -
    - - - - -
    whowas_hash whowas
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    int WHOWAS_MAX
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    int WHOWAS_STALE
    -
    - - - - - -
    -   - - -

    -

    -


    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:21 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/modules_8cpp__incl.gif b/docs/module-doc/modules_8cpp__incl.gif index aec40cf17..e80534192 100644 Binary files a/docs/module-doc/modules_8cpp__incl.gif and b/docs/module-doc/modules_8cpp__incl.gif differ diff --git a/docs/module-doc/modules_8cpp__incl.map b/docs/module-doc/modules_8cpp__incl.map index 997736c8c..056ed18df 100644 --- a/docs/module-doc/modules_8cpp__incl.map +++ b/docs/module-doc/modules_8cpp__incl.map @@ -1,13 +1,15 @@ base referer -rect $inspircd__io_8h-source.html 313,311 409,338 -rect $users_8h-source.html 476,1274 540,1300 -rect $ctables_8h-source.html 471,716 545,743 -rect $modules_8h-source.html 320,691 403,718 -rect $socket_8h-source.html 472,615 544,642 -rect $message_8h-source.html 319,1172 404,1199 -rect $mode_8h-source.html 328,919 395,946 -rect $xline_8h-source.html 331,1071 392,1098 -rect $commands_8h-source.html 312,970 411,996 -rect $hashcomp_8h-source.html 315,1527 408,1554 -rect $socketengine_8h-source.html 305,362 417,388 -rect $typedefs_8h-source.html 163,1223 248,1250 +rect $inspircd_8h-source.html 610,799 690,826 +rect $inspircd__io_8h-source.html 742,716 838,743 +rect $globals_8h-source.html 902,970 976,996 +rect $users_8h-source.html 1039,716 1103,743 +rect $socket_8h-source.html 754,970 826,996 +rect $ctables_8h-source.html 468,1426 543,1452 +rect $modules_8h-source.html 312,1223 395,1250 +rect $message_8h-source.html 896,716 982,743 +rect $mode_8h-source.html 906,412 972,439 +rect $xline_8h-source.html 908,362 970,388 +rect $commands_8h-source.html 890,311 988,338 +rect $hashcomp_8h-source.html 307,1679 400,1706 +rect $socketengine_8h-source.html 450,970 562,996 +rect $typedefs_8h-source.html 163,1274 248,1300 diff --git a/docs/module-doc/modules_8cpp__incl.md5 b/docs/module-doc/modules_8cpp__incl.md5 index 7242058c8..10e2c307c 100644 --- a/docs/module-doc/modules_8cpp__incl.md5 +++ b/docs/module-doc/modules_8cpp__incl.md5 @@ -1 +1 @@ -3ca915eed2bfd73681bb564430d33061 \ No newline at end of file +2384cd0922e32b841176cc7e795d3e18 \ No newline at end of file diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index e1258b2ec..006dfe5b9 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -65,8 +65,8 @@ 00064 00065 class Server; 00066 -00069 typedef std::deque<std::string> file_cache; -00070 typedef file_cache string_list; +00069 typedef std::deque<std::string> file_cache; +00070 typedef file_cache string_list; 00071 00074 typedef std::deque<userrec*> chanuserlist; 00075 @@ -97,7 +97,7 @@ 00100 00101 #define FD_MAGIC_NUMBER -42 00102 -00103 extern void createcommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); +00103 extern void createcommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); 00104 extern void server_mode(char **parameters, int pcnt, userrec *user); 00105 00106 // class Version holds the version information of a Module, returned @@ -394,7 +394,7 @@ 01244 01266 virtual bool AddExtendedListMode(char modechar); 01267 -01285 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); +01285 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); 01286 01308 virtual void SendMode(char **parameters, int pcnt, userrec *user); 01309 @@ -493,7 +493,7 @@ 01612 01618 class FileReader : public classbase 01619 { -01620 file_cache fc; +01620 file_cache fc; 01621 public: 01626 FileReader(); 01627 @@ -522,8 +522,15 @@ 01685 01686 typedef DLLFactory<ModuleFactory> ircd_module; 01687 -01688 #endif -

    Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +01688 bool ModeDefined(char c, int i); +01689 bool ModeDefinedOper(char c, int i); +01690 int ModeDefinedOn(char c, int i); +01691 int ModeDefinedOff(char c, int i); +01692 void ModeMakeList(char modechar); +01693 bool ModeIsListMode(char modechar, int type); +01694 +01695 #endif +

    Generated on Wed Dec 14 19:16:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index 82ac53cf0..4fd576a85 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -18,17 +18,18 @@

    Include dependency graph for modules.h:

    - - - + + + +

    This graph shows which files directly or indirectly include this file:

    - - - + + +

    @@ -55,7 +56,7 @@ This graph shows which files directly or indirectly include this file:

     Holds an extended mode's details. More...
    class  Module - Base class for all InspIRCd modules This class is the base class for InspIRCd modules. More...
    + Base class for all InspIRCd modules This class is the base class for InspIRCd modules. More...
    class  Server  Allows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers. More...
    @@ -139,7 +140,7 @@ This graph shows which files directly or indirectly include this file:

    typedef std::deque< std::stringfile_cache  Low level definition of a FileReader classes file cache area.
    -typedef file_cache string_list +typedef file_cache string_list typedef std::deque< userrec * > chanuserlist @@ -147,10 +148,22 @@ This graph shows which files directly or indirectly include this file:

    typedef DLLFactory< ModuleFactoryircd_module

    Functions

    -void createcommand (char *cmd, handlerfunc f, char flags, int minparams, char *source) +void createcommand (char *cmd, handlerfunc f, char flags, int minparams, char *source) void server_mode (char **parameters, int pcnt, userrec *user) +bool ModeDefined (char c, int i) + +bool ModeDefinedOper (char c, int i) + +int ModeDefinedOn (char c, int i) + +int ModeDefinedOff (char c, int i) + +void ModeMakeList (char modechar) + +bool ModeIsListMode (char modechar, int type) +

    Define Documentation

    @@ -325,7 +338,9 @@ Definition at line 47 of

    -Definition at line 40 of file modules.h. +Definition at line 40 of file modules.h. +

    +Referenced by kick_channel().

    @@ -429,7 +444,7 @@ Used with OnAccessCheck() method of modules.

    Definition at line 37 of file modules.h.

    -Referenced by Module::OnAccessCheck(). +Referenced by kick_channel(), and Module::OnAccessCheck().

    @@ -454,7 +469,9 @@ Referenced by Module::OnAcc

    -Definition at line 38 of file modules.h. +Definition at line 38 of file modules.h. +

    +Referenced by kick_channel().

    @@ -481,7 +498,7 @@ Definition at line 38 of

    Definition at line 1520 of file modules.h.

    -Referenced by ConfigReader::ConfigReader(). +Referenced by ConfigReader::ConfigReader().

    @@ -508,7 +525,7 @@ Referenced by ConfigReader:

    Definition at line 1517 of file modules.h.

    -Referenced by ConfigReader::ReadInteger(). +Referenced by ConfigReader::ReadInteger().

    @@ -535,7 +552,7 @@ Referenced by ConfigReader:

    Definition at line 1518 of file modules.h.

    -Referenced by ConfigReader::ReadInteger(). +Referenced by ConfigReader::ReadInteger().

    @@ -562,7 +579,7 @@ Referenced by ConfigReader:

    Definition at line 1519 of file modules.h.

    -Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue(). +Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue().

    @@ -641,7 +658,7 @@ Definition at line 25 of

    Definition at line 101 of file modules.h.

    -Referenced by Server::PseudoToUser(), and Server::UserToPseudo(). +Referenced by Server::PseudoToUser(), and Server::UserToPseudo().

    @@ -668,7 +685,7 @@ Referenced by Server::Pseud

    Definition at line 81 of file modules.h.

    -Referenced by Event::Send(). +Referenced by del_channel(), ForceChan(), kick_channel(), and Event::Send().

    @@ -707,7 +724,9 @@ Referenced by Event::Send() }

    -Definition at line 89 of file modules.h. +Definition at line 89 of file modules.h. +

    +Referenced by add_channel(), and kick_channel().

    @@ -736,7 +755,7 @@ Used with OnExtendedMode() method of modules.

    Definition at line 31 of file modules.h.

    -Referenced by Server::AddExtendedListMode(), and ModeMakeList(). +Referenced by Server::AddExtendedListMode(), and ModeMakeList().

    @@ -763,7 +782,7 @@ Referenced by Server::AddEx

    Definition at line 32 of file modules.h.

    -Referenced by Server::AddExtendedMode(). +Referenced by Server::AddExtendedMode().

    @@ -790,7 +809,7 @@ Referenced by Server::AddEx

    Definition at line 33 of file modules.h.

    -Referenced by Server::AddExtendedMode(). +Referenced by Server::AddExtendedMode().

    @@ -969,7 +988,7 @@ Definition at line 52 of

    Definition at line 53 of file modules.h.

    -Referenced by Module::GetVersion(). +Referenced by Module::GetVersion().


    Typedef Documentation

    @@ -1006,7 +1025,7 @@ Definition at line 74 of - +
    typedef std::deque<std::string> file_cache typedef std::deque<std::string> file_cache
    @@ -1058,7 +1077,7 @@ Definition at line 1686 o - +
    typedef file_cache string_list typedef file_cache string_list
    @@ -1092,7 +1111,7 @@ Definition at line 70 of - handlerfunc  + handlerfunc  f, @@ -1132,7 +1151,321 @@ Definition at line 70 of

    -Referenced by Server::AddCommand(). +Referenced by Server::AddCommand(). + + +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    bool ModeDefined char  c,
    int  i
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 71 of file modules.cpp. +

    +References EMode. +

    +Referenced by DoAddExtendedMode().

    00072 {
    +00073         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00074         {
    +00075                 if ((i->modechar == modechar) && (i->type == type))
    +00076                 {
    +00077                         return true;
    +00078                 }
    +00079         }
    +00080         return false;
    +00081 }
    +
    +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    int ModeDefinedOff char  c,
    int  i
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 121 of file modules.cpp. +

    +References EMode.

    00122 {
    +00123         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00124         {
    +00125                 if ((i->modechar == modechar) && (i->type == type))
    +00126                 {
    +00127                         return i->params_when_off;
    +00128                 }
    +00129         }
    +00130         return 0;
    +00131 }
    +
    +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    int ModeDefinedOn char  c,
    int  i
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 108 of file modules.cpp. +

    +References EMode.

    00109 {
    +00110         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00111         {
    +00112                 if ((i->modechar == modechar) && (i->type == type))
    +00113                 {
    +00114                         return i->params_when_on;
    +00115                 }
    +00116         }
    +00117         return 0;
    +00118 }
    +
    +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    bool ModeDefinedOper char  c,
    int  i
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 95 of file modules.cpp. +

    +References EMode.

    00096 {
    +00097         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00098         {
    +00099                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    +00100                 {
    +00101                         return true;
    +00102                 }
    +00103         }
    +00104         return false;
    +00105 }
    +
    +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    bool ModeIsListMode char  modechar,
    int  type
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 83 of file modules.cpp. +

    +References EMode.

    00084 {
    +00085         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00086         {
    +00087                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
    +00088                 {
    +00089                         return true;
    +00090                 }
    +00091         }
    +00092         return false;
    +00093 }
    +
    +

    +

    +

    + + + + +
    + + + + + + + + + +
    void ModeMakeList char  modechar  ) 
    +
    + + + +
    +   + + +

    + +

    +Definition at line 144 of file modules.cpp. +

    +References EMode, and MT_CHANNEL. +

    +Referenced by Server::AddExtendedListMode().

    00145 {
    +00146         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00147         {
    +00148                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    +00149                 {
    +00150                         i->list = true;
    +00151                         return;
    +00152                 }
    +00153         }
    +00154         return;
    +00155 }
    +
    +

    +

    @@ -1178,7 +1511,7 @@ Referenced by Server::AddCo -


    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:21 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/modules_8h__dep__incl.gif b/docs/module-doc/modules_8h__dep__incl.gif index ffda5e4bd..79ea1f1fb 100644 Binary files a/docs/module-doc/modules_8h__dep__incl.gif and b/docs/module-doc/modules_8h__dep__incl.gif differ diff --git a/docs/module-doc/modules_8h__dep__incl.map b/docs/module-doc/modules_8h__dep__incl.map index c8b77543c..2ae52d4d8 100644 --- a/docs/module-doc/modules_8h__dep__incl.map +++ b/docs/module-doc/modules_8h__dep__incl.map @@ -1,4 +1,4 @@ base referer -rect $channels_8cpp-source.html 142,7 240,33 -rect $modules_8cpp-source.html 290,83 388,109 -rect $typedefs_8h-source.html 148,108 234,135 +rect $channels_8cpp-source.html 275,32 373,59 +rect $modules_8cpp-source.html 275,95 373,121 +rect $typedefs_8h-source.html 140,57 225,84 diff --git a/docs/module-doc/modules_8h__dep__incl.md5 b/docs/module-doc/modules_8h__dep__incl.md5 index afb807516..1b8f85636 100644 --- a/docs/module-doc/modules_8h__dep__incl.md5 +++ b/docs/module-doc/modules_8h__dep__incl.md5 @@ -1 +1 @@ -709af1b122d8fb9d54f7e641c4015265 \ No newline at end of file +029327ee049ffb0b20c7a5fec8c0bf60 \ No newline at end of file diff --git a/docs/module-doc/modules_8h__incl.gif b/docs/module-doc/modules_8h__incl.gif index 3eddc0a06..2248e550f 100644 Binary files a/docs/module-doc/modules_8h__incl.gif and b/docs/module-doc/modules_8h__incl.gif differ diff --git a/docs/module-doc/modules_8h__incl.map b/docs/module-doc/modules_8h__incl.map index c1fbf3c8b..11a5b7c38 100644 --- a/docs/module-doc/modules_8h__incl.map +++ b/docs/module-doc/modules_8h__incl.map @@ -1,4 +1,5 @@ base referer -rect $base_8h-source.html 291,108 352,135 -rect $ctables_8h-source.html 146,159 220,186 -rect $socket_8h-source.html 147,336 219,363 +rect $base_8h-source.html 283,108 344,135 +rect $ctables_8h-source.html 145,209 220,236 +rect $socket_8h-source.html 427,361 499,388 +rect $inspircd_8h-source.html 273,209 353,236 diff --git a/docs/module-doc/modules_8h__incl.md5 b/docs/module-doc/modules_8h__incl.md5 index f4d60522b..0ba01c624 100644 --- a/docs/module-doc/modules_8h__incl.md5 +++ b/docs/module-doc/modules_8h__incl.md5 @@ -1 +1 @@ -8da0e6d6a89d833189221b0e009f3b67 \ No newline at end of file +8349e345831c364ad6f1773db4ad756f \ No newline at end of file diff --git a/docs/module-doc/namespaceirc.html b/docs/module-doc/namespaceirc.html index 4b88e75aa..b5bf542b5 100644 --- a/docs/module-doc/namespaceirc.html +++ b/docs/module-doc/namespaceirc.html @@ -56,7 +56,7 @@ This typedef declares irc::string< Definition at line 129 of file hashcomp.h. -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacemembers.html b/docs/module-doc/namespacemembers.html index 961504d53..69f09aa43 100644 --- a/docs/module-doc/namespacemembers.html +++ b/docs/module-doc/namespacemembers.html @@ -11,7 +11,7 @@ Here is a list of all namespace members with links to the namespace documentatio -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacemembers_type.html b/docs/module-doc/namespacemembers_type.html index 52cb8e943..b08d6e314 100644 --- a/docs/module-doc/namespacemembers_type.html +++ b/docs/module-doc/namespacemembers_type.html @@ -11,7 +11,7 @@ -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index 9cad80e78..76db5f60d 100644 --- a/docs/module-doc/namespacenspace.html +++ b/docs/module-doc/namespacenspace.html @@ -15,7 +15,7 @@ struct  hash< string > -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index d1c7861ce..6158d6a1b 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -10,7 +10,7 @@ nspace std -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index cf6bf7068..08b4beccd 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -10,7 +10,7 @@
    -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socket_8cpp-source.html b/docs/module-doc/socket_8cpp-source.html index 0d6f107da..abe739680 100644 --- a/docs/module-doc/socket_8cpp-source.html +++ b/docs/module-doc/socket_8cpp-source.html @@ -39,7 +39,7 @@ 00030 #include <iostream> 00031 #include <fstream> 00032 #include "socket.h" -00033 #include "inspircd.h" +00033 #include "inspircd.h" 00034 #include "inspircd_io.h" 00035 #include "inspircd_util.h" 00036 #include "inspstring.h" @@ -48,8 +48,8 @@ 00039 00040 extern SocketEngine* SE; 00041 -00042 extern int boundPortCount; -00043 extern int openSockfd[MAXSOCKS]; +00042 extern int boundPortCount; +00043 extern int openSockfd[MAXSOCKS]; 00044 extern time_t TIME; 00045 00046 InspSocket* socket_ref[65535]; @@ -71,23 +71,23 @@ 00062 InspSocket::InspSocket(std::string host, int port, bool listening, unsigned long maxtime) 00063 { 00064 if (listening) { -00065 if ((this->fd = OpenTCPSocket()) == ERROR) +00065 if ((this->fd = OpenTCPSocket()) == ERROR) 00066 { 00067 this->fd = -1; 00068 this->state = I_ERROR; 00069 this->OnError(I_ERR_SOCKET); -00070 log(DEBUG,"OpenTCPSocket() error"); +00070 log(DEBUG,"OpenTCPSocket() error"); 00071 return; 00072 } 00073 else 00074 { -00075 if (BindSocket(this->fd,this->client,this->server,port,(char*)host.c_str()) == ERROR) +00075 if (BindSocket(this->fd,this->client,this->server,port,(char*)host.c_str()) == ERROR) 00076 { 00077 this->Close(); 00078 this->fd = -1; 00079 this->state = I_ERROR; 00080 this->OnError(I_ERR_BIND); -00081 log(DEBUG,"BindSocket() error %s",strerror(errno)); +00081 log(DEBUG,"BindSocket() error %s",strerror(errno)); 00082 return; 00083 } 00084 else @@ -95,7 +95,7 @@ 00086 this->state = I_LISTENING; 00087 SE->AddFd(this->fd,true,X_ESTAB_MODULE); 00088 socket_ref[this->fd] = this; -00089 log(DEBUG,"New socket now in I_LISTENING state"); +00089 log(DEBUG,"New socket now in I_LISTENING state"); 00090 return; 00091 } 00092 } @@ -174,7 +174,7 @@ 00165 } 00166 else 00167 { -00168 log(DEBUG,"EOF or error on socket"); +00168 log(DEBUG,"EOF or error on socket"); 00169 return NULL; 00170 } 00171 } @@ -256,7 +256,7 @@ 00247 00248 void InspSocket::SetState(InspSocketState s) 00249 { -00250 log(DEBUG,"Socket state change"); +00250 log(DEBUG,"Socket state change"); 00251 this->state = s; 00252 } 00253 @@ -287,7 +287,7 @@ 00278 int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr) 00279 int OpenTCPSocket (void) 00280 */ -

    Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +

    Generated on Wed Dec 14 19:16:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socket_8cpp.html b/docs/module-doc/socket_8cpp.html index 5a0ca11e5..181c5639e 100644 --- a/docs/module-doc/socket_8cpp.html +++ b/docs/module-doc/socket_8cpp.html @@ -21,7 +21,7 @@ #include <iostream>
    #include <fstream>
    #include "socket.h"
    -#include "inspircd.h"
    +#include "inspircd.h"
    #include "inspircd_io.h"
    #include "inspircd_util.h"
    #include "inspstring.h"
    @@ -31,9 +31,10 @@

    Include dependency graph for socket.cpp:

    - - - + + + +

    @@ -169,7 +170,7 @@ Definition at line 46 of -


    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:22 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socket_8cpp__incl.gif b/docs/module-doc/socket_8cpp__incl.gif index 71318697c..51b0d7a39 100644 Binary files a/docs/module-doc/socket_8cpp__incl.gif and b/docs/module-doc/socket_8cpp__incl.gif differ diff --git a/docs/module-doc/socket_8cpp__incl.map b/docs/module-doc/socket_8cpp__incl.map index 1374f07ed..e5dbf66eb 100644 --- a/docs/module-doc/socket_8cpp__incl.map +++ b/docs/module-doc/socket_8cpp__incl.map @@ -1,4 +1,5 @@ base referer -rect $socket_8h-source.html 160,260 232,287 -rect $inspircd__io_8h-source.html 148,412 244,439 -rect $socketengine_8h-source.html 140,108 252,135 +rect $socket_8h-source.html 456,374 528,400 +rect $inspircd_8h-source.html 301,450 381,476 +rect $inspircd__io_8h-source.html 444,424 540,451 +rect $socketengine_8h-source.html 140,830 252,856 diff --git a/docs/module-doc/socket_8cpp__incl.md5 b/docs/module-doc/socket_8cpp__incl.md5 index 5059c3bba..532a9daa0 100644 --- a/docs/module-doc/socket_8cpp__incl.md5 +++ b/docs/module-doc/socket_8cpp__incl.md5 @@ -1 +1 @@ -90e1383e8aa075991d7a330be1573c66 \ No newline at end of file +9f75c46dbd63c7144404dcb531abb481 \ No newline at end of file diff --git a/docs/module-doc/socket_8h-source.html b/docs/module-doc/socket_8h-source.html index 4e579d9d5..6d0f485de 100644 --- a/docs/module-doc/socket_8h-source.html +++ b/docs/module-doc/socket_8h-source.html @@ -110,7 +110,7 @@ 00302 }; 00303 00304 #endif -

    Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +

    Generated on Wed Dec 14 19:16:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socket_8h.html b/docs/module-doc/socket_8h.html index d0a1f37ee..628f6c42d 100644 --- a/docs/module-doc/socket_8h.html +++ b/docs/module-doc/socket_8h.html @@ -19,11 +19,10 @@ Include dependency graph for socket.h:

    This graph shows which files directly or indirectly include this file:

    - - - - - + + + +

    @@ -140,7 +139,7 @@ Definition at line 29 of f -


    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:22 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socket_8h__dep__incl.gif b/docs/module-doc/socket_8h__dep__incl.gif index c36bb318a..ffc433408 100644 Binary files a/docs/module-doc/socket_8h__dep__incl.gif and b/docs/module-doc/socket_8h__dep__incl.gif differ diff --git a/docs/module-doc/socket_8h__dep__incl.map b/docs/module-doc/socket_8h__dep__incl.map index 41318c6e5..39631ee0c 100644 --- a/docs/module-doc/socket_8h__dep__incl.map +++ b/docs/module-doc/socket_8h__dep__incl.map @@ -1,6 +1,5 @@ base referer -rect $modules_8cpp-source.html 410,57 508,84 -rect $socket_8cpp-source.html 127,57 212,84 -rect $modules_8h-source.html 128,108 211,135 -rect $channels_8cpp-source.html 262,108 360,135 -rect $typedefs_8h-source.html 268,159 354,185 +rect $modules_8cpp-source.html 260,57 359,84 +rect $socket_8cpp-source.html 267,133 352,160 +rect $inspircd_8h-source.html 129,108 209,135 +rect $modules_8h-source.html 128,57 211,84 diff --git a/docs/module-doc/socket_8h__dep__incl.md5 b/docs/module-doc/socket_8h__dep__incl.md5 index 197554b02..5264f4ee1 100644 --- a/docs/module-doc/socket_8h__dep__incl.md5 +++ b/docs/module-doc/socket_8h__dep__incl.md5 @@ -1 +1 @@ -eb848111c3060b658816757104f37d5b \ No newline at end of file +3c191a72f21affbd7a2ef0ada34c2b11 \ No newline at end of file diff --git a/docs/module-doc/socketengine_8cpp-source.html b/docs/module-doc/socketengine_8cpp-source.html index b2e2c627a..82fb7dcfe 100644 --- a/docs/module-doc/socketengine_8cpp-source.html +++ b/docs/module-doc/socketengine_8cpp-source.html @@ -24,8 +24,8 @@ 00015 */ 00016 00017 #include "inspircd_config.h" -00018 #include "globals.h" -00019 #include "inspircd.h" +00018 #include "globals.h" +00019 #include "inspircd.h" 00020 #ifdef USE_EPOLL 00021 #include <sys/epoll.h> 00022 #define EP_DELAY 5 @@ -43,7 +43,7 @@ 00034 00035 SocketEngine::SocketEngine() 00036 { -00037 log(DEBUG,"SocketEngine::SocketEngine()"); +00037 log(DEBUG,"SocketEngine::SocketEngine()"); 00038 #ifdef USE_EPOLL 00039 EngineHandle = epoll_create(65535); 00040 #endif @@ -54,7 +54,7 @@ 00045 00046 SocketEngine::~SocketEngine() 00047 { -00048 log(DEBUG,"SocketEngine::~SocketEngine()"); +00048 log(DEBUG,"SocketEngine::~SocketEngine()"); 00049 #ifdef USE_EPOLL 00050 close(EngineHandle); 00051 #endif @@ -79,30 +79,30 @@ 00070 ref[fd] = type; 00071 if (readable) 00072 { -00073 log(DEBUG,"Set readbit"); +00073 log(DEBUG,"Set readbit"); 00074 ref[fd] |= X_READBIT; 00075 } -00076 log(DEBUG,"Add socket %d",fd); +00076 log(DEBUG,"Add socket %d",fd); 00077 #ifdef USE_EPOLL 00078 struct epoll_event ev; -00079 log(DEBUG,"epoll: Add socket to events, ep=%d socket=%d",EngineHandle,fd); +00079 log(DEBUG,"epoll: Add socket to events, ep=%d socket=%d",EngineHandle,fd); 00080 readable ? ev.events = EPOLLIN | EPOLLET : ev.events = EPOLLOUT | EPOLLET; 00081 ev.data.fd = fd; 00082 int i = epoll_ctl(EngineHandle, EPOLL_CTL_ADD, fd, &ev); 00083 if (i < 0) 00084 { -00085 log(DEBUG,"epoll: List insertion failure!"); +00085 log(DEBUG,"epoll: List insertion failure!"); 00086 return false; 00087 } 00088 #endif 00089 #ifdef USE_KQUEUE 00090 struct kevent ke; -00091 log(DEBUG,"kqueue: Add socket to events, kq=%d socket=%d",EngineHandle,fd); +00091 log(DEBUG,"kqueue: Add socket to events, kq=%d socket=%d",EngineHandle,fd); 00092 EV_SET(&ke, fd, readable ? EVFILT_READ : EVFILT_WRITE, EV_ADD, 0, 0, NULL); 00093 int i = kevent(EngineHandle, &ke, 1, 0, 0, NULL); 00094 if (i == -1) 00095 { -00096 log(DEBUG,"kqueue: List insertion failure!"); +00096 log(DEBUG,"kqueue: List insertion failure!"); 00097 return false; 00098 } 00099 #endif @@ -111,7 +111,7 @@ 00102 00103 bool SocketEngine::DelFd(int fd) 00104 { -00105 log(DEBUG,"SocketEngine::DelFd(%d)",fd); +00105 log(DEBUG,"SocketEngine::DelFd(%d)",fd); 00106 00107 if ((fd < 0) || (fd > 65535)) 00108 return false; @@ -122,7 +122,7 @@ 00113 if (*i == fd) 00114 { 00115 fds.erase(i); -00116 log(DEBUG,"Deleted fd %d",fd); +00116 log(DEBUG,"Deleted fd %d",fd); 00117 found = true; 00118 break; 00119 } @@ -133,7 +133,7 @@ 00124 int i = kevent(EngineHandle, &ke, 1, 0, 0, NULL); 00125 if (i == -1) 00126 { -00127 log(DEBUG,"kqueue: Failed to remove socket from queue!"); +00127 log(DEBUG,"kqueue: Failed to remove socket from queue!"); 00128 return false; 00129 } 00130 #endif @@ -144,7 +144,7 @@ 00135 int i = epoll_ctl(EngineHandle, EPOLL_CTL_DEL, fd, &ev); 00136 if (i < 0) 00137 { -00138 log(DEBUG,"epoll: List deletion failure!"); +00138 log(DEBUG,"epoll: List deletion failure!"); 00139 return false; 00140 } 00141 #endif @@ -212,7 +212,7 @@ 00203 #endif 00204 return "misconfigured"; 00205 } -
    Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socketengine_8cpp.html b/docs/module-doc/socketengine_8cpp.html index 10630b1ef..6ae53100f 100644 --- a/docs/module-doc/socketengine_8cpp.html +++ b/docs/module-doc/socketengine_8cpp.html @@ -8,8 +8,8 @@

    socketengine.cpp File Reference

    #include "inspircd_config.h"
    -#include "globals.h"
    -#include "inspircd.h"
    +#include "globals.h"
    +#include "inspircd.h"
    #include <vector>
    #include <string>
    #include "socketengine.h"
    @@ -17,7 +17,9 @@

    Include dependency graph for socketengine.cpp:

    - + + +

    @@ -55,7 +57,7 @@ Definition at line 33< Referenced by SocketEngine::AddFd(), SocketEngine::DelFd(), SocketEngine::GetType(), and SocketEngine::Wait(). -


    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:23 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socketengine_8cpp__incl.gif b/docs/module-doc/socketengine_8cpp__incl.gif index a9b4ee54a..59bcf3ae8 100644 Binary files a/docs/module-doc/socketengine_8cpp__incl.gif and b/docs/module-doc/socketengine_8cpp__incl.gif differ diff --git a/docs/module-doc/socketengine_8cpp__incl.map b/docs/module-doc/socketengine_8cpp__incl.map index f45ed643e..e7b56eb07 100644 --- a/docs/module-doc/socketengine_8cpp__incl.map +++ b/docs/module-doc/socketengine_8cpp__incl.map @@ -1,2 +1,4 @@ base referer -rect $socketengine_8h-source.html 180,159 292,186 +rect $globals_8h-source.html 343,209 417,236 +rect $inspircd_8h-source.html 340,57 420,84 +rect $socketengine_8h-source.html 180,159 292,185 diff --git a/docs/module-doc/socketengine_8cpp__incl.md5 b/docs/module-doc/socketengine_8cpp__incl.md5 index 7588e9a56..333ce2806 100644 --- a/docs/module-doc/socketengine_8cpp__incl.md5 +++ b/docs/module-doc/socketengine_8cpp__incl.md5 @@ -1 +1 @@ -afe277f87830f5268eeca66a5c32895e \ No newline at end of file +50741f9f6cf4a87616fd7184331c0fd9 \ No newline at end of file diff --git a/docs/module-doc/socketengine_8h-source.html b/docs/module-doc/socketengine_8h-source.html index 2efbade7a..781e08ce9 100644 --- a/docs/module-doc/socketengine_8h-source.html +++ b/docs/module-doc/socketengine_8h-source.html @@ -29,8 +29,8 @@ 00020 #include <vector> 00021 #include <string> 00022 #include "inspircd_config.h" -00023 #include "globals.h" -00024 #include "inspircd.h" +00023 #include "globals.h" +00024 #include "inspircd.h" 00025 #ifdef USE_EPOLL 00026 #include <sys/epoll.h> 00027 #define EP_DELAY 5 @@ -82,7 +82,7 @@ 00142 }; 00143 00144 #endif -
    Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socketengine_8h.html b/docs/module-doc/socketengine_8h.html index 61e72cb4f..827330333 100644 --- a/docs/module-doc/socketengine_8h.html +++ b/docs/module-doc/socketengine_8h.html @@ -10,14 +10,18 @@

    socketengine.h File Reference

    #include <vector>
    #include <string>
    #include "inspircd_config.h"
    -#include "globals.h"
    -#include "inspircd.h"
    +#include "globals.h"
    +#include "inspircd.h"
    #include <sys/types.h>
    #include <sys/event.h>
    #include <sys/time.h>

    Include dependency graph for socketengine.h:

    + + + +

    This graph shows which files directly or indirectly include this file:

    @@ -211,7 +215,7 @@ Definition at line 55SocketEngine::AddFd(), SocketEngine::DelFd(), and SocketEngine::Wait(). -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:24 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socketengine_8h__incl.gif b/docs/module-doc/socketengine_8h__incl.gif index 314924cd0..bcaa0ce95 100644 Binary files a/docs/module-doc/socketengine_8h__incl.gif and b/docs/module-doc/socketengine_8h__incl.gif differ diff --git a/docs/module-doc/socketengine_8h__incl.map b/docs/module-doc/socketengine_8h__incl.map index 5a14779e7..e57838a54 100644 --- a/docs/module-doc/socketengine_8h__incl.map +++ b/docs/module-doc/socketengine_8h__incl.map @@ -1 +1,3 @@ base referer +rect $globals_8h-source.html 175,108 250,135 +rect $inspircd_8h-source.html 172,159 252,186 diff --git a/docs/module-doc/socketengine_8h__incl.md5 b/docs/module-doc/socketengine_8h__incl.md5 index b52cfeccc..8b91e5aee 100644 --- a/docs/module-doc/socketengine_8h__incl.md5 +++ b/docs/module-doc/socketengine_8h__incl.md5 @@ -1 +1 @@ -d61c5ce9be257a944950df9c9b0b0b2b \ No newline at end of file +9faa242bc7dd08e1da2018aca66c84c3 \ No newline at end of file diff --git a/docs/module-doc/structdns__ip4list-members.html b/docs/module-doc/structdns__ip4list-members.html index e37bb09dc..0a88d3b41 100644 --- a/docs/module-doc/structdns__ip4list-members.html +++ b/docs/module-doc/structdns__ip4list-members.html @@ -8,7 +8,7 @@

    dns_ip4list Member List

    This is the complete list of members for dns_ip4list, including all inherited members.

    -
    ipdns_ip4list
    nextdns_ip4list


    Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structdns__ip4list.html b/docs/module-doc/structdns__ip4list.html index d0a80f758..2332edf25 100644 --- a/docs/module-doc/structdns__ip4list.html +++ b/docs/module-doc/structdns__ip4list.html @@ -74,7 +74,7 @@ Definition at line 28 of file
    The documentation for this struct was generated from the following file: -
    Generated on Wed Dec 14 15:55:48 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structirc_1_1InAddr__HashComp-members.html b/docs/module-doc/structirc_1_1InAddr__HashComp-members.html index 8bb5fa75b..7c6896792 100644 --- a/docs/module-doc/structirc_1_1InAddr__HashComp-members.html +++ b/docs/module-doc/structirc_1_1InAddr__HashComp-members.html @@ -7,7 +7,7 @@

    irc::InAddr_HashComp Member List

    This is the complete list of members for irc::InAddr_HashComp, including all inherited members.

    -
    operator()(const in_addr &s1, const in_addr &s2) const irc::InAddr_HashComp


    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structirc_1_1InAddr__HashComp.html b/docs/module-doc/structirc_1_1InAddr__HashComp.html index aaa89e086..ff8d46267 100644 --- a/docs/module-doc/structirc_1_1InAddr__HashComp.html +++ b/docs/module-doc/structirc_1_1InAddr__HashComp.html @@ -68,7 +68,7 @@ The operator () does the actual comparison in hash_map.
    The documentation for this struct was generated from the following file: -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structirc_1_1StrHashComp-members.html b/docs/module-doc/structirc_1_1StrHashComp-members.html index f4cab5bc4..0895f7aa9 100644 --- a/docs/module-doc/structirc_1_1StrHashComp-members.html +++ b/docs/module-doc/structirc_1_1StrHashComp-members.html @@ -7,7 +7,7 @@

    irc::StrHashComp Member List

    This is the complete list of members for irc::StrHashComp, including all inherited members.

    -
    operator()(const std::string &s1, const std::string &s2) const irc::StrHashComp


    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structirc_1_1StrHashComp.html b/docs/module-doc/structirc_1_1StrHashComp.html index 34d737256..e75a78fc7 100644 --- a/docs/module-doc/structirc_1_1StrHashComp.html +++ b/docs/module-doc/structirc_1_1StrHashComp.html @@ -68,7 +68,7 @@ The operator () does the actual comparison in hash_map.
    The documentation for this struct was generated from the following file: -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structirc_1_1irc__char__traits-members.html b/docs/module-doc/structirc_1_1irc__char__traits-members.html index b45193bfd..f7a4822cf 100644 --- a/docs/module-doc/structirc_1_1irc__char__traits-members.html +++ b/docs/module-doc/structirc_1_1irc__char__traits-members.html @@ -11,7 +11,7 @@ find(const char *s1, int n, char c)irc::irc_char_traits [static] lt(char c1st, char c2nd)irc::irc_char_traits [static] ne(char c1st, char c2nd)irc::irc_char_traits [static] -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structirc_1_1irc__char__traits.html b/docs/module-doc/structirc_1_1irc__char__traits.html index 23b6f8de3..6a68cf5ec 100644 --- a/docs/module-doc/structirc_1_1irc__char__traits.html +++ b/docs/module-doc/structirc_1_1irc__char__traits.html @@ -256,7 +256,7 @@ Check if two chars do NOT match.
    The documentation for this struct was generated from the following file: -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4-members.html b/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4-members.html index 2488cad9e..b80d90f29 100644 --- a/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4-members.html +++ b/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4-members.html @@ -7,7 +7,7 @@

    nspace::hash< in_addr > Member List

    This is the complete list of members for nspace::hash< in_addr >, including all inherited members.

    -
    operator()(const struct in_addr &a) const nspace::hash< in_addr >


    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4.html b/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4.html index b5facdffe..c9784131d 100644 --- a/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4.html +++ b/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4.html @@ -54,7 +54,7 @@ Definition at line 54 of
    The documentation for this struct was generated from the following file: -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structnspace_1_1hash_3_01string_01_4-members.html b/docs/module-doc/structnspace_1_1hash_3_01string_01_4-members.html index dc3d2c7a6..3b560f053 100644 --- a/docs/module-doc/structnspace_1_1hash_3_01string_01_4-members.html +++ b/docs/module-doc/structnspace_1_1hash_3_01string_01_4-members.html @@ -7,7 +7,7 @@

    nspace::hash< string > Member List

    This is the complete list of members for nspace::hash< string >, including all inherited members.

    -
    operator()(const string &s) const nspace::hash< string >


    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structnspace_1_1hash_3_01string_01_4.html b/docs/module-doc/structnspace_1_1hash_3_01string_01_4.html index 4134ee3ba..6b99de245 100644 --- a/docs/module-doc/structnspace_1_1hash_3_01string_01_4.html +++ b/docs/module-doc/structnspace_1_1hash_3_01string_01_4.html @@ -54,7 +54,7 @@ Definition at line 62 of
    The documentation for this struct was generated from the following file: -
    Generated on Wed Dec 14 15:55:52 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/tree.html b/docs/module-doc/tree.html index b3fce4fbe..93b89b3a8 100644 --- a/docs/module-doc/tree.html +++ b/docs/module-doc/tree.html @@ -81,7 +81,9 @@

    |o*connection.h

    |o*ctables.h

    |o*dns.h

    +

    |o*globals.h

    |o*hashcomp.h

    +

    |o*inspircd.h

    |o*inspircd_io.h

    |o*message.h

    |o*mode.h

    @@ -122,6 +124,7 @@

    |o*nspace::hash< string >

    |o*HostItem

    |o*irc::InAddr_HashComp

    +

    |o*InspIRCd

    |o*InspSocket

    |o*Invited

    |o*InviteItem

    @@ -135,6 +138,7 @@

    |o*Request

    |o*Server

    |o*ServerConfig

    +

    |o*serverstats

    |o*SocketEngine

    |o*irc::StrHashComp

    |o*ucrec

    @@ -200,7 +204,9 @@

    |o*nspace::hash< in_addr >

    |o*nspace::hash< string >

    |o*irc::InAddr_HashComp

    +

    |o*InspIRCd

    |o*InspSocket

    +

    |o*serverstats

    |o*SocketEngine

    |o*irc::StrHashComp

    |\*WhoWasUser

    diff --git a/docs/module-doc/typedefs_8h-source.html b/docs/module-doc/typedefs_8h-source.html index 1aab71ba1..b22da8103 100644 --- a/docs/module-doc/typedefs_8h-source.html +++ b/docs/module-doc/typedefs_8h-source.html @@ -15,9 +15,9 @@ 00006 #include "hashcomp.h" 00007 #include "inspstring.h" 00008 #include "ctables.h" -00009 #include "inspircd.h" +00009 #include "inspircd.h" 00010 #include "modules.h" -00011 #include "globals.h" +00011 #include "globals.h" 00012 #include "inspircd_config.h" 00013 #include <string> 00014 #ifdef GCC3 @@ -34,9 +34,10 @@ 00025 typedef std::vector<std::string> servernamelist; 00026 typedef std::vector<ExtMode> ExtModeList; 00027 typedef ExtModeList::iterator ExtModeListIter; -00028 -00029 #endif -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +00028 typedef std::deque<std::string> file_cache; +00029 +00030 #endif +
    Generated on Wed Dec 14 19:16:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/typedefs_8h.html b/docs/module-doc/typedefs_8h.html index 6d202cd46..cd9bbc04a 100644 --- a/docs/module-doc/typedefs_8h.html +++ b/docs/module-doc/typedefs_8h.html @@ -12,9 +12,9 @@ #include "hashcomp.h"
    #include "inspstring.h"
    #include "ctables.h"
    -#include "inspircd.h"
    +#include "inspircd.h"
    #include "modules.h"
    -#include "globals.h"
    +#include "globals.h"
    #include "inspircd_config.h"
    #include <string>
    #include <ext/hash_map>
    @@ -22,17 +22,20 @@

    Include dependency graph for typedefs.h:

    - - - - + + + + + +

    This graph shows which files directly or indirectly include this file:

    - + +

    @@ -63,6 +66,8 @@ This graph shows which files directly or indirectly include this file:

    typedef ExtModeList::iterator ExtModeListIter +typedef std::deque< std::stringfile_cache +

    Typedef Documentation

    @@ -190,6 +195,31 @@ Definition at line 26 of Definition at line 27 of file typedefs.h. +

    + + + + +
    + + + + +
    typedef std::deque<std::string> file_cache
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 28 of file typedefs.h.

    @@ -265,7 +295,7 @@ Definition at line 20 of Definition at line 23 of file typedefs.h.
    -


    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:24 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/typedefs_8h__dep__incl.gif b/docs/module-doc/typedefs_8h__dep__incl.gif index 9f1b6aa92..83917f390 100644 Binary files a/docs/module-doc/typedefs_8h__dep__incl.gif and b/docs/module-doc/typedefs_8h__dep__incl.gif differ diff --git a/docs/module-doc/typedefs_8h__dep__incl.map b/docs/module-doc/typedefs_8h__dep__incl.map index 096b0abd5..d7538d0b6 100644 --- a/docs/module-doc/typedefs_8h__dep__incl.map +++ b/docs/module-doc/typedefs_8h__dep__incl.map @@ -1,2 +1,3 @@ base referer -rect $modules_8cpp-source.html 140,7 239,33 +rect $channels_8cpp-source.html 141,7 240,34 +rect $modules_8cpp-source.html 141,58 240,84 diff --git a/docs/module-doc/typedefs_8h__dep__incl.md5 b/docs/module-doc/typedefs_8h__dep__incl.md5 index 0d707fc49..11e0ba285 100644 --- a/docs/module-doc/typedefs_8h__dep__incl.md5 +++ b/docs/module-doc/typedefs_8h__dep__incl.md5 @@ -1 +1 @@ -a0f44bb677c4bae9f3f18d396131af56 \ No newline at end of file +142082842cc532e4d4e382b14a7b2d29 \ No newline at end of file diff --git a/docs/module-doc/typedefs_8h__incl.gif b/docs/module-doc/typedefs_8h__incl.gif index 25517e2e2..54765764d 100644 Binary files a/docs/module-doc/typedefs_8h__incl.gif and b/docs/module-doc/typedefs_8h__incl.gif differ diff --git a/docs/module-doc/typedefs_8h__incl.map b/docs/module-doc/typedefs_8h__incl.map index 632ae99bc..b131a2682 100644 --- a/docs/module-doc/typedefs_8h__incl.map +++ b/docs/module-doc/typedefs_8h__incl.map @@ -1,6 +1,8 @@ base referer -rect $users_8h-source.html 156,159 220,185 -rect $channels_8h-source.html 295,209 380,236 -rect $hashcomp_8h-source.html 141,412 235,439 -rect $ctables_8h-source.html 300,361 375,388 +rect $users_8h-source.html 568,463 632,489 +rect $channels_8h-source.html 684,361 769,388 +rect $hashcomp_8h-source.html 141,108 235,135 +rect $ctables_8h-source.html 300,209 375,236 +rect $inspircd_8h-source.html 439,235 519,261 rect $modules_8h-source.html 147,311 229,337 +rect $globals_8h-source.html 441,412 516,439 diff --git a/docs/module-doc/typedefs_8h__incl.md5 b/docs/module-doc/typedefs_8h__incl.md5 index 8fd87bc7b..c9e951c43 100644 --- a/docs/module-doc/typedefs_8h__incl.md5 +++ b/docs/module-doc/typedefs_8h__incl.md5 @@ -1 +1 @@ -1fe97cc4a91ebf3317aa83aa4ddd3f2d \ No newline at end of file +137043db2e87cae486cf9cf5c587f147 \ No newline at end of file diff --git a/docs/module-doc/userprocess_8h-source.html b/docs/module-doc/userprocess_8h-source.html index 543a02f45..6b70a7635 100644 --- a/docs/module-doc/userprocess_8h-source.html +++ b/docs/module-doc/userprocess_8h-source.html @@ -20,7 +20,7 @@ 00011 void ProcessUser(userrec* cu); 00012 00013 #endif -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/userprocess_8h.html b/docs/module-doc/userprocess_8h.html index e3f6af7d8..ad7540c5f 100644 --- a/docs/module-doc/userprocess_8h.html +++ b/docs/module-doc/userprocess_8h.html @@ -209,7 +209,7 @@ Include dependency graph for userprocess.h:

    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:24 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 25ddfcaed..c8a6138b9 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -29,7 +29,7 @@ 00020 #include "channels.h" 00021 #include "connection.h" 00022 #include "users.h" -00023 #include "inspircd.h" +00023 #include "inspircd.h" 00024 #include <stdio.h> 00025 #ifdef THREADED_DNS 00026 #include <pthread.h> @@ -53,7 +53,7 @@ 00044 strcpy(dhost,""); 00045 strcpy(fullname,""); 00046 strcpy(modes,""); -00047 server = (char*)FindServerNamePtr(Config->ServerName); +00047 server = (char*)FindServerNamePtr(Config->ServerName); 00048 strcpy(awaymsg,""); 00049 strcpy(oper,""); 00050 reset_due = TIME; @@ -130,7 +130,7 @@ 00121 00122 void userrec::RemoveInvite(char* channel) 00123 { -00124 log(DEBUG,"Removing invites"); +00124 log(DEBUG,"Removing invites"); 00125 if (channel) 00126 { 00127 if (invites.size()) @@ -223,7 +223,7 @@ 00214 if (recvq.length() > (unsigned)this->recvqmax) 00215 { 00216 this->SetWriteError("RecvQ exceeded"); -00217 WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax); +00217 WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax); 00218 } 00219 // return false if we've had more than 600 characters WITHOUT 00220 // a carriage return (this is BAD, drop the socket) @@ -266,7 +266,7 @@ 00257 return; 00258 if (sendq.length() + data.length() > (unsigned)this->sendqmax) 00259 { -00260 WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax); +00260 WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax); 00261 this->SetWriteError("SendQ exceeded"); 00262 return; 00263 } @@ -300,7 +300,7 @@ 00291 00292 void userrec::SetWriteError(std::string error) 00293 { -00294 log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str()); +00294 log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str()); 00295 // don't try to set the error twice, its already set take the first string. 00296 if (this->WriteError == "") 00297 this->WriteError = error; @@ -310,7 +310,7 @@ 00301 { 00302 return this->WriteError; 00303 } -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index e2253edbc..fadb9bd2f 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -11,7 +11,7 @@ #include "channels.h"
    #include "connection.h"
    #include "users.h"
    -#include "inspircd.h"
    +#include "inspircd.h"
    #include <stdio.h>
    #include "inspstring.h"
    #include "commands.h"
    @@ -20,10 +20,11 @@

    Include dependency graph for users.cpp:

    - - - - + + + + +

    @@ -82,7 +83,7 @@ Include dependency graph for users.cpp:

    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/users_8cpp__incl.gif b/docs/module-doc/users_8cpp__incl.gif index 5126e18e3..cf7ff8676 100644 Binary files a/docs/module-doc/users_8cpp__incl.gif and b/docs/module-doc/users_8cpp__incl.gif differ diff --git a/docs/module-doc/users_8cpp__incl.map b/docs/module-doc/users_8cpp__incl.map index 12be62e4b..622bc529e 100644 --- a/docs/module-doc/users_8cpp__incl.map +++ b/docs/module-doc/users_8cpp__incl.map @@ -1,5 +1,6 @@ base referer -rect $channels_8h-source.html 408,132 493,159 -rect $connection_8h-source.html 401,233 500,260 -rect $users_8h-source.html 288,183 352,209 -rect $commands_8h-source.html 137,132 236,159 +rect $channels_8h-source.html 408,159 493,185 +rect $connection_8h-source.html 401,108 500,135 +rect $users_8h-source.html 288,209 352,236 +rect $inspircd_8h-source.html 147,260 227,287 +rect $commands_8h-source.html 137,159 236,185 diff --git a/docs/module-doc/users_8cpp__incl.md5 b/docs/module-doc/users_8cpp__incl.md5 index e8c9aae41..024e4ea0f 100644 --- a/docs/module-doc/users_8cpp__incl.md5 +++ b/docs/module-doc/users_8cpp__incl.md5 @@ -1 +1 @@ -2fa94c1471f03be385dba85c3d44dac3 \ No newline at end of file +92d4da8a60e18559ac0cab66f6d1f6c6 \ No newline at end of file diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index 160eea818..5fda18768 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -192,7 +192,7 @@ 00342 }; 00343 00344 #endif -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index 29b7734f4..7a9a08a0f 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -23,15 +23,17 @@ Include dependency graph for users.h:

    This graph shows which files directly or indirectly include this file:

    - - - - - - - - - + + + + + + + + + + +

    @@ -144,7 +146,9 @@ Definition at line 35 of fi

    -Definition at line 30 of file users.h. +Definition at line 30 of file users.h. +

    +Referenced by kick_channel().

    @@ -277,7 +281,7 @@ Holds a complete list of all channels to which a user has been invited and has n Definition at line 97 of file users.h. -


    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/users_8h__dep__incl.gif b/docs/module-doc/users_8h__dep__incl.gif index de6531f7e..e3890d199 100644 Binary files a/docs/module-doc/users_8h__dep__incl.gif and b/docs/module-doc/users_8h__dep__incl.gif differ diff --git a/docs/module-doc/users_8h__dep__incl.map b/docs/module-doc/users_8h__dep__incl.map index 8476fde3d..9323b24c7 100644 --- a/docs/module-doc/users_8h__dep__incl.map +++ b/docs/module-doc/users_8h__dep__incl.map @@ -1,10 +1,12 @@ base referer -rect $channels_8cpp-source.html 277,83 376,109 -rect $modules_8cpp-source.html 277,184 376,211 -rect $users_8cpp-source.html 287,336 367,363 -rect $commands_8h-source.html 125,311 224,337 -rect $message_8h-source.html 132,57 217,84 -rect $mode_8h-source.html 141,108 208,135 -rect $typedefs_8h-source.html 132,209 217,236 -rect $userprocess_8h-source.html 123,412 227,439 -rect $xline_8h-source.html 144,159 205,185 +rect $channels_8cpp-source.html 413,235 512,262 +rect $modules_8cpp-source.html 413,387 512,414 +rect $users_8cpp-source.html 280,362 360,388 +rect $commands_8h-source.html 125,412 224,439 +rect $globals_8h-source.html 137,184 212,211 +rect $typedefs_8h-source.html 277,210 363,236 +rect $inspircd_8h-source.html 135,311 215,338 +rect $message_8h-source.html 277,58 363,84 +rect $mode_8h-source.html 287,463 353,490 +rect $userprocess_8h-source.html 123,666 227,692 +rect $xline_8h-source.html 289,514 351,540 diff --git a/docs/module-doc/users_8h__dep__incl.md5 b/docs/module-doc/users_8h__dep__incl.md5 index 34eb02fef..76da854d5 100644 --- a/docs/module-doc/users_8h__dep__incl.md5 +++ b/docs/module-doc/users_8h__dep__incl.md5 @@ -1 +1 @@ -e4bee193bd70218d154c4fd5eeba5fa4 \ No newline at end of file +f25dbe6c6683cb78df35ea31b4525d24 \ No newline at end of file diff --git a/docs/module-doc/xline_8h-source.html b/docs/module-doc/xline_8h-source.html index 157a4ca95..f59cf1d1b 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -129,7 +129,7 @@ 00161 bool qline_make_global(const char* nickname); 00162 00163 #endif -
    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/xline_8h.html b/docs/module-doc/xline_8h.html index d6d6a5705..84306949d 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -172,7 +172,7 @@ This graph shows which files directly or indirectly include this file:

    -Referenced by Server::AddELine(). +Referenced by Server::AddELine().

    @@ -223,7 +223,7 @@ Referenced by Server::AddEL

    -Referenced by Server::AddGLine(). +Referenced by Server::AddGLine().

    @@ -274,7 +274,7 @@ Referenced by Server::AddGL

    -Referenced by Server::AddKLine(). +Referenced by Server::AddKLine().

    @@ -325,7 +325,7 @@ Referenced by Server::AddKL

    -Referenced by Server::AddQLine(). +Referenced by Server::AddQLine().

    @@ -376,7 +376,7 @@ Referenced by Server::AddQL

    -Referenced by Server::AddZLine(). +Referenced by Server::AddZLine().

    @@ -434,7 +434,7 @@ Referenced by Server::AddZL

    -Referenced by Server::DelELine(). +Referenced by Server::DelELine().

    @@ -464,7 +464,7 @@ Referenced by Server::DelEL

    -Referenced by Server::DelGLine(). +Referenced by Server::DelGLine().

    @@ -494,7 +494,7 @@ Referenced by Server::DelGL

    -Referenced by Server::DelKLine(). +Referenced by Server::DelKLine().

    @@ -524,7 +524,7 @@ Referenced by Server::DelKL

    -Referenced by Server::DelQLine(). +Referenced by Server::DelQLine().

    @@ -554,7 +554,7 @@ Referenced by Server::DelQL

    -Referenced by Server::DelZLine(). +Referenced by Server::DelZLine().

    @@ -1221,7 +1221,7 @@ Definition at line 33 of fi Definition at line 34 of file xline.h. -


    Generated on Wed Dec 14 15:55:47 2005 for InspIRCd by  +
    Generated on Wed Dec 14 19:16:25 2005 for InspIRCd by  doxygen 1.4.4-20050815
    -- cgit v1.2.3