From 03be04a9a2d86a4568d09d5e1689dd7ef37c863a Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Dec 2005 14:52:12 +0000 Subject: Added extra docs for new config system git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2417 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/man/man3/Admin.3 | 6 +- docs/man/man3/BanItem.3 | 2 +- docs/man/man3/BoolSet.3 | 2 +- docs/man/man3/ConfigReader.3 | 291 ++-- docs/man/man3/ConnectClass.3 | 2 +- docs/man/man3/DNS.3 | 2 +- docs/man/man3/ELine.3 | 6 +- docs/man/man3/Event.3 | 40 +- docs/man/man3/ExemptItem.3 | 2 +- docs/man/man3/ExtMode.3 | 30 +- docs/man/man3/Extensible.3 | 4 +- docs/man/man3/FileReader.3 | 84 +- docs/man/man3/GLine.3 | 6 +- docs/man/man3/HostItem.3 | 2 +- docs/man/man3/InspSocket.3 | 380 +++-- docs/man/man3/InviteItem.3 | 2 +- docs/man/man3/Invited.3 | 2 +- docs/man/man3/KLine.3 | 6 +- docs/man/man3/ModeParameter.3 | 2 +- docs/man/man3/Module.3 | 324 ++-- docs/man/man3/ModuleFactory.3 | 12 +- docs/man/man3/ModuleMessage.3 | 2 +- docs/man/man3/QLine.3 | 8 +- docs/man/man3/Request.3 | 52 +- docs/man/man3/Server.3 | 734 ++++---- docs/man/man3/ServerConfig.3 | 325 ++++ docs/man/man3/SocketEngine.3 | 67 +- docs/man/man3/Version.3 | 6 +- docs/man/man3/WhoWasUser.3 | 2 +- docs/man/man3/XLine.3 | 14 +- docs/man/man3/ZLine.3 | 8 +- docs/man/man3/_home_.3 | 2 +- docs/man/man3/_home_brain_.3 | 2 +- docs/man/man3/_home_brain_inspircd-cvs_.3 | 2 +- docs/man/man3/_home_brain_inspircd-cvs_inspircd_.3 | 2 +- .../_home_brain_inspircd-cvs_inspircd_include_.3 | 11 +- .../man3/_home_brain_inspircd-cvs_inspircd_src_.3 | 2 +- docs/man/man3/base.h.3 | 2 +- docs/man/man3/channels.cpp.3 | 126 +- docs/man/man3/channels.h.3 | 2 +- docs/man/man3/chanrec.3 | 218 +-- docs/man/man3/classbase.3 | 4 +- docs/man/man3/command_t.3 | 2 +- docs/man/man3/commands.h.3 | 2 +- docs/man/man3/connection.3 | 2 +- docs/man/man3/connection.h.3 | 2 +- docs/man/man3/ctables.h.3 | 2 +- docs/man/man3/dns.h.3 | 2 +- docs/man/man3/dns_ip4list.3 | 2 +- docs/man/man3/hashcomp.h.3 | 2 +- docs/man/man3/inspircd_io.h.3 | 110 ++ docs/man/man3/irc.3 | 2 +- docs/man/man3/irc_InAddr_HashComp.3 | 2 +- docs/man/man3/irc_StrHashComp.3 | 2 +- docs/man/man3/irc_irc_char_traits.3 | 2 +- docs/man/man3/message.h.3 | 6 +- docs/man/man3/mode.h.3 | 2 +- docs/man/man3/modules.cpp.3 | 341 +--- docs/man/man3/modules.h.3 | 18 +- docs/man/man3/nspace.3 | 2 +- docs/man/man3/nspace_hash_ in_addr _.3 | 2 +- docs/man/man3/nspace_hash_ string _.3 | 2 +- docs/man/man3/socket.cpp.3 | 19 +- docs/man/man3/socket.h.3 | 2 +- docs/man/man3/socketengine.cpp.3 | 2 +- docs/man/man3/socketengine.h.3 | 2 +- docs/man/man3/std.3 | 2 +- docs/man/man3/std_char_traits.3 | 2 +- docs/man/man3/typedefs.h.3 | 88 + docs/man/man3/ucrec.3 | 6 +- docs/man/man3/userprocess.h.3 | 50 + docs/man/man3/userrec.3 | 511 +++--- docs/man/man3/users.cpp.3 | 11 +- docs/man/man3/users.h.3 | 2 +- docs/man/man3/xline.h.3 | 42 +- docs/module-doc/annotated.html | 5 +- docs/module-doc/base_8h-source.html | 2 +- docs/module-doc/base_8h.html | 18 +- docs/module-doc/base_8h__dep__incl.gif | Bin 9094 -> 2057 bytes docs/module-doc/base_8h__dep__incl.map | 16 +- docs/module-doc/base_8h__dep__incl.md5 | 2 +- docs/module-doc/channels_8cpp-source.html | 294 ++-- docs/module-doc/channels_8cpp.html | 584 +------ docs/module-doc/channels_8cpp__incl.gif | Bin 23588 -> 23887 bytes docs/module-doc/channels_8cpp__incl.map | 13 +- docs/module-doc/channels_8cpp__incl.md5 | 2 +- docs/module-doc/channels_8h-source.html | 2 +- docs/module-doc/channels_8h.html | 20 +- docs/module-doc/channels_8h__dep__incl.gif | Bin 5660 -> 7694 bytes docs/module-doc/channels_8h__dep__incl.map | 18 +- 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 | 2 +- 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 | 293 ++-- 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 | 6 +- 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 | 2 +- docs/module-doc/classExtMode-members.html | 2 +- docs/module-doc/classExtMode.html | 31 +- docs/module-doc/classExtensible-members.html | 2 +- docs/module-doc/classExtensible.html | 4 +- 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 | 6 +- docs/module-doc/classHostItem-members.html | 2 +- docs/module-doc/classHostItem.html | 2 +- docs/module-doc/classInspSocket-members.html | 2 +- docs/module-doc/classInspSocket.html | 408 ++--- docs/module-doc/classInviteItem-members.html | 2 +- docs/module-doc/classInviteItem.html | 2 +- docs/module-doc/classInvited-members.html | 2 +- docs/module-doc/classInvited.html | 4 +- docs/module-doc/classKLine-members.html | 2 +- docs/module-doc/classKLine.html | 6 +- docs/module-doc/classModeParameter-members.html | 2 +- docs/module-doc/classModeParameter.html | 8 +- docs/module-doc/classModule-members.html | 2 +- docs/module-doc/classModule.html | 170 +- docs/module-doc/classModuleFactory-members.html | 2 +- docs/module-doc/classModuleFactory.html | 8 +- 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 | 8 +- 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 | 682 ++++---- docs/module-doc/classServerConfig-members.html | 63 + docs/module-doc/classServerConfig.html | 1512 ++++++++++++++++ docs/module-doc/classServerConfig__coll__graph.gif | Bin 0 -> 14101 bytes docs/module-doc/classServerConfig__coll__graph.map | 2 + docs/module-doc/classServerConfig__coll__graph.md5 | 1 + .../classServerConfig__inherit__graph.gif | Bin 0 -> 931 bytes .../classServerConfig__inherit__graph.map | 2 + .../classServerConfig__inherit__graph.md5 | 1 + docs/module-doc/classSocketEngine-members.html | 2 +- docs/module-doc/classSocketEngine.html | 101 +- 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 | 14 +- docs/module-doc/classZLine-members.html | 2 +- docs/module-doc/classZLine.html | 8 +- docs/module-doc/classchanrec-members.html | 2 +- docs/module-doc/classchanrec.html | 248 +-- docs/module-doc/classclassbase-members.html | 2 +- docs/module-doc/classclassbase.html | 27 +- docs/module-doc/classclassbase__inherit__graph.gif | Bin 8599 -> 9295 bytes docs/module-doc/classclassbase__inherit__graph.map | 25 +- docs/module-doc/classclassbase__inherit__graph.md5 | 2 +- docs/module-doc/classcommand__t-members.html | 2 +- docs/module-doc/classcommand__t.html | 2 +- docs/module-doc/classconnection-members.html | 2 +- docs/module-doc/classconnection.html | 30 +- docs/module-doc/classes.html | 28 +- docs/module-doc/classstd_1_1char__traits.html | 2 +- docs/module-doc/classucrec-members.html | 2 +- docs/module-doc/classucrec.html | 10 +- docs/module-doc/classuserrec-members.html | 4 +- docs/module-doc/classuserrec.html | 562 +++--- docs/module-doc/classuserrec__coll__graph.gif | Bin 13514 -> 13035 bytes docs/module-doc/classuserrec__coll__graph.map | 3 +- docs/module-doc/classuserrec__coll__graph.md5 | 2 +- docs/module-doc/commands_8h-source.html | 2 +- docs/module-doc/commands_8h.html | 6 +- docs/module-doc/connection_8h-source.html | 2 +- docs/module-doc/connection_8h.html | 20 +- docs/module-doc/connection_8h__dep__incl.gif | Bin 4779 -> 6534 bytes docs/module-doc/connection_8h__dep__incl.map | 18 +- docs/module-doc/connection_8h__dep__incl.md5 | 2 +- docs/module-doc/ctables_8h-source.html | 2 +- docs/module-doc/ctables_8h.html | 7 +- docs/module-doc/ctables_8h__dep__incl.gif | Bin 1704 -> 2532 bytes docs/module-doc/ctables_8h__dep__incl.map | 5 +- docs/module-doc/ctables_8h__dep__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 | 2 +- docs/module-doc/dir_000003_dep.gif | Bin 2131 -> 2111 bytes docs/module-doc/dir_000004.html | 8 +- docs/module-doc/dir_000005.html | 2 +- docs/module-doc/dir_000005_000004.html | 2 +- docs/module-doc/dir_000005_dep.gif | Bin 1350 -> 1342 bytes 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 | 5 +- docs/module-doc/functions.html | 13 +- docs/module-doc/functions_0x62.html | 2 +- docs/module-doc/functions_0x63.html | 18 +- docs/module-doc/functions_0x64.html | 15 +- docs/module-doc/functions_0x65.html | 8 +- docs/module-doc/functions_0x66.html | 5 +- docs/module-doc/functions_0x67.html | 2 +- docs/module-doc/functions_0x68.html | 2 +- docs/module-doc/functions_0x69.html | 11 +- docs/module-doc/functions_0x6a.html | 2 +- docs/module-doc/functions_0x6b.html | 2 +- docs/module-doc/functions_0x6c.html | 9 +- docs/module-doc/functions_0x6d.html | 17 +- docs/module-doc/functions_0x6e.html | 9 +- docs/module-doc/functions_0x6f.html | 2 +- docs/module-doc/functions_0x70.html | 8 +- docs/module-doc/functions_0x71.html | 2 +- docs/module-doc/functions_0x72.html | 12 +- docs/module-doc/functions_0x73.html | 10 +- docs/module-doc/functions_0x74.html | 8 +- 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 | 10 +- docs/module-doc/functions_func_0x64.html | 2 +- docs/module-doc/functions_func_0x65.html | 8 +- docs/module-doc/functions_func_0x66.html | 5 +- docs/module-doc/functions_func_0x67.html | 2 +- docs/module-doc/functions_func_0x68.html | 2 +- docs/module-doc/functions_func_0x69.html | 2 +- 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 | 2 +- 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 | 86 +- docs/module-doc/globals.html | 16 +- docs/module-doc/globals_0x62.html | 5 +- docs/module-doc/globals_0x63.html | 15 +- docs/module-doc/globals_0x64.html | 18 +- docs/module-doc/globals_0x65.html | 9 +- docs/module-doc/globals_0x66.html | 5 +- docs/module-doc/globals_0x67.html | 2 +- docs/module-doc/globals_0x68.html | 2 +- docs/module-doc/globals_0x69.html | 5 +- docs/module-doc/globals_0x6c.html | 8 +- docs/module-doc/globals_0x6d.html | 12 +- docs/module-doc/globals_0x6e.html | 9 +- docs/module-doc/globals_0x6f.html | 8 +- docs/module-doc/globals_0x70.html | 10 +- docs/module-doc/globals_0x71.html | 2 +- docs/module-doc/globals_0x72.html | 7 +- docs/module-doc/globals_0x73.html | 11 +- docs/module-doc/globals_0x74.html | 2 +- docs/module-doc/globals_0x75.html | 7 +- docs/module-doc/globals_0x76.html | 4 +- docs/module-doc/globals_0x77.html | 7 +- docs/module-doc/globals_0x78.html | 2 +- docs/module-doc/globals_0x7a.html | 2 +- docs/module-doc/globals_defs.html | 12 +- docs/module-doc/globals_enum.html | 2 +- docs/module-doc/globals_eval.html | 2 +- docs/module-doc/globals_func.html | 41 +- docs/module-doc/globals_type.html | 19 +- docs/module-doc/globals_vars.html | 66 +- 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 800 -> 1287 bytes docs/module-doc/hashcomp_8h__dep__incl.map | 3 +- docs/module-doc/hashcomp_8h__dep__incl.md5 | 2 +- docs/module-doc/hierarchy.html | 3 +- docs/module-doc/inherit__graph__2.gif | Bin 12906 -> 13638 bytes docs/module-doc/inherit__graph__2.map | 19 +- docs/module-doc/inherit__graph__2.md5 | 2 +- docs/module-doc/inherits.html | 21 +- docs/module-doc/inspircd__io_8h-source.html | 120 ++ docs/module-doc/inspircd__io_8h.html | 420 +++++ docs/module-doc/inspircd__io_8h__dep__incl.gif | Bin 0 -> 1630 bytes docs/module-doc/inspircd__io_8h__dep__incl.map | 4 + docs/module-doc/inspircd__io_8h__dep__incl.md5 | 1 + docs/module-doc/inspircd__io_8h__incl.gif | Bin 0 -> 2262 bytes docs/module-doc/inspircd__io_8h__incl.map | 1 + docs/module-doc/inspircd__io_8h__incl.md5 | 1 + docs/module-doc/main.html | 2 +- docs/module-doc/message_8h-source.html | 4 +- docs/module-doc/message_8h.html | 18 +- docs/module-doc/mode_8h-source.html | 2 +- docs/module-doc/mode_8h.html | 4 +- docs/module-doc/modules_8cpp-source.html | 1798 ++++++++++---------- docs/module-doc/modules_8cpp.html | 1089 ++---------- docs/module-doc/modules_8cpp__incl.gif | Bin 33715 -> 42289 bytes docs/module-doc/modules_8cpp__incl.map | 22 +- docs/module-doc/modules_8cpp__incl.md5 | 2 +- docs/module-doc/modules_8h-source.html | 698 ++++---- docs/module-doc/modules_8h.html | 48 +- docs/module-doc/modules_8h__dep__incl.gif | Bin 1182 -> 1765 bytes docs/module-doc/modules_8h__dep__incl.map | 5 +- docs/module-doc/modules_8h__dep__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 | 427 ++--- docs/module-doc/socket_8cpp.html | 73 +- docs/module-doc/socket_8cpp__incl.gif | Bin 13433 -> 14200 bytes docs/module-doc/socket_8cpp__incl.map | 5 +- docs/module-doc/socket_8cpp__incl.md5 | 2 +- docs/module-doc/socket_8h-source.html | 2 +- docs/module-doc/socket_8h.html | 7 +- docs/module-doc/socket_8h__dep__incl.gif | Bin 1971 -> 2605 bytes docs/module-doc/socket_8h__dep__incl.map | 5 +- docs/module-doc/socket_8h__dep__incl.md5 | 2 +- docs/module-doc/socketengine_8cpp-source.html | 91 +- docs/module-doc/socketengine_8cpp.html | 2 +- docs/module-doc/socketengine_8h-source.html | 2 +- docs/module-doc/socketengine_8h.html | 4 +- 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 | 5 + docs/module-doc/typedefs_8h-source.html | 43 + docs/module-doc/typedefs_8h.html | 272 +++ docs/module-doc/typedefs_8h__dep__incl.gif | Bin 0 -> 789 bytes docs/module-doc/typedefs_8h__dep__incl.map | 2 + docs/module-doc/typedefs_8h__dep__incl.md5 | 1 + docs/module-doc/typedefs_8h__incl.gif | Bin 0 -> 8687 bytes docs/module-doc/typedefs_8h__incl.map | 6 + docs/module-doc/typedefs_8h__incl.md5 | 1 + docs/module-doc/userprocess_8h-source.html | 27 + docs/module-doc/userprocess_8h.html | 216 +++ docs/module-doc/userprocess_8h__incl.gif | Bin 0 -> 3356 bytes docs/module-doc/userprocess_8h__incl.map | 4 + docs/module-doc/userprocess_8h__incl.md5 | 1 + docs/module-doc/users_8cpp-source.html | 535 +++--- docs/module-doc/users_8cpp.html | 33 +- docs/module-doc/users_8h-source.html | 4 +- docs/module-doc/users_8h.html | 18 +- docs/module-doc/users_8h__dep__incl.gif | Bin 4034 -> 5255 bytes docs/module-doc/users_8h__dep__incl.map | 16 +- docs/module-doc/users_8h__dep__incl.md5 | 2 +- docs/module-doc/xline_8h-source.html | 181 +- docs/module-doc/xline_8h.html | 166 +- 370 files changed, 9291 insertions(+), 7520 deletions(-) create mode 100644 docs/man/man3/ServerConfig.3 create mode 100644 docs/man/man3/inspircd_io.h.3 create mode 100644 docs/man/man3/typedefs.h.3 create mode 100644 docs/man/man3/userprocess.h.3 create mode 100644 docs/module-doc/classServerConfig-members.html create mode 100644 docs/module-doc/classServerConfig.html create mode 100644 docs/module-doc/classServerConfig__coll__graph.gif create mode 100644 docs/module-doc/classServerConfig__coll__graph.map create mode 100644 docs/module-doc/classServerConfig__coll__graph.md5 create mode 100644 docs/module-doc/classServerConfig__inherit__graph.gif create mode 100644 docs/module-doc/classServerConfig__inherit__graph.map create mode 100644 docs/module-doc/classServerConfig__inherit__graph.md5 create mode 100644 docs/module-doc/inspircd__io_8h-source.html create mode 100644 docs/module-doc/inspircd__io_8h.html create mode 100644 docs/module-doc/inspircd__io_8h__dep__incl.gif create mode 100644 docs/module-doc/inspircd__io_8h__dep__incl.map create mode 100644 docs/module-doc/inspircd__io_8h__dep__incl.md5 create mode 100644 docs/module-doc/inspircd__io_8h__incl.gif create mode 100644 docs/module-doc/inspircd__io_8h__incl.map create mode 100644 docs/module-doc/inspircd__io_8h__incl.md5 create mode 100644 docs/module-doc/typedefs_8h-source.html create mode 100644 docs/module-doc/typedefs_8h.html create mode 100644 docs/module-doc/typedefs_8h__dep__incl.gif create mode 100644 docs/module-doc/typedefs_8h__dep__incl.map create mode 100644 docs/module-doc/typedefs_8h__dep__incl.md5 create mode 100644 docs/module-doc/typedefs_8h__incl.gif create mode 100644 docs/module-doc/typedefs_8h__incl.map create mode 100644 docs/module-doc/typedefs_8h__incl.md5 create mode 100644 docs/module-doc/userprocess_8h-source.html create mode 100644 docs/module-doc/userprocess_8h.html create mode 100644 docs/module-doc/userprocess_8h__incl.gif create mode 100644 docs/module-doc/userprocess_8h__incl.map create mode 100644 docs/module-doc/userprocess_8h__incl.md5 (limited to 'docs') diff --git a/docs/man/man3/Admin.3 b/docs/man/man3/Admin.3 index f950ffbf8..31a231609 100644 --- a/docs/man/man3/Admin.3 +++ b/docs/man/man3/Admin.3 @@ -1,4 +1,4 @@ -.TH "Admin" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Admin" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -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 244 of file modules.cpp. +Definition at line 171 of file modules.cpp. .PP .nf -244 : Name(name), Email(email), Nick(nick) { }; +171 : 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 cbd5e52e0..ae351b6a6 100644 --- a/docs/man/man3/BanItem.3 +++ b/docs/man/man3/BanItem.3 @@ -1,4 +1,4 @@ -.TH "BanItem" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "BanItem" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/BoolSet.3 b/docs/man/man3/BoolSet.3 index 78ecd755f..219d7e913 100644 --- a/docs/man/man3/BoolSet.3 +++ b/docs/man/man3/BoolSet.3 @@ -1,4 +1,4 @@ -.TH "BoolSet" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "BoolSet" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ConfigReader.3 b/docs/man/man3/ConfigReader.3 index bc4f7caa3..009733cae 100644 --- a/docs/man/man3/ConfigReader.3 +++ b/docs/man/man3/ConfigReader.3 @@ -1,4 +1,4 @@ -.TH "ConfigReader" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ConfigReader" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -84,7 +84,7 @@ Allows reading of values from configuration files This class allows a module to It may either be instantiated with one parameter or none. Constructing the class using one parameter allows you to specify a path to your own configuration file, otherwise, inspircd.conf is read. .PP -Definition at line 1510 of file modules.h. +Definition at line 1525 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "ConfigReader::ConfigReader ()" @@ -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 807 of file modules.cpp. +Definition at line 734 of file modules.cpp. .PP -References cache, CONF_FILE_NOT_FOUND, error, errorlog, include_stack, and readerror. +References cache, ServerConfig::ClearStack(), CONF_FILE_NOT_FOUND, error, errorlog, ServerConfig::LoadConf(), and readerror. .PP .nf -808 { -809 include_stack.clear(); -810 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -811 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -812 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -813 if (!this->readerror) -814 this->error = CONF_FILE_NOT_FOUND; -815 } +735 { +736 Config->ClearStack(); +737 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +738 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +739 this->readerror = Config->LoadConf(CONFIG_FILE,this->cache,this->errorlog); +740 if (!this->readerror) +741 this->error = CONF_FILE_NOT_FOUND; +742 } .fi .PP .SS "ConfigReader::ConfigReader (\fBstd::string\fP filename)" @@ -114,18 +114,19 @@ Overloaded constructor. .PP This constructor initialises the ConfigReader class to read a user-specified config file .PP -Definition at line 827 of file modules.cpp. +Definition at line 754 of file modules.cpp. .PP -References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror. +References cache, ServerConfig::ClearStack(), CONF_FILE_NOT_FOUND, error, errorlog, ServerConfig::LoadConf(), and readerror. .PP .nf -828 { -829 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -830 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -831 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -832 if (!this->readerror) -833 this->error = CONF_FILE_NOT_FOUND; -834 }; +755 { +756 Config->ClearStack(); +757 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +758 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +759 this->readerror = Config->LoadConf(filename.c_str(),this->cache,this->errorlog); +760 if (!this->readerror) +761 this->error = CONF_FILE_NOT_FOUND; +762 }; .fi .PP .SS "ConfigReader::~ConfigReader ()" @@ -134,17 +135,17 @@ Default destructor. .PP This method destroys the ConfigReader class. .PP -Definition at line 818 of file modules.cpp. +Definition at line 745 of file modules.cpp. .PP References cache, and errorlog. .PP .nf -819 { -820 if (this->cache) -821 delete this->cache; -822 if (this->errorlog) -823 delete this->errorlog; -824 } +746 { +747 if (this->cache) +748 delete this->cache; +749 if (this->errorlog) +750 delete this->errorlog; +751 } .fi .PP .SH "Member Function Documentation" @@ -155,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 905 of file modules.cpp. +Definition at line 833 of file modules.cpp. .PP References errorlog, connection::fd, and userrec::nick. .PP .nf -906 { -907 if (bail) -908 { -909 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); -910 exit(0); -911 } -912 else -913 { -914 char dataline[1024]; -915 if (user) -916 { -917 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); -918 while (!errorlog->eof()) -919 { -920 errorlog->getline(dataline,1024); -921 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); -922 } -923 } -924 else -925 { -926 WriteOpers('There were errors in the configuration file:',user->nick); -927 while (!errorlog->eof()) -928 { -929 errorlog->getline(dataline,1024); -930 WriteOpers(dataline); -931 } -932 } -933 return; -934 } -935 } +834 { +835 if (bail) +836 { +837 printf('There were errors in your configuration:\n%s',errorlog->str().c_str()); +838 exit(0); +839 } +840 else +841 { +842 char dataline[1024]; +843 if (user) +844 { +845 WriteServ(user->fd,'NOTICE %s :There were errors in the configuration file:',user->nick); +846 while (!errorlog->eof()) +847 { +848 errorlog->getline(dataline,1024); +849 WriteServ(user->fd,'NOTICE %s :%s',user->nick,dataline); +850 } +851 } +852 else +853 { +854 WriteOpers('There were errors in the configuration file:',user->nick); +855 while (!errorlog->eof()) +856 { +857 errorlog->getline(dataline,1024); +858 WriteOpers(dataline); +859 } +860 } +861 return; +862 } +863 } .fi .PP .SS "int ConfigReader::Enumerate (\fBstd::string\fP tag)" @@ -198,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 938 of file modules.cpp. +Definition at line 866 of file modules.cpp. .PP -References cache. +References cache, and ServerConfig::EnumConf(). .PP .nf -939 { -940 return EnumConf(cache,tag.c_str()); -941 } +867 { +868 return Config->EnumConf(cache,tag.c_str()); +869 } .fi .PP .SS "int ConfigReader::EnumerateValues (\fBstd::string\fP tag, int index)" @@ -214,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 943 of file modules.cpp. +Definition at line 871 of file modules.cpp. .PP -References cache. +References cache, and ServerConfig::EnumValues(). .PP .nf -944 { -945 return EnumValues(cache, tag.c_str(), index); -946 } +872 { +873 return Config->EnumValues(cache, tag.c_str(), index); +874 } .fi .PP .SS "long ConfigReader::GetError ()" @@ -230,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 898 of file modules.cpp. +Definition at line 826 of file modules.cpp. .PP References error. .PP .nf -899 { -900 long olderr = this->error; -901 this->error = 0; -902 return olderr; -903 } +827 { +828 long olderr = this->error; +829 this->error = 0; +830 return olderr; +831 } .fi .PP .SS "bool ConfigReader::ReadFlag (\fBstd::string\fP tag, \fBstd::string\fP name, int index)" @@ -248,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 852 of file modules.cpp. +Definition at line 780 of file modules.cpp. .PP -References cache, CONF_VALUE_NOT_FOUND, and error. +References cache, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf(). .PP .nf -853 { -854 char val[MAXBUF]; -855 char t[MAXBUF]; -856 char n[MAXBUF]; -857 strlcpy(t,tag.c_str(),MAXBUF); -858 strlcpy(n,name.c_str(),MAXBUF); -859 int res = ReadConf(cache,t,n,index,val); -860 if (!res) -861 { -862 this->error = CONF_VALUE_NOT_FOUND; -863 return false; -864 } -865 std::string s = val; -866 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); -867 } +781 { +782 char val[MAXBUF]; +783 char t[MAXBUF]; +784 char n[MAXBUF]; +785 strlcpy(t,tag.c_str(),MAXBUF); +786 strlcpy(n,name.c_str(),MAXBUF); +787 int res = Config->ReadConf(cache,t,n,index,val); +788 if (!res) +789 { +790 this->error = CONF_VALUE_NOT_FOUND; +791 return false; +792 } +793 std::string s = val; +794 return ((s == 'yes') || (s == 'YES') || (s == 'true') || (s == 'TRUE') || (s == '1')); +795 } .fi .PP .SS "long ConfigReader::ReadInteger (\fBstd::string\fP tag, \fBstd::string\fP name, int index, bool needs_unsigned)" @@ -276,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 869 of file modules.cpp. +Definition at line 797 of file modules.cpp. .PP -References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error. +References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf(). .PP .nf -870 { -871 char val[MAXBUF]; -872 char t[MAXBUF]; -873 char n[MAXBUF]; -874 strlcpy(t,tag.c_str(),MAXBUF); -875 strlcpy(n,name.c_str(),MAXBUF); -876 int res = ReadConf(cache,t,n,index,val); -877 if (!res) -878 { -879 this->error = CONF_VALUE_NOT_FOUND; -880 return 0; -881 } -882 for (unsigned int i = 0; i < strlen(val); i++) -883 { -884 if (!isdigit(val[i])) -885 { -886 this->error = CONF_NOT_A_NUMBER; -887 return 0; -888 } -889 } -890 if ((needs_unsigned) && (atoi(val)<0)) -891 { -892 this->error = CONF_NOT_UNSIGNED; -893 return 0; -894 } -895 return atoi(val); -896 } +798 { +799 char val[MAXBUF]; +800 char t[MAXBUF]; +801 char n[MAXBUF]; +802 strlcpy(t,tag.c_str(),MAXBUF); +803 strlcpy(n,name.c_str(),MAXBUF); +804 int res = Config->ReadConf(cache,t,n,index,val); +805 if (!res) +806 { +807 this->error = CONF_VALUE_NOT_FOUND; +808 return 0; +809 } +810 for (unsigned int i = 0; i < strlen(val); i++) +811 { +812 if (!isdigit(val[i])) +813 { +814 this->error = CONF_NOT_A_NUMBER; +815 return 0; +816 } +817 } +818 if ((needs_unsigned) && (atoi(val)<0)) +819 { +820 this->error = CONF_NOT_UNSIGNED; +821 return 0; +822 } +823 return atoi(val); +824 } .fi .PP .SS "\fBstd::string\fP ConfigReader::ReadValue (\fBstd::string\fP tag, \fBstd::string\fP name, int index)" @@ -316,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 836 of file modules.cpp. +Definition at line 764 of file modules.cpp. .PP -References cache, CONF_VALUE_NOT_FOUND, and error. +References cache, CONF_VALUE_NOT_FOUND, error, and ServerConfig::ReadConf(). .PP .nf -837 { -838 char val[MAXBUF]; -839 char t[MAXBUF]; -840 char n[MAXBUF]; -841 strlcpy(t,tag.c_str(),MAXBUF); -842 strlcpy(n,name.c_str(),MAXBUF); -843 int res = ReadConf(cache,t,n,index,val); -844 if (!res) -845 { -846 this->error = CONF_VALUE_NOT_FOUND; -847 return ''; -848 } -849 return val; -850 } +765 { +766 char val[MAXBUF]; +767 char t[MAXBUF]; +768 char n[MAXBUF]; +769 strlcpy(t,tag.c_str(),MAXBUF); +770 strlcpy(n,name.c_str(),MAXBUF); +771 int res = Config->ReadConf(cache,t,n,index,val); +772 if (!res) +773 { +774 this->error = CONF_VALUE_NOT_FOUND; +775 return ''; +776 } +777 return val; +778 } .fi .PP .SS "bool ConfigReader::Verify ()" @@ -343,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 948 of file modules.cpp. +Definition at line 876 of file modules.cpp. .PP References readerror. .PP .nf -949 { -950 return this->readerror; -951 } +877 { +878 return this->readerror; +879 } .fi .PP .SH "Member Data Documentation" @@ -361,24 +362,24 @@ The contents of the configuration file This protected member should never be acc .PP It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it. .PP -Definition at line 1518 of file modules.h. +Definition at line 1533 of file modules.h. .PP Referenced by ConfigReader(), Enumerate(), EnumerateValues(), ReadFlag(), ReadInteger(), ReadValue(), and ~ConfigReader(). .SS "long \fBConfigReader::error\fP\fC [protected]\fP" .PP -Definition at line 1523 of file modules.h. +Definition at line 1538 of file modules.h. .PP Referenced by ConfigReader(), GetError(), ReadFlag(), ReadInteger(), and ReadValue(). .SS "std::stringstream* \fBConfigReader::errorlog\fP\fC [protected]\fP" .PP -Definition at line 1519 of file modules.h. +Definition at line 1534 of file modules.h. .PP Referenced by ConfigReader(), DumpErrors(), and ~ConfigReader(). .SS "bool \fBConfigReader::readerror\fP\fC [protected]\fP" .PP Used to store errors. .PP -Definition at line 1522 of file modules.h. +Definition at line 1537 of file modules.h. .PP Referenced by ConfigReader(), and Verify(). diff --git a/docs/man/man3/ConnectClass.3 b/docs/man/man3/ConnectClass.3 index ae23d9973..f4c5bbab4 100644 --- a/docs/man/man3/ConnectClass.3 +++ b/docs/man/man3/ConnectClass.3 @@ -1,4 +1,4 @@ -.TH "ConnectClass" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ConnectClass" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/DNS.3 b/docs/man/man3/DNS.3 index d88cb6f54..20f26f893 100644 --- a/docs/man/man3/DNS.3 +++ b/docs/man/man3/DNS.3 @@ -1,4 +1,4 @@ -.TH "DNS" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "DNS" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ELine.3 b/docs/man/man3/ELine.3 index 7152c62e3..2ecbb46ac 100644 --- a/docs/man/man3/ELine.3 +++ b/docs/man/man3/ELine.3 @@ -1,4 +1,4 @@ -.TH "ELine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ELine" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -20,14 +20,14 @@ Inherits \fBXLine\fP. .in -1c .SH "Detailed Description" .PP -Definition at line 82 of file xline.h. +Definition at line 87 of file xline.h. .SH "Member Data Documentation" .PP .SS "char \fBELine::hostmask\fP[200]" .PP Hostmask (ident) to match against May contain wildcards. .PP -Definition at line 88 of file xline.h. +Definition at line 93 of file xline.h. .SH "Author" .PP diff --git a/docs/man/man3/Event.3 b/docs/man/man3/Event.3 index 45e6444b8..d47289f04 100644 --- a/docs/man/man3/Event.3 +++ b/docs/man/man3/Event.3 @@ -1,4 +1,4 @@ -.TH "Event" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Event" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -65,10 +65,10 @@ Definition at line 197 of file modules.h. .PP Create a new Event. .PP -Definition at line 275 of file modules.cpp. +Definition at line 202 of file modules.cpp. .PP .nf -275 : data(anydata), source(src), id(eventid) { }; +202 : data(anydata), source(src), id(eventid) { }; .fi .PP .SH "Member Function Documentation" @@ -77,14 +77,14 @@ Definition at line 275 of file modules.cpp. .PP Get the Event data. .PP -Definition at line 277 of file modules.cpp. +Definition at line 204 of file modules.cpp. .PP References data. .PP .nf -278 { -279 return this->data; -280 } +205 { +206 return this->data; +207 } .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 293 of file modules.cpp. +Definition at line 220 of file modules.cpp. .PP References id. .PP .nf -294 { -295 return this->id; -296 } +221 { +222 return this->id; +223 } .fi .PP .SS "\fBModule\fP * Event::GetSource ()" .PP Get the event Source. .PP -Definition at line 282 of file modules.cpp. +Definition at line 209 of file modules.cpp. .PP References source. .PP .nf -283 { -284 return this->source; -285 } +210 { +211 return this->source; +212 } .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 287 of file modules.cpp. +Definition at line 214 of file modules.cpp. .PP References FOREACH_MOD. .PP .nf -288 { -289 FOREACH_MOD OnEvent(this); -290 return NULL; -291 } +215 { +216 FOREACH_MOD OnEvent(this); +217 return NULL; +218 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/ExemptItem.3 b/docs/man/man3/ExemptItem.3 index 75486b5a5..2420d3566 100644 --- a/docs/man/man3/ExemptItem.3 +++ b/docs/man/man3/ExemptItem.3 @@ -1,4 +1,4 @@ -.TH "ExemptItem" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ExemptItem" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ExtMode.3 b/docs/man/man3/ExtMode.3 index 367d3557d..3769c5758 100644 --- a/docs/man/man3/ExtMode.3 +++ b/docs/man/man3/ExtMode.3 @@ -1,11 +1,15 @@ -.TH "ExtMode" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ExtMode" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME -ExtMode \- +ExtMode \- Holds an extended mode's details. + +.PP .SH SYNOPSIS .br .PP +\fC#include \fP +.PP Inherits \fBclassbase\fP. .PP .SS "Public Member Functions" @@ -39,37 +43,41 @@ Inherits \fBclassbase\fP. .in -1c .SH "Detailed Description" .PP -Definition at line 133 of file modules.cpp. +Holds an extended mode's details. + +Used internally by \fBmodules.cpp\fP +.PP +Definition at line 236 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "ExtMode::ExtMode (char mc, int ty, bool oper, int p_on, int p_off)\fC [inline]\fP" .PP -Definition at line 142 of file modules.cpp. +Definition at line 245 of file modules.h. .PP .nf -142 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; +245 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; .fi .PP .SH "Member Data Documentation" .PP .SS "bool \fBExtMode::list\fP" .PP -Definition at line 141 of file modules.cpp. +Definition at line 244 of file modules.h. .SS "char \fBExtMode::modechar\fP" .PP -Definition at line 136 of file modules.cpp. +Definition at line 239 of file modules.h. .SS "bool \fBExtMode::needsoper\fP" .PP -Definition at line 138 of file modules.cpp. +Definition at line 241 of file modules.h. .SS "int \fBExtMode::params_when_off\fP" .PP -Definition at line 140 of file modules.cpp. +Definition at line 243 of file modules.h. .SS "int \fBExtMode::params_when_on\fP" .PP -Definition at line 139 of file modules.cpp. +Definition at line 242 of file modules.h. .SS "int \fBExtMode::type\fP" .PP -Definition at line 137 of file modules.cpp. +Definition at line 240 of file modules.h. .SH "Author" .PP diff --git a/docs/man/man3/Extensible.3 b/docs/man/man3/Extensible.3 index 4cdb11d5d..6ec3819c7 100644 --- a/docs/man/man3/Extensible.3 +++ b/docs/man/man3/Extensible.3 @@ -1,4 +1,4 @@ -.TH "Extensible" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Extensible" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -30,7 +30,7 @@ Inherited by \fBchanrec\fP, \fBcommand_t\fP, and \fBconnection\fP. .br .RI "\fIGet an extension item. \fP" .ti -1c -.RI "void \fBGetExtList\fP (std::deque< \fBstd::string\fP > &\fBlist\fP)" +.RI "void \fBGetExtList\fP (std::deque< \fBstd::string\fP > &list)" .br .RI "\fIGet a list of all extension items names. \fP" .in -1c diff --git a/docs/man/man3/FileReader.3 b/docs/man/man3/FileReader.3 index bf779fb9e..05fbaae25 100644 --- a/docs/man/man3/FileReader.3 +++ b/docs/man/man3/FileReader.3 @@ -1,4 +1,4 @@ -.TH "FileReader" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "FileReader" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -57,7 +57,7 @@ Caches a text file into memory and can be used to retrieve lines from it. This class contains methods for read-only manipulation of a text file in memory. Either use the constructor type with one parameter to load a file into memory at construction, or use the LoadFile method to load a file. .PP -Definition at line 1599 of file modules.h. +Definition at line 1614 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "FileReader::FileReader ()" @@ -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 961 of file modules.cpp. +Definition at line 889 of file modules.cpp. .PP .nf -962 { -963 } +890 { +891 } .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 954 of file modules.cpp. +Definition at line 882 of file modules.cpp. .PP References fc. .PP .nf -955 { -956 file_cache c; -957 readfile(c,filename.c_str()); -958 this->fc = c; -959 } +883 { +884 file_cache c; +885 readfile(c,filename.c_str()); +886 this->fc = c; +887 } .fi .PP .SS "FileReader::~FileReader ()" @@ -97,11 +97,11 @@ Default destructor. .PP This deletes the memory allocated to the file. .PP -Definition at line 973 of file modules.cpp. +Definition at line 901 of file modules.cpp. .PP .nf -974 { -975 } +902 { +903 } .fi .PP .SH "Member Function Documentation" @@ -110,21 +110,21 @@ Definition at line 973 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 977 of file modules.cpp. +Definition at line 905 of file modules.cpp. .PP References fc. .PP .nf -978 { -979 if (fc.size() == 0) -980 { -981 return(false); -982 } -983 else -984 { -985 return(true); -986 } -987 } +906 { +907 if (fc.size() == 0) +908 { +909 return(false); +910 } +911 else +912 { +913 return(true); +914 } +915 } .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 996 of file modules.cpp. +Definition at line 924 of file modules.cpp. .PP References fc. .PP .nf -997 { -998 return fc.size(); -999 } +925 { +926 return fc.size(); +927 } .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 989 of file modules.cpp. +Definition at line 917 of file modules.cpp. .PP References fc. .PP .nf -990 { -991 if ((x<0) || ((unsigned)x>fc.size())) -992 return ''; -993 return fc[x]; -994 } +918 { +919 if ((x<0) || ((unsigned)x>fc.size())) +920 return ''; +921 return fc[x]; +922 } .fi .PP .SS "void FileReader::LoadFile (\fBstd::string\fP filename)" @@ -167,23 +167,23 @@ 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 965 of file modules.cpp. +Definition at line 893 of file modules.cpp. .PP References fc. .PP .nf -966 { -967 file_cache c; -968 readfile(c,filename.c_str()); -969 this->fc = c; -970 } +894 { +895 file_cache c; +896 readfile(c,filename.c_str()); +897 this->fc = c; +898 } .fi .PP .SH "Member Data Documentation" .PP .SS "\fBfile_cache\fP \fBFileReader::fc\fP\fC [private]\fP" .PP -Definition at line 1601 of file modules.h. +Definition at line 1616 of file modules.h. .PP Referenced by Exists(), FileReader(), FileSize(), GetLine(), and LoadFile(). diff --git a/docs/man/man3/GLine.3 b/docs/man/man3/GLine.3 index 039de05ee..ce80b2e36 100644 --- a/docs/man/man3/GLine.3 +++ b/docs/man/man3/GLine.3 @@ -1,4 +1,4 @@ -.TH "GLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "GLine" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -24,14 +24,14 @@ Inherits \fBXLine\fP. .PP GLine class. .PP -Definition at line 73 of file xline.h. +Definition at line 78 of file xline.h. .SH "Member Data Documentation" .PP .SS "char \fBGLine::hostmask\fP[200]" .PP Hostmask (ident) to match against May contain wildcards. .PP -Definition at line 79 of file xline.h. +Definition at line 84 of file xline.h. .SH "Author" .PP diff --git a/docs/man/man3/HostItem.3 b/docs/man/man3/HostItem.3 index 9adfeb7d4..0862d378e 100644 --- a/docs/man/man3/HostItem.3 +++ b/docs/man/man3/HostItem.3 @@ -1,4 +1,4 @@ -.TH "HostItem" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "HostItem" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/InspSocket.3 b/docs/man/man3/InspSocket.3 index 63f2475d6..fc39dc8e6 100644 --- a/docs/man/man3/InspSocket.3 +++ b/docs/man/man3/InspSocket.3 @@ -1,4 +1,4 @@ -.TH "InspSocket" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "InspSocket" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -163,14 +163,14 @@ Definition at line 47 of file socket.h. .PP The default constructor does nothing and should not be used. .PP -Definition at line 49 of file socket.cpp. +Definition at line 48 of file socket.cpp. .PP References I_DISCONNECTED, and state. .PP .nf -50 { -51 this->state = I_DISCONNECTED; -52 } +49 { +50 this->state = I_DISCONNECTED; +51 } .fi .PP .SS "InspSocket::InspSocket (int newfd, char * ip)" @@ -179,16 +179,17 @@ This constructor is used to associate an existing connecting with an InspSocket .PP The given file descriptor must be valid, and when initialized, the InspSocket will be set with the given IP address and placed in CONNECTED state. .PP -Definition at line 54 of file socket.cpp. +Definition at line 53 of file socket.cpp. .PP References SocketEngine::AddFd(), fd, I_CONNECTED, IP, state, and X_ESTAB_MODULE. .PP .nf -55 { -56 this->fd = newfd; -57 this->state = I_CONNECTED; -58 this->IP = ip; -59 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +54 { +55 this->fd = newfd; +56 this->state = I_CONNECTED; +57 this->IP = ip; +58 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +59 socket_ref[this->fd] = this; 60 } .fi .PP @@ -211,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, Close(), DEBUG, fd, I_CONNECTING, I_ERR_BIND, I_ERR_CONNECT, I_ERR_SOCKET, I_ERROR, I_LISTENING, IP, OnError(), state, timeout, timeout_end, and X_ESTAB_MODULE. +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. .PP .nf 63 { @@ -239,70 +240,72 @@ References SocketEngine::AddFd(), addr, addy, Close(), DEBUG, fd, I_CONNECTING, 85 { 86 this->state = I_LISTENING; 87 SE->AddFd(this->fd,true,X_ESTAB_MODULE); -88 log(DEBUG,'New socket now in I_LISTENING state'); -89 return; -90 } -91 } -92 } else { -93 char* ip; -94 this->host = host; -95 hostent* hoste = gethostbyname(host.c_str()); -96 if (!hoste) { -97 ip = (char*)host.c_str(); -98 } else { -99 struct in_addr* ia = (in_addr*)hoste->h_addr; -100 ip = inet_ntoa(*ia); -101 } -102 -103 this->IP = ip; -104 -105 timeout_end = time(NULL)+maxtime; -106 timeout = false; -107 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) -108 { -109 this->state = I_ERROR; -110 this->OnError(I_ERR_SOCKET); -111 return; -112 } -113 this->port = port; -114 inet_aton(ip,&addy); -115 addr.sin_family = AF_INET; -116 addr.sin_addr = addy; -117 addr.sin_port = htons(this->port); -118 -119 int flags; -120 flags = fcntl(this->fd, F_GETFL, 0); -121 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK); -122 -123 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1) -124 { -125 if (errno != EINPROGRESS) -126 { -127 this->Close(); -128 this->OnError(I_ERR_CONNECT); -129 this->state = I_ERROR; -130 return; -131 } -132 } -133 this->state = I_CONNECTING; -134 SE->AddFd(this->fd,false,X_ESTAB_MODULE); -135 return; -136 } -137 } +88 socket_ref[this->fd] = this; +89 log(DEBUG,'New socket now in I_LISTENING state'); +90 return; +91 } +92 } +93 } else { +94 char* ip; +95 this->host = host; +96 hostent* hoste = gethostbyname(host.c_str()); +97 if (!hoste) { +98 ip = (char*)host.c_str(); +99 } else { +100 struct in_addr* ia = (in_addr*)hoste->h_addr; +101 ip = inet_ntoa(*ia); +102 } +103 +104 this->IP = ip; +105 +106 timeout_end = time(NULL)+maxtime; +107 timeout = false; +108 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) +109 { +110 this->state = I_ERROR; +111 this->OnError(I_ERR_SOCKET); +112 return; +113 } +114 this->port = port; +115 inet_aton(ip,&addy); +116 addr.sin_family = AF_INET; +117 addr.sin_addr = addy; +118 addr.sin_port = htons(this->port); +119 +120 int flags; +121 flags = fcntl(this->fd, F_GETFL, 0); +122 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK); +123 +124 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1) +125 { +126 if (errno != EINPROGRESS) +127 { +128 this->Close(); +129 this->OnError(I_ERR_CONNECT); +130 this->state = I_ERROR; +131 return; +132 } +133 } +134 this->state = I_CONNECTING; +135 SE->AddFd(this->fd,false,X_ESTAB_MODULE); +136 socket_ref[this->fd] = this; +137 return; +138 } +139 } .fi .PP .SS "InspSocket::~InspSocket ()\fC [virtual]\fP" .PP The destructor may implicitly call \fBOnClose()\fP, and will close() and shutdown() the file descriptor used for this socket. .PP -Definition at line 269 of file socket.cpp. +Definition at line 272 of file socket.cpp. .PP References Close(). .PP .nf -270 { -271 this->Close(); -272 } +273 { +274 this->Close(); +275 } .fi .PP .SH "Member Function Documentation" @@ -311,64 +314,65 @@ References Close(). .PP This method causes the socket to close, and may also be triggered by other methods such as OnTimeout and OnError. .PP -Definition at line 139 of file socket.cpp. +Definition at line 141 of file socket.cpp. .PP References fd, and OnClose(). .PP Referenced by InspSocket(), and ~InspSocket(). .PP .nf -140 { -141 if (this->fd != -1) -142 { -143 this->OnClose(); -144 shutdown(this->fd,2); -145 close(this->fd); -146 this->fd = -1; -147 } -148 } +142 { +143 if (this->fd != -1) +144 { +145 this->OnClose(); +146 shutdown(this->fd,2); +147 close(this->fd); +148 socket_ref[this->fd] = NULL; +149 this->fd = -1; +150 } +151 } .fi .PP .SS "int InspSocket::GetFd ()" .PP This method returns the socket's file descriptor as assigned by the operating system, or -1 if no descriptor has been assigned. .PP -Definition at line 256 of file socket.cpp. +Definition at line 259 of file socket.cpp. .PP References fd. .PP .nf -257 { -258 return this->fd; -259 } +260 { +261 return this->fd; +262 } .fi .PP .SS "\fBstd::string\fP InspSocket::GetIP ()" .PP Returns the IP address associated with this connection, or an empty string if no IP address exists. .PP -Definition at line 150 of file socket.cpp. +Definition at line 153 of file socket.cpp. .PP References IP. .PP .nf -151 { -152 return this->IP; -153 } +154 { +155 return this->IP; +156 } .fi .PP .SS "\fBInspSocketState\fP InspSocket::GetState ()" .PP Returns the current socket state. .PP -Definition at line 251 of file socket.cpp. +Definition at line 254 of file socket.cpp. .PP References state. .PP .nf -252 { -253 return this->state; -254 } +255 { +256 return this->state; +257 } .fi .PP .SS "void InspSocket::OnClose ()\fC [virtual]\fP" @@ -377,12 +381,12 @@ Whenever close() is called, \fBOnClose()\fP will be called first. .PP Please note that this means OnClose will be called alongside \fBOnError()\fP, \fBOnTimeout()\fP, and \fBClose()\fP, and also when cancelling a listening socket by calling the destructor indirectly. .PP -Definition at line 267 of file socket.cpp. +Definition at line 270 of file socket.cpp. .PP Referenced by Close(). .PP .nf -267 { return; } +270 { return; } .fi .PP .SS "bool InspSocket::OnConnected ()\fC [virtual]\fP" @@ -396,12 +400,12 @@ false to abort the connection, true to continue .PP .PP -Definition at line 261 of file socket.cpp. +Definition at line 264 of file socket.cpp. .PP Referenced by Poll(). .PP .nf -261 { return true; } +264 { return true; } .fi .PP .SS "bool InspSocket::OnDataReady ()\fC [virtual]\fP" @@ -417,22 +421,22 @@ false to close the socket .PP .PP -Definition at line 265 of file socket.cpp. +Definition at line 268 of file socket.cpp. .PP Referenced by Poll(). .PP .nf -265 { return true; } +268 { return true; } .fi .PP .SS "int InspSocket::OnDisconnect ()\fC [virtual]\fP" .PP When an established connection is terminated, the OnDisconnect method is triggered. .PP -Definition at line 263 of file socket.cpp. +Definition at line 266 of file socket.cpp. .PP .nf -263 { return 0; } +266 { return 0; } .fi .PP .SS "void InspSocket::OnError (\fBInspSocketError\fP e)\fC [virtual]\fP" @@ -448,12 +452,12 @@ A closed socket in itself is not an error, however errors also generate close ev .PP .PP -Definition at line 262 of file socket.cpp. +Definition at line 265 of file socket.cpp. .PP Referenced by InspSocket(), and Timeout(). .PP .nf -262 { return; } +265 { return; } .fi .PP .SS "int InspSocket::OnIncomingConnection (int newfd, char * ip)\fC [virtual]\fP" @@ -466,12 +470,12 @@ MySocket* newsocket = new MySocket(newfd,ip); .PP Once you have done this, you can then associate the new socket with the core using \fBServer::AddSocket()\fP. .PP -Definition at line 264 of file socket.cpp. +Definition at line 267 of file socket.cpp. .PP Referenced by Poll(). .PP .nf -264 { return 0; } +267 { return 0; } .fi .PP .SS "void InspSocket::OnTimeout ()\fC [virtual]\fP" @@ -480,12 +484,12 @@ When an outbound connection fails, and the attempt times out, you will receive t .PP The mthod will trigger once maxtime secons are reached (as given in the constructor) just before the socket's descriptor is closed. .PP -Definition at line 266 of file socket.cpp. +Definition at line 269 of file socket.cpp. .PP Referenced by Timeout(). .PP .nf -266 { return; } +269 { return; } .fi .PP .SS "bool InspSocket::Poll ()" @@ -494,64 +498,64 @@ Only the core should call this function. .PP When called, it is assumed the socket is ready to read data, and the method call routes the event to the various methods of InspSocket for you to handle. This can also cause the socket's state to change. .PP -Definition at line 214 of file socket.cpp. +Definition at line 217 of file socket.cpp. .PP References SocketEngine::AddFd(), client, SocketEngine::DelFd(), I_CONNECTED, I_CONNECTING, I_LISTENING, length, OnConnected(), OnDataReady(), OnIncomingConnection(), SetState(), and X_ESTAB_MODULE. .PP .nf -215 { -216 int incoming = -1; -217 -218 switch (this->state) -219 { -220 case I_CONNECTING: -221 this->SetState(I_CONNECTED); -222 /* Our socket was in write-state, so delete it and re-add it -223 * in read-state. -224 */ -225 SE->DelFd(this->fd); -226 SE->AddFd(this->fd,true,X_ESTAB_MODULE); -227 return this->OnConnected(); -228 break; -229 case I_LISTENING: -230 length = sizeof (client); -231 incoming = accept (this->fd, (sockaddr*)&client,&length); -232 this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr)); -233 return true; -234 break; -235 case I_CONNECTED: -236 return this->OnDataReady(); +218 { +219 int incoming = -1; +220 +221 switch (this->state) +222 { +223 case I_CONNECTING: +224 this->SetState(I_CONNECTED); +225 /* Our socket was in write-state, so delete it and re-add it +226 * in read-state. +227 */ +228 SE->DelFd(this->fd); +229 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +230 return this->OnConnected(); +231 break; +232 case I_LISTENING: +233 length = sizeof (client); +234 incoming = accept (this->fd, (sockaddr*)&client,&length); +235 this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr)); +236 return true; 237 break; -238 default: -239 break; -240 } -241 -242 return true; -243 } +238 case I_CONNECTED: +239 return this->OnDataReady(); +240 break; +241 default: +242 break; +243 } +244 +245 return true; +246 } .fi .PP .SS "char * InspSocket::Read ()\fC [virtual]\fP" .PP Reads all pending bytes from the socket into a char* array which can be up to 16 kilobytes in length. .PP -Definition at line 155 of file socket.cpp. +Definition at line 158 of file socket.cpp. .PP References DEBUG, and ibuf. .PP .nf -156 { -157 int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0); -158 if (n > 0) -159 { -160 ibuf[n] = 0; -161 return ibuf; -162 } -163 else -164 { -165 log(DEBUG,'EOF or error on socket'); -166 return NULL; -167 } -168 } +159 { +160 int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0); +161 if (n > 0) +162 { +163 ibuf[n] = 0; +164 return ibuf; +165 } +166 else +167 { +168 log(DEBUG,'EOF or error on socket'); +169 return NULL; +170 } +171 } .fi .PP .SS "void InspSocket::SetState (\fBInspSocketState\fP s)" @@ -560,17 +564,17 @@ Changes the socket's state. .PP The core uses this to change socket states, and you should not call it directly. .PP -Definition at line 245 of file socket.cpp. +Definition at line 248 of file socket.cpp. .PP References DEBUG, and state. .PP Referenced by Poll(). .PP .nf -246 { -247 log(DEBUG,'Socket state change'); -248 this->state = s; -249 } +249 { +250 log(DEBUG,'Socket state change'); +251 this->state = s; +252 } .fi .PP .SS "bool InspSocket::Timeout (time_t current)" @@ -584,26 +588,26 @@ true if timed out, false if not timed out .PP .PP -Definition at line 197 of file socket.cpp. +Definition at line 200 of file socket.cpp. .PP References I_CONNECTING, I_ERR_TIMEOUT, I_ERROR, OnError(), OnTimeout(), state, timeout, and timeout_end. .PP .nf -198 { -199 if ((this->state == I_CONNECTING) && (current > timeout_end)) -200 { -201 // for non-listening sockets, the timeout can occur -202 // which causes termination of the connection after -203 // the given number of seconds without a successful -204 // connection. -205 this->OnTimeout(); -206 this->OnError(I_ERR_TIMEOUT); -207 timeout = true; -208 this->state = I_ERROR; -209 return true; -210 } -211 return false; -212 } +201 { +202 if ((this->state == I_CONNECTING) && (current > timeout_end)) +203 { +204 // for non-listening sockets, the timeout can occur +205 // which causes termination of the connection after +206 // the given number of seconds without a successful +207 // connection. +208 this->OnTimeout(); +209 this->OnError(I_ERR_TIMEOUT); +210 timeout = true; +211 this->state = I_ERROR; +212 return true; +213 } +214 return false; +215 } .fi .PP .SS "int InspSocket::Write (\fBstd::string\fP data)\fC [virtual]\fP" @@ -619,30 +623,30 @@ No carriage returns or linefeeds are appended to the string. .PP .PP -Definition at line 174 of file socket.cpp. +Definition at line 177 of file socket.cpp. .PP .nf -175 { -176 char* d = (char*)data.c_str(); -177 unsigned int written = 0; -178 int n = 0; -179 int s = data.length(); -180 while ((written < data.length()) && (n >= 0)) -181 { -182 n = send(this->fd,d,s,0); -183 if (n > 0) -184 { -185 // If we didnt write everything, advance -186 // the pointers so that when we retry -187 // the next time around the loop, we try -188 // to write what we failed to write before. -189 written += n; -190 s -= n; -191 d += n; -192 } -193 } -194 return written; -195 } +178 { +179 char* d = (char*)data.c_str(); +180 unsigned int written = 0; +181 int n = 0; +182 int s = data.length(); +183 while ((written < data.length()) && (n >= 0)) +184 { +185 n = send(this->fd,d,s,0); +186 if (n > 0) +187 { +188 // If we didnt write everything, advance +189 // the pointers so that when we retry +190 // the next time around the loop, we try +191 // to write what we failed to write before. +192 written += n; +193 s -= n; +194 d += n; +195 } +196 } +197 return written; +198 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/InviteItem.3 b/docs/man/man3/InviteItem.3 index 62fb66d89..618052d99 100644 --- a/docs/man/man3/InviteItem.3 +++ b/docs/man/man3/InviteItem.3 @@ -1,4 +1,4 @@ -.TH "InviteItem" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "InviteItem" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Invited.3 b/docs/man/man3/Invited.3 index 0fbdee50c..b30256956 100644 --- a/docs/man/man3/Invited.3 +++ b/docs/man/man3/Invited.3 @@ -1,4 +1,4 @@ -.TH "Invited" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Invited" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/KLine.3 b/docs/man/man3/KLine.3 index 823119cc2..f05160828 100644 --- a/docs/man/man3/KLine.3 +++ b/docs/man/man3/KLine.3 @@ -1,4 +1,4 @@ -.TH "KLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "KLine" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -24,14 +24,14 @@ Inherits \fBXLine\fP. .PP KLine class. .PP -Definition at line 62 of file xline.h. +Definition at line 67 of file xline.h. .SH "Member Data Documentation" .PP .SS "char \fBKLine::hostmask\fP[200]" .PP Hostmask (ident) to match against May contain wildcards. .PP -Definition at line 68 of file xline.h. +Definition at line 73 of file xline.h. .SH "Author" .PP diff --git a/docs/man/man3/ModeParameter.3 b/docs/man/man3/ModeParameter.3 index 4a9e1d33e..75add436a 100644 --- a/docs/man/man3/ModeParameter.3 +++ b/docs/man/man3/ModeParameter.3 @@ -1,4 +1,4 @@ -.TH "ModeParameter" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ModeParameter" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/Module.3 b/docs/man/man3/Module.3 index 11af088cb..5dea65737 100644 --- a/docs/man/man3/Module.3 +++ b/docs/man/man3/Module.3 @@ -1,4 +1,4 @@ -.TH "Module" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Module" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -340,7 +340,7 @@ Base class for all InspIRCd modules This class is the base class for InspIRCd mo 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 -Definition at line 239 of file modules.h. +Definition at line 254 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Module::Module (\fBServer\fP * Me)" @@ -354,20 +354,20 @@ Default constructor Creates a module class. .PP .PP -Definition at line 301 of file modules.cpp. +Definition at line 228 of file modules.cpp. .PP .nf -301 { } +228 { } .fi .PP .SS "Module::~Module ()\fC [virtual]\fP" .PP Default destructor destroys a module class. .PP -Definition at line 302 of file modules.cpp. +Definition at line 229 of file modules.cpp. .PP .nf -302 { } +229 { } .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 313 of file modules.cpp. +Definition at line 240 of file modules.cpp. .PP References VF_VENDOR. .PP .nf -313 { return Version(1,0,0,0,VF_VENDOR); } +240 { 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 323 of file modules.cpp. +Definition at line 250 of file modules.cpp. .PP .nf -323 { }; +250 { }; .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 322 of file modules.cpp. +Definition at line 249 of file modules.cpp. .PP References ACR_DEFAULT. .PP .nf -322 { return ACR_DEFAULT; }; +249 { 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 348 of file modules.cpp. +Definition at line 275 of file modules.cpp. .PP .nf -348 { return 0; }; +275 { 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 374 of file modules.cpp. +Definition at line 301 of file modules.cpp. .PP .nf -374 { }; +301 { }; .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 370 of file modules.cpp. +Definition at line 297 of file modules.cpp. .PP .nf -370 { }; +297 { }; .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 372 of file modules.cpp. +Definition at line 299 of file modules.cpp. .PP .nf -372 { }; +299 { }; .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 373 of file modules.cpp. +Definition at line 300 of file modules.cpp. .PP .nf -373 { }; +300 { }; .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 371 of file modules.cpp. +Definition at line 298 of file modules.cpp. .PP .nf -371 { }; +298 { }; .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 327 of file modules.cpp. +Definition at line 254 of file modules.cpp. .PP .nf -327 { }; +254 { }; .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 368 of file modules.cpp. +Definition at line 295 of file modules.cpp. .PP .nf -368 { }; +295 { }; .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 341 of file modules.cpp. +Definition at line 268 of file modules.cpp. .PP .nf -341 { return 0; }; +268 { 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 340 of file modules.cpp. +Definition at line 267 of file modules.cpp. .PP .nf -340 { return 0; }; +267 { 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 369 of file modules.cpp. +Definition at line 296 of file modules.cpp. .PP .nf -369 { }; +296 { }; .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 338 of file modules.cpp. +Definition at line 265 of file modules.cpp. .PP .nf -338 { return 0; }; +265 { 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 335 of file modules.cpp. +Definition at line 262 of file modules.cpp. .PP .nf -335 { return 0; }; +262 { 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 336 of file modules.cpp. +Definition at line 263 of file modules.cpp. .PP .nf -336 { return 0; }; +263 { 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 337 of file modules.cpp. +Definition at line 264 of file modules.cpp. .PP .nf -337 { return 0; }; +264 { 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 330 of file modules.cpp. +Definition at line 257 of file modules.cpp. .PP .nf -330 { return true; }; +257 { 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 380 of file modules.cpp. +Definition at line 307 of file modules.cpp. .PP .nf -380 { }; +307 { }; .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 365 of file modules.cpp. +Definition at line 292 of file modules.cpp. .PP .nf -365 { }; +292 { }; .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 349 of file modules.cpp. +Definition at line 276 of file modules.cpp. .PP .nf -349 { return 0; }; +276 { 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 379 of file modules.cpp. +Definition at line 306 of file modules.cpp. .PP .nf -379 { }; +306 { }; .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 375 of file modules.cpp. +Definition at line 302 of file modules.cpp. .PP .nf -375 { }; +302 { }; .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 377 of file modules.cpp. +Definition at line 304 of file modules.cpp. .PP .nf -377 { }; +304 { }; .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 378 of file modules.cpp. +Definition at line 305 of file modules.cpp. .PP .nf -378 { }; +305 { }; .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 376 of file modules.cpp. +Definition at line 303 of file modules.cpp. .PP .nf -376 { }; +303 { }; .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 343 of file modules.cpp. +Definition at line 270 of file modules.cpp. .PP .nf -343 { return; }; +270 { 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 311 of file modules.cpp. +Definition at line 238 of file modules.cpp. .PP .nf -311 { return false; } +238 { 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 359 of file modules.cpp. +Definition at line 286 of file modules.cpp. .PP .nf -359 { }; +286 { }; .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 347 of file modules.cpp. +Definition at line 274 of file modules.cpp. .PP .nf -347 { }; +274 { }; .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 346 of file modules.cpp. +Definition at line 273 of file modules.cpp. .PP .nf -346 { }; +273 { }; .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 315 of file modules.cpp. +Definition at line 242 of file modules.cpp. .PP .nf -315 { }; +242 { }; .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 324 of file modules.cpp. +Definition at line 251 of file modules.cpp. .PP .nf -324 { return 0; }; +251 { 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 325 of file modules.cpp. +Definition at line 252 of file modules.cpp. .PP .nf -325 { }; +252 { }; .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 342 of file modules.cpp. +Definition at line 269 of file modules.cpp. .PP .nf -342 { return 0; }; +269 { 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 312 of file modules.cpp. +Definition at line 239 of file modules.cpp. .PP .nf -312 { }; +239 { }; .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 314 of file modules.cpp. +Definition at line 241 of file modules.cpp. .PP .nf -314 { }; +241 { }; .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 345 of file modules.cpp. +Definition at line 272 of file modules.cpp. .PP .nf -345 { return 0; }; +272 { 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 358 of file modules.cpp. +Definition at line 285 of file modules.cpp. .PP .nf -358 { }; +285 { }; .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 329 of file modules.cpp. +Definition at line 256 of file modules.cpp. .PP .nf -329 { return 0; }; +256 { 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 334 of file modules.cpp. +Definition at line 261 of file modules.cpp. .PP .nf -334 { return 0; }; +261 { 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 350 of file modules.cpp. +Definition at line 277 of file modules.cpp. .PP .nf -350 { }; +277 { }; .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 352 of file modules.cpp. +Definition at line 279 of file modules.cpp. .PP .nf -352 { }; +279 { }; .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 353 of file modules.cpp. +Definition at line 280 of file modules.cpp. .PP .nf -353 { return 0; }; +280 { 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 351 of file modules.cpp. +Definition at line 278 of file modules.cpp. .PP .nf -351 { return 0; }; +278 { 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 308 of file modules.cpp. +Definition at line 235 of file modules.cpp. .PP .nf -308 { } +235 { } .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 356 of file modules.cpp. +Definition at line 283 of file modules.cpp. .PP .nf -356 { }; +283 { }; .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 344 of file modules.cpp. +Definition at line 271 of file modules.cpp. .PP Referenced by Request::Send(). .PP .nf -344 { return NULL; }; +271 { 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 328 of file modules.cpp. +Definition at line 255 of file modules.cpp. .PP .nf -328 { }; +255 { }; .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 309 of file modules.cpp. +Definition at line 236 of file modules.cpp. .PP .nf -309 { } +236 { } .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 339 of file modules.cpp. +Definition at line 266 of file modules.cpp. .PP .nf -339 { }; +266 { }; .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 361 of file modules.cpp. +Definition at line 288 of file modules.cpp. .PP .nf -361 { }; +288 { }; .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 363 of file modules.cpp. +Definition at line 290 of file modules.cpp. .PP .nf -363 { }; +290 { }; .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 360 of file modules.cpp. +Definition at line 287 of file modules.cpp. .PP .nf -360 { }; +287 { }; .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 364 of file modules.cpp. +Definition at line 291 of file modules.cpp. .PP .nf -364 { }; +291 { }; .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 326 of file modules.cpp. +Definition at line 253 of file modules.cpp. .PP .nf -326 { }; +253 { }; .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 303 of file modules.cpp. +Definition at line 230 of file modules.cpp. .PP .nf -303 { } +230 { } .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 305 of file modules.cpp. +Definition at line 232 of file modules.cpp. .PP .nf -305 { } +232 { } .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 357 of file modules.cpp. +Definition at line 284 of file modules.cpp. .PP .nf -357 { }; +284 { }; .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 306 of file modules.cpp. +Definition at line 233 of file modules.cpp. .PP .nf -306 { } +233 { } .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 333 of file modules.cpp. +Definition at line 260 of file modules.cpp. .PP .nf -333 { }; +260 { }; .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 354 of file modules.cpp. +Definition at line 281 of file modules.cpp. .PP .nf -354 { }; +281 { }; .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 355 of file modules.cpp. +Definition at line 282 of file modules.cpp. .PP .nf -355 { }; +282 { }; .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 307 of file modules.cpp. +Definition at line 234 of file modules.cpp. .PP .nf -307 { } +234 { } .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 321 of file modules.cpp. +Definition at line 248 of file modules.cpp. .PP .nf -321 { }; +248 { }; .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 317 of file modules.cpp. +Definition at line 244 of file modules.cpp. .PP .nf -317 { return 0; }; +244 { 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 310 of file modules.cpp. +Definition at line 237 of file modules.cpp. .PP .nf -310 { return 0; } +237 { 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 332 of file modules.cpp. +Definition at line 259 of file modules.cpp. .PP .nf -332 { return 0; }; +259 { 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 318 of file modules.cpp. +Definition at line 245 of file modules.cpp. .PP .nf -318 { return 0; }; +245 { 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 320 of file modules.cpp. +Definition at line 247 of file modules.cpp. .PP .nf -320 { return 0; }; +247 { 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 319 of file modules.cpp. +Definition at line 246 of file modules.cpp. .PP .nf -319 { return 0; }; +246 { 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 304 of file modules.cpp. +Definition at line 231 of file modules.cpp. .PP .nf -304 { } +231 { } .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 331 of file modules.cpp. +Definition at line 258 of file modules.cpp. .PP .nf -331 { }; +258 { }; .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 367 of file modules.cpp. +Definition at line 294 of file modules.cpp. .PP .nf -367 { }; +294 { }; .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 316 of file modules.cpp. +Definition at line 243 of file modules.cpp. .PP .nf -316 { }; +243 { }; .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 366 of file modules.cpp. +Definition at line 293 of file modules.cpp. .PP .nf -366 { }; +293 { }; .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 362 of file modules.cpp. +Definition at line 289 of file modules.cpp. .PP .nf -362 { }; +289 { }; .fi .PP diff --git a/docs/man/man3/ModuleFactory.3 b/docs/man/man3/ModuleFactory.3 index be471b88d..c1964f216 100644 --- a/docs/man/man3/ModuleFactory.3 +++ b/docs/man/man3/ModuleFactory.3 @@ -1,4 +1,4 @@ -.TH "ModuleFactory" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ModuleFactory" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -32,23 +32,23 @@ Instantiates classes inherited from \fBModule\fP This class creates a class inhe This is to allow for modules to create many different variants of \fBModule\fP, dependent on architecture, configuration, etc. In most cases, the simple class shown in the example module m_foobar.so will suffice for most modules. .PP -Definition at line 1654 of file modules.h. +Definition at line 1669 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "ModuleFactory::ModuleFactory ()\fC [inline]\fP" .PP -Definition at line 1657 of file modules.h. +Definition at line 1672 of file modules.h. .PP .nf -1657 { } +1672 { } .fi .PP .SS "virtual ModuleFactory::~ModuleFactory ()\fC [inline, virtual]\fP" .PP -Definition at line 1658 of file modules.h. +Definition at line 1673 of file modules.h. .PP .nf -1658 { } +1673 { } .fi .PP .SH "Member Function Documentation" diff --git a/docs/man/man3/ModuleMessage.3 b/docs/man/man3/ModuleMessage.3 index 422325015..f066a685b 100644 --- a/docs/man/man3/ModuleMessage.3 +++ b/docs/man/man3/ModuleMessage.3 @@ -1,4 +1,4 @@ -.TH "ModuleMessage" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ModuleMessage" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/QLine.3 b/docs/man/man3/QLine.3 index 4859a543d..761a5e72e 100644 --- a/docs/man/man3/QLine.3 +++ b/docs/man/man3/QLine.3 @@ -1,4 +1,4 @@ -.TH "QLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "QLine" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -28,7 +28,7 @@ Inherits \fBXLine\fP. .PP QLine class. .PP -Definition at line 108 of file xline.h. +Definition at line 113 of file xline.h. .SH "Member Data Documentation" .PP .SS "bool \fBQLine::is_global\fP" @@ -37,14 +37,14 @@ Set if this is a global Z:line (e.g. .PP it came from another server) .PP -Definition at line 118 of file xline.h. +Definition at line 123 of file xline.h. .SS "char \fBQLine::nick\fP[64]" .PP Nickname to match against. .PP May contain wildcards. .PP -Definition at line 114 of file xline.h. +Definition at line 119 of file xline.h. .SH "Author" .PP diff --git a/docs/man/man3/Request.3 b/docs/man/man3/Request.3 index e77724e7a..ecaf1ef9a 100644 --- a/docs/man/man3/Request.3 +++ b/docs/man/man3/Request.3 @@ -1,4 +1,4 @@ -.TH "Request" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Request" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -65,10 +65,10 @@ Definition at line 157 of file modules.h. .PP Create a new Request. .PP -Definition at line 246 of file modules.cpp. +Definition at line 173 of file modules.cpp. .PP .nf -246 : data(anydata), source(src), dest(dst) { }; +173 : data(anydata), source(src), dest(dst) { }; .fi .PP .SH "Member Function Documentation" @@ -77,42 +77,42 @@ Definition at line 246 of file modules.cpp. .PP Fetch the Request data. .PP -Definition at line 248 of file modules.cpp. +Definition at line 175 of file modules.cpp. .PP References data. .PP .nf -249 { -250 return this->data; -251 } +176 { +177 return this->data; +178 } .fi .PP .SS "\fBModule\fP * Request::GetDest ()" .PP Fetch the request destination (should be 'this' in the receiving module). .PP -Definition at line 258 of file modules.cpp. +Definition at line 185 of file modules.cpp. .PP References dest. .PP .nf -259 { -260 return this->dest; -261 } +186 { +187 return this->dest; +188 } .fi .PP .SS "\fBModule\fP * Request::GetSource ()" .PP Fetch the request source. .PP -Definition at line 253 of file modules.cpp. +Definition at line 180 of file modules.cpp. .PP References source. .PP .nf -254 { -255 return this->source; -256 } +181 { +182 return this->source; +183 } .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 263 of file modules.cpp. +Definition at line 190 of file modules.cpp. .PP References dest, and Module::OnRequest(). .PP .nf -264 { -265 if (this->dest) -266 { -267 return dest->OnRequest(this); -268 } -269 else -270 { -271 return NULL; -272 } -273 } +191 { +192 if (this->dest) +193 { +194 return dest->OnRequest(this); +195 } +196 else +197 { +198 return NULL; +199 } +200 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/Server.3 b/docs/man/man3/Server.3 index f65da0bef..5ec1f020d 100644 --- a/docs/man/man3/Server.3 +++ b/docs/man/man3/Server.3 @@ -1,4 +1,4 @@ -.TH "Server" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Server" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -252,7 +252,7 @@ Allows server output and query functions This class contains methods which allow All modules should instantiate at least one copy of this class, and use its member functions to perform their tasks. .PP -Definition at line 1081 of file modules.h. +Definition at line 1096 of file modules.h. .SH "Constructor & Destructor Documentation" .PP .SS "Server::Server ()" @@ -261,11 +261,11 @@ Default constructor. .PP Creates a Server object. .PP -Definition at line 386 of file modules.cpp. +Definition at line 313 of file modules.cpp. .PP .nf -387 { -388 } +314 { +315 } .fi .PP .SS "Server::~Server ()\fC [virtual]\fP" @@ -274,11 +274,11 @@ Default destructor. .PP Destroys a Server object. .PP -Definition at line 390 of file modules.cpp. +Definition at line 317 of file modules.cpp. .PP .nf -391 { -392 } +318 { +319 } .fi .PP .SH "Member Function Documentation" @@ -293,14 +293,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 487 of file modules.cpp. +Definition at line 414 of file modules.cpp. .PP References createcommand(). .PP .nf -488 { -489 createcommand(cmd,f,flags,minparams,source); -490 } +415 { +416 createcommand(cmd,f,flags,minparams,source); +417 } .fi .PP .SS "void Server::AddELine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -309,14 +309,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 731 of file modules.cpp. +Definition at line 658 of file modules.cpp. .PP References add_eline(). .PP .nf -732 { -733 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -734 } +659 { +660 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +661 } .fi .PP .SS "bool Server::AddExtendedListMode (char modechar)\fC [virtual]\fP" @@ -335,17 +335,17 @@ This call is used to implement modes like +q and +a. The characteristics of thes .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. .PP -Definition at line 655 of file modules.cpp. +Definition at line 582 of file modules.cpp. .PP References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL. .PP .nf -656 { -657 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -658 if (res) -659 ModeMakeList(modechar); -660 return res; -661 } +583 { +584 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +585 if (res) +586 ModeMakeList(modechar); +587 return res; +588 } .fi .PP .SS "bool Server::AddExtendedMode (char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)\fC [virtual]\fP" @@ -354,37 +354,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 627 of file modules.cpp. +Definition at line 554 of file modules.cpp. .PP References DEBUG, DoAddExtendedMode(), MT_CLIENT, and MT_SERVER. .PP .nf -628 { -629 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) -630 { -631 if (type == MT_SERVER) -632 { -633 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); -634 return false; -635 } -636 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -637 { -638 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); -639 return false; -640 } -641 if ((params_when_on>1) || (params_when_off>1)) -642 { -643 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); -644 return false; -645 } -646 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -647 } -648 else -649 { -650 log(DEBUG,'*** API ERROR *** Muppet modechar detected.'); -651 } -652 return false; -653 } +555 { +556 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) +557 { +558 if (type == MT_SERVER) +559 { +560 log(DEBUG,'*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion'); +561 return false; +562 } +563 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +564 { +565 log(DEBUG,'*** API ERROR *** Parameters on MT_CLIENT modes are not supported'); +566 return false; +567 } +568 if ((params_when_on>1) || (params_when_off>1)) +569 { +570 log(DEBUG,'*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported'); +571 return false; +572 } +573 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +574 } +575 else +576 { +577 log(DEBUG,'*** API ERROR *** Muppet modechar detected.'); +578 } +579 return false; +580 } .fi .PP .SS "void Server::AddGLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -393,14 +393,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 711 of file modules.cpp. +Definition at line 638 of file modules.cpp. .PP References add_gline(). .PP .nf -712 { -713 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -714 } +639 { +640 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +641 } .fi .PP .SS "void Server::AddKLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP hostmask)\fC [virtual]\fP" @@ -409,14 +409,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 726 of file modules.cpp. +Definition at line 653 of file modules.cpp. .PP References add_kline(). .PP .nf -727 { -728 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -729 } +654 { +655 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +656 } .fi .PP .SS "void Server::AddQLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP nickname)\fC [virtual]\fP" @@ -425,28 +425,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 716 of file modules.cpp. +Definition at line 643 of file modules.cpp. .PP References add_qline(). .PP .nf -717 { -718 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); -719 } +644 { +645 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +646 } .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 394 of file modules.cpp. +Definition at line 321 of file modules.cpp. .PP References module_sockets. .PP .nf -395 { -396 module_sockets.push_back(sock); -397 } +322 { +323 module_sockets.push_back(sock); +324 } .fi .PP .SS "void Server::AddZLine (long duration, \fBstd::string\fP source, \fBstd::string\fP reason, \fBstd::string\fP ipaddr)\fC [virtual]\fP" @@ -455,14 +455,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 721 of file modules.cpp. +Definition at line 648 of file modules.cpp. .PP References add_zline(). .PP .nf -722 { -723 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); -724 } +649 { +650 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +651 } .fi .PP .SS "long Server::CalcDuration (\fBstd::string\fP duration)\fC [virtual]\fP" @@ -471,14 +471,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 761 of file modules.cpp. +Definition at line 688 of file modules.cpp. .PP References duration(). .PP .nf -762 { -763 return duration(delta.c_str()); -764 } +689 { +690 return duration(delta.c_str()); +691 } .fi .PP .SS "void Server::CallCommandHandler (\fBstd::string\fP commandname, char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" @@ -489,12 +489,12 @@ 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 472 of file modules.cpp. +Definition at line 399 of file modules.cpp. .PP .nf -473 { -474 call_handler(commandname.c_str(),parameters,pcnt,user); -475 } +400 { +401 call_handler(commandname.c_str(),parameters,pcnt,user); +402 } .fi .PP .SS "void Server::ChangeGECOS (\fBuserrec\fP * user, \fBstd::string\fP gecos)\fC [virtual]\fP" @@ -503,14 +503,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 570 of file modules.cpp. +Definition at line 497 of file modules.cpp. .PP References ChangeName(). .PP .nf -571 { -572 ChangeName(user,gecos.c_str()); -573 } +498 { +499 ChangeName(user,gecos.c_str()); +500 } .fi .PP .SS "void Server::ChangeHost (\fBuserrec\fP * user, \fBstd::string\fP host)\fC [virtual]\fP" @@ -519,14 +519,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 565 of file modules.cpp. +Definition at line 492 of file modules.cpp. .PP References ChangeDisplayedHost(). .PP .nf -566 { -567 ChangeDisplayedHost(user,host.c_str()); -568 } +493 { +494 ChangeDisplayedHost(user,host.c_str()); +495 } .fi .PP .SS "void Server::ChangeUserNick (\fBuserrec\fP * user, \fBstd::string\fP nickname)\fC [virtual]\fP" @@ -535,12 +535,12 @@ 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 457 of file modules.cpp. +Definition at line 384 of file modules.cpp. .PP .nf -458 { -459 force_nickchange(user,nickname.c_str()); -460 } +385 { +386 force_nickchange(user,nickname.c_str()); +387 } .fi .PP .SS "\fBstd::string\fP Server::ChanMode (\fBuserrec\fP * User, \fBchanrec\fP * Chan)\fC [virtual]\fP" @@ -549,14 +549,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 595 of file modules.cpp. +Definition at line 522 of file modules.cpp. .PP References cmode(). .PP .nf -596 { -597 return cmode(User,Chan); -598 } +523 { +524 return cmode(User,Chan); +525 } .fi .PP .SS "bool Server::CommonChannels (\fBuserrec\fP * u1, \fBuserrec\fP * u2)\fC [virtual]\fP" @@ -565,14 +565,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 543 of file modules.cpp. +Definition at line 470 of file modules.cpp. .PP References common_channels(). .PP .nf -544 { -545 return (common_channels(u1,u2) != 0); -546 } +471 { +472 return (common_channels(u1,u2) != 0); +473 } .fi .PP .SS "int Server::CountUsers (\fBchanrec\fP * c)\fC [virtual]\fP" @@ -581,103 +581,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 663 of file modules.cpp. +Definition at line 590 of file modules.cpp. .PP .nf -664 { -665 return usercount(c); -666 } +591 { +592 return usercount(c); +593 } .fi .PP .SS "bool Server::DelELine (\fBstd::string\fP hostmask)\fC [virtual]\fP" .PP Deletes a local E-Line. .PP -Definition at line 756 of file modules.cpp. +Definition at line 683 of file modules.cpp. .PP References del_eline(). .PP .nf -757 { -758 return del_eline(hostmask.c_str()); -759 } +684 { +685 return del_eline(hostmask.c_str()); +686 } .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 736 of file modules.cpp. +Definition at line 663 of file modules.cpp. .PP References del_gline(). .PP .nf -737 { -738 return del_gline(hostmask.c_str()); -739 } +664 { +665 return del_gline(hostmask.c_str()); +666 } .fi .PP .SS "bool Server::DelKLine (\fBstd::string\fP hostmask)\fC [virtual]\fP" .PP Deletes a local K-Line. .PP -Definition at line 751 of file modules.cpp. +Definition at line 678 of file modules.cpp. .PP References del_kline(). .PP .nf -752 { -753 return del_kline(hostmask.c_str()); -754 } +679 { +680 return del_kline(hostmask.c_str()); +681 } .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 741 of file modules.cpp. +Definition at line 668 of file modules.cpp. .PP References del_qline(). .PP .nf -742 { -743 return del_qline(nickname.c_str()); -744 } +669 { +670 return del_qline(nickname.c_str()); +671 } .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 405 of file modules.cpp. +Definition at line 332 of file modules.cpp. .PP References module_sockets. .PP .nf -406 { -407 for (std::vector::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) -408 { -409 if (*a == sock) -410 { -411 module_sockets.erase(a); -412 return; -413 } -414 } -415 } +333 { +334 for (std::vector::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) +335 { +336 if (*a == sock) +337 { +338 module_sockets.erase(a); +339 return; +340 } +341 } +342 } .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 746 of file modules.cpp. +Definition at line 673 of file modules.cpp. .PP References del_zline(). .PP .nf -747 { -748 return del_zline(ipaddr.c_str()); -749 } +674 { +675 return del_zline(ipaddr.c_str()); +676 } .fi .PP .SS "\fBchanrec\fP * Server::FindChannel (\fBstd::string\fP channel)\fC [virtual]\fP" @@ -686,12 +686,12 @@ 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 590 of file modules.cpp. +Definition at line 517 of file modules.cpp. .PP .nf -591 { -592 return FindChan(channel.c_str()); -593 } +518 { +519 return FindChan(channel.c_str()); +520 } .fi .PP .SS "\fBuserrec\fP * Server::FindDescriptor (int socket)\fC [virtual]\fP" @@ -700,12 +700,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 585 of file modules.cpp. +Definition at line 512 of file modules.cpp. .PP .nf -586 { -587 return (socket < 65536 ? fd_ref_table[socket] : NULL); -588 } +513 { +514 return (socket < 65536 ? fd_ref_table[socket] : NULL); +515 } .fi .PP .SS "\fBModule\fP * Server::FindModule (\fBstd::string\fP name)\fC [virtual]\fP" @@ -714,21 +714,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 795 of file modules.cpp. +Definition at line 722 of file modules.cpp. .PP -References MODCOUNT, module_names, and modules. +References MODCOUNT, ServerConfig::module_names, and modules. .PP .nf -796 { -797 for (int i = 0; i <= MODCOUNT; i++) -798 { -799 if (module_names[i] == name) -800 { -801 return modules[i]; -802 } -803 } -804 return NULL; -805 } +723 { +724 for (int i = 0; i <= MODCOUNT; i++) +725 { +726 if (Config->module_names[i] == name) +727 { +728 return modules[i]; +729 } +730 } +731 return NULL; +732 } .fi .PP .SS "\fBuserrec\fP * Server::FindNick (\fBstd::string\fP nick)\fC [virtual]\fP" @@ -737,12 +737,12 @@ 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 580 of file modules.cpp. +Definition at line 507 of file modules.cpp. .PP .nf -581 { -582 return Find(nick); -583 } +508 { +509 return Find(nick); +510 } .fi .PP .SS "\fBAdmin\fP Server::GetAdmin ()\fC [virtual]\fP" @@ -751,48 +751,48 @@ 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 620 of file modules.cpp. +Definition at line 547 of file modules.cpp. .PP .nf -621 { -622 return Admin(getadminname(),getadminemail(),getadminnick()); -623 } +548 { +549 return Admin(getadminname(),getadminemail(),getadminnick()); +550 } .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 610 of file modules.cpp. +Definition at line 537 of file modules.cpp. .PP .nf -611 { -612 return getnetworkname(); -613 } +538 { +539 return getnetworkname(); +540 } .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 615 of file modules.cpp. +Definition at line 542 of file modules.cpp. .PP .nf -616 { -617 return getserverdesc(); -618 } +543 { +544 return getserverdesc(); +545 } .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 605 of file modules.cpp. +Definition at line 532 of file modules.cpp. .PP .nf -606 { -607 return getservername(); -608 } +533 { +534 return getservername(); +535 } .fi .PP .SS "\fBchanuserlist\fP Server::GetUsers (\fBchanrec\fP * chan)\fC [virtual]\fP" @@ -801,22 +801,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 445 of file modules.cpp. +Definition at line 372 of file modules.cpp. .PP -References chanrec::GetUsers(), and list. +References chanrec::GetUsers(). .PP .nf -446 { -447 chanuserlist userl; -448 userl.clear(); -449 std::vector *list = chan->GetUsers(); -450 for (std::vector::iterator i = list->begin(); i != list->end(); i++) -451 { -452 char* o = *i; -453 userl.push_back((userrec*)o); -454 } -455 return userl; -456 } +373 { +374 chanuserlist userl; +375 userl.clear(); +376 std::vector *list = chan->GetUsers(); +377 for (std::vector::iterator i = list->begin(); i != list->end(); i++) +378 { +379 char* o = *i; +380 userl.push_back((userrec*)o); +381 } +382 return userl; +383 } .fi .PP .SS "bool Server::IsNick (\fBstd::string\fP nick)\fC [virtual]\fP" @@ -825,14 +825,14 @@ Returns true if a nick is valid. .PP Nicks for unregistered connections will return false. .PP -Definition at line 575 of file modules.cpp. +Definition at line 502 of file modules.cpp. .PP References isnick(). .PP .nf -576 { -577 return (isnick(nick.c_str()) != 0); -578 } +503 { +504 return (isnick(nick.c_str()) != 0); +505 } .fi .PP .SS "bool Server::IsOnChannel (\fBuserrec\fP * User, \fBchanrec\fP * Chan)\fC [virtual]\fP" @@ -841,14 +841,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 600 of file modules.cpp. +Definition at line 527 of file modules.cpp. .PP References has_channel(). .PP .nf -601 { -602 return has_channel(User,Chan); -603 } +528 { +529 return has_channel(User,Chan); +530 } .fi .PP .SS "bool Server::IsUlined (\fBstd::string\fP server)\fC [virtual]\fP" @@ -857,60 +857,60 @@ 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 467 of file modules.cpp. +Definition at line 394 of file modules.cpp. .PP References is_uline(). .PP .nf -468 { -469 return is_uline(server.c_str()); -470 } +395 { +396 return is_uline(server.c_str()); +397 } .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 766 of file modules.cpp. +Definition at line 693 of file modules.cpp. .PP .nf -767 { -768 const char* dest = mask.c_str(); -769 if (strchr(dest,'!')==0) -770 return false; -771 if (strchr(dest,'@')==0) -772 return false; -773 for (unsigned int i = 0; i < strlen(dest); i++) -774 if (dest[i] < 32) -775 return false; -776 for (unsigned int i = 0; i < strlen(dest); i++) -777 if (dest[i] > 126) -778 return false; -779 unsigned int c = 0; -780 for (unsigned int i = 0; i < strlen(dest); i++) -781 if (dest[i] == '!') -782 c++; -783 if (c>1) -784 return false; -785 c = 0; -786 for (unsigned int i = 0; i < strlen(dest); i++) -787 if (dest[i] == '@') -788 c++; -789 if (c>1) -790 return false; -791 -792 return true; -793 } +694 { +695 const char* dest = mask.c_str(); +696 if (strchr(dest,'!')==0) +697 return false; +698 if (strchr(dest,'@')==0) +699 return false; +700 for (unsigned int i = 0; i < strlen(dest); i++) +701 if (dest[i] < 32) +702 return false; +703 for (unsigned int i = 0; i < strlen(dest); i++) +704 if (dest[i] > 126) +705 return false; +706 unsigned int c = 0; +707 for (unsigned int i = 0; i < strlen(dest); i++) +708 if (dest[i] == '!') +709 c++; +710 if (c>1) +711 return false; +712 c = 0; +713 for (unsigned int i = 0; i < strlen(dest); i++) +714 if (dest[i] == '@') +715 c++; +716 if (c>1) +717 return false; +718 +719 return true; +720 } .fi .PP .SS "bool Server::IsValidModuleCommand (\fBstd::string\fP commandname, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" .PP -Definition at line 477 of file modules.cpp. +Definition at line 404 of file modules.cpp. .PP .nf -478 { -479 return is_valid_cmd(commandname.c_str(), pcnt, user); -480 } +405 { +406 return is_valid_cmd(commandname.c_str(), pcnt, user); +407 } .fi .PP .SS "\fBchanrec\fP * Server::JoinUserToChannel (\fBuserrec\fP * user, \fBstd::string\fP cname, \fBstd::string\fP key)\fC [virtual]\fP" @@ -919,12 +919,12 @@ 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 435 of file modules.cpp. +Definition at line 362 of file modules.cpp. .PP .nf -436 { -437 return add_channel(user,cname.c_str(),key.c_str(),false); -438 } +363 { +364 return add_channel(user,cname.c_str(),key.c_str(),false); +365 } .fi .PP .SS "void Server::Log (int level, \fBstd::string\fP s)\fC [virtual]\fP" @@ -933,12 +933,12 @@ 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 482 of file modules.cpp. +Definition at line 409 of file modules.cpp. .PP .nf -483 { -484 log(level,'%s',s.c_str()); -485 } +410 { +411 log(level,'%s',s.c_str()); +412 } .fi .PP .SS "bool Server::MatchText (\fBstd::string\fP sliteral, \fBstd::string\fP spattern)\fC [virtual]\fP" @@ -947,15 +947,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 422 of file modules.cpp. +Definition at line 349 of file modules.cpp. .PP .nf -423 { -424 char literal[MAXBUF],pattern[MAXBUF]; -425 strlcpy(literal,sliteral.c_str(),MAXBUF); -426 strlcpy(pattern,spattern.c_str(),MAXBUF); -427 return match(literal,pattern); -428 } +350 { +351 char literal[MAXBUF],pattern[MAXBUF]; +352 strlcpy(literal,sliteral.c_str(),MAXBUF); +353 strlcpy(pattern,spattern.c_str(),MAXBUF); +354 return match(literal,pattern); +355 } .fi .PP .SS "\fBchanrec\fP * Server::PartUserFromChannel (\fBuserrec\fP * user, \fBstd::string\fP cname, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -964,12 +964,12 @@ 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 440 of file modules.cpp. +Definition at line 367 of file modules.cpp. .PP .nf -441 { -442 return del_channel(user,cname.c_str(),reason.c_str(),false); -443 } +368 { +369 return del_channel(user,cname.c_str(),reason.c_str(),false); +370 } .fi .PP .SS "bool Server::PseudoToUser (\fBuserrec\fP * alive, \fBuserrec\fP * zombie, \fBstd::string\fP message)\fC [virtual]\fP" @@ -978,39 +978,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 681 of file modules.cpp. +Definition at line 608 of file modules.cpp. .PP -References ucrec::channel, 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, chanrec::name, userrec::nick, chanrec::setby, chanrec::topic, and chanrec::topicset. .PP .nf -682 { -683 zombie->fd = alive->fd; -684 alive->fd = FD_MAGIC_NUMBER; -685 alive->ClearBuffer(); -686 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); -687 kill_link(alive,message.c_str()); -688 fd_ref_table[zombie->fd] = zombie; -689 for (int i = 0; i != MAXCHANS; i++) -690 { -691 if (zombie->chans[i].channel != NULL) -692 { -693 if (zombie->chans[i].channel->name) -694 { -695 chanrec* Ptr = zombie->chans[i].channel; -696 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); -697 if (Ptr->topicset) -698 { -699 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); -700 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); -701 } -702 userlist(zombie,Ptr); -703 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); -704 -705 } -706 } -707 } -708 return true; -709 } +609 { +610 zombie->fd = alive->fd; +611 alive->fd = FD_MAGIC_NUMBER; +612 alive->ClearBuffer(); +613 Write(zombie->fd,':%s!%s@%s NICK %s',alive->nick,alive->ident,alive->host,zombie->nick); +614 kill_link(alive,message.c_str()); +615 fd_ref_table[zombie->fd] = zombie; +616 for (unsigned int i = 0; i < zombie->chans.size(); i++) +617 { +618 if (zombie->chans[i].channel != NULL) +619 { +620 if (zombie->chans[i].channel->name) +621 { +622 chanrec* Ptr = zombie->chans[i].channel; +623 WriteFrom(zombie->fd,zombie,'JOIN %s',Ptr->name); +624 if (Ptr->topicset) +625 { +626 WriteServ(zombie->fd,'332 %s %s :%s', zombie->nick, Ptr->name, Ptr->topic); +627 WriteServ(zombie->fd,'333 %s %s %s %d', zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +628 } +629 userlist(zombie,Ptr); +630 WriteServ(zombie->fd,'366 %s %s :End of /NAMES list.', zombie->nick, Ptr->name); +631 +632 } +633 } +634 } +635 return true; +636 } .fi .PP .SS "void Server::QuitUser (\fBuserrec\fP * user, \fBstd::string\fP reason)\fC [virtual]\fP" @@ -1023,23 +1023,25 @@ 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 462 of file modules.cpp. +Definition at line 389 of file modules.cpp. .PP .nf -463 { -464 kill_link(user,reason.c_str()); -465 } +390 { +391 kill_link(user,reason.c_str()); +392 } .fi .PP .SS "void Server::RehashServer ()\fC [virtual]\fP" .PP -Definition at line 399 of file modules.cpp. +Definition at line 326 of file modules.cpp. +.PP +References ServerConfig::Read(). .PP .nf -400 { -401 WriteOpers('*** Rehashing config file'); -402 ReadConfig(false,NULL); -403 } +327 { +328 WriteOpers('*** Rehashing config file'); +329 Config->Read(false,NULL); +330 } .fi .PP .SS "void Server::Send (int Socket, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1048,12 +1050,12 @@ 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 497 of file modules.cpp. +Definition at line 424 of file modules.cpp. .PP .nf -498 { -499 Write(Socket,'%s',s.c_str()); -500 } +425 { +426 Write(Socket,'%s',s.c_str()); +427 } .fi .PP .SS "void Server::SendChannel (\fBuserrec\fP * User, \fBchanrec\fP * Channel, \fBstd::string\fP s, bool IncludeSender)\fC [virtual]\fP" @@ -1062,19 +1064,19 @@ 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 531 of file modules.cpp. +Definition at line 458 of file modules.cpp. .PP .nf -532 { -533 if (IncludeSender) -534 { -535 WriteChannel(Channel,User,'%s',s.c_str()); -536 } -537 else -538 { -539 ChanExceptSender(Channel,User,'%s',s.c_str()); -540 } -541 } +459 { +460 if (IncludeSender) +461 { +462 WriteChannel(Channel,User,'%s',s.c_str()); +463 } +464 else +465 { +466 ChanExceptSender(Channel,User,'%s',s.c_str()); +467 } +468 } .fi .PP .SS "void Server::SendChannelServerNotice (\fBstd::string\fP ServName, \fBchanrec\fP * Channel, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1083,12 +1085,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 526 of file modules.cpp. +Definition at line 453 of file modules.cpp. .PP .nf -527 { -528 WriteChannelWithServ((char*)ServName.c_str(), Channel, '%s', text.c_str()); -529 } +454 { +455 WriteChannelWithServ((char*)ServName.c_str(), Channel, '%s', text.c_str()); +456 } .fi .PP .SS "void Server::SendCommon (\fBuserrec\fP * User, \fBstd::string\fP text, bool IncludeSender)\fC [virtual]\fP" @@ -1097,19 +1099,19 @@ 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 548 of file modules.cpp. +Definition at line 475 of file modules.cpp. .PP .nf -549 { -550 if (IncludeSender) -551 { -552 WriteCommon(User,'%s',text.c_str()); -553 } -554 else -555 { -556 WriteCommonExcept(User,'%s',text.c_str()); -557 } -558 } +476 { +477 if (IncludeSender) +478 { +479 WriteCommon(User,'%s',text.c_str()); +480 } +481 else +482 { +483 WriteCommonExcept(User,'%s',text.c_str()); +484 } +485 } .fi .PP .SS "void Server::SendFrom (int Socket, \fBuserrec\fP * User, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1118,12 +1120,12 @@ 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 507 of file modules.cpp. +Definition at line 434 of file modules.cpp. .PP .nf -508 { -509 WriteFrom(Socket,User,'%s',s.c_str()); -510 } +435 { +436 WriteFrom(Socket,User,'%s',s.c_str()); +437 } .fi .PP .SS "void Server::SendMode (char ** parameters, int pcnt, \fBuserrec\fP * user)\fC [virtual]\fP" @@ -1146,14 +1148,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 492 of file modules.cpp. +Definition at line 419 of file modules.cpp. .PP References server_mode(). .PP .nf -493 { -494 server_mode(parameters,pcnt,user); -495 } +420 { +421 server_mode(parameters,pcnt,user); +422 } .fi .PP .SS "void Server::SendOpers (\fBstd::string\fP s)\fC [virtual]\fP" @@ -1162,12 +1164,12 @@ Sends text to all opers. .PP This method sends a server notice to all opers with the usermode +s. .PP -Definition at line 417 of file modules.cpp. +Definition at line 344 of file modules.cpp. .PP .nf -418 { -419 WriteOpers('%s',s.c_str()); -420 } +345 { +346 WriteOpers('%s',s.c_str()); +347 } .fi .PP .SS "void Server::SendServ (int Socket, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1176,12 +1178,12 @@ 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 502 of file modules.cpp. +Definition at line 429 of file modules.cpp. .PP .nf -503 { -504 WriteServ(Socket,'%s',s.c_str()); -505 } +430 { +431 WriteServ(Socket,'%s',s.c_str()); +432 } .fi .PP .SS "void Server::SendTo (\fBuserrec\fP * Source, \fBuserrec\fP * Dest, \fBstd::string\fP s)\fC [virtual]\fP" @@ -1198,23 +1200,23 @@ The format will become: .PP Which is useful for numerics and server notices to single users, etc. .PP -Definition at line 512 of file modules.cpp. +Definition at line 439 of file modules.cpp. .PP References connection::fd. .PP .nf -513 { -514 if (!Source) -515 { -516 // if source is NULL, then the message originates from the local server -517 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); -518 } -519 else -520 { -521 // otherwise it comes from the user specified -522 WriteTo(Source,Dest,'%s',s.c_str()); -523 } -524 } +440 { +441 if (!Source) +442 { +443 // if source is NULL, then the message originates from the local server +444 Write(Dest->fd,':%s %s',this->GetServerName().c_str(),s.c_str()); +445 } +446 else +447 { +448 // otherwise it comes from the user specified +449 WriteTo(Source,Dest,'%s',s.c_str()); +450 } +451 } .fi .PP .SS "void Server::SendToModeMask (\fBstd::string\fP modes, int flags, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1227,12 +1229,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 430 of file modules.cpp. +Definition at line 357 of file modules.cpp. .PP .nf -431 { -432 WriteMode(modes.c_str(),flags,'%s',text.c_str()); -433 } +358 { +359 WriteMode(modes.c_str(),flags,'%s',text.c_str()); +360 } .fi .PP .SS "void Server::SendWallops (\fBuserrec\fP * User, \fBstd::string\fP text)\fC [virtual]\fP" @@ -1241,12 +1243,12 @@ 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 560 of file modules.cpp. +Definition at line 487 of file modules.cpp. .PP .nf -561 { -562 WriteWallOps(User,false,'%s',text.c_str()); -563 } +488 { +489 WriteWallOps(User,false,'%s',text.c_str()); +490 } .fi .PP .SS "bool Server::UserToPseudo (\fBuserrec\fP * user, \fBstd::string\fP message)\fC [virtual]\fP" @@ -1255,21 +1257,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 669 of file modules.cpp. +Definition at line 596 of file modules.cpp. .PP References userrec::ClearBuffer(), SocketEngine::DelFd(), connection::fd, FD_MAGIC_NUMBER, connection::host, and userrec::ident. .PP .nf -670 { -671 unsigned int old_fd = user->fd; -672 user->fd = FD_MAGIC_NUMBER; -673 user->ClearBuffer(); -674 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); -675 SE->DelFd(old_fd); -676 shutdown(old_fd,2); -677 close(old_fd); -678 return true; -679 } +597 { +598 unsigned int old_fd = user->fd; +599 user->fd = FD_MAGIC_NUMBER; +600 user->ClearBuffer(); +601 Write(old_fd,'ERROR :Closing link (%s@%s) [%s]',user->ident,user->host,message.c_str()); +602 SE->DelFd(old_fd); +603 shutdown(old_fd,2); +604 close(old_fd); +605 return true; +606 } .fi .PP diff --git a/docs/man/man3/ServerConfig.3 b/docs/man/man3/ServerConfig.3 new file mode 100644 index 000000000..9f5733197 --- /dev/null +++ b/docs/man/man3/ServerConfig.3 @@ -0,0 +1,325 @@ +.TH "ServerConfig" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +ServerConfig \- +.SH SYNOPSIS +.br +.PP +\fC#include \fP +.PP +Inherits \fBclassbase\fP. +.PP +.SS "Public Member Functions" + +.in +1c +.ti -1c +.RI "\fBServerConfig\fP ()" +.br +.ti -1c +.RI "void \fBClearStack\fP ()" +.br +.ti -1c +.RI "void \fBRead\fP (bool bail, \fBuserrec\fP *user)" +.br +.ti -1c +.RI "bool \fBLoadConf\fP (const char *filename, std::stringstream *target, std::stringstream *errorstream)" +.br +.ti -1c +.RI "int \fBConfValue\fP (char *tag, char *var, int index, char *result, std::stringstream *config)" +.br +.ti -1c +.RI "int \fBReadConf\fP (std::stringstream *\fBconfig_f\fP, const char *tag, const char *var, int index, char *result)" +.br +.ti -1c +.RI "int \fBConfValueEnum\fP (char *tag, std::stringstream *config)" +.br +.ti -1c +.RI "int \fBEnumConf\fP (std::stringstream *\fBconfig_f\fP, const char *tag)" +.br +.ti -1c +.RI "int \fBEnumValues\fP (std::stringstream *config, const char *tag, int index)" +.br +.in -1c +.SS "Public Attributes" + +.in +1c +.ti -1c +.RI "char \fBServerName\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBNetwork\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBServerDesc\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBAdminName\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBAdminEmail\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBAdminNick\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBdiepass\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBrestartpass\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBmotd\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBrules\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBPrefixQuit\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBDieValue\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBDNSServer\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBDisabledCommands\fP [MAXBUF]" +.br +.ti -1c +.RI "char \fBModPath\fP [1024]" +.br +.ti -1c +.RI "char \fBMyExecutable\fP [1024]" +.br +.ti -1c +.RI "FILE * \fBlog_file\fP" +.br +.ti -1c +.RI "bool \fBnofork\fP" +.br +.ti -1c +.RI "bool \fBunlimitcore\fP" +.br +.ti -1c +.RI "bool \fBAllowHalfop\fP" +.br +.ti -1c +.RI "int \fBdns_timeout\fP" +.br +.ti -1c +.RI "int \fBNetBufferSize\fP" +.br +.ti -1c +.RI "int \fBMaxConn\fP" +.br +.ti -1c +.RI "unsigned int \fBSoftLimit\fP" +.br +.ti -1c +.RI "int \fBMaxWhoResults\fP" +.br +.ti -1c +.RI "int \fBdebugging\fP" +.br +.ti -1c +.RI "int \fBLogLevel\fP" +.br +.ti -1c +.RI "int \fBDieDelay\fP" +.br +.ti -1c +.RI "char \fBaddrs\fP [MAXBUF][255]" +.br +.ti -1c +.RI "\fBfile_cache\fP \fBMOTD\fP" +.br +.ti -1c +.RI "\fBfile_cache\fP \fBRULES\fP" +.br +.ti -1c +.RI "char \fBPID\fP [1024]" +.br +.ti -1c +.RI "std::stringstream \fBconfig_f\fP" +.br +.ti -1c +.RI "\fBClassVector\fP \fBClasses\fP" +.br +.ti -1c +.RI "std::vector< \fBstd::string\fP > \fBmodule_names\fP" +.br +.in -1c +.SS "Private Member Functions" + +.in +1c +.ti -1c +.RI "int \fBfgets_safe\fP (char *buffer, size_t maxsize, FILE *&file)" +.br +.ti -1c +.RI "\fBstd::string\fP \fBConfProcess\fP (char *buffer, long linenumber, std::stringstream *errorstream, bool &error, \fBstd::string\fP filename)" +.br +.in -1c +.SS "Private Attributes" + +.in +1c +.ti -1c +.RI "std::vector< \fBstd::string\fP > \fBinclude_stack\fP" +.br +.in -1c +.SH "Detailed Description" +.PP +Definition at line 34 of file inspircd_io.h. +.SH "Constructor & Destructor Documentation" +.PP +.SS "ServerConfig::ServerConfig ()" +.PP +.SH "Member Function Documentation" +.PP +.SS "void ServerConfig::ClearStack ()" +.PP +Referenced by ConfigReader::ConfigReader(). +.SS "\fBstd::string\fP ServerConfig::ConfProcess (char * buffer, long linenumber, std::stringstream * errorstream, bool & error, \fBstd::string\fP filename)\fC [private]\fP" +.PP +.SS "int ServerConfig::ConfValue (char * tag, char * var, int index, char * result, std::stringstream * config)" +.PP +Referenced by userrec::HasPermission(). +.SS "int ServerConfig::ConfValueEnum (char * tag, std::stringstream * config)" +.PP +.SS "int ServerConfig::EnumConf (std::stringstream * config_f, const char * tag)" +.PP +Referenced by ConfigReader::Enumerate(). +.SS "int ServerConfig::EnumValues (std::stringstream * config, const char * tag, int index)" +.PP +Referenced by ConfigReader::EnumerateValues(). +.SS "int ServerConfig::fgets_safe (char * buffer, size_t maxsize, FILE *& file)\fC [private]\fP" +.PP +.SS "bool ServerConfig::LoadConf (const char * filename, std::stringstream * target, std::stringstream * errorstream)" +.PP +Referenced by ConfigReader::ConfigReader(). +.SS "void ServerConfig::Read (bool bail, \fBuserrec\fP * user)" +.PP +Referenced by Server::RehashServer(). +.SS "int ServerConfig::ReadConf (std::stringstream * config_f, const char * tag, const char * var, int index, char * result)" +.PP +Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue(). +.SH "Member Data Documentation" +.PP +.SS "char \fBServerConfig::addrs\fP[MAXBUF][255]" +.PP +Definition at line 70 of file inspircd_io.h. +.SS "char \fBServerConfig::AdminEmail\fP[MAXBUF]" +.PP +Definition at line 46 of file inspircd_io.h. +.SS "char \fBServerConfig::AdminName\fP[MAXBUF]" +.PP +Definition at line 45 of file inspircd_io.h. +.SS "char \fBServerConfig::AdminNick\fP[MAXBUF]" +.PP +Definition at line 47 of file inspircd_io.h. +.SS "bool \fBServerConfig::AllowHalfop\fP" +.PP +Definition at line 61 of file inspircd_io.h. +.SS "\fBClassVector\fP \fBServerConfig::Classes\fP" +.PP +Definition at line 75 of file inspircd_io.h. +.SS "std::stringstream \fBServerConfig::config_f\fP" +.PP +Definition at line 74 of file inspircd_io.h. +.PP +Referenced by userrec::HasPermission(). +.SS "int \fBServerConfig::debugging\fP" +.PP +Definition at line 67 of file inspircd_io.h. +.SS "int \fBServerConfig::DieDelay\fP" +.PP +Definition at line 69 of file inspircd_io.h. +.SS "char \fBServerConfig::diepass\fP[MAXBUF]" +.PP +Definition at line 48 of file inspircd_io.h. +.SS "char \fBServerConfig::DieValue\fP[MAXBUF]" +.PP +Definition at line 53 of file inspircd_io.h. +.SS "char \fBServerConfig::DisabledCommands\fP[MAXBUF]" +.PP +Definition at line 55 of file inspircd_io.h. +.SS "int \fBServerConfig::dns_timeout\fP" +.PP +Definition at line 62 of file inspircd_io.h. +.SS "char \fBServerConfig::DNSServer\fP[MAXBUF]" +.PP +Definition at line 54 of file inspircd_io.h. +.SS "std::vector<\fBstd::string\fP> \fBServerConfig::include_stack\fP\fC [private]\fP" +.PP +Definition at line 37 of file inspircd_io.h. +.SS "FILE* \fBServerConfig::log_file\fP" +.PP +Definition at line 58 of file inspircd_io.h. +.SS "int \fBServerConfig::LogLevel\fP" +.PP +Definition at line 68 of file inspircd_io.h. +.SS "int \fBServerConfig::MaxConn\fP" +.PP +Definition at line 64 of file inspircd_io.h. +.SS "int \fBServerConfig::MaxWhoResults\fP" +.PP +Definition at line 66 of file inspircd_io.h. +.SS "char \fBServerConfig::ModPath\fP[1024]" +.PP +Definition at line 56 of file inspircd_io.h. +.SS "std::vector<\fBstd::string\fP> \fBServerConfig::module_names\fP" +.PP +Definition at line 76 of file inspircd_io.h. +.PP +Referenced by Server::FindModule(). +.SS "\fBfile_cache\fP \fBServerConfig::MOTD\fP" +.PP +Definition at line 71 of file inspircd_io.h. +.SS "char \fBServerConfig::motd\fP[MAXBUF]" +.PP +Definition at line 50 of file inspircd_io.h. +.SS "char \fBServerConfig::MyExecutable\fP[1024]" +.PP +Definition at line 57 of file inspircd_io.h. +.SS "int \fBServerConfig::NetBufferSize\fP" +.PP +Definition at line 63 of file inspircd_io.h. +.SS "char \fBServerConfig::Network\fP[MAXBUF]" +.PP +Definition at line 43 of file inspircd_io.h. +.SS "bool \fBServerConfig::nofork\fP" +.PP +Definition at line 59 of file inspircd_io.h. +.SS "char \fBServerConfig::PID\fP[1024]" +.PP +Definition at line 73 of file inspircd_io.h. +.SS "char \fBServerConfig::PrefixQuit\fP[MAXBUF]" +.PP +Definition at line 52 of file inspircd_io.h. +.SS "char \fBServerConfig::restartpass\fP[MAXBUF]" +.PP +Definition at line 49 of file inspircd_io.h. +.SS "\fBfile_cache\fP \fBServerConfig::RULES\fP" +.PP +Definition at line 72 of file inspircd_io.h. +.SS "char \fBServerConfig::rules\fP[MAXBUF]" +.PP +Definition at line 51 of file inspircd_io.h. +.SS "char \fBServerConfig::ServerDesc\fP[MAXBUF]" +.PP +Definition at line 44 of file inspircd_io.h. +.SS "char \fBServerConfig::ServerName\fP[MAXBUF]" +.PP +Definition at line 42 of file inspircd_io.h. +.PP +Referenced by userrec::userrec(). +.SS "unsigned int \fBServerConfig::SoftLimit\fP" +.PP +Definition at line 65 of file inspircd_io.h. +.SS "bool \fBServerConfig::unlimitcore\fP" +.PP +Definition at line 60 of file inspircd_io.h. + +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/SocketEngine.3 b/docs/man/man3/SocketEngine.3 index 232d8f8cd..07daeff47 100644 --- a/docs/man/man3/SocketEngine.3 +++ b/docs/man/man3/SocketEngine.3 @@ -1,4 +1,4 @@ -.TH "SocketEngine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "SocketEngine" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -192,7 +192,7 @@ Referenced by InspSocket::Poll(), and Server::UserToPseudo(). 120 } 121 #ifdef USE_KQUEUE 122 struct kevent ke; -123 EV_SET(&ke, fd, ref[fd] && X_READBIT ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL); +123 EV_SET(&ke, fd, ref[fd] & X_READBIT ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL); 124 int i = kevent(EngineHandle, &ke, 1, 0, 0, NULL); 125 if (i == -1) 126 { @@ -220,21 +220,21 @@ Referenced by InspSocket::Poll(), and Server::UserToPseudo(). .PP Returns the socket engines name This returns the name of the engine for use in /VERSION responses. .PP -Definition at line 196 of file socketengine.cpp. +Definition at line 193 of file socketengine.cpp. .PP .nf -197 { -198 #ifdef USE_SELECT -199 return 'select'; +194 { +195 #ifdef USE_SELECT +196 return 'select'; +197 #endif +198 #ifdef USE_KQUEUE +199 return 'kqueue'; 200 #endif -201 #ifdef USE_KQUEUE -202 return 'kqueue'; +201 #ifdef USE_EPOLL +202 return 'epoll'; 203 #endif -204 #ifdef USE_EPOLL -205 return 'epoll'; -206 #endif -207 return 'misconfigured'; -208 } +204 return 'misconfigured'; +205 } .fi .PP .SS "char SocketEngine::GetType (int fd)" @@ -264,7 +264,7 @@ Please note that this doesnt wait long, only a couple of milliseconds. It return .PP Definition at line 146 of file socketengine.cpp. .PP -References DEBUG, EngineHandle, fds, ke_list, ref, ts, and X_READBIT. +References EngineHandle, fds, ke_list, ref, ts, and X_READBIT. .PP .nf 147 { @@ -294,27 +294,24 @@ References DEBUG, EngineHandle, fds, ke_list, ref, ts, and X_READBIT. 171 for (unsigned int a = 0; a < fds.size(); a++) 172 { 173 if ((FD_ISSET (fds[a], &rfdset)) || (FD_ISSET (fds[a], &wfdset))) -174 { -175 log(DEBUG,'...Adding active %d',fds[a]); -176 fdlist.push_back(fds[a]); -177 } -178 } -179 } -180 #endif -181 #ifdef USE_KQUEUE -182 ts.tv_nsec = 10000L; -183 ts.tv_sec = 0; -184 int i = kevent(EngineHandle, NULL, 0, &ke_list[0], 65535, &ts); -185 for (int j = 0; j < i; j++) -186 fdlist.push_back(ke_list[j].ident); -187 #endif -188 #ifdef USE_EPOLL -189 int i = epoll_wait(EngineHandle, events, 65535, 100); -190 for (int j = 0; j < i; j++) -191 fdlist.push_back(events[j].data.fd); -192 #endif -193 return true; -194 } +174 fdlist.push_back(fds[a]); +175 } +176 } +177 #endif +178 #ifdef USE_KQUEUE +179 ts.tv_nsec = 10000L; +180 ts.tv_sec = 0; +181 int i = kevent(EngineHandle, NULL, 0, &ke_list[0], 65535, &ts); +182 for (int j = 0; j < i; j++) +183 fdlist.push_back(ke_list[j].ident); +184 #endif +185 #ifdef USE_EPOLL +186 int i = epoll_wait(EngineHandle, events, 65535, 100); +187 for (int j = 0; j < i; j++) +188 fdlist.push_back(events[j].data.fd); +189 #endif +190 return true; +191 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/Version.3 b/docs/man/man3/Version.3 index 049c18e95..5cc2a2b77 100644 --- a/docs/man/man3/Version.3 +++ b/docs/man/man3/Version.3 @@ -1,4 +1,4 @@ -.TH "Version" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "Version" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -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 240 of file modules.cpp. +Definition at line 167 of file modules.cpp. .PP .nf -240 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; +167 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/WhoWasUser.3 b/docs/man/man3/WhoWasUser.3 index 49e8e61ea..77a8d08e4 100644 --- a/docs/man/man3/WhoWasUser.3 +++ b/docs/man/man3/WhoWasUser.3 @@ -1,4 +1,4 @@ -.TH "WhoWasUser" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "WhoWasUser" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/XLine.3 b/docs/man/man3/XLine.3 index 0c98f6fb8..8eed9ef38 100644 --- a/docs/man/man3/XLine.3 +++ b/docs/man/man3/XLine.3 @@ -1,4 +1,4 @@ -.TH "XLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "XLine" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -42,36 +42,36 @@ Inherited by \fBELine\fP, \fBGLine\fP, \fBKLine\fP, \fBQLine\fP, and \fBZLine\fP .PP XLine is the base class for ban lines such as G lines and K lines. .PP -Definition at line 34 of file xline.h. +Definition at line 39 of file xline.h. .SH "Member Data Documentation" .PP .SS "long \fBXLine::duration\fP" .PP The duration of the ban, or 0 if permenant. .PP -Definition at line 44 of file xline.h. +Definition at line 49 of file xline.h. .SS "long \fBXLine::n_matches\fP" .PP Number of times the core matches the ban, for statistics. .PP -Definition at line 56 of file xline.h. +Definition at line 61 of file xline.h. .SS "char \fBXLine::reason\fP[MAXBUF]" .PP Reason for the ban. .PP -Definition at line 52 of file xline.h. +Definition at line 57 of file xline.h. .SS "time_t \fBXLine::set_time\fP" .PP The time the line was added. .PP -Definition at line 40 of file xline.h. +Definition at line 45 of file xline.h. .SS "char \fBXLine::source\fP[256]" .PP Source of the ban. .PP This can be a servername or an oper nickname .PP -Definition at line 48 of file xline.h. +Definition at line 53 of file xline.h. .SH "Author" .PP diff --git a/docs/man/man3/ZLine.3 b/docs/man/man3/ZLine.3 index c52b909bd..0bd28d854 100644 --- a/docs/man/man3/ZLine.3 +++ b/docs/man/man3/ZLine.3 @@ -1,4 +1,4 @@ -.TH "ZLine" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ZLine" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -28,21 +28,21 @@ Inherits \fBXLine\fP. .PP ZLine class. .PP -Definition at line 93 of file xline.h. +Definition at line 98 of file xline.h. .SH "Member Data Documentation" .PP .SS "char \fBZLine::ipaddr\fP[40]" .PP IP Address (xx.yy.zz.aa) to match against May contain wildcards. .PP -Definition at line 99 of file xline.h. +Definition at line 104 of file xline.h. .SS "bool \fBZLine::is_global\fP" .PP Set if this is a global Z:line (e.g. .PP it came from another server) .PP -Definition at line 103 of file xline.h. +Definition at line 108 of file xline.h. .SH "Author" .PP diff --git a/docs/man/man3/_home_.3 b/docs/man/man3/_home_.3 index eaef28c19..854a16ffe 100644 --- a/docs/man/man3/_home_.3 +++ b/docs/man/man3/_home_.3 @@ -1,4 +1,4 @@ -.TH "/home/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/ Directory Reference" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/_home_brain_.3 b/docs/man/man3/_home_brain_.3 index 51ba923b1..8d5e2c76e 100644 --- a/docs/man/man3/_home_brain_.3 +++ b/docs/man/man3/_home_brain_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/ Directory Reference" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/_home_brain_inspircd-cvs_.3 b/docs/man/man3/_home_brain_inspircd-cvs_.3 index a70c8e255..2c61b2388 100644 --- a/docs/man/man3/_home_brain_inspircd-cvs_.3 +++ b/docs/man/man3/_home_brain_inspircd-cvs_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/inspircd-cvs/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/inspircd-cvs/ Directory Reference" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_.3 b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_.3 index 19a4103cb..e1366b44a 100644 --- a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_.3 +++ b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/inspircd-cvs/inspircd/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/inspircd-cvs/inspircd/ Directory Reference" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME 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 750f41485..3f59aa590 100644 --- a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_include_.3 +++ b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_include_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/inspircd-cvs/inspircd/include/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/inspircd-cvs/inspircd/include/ Directory Reference" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -28,6 +28,9 @@ .RI "file \fBhashcomp.h\fP" .br .ti -1c +.RI "file \fBinspircd_io.h\fP" +.br +.ti -1c .RI "file \fBmessage.h\fP" .br .ti -1c @@ -43,6 +46,12 @@ .RI "file \fBsocketengine.h\fP" .br .ti -1c +.RI "file \fBtypedefs.h\fP" +.br +.ti -1c +.RI "file \fBuserprocess.h\fP" +.br +.ti -1c .RI "file \fBusers.h\fP" .br .ti -1c diff --git a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_src_.3 b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_src_.3 index c79335d94..846f10c4e 100644 --- a/docs/man/man3/_home_brain_inspircd-cvs_inspircd_src_.3 +++ b/docs/man/man3/_home_brain_inspircd-cvs_inspircd_src_.3 @@ -1,4 +1,4 @@ -.TH "/home/brain/inspircd-cvs/inspircd/src/ Directory Reference" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "/home/brain/inspircd-cvs/inspircd/src/ Directory Reference" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/base.h.3 b/docs/man/man3/base.h.3 index b455c26f7..1fbc395b3 100644 --- a/docs/man/man3/base.h.3 +++ b/docs/man/man3/base.h.3 @@ -1,4 +1,4 @@ -.TH "base.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "base.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/channels.cpp.3 b/docs/man/man3/channels.cpp.3 index 710a729f5..429b0ccdd 100644 --- a/docs/man/man3/channels.cpp.3 +++ b/docs/man/man3/channels.cpp.3 @@ -1,4 +1,4 @@ -.TH "channels.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "channels.cpp" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -77,6 +77,9 @@ channels.cpp \- .in +1c .ti -1c +.RI "\fBServerConfig\fP * \fBConfig\fP" +.br +.ti -1c .RI "int \fBMODCOUNT\fP = -1" .br .ti -1c @@ -86,90 +89,24 @@ channels.cpp \- .RI "std::vector< \fBircd_module\fP * > \fBfactory\fP" .br .ti -1c -.RI "int \fBLogLevel\fP" -.br -.ti -1c -.RI "char \fBServerName\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBNetwork\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBServerDesc\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBAdminName\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBAdminEmail\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBAdminNick\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBdiepass\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBrestartpass\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBmotd\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBrules\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBlist\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBPrefixQuit\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBDieValue\fP [MAXBUF]" -.br -.ti -1c -.RI "int \fBdebugging\fP" -.br -.ti -1c .RI "int \fBWHOWAS_STALE\fP" .br .ti -1c .RI "int \fBWHOWAS_MAX\fP" .br .ti -1c -.RI "int \fBDieDelay\fP" -.br -.ti -1c .RI "time_t \fBstartup_time\fP" .br .ti -1c -.RI "int \fBNetBufferSize\fP" -.br -.ti -1c -.RI "int \fBMaxWhoResults\fP" -.br -.ti -1c -.RI "time_t \fBnb_start\fP" -.br -.ti -1c .RI "std::vector< \fBstd::string\fP > \fBmodule_names\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 "std::stringstream \fBconfig_f\fP" .br .ti -1c -.RI "FILE * \fBlog_file\fP" -.br -.ti -1c .RI "time_t \fBTIME\fP" .br .ti -1c @@ -183,76 +120,29 @@ channels.cpp \- Definition at line 53 of file channels.cpp. .SH "Variable Documentation" .PP -.SS "char \fBAdminEmail\fP[MAXBUF]" -.PP -.SS "char \fBAdminName\fP[MAXBUF]" -.PP -.SS "char \fBAdminNick\fP[MAXBUF]" -.PP .SS "int \fBboundPortCount\fP" .PP +.SS "\fBServerConfig\fP* \fBConfig\fP" +.PP .SS "std::stringstream \fBconfig_f\fP" .PP -Referenced by userrec::HasPermission(). .SS "std::vector<\fBModeParameter\fP> \fBcustom_mode_params\fP" .PP -Definition at line 99 of file channels.cpp. +Definition at line 71 of file channels.cpp. .PP Referenced by chanrec::GetModeParameter(), and chanrec::SetCustomModeParam(). -.SS "int \fBdebugging\fP" -.PP -.SS "int \fBDieDelay\fP" -.PP -.SS "char \fBdiepass\fP[MAXBUF]" -.PP -.SS "char \fBDieValue\fP[MAXBUF]" -.PP .SS "std::vector<\fBircd_module\fP*> factory" .PP -.SS "char \fBlist\fP[MAXBUF]" -.PP -Referenced by Server::GetUsers(). -.SS "FILE* \fBlog_file\fP" -.PP -.SS "int \fBLogLevel\fP" -.PP -.SS "int \fBMaxWhoResults\fP" -.PP -Definition at line 81 of file channels.cpp. .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 1005 of file modules.cpp. +Definition at line 933 of file modules.cpp. .PP Referenced by Server::FindModule(). .SS "std::vector<\fBstd::string\fP> \fBmodule_names\fP" .PP -Referenced by Server::FindModule(). .SS "std::vector<\fBModule\fP*> modules" .PP Referenced by Server::FindModule(). -.SS "char \fBmotd\fP[MAXBUF]" -.PP -.SS "time_t \fBnb_start\fP" -.PP -.SS "int \fBNetBufferSize\fP" -.PP -.SS "char \fBNetwork\fP[MAXBUF]" -.PP -.SS "int \fBportCount\fP" -.PP -.SS "int \fBports\fP[MAXSOCKS]" -.PP -.SS "char \fBPrefixQuit\fP[MAXBUF]" -.PP -.SS "char \fBrestartpass\fP[MAXBUF]" -.PP -.SS "char \fBrules\fP[MAXBUF]" -.PP -.SS "char \fBServerDesc\fP[MAXBUF]" -.PP -.SS "char \fBServerName\fP[MAXBUF]" -.PP -Referenced by userrec::userrec(). .SS "time_t \fBstartup_time\fP" .PP .SS "time_t \fBTIME\fP" diff --git a/docs/man/man3/channels.h.3 b/docs/man/man3/channels.h.3 index 8665d0189..f1fb458f0 100644 --- a/docs/man/man3/channels.h.3 +++ b/docs/man/man3/channels.h.3 @@ -1,4 +1,4 @@ -.TH "channels.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "channels.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/chanrec.3 b/docs/man/man3/chanrec.3 index c02b05305..3a6a2b8d3 100644 --- a/docs/man/man3/chanrec.3 +++ b/docs/man/man3/chanrec.3 @@ -1,4 +1,4 @@ -.TH "chanrec" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "chanrec" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -116,21 +116,21 @@ Definition at line 101 of file channels.h. .PP Creates a channel record and initialises it with default values. .PP -Definition at line 101 of file channels.cpp. +Definition at line 73 of file channels.cpp. .PP References binarymodes, created, custom_modes, internal_userlist, key, limit, name, setby, topic, and topicset. .PP .nf -102 { -103 strcpy(name,''); -104 strcpy(custom_modes,''); -105 strcpy(topic,''); -106 strcpy(setby,''); -107 strcpy(key,''); -108 created = topicset = limit = 0; -109 binarymodes = 0; -110 internal_userlist.clear(); -111 } +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 } .fi .PP .SS "virtual chanrec::~chanrec ()\fC [inline, virtual]\fP" @@ -154,15 +154,15 @@ 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 194 of file channels.cpp. +Definition at line 166 of file channels.cpp. .PP References DEBUG, and internal_userlist. .PP .nf -195 { -196 internal_userlist.push_back(castuser); -197 log(DEBUG,'Added casted user to channel's internal list'); -198 } +167 { +168 internal_userlist.push_back(castuser); +169 log(DEBUG,'Added casted user to channel's internal list'); +170 } .fi .PP .SS "void chanrec::DelUser (char * castuser)" @@ -176,23 +176,23 @@ 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 200 of file channels.cpp. +Definition at line 172 of file channels.cpp. .PP References DEBUG, internal_userlist, and name. .PP .nf -201 { -202 for (std::vector::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) -203 { -204 if (*a == castuser) -205 { -206 log(DEBUG,'Removed casted user from channel's internal list'); -207 internal_userlist.erase(a); -208 return; -209 } -210 } -211 log(DEBUG,'BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!',name); -212 } +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 } .fi .PP .SS "\fBstd::string\fP chanrec::GetModeParameter (char mode)" @@ -213,24 +213,24 @@ The parameter for this mode is returned, or an empty string .PP .PP -Definition at line 174 of file channels.cpp. +Definition at line 146 of file channels.cpp. .PP References custom_mode_params. .PP .nf -175 { -176 if (custom_mode_params.size()) -177 { -178 for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -179 { -180 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -181 { -182 return i->parameter; -183 } -184 } -185 } -186 return ''; -187 } +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 } .fi .PP .SS "long chanrec::GetUserCounter ()" @@ -244,12 +244,12 @@ The number of users on this channel .PP .PP -Definition at line 189 of file channels.cpp. +Definition at line 161 of file channels.cpp. .PP .nf -190 { -191 return (this->internal_userlist.size()); -192 } +162 { +163 return (this->internal_userlist.size()); +164 } .fi .PP .SS "std::vector< char * > * chanrec::GetUsers ()" @@ -265,16 +265,16 @@ This function returns a vector of userrec pointers, each of which has been caste .PP .PP -Definition at line 214 of file channels.cpp. +Definition at line 186 of file channels.cpp. .PP References internal_userlist. .PP Referenced by Server::GetUsers(). .PP .nf -215 { -216 return &internal_userlist; -217 } +187 { +188 return &internal_userlist; +189 } .fi .PP .SS "bool chanrec::IsCustomModeSet (char mode)" @@ -293,12 +293,12 @@ True if the custom mode is set, false if otherwise .PP .PP -Definition at line 169 of file channels.cpp. +Definition at line 141 of file channels.cpp. .PP .nf -170 { -171 return (strchr(this->custom_modes,mode)); -172 } +142 { +143 return (strchr(this->custom_modes,mode)); +144 } .fi .PP .SS "void chanrec::SetCustomMode (char mode, bool mode_on)" @@ -314,33 +314,33 @@ Sets or unsets a custom mode in the channels info. .PP .PP -Definition at line 113 of file channels.cpp. +Definition at line 85 of file channels.cpp. .PP References custom_modes, DEBUG, and SetCustomModeParam(). .PP .nf -114 { -115 if (mode_on) { -116 static char m[3]; -117 m[0] = mode; -118 m[1] = '\0'; -119 if (!strchr(this->custom_modes,mode)) -120 { -121 strlcat(custom_modes,m,MAXMODES); -122 } -123 log(DEBUG,'Custom mode %c set',mode); -124 } -125 else { -126 -127 std::string a = this->custom_modes; -128 int pos = a.find(mode); -129 a.erase(pos,1); -130 strncpy(this->custom_modes,a.c_str(),MAXMODES); -131 -132 log(DEBUG,'Custom mode %c removed: modelist='%s'',mode,this->custom_modes); -133 this->SetCustomModeParam(mode,'',false); -134 } -135 } +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 } .fi .PP .SS "void chanrec::SetCustomModeParam (char mode, char * parameter, bool mode_on)" @@ -358,42 +358,42 @@ Sets or unsets the parameters for a custom mode in a channels info. .PP .PP -Definition at line 138 of file channels.cpp. +Definition at line 110 of file channels.cpp. .PP References ModeParameter::channel, custom_mode_params, DEBUG, ModeParameter::mode, and ModeParameter::parameter. .PP Referenced by SetCustomMode(). .PP .nf -139 { -140 -141 log(DEBUG,'SetCustomModeParam called'); -142 ModeParameter M; -143 M.mode = mode; -144 strlcpy(M.channel,this->name,CHANMAX); -145 strlcpy(M.parameter,parameter,MAXBUF); -146 if (mode_on) -147 { -148 log(DEBUG,'Custom mode parameter %c %s added',mode,parameter); -149 custom_mode_params.push_back(M); -150 } -151 else -152 { -153 if (custom_mode_params.size()) -154 { -155 for (vector::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -156 { -157 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -158 { -159 log(DEBUG,'Custom mode parameter %c %s removed',mode,parameter); -160 custom_mode_params.erase(i); -161 return; -162 } -163 } -164 } -165 log(DEBUG,'*** BUG *** Attempt to remove non-existent mode parameter!'); -166 } -167 } +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 } .fi .PP .SH "Member Data Documentation" diff --git a/docs/man/man3/classbase.3 b/docs/man/man3/classbase.3 index 88d263294..3982b20ac 100644 --- a/docs/man/man3/classbase.3 +++ b/docs/man/man3/classbase.3 @@ -1,4 +1,4 @@ -.TH "classbase" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "classbase" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -10,7 +10,7 @@ classbase \- The base class for all inspircd classes. .PP \fC#include \fP .PP -Inherited by \fBAdmin\fP, \fBConfigReader\fP, \fBConnectClass\fP, \fBExtensible\fP, \fBExtMode\fP, \fBFileReader\fP, \fBHostItem\fP, \fBInvited\fP, \fBModeParameter\fP, \fBModule\fP, \fBModuleFactory\fP, \fBModuleMessage\fP, \fBServer\fP, \fBucrec\fP, \fBVersion\fP, and \fBXLine\fP. +Inherited by \fBAdmin\fP, \fBConfigReader\fP, \fBConnectClass\fP, \fBExtensible\fP, \fBExtMode\fP, \fBFileReader\fP, \fBHostItem\fP, \fBInvited\fP, \fBModeParameter\fP, \fBModule\fP, \fBModuleFactory\fP, \fBModuleMessage\fP, \fBServer\fP, \fBServerConfig\fP, \fBucrec\fP, \fBVersion\fP, and \fBXLine\fP. .PP .SS "Public Member Functions" diff --git a/docs/man/man3/command_t.3 b/docs/man/man3/command_t.3 index a7338bde8..d9c551c30 100644 --- a/docs/man/man3/command_t.3 +++ b/docs/man/man3/command_t.3 @@ -1,4 +1,4 @@ -.TH "command_t" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "command_t" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/commands.h.3 b/docs/man/man3/commands.h.3 index 6655b2170..338196308 100644 --- a/docs/man/man3/commands.h.3 +++ b/docs/man/man3/commands.h.3 @@ -1,4 +1,4 @@ -.TH "commands.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "commands.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/connection.3 b/docs/man/man3/connection.3 index 36aaf10c6..46175dd7f 100644 --- a/docs/man/man3/connection.3 +++ b/docs/man/man3/connection.3 @@ -1,4 +1,4 @@ -.TH "connection" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "connection" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/connection.h.3 b/docs/man/man3/connection.h.3 index c53c68eb5..9cd67bf20 100644 --- a/docs/man/man3/connection.h.3 +++ b/docs/man/man3/connection.h.3 @@ -1,4 +1,4 @@ -.TH "connection.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "connection.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/ctables.h.3 b/docs/man/man3/ctables.h.3 index 6af542e0a..f1b2cc9be 100644 --- a/docs/man/man3/ctables.h.3 +++ b/docs/man/man3/ctables.h.3 @@ -1,4 +1,4 @@ -.TH "ctables.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ctables.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/dns.h.3 b/docs/man/man3/dns.h.3 index e17b454c1..b22f0409c 100644 --- a/docs/man/man3/dns.h.3 +++ b/docs/man/man3/dns.h.3 @@ -1,4 +1,4 @@ -.TH "dns.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "dns.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/dns_ip4list.3 b/docs/man/man3/dns_ip4list.3 index 2d199c572..61d591237 100644 --- a/docs/man/man3/dns_ip4list.3 +++ b/docs/man/man3/dns_ip4list.3 @@ -1,4 +1,4 @@ -.TH "dns_ip4list" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "dns_ip4list" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/hashcomp.h.3 b/docs/man/man3/hashcomp.h.3 index 935f03185..751489424 100644 --- a/docs/man/man3/hashcomp.h.3 +++ b/docs/man/man3/hashcomp.h.3 @@ -1,4 +1,4 @@ -.TH "hashcomp.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "hashcomp.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/inspircd_io.h.3 b/docs/man/man3/inspircd_io.h.3 new file mode 100644 index 000000000..b832da93e --- /dev/null +++ b/docs/man/man3/inspircd_io.h.3 @@ -0,0 +1,110 @@ +.TH "inspircd_io.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +inspircd_io.h \- +.SH SYNOPSIS +.br +.PP +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include \fP +.br +\fC#include 'inspircd.h'\fP +.br +\fC#include 'globals.h'\fP +.br + +.SS "Classes" + +.in +1c +.ti -1c +.RI "class \fBServerConfig\fP" +.br +.in -1c +.SS "Defines" + +.in +1c +.ti -1c +.RI "#define \fBDEBUG\fP 10" +.br +.ti -1c +.RI "#define \fBVERBOSE\fP 20" +.br +.ti -1c +.RI "#define \fBDEFAULT\fP 30" +.br +.ti -1c +.RI "#define \fBSPARSE\fP 40" +.br +.ti -1c +.RI "#define \fBNONE\fP 50" +.br +.in -1c +.SS "Functions" + +.in +1c +.ti -1c +.RI "void \fBExit\fP (int)" +.br +.ti -1c +.RI "void \fBStart\fP (void)" +.br +.ti -1c +.RI "int \fBDaemonSeed\fP (void)" +.br +.ti -1c +.RI "bool \fBFileExists\fP (const char *file)" +.br +.ti -1c +.RI "int \fBOpenTCPSocket\fP (void)" +.br +.ti -1c +.RI "int \fBBindSocket\fP (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char *addr)" +.br +.ti -1c +.RI "void \fBWritePID\fP (\fBstd::string\fP filename)" +.br +.in -1c +.SH "Define Documentation" +.PP +.SS "#define DEBUG 10" +.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(). +.SS "#define DEFAULT 30" +.PP +Definition at line 30 of file inspircd_io.h. +.SS "#define NONE 50" +.PP +Definition at line 32 of file inspircd_io.h. +.SS "#define SPARSE 40" +.PP +Definition at line 31 of file inspircd_io.h. +.SS "#define VERBOSE 20" +.PP +Definition at line 29 of file inspircd_io.h. +.SH "Function Documentation" +.PP +.SS "int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char * addr)" +.PP +Referenced by InspSocket::InspSocket(). +.SS "int DaemonSeed (void)" +.PP +.SS "void Exit (int)" +.PP +.SS "bool FileExists (const char * file)" +.PP +.SS "int OpenTCPSocket (void)" +.PP +Referenced by InspSocket::InspSocket(). +.SS "void Start (void)" +.PP +.SS "void WritePID (\fBstd::string\fP filename)" +.PP +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/irc.3 b/docs/man/man3/irc.3 index 0e751fd80..71dc962ae 100644 --- a/docs/man/man3/irc.3 +++ b/docs/man/man3/irc.3 @@ -1,4 +1,4 @@ -.TH "irc" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "irc" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/irc_InAddr_HashComp.3 b/docs/man/man3/irc_InAddr_HashComp.3 index 3ae4dda7f..e06813d73 100644 --- a/docs/man/man3/irc_InAddr_HashComp.3 +++ b/docs/man/man3/irc_InAddr_HashComp.3 @@ -1,4 +1,4 @@ -.TH "irc::InAddr_HashComp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "irc::InAddr_HashComp" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/irc_StrHashComp.3 b/docs/man/man3/irc_StrHashComp.3 index f5f557969..25f8918f9 100644 --- a/docs/man/man3/irc_StrHashComp.3 +++ b/docs/man/man3/irc_StrHashComp.3 @@ -1,4 +1,4 @@ -.TH "irc::StrHashComp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "irc::StrHashComp" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/irc_irc_char_traits.3 b/docs/man/man3/irc_irc_char_traits.3 index b67ec6d03..5001fb780 100644 --- a/docs/man/man3/irc_irc_char_traits.3 +++ b/docs/man/man3/irc_irc_char_traits.3 @@ -1,4 +1,4 @@ -.TH "irc::irc_char_traits" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "irc::irc_char_traits" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/message.h.3 b/docs/man/man3/message.h.3 index 75ecb0ac3..719defbf5 100644 --- a/docs/man/man3/message.h.3 +++ b/docs/man/man3/message.h.3 @@ -1,4 +1,4 @@ -.TH "message.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "message.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -75,7 +75,7 @@ message.h \- .RI "void \fBTidyBan\fP (char *ban)" .br .ti -1c -.RI "char * \fBchlist\fP (\fBuserrec\fP *user, \fBuserrec\fP *source)" +.RI "\fBstd::string\fP \fBchlist\fP (\fBuserrec\fP *user, \fBuserrec\fP *source)" .br .ti -1c .RI "void \fBsend_network_quit\fP (const char *nick, const char *reason)" @@ -93,7 +93,7 @@ Referenced by Server::ChangeHost(). .SS "void ChangeName (\fBuserrec\fP * user, const char * gecos)" .PP Referenced by Server::ChangeGECOS(). -.SS "char* chlist (\fBuserrec\fP * user, \fBuserrec\fP * source)" +.SS "\fBstd::string\fP chlist (\fBuserrec\fP * user, \fBuserrec\fP * source)" .PP .SS "void chop (char * str)" .PP diff --git a/docs/man/man3/mode.h.3 b/docs/man/man3/mode.h.3 index 02d665158..19df0b06d 100644 --- a/docs/man/man3/mode.h.3 +++ b/docs/man/man3/mode.h.3 @@ -1,4 +1,4 @@ -.TH "mode.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "mode.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/modules.cpp.3 b/docs/man/man3/modules.cpp.3 index 0abe14ea7..2b4dae325 100644 --- a/docs/man/man3/modules.cpp.3 +++ b/docs/man/man3/modules.cpp.3 @@ -1,4 +1,4 @@ -.TH "modules.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "modules.cpp" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -62,39 +62,9 @@ modules.cpp \- .br \fC#include 'socketengine.h'\fP .br - -.SS "Classes" - -.in +1c -.ti -1c -.RI "class \fBExtMode\fP" +\fC#include 'typedefs.h'\fP .br -.in -1c -.SS "Typedefs" -.in +1c -.ti -1c -.RI "typedef nspace::hash_map< \fBstd::string\fP, \fBuserrec\fP *, nspace::hash< \fBstring\fP >, \fBirc::StrHashComp\fP > \fBuser_hash\fP" -.br -.ti -1c -.RI "typedef nspace::hash_map< \fBstd::string\fP, \fBchanrec\fP *, nspace::hash< \fBstring\fP >, \fBirc::StrHashComp\fP > \fBchan_hash\fP" -.br -.ti -1c -.RI "typedef nspace::hash_map< in_addr, \fBstring\fP *, nspace::hash< in_addr >, \fBirc::InAddr_HashComp\fP > \fBaddress_cache\fP" -.br -.ti -1c -.RI "typedef nspace::hash_map< \fBstd::string\fP, \fBWhoWasUser\fP *, nspace::hash< \fBstring\fP >, \fBirc::StrHashComp\fP > \fBwhowas_hash\fP" -.br -.ti -1c -.RI "typedef std::deque< \fBcommand_t\fP > \fBcommand_table\fP" -.br -.ti -1c -.RI "typedef std::vector< \fBExtMode\fP > \fBExtModeList\fP" -.br -.ti -1c -.RI "typedef ExtModeList::iterator \fBExtModeListIter\fP" -.br -.in -1c .SS "Functions" .in +1c @@ -133,6 +103,9 @@ modules.cpp \- .RI "\fBSocketEngine\fP * \fBSE\fP" .br .ti -1c +.RI "\fBServerConfig\fP * \fBConfig\fP" +.br +.ti -1c .RI "int \fBMODCOUNT\fP = -1" .br .ti -1c @@ -142,84 +115,21 @@ modules.cpp \- .RI "std::vector< \fBircd_module\fP * > \fBfactory\fP" .br .ti -1c -.RI "std::vector< \fBstd::string\fP > \fBinclude_stack\fP" -.br -.ti -1c .RI "std::vector< \fBInspSocket\fP * > \fBmodule_sockets\fP" .br .ti -1c .RI "time_t \fBTIME\fP" .br .ti -1c -.RI "int \fBLogLevel\fP" -.br -.ti -1c -.RI "char \fBServerName\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBNetwork\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBServerDesc\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBAdminName\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBAdminEmail\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBAdminNick\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBdiepass\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBrestartpass\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBmotd\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBrules\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBlist\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBPrefixQuit\fP [MAXBUF]" -.br -.ti -1c -.RI "char \fBDieValue\fP [MAXBUF]" -.br -.ti -1c -.RI "int \fBdebugging\fP" -.br -.ti -1c .RI "int \fBWHOWAS_STALE\fP" .br .ti -1c .RI "int \fBWHOWAS_MAX\fP" .br .ti -1c -.RI "int \fBDieDelay\fP" -.br -.ti -1c .RI "time_t \fBstartup_time\fP" .br .ti -1c -.RI "int \fBNetBufferSize\fP" -.br -.ti -1c -.RI "int \fBMaxWhoResults\fP" -.br -.ti -1c -.RI "time_t \fBnb_start\fP" -.br -.ti -1c -.RI "std::vector< \fBstd::string\fP > \fBmodule_names\fP" -.br -.ti -1c .RI "int \fBboundPortCount\fP" .br .ti -1c @@ -229,12 +139,6 @@ modules.cpp \- .RI "int \fBports\fP [MAXSOCKS]" .br .ti -1c -.RI "std::stringstream \fBconfig_f\fP" -.br -.ti -1c -.RI "FILE * \fBlog_file\fP" -.br -.ti -1c .RI "\fBuserrec\fP * \fBfd_ref_table\fP [65536]" .br .ti -1c @@ -250,192 +154,157 @@ modules.cpp \- .RI "\fBcommand_table\fP \fBcmdlist\fP" .br .ti -1c -.RI "\fBfile_cache\fP \fBMOTD\fP" -.br -.ti -1c -.RI "\fBfile_cache\fP \fBRULES\fP" -.br -.ti -1c .RI "\fBaddress_cache\fP \fBIP\fP" .br .ti -1c .RI "\fBExtModeList\fP \fBEMode\fP" .br .in -1c -.SH "Typedef Documentation" -.PP -.SS "typedef nspace::hash_map, \fBirc::InAddr_HashComp\fP> \fBaddress_cache\fP" -.PP -Definition at line 117 of file modules.cpp. -.SS "typedef nspace::hash_map<\fBstd::string\fP, \fBchanrec\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBchan_hash\fP" -.PP -Definition at line 116 of file modules.cpp. -.SS "typedef std::deque<\fBcommand_t\fP> \fBcommand_table\fP" -.PP -Definition at line 119 of file modules.cpp. -.SS "typedef std::vector<\fBExtMode\fP> \fBExtModeList\fP" -.PP -Definition at line 145 of file modules.cpp. -.SS "typedef ExtModeList::iterator \fBExtModeListIter\fP" -.PP -Definition at line 146 of file modules.cpp. -.SS "typedef nspace::hash_map<\fBstd::string\fP, \fBuserrec\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBuser_hash\fP" -.PP -Definition at line 115 of file modules.cpp. -.SS "typedef nspace::hash_map<\fBstd::string\fP, \fBWhoWasUser\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBwhowas_hash\fP" -.PP -Definition at line 118 of file modules.cpp. .SH "Function Documentation" .PP .SS "bool DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off)" .PP -Definition at line 215 of file modules.cpp. +Definition at line 142 of file modules.cpp. .PP References EMode, and ModeDefined(). .PP Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode(). .PP .nf -216 { -217 if (ModeDefined(modechar,type)) { -218 return false; -219 } -220 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); -221 return true; -222 } +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 } .fi .PP .SS "std::vector<\fBircd_module\fP*> factory (255)" .PP .SS "bool ModeDefined (char modechar, int type)" .PP -Definition at line 152 of file modules.cpp. +Definition at line 79 of file modules.cpp. .PP References EMode. .PP Referenced by DoAddExtendedMode(). .PP .nf -153 { -154 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -155 { -156 if ((i->modechar == modechar) && (i->type == type)) -157 { -158 return true; -159 } -160 } -161 return false; -162 } +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 } .fi .PP .SS "int ModeDefinedOff (char modechar, int type)" .PP -Definition at line 202 of file modules.cpp. +Definition at line 129 of file modules.cpp. .PP References EMode. .PP .nf -203 { -204 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -205 { -206 if ((i->modechar == modechar) && (i->type == type)) -207 { -208 return i->params_when_off; -209 } -210 } -211 return 0; -212 } +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 } .fi .PP .SS "int ModeDefinedOn (char modechar, int type)" .PP -Definition at line 189 of file modules.cpp. +Definition at line 116 of file modules.cpp. .PP References EMode. .PP .nf -190 { -191 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -192 { -193 if ((i->modechar == modechar) && (i->type == type)) -194 { -195 return i->params_when_on; -196 } -197 } -198 return 0; -199 } +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 } .fi .PP .SS "bool ModeDefinedOper (char modechar, int type)" .PP -Definition at line 176 of file modules.cpp. +Definition at line 103 of file modules.cpp. .PP References EMode. .PP .nf -177 { -178 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -179 { -180 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) -181 { -182 return true; -183 } -184 } -185 return false; -186 } +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 } .fi .PP .SS "bool ModeIsListMode (char modechar, int type)" .PP -Definition at line 164 of file modules.cpp. +Definition at line 91 of file modules.cpp. .PP References EMode. .PP .nf -165 { -166 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -167 { -168 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) -169 { -170 return true; -171 } -172 } -173 return false; -174 } +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 } .fi .PP .SS "void ModeMakeList (char modechar)" .PP -Definition at line 225 of file modules.cpp. +Definition at line 152 of file modules.cpp. .PP References EMode, and MT_CHANNEL. .PP Referenced by Server::AddExtendedListMode(). .PP .nf -226 { -227 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -228 { -229 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) -230 { -231 i->list = true; -232 return; -233 } -234 } -235 return; -236 } +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 } .fi .PP .SS "std::vector<\fBModule\fP*> modules (255)" .PP .SH "Variable Documentation" .PP -.SS "char \fBAdminEmail\fP[MAXBUF]" -.PP -.SS "char \fBAdminName\fP[MAXBUF]" -.PP -.SS "char \fBAdminNick\fP[MAXBUF]" -.PP .SS "int \fBboundPortCount\fP" .PP .SS "\fBchan_hash\fP \fBchanlist\fP" @@ -444,77 +313,33 @@ Referenced by Server::AddExtendedListMode(). .PP .SS "\fBcommand_table\fP \fBcmdlist\fP" .PP -.SS "std::stringstream \fBconfig_f\fP" -.PP -.SS "int \fBdebugging\fP" -.PP -.SS "int \fBDieDelay\fP" -.PP -.SS "char \fBdiepass\fP[MAXBUF]" -.PP -.SS "char \fBDieValue\fP[MAXBUF]" +.SS "\fBServerConfig\fP* \fBConfig\fP" .PP .SS "\fBExtModeList\fP \fBEMode\fP" .PP -Definition at line 149 of file modules.cpp. +Definition at line 76 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 "std::vector<\fBstd::string\fP> \fBinclude_stack\fP" -.PP -Referenced by ConfigReader::ConfigReader(). .SS "\fBaddress_cache\fP \fBIP\fP" .PP -.SS "char \fBlist\fP[MAXBUF]" -.PP -.SS "FILE* \fBlog_file\fP" -.PP -.SS "int \fBLogLevel\fP" -.PP -.SS "int \fBMaxWhoResults\fP" -.PP -Definition at line 81 of file channels.cpp. .SS "int \fBMODCOUNT\fP = -1" .PP -Definition at line 1005 of file modules.cpp. -.SS "std::vector<\fBstd::string\fP> \fBmodule_names\fP" -.PP +Definition at line 933 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 "\fBfile_cache\fP \fBMOTD\fP" -.PP -.SS "char \fBmotd\fP[MAXBUF]" -.PP -.SS "time_t \fBnb_start\fP" -.PP -.SS "int \fBNetBufferSize\fP" -.PP -.SS "char \fBNetwork\fP[MAXBUF]" -.PP .SS "int \fBportCount\fP" .PP .SS "int \fBports\fP[MAXSOCKS]" .PP -.SS "char \fBPrefixQuit\fP[MAXBUF]" -.PP -.SS "char \fBrestartpass\fP[MAXBUF]" -.PP -.SS "\fBfile_cache\fP \fBRULES\fP" -.PP -.SS "char \fBrules\fP[MAXBUF]" -.PP .SS "\fBSocketEngine\fP* \fBSE\fP" .PP -.SS "char \fBServerDesc\fP[MAXBUF]" -.PP -.SS "char \fBServerName\fP[MAXBUF]" -.PP .SS "time_t \fBstartup_time\fP" .PP .SS "time_t \fBTIME\fP" diff --git a/docs/man/man3/modules.h.3 b/docs/man/man3/modules.h.3 index 3c43187ac..b65b4ac89 100644 --- a/docs/man/man3/modules.h.3 +++ b/docs/man/man3/modules.h.3 @@ -1,4 +1,4 @@ -.TH "modules.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "modules.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -45,6 +45,10 @@ modules.h \- .br .RI "\fIThe Event class is a unicast message directed at all modules. \fP" .ti -1c +.RI "class \fBExtMode\fP" +.br +.RI "\fIHolds an extended mode's details. \fP" +.ti -1c .RI "class \fBModule\fP" .br .RI "\fIBase class for all InspIRCd modules This class is the base class for InspIRCd modules. \fP" @@ -238,22 +242,22 @@ Referenced by Module::OnAccessCheck(). Definition at line 38 of file modules.h. .SS "#define CONF_FILE_NOT_FOUND 0x000200" .PP -Definition at line 1501 of file modules.h. +Definition at line 1516 of file modules.h. .PP Referenced by ConfigReader::ConfigReader(). .SS "#define CONF_NOT_A_NUMBER 0x000010" .PP -Definition at line 1498 of file modules.h. +Definition at line 1513 of file modules.h. .PP Referenced by ConfigReader::ReadInteger(). .SS "#define CONF_NOT_UNSIGNED 0x000080" .PP -Definition at line 1499 of file modules.h. +Definition at line 1514 of file modules.h. .PP Referenced by ConfigReader::ReadInteger(). .SS "#define CONF_VALUE_NOT_FOUND 0x000100" .PP -Definition at line 1500 of file modules.h. +Definition at line 1515 of file modules.h. .PP Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue(). .SS "#define DEBUG 10" @@ -261,8 +265,6 @@ Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigR log levels .PP Definition at line 23 of file modules.h. -.PP -Referenced by Server::AddExtendedMode(), SocketEngine::AddFd(), chanrec::AddUser(), SocketEngine::DelFd(), chanrec::DelUser(), InspSocket::InspSocket(), InspSocket::Read(), userrec::ReadData(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), SocketEngine::SocketEngine(), SocketEngine::Wait(), and SocketEngine::~SocketEngine(). .SS "#define DEFAULT 30" .PP Definition at line 25 of file modules.h. @@ -349,7 +351,7 @@ Low level definition of a \fBFileReader\fP classes file cache area. Definition at line 65 of file modules.h. .SS "typedef DLLFactory<\fBModuleFactory\fP> \fBircd_module\fP" .PP -Definition at line 1667 of file modules.h. +Definition at line 1682 of file modules.h. .SS "typedef \fBfile_cache\fP \fBstring_list\fP" .PP Definition at line 70 of file modules.h. diff --git a/docs/man/man3/nspace.3 b/docs/man/man3/nspace.3 index 504564def..5ec9865ba 100644 --- a/docs/man/man3/nspace.3 +++ b/docs/man/man3/nspace.3 @@ -1,4 +1,4 @@ -.TH "nspace" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "nspace" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/nspace_hash_ in_addr _.3 b/docs/man/man3/nspace_hash_ in_addr _.3 index 9cf95474a..a8485cd17 100644 --- a/docs/man/man3/nspace_hash_ in_addr _.3 +++ b/docs/man/man3/nspace_hash_ in_addr _.3 @@ -1,4 +1,4 @@ -.TH "nspace::hash< in_addr >" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "nspace::hash< in_addr >" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/nspace_hash_ string _.3 b/docs/man/man3/nspace_hash_ string _.3 index 325a269ce..a71325c4d 100644 --- a/docs/man/man3/nspace_hash_ string _.3 +++ b/docs/man/man3/nspace_hash_ string _.3 @@ -1,4 +1,4 @@ -.TH "nspace::hash< string >" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "nspace::hash< string >" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/socket.cpp.3 b/docs/man/man3/socket.cpp.3 index a71385032..b483fd050 100644 --- a/docs/man/man3/socket.cpp.3 +++ b/docs/man/man3/socket.cpp.3 @@ -1,4 +1,4 @@ -.TH "socket.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "socket.cpp" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -54,9 +54,6 @@ socket.cpp \- .RI "\fBSocketEngine\fP * \fBSE\fP" .br .ti -1c -.RI "FILE * \fBlog_file\fP" -.br -.ti -1c .RI "int \fBboundPortCount\fP" .br .ti -1c @@ -66,27 +63,21 @@ socket.cpp \- .RI "time_t \fBTIME\fP" .br .ti -1c -.RI "bool \fBunlimitcore\fP" -.br -.ti -1c -.RI "int \fBMaxConn\fP" +.RI "\fBInspSocket\fP * \fBsocket_ref\fP [65535]" .br .in -1c .SH "Variable Documentation" .PP .SS "int \fBboundPortCount\fP" .PP -.SS "FILE* \fBlog_file\fP" -.PP -.SS "int \fBMaxConn\fP" -.PP .SS "int \fBopenSockfd\fP[MAXSOCKS]" .PP .SS "\fBSocketEngine\fP* \fBSE\fP" .PP -.SS "time_t \fBTIME\fP" +.SS "\fBInspSocket\fP* \fBsocket_ref\fP[65535]" .PP -.SS "bool \fBunlimitcore\fP" +Definition at line 46 of file socket.cpp. +.SS "time_t \fBTIME\fP" .PP .SH "Author" .PP diff --git a/docs/man/man3/socket.h.3 b/docs/man/man3/socket.h.3 index 3810efe1d..5efbc0311 100644 --- a/docs/man/man3/socket.h.3 +++ b/docs/man/man3/socket.h.3 @@ -1,4 +1,4 @@ -.TH "socket.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "socket.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/socketengine.cpp.3 b/docs/man/man3/socketengine.cpp.3 index 3a6ac0550..b864541ba 100644 --- a/docs/man/man3/socketengine.cpp.3 +++ b/docs/man/man3/socketengine.cpp.3 @@ -1,4 +1,4 @@ -.TH "socketengine.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "socketengine.cpp" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/socketengine.h.3 b/docs/man/man3/socketengine.h.3 index 7be4a00e5..54d35e323 100644 --- a/docs/man/man3/socketengine.h.3 +++ b/docs/man/man3/socketengine.h.3 @@ -1,4 +1,4 @@ -.TH "socketengine.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "socketengine.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/std.3 b/docs/man/man3/std.3 index 8d5eaebc2..2f27c8b5a 100644 --- a/docs/man/man3/std.3 +++ b/docs/man/man3/std.3 @@ -1,4 +1,4 @@ -.TH "std" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "std" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/std_char_traits.3 b/docs/man/man3/std_char_traits.3 index 89807e969..c875bc7d9 100644 --- a/docs/man/man3/std_char_traits.3 +++ b/docs/man/man3/std_char_traits.3 @@ -1,4 +1,4 @@ -.TH "std::char_traits" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "std::char_traits" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/typedefs.h.3 b/docs/man/man3/typedefs.h.3 new file mode 100644 index 000000000..e919dd1f0 --- /dev/null +++ b/docs/man/man3/typedefs.h.3 @@ -0,0 +1,88 @@ +.TH "typedefs.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +typedefs.h \- +.SH SYNOPSIS +.br +.PP +\fC#include 'users.h'\fP +.br +\fC#include 'channels.h'\fP +.br +\fC#include 'hashcomp.h'\fP +.br +\fC#include 'inspstring.h'\fP +.br +\fC#include 'ctables.h'\fP +.br +\fC#include 'inspircd.h'\fP +.br +\fC#include 'modules.h'\fP +.br +\fC#include 'globals.h'\fP +.br +\fC#include 'inspircd_config.h'\fP +.br +\fC#include \fP +.br +\fC#include \fP +.br + +.SS "Typedefs" + +.in +1c +.ti -1c +.RI "typedef nspace::hash_map< \fBstd::string\fP, \fBuserrec\fP *, nspace::hash< \fBstring\fP >, \fBirc::StrHashComp\fP > \fBuser_hash\fP" +.br +.ti -1c +.RI "typedef nspace::hash_map< \fBstd::string\fP, \fBchanrec\fP *, nspace::hash< \fBstring\fP >, \fBirc::StrHashComp\fP > \fBchan_hash\fP" +.br +.ti -1c +.RI "typedef nspace::hash_map< in_addr, \fBstring\fP *, nspace::hash< in_addr >, \fBirc::InAddr_HashComp\fP > \fBaddress_cache\fP" +.br +.ti -1c +.RI "typedef nspace::hash_map< \fBstd::string\fP, \fBWhoWasUser\fP *, nspace::hash< \fBstring\fP >, \fBirc::StrHashComp\fP > \fBwhowas_hash\fP" +.br +.ti -1c +.RI "typedef std::deque< \fBcommand_t\fP > \fBcommand_table\fP" +.br +.ti -1c +.RI "typedef std::vector< \fBstd::string\fP > \fBservernamelist\fP" +.br +.ti -1c +.RI "typedef std::vector< \fBExtMode\fP > \fBExtModeList\fP" +.br +.ti -1c +.RI "typedef ExtModeList::iterator \fBExtModeListIter\fP" +.br +.in -1c +.SH "Typedef Documentation" +.PP +.SS "typedef nspace::hash_map, \fBirc::InAddr_HashComp\fP> \fBaddress_cache\fP" +.PP +Definition at line 22 of file typedefs.h. +.SS "typedef nspace::hash_map<\fBstd::string\fP, \fBchanrec\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBchan_hash\fP" +.PP +Definition at line 21 of file typedefs.h. +.SS "typedef std::deque<\fBcommand_t\fP> \fBcommand_table\fP" +.PP +Definition at line 24 of file typedefs.h. +.SS "typedef std::vector<\fBExtMode\fP> \fBExtModeList\fP" +.PP +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::vector<\fBstd::string\fP> \fBservernamelist\fP" +.PP +Definition at line 25 of file typedefs.h. +.SS "typedef nspace::hash_map<\fBstd::string\fP, \fBuserrec\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBuser_hash\fP" +.PP +Definition at line 20 of file typedefs.h. +.SS "typedef nspace::hash_map<\fBstd::string\fP, \fBWhoWasUser\fP*, nspace::hash<\fBstring\fP>, \fBirc::StrHashComp\fP> \fBwhowas_hash\fP" +.PP +Definition at line 23 of file typedefs.h. +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/ucrec.3 b/docs/man/man3/ucrec.3 index 5e07b9214..2b88bcc46 100644 --- a/docs/man/man3/ucrec.3 +++ b/docs/man/man3/ucrec.3 @@ -1,4 +1,4 @@ -.TH "ucrec" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "ucrec" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -68,8 +68,6 @@ Points to the channel record where the given modes apply. If the record is not in use, this value will be NULL. .PP Definition at line 252 of file channels.h. -.PP -Referenced by Server::PseudoToUser(), and userrec::userrec(). .SS "char \fBucrec::uc_modes\fP" .PP Contains a bitmask of the UCMODE_OP . @@ -77,8 +75,6 @@ Contains a bitmask of the UCMODE_OP . .. 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. -.PP -Referenced by userrec::userrec(). .SH "Author" .PP diff --git a/docs/man/man3/userprocess.h.3 b/docs/man/man3/userprocess.h.3 new file mode 100644 index 000000000..92541398d --- /dev/null +++ b/docs/man/man3/userprocess.h.3 @@ -0,0 +1,50 @@ +.TH "userprocess.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.ad l +.nh +.SH NAME +userprocess.h \- +.SH SYNOPSIS +.br +.PP +\fC#include 'users.h'\fP +.br + +.SS "Functions" + +.in +1c +.ti -1c +.RI "void \fBCheckDie\fP ()" +.br +.ti -1c +.RI "void \fBLoadAllModules\fP ()" +.br +.ti -1c +.RI "void \fBCheckRoot\fP ()" +.br +.ti -1c +.RI "void \fBOpenLog\fP (char **argv, int argc)" +.br +.ti -1c +.RI "bool \fBDoBackgroundUserStuff\fP (time_t \fBTIME\fP)" +.br +.ti -1c +.RI "void \fBProcessUser\fP (\fBuserrec\fP *cu)" +.br +.in -1c +.SH "Function Documentation" +.PP +.SS "void CheckDie ()" +.PP +.SS "void CheckRoot ()" +.PP +.SS "bool DoBackgroundUserStuff (time_t TIME)" +.PP +.SS "void LoadAllModules ()" +.PP +.SS "void OpenLog (char ** argv, int argc)" +.PP +.SS "void ProcessUser (\fBuserrec\fP * cu)" +.PP +.SH "Author" +.PP +Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/man/man3/userrec.3 b/docs/man/man3/userrec.3 index 8fc0aa420..6d88cb3d5 100644 --- a/docs/man/man3/userrec.3 +++ b/docs/man/man3/userrec.3 @@ -1,4 +1,4 @@ -.TH "userrec" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "userrec" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -114,7 +114,7 @@ Inherits \fBconnection\fP. .br .RI "\fIThe user's mode string. \fP" .ti -1c -.RI "\fBucrec\fP \fBchans\fP [MAXCHANS]" +.RI "std::vector< \fBucrec\fP > \fBchans\fP" .br .ti -1c .RI "char * \fBserver\fP" @@ -197,48 +197,44 @@ Definition at line 111 of file users.h. .PP .SS "userrec::userrec ()" .PP -Definition at line 38 of file users.cpp. +Definition at line 36 of file users.cpp. .PP -References awaymsg, connection::bytes_in, connection::bytes_out, ucrec::channel, 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, ServerName, connection::signon, TIME, timeout, and ucrec::uc_modes. +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. .PP .nf -39 { -40 // the PROPER way to do it, AVOID bzero at *ALL* costs -41 strcpy(nick,''); -42 strcpy(ip,'127.0.0.1'); -43 timeout = 0; -44 strcpy(ident,''); -45 strcpy(host,''); -46 strcpy(dhost,''); -47 strcpy(fullname,''); -48 strcpy(modes,''); -49 server = (char*)FindServerNamePtr(ServerName); -50 strcpy(awaymsg,''); -51 strcpy(oper,''); -52 reset_due = TIME; -53 lines_in = 0; -54 fd = lastping = signon = idle_lastmsg = nping = registered = 0; -55 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; -56 haspassed = false; -57 dns_done = false; -58 recvq = ''; -59 sendq = ''; -60 for (int i = 0; i < MAXCHANS; i++) -61 { -62 this->chans[i].channel = NULL; -63 this->chans[i].uc_modes = 0; -64 } -65 invites.clear(); -66 } +37 { +38 // the PROPER way to do it, AVOID bzero at *ALL* costs +39 strcpy(nick,''); +40 strcpy(ip,'127.0.0.1'); +41 timeout = 0; +42 strcpy(ident,''); +43 strcpy(host,''); +44 strcpy(dhost,''); +45 strcpy(fullname,''); +46 strcpy(modes,''); +47 server = (char*)FindServerNamePtr(Config->ServerName); +48 strcpy(awaymsg,''); +49 strcpy(oper,''); +50 reset_due = TIME; +51 lines_in = 0; +52 fd = lastping = signon = idle_lastmsg = nping = registered = 0; +53 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; +54 haspassed = false; +55 dns_done = false; +56 recvq = ''; +57 sendq = ''; +58 chans.clear(); +59 invites.clear(); +60 } .fi .PP .SS "userrec::~userrec ()\fC [virtual]\fP" .PP -Definition at line 68 of file users.cpp. +Definition at line 62 of file users.cpp. .PP .nf -69 { -70 } +63 { +64 } .fi .PP .SH "Member Function Documentation" @@ -249,35 +245,35 @@ This method adds data to the buffer of the user. .PP The buffer can grow to any size within limits of the available memory, managed by the size of a \fBstd::string\fP, however if any individual line in the buffer grows over 600 bytes in length (which is 88 chars over the RFC-specified limit per line) then the method will return false and the text will not be inserted. .PP -Definition at line 205 of file users.cpp. +Definition at line 198 of file users.cpp. .PP References recvq, recvqmax, and SetWriteError(). .PP .nf -206 { -207 std::string b = ''; -208 for (unsigned int i = 0; i < a.length(); i++) -209 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7)) -210 b = b + a[i]; -211 std::stringstream stream(recvq); -212 stream << b; -213 recvq = stream.str(); -214 unsigned int i = 0; -215 // count the size of the first line in the buffer. -216 while (i < recvq.length()) -217 { -218 if (recvq[i++] == '\n') -219 break; -220 } -221 if (recvq.length() > (unsigned)this->recvqmax) -222 { -223 this->SetWriteError('RecvQ exceeded'); -224 WriteOpers('*** User %s RecvQ of %d exceeds connect class maximum of %d',this->nick,recvq.length(),this->recvqmax); -225 } -226 // return false if we've had more than 600 characters WITHOUT -227 // a carriage return (this is BAD, drop the socket) -228 return (i < 600); -229 } +199 { +200 std::string b = ''; +201 for (unsigned int i = 0; i < a.length(); i++) +202 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7)) +203 b = b + a[i]; +204 std::stringstream stream(recvq); +205 stream << b; +206 recvq = stream.str(); +207 unsigned int i = 0; +208 // count the size of the first line in the buffer. +209 while (i < recvq.length()) +210 { +211 if (recvq[i++] == '\n') +212 break; +213 } +214 if (recvq.length() > (unsigned)this->recvqmax) +215 { +216 this->SetWriteError('RecvQ exceeded'); +217 WriteOpers('*** User %s RecvQ of %d exceeds connect class maximum of %d',this->nick,recvq.length(),this->recvqmax); +218 } +219 // return false if we've had more than 600 characters WITHOUT +220 // a carriage return (this is BAD, drop the socket) +221 return (i < 600); +222 } .fi .PP .SS "void userrec::AddWriteBuf (\fBstd::string\fP data)" @@ -286,24 +282,24 @@ Adds to the user's write buffer. .PP You may add any amount of text up to this users sendq value, if you exceed the sendq value, \fBSetWriteError()\fP will be called to set the users error string to 'SendQ exceeded', and further buffer adds will be dropped. .PP -Definition at line 261 of file users.cpp. +Definition at line 254 of file users.cpp. .PP References sendq, sendqmax, and SetWriteError(). .PP .nf -262 { -263 if (this->GetWriteError() != '') -264 return; -265 if (sendq.length() + data.length() > (unsigned)this->sendqmax) -266 { -267 WriteOpers('*** User %s SendQ of %d exceeds connect class maximum of %d',this->nick,sendq.length() + data.length(),this->sendqmax); -268 this->SetWriteError('SendQ exceeded'); -269 return; -270 } -271 std::stringstream stream; -272 stream << sendq << data; -273 sendq = stream.str(); -274 } +255 { +256 if (this->GetWriteError() != '') +257 return; +258 if (sendq.length() + data.length() > (unsigned)this->sendqmax) +259 { +260 WriteOpers('*** User %s SendQ of %d exceeds connect class maximum of %d',this->nick,sendq.length() + data.length(),this->sendqmax); +261 this->SetWriteError('SendQ exceeded'); +262 return; +263 } +264 std::stringstream stream; +265 stream << sendq << data; +266 sendq = stream.str(); +267 } .fi .PP .SS "bool userrec::BufferIsReady ()" @@ -312,46 +308,46 @@ This method returns true if the buffer contains at least one carriage return cha .PP one complete line may be read) .PP -Definition at line 231 of file users.cpp. +Definition at line 224 of file users.cpp. .PP References recvq. .PP .nf -232 { -233 for (unsigned int i = 0; i < recvq.length(); i++) -234 if (recvq[i] == '\n') -235 return true; -236 return false; -237 } +225 { +226 for (unsigned int i = 0; i < recvq.length(); i++) +227 if (recvq[i] == '\n') +228 return true; +229 return false; +230 } .fi .PP .SS "void userrec::ClearBuffer ()" .PP This function clears the entire buffer by setting it to an empty string. .PP -Definition at line 239 of file users.cpp. +Definition at line 232 of file users.cpp. .PP References recvq. .PP Referenced by Server::PseudoToUser(), and Server::UserToPseudo(). .PP .nf -240 { -241 recvq = ''; -242 } +233 { +234 recvq = ''; +235 } .fi .PP .SS "void userrec::CloseSocket ()" .PP Shuts down and closes the user's socket. .PP -Definition at line 72 of file users.cpp. +Definition at line 66 of file users.cpp. .PP .nf -73 { -74 shutdown(this->fd,2); -75 close(this->fd); -76 } +67 { +68 shutdown(this->fd,2); +69 close(this->fd); +70 } .fi .PP .SS "void userrec::FlushWriteBuf ()" @@ -360,31 +356,31 @@ Flushes as much of the user's buffer to the file descriptor as possible. .PP This function may not always flush the entire buffer, rather instead as much of it as it possibly can. If the send() call fails to send the entire buffer, the buffer position is advanced forwards and the rest of the data sent at the next call to this method. .PP -Definition at line 277 of file users.cpp. +Definition at line 270 of file users.cpp. .PP References connection::bytes_out, connection::cmds_out, sendq, and SetWriteError(). .PP .nf -278 { -279 if (sendq.length()) -280 { -281 char* tb = (char*)this->sendq.c_str(); -282 int n_sent = write(this->fd,tb,this->sendq.length()); -283 if (n_sent == -1) -284 { -285 this->SetWriteError(strerror(errno)); -286 } -287 else -288 { -289 // advance the queue -290 tb += n_sent; -291 this->sendq = tb; -292 // update the user's stats counters -293 this->bytes_out += n_sent; -294 this->cmds_out++; -295 } -296 } -297 } +271 { +272 if (sendq.length()) +273 { +274 char* tb = (char*)this->sendq.c_str(); +275 int n_sent = write(this->fd,tb,this->sendq.length()); +276 if (n_sent == -1) +277 { +278 this->SetWriteError(strerror(errno)); +279 } +280 else +281 { +282 // advance the queue +283 tb += n_sent; +284 this->sendq = tb; +285 // update the user's stats counters +286 this->bytes_out += n_sent; +287 this->cmds_out++; +288 } +289 } +290 } .fi .PP .SS "\fBstd::string\fP userrec::GetBuffer ()" @@ -393,42 +389,42 @@ This method returns the first available string at the tail end of the buffer and .PP This means it is a one way operation in a similar way to strtok(), and multiple calls return multiple lines if they are available. The results of this function if there are no lines to be read are unknown, always use \fBBufferIsReady()\fP to check if it is ok to read the buffer before calling \fBGetBuffer()\fP. .PP -Definition at line 244 of file users.cpp. +Definition at line 237 of file users.cpp. .PP References recvq. .PP .nf -245 { -246 if (recvq == '') -247 return ''; -248 char* line = (char*)recvq.c_str(); -249 std::string ret = ''; -250 while ((*line != '\n') && (strlen(line))) -251 { -252 ret = ret + *line; -253 line++; -254 } -255 if ((*line == '\n') || (*line == '\r')) -256 line++; -257 recvq = line; -258 return ret; -259 } +238 { +239 if (recvq == '') +240 return ''; +241 char* line = (char*)recvq.c_str(); +242 std::string ret = ''; +243 while ((*line != '\n') && (strlen(line))) +244 { +245 ret = ret + *line; +246 line++; +247 } +248 if ((*line == '\n') || (*line == '\r')) +249 line++; +250 recvq = line; +251 return ret; +252 } .fi .PP .SS "char * userrec::GetFullHost ()\fC [virtual]\fP" .PP Returns the full displayed host of the user This member function returns the hostname of the user as seen by other users on the server, in nick!identhost form. .PP -Definition at line 78 of file users.cpp. +Definition at line 72 of file users.cpp. .PP References dhost, ident, and nick. .PP .nf -79 { -80 static char result[MAXBUF]; -81 snprintf(result,MAXBUF,'%s!%s@%s',nick,ident,dhost); -82 return result; -83 } +73 { +74 static char result[MAXBUF]; +75 snprintf(result,MAXBUF,'%s!%s@%s',nick,ident,dhost); +76 return result; +77 } .fi .PP .SS "char * userrec::GetFullRealHost ()\fC [virtual]\fP" @@ -437,44 +433,44 @@ Returns the full real host of the user This member function returns the hostname .PP If any form of hostname cloaking is in operation, e.g. through a module, then this method will ignore it and return the true hostname. .PP -Definition at line 96 of file users.cpp. +Definition at line 89 of file users.cpp. .PP References connection::host, ident, and nick. .PP .nf -97 { -98 static char fresult[MAXBUF]; -99 snprintf(fresult,MAXBUF,'%s!%s@%s',nick,ident,host); -100 return fresult; -101 } +90 { +91 static char fresult[MAXBUF]; +92 snprintf(fresult,MAXBUF,'%s!%s@%s',nick,ident,host); +93 return fresult; +94 } .fi .PP .SS "\fBInvitedList\fP * userrec::GetInviteList ()" .PP Returns the list of channels this user has been invited to but has not yet joined. .PP -Definition at line 117 of file users.cpp. +Definition at line 110 of file users.cpp. .PP References invites. .PP .nf -118 { -119 return &invites; -120 } +111 { +112 return &invites; +113 } .fi .PP .SS "\fBstd::string\fP userrec::GetWriteError ()" .PP Returns the write error which last occured on this connection or an empty string if none occured. .PP -Definition at line 307 of file users.cpp. +Definition at line 300 of file users.cpp. .PP References WriteError. .PP .nf -308 { -309 return this->WriteError; -310 } +301 { +302 return this->WriteError; +303 } .fi .PP .SS "bool userrec::HasPermission (char * command)" @@ -483,120 +479,117 @@ Returns true or false for if a user can execute a privilaged oper command. .PP This is done by looking up their oper type from \fBuserrec::oper\fP, then referencing this to their oper classes and checking the commands they can execute. .PP -Definition at line 151 of file users.cpp. +Definition at line 144 of file users.cpp. .PP -References config_f, and is_uline(). +References ServerConfig::config_f, ServerConfig::ConfValue(), and is_uline(). .PP .nf -152 { -153 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -154 char* mycmd; -155 char* savept; -156 char* savept2; -157 -158 // users on u-lined servers can completely bypass -159 // all permissions based checks. -160 // -161 // of course, if this is sent to a remote server and this -162 // server is not ulined there, then that other server -163 // silently drops the command. -164 if (is_uline(this->server)) -165 return true; -166 -167 // are they even an oper at all? -168 if (strchr(this->modes,'o')) -169 { -170 for (int j =0; j < ConfValueEnum('type',&config_f); j++) -171 { -172 ConfValue('type','name',j,TypeName,&config_f); -173 if (!strcmp(TypeName,this->oper)) -174 { -175 ConfValue('type','classes',j,Classes,&config_f); -176 char* myclass = strtok_r(Classes,' ',&savept); -177 while (myclass) -178 { -179 for (int k =0; k < ConfValueEnum('class',&config_f); k++) -180 { -181 ConfValue('class','name',k,ClassName,&config_f); -182 if (!strcmp(ClassName,myclass)) -183 { -184 ConfValue('class','commands',k,CommandList,&config_f); -185 mycmd = strtok_r(CommandList,' ',&savept2); -186 while (mycmd) -187 { -188 if ((!strcasecmp(mycmd,command)) || (*mycmd == '*')) -189 { -190 return true; -191 } -192 mycmd = strtok_r(NULL,' ',&savept2); -193 } -194 } -195 } -196 myclass = strtok_r(NULL,' ',&savept); -197 } -198 } -199 } -200 } -201 return false; -202 } +145 { +146 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; +147 char* mycmd; +148 char* savept; +149 char* savept2; +150 +151 // users on u-lined servers can completely bypass +152 // all permissions based checks. +153 // +154 // of course, if this is sent to a remote server and this +155 // server is not ulined there, then that other server +156 // silently drops the command. +157 if (is_uline(this->server)) +158 return true; +159 +160 // are they even an oper at all? +161 if (strchr(this->modes,'o')) +162 { +163 for (int j =0; j < Config->ConfValueEnum('type',&Config->config_f); j++) +164 { +165 Config->ConfValue('type','name',j,TypeName,&Config->config_f); +166 if (!strcmp(TypeName,this->oper)) +167 { +168 Config->ConfValue('type','classes',j,Classes,&Config->config_f); +169 char* myclass = strtok_r(Classes,' ',&savept); +170 while (myclass) +171 { +172 for (int k =0; k < Config->ConfValueEnum('class',&Config->config_f); k++) +173 { +174 Config->ConfValue('class','name',k,ClassName,&Config->config_f); +175 if (!strcmp(ClassName,myclass)) +176 { +177 Config->ConfValue('class','commands',k,CommandList,&Config->config_f); +178 mycmd = strtok_r(CommandList,' ',&savept2); +179 while (mycmd) +180 { +181 if ((!strcasecmp(mycmd,command)) || (*mycmd == '*')) +182 { +183 return true; +184 } +185 mycmd = strtok_r(NULL,' ',&savept2); +186 } +187 } +188 } +189 myclass = strtok_r(NULL,' ',&savept); +190 } +191 } +192 } +193 } +194 return false; +195 } .fi .PP .SS "void userrec::InviteTo (char * channel)\fC [virtual]\fP" .PP Adds a channel to a users invite list (invites them to a channel). .PP -Definition at line 122 of file users.cpp. +Definition at line 115 of file users.cpp. .PP References Invited::channel, and invites. .PP .nf -123 { -124 Invited i; -125 strlcpy(i.channel,channel,CHANMAX); -126 invites.push_back(i); -127 } +116 { +117 Invited i; +118 strlcpy(i.channel,channel,CHANMAX); +119 invites.push_back(i); +120 } .fi .PP .SS "bool userrec::IsInvited (char * channel)\fC [virtual]\fP" .PP Returns true if a user is invited to a channel. .PP -Definition at line 103 of file users.cpp. +Definition at line 96 of file users.cpp. .PP References invites. .PP .nf -104 { -105 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -106 { -107 if (i->channel) { -108 if (!strcasecmp(i->channel,channel)) -109 { -110 return true; -111 } -112 } -113 } -114 return false; -115 } +97 { +98 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +99 { +100 if (i->channel) { +101 if (!strcasecmp(i->channel,channel)) +102 { +103 return true; +104 } +105 } +106 } +107 return false; +108 } .fi .PP .SS "int userrec::ReadData (void * buffer, size_t size)" .PP Calls read() to read some data for this user using their fd. .PP -Definition at line 85 of file users.cpp. -.PP -References DEBUG. +Definition at line 79 of file users.cpp. .PP .nf -86 { -87 if (this->fd > -1) -88 { -89 log(DEBUG,'userrec::ReadData on fd %d',this->fd); -90 return read(this->fd, buffer, size); -91 } -92 else return 0; -93 } +80 { +81 if (this->fd > -1) +82 { +83 return read(this->fd, buffer, size); +84 } +85 else return 0; +86 } .fi .PP .SS "void userrec::RemoveInvite (char * channel)\fC [virtual]\fP" @@ -605,31 +598,31 @@ Removes a channel from a users invite list. .PP This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation. .PP -Definition at line 129 of file users.cpp. +Definition at line 122 of file users.cpp. .PP References DEBUG, and invites. .PP .nf -130 { -131 log(DEBUG,'Removing invites'); -132 if (channel) -133 { -134 if (invites.size()) -135 { -136 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -137 { -138 if (i->channel) -139 { -140 if (!strcasecmp(i->channel,channel)) -141 { -142 invites.erase(i); -143 return; -144 } -145 } -146 } -147 } -148 } -149 } +123 { +124 log(DEBUG,'Removing invites'); +125 if (channel) +126 { +127 if (invites.size()) +128 { +129 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +130 { +131 if (i->channel) +132 { +133 if (!strcasecmp(i->channel,channel)) +134 { +135 invites.erase(i); +136 return; +137 } +138 } +139 } +140 } +141 } +142 } .fi .PP .SS "void userrec::SetWriteError (\fBstd::string\fP error)" @@ -638,19 +631,19 @@ Sets the write error for a connection. .PP This is done because the actual disconnect of a client may occur at an inopportune time such as half way through /LIST output. The WriteErrors of clients are checked at a more ideal time (in the mainloop) and errored clients purged. .PP -Definition at line 299 of file users.cpp. +Definition at line 292 of file users.cpp. .PP References DEBUG, and WriteError. .PP Referenced by AddBuffer(), AddWriteBuf(), and FlushWriteBuf(). .PP .nf -300 { -301 log(DEBUG,'Setting error string for %s to '%s'',this->nick,error.c_str()); -302 // don't try to set the error twice, its already set take the first string. -303 if (this->WriteError == '') -304 this->WriteError = error; -305 } +293 { +294 log(DEBUG,'Setting error string for %s to '%s'',this->nick,error.c_str()); +295 // don't try to set the error twice, its already set take the first string. +296 if (this->WriteError == '') +297 this->WriteError = error; +298 } .fi .PP .SH "Member Data Documentation" @@ -664,7 +657,7 @@ If this string is empty, the user is not marked as away. Definition at line 158 of file users.h. .PP Referenced by userrec(). -.SS "\fBucrec\fP \fBuserrec::chans\fP[MAXCHANS]" +.SS "std::vector<\fBucrec\fP> \fBuserrec::chans\fP" .PP Definition at line 149 of file users.h. .PP diff --git a/docs/man/man3/users.cpp.3 b/docs/man/man3/users.cpp.3 index 520931d6d..9b4705a63 100644 --- a/docs/man/man3/users.cpp.3 +++ b/docs/man/man3/users.cpp.3 @@ -1,4 +1,4 @@ -.TH "users.cpp" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "users.cpp" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -29,10 +29,7 @@ users.cpp \- .in +1c .ti -1c -.RI "std::stringstream \fBconfig_f\fP" -.br -.ti -1c -.RI "char \fBServerName\fP [MAXBUF]" +.RI "\fBServerConfig\fP * \fBConfig\fP" .br .ti -1c .RI "time_t \fBTIME\fP" @@ -40,9 +37,7 @@ users.cpp \- .in -1c .SH "Variable Documentation" .PP -.SS "std::stringstream \fBconfig_f\fP" -.PP -.SS "char \fBServerName\fP[MAXBUF]" +.SS "\fBServerConfig\fP* \fBConfig\fP" .PP .SS "time_t \fBTIME\fP" .PP diff --git a/docs/man/man3/users.h.3 b/docs/man/man3/users.h.3 index f8eb8ac82..03ced5bd9 100644 --- a/docs/man/man3/users.h.3 +++ b/docs/man/man3/users.h.3 @@ -1,4 +1,4 @@ -.TH "users.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "users.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME diff --git a/docs/man/man3/xline.h.3 b/docs/man/man3/xline.h.3 index 1ee046631..1e12b1309 100644 --- a/docs/man/man3/xline.h.3 +++ b/docs/man/man3/xline.h.3 @@ -1,4 +1,4 @@ -.TH "xline.h" 3 "12 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- +.TH "xline.h" 3 "14 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*- .ad l .nh .SH NAME @@ -105,7 +105,7 @@ xline.h \- .RI "void \fBexpire_lines\fP ()" .br .ti -1c -.RI "void \fBapply_lines\fP ()" +.RI "void \fBapply_lines\fP (const int What)" .br .ti -1c .RI "void \fBstats_k\fP (\fBuserrec\fP *user)" @@ -141,6 +141,25 @@ xline.h \- .RI "bool \fBqline_make_global\fP (const char *nickname)" .br .in -1c +.SS "Variables" + +.in +1c +.ti -1c +.RI "const int \fBAPPLY_GLINES\fP = 1" +.br +.ti -1c +.RI "const int \fBAPPLY_KLINES\fP = 2" +.br +.ti -1c +.RI "const int \fBAPPLY_QLINES\fP = 4" +.br +.ti -1c +.RI "const int \fBAPPLY_ZLINES\fP = 8" +.br +.ti -1c +.RI "const int \fBAPPLY_ALL\fP = \fBAPPLY_GLINES\fP | \fBAPPLY_KLINES\fP | \fBAPPLY_QLINES\fP | \fBAPPLY_ZLINES\fP" +.br +.in -1c .SH "Function Documentation" .PP .SS "void add_eline (long duration, const char * source, const char * reason, const char * hostmask)" @@ -158,7 +177,7 @@ Referenced by Server::AddQLine(). .SS "void add_zline (long duration, const char * source, const char * reason, const char * ipaddr)" .PP Referenced by Server::AddZLine(). -.SS "void apply_lines ()" +.SS "void apply_lines (const int What)" .PP .SS "bool del_eline (const char * hostmask)" .PP @@ -211,6 +230,23 @@ Referenced by Server::DelZLine(). .PP .SS "void zline_set_creation_time (char * ip, time_t create_time)" .PP +.SH "Variable Documentation" +.PP +.SS "const int \fBAPPLY_ALL\fP = \fBAPPLY_GLINES\fP | \fBAPPLY_KLINES\fP | \fBAPPLY_QLINES\fP | \fBAPPLY_ZLINES\fP" +.PP +Definition at line 35 of file xline.h. +.SS "const int \fBAPPLY_GLINES\fP = 1" +.PP +Definition at line 31 of file xline.h. +.SS "const int \fBAPPLY_KLINES\fP = 2" +.PP +Definition at line 32 of file xline.h. +.SS "const int \fBAPPLY_QLINES\fP = 4" +.PP +Definition at line 33 of file xline.h. +.SS "const int \fBAPPLY_ZLINES\fP = 8" +.PP +Definition at line 34 of file xline.h. .SH "Author" .PP Generated automatically by Doxygen for InspIRCd from the source code. diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index 45dd8260c..953b3abef 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -22,7 +22,7 @@ EventUnicast message directed at all modules ExemptItemA subclass of HostItem designed to hold channel exempts (+e) ExtensibleClass Extensible is the parent class of many classes such as userrec and chanrec - ExtMode + ExtModeHolds an extended mode's details FileReaderCaches a text file into memory and can be used to retrieve lines from it GLineGLine class nspace::hash< in_addr > @@ -41,6 +41,7 @@ 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 + ServerConfig 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 @@ -50,7 +51,7 @@ XLineXLine is the base class for ban lines such as G lines and K lines ZLineZLine class -
Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:28 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 3df03d550..0f408fcca 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 Mon Dec 12 18:30:58 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:16 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 4177e5341..96473e680 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -19,18 +19,10 @@ Include dependency graph for base.h:

This graph shows which files directly or indirectly include this file:

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

@@ -76,7 +68,7 @@ This graph shows which files directly or indirectly include this file:

26 of file base.h. -
Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:18 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/base_8h__dep__incl.gif b/docs/module-doc/base_8h__dep__incl.gif index ae4b48aaa..b13fbb74d 100644 Binary files a/docs/module-doc/base_8h__dep__incl.gif and b/docs/module-doc/base_8h__dep__incl.gif differ diff --git a/docs/module-doc/base_8h__dep__incl.map b/docs/module-doc/base_8h__dep__incl.map index cecf4bb8a..c410efa5b 100644 --- a/docs/module-doc/base_8h__dep__incl.map +++ b/docs/module-doc/base_8h__dep__incl.map @@ -1,13 +1,5 @@ base referer -rect $channels_8h-source.html 123,327 208,353 -rect $connection_8h-source.html 116,276 215,303 -rect $ctables_8h-source.html 264,529 339,556 -rect $modules_8h-source.html 396,479 479,505 -rect $users_8cpp-source.html 546,99 626,125 -rect $users_8h-source.html 270,276 334,303 -rect $commands_8h-source.html 388,124 487,151 -rect $message_8h-source.html 395,428 480,455 -rect $mode_8h-source.html 404,327 471,353 -rect $xline_8h-source.html 407,377 468,404 -rect $channels_8cpp-source.html 536,428 635,455 -rect $modules_8cpp-source.html 536,377 635,404 +rect $channels_8h-source.html 123,7 208,33 +rect $connection_8h-source.html 116,57 215,84 +rect $ctables_8h-source.html 128,108 203,135 +rect $modules_8h-source.html 264,133 347,160 diff --git a/docs/module-doc/base_8h__dep__incl.md5 b/docs/module-doc/base_8h__dep__incl.md5 index 4d82252e0..d0ae08dfb 100644 --- a/docs/module-doc/base_8h__dep__incl.md5 +++ b/docs/module-doc/base_8h__dep__incl.md5 @@ -1 +1 @@ -e28f78b35c4f957a36c51e1bcb09e76a \ No newline at end of file +0046ef0e1b705028d107ddd398e9b859 \ 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 b942e6741..64c350bcc 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -27,7 +27,7 @@ 00018 00019 #include "inspircd_config.h" 00020 #include "inspircd.h" -00021 #include "inspircd_io.h" +00021 #include "inspircd_io.h" 00022 #include "inspircd_util.h" 00023 #include <unistd.h> 00024 #include <sys/errno.h> @@ -62,169 +62,141 @@ 00053 #define nspace std 00054 #endif 00055 -00056 extern int MODCOUNT; -00057 extern std::vector<Module*> modules; -00058 extern std::vector<ircd_module*> factory; -00059 -00060 extern int LogLevel; -00061 extern char ServerName[MAXBUF]; -00062 extern char Network[MAXBUF]; -00063 extern char ServerDesc[MAXBUF]; -00064 extern char AdminName[MAXBUF]; -00065 extern char AdminEmail[MAXBUF]; -00066 extern char AdminNick[MAXBUF]; -00067 extern char diepass[MAXBUF]; -00068 extern char restartpass[MAXBUF]; -00069 extern char motd[MAXBUF]; -00070 extern char rules[MAXBUF]; -00071 extern char list[MAXBUF]; -00072 extern char PrefixQuit[MAXBUF]; -00073 extern char DieValue[MAXBUF]; -00074 -00075 extern int debugging; -00076 extern int WHOWAS_STALE; -00077 extern int WHOWAS_MAX; -00078 extern int DieDelay; -00079 extern time_t startup_time; -00080 extern int NetBufferSize; -00081 int MaxWhoResults; -00082 extern time_t nb_start; -00083 -00084 extern std::vector<std::string> module_names; -00085 -00086 extern int boundPortCount; -00087 extern int portCount; -00088 -00089 extern int ports[MAXSOCKS]; -00090 -00091 extern std::stringstream config_f; -00092 -00093 extern FILE *log_file; -00094 -00095 extern time_t TIME; -00096 -00097 using namespace std; +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::vector<ModeParameter> custom_mode_params; -00100 -00101 chanrec::chanrec() -00102 { -00103 strcpy(name,""); -00104 strcpy(custom_modes,""); -00105 strcpy(topic,""); -00106 strcpy(setby,""); -00107 strcpy(key,""); -00108 created = topicset = limit = 0; -00109 binarymodes = 0; -00110 internal_userlist.clear(); -00111 } +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 +00109 +00110 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) +00111 { 00112 -00113 void chanrec::SetCustomMode(char mode,bool mode_on) -00114 { -00115 if (mode_on) { -00116 static char m[3]; -00117 m[0] = mode; -00118 m[1] = '\0'; -00119 if (!strchr(this->custom_modes,mode)) -00120 { -00121 strlcat(custom_modes,m,MAXMODES); -00122 } -00123 log(DEBUG,"Custom mode %c set",mode); -00124 } -00125 else { -00126 -00127 std::string a = this->custom_modes; -00128 int pos = a.find(mode); -00129 a.erase(pos,1); -00130 strncpy(this->custom_modes,a.c_str(),MAXMODES); -00131 -00132 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes); -00133 this->SetCustomModeParam(mode,"",false); -00134 } -00135 } -00136 -00137 -00138 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on) -00139 { +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 log(DEBUG,"SetCustomModeParam called"); -00142 ModeParameter M; -00143 M.mode = mode; -00144 strlcpy(M.channel,this->name,CHANMAX); -00145 strlcpy(M.parameter,parameter,MAXBUF); -00146 if (mode_on) -00147 { -00148 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter); -00149 custom_mode_params.push_back(M); -00150 } -00151 else -00152 { -00153 if (custom_mode_params.size()) -00154 { -00155 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -00156 { -00157 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00158 { -00159 log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter); -00160 custom_mode_params.erase(i); -00161 return; -00162 } -00163 } -00164 } -00165 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!"); -00166 } -00167 } -00168 -00169 bool chanrec::IsCustomModeSet(char mode) -00170 { -00171 return (strchr(this->custom_modes,mode)); -00172 } -00173 -00174 std::string chanrec::GetModeParameter(char mode) -00175 { -00176 if (custom_mode_params.size()) -00177 { -00178 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++) -00179 { -00180 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel))) -00181 { -00182 return i->parameter; -00183 } -00184 } -00185 } -00186 return ""; -00187 } -00188 -00189 long chanrec::GetUserCounter() -00190 { -00191 return (this->internal_userlist.size()); -00192 } -00193 -00194 void chanrec::AddUser(char* castuser) -00195 { -00196 internal_userlist.push_back(castuser); -00197 log(DEBUG,"Added casted user to channel's internal list"); -00198 } -00199 -00200 void chanrec::DelUser(char* castuser) -00201 { -00202 for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++) -00203 { -00204 if (*a == castuser) -00205 { -00206 log(DEBUG,"Removed casted user from channel's internal list"); -00207 internal_userlist.erase(a); -00208 return; -00209 } -00210 } -00211 log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name); -00212 } -00213 -00214 std::vector<char*> *chanrec::GetUsers() -00215 { -00216 return &internal_userlist; -00217 } -
Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +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 14:49:16 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 6db594237..2e0e6ea5e 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -9,7 +9,7 @@ home » brain » inspircd-cvs » inspircd » src

channels.cpp File Reference

#include "inspircd_config.h"
#include "inspircd.h"
-#include "inspircd_io.h"
+#include "inspircd_io.h"
#include "inspircd_util.h"
#include <unistd.h>
#include <sys/errno.h>
@@ -37,12 +37,13 @@

Include dependency graph for channels.cpp:

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

@@ -55,68 +56,26 @@ Include dependency graph for channels.cpp:

#define nspace   std

Variables

+ServerConfigConfig + int MODCOUNT = -1 std::vector< Module * > modules std::vector< ircd_module * > factory -int LogLevel - -char ServerName [MAXBUF] - -char Network [MAXBUF] - -char ServerDesc [MAXBUF] - -char AdminName [MAXBUF] - -char AdminEmail [MAXBUF] - -char AdminNick [MAXBUF] - -char diepass [MAXBUF] - -char restartpass [MAXBUF] - -char motd [MAXBUF] - -char rules [MAXBUF] - -char list [MAXBUF] - -char PrefixQuit [MAXBUF] - -char DieValue [MAXBUF] - -int debugging - int WHOWAS_STALE int WHOWAS_MAX -int DieDelay - time_t startup_time -int NetBufferSize - -int MaxWhoResults - -time_t nb_start - std::vector< std::stringmodule_names int boundPortCount -int portCount - -int ports [MAXSOCKS] - std::stringstream config_f -FILE * log_file - time_t TIME std::vector< ModeParametercustom_mode_params @@ -149,59 +108,13 @@ Definition at line 53

Variable Documentation

-

- - - - -
- - - - -
char AdminEmail[MAXBUF]
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
char AdminName[MAXBUF]
-
- - - - - -
-   - - -

-

-

+

@@ -218,13 +131,13 @@ Definition at line 53
- +
char AdminNick[MAXBUF] int boundPortCount
-

+

@@ -247,7 +160,7 @@ Definition at line 53 @@ -261,9 +174,7 @@ Definition at line 53 +
- +
int boundPortCount ServerConfig* Config
- +
std::stringstream config_f std::stringstream config_f

- -

-Referenced by userrec::HasPermission().

@@ -288,101 +199,9 @@ Referenced by userrec::HasPer

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

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

- - - - -
- - - - -
int debugging
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
int DieDelay
-
- - - - - -
-   - - +Definition at line 71 of file channels.cpp.

-

-

- - - - -
- - - - -
char diepass[MAXBUF]
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
char DieValue[MAXBUF]
-
- - - - +Referenced by chanrec::GetModeParameter(), and chanrec::SetCustomModeParam().
-   - - -

-

@@ -408,102 +227,6 @@ Referenced by chanrec::Get -

- - - - -
- - - - -
char list[MAXBUF]
-
- - - - - -
-   - - -

- -

-Referenced by Server::GetUsers().

-

- - - - -
- - - - -
FILE* log_file
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
int LogLevel
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
int MaxWhoResults
-
- - - - - -
-   - - -

- -

-Definition at line 81 of file channels.cpp.

@@ -526,9 +249,9 @@ Definition at line 81

-Definition at line 1005 of file modules.cpp. +Definition at line 933 of file modules.cpp.

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

@@ -537,7 +260,7 @@ Referenced by Server::FindM - +
std::vector<std::string> module_names std::vector<std::string> module_names
@@ -551,9 +274,7 @@ Referenced by
Server::FindM

- -

-Referenced by Server::FindModule(). +

@@ -578,262 +299,7 @@ Referenced by Server::FindM

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

- - - - -
- - - - -
char motd[MAXBUF]
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
time_t nb_start
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
int NetBufferSize
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
char Network[MAXBUF]
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
int portCount
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
int ports[MAXSOCKS]
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
char PrefixQuit[MAXBUF]
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
char restartpass[MAXBUF]
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
char rules[MAXBUF]
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
char ServerDesc[MAXBUF]
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - -
char ServerName[MAXBUF]
-
- - - - +Referenced by Server::FindModule().
-   - - -

- -

-Referenced by userrec::userrec().

@@ -881,7 +347,7 @@ Referenced by userrec::userre

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

@@ -930,7 +396,7 @@ Referenced by userrec::userre -


Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:20 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 e66f6b07f..37e28ff42 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 aa0d9b1cb..66f731cbf 100644 --- a/docs/module-doc/channels_8cpp__incl.map +++ b/docs/module-doc/channels_8cpp__incl.map @@ -1,7 +1,8 @@ base referer -rect $users_8h-source.html 324,1002 388,1028 -rect $ctables_8h-source.html 319,355 393,382 -rect $modules_8h-source.html 169,748 252,775 -rect $message_8h-source.html 168,1052 253,1079 -rect $mode_8h-source.html 177,1154 244,1180 -rect $xline_8h-source.html 180,850 241,876 +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 diff --git a/docs/module-doc/channels_8cpp__incl.md5 b/docs/module-doc/channels_8cpp__incl.md5 index 2d56c4be3..0f6924e90 100644 --- a/docs/module-doc/channels_8cpp__incl.md5 +++ b/docs/module-doc/channels_8cpp__incl.md5 @@ -1 +1 @@ -3026143cbbcaca6769945b2ffd463c42 \ No newline at end of file +a1941ab3cf03fba8030e6802191251a3 \ 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 6ab318693..2d66f3926 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -148,7 +148,7 @@ 00257 00258 #endif 00259 -
Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:16 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 5346b84a1..5012b33ef 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -22,14 +22,16 @@ Include dependency graph for channels.h:

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

@@ -449,7 +451,7 @@ Holds a complete invite list. Definition at line 95 of file channels.h. -


Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:20 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 201a0931d..c40f195d0 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 cff1e4e14..639a4ae08 100644 --- a/docs/module-doc/channels_8h__dep__incl.map +++ b/docs/module-doc/channels_8h__dep__incl.map @@ -1,9 +1,11 @@ base referer -rect $users_8cpp-source.html 415,58 495,84 -rect $users_8h-source.html 144,210 208,236 -rect $commands_8h-source.html 257,58 356,84 -rect $message_8h-source.html 264,362 349,388 -rect $mode_8h-source.html 273,159 340,186 -rect $xline_8h-source.html 276,311 337,338 -rect $channels_8cpp-source.html 405,286 504,312 -rect $modules_8cpp-source.html 405,210 504,236 +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 diff --git a/docs/module-doc/channels_8h__dep__incl.md5 b/docs/module-doc/channels_8h__dep__incl.md5 index deb32325f..344d252bc 100644 --- a/docs/module-doc/channels_8h__dep__incl.md5 +++ b/docs/module-doc/channels_8h__dep__incl.md5 @@ -1 +1 @@ -dae3fe0b8a33c3f04852556c65af182e \ No newline at end of file +e01fe683fcd4d4c38b8d4f6b57a6a4ae \ No newline at end of file diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index 8e48007bf..76da48ea6 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 092e55cb3..b6052bb4f 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 244 of file modules.cpp.

00244 : Name(name), Email(email), Nick(nick) { };
+Definition at line 171 of file modules.cpp.
00171 : 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:29 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 33fcb8de7..f36451712 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index 15c2e1db7..e716b98cd 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -30,7 +30,7 @@ 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: -
Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:29 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 c6c3f23c0..fa5588cd5 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classBoolSet.html b/docs/module-doc/classBoolSet.html index c18944650..8b69968c0 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:29 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 852b4f53e..c38b6e130 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 5d160fbd8..f5da7b3a4 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -73,7 +73,7 @@ It may either be instantiated with one parameter or none. Constructing the class

-Definition at line 1510 of file modules.h.


Constructor & Destructor Documentation

+Definition at line 1525 of file modules.h.

Constructor & Destructor Documentation

@@ -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 807 of file modules.cpp. +Definition at line 734 of file modules.cpp.

-References cache, CONF_FILE_NOT_FOUND, error, errorlog, include_stack, and readerror.

00808 {
-00809         include_stack.clear();
-00810         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00811         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00812         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
-00813         if (!this->readerror)
-00814                 this->error = CONF_FILE_NOT_FOUND;
-00815 }
+References cache, ServerConfig::ClearStack(), CONF_FILE_NOT_FOUND, error, errorlog, ServerConfig::LoadConf(), and readerror.
00735 {
+00736         Config->ClearStack();
+00737         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00738         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00739         this->readerror = Config->LoadConf(CONFIG_FILE,this->cache,this->errorlog);
+00740         if (!this->readerror)
+00741                 this->error = CONF_FILE_NOT_FOUND;
+00742 }
 

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

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

-Definition at line 827 of file modules.cpp. +Definition at line 754 of file modules.cpp.

-References cache, CONF_FILE_NOT_FOUND, error, errorlog, and readerror.

00828 {
-00829         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00830         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00831         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
-00832         if (!this->readerror)
-00833                 this->error = CONF_FILE_NOT_FOUND;
-00834 };
+References cache, ServerConfig::ClearStack(), CONF_FILE_NOT_FOUND, error, errorlog, ServerConfig::LoadConf(), and readerror.
00755 {
+00756         Config->ClearStack();
+00757         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00758         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00759         this->readerror = Config->LoadConf(filename.c_str(),this->cache,this->errorlog);
+00760         if (!this->readerror)
+00761                 this->error = CONF_FILE_NOT_FOUND;
+00762 };
 

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

This method destroys the ConfigReader class.

-Definition at line 818 of file modules.cpp. +Definition at line 745 of file modules.cpp.

-References cache, and errorlog.

00819 {
-00820         if (this->cache)
-00821                 delete this->cache;
-00822         if (this->errorlog)
-00823                 delete this->errorlog;
-00824 }
+References cache, and errorlog.
00746 {
+00747         if (this->cache)
+00748                 delete this->cache;
+00749         if (this->errorlog)
+00750                 delete this->errorlog;
+00751 }
 

@@ -240,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 905 of file modules.cpp. -

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

00906 {
-00907         if (bail)
-00908         {
-00909                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
-00910                 exit(0);
-00911         }
-00912         else
-00913         {
-00914                 char dataline[1024];
-00915                 if (user)
-00916                 {
-00917                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
-00918                         while (!errorlog->eof())
-00919                         {
-00920                                 errorlog->getline(dataline,1024);
-00921                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
-00922                         }
-00923                 }
-00924                 else
-00925                 {
-00926                         WriteOpers("There were errors in the configuration file:",user->nick);
-00927                         while (!errorlog->eof())
-00928                         {
-00929                                 errorlog->getline(dataline,1024);
-00930                                 WriteOpers(dataline);
-00931                         }
-00932                 }
-00933                 return;
-00934         }
-00935 }
+Definition at line 833 of file modules.cpp.
+

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

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

@@ -306,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 938 of file modules.cpp. +Definition at line 866 of file modules.cpp.

-References cache.

00939 {
-00940         return EnumConf(cache,tag.c_str());
-00941 }
+References cache, and ServerConfig::EnumConf().
00867 {
+00868         return Config->EnumConf(cache,tag.c_str());
+00869 }
 

@@ -354,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 943 of file modules.cpp. +Definition at line 871 of file modules.cpp.

-References cache.

00944 {
-00945         return EnumValues(cache, tag.c_str(), index);
-00946 }
+References cache, and ServerConfig::EnumValues().
00872 {
+00873         return Config->EnumValues(cache, tag.c_str(), index);
+00874 }
 

@@ -392,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 898 of file modules.cpp. +Definition at line 826 of file modules.cpp.

-References error.

00899 {
-00900         long olderr = this->error;
-00901         this->error = 0;
-00902         return olderr;
-00903 }
+References error.
00827 {
+00828         long olderr = this->error;
+00829         this->error = 0;
+00830         return olderr;
+00831 }
 

@@ -448,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 852 of file modules.cpp. -

-References cache, CONF_VALUE_NOT_FOUND, and error.

00853 {
-00854         char val[MAXBUF];
-00855         char t[MAXBUF];
-00856         char n[MAXBUF];
-00857         strlcpy(t,tag.c_str(),MAXBUF);
-00858         strlcpy(n,name.c_str(),MAXBUF);
-00859         int res = ReadConf(cache,t,n,index,val);
-00860         if (!res)
-00861         {
-00862                 this->error = CONF_VALUE_NOT_FOUND;
-00863                 return false;
-00864         }
-00865         std::string s = val;
-00866         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
-00867 }
+Definition at line 780 of file modules.cpp.
+

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

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

@@ -520,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 869 of file modules.cpp. -

-References cache, CONF_NOT_A_NUMBER, CONF_NOT_UNSIGNED, CONF_VALUE_NOT_FOUND, and error.

00870 {
-00871         char val[MAXBUF];
-00872         char t[MAXBUF];
-00873         char n[MAXBUF];
-00874         strlcpy(t,tag.c_str(),MAXBUF);
-00875         strlcpy(n,name.c_str(),MAXBUF);
-00876         int res = ReadConf(cache,t,n,index,val);
-00877         if (!res)
-00878         {
-00879                 this->error = CONF_VALUE_NOT_FOUND;
-00880                 return 0;
-00881         }
-00882         for (unsigned int i = 0; i < strlen(val); i++)
-00883         {
-00884                 if (!isdigit(val[i]))
-00885                 {
-00886                         this->error = CONF_NOT_A_NUMBER;
-00887                         return 0;
-00888                 }
-00889         }
-00890         if ((needs_unsigned) && (atoi(val)<0))
-00891         {
-00892                 this->error = CONF_NOT_UNSIGNED;
-00893                 return 0;
-00894         }
-00895         return atoi(val);
-00896 }
+Definition at line 797 of file modules.cpp.
+

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

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

@@ -598,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 836 of file modules.cpp. -

-References cache, CONF_VALUE_NOT_FOUND, and error.

00837 {
-00838         char val[MAXBUF];
-00839         char t[MAXBUF];
-00840         char n[MAXBUF];
-00841         strlcpy(t,tag.c_str(),MAXBUF);
-00842         strlcpy(n,name.c_str(),MAXBUF);
-00843         int res = ReadConf(cache,t,n,index,val);
-00844         if (!res)
-00845         {
-00846                 this->error = CONF_VALUE_NOT_FOUND;
-00847                 return "";
-00848         }
-00849         return val;
-00850 }
+Definition at line 764 of file modules.cpp.
+

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

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

@@ -647,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 948 of file modules.cpp. +Definition at line 876 of file modules.cpp.

-References readerror.

00949 {
-00950         return this->readerror;
-00951 }
+References readerror.
00877 {
+00878         return this->readerror;
+00879 }
 

@@ -682,9 +683,9 @@ The contents of the configuration file This protected member should never be acc

It will contain a pointer to the configuration file data with unneeded data (such as comments) stripped from it.

-Definition at line 1518 of file modules.h. +Definition at line 1533 of file modules.h.

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

@@ -709,9 +710,9 @@ Referenced by ConfigReader(

-Definition at line 1523 of file modules.h. +Definition at line 1538 of file modules.h.

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

@@ -736,9 +737,9 @@ Referenced by ConfigReader(

-Definition at line 1519 of file modules.h. +Definition at line 1534 of file modules.h.

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

@@ -765,14 +766,14 @@ Used to store errors.

-Definition at line 1522 of file modules.h. +Definition at line 1537 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:30 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 b69e94ccf..c038bba90 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index c46f99b9b..9a47bc371 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:30 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 39fd6fb00..f9ad9c12f 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classDNS.html b/docs/module-doc/classDNS.html index 9550cd392..34132e93b 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:30 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 7925db03c..53219dd60 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classELine.html b/docs/module-doc/classELine.html index dab6d5b9a..9930e3e49 100644 --- a/docs/module-doc/classELine.html +++ b/docs/module-doc/classELine.html @@ -29,7 +29,7 @@ Inheritance diagram for ELine:

82 of file xline.h.

Member Data Documentation

+Definition at line 87 of file xline.h.

Member Data Documentation

@@ -54,12 +54,12 @@ Hostmask (ident) to match against May contain wildcards.

-Definition at line 88 of file xline.h. +Definition at line 93 of file xline.h.


The documentation for this class was generated from the following file: -
Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:31 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 880e3ed2b..58be64f3b 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classEvent.html b/docs/module-doc/classEvent.html index e5014e7ff..92cb6514f 100644 --- a/docs/module-doc/classEvent.html +++ b/docs/module-doc/classEvent.html @@ -102,7 +102,7 @@ Create a new Event.

-Definition at line 275 of file modules.cpp.

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

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

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

-References data.

00278 {
-00279         return this->data;
-00280 }
+References data.
00205 {
+00206         return this->data;
+00207 }
 

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

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

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

-References id.

00294 {
-00295         return this->id;
-00296 }
+References id.
00221 {
+00222         return this->id;
+00223 }
 

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

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

-References source.

00283 {
-00284         return this->source;
-00285 }
+References source.
00210 {
+00211         return this->source;
+00212 }
 

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

Implements ModuleMessage.

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

-References FOREACH_MOD.

00288 {
-00289         FOREACH_MOD OnEvent(this);
-00290         return NULL;
-00291 }
+References FOREACH_MOD.
00215 {
+00216         FOREACH_MOD OnEvent(this);
+00217         return NULL;
+00218 }
 

@@ -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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:31 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 64fd60d88..82d6c61cb 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index c28538b16..ee474bfa8 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -30,7 +30,7 @@ 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: -
Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:31 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 1a651e6bd..91bc4f1bd 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by  doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index 25686faa7..9e99d9982 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -5,7 +5,12 @@ -

ExtMode Class Reference

Inheritance diagram for ExtMode:

Inheritance graph
+

ExtMode Class Reference

Holds an extended mode's details. +More... +

+#include <modules.h> +

+Inheritance diagram for ExtMode:

Inheritance graph
@@ -33,11 +38,13 @@

Detailed Description

- +Holds an extended mode's details. +

+Used internally by modules.cpp

-Definition at line 133 of file modules.cpp.


Constructor & Destructor Documentation

+Definition at line 236 of file modules.h.

Constructor & Destructor Documentation

@@ -92,7 +99,7 @@ Definition at line 133

-Definition at line 142 of file modules.cpp.

00142 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { };
+Definition at line 245 of file modules.h.
00245 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { };
 

@@ -121,7 +128,7 @@ Definition at line 142

-Definition at line 141 of file modules.cpp. +Definition at line 244 of file modules.h.

@@ -146,7 +153,7 @@ Definition at line 141

-Definition at line 136 of file modules.cpp. +Definition at line 239 of file modules.h.

@@ -171,7 +178,7 @@ Definition at line 136

-Definition at line 138 of file modules.cpp. +Definition at line 241 of file modules.h.

@@ -196,7 +203,7 @@ Definition at line 138

-Definition at line 140 of file modules.cpp. +Definition at line 243 of file modules.h.

@@ -221,7 +228,7 @@ Definition at line 140

-Definition at line 139 of file modules.cpp. +Definition at line 242 of file modules.h.

@@ -246,12 +253,12 @@ Definition at line 139

-Definition at line 137 of file modules.cpp. +Definition at line 240 of file modules.h.


The documentation for this class was generated from the following file: -
Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by  +
  • modules.h +
    Generated on Wed Dec 14 14:49:31 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 babb2ec79..517c60378 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index eb5aa264d..70253eef4 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -34,7 +34,7 @@ Inheritance diagram for Extensible:

    char * GetExt (std::string key)  Get an extension item.
    -void GetExtList (std::deque< std::string > &list) +void GetExtList (std::deque< std::string > &list)  Get a list of all extension items names.

    Private Attributes

    @@ -236,7 +236,7 @@ Definition at line 55 of fil
    The documentation for this class was generated from the following file: -
    Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 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 c8584fb7e..23fad510f 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index 093fa1d67..04c1c960b 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -53,7 +53,7 @@ This class contains methods for read-only manipulation of a text file in memory.

    -Definition at line 1599 of file modules.h.


    Constructor & Destructor Documentation

    +Definition at line 1614 of file modules.h.

    Constructor & Destructor Documentation

    @@ -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 961 of file modules.cpp.

    00962 {
    -00963 }
    +Definition at line 889 of file modules.cpp.
    00890 {
    +00891 }
     

    @@ -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 954 of file modules.cpp. +Definition at line 882 of file modules.cpp.

    -References fc.

    00955 {
    -00956         file_cache c;
    -00957         readfile(c,filename.c_str());
    -00958         this->fc = c;
    -00959 }
    +References fc.
    00883 {
    +00884         file_cache c;
    +00885         readfile(c,filename.c_str());
    +00886         this->fc = c;
    +00887 }
     

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

    This deletes the memory allocated to the file.

    -Definition at line 973 of file modules.cpp.

    00974 {
    -00975 }
    +Definition at line 901 of file modules.cpp.
    00902 {
    +00903 }
     

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

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

    -References fc.

    00978 {
    -00979         if (fc.size() == 0)
    -00980         {
    -00981                 return(false);
    -00982         }
    -00983         else
    -00984         {
    -00985                 return(true);
    -00986         }
    -00987 }
    +Definition at line 905 of file modules.cpp.
    +

    +References fc.

    00906 {
    +00907         if (fc.size() == 0)
    +00908         {
    +00909                 return(false);
    +00910         }
    +00911         else
    +00912         {
    +00913                 return(true);
    +00914         }
    +00915 }
     

    @@ -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 996 of file modules.cpp. +Definition at line 924 of file modules.cpp.

    -References fc.

    00997 {
    -00998         return fc.size();
    -00999 }
    +References fc.
    00925 {
    +00926         return fc.size();
    +00927 }
     

    @@ -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 989 of file modules.cpp. +Definition at line 917 of file modules.cpp.

    -References fc.

    00990 {
    -00991         if ((x<0) || ((unsigned)x>fc.size()))
    -00992                 return "";
    -00993         return fc[x];
    -00994 }
    +References fc.
    00918 {
    +00919         if ((x<0) || ((unsigned)x>fc.size()))
    +00920                 return "";
    +00921         return fc[x];
    +00922 }
     

    @@ -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 965 of file modules.cpp. +Definition at line 893 of file modules.cpp.

    -References fc.

    00966 {
    -00967         file_cache c;
    -00968         readfile(c,filename.c_str());
    -00969         this->fc = c;
    -00970 }
    +References fc.
    00894 {
    +00895         file_cache c;
    +00896         readfile(c,filename.c_str());
    +00897         this->fc = c;
    +00898 }
     

    @@ -354,14 +354,14 @@ References fc.

    -Definition at line 1601 of file modules.h. +Definition at line 1616 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 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 65e289d85..92111ef1a 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index f061b2c64..d566431e5 100644 --- a/docs/module-doc/classGLine.html +++ b/docs/module-doc/classGLine.html @@ -32,7 +32,7 @@ GLine class.

    -Definition at line 73 of file xline.h.


    Member Data Documentation

    +Definition at line 78 of file xline.h.

    Member Data Documentation

    @@ -57,12 +57,12 @@ Hostmask (ident) to match against May contain wildcards.

    -Definition at line 79 of file xline.h. +Definition at line 84 of file xline.h.


    The documentation for this class was generated from the following file: -
    Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 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 ae1636302..bb46359fe 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index df74fc2ac..519603b37 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -186,7 +186,7 @@ Definition at line 39 of
    The documentation for this class was generated from the following file: -
    Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classInspSocket-members.html b/docs/module-doc/classInspSocket-members.html index af84f1490..ba8d98eaf 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classInspSocket.html b/docs/module-doc/classInspSocket.html index e8b83e847..755cb1ca0 100644 --- a/docs/module-doc/classInspSocket.html +++ b/docs/module-doc/classInspSocket.html @@ -151,11 +151,11 @@ The default constructor does nothing and should not be used.

    -Definition at line 49 of file socket.cpp. +Definition at line 48 of file socket.cpp.

    -References I_DISCONNECTED, and state.

    00050 {
    -00051         this->state = I_DISCONNECTED;
    -00052 }
    +References I_DISCONNECTED, and state.
    00049 {
    +00050         this->state = I_DISCONNECTED;
    +00051 }
     

    @@ -199,13 +199,14 @@ This constructor is used to associate an existing connecting with an InspSocket

    The given file descriptor must be valid, and when initialized, the InspSocket will be set with the given IP address and placed in CONNECTED state.

    -Definition at line 54 of file socket.cpp. +Definition at line 53 of file socket.cpp.

    -References SocketEngine::AddFd(), fd, I_CONNECTED, IP, state, and X_ESTAB_MODULE.

    00055 {
    -00056         this->fd = newfd;
    -00057         this->state = I_CONNECTED;
    -00058         this->IP = ip;
    -00059         SE->AddFd(this->fd,true,X_ESTAB_MODULE);
    +References SocketEngine::AddFd(), fd, I_CONNECTED, IP, state, and X_ESTAB_MODULE.
    00054 {
    +00055         this->fd = newfd;
    +00056         this->state = I_CONNECTED;
    +00057         this->IP = ip;
    +00058         SE->AddFd(this->fd,true,X_ESTAB_MODULE);
    +00059         socket_ref[this->fd] = this;
     00060 }
     

    @@ -272,81 +273,83 @@ 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, Close(), DEBUG, fd, I_CONNECTING, I_ERR_BIND, I_ERR_CONNECT, I_ERR_SOCKET, I_ERROR, I_LISTENING, IP, OnError(), state, timeout, timeout_end, and X_ESTAB_MODULE.

    00063 {
    +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 {
     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
     00085                         {
     00086                                 this->state = I_LISTENING;
     00087                                 SE->AddFd(this->fd,true,X_ESTAB_MODULE);
    -00088                                 log(DEBUG,"New socket now in I_LISTENING state");
    -00089                                 return;
    -00090                         }
    -00091                 }                       
    -00092         } else {
    -00093                 char* ip;
    -00094                 this->host = host;
    -00095                 hostent* hoste = gethostbyname(host.c_str());
    -00096                 if (!hoste) {
    -00097                         ip = (char*)host.c_str();
    -00098                 } else {
    -00099                         struct in_addr* ia = (in_addr*)hoste->h_addr;
    -00100                         ip = inet_ntoa(*ia);
    -00101                 }
    -00102 
    -00103                 this->IP = ip;
    -00104 
    -00105                 timeout_end = time(NULL)+maxtime;
    -00106                 timeout = false;
    -00107                 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
    -00108                 {
    -00109                         this->state = I_ERROR;
    -00110                         this->OnError(I_ERR_SOCKET);
    -00111                         return;
    -00112                 }
    -00113                 this->port = port;
    -00114                 inet_aton(ip,&addy);
    -00115                 addr.sin_family = AF_INET;
    -00116                 addr.sin_addr = addy;
    -00117                 addr.sin_port = htons(this->port);
    -00118 
    -00119                 int flags;
    -00120                 flags = fcntl(this->fd, F_GETFL, 0);
    -00121                 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK);
    -00122 
    -00123                 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1)
    -00124                 {
    -00125                         if (errno != EINPROGRESS)
    -00126                         {
    -00127                                 this->Close();
    -00128                                 this->OnError(I_ERR_CONNECT);
    -00129                                 this->state = I_ERROR;
    -00130                                 return;
    -00131                         }
    -00132                 }
    -00133                 this->state = I_CONNECTING;
    -00134                 SE->AddFd(this->fd,false,X_ESTAB_MODULE);
    -00135                 return;
    -00136         }
    -00137 }
    +00088                                 socket_ref[this->fd] = this;
    +00089                                 log(DEBUG,"New socket now in I_LISTENING state");
    +00090                                 return;
    +00091                         }
    +00092                 }                       
    +00093         } else {
    +00094                 char* ip;
    +00095                 this->host = host;
    +00096                 hostent* hoste = gethostbyname(host.c_str());
    +00097                 if (!hoste) {
    +00098                         ip = (char*)host.c_str();
    +00099                 } else {
    +00100                         struct in_addr* ia = (in_addr*)hoste->h_addr;
    +00101                         ip = inet_ntoa(*ia);
    +00102                 }
    +00103 
    +00104                 this->IP = ip;
    +00105 
    +00106                 timeout_end = time(NULL)+maxtime;
    +00107                 timeout = false;
    +00108                 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
    +00109                 {
    +00110                         this->state = I_ERROR;
    +00111                         this->OnError(I_ERR_SOCKET);
    +00112                         return;
    +00113                 }
    +00114                 this->port = port;
    +00115                 inet_aton(ip,&addy);
    +00116                 addr.sin_family = AF_INET;
    +00117                 addr.sin_addr = addy;
    +00118                 addr.sin_port = htons(this->port);
    +00119 
    +00120                 int flags;
    +00121                 flags = fcntl(this->fd, F_GETFL, 0);
    +00122                 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK);
    +00123 
    +00124                 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1)
    +00125                 {
    +00126                         if (errno != EINPROGRESS)
    +00127                         {
    +00128                                 this->Close();
    +00129                                 this->OnError(I_ERR_CONNECT);
    +00130                                 this->state = I_ERROR;
    +00131                                 return;
    +00132                         }
    +00133                 }
    +00134                 this->state = I_CONNECTING;
    +00135                 SE->AddFd(this->fd,false,X_ESTAB_MODULE);
    +00136                 socket_ref[this->fd] = this;
    +00137                 return;
    +00138         }
    +00139 }
     

    @@ -380,11 +383,11 @@ The destructor may implicitly call 269 of file socket.cpp. +Definition at line 272 of file socket.cpp.

    -References Close().

    00270 {
    -00271         this->Close();
    -00272 }
    +References Close().
    00273 {
    +00274         this->Close();
    +00275 }
     

    @@ -419,19 +422,20 @@ This method causes the socket to close, and may also be triggered by other metho

    -Definition at line 139 of file socket.cpp. +Definition at line 141 of file socket.cpp.

    -References fd, and OnClose(). +References fd, and OnClose().

    -Referenced by InspSocket(), and ~InspSocket().

    00140 {
    -00141         if (this->fd != -1)
    -00142         {
    -00143                 this->OnClose();
    -00144                 shutdown(this->fd,2);
    -00145                 close(this->fd);
    -00146                 this->fd = -1;
    -00147         }
    -00148 }
    +Referenced by InspSocket(), and ~InspSocket().
    00142 {
    +00143         if (this->fd != -1)
    +00144         {
    +00145                 this->OnClose();
    +00146                 shutdown(this->fd,2);
    +00147                 close(this->fd);
    +00148                 socket_ref[this->fd] = NULL;
    +00149                 this->fd = -1;
    +00150         }
    +00151 }
     

    @@ -465,11 +469,11 @@ This method returns the socket's file descriptor as assigned by the operating sy

    -Definition at line 256 of file socket.cpp. +Definition at line 259 of file socket.cpp.

    -References fd.

    00257 {
    -00258         return this->fd;
    -00259 }
    +References fd.
    00260 {
    +00261         return this->fd;
    +00262 }
     

    @@ -503,11 +507,11 @@ Returns the IP address associated with this connection, or an empty string if no

    -Definition at line 150 of file socket.cpp. +Definition at line 153 of file socket.cpp.

    -References IP.

    00151 {
    -00152         return this->IP;
    -00153 }
    +References IP.
    00154 {
    +00155         return this->IP;
    +00156 }
     

    @@ -541,11 +545,11 @@ Returns the current socket state.

    -Definition at line 251 of file socket.cpp. +Definition at line 254 of file socket.cpp.

    -References state.

    00252 {
    -00253         return this->state;
    -00254 }
    +References state.
    00255 {
    +00256         return this->state;
    +00257 }
     

    @@ -579,9 +583,9 @@ Whenever close() is called, OnError(), OnTimeout(), and Close(), and also when cancelling a listening socket by calling the destructor indirectly.

    -Definition at line 267 of file socket.cpp. +Definition at line 270 of file socket.cpp.

    -Referenced by Close().

    00267 { return; }
    +Referenced by Close().
    00270 { return; }
     

    @@ -616,9 +620,9 @@ This method is called when an outbound connection on your socket is completed.

    Returns:
    false to abort the connection, true to continue

    -Definition at line 261 of file socket.cpp. +Definition at line 264 of file socket.cpp.

    -Referenced by Poll().

    00261 { return true; }
    +Referenced by Poll().
    00264 { return true; }
     

    @@ -653,9 +657,9 @@ When there is data waiting to be read on a socket, the Read() method to read any pending data. At its lowest level, this event is signalled by the core via the socket engine. If you return false from this function, the core removes your socket from its list and erases it from the socket engine, then calls InspSocket::Close() and deletes it.

    Returns:
    false to close the socket

    -Definition at line 265 of file socket.cpp. +Definition at line 268 of file socket.cpp.

    -Referenced by Poll().

    00265 { return true; }
    +Referenced by Poll().
    00268 { return true; }
     

    @@ -689,7 +693,7 @@ When an established connection is terminated, the OnDisconnect method is trigger

    -Definition at line 263 of file socket.cpp.

    00263 { return 0; }
    +Definition at line 266 of file socket.cpp.
    00266 { return 0; }
     

    @@ -729,9 +733,9 @@ A closed socket in itself is not an error, however errors also generate close ev

    -Definition at line 262 of file socket.cpp. +Definition at line 265 of file socket.cpp.

    -Referenced by InspSocket(), and Timeout().

    00262 { return; }
    +Referenced by InspSocket(), and Timeout().
    00265 { return; }
     

    @@ -777,9 +781,9 @@ Given the new file descriptor in the parameters, and the IP, it is recommended y MySocket* newsocket = new MySocket(newfd,ip);

    Once you have done this, you can then associate the new socket with the core using Server::AddSocket().

    -Definition at line 264 of file socket.cpp. +Definition at line 267 of file socket.cpp.

    -Referenced by Poll().

    00264 { return 0; }
    +Referenced by Poll().
    00267 { return 0; }
     

    @@ -813,9 +817,9 @@ When an outbound connection fails, and the attempt times out, you will receive t

    The mthod will trigger once maxtime secons are reached (as given in the constructor) just before the socket's descriptor is closed.

    -Definition at line 266 of file socket.cpp. +Definition at line 269 of file socket.cpp.

    -Referenced by Timeout().

    00266 { return; }
    +Referenced by Timeout().
    00269 { return; }
     

    @@ -849,37 +853,37 @@ Only the core should call this function.

    When called, it is assumed the socket is ready to read data, and the method call routes the event to the various methods of InspSocket for you to handle. This can also cause the socket's state to change.

    -Definition at line 214 of file socket.cpp. -

    -References SocketEngine::AddFd(), client, SocketEngine::DelFd(), I_CONNECTED, I_CONNECTING, I_LISTENING, length, OnConnected(), OnDataReady(), OnIncomingConnection(), SetState(), and X_ESTAB_MODULE.

    00215 {
    -00216         int incoming = -1;
    -00217         
    -00218         switch (this->state)
    -00219         {
    -00220                 case I_CONNECTING:
    -00221                         this->SetState(I_CONNECTED);
    -00222                         /* Our socket was in write-state, so delete it and re-add it
    -00223                          * in read-state.
    -00224                          */
    -00225                         SE->DelFd(this->fd);
    -00226                         SE->AddFd(this->fd,true,X_ESTAB_MODULE);
    -00227                         return this->OnConnected();
    -00228                 break;
    -00229                 case I_LISTENING:
    -00230                         length = sizeof (client);
    -00231                         incoming = accept (this->fd, (sockaddr*)&client,&length);
    -00232                         this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr));
    -00233                         return true;
    -00234                 break;
    -00235                 case I_CONNECTED:
    -00236                         return this->OnDataReady();
    +Definition at line 217 of file socket.cpp.
    +

    +References SocketEngine::AddFd(), client, SocketEngine::DelFd(), I_CONNECTED, I_CONNECTING, I_LISTENING, length, OnConnected(), OnDataReady(), OnIncomingConnection(), SetState(), and X_ESTAB_MODULE.

    00218 {
    +00219         int incoming = -1;
    +00220         
    +00221         switch (this->state)
    +00222         {
    +00223                 case I_CONNECTING:
    +00224                         this->SetState(I_CONNECTED);
    +00225                         /* Our socket was in write-state, so delete it and re-add it
    +00226                          * in read-state.
    +00227                          */
    +00228                         SE->DelFd(this->fd);
    +00229                         SE->AddFd(this->fd,true,X_ESTAB_MODULE);
    +00230                         return this->OnConnected();
    +00231                 break;
    +00232                 case I_LISTENING:
    +00233                         length = sizeof (client);
    +00234                         incoming = accept (this->fd, (sockaddr*)&client,&length);
    +00235                         this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr));
    +00236                         return true;
     00237                 break;
    -00238                 default:
    -00239                 break;
    -00240         }
    -00241 
    -00242         return true;
    -00243 }
    +00238                 case I_CONNECTED:
    +00239                         return this->OnDataReady();
    +00240                 break;
    +00241                 default:
    +00242                 break;
    +00243         }
    +00244 
    +00245         return true;
    +00246 }
     

    @@ -913,21 +917,21 @@ Reads all pending bytes from the socket into a char* array which can be up to 16

    -Definition at line 155 of file socket.cpp. +Definition at line 158 of file socket.cpp.

    -References DEBUG, and ibuf.

    00156 {
    -00157         int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0);
    -00158         if (n > 0)
    -00159         {
    -00160                 ibuf[n] = 0;
    -00161                 return ibuf;
    -00162         }
    -00163         else
    -00164         {
    -00165                 log(DEBUG,"EOF or error on socket");
    -00166                 return NULL;
    -00167         }
    -00168 }
    +References DEBUG, and ibuf.
    00159 {
    +00160         int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0);
    +00161         if (n > 0)
    +00162         {
    +00163                 ibuf[n] = 0;
    +00164                 return ibuf;
    +00165         }
    +00166         else
    +00167         {
    +00168                 log(DEBUG,"EOF or error on socket");
    +00169                 return NULL;
    +00170         }
    +00171 }
     

    @@ -962,14 +966,14 @@ Changes the socket's state.

    The core uses this to change socket states, and you should not call it directly.

    -Definition at line 245 of file socket.cpp. +Definition at line 248 of file socket.cpp.

    -References DEBUG, and state. +References DEBUG, and state.

    -Referenced by Poll().

    00246 {
    -00247         log(DEBUG,"Socket state change");
    -00248         this->state = s;
    -00249 }
    +Referenced by Poll().
    00249 {
    +00250         log(DEBUG,"Socket state change");
    +00251         this->state = s;
    +00252 }
     

    @@ -1005,23 +1009,23 @@ This function checks if the socket has timed out yet, given the current time in

    Returns:
    true if timed out, false if not timed out

    -Definition at line 197 of file socket.cpp. -

    -References I_CONNECTING, I_ERR_TIMEOUT, I_ERROR, OnError(), OnTimeout(), state, timeout, and timeout_end.

    00198 {
    -00199         if ((this->state == I_CONNECTING) && (current > timeout_end))
    -00200         {
    -00201                 // for non-listening sockets, the timeout can occur
    -00202                 // which causes termination of the connection after
    -00203                 // the given number of seconds without a successful
    -00204                 // connection.
    -00205                 this->OnTimeout();
    -00206                 this->OnError(I_ERR_TIMEOUT);
    -00207                 timeout = true;
    -00208                 this->state = I_ERROR;
    -00209                 return true;
    -00210         }
    -00211         return false;
    -00212 }
    +Definition at line 200 of file socket.cpp.
    +

    +References I_CONNECTING, I_ERR_TIMEOUT, I_ERROR, OnError(), OnTimeout(), state, timeout, and timeout_end.

    00201 {
    +00202         if ((this->state == I_CONNECTING) && (current > timeout_end))
    +00203         {
    +00204                 // for non-listening sockets, the timeout can occur
    +00205                 // which causes termination of the connection after
    +00206                 // the given number of seconds without a successful
    +00207                 // connection.
    +00208                 this->OnTimeout();
    +00209                 this->OnError(I_ERR_TIMEOUT);
    +00210                 timeout = true;
    +00211                 this->state = I_ERROR;
    +00212                 return true;
    +00213         }
    +00214         return false;
    +00215 }
     

    @@ -1061,27 +1065,27 @@ No carriage returns or linefeeds are appended to the string.

    -Definition at line 174 of file socket.cpp.

    00175 {
    -00176         char* d = (char*)data.c_str();
    -00177         unsigned int written = 0;
    -00178         int n = 0;
    -00179         int s = data.length();
    -00180         while ((written < data.length()) && (n >= 0))
    -00181         {
    -00182                 n = send(this->fd,d,s,0);
    -00183                 if (n > 0)
    -00184                 {
    -00185                         // If we didnt write everything, advance
    -00186                         // the pointers so that when we retry
    -00187                         // the next time around the loop, we try
    -00188                         // to write what we failed to write before.
    -00189                         written += n;
    -00190                         s -= n;
    -00191                         d += n;
    -00192                 }
    -00193         }
    -00194         return written;
    -00195 }
    +Definition at line 177 of file socket.cpp.
    00178 {
    +00179         char* d = (char*)data.c_str();
    +00180         unsigned int written = 0;
    +00181         int n = 0;
    +00182         int s = data.length();
    +00183         while ((written < data.length()) && (n >= 0))
    +00184         {
    +00185                 n = send(this->fd,d,s,0);
    +00186                 if (n > 0)
    +00187                 {
    +00188                         // If we didnt write everything, advance
    +00189                         // the pointers so that when we retry
    +00190                         // the next time around the loop, we try
    +00191                         // to write what we failed to write before.
    +00192                         written += n;
    +00193                         s -= n;
    +00194                         d += n;
    +00195                 }
    +00196         }
    +00197         return written;
    +00198 }
     

    @@ -1172,7 +1176,7 @@ Client sockaddr structure used by accept().

    Definition at line 119 of file socket.h.

    -Referenced by Poll(). +Referenced by Poll().

    @@ -1201,7 +1205,7 @@ The file descriptor of this socket.

    Definition at line 54 of file socket.h.

    -Referenced by Close(), GetFd(), and InspSocket(). +Referenced by Close(), GetFd(), and InspSocket().

    @@ -1257,7 +1261,7 @@ The class which extends InspSocket is expected to implement an extendable buffer

    Definition at line 106 of file socket.h.

    -Referenced by Read(). +Referenced by Read().

    @@ -1286,7 +1290,7 @@ The IP address being connected to stored in string form for easy retrieval by ac

    Definition at line 113 of file socket.h.

    -Referenced by GetIP(), and InspSocket(). +Referenced by GetIP(), and InspSocket().

    @@ -1315,7 +1319,7 @@ Used by accept() to indicate the sizes of the sockaddr_in structures.

    Definition at line 131 of file socket.h.

    -Referenced by Poll(). +Referenced by Poll().

    @@ -1398,7 +1402,7 @@ The state for this socket, either listening, connecting, connected or error.

    Definition at line 72 of file socket.h.

    -Referenced by GetState(), InspSocket(), SetState(), and Timeout(). +Referenced by GetState(), InspSocket(), SetState(), and Timeout().

    @@ -1427,7 +1431,7 @@ This value is true if the socket has timed out.

    Definition at line 97 of file socket.h.

    -Referenced by InspSocket(), and Timeout(). +Referenced by InspSocket(), and Timeout().

    @@ -1456,12 +1460,12 @@ When this time is reached, the socket times out if it is in the CONNECTING state

    Definition at line 91 of file socket.h.

    -Referenced by InspSocket(), and Timeout(). +Referenced by InspSocket(), and Timeout().


    The documentation for this class was generated from the following files: -
    Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 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 d564116eb..87fc586f3 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 9881e7bc4..da205d319 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -30,7 +30,7 @@ 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: -
    Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 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 771de3444..4483039d5 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index a185d3b2b..37855ae92 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -54,12 +54,12 @@ Definition at line 39 of fi

    Definition at line 42 of file users.h.

    -Referenced by userrec::InviteTo(). +Referenced by userrec::InviteTo().


    The documentation for this class was generated from the following file: -
    Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 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 a980ce70f..6fde9c7a7 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index f93e7bb89..15da3a497 100644 --- a/docs/module-doc/classKLine.html +++ b/docs/module-doc/classKLine.html @@ -32,7 +32,7 @@ KLine class.

    -Definition at line 62 of file xline.h.


    Member Data Documentation

    +Definition at line 67 of file xline.h.

    Member Data Documentation

    @@ -57,12 +57,12 @@ Hostmask (ident) to match against May contain wildcards.

    -Definition at line 68 of file xline.h. +Definition at line 73 of file xline.h.


    The documentation for this class was generated from the following file: -
    Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 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 41f4abb78..9b29ec516 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index e11a8a631..09feccdd7 100644 --- a/docs/module-doc/classModeParameter.html +++ b/docs/module-doc/classModeParameter.html @@ -60,7 +60,7 @@ Definition at line 77 of

    Definition at line 82 of file channels.h.

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

    @@ -87,7 +87,7 @@ Referenced by chanrec::Set

    Definition at line 80 of file channels.h.

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

    @@ -114,12 +114,12 @@ Referenced by chanrec::Set

    Definition at line 81 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:31 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 d1bfe59e2..83252cb19 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 Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index c3237e24c..64c512801 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -267,7 +267,7 @@ All modules must inherit from this class, its methods will be called when irc se

    -Definition at line 239 of file modules.h.


    Constructor & Destructor Documentation

    +Definition at line 254 of file modules.h.

    Constructor & Destructor Documentation

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

    -Definition at line 301 of file modules.cpp.

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

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

    -Definition at line 302 of file modules.cpp.

    00302 { }
    +Definition at line 229 of file modules.cpp.
    00229 { }
     

    @@ -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 313 of file modules.cpp. +Definition at line 240 of file modules.cpp.

    -References VF_VENDOR.

    00313 { return Version(1,0,0,0,VF_VENDOR); }
    +References VF_VENDOR.
    00240 { 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 323 of file modules.cpp.

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

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

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

    -References ACR_DEFAULT.

    00322 { return ACR_DEFAULT; };
    +References ACR_DEFAULT.
    00249 { 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 348 of file modules.cpp.

    00348 { return 0; };
    +Definition at line 275 of file modules.cpp.
    00275 { return 0; };
     

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

    Parameters:

    -Definition at line 374 of file modules.cpp.

    00374 { };
    +Definition at line 301 of file modules.cpp.
    00301 { };
     

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

    Parameters:

    -Definition at line 370 of file modules.cpp.

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

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

    Parameters:

    -Definition at line 372 of file modules.cpp.

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

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

    Parameters:

    -Definition at line 373 of file modules.cpp.

    00373 { };
    +Definition at line 300 of file modules.cpp.
    00300 { };
     

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

    Parameters:

    -Definition at line 371 of file modules.cpp.

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

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

    -Definition at line 327 of file modules.cpp.

    00327 { };
    +Definition at line 254 of file modules.cpp.
    00254 { };
     

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

    Parameters:<

    -Definition at line 368 of file modules.cpp.

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

    @@ -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 341 of file modules.cpp.

    00341 { return 0; };
    +Definition at line 268 of file modules.cpp.
    00268 { 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 340 of file modules.cpp.

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

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

    Parameters:<

    -Definition at line 369 of file modules.cpp.

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

    @@ -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 338 of file modules.cpp.

    00338 { return 0; };
    +Definition at line 265 of file modules.cpp.
    00265 { 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 335 of file modules.cpp.

    00335 { return 0; };
    +Definition at line 262 of file modules.cpp.
    00262 { 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 336 of file modules.cpp.

    00336 { return 0; };
    +Definition at line 263 of file modules.cpp.
    00263 { 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 337 of file modules.cpp.

    00337 { return 0; };
    +Definition at line 264 of file modules.cpp.
    00264 { 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 330 of file modules.cpp.

    00330 { return true; };
    +Definition at line 257 of file modules.cpp.
    00257 { 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 380 of file modules.cpp.

    00380 { };
    +Definition at line 307 of file modules.cpp.
    00307 { };
     

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

    -Definition at line 365 of file modules.cpp.

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

    @@ -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 349 of file modules.cpp.

    00349 { return 0; };
    +Definition at line 276 of file modules.cpp.
    00276 { return 0; };
     

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

    Parameter

    -Definition at line 379 of file modules.cpp.

    00379 { };
    +Definition at line 306 of file modules.cpp.
    00306 { };
     

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

    Parameter

    -Definition at line 375 of file modules.cpp.

    00375 { };
    +Definition at line 302 of file modules.cpp.
    00302 { };
     

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

    Parameter

    -Definition at line 377 of file modules.cpp.

    00377 { };
    +Definition at line 304 of file modules.cpp.
    00304 { };
     

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

    Parameter

    -Definition at line 378 of file modules.cpp.

    00378 { };
    +Definition at line 305 of file modules.cpp.
    00305 { };
     

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

    Parameter

    -Definition at line 376 of file modules.cpp.

    00376 { };
    +Definition at line 303 of file modules.cpp.
    00303 { };
     

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

    -Definition at line 343 of file modules.cpp.

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

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

    -Definition at line 311 of file modules.cpp.

    00311 { return false; }
    +Definition at line 238 of file modules.cpp.
    00238 { return false; }
     

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

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

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

    -Definition at line 347 of file modules.cpp.

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

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

    -Definition at line 346 of file modules.cpp.

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

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

    -Definition at line 315 of file modules.cpp.

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

    @@ -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 324 of file modules.cpp.

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

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

    -Definition at line 325 of file modules.cpp.

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

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

    Paramete

    -Definition at line 342 of file modules.cpp.

    00342 { return 0; };
    +Definition at line 269 of file modules.cpp.
    00269 { return 0; };
     

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

    -Definition at line 312 of file modules.cpp.

    00312 { };
    +Definition at line 239 of file modules.cpp.
    00239 { };
     

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

    -Definition at line 314 of file modules.cpp.

    00314 { };
    +Definition at line 241 of file modules.cpp.
    00241 { };
     

    @@ -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 345 of file modules.cpp.

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

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

    -Definition at line 358 of file modules.cpp.

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

    @@ -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 329 of file modules.cpp.

    00329 { return 0; };
    +Definition at line 256 of file modules.cpp.
    00256 { 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 334 of file modules.cpp.

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

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

    -Definition at line 350 of file modules.cpp.

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

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

    -Definition at line 352 of file modules.cpp.

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

    @@ -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 353 of file modules.cpp.

    00353 { return 0; };
    +Definition at line 280 of file modules.cpp.
    00280 { 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 351 of file modules.cpp.

    00351 { return 0; };
    +Definition at line 278 of file modules.cpp.
    00278 { 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 308 of file modules.cpp.

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

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

    -Definition at line 356 of file modules.cpp.

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

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

    -Referenced by Request::Send().

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

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

    -Definition at line 328 of file modules.cpp.

    00328 { };
    +Definition at line 255 of file modules.cpp.
    00255 { };
     

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

    -Definition at line 309 of file modules.cpp.

    00309 { }
    +Definition at line 236 of file modules.cpp.
    00236 { }
     

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

    -Definition at line 339 of file modules.cpp.

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

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

    -Definition at line 361 of file modules.cpp.

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

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

    -Definition at line 363 of file modules.cpp.

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

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

    -Definition at line 360 of file modules.cpp.

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

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

    -Definition at line 364 of file modules.cpp.

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

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

    -Definition at line 326 of file modules.cpp.

    00326 { };
    +Definition at line 253 of file modules.cpp.
    00253 { };
     

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

    -Definition at line 303 of file modules.cpp.

    00303 { }
    +Definition at line 230 of file modules.cpp.
    00230 { }
     

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

    -Definition at line 305 of file modules.cpp.

    00305 { }
    +Definition at line 232 of file modules.cpp.
    00232 { }
     

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

    -Definition at line 357 of file modules.cpp.

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

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

    -Definition at line 306 of file modules.cpp.

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

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

    -Definition at line 333 of file modules.cpp.

    00333 { };
    +Definition at line 260 of file modules.cpp.
    00260 { };
     

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

    -Definition at line 354 of file modules.cpp.

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

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

    -Definition at line 355 of file modules.cpp.

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

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

    -Definition at line 307 of file modules.cpp.

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

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

    -Definition at line 321 of file modules.cpp.

    00321 { };
    +Definition at line 248 of file modules.cpp.
    00248 { };
     

    @@ -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 317 of file modules.cpp.

    00317 { return 0; };
    +Definition at line 244 of file modules.cpp.
    00244 { 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 310 of file modules.cpp.

    00310 { return 0; }
    +Definition at line 237 of file modules.cpp.
    00237 { 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 332 of file modules.cpp.

    00332 { return 0; };
    +Definition at line 259 of file modules.cpp.
    00259 { 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 318 of file modules.cpp.

    00318 { return 0; };
    +Definition at line 245 of file modules.cpp.
    00245 { 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 320 of file modules.cpp.

    00320 { return 0; };
    +Definition at line 247 of file modules.cpp.
    00247 { 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 319 of file modules.cpp.

    00319 { return 0; };
    +Definition at line 246 of file modules.cpp.
    00246 { return 0; };
     

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

    -Definition at line 304 of file modules.cpp.

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

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

    -Definition at line 331 of file modules.cpp.

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

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

    -Definition at line 367 of file modules.cpp.

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

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

    -Definition at line 316 of file modules.cpp.

    00316 { };
    +Definition at line 243 of file modules.cpp.
    00243 { };
     

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

    -Definition at line 366 of file modules.cpp.

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

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

    -Definition at line 362 of file modules.cpp.

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

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


    The documentation for this class was generated from the following files: -
    Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:32 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 f70c35113..ebc250794 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 Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index fc3aad4bc..9efbcdbde 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -36,7 +36,7 @@ This is to allow for modules to create many different variants of

    -Definition at line 1654 of file modules.h.


    Constructor & Destructor Documentation

    +Definition at line 1669 of file modules.h.

    Constructor & Destructor Documentation

    @@ -63,7 +63,7 @@ Definition at line 1654 o

    -Definition at line 1657 of file modules.h.

    01657 { }
    +Definition at line 1672 of file modules.h.
    01672 { }
     

    @@ -95,7 +95,7 @@ Definition at line 1657 o

    -Definition at line 1658 of file modules.h.

    01658 { }
    +Definition at line 1673 of file modules.h.
    01673 { }
     

    @@ -134,7 +134,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h -


    Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:32 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 5c16347db..6344dc7ec 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 Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classModuleMessage.html b/docs/module-doc/classModuleMessage.html index e6d20b4a9..15e7cf853 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 Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:32 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 3d316c578..42df673a3 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 Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index 6631e6f64..871d00756 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -35,7 +35,7 @@ QLine class.

    -Definition at line 108 of file xline.h.


    Member Data Documentation

    +Definition at line 113 of file xline.h.

    Member Data Documentation

    @@ -60,7 +60,7 @@ Set if this is a global Z:line (e.g.

    it came from another server)

    -Definition at line 118 of file xline.h. +Definition at line 123 of file xline.h.

    @@ -87,12 +87,12 @@ Nickname to match against.

    May contain wildcards.

    -Definition at line 114 of file xline.h. +Definition at line 119 of file xline.h.


    The documentation for this class was generated from the following file: -
    Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:32 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 88481c0fd..8a4b1022f 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 Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:32 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classRequest.html b/docs/module-doc/classRequest.html index ed39a3912..7be89f99e 100644 --- a/docs/module-doc/classRequest.html +++ b/docs/module-doc/classRequest.html @@ -102,7 +102,7 @@ Create a new Request.

    -Definition at line 246 of file modules.cpp.

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

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

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

    -References data.

    00249 {
    -00250         return this->data;
    -00251 }
    +References data.
    00176 {
    +00177         return this->data;
    +00178 }
     

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

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

    -References dest.

    00259 {
    -00260         return this->dest;
    -00261 }
    +References dest.
    00186 {
    +00187         return this->dest;
    +00188 }
     

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

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

    -References source.

    00254 {
    -00255         return this->source;
    -00256 }
    +References source.
    00181 {
    +00182         return this->source;
    +00183 }
     

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

    Implements ModuleMessage.

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

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

    00264 {
    -00265         if (this->dest)
    -00266         {
    -00267                 return dest->OnRequest(this);
    -00268         }
    -00269         else
    -00270         {
    -00271                 return NULL;
    -00272         }
    -00273 }
    +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 }
     

    @@ -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 Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:32 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 9703b14f5..5e1b87e29 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -67,7 +67,7 @@ UserToPseudo(userrec *user, std::string message)Server [virtual] ~classbase()classbase [inline] ~Server()Server [virtual] -
    Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:33 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index 0d965160d..8b98f4482 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -201,7 +201,7 @@ All modules should instantiate at least one copy of this class, and use its memb

    -Definition at line 1081 of file modules.h.


    Constructor & Destructor Documentation

    +Definition at line 1096 of file modules.h.

    Constructor & Destructor Documentation

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

    Creates a Server object.

    -Definition at line 386 of file modules.cpp.

    00387 {
    -00388 }
    +Definition at line 313 of file modules.cpp.
    00314 {
    +00315 }
     

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

    Destroys a Server object.

    -Definition at line 390 of file modules.cpp.

    00391 {
    -00392 }
    +Definition at line 317 of file modules.cpp.
    00318 {
    +00319 }
     

    @@ -331,11 +331,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 487 of file modules.cpp. +Definition at line 414 of file modules.cpp.

    -References createcommand().

    00488 {
    -00489         createcommand(cmd,f,flags,minparams,source);
    -00490 }
    +References createcommand().
    00415 {
    +00416         createcommand(cmd,f,flags,minparams,source);
    +00417 }
     

    @@ -391,11 +391,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 731 of file modules.cpp. +Definition at line 658 of file modules.cpp.

    -References add_eline().

    00732 {
    -00733         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
    -00734 }
    +References add_eline().
    00659 {
    +00660         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
    +00661 }
     

    @@ -435,14 +435,14 @@ This call is used to implement modes like +q and +a. The characteristics of thes (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.

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

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

    00656 {
    -00657         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
    -00658         if (res)
    -00659                 ModeMakeList(modechar);
    -00660         return res;
    -00661 }
    +References DoAddExtendedMode(), ModeMakeList(), and MT_CHANNEL.
    00583 {
    +00584         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
    +00585         if (res)
    +00586                 ModeMakeList(modechar);
    +00587         return res;
    +00588 }
     

    @@ -504,34 +504,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 627 of file modules.cpp. -

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

    00628 {
    -00629         if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z')))
    -00630         {
    -00631                 if (type == MT_SERVER)
    -00632                 {
    -00633                         log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
    -00634                         return false;
    -00635                 }
    -00636                 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
    -00637                 {
    -00638                         log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
    -00639                         return false;
    -00640                 }
    -00641                 if ((params_when_on>1) || (params_when_off>1))
    -00642                 {
    -00643                         log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
    -00644                         return false;
    -00645                 }
    -00646                 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
    -00647         }
    -00648         else
    -00649         {
    -00650                 log(DEBUG,"*** API ERROR *** Muppet modechar detected.");
    -00651         }
    -00652         return false;
    -00653 }
    +Definition at line 554 of file modules.cpp.
    +

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

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

    @@ -587,11 +587,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 711 of file modules.cpp. +Definition at line 638 of file modules.cpp.

    -References add_gline().

    00712 {
    -00713         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
    -00714 }
    +References add_gline().
    00639 {
    +00640         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
    +00641 }
     

    @@ -647,11 +647,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 726 of file modules.cpp. +Definition at line 653 of file modules.cpp.

    -References add_kline().

    00727 {
    -00728         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
    -00729 }
    +References add_kline().
    00654 {
    +00655         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
    +00656 }
     

    @@ -707,11 +707,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 716 of file modules.cpp. +Definition at line 643 of file modules.cpp.

    -References add_qline().

    00717 {
    -00718         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
    -00719 }
    +References add_qline().
    00644 {
    +00645         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
    +00646 }
     

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

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

    -References module_sockets.

    00395 {
    -00396         module_sockets.push_back(sock);
    -00397 }
    +References module_sockets.
    00322 {
    +00323         module_sockets.push_back(sock);
    +00324 }
     

    @@ -806,11 +806,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 721 of file modules.cpp. +Definition at line 648 of file modules.cpp.

    -References add_zline().

    00722 {
    -00723         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
    -00724 }
    +References add_zline().
    00649 {
    +00650         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
    +00651 }
     

    @@ -845,11 +845,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 761 of file modules.cpp. +Definition at line 688 of file modules.cpp.

    -References duration().

    00762 {
    -00763         return duration(delta.c_str());
    -00764 }
    +References duration().
    00689 {
    +00690         return duration(delta.c_str());
    +00691 }
     

    @@ -906,9 +906,9 @@ 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 472 of file modules.cpp.

    00473 {
    -00474         call_handler(commandname.c_str(),parameters,pcnt,user);
    -00475 }
    +Definition at line 399 of file modules.cpp.
    00400 {
    +00401         call_handler(commandname.c_str(),parameters,pcnt,user);
    +00402 }
     

    @@ -952,11 +952,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 570 of file modules.cpp. +Definition at line 497 of file modules.cpp.

    -References ChangeName().

    00571 {
    -00572         ChangeName(user,gecos.c_str());
    -00573 }
    +References ChangeName().
    00498 {
    +00499         ChangeName(user,gecos.c_str());
    +00500 }
     

    @@ -1000,11 +1000,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 565 of file modules.cpp. +Definition at line 492 of file modules.cpp.

    -References ChangeDisplayedHost().

    00566 {
    -00567         ChangeDisplayedHost(user,host.c_str());
    -00568 }
    +References ChangeDisplayedHost().
    00493 {
    +00494         ChangeDisplayedHost(user,host.c_str());
    +00495 }
     

    @@ -1048,9 +1048,9 @@ 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 457 of file modules.cpp.

    00458 {
    -00459         force_nickchange(user,nickname.c_str());
    -00460 }
    +Definition at line 384 of file modules.cpp.
    00385 {
    +00386         force_nickchange(user,nickname.c_str());
    +00387 }
     

    @@ -1094,11 +1094,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 595 of file modules.cpp. +Definition at line 522 of file modules.cpp.

    -References cmode().

    00596 {
    -00597         return cmode(User,Chan);
    -00598 }
    +References cmode().
    00523 {
    +00524         return cmode(User,Chan);
    +00525 }
     

    @@ -1142,11 +1142,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 543 of file modules.cpp. +Definition at line 470 of file modules.cpp.

    -References common_channels().

    00544 {
    -00545         return (common_channels(u1,u2) != 0);
    -00546 }
    +References common_channels().
    00471 {
    +00472         return (common_channels(u1,u2) != 0);
    +00473 }
     

    @@ -1181,9 +1181,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 663 of file modules.cpp.

    00664 {
    -00665         return usercount(c);
    -00666 }
    +Definition at line 590 of file modules.cpp.
    00591 {
    +00592         return usercount(c);
    +00593 }
     

    @@ -1218,11 +1218,11 @@ Deletes a local E-Line.

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

    -References del_eline().

    00757 {
    -00758         return del_eline(hostmask.c_str());
    -00759 }
    +References del_eline().
    00684 {
    +00685         return del_eline(hostmask.c_str());
    +00686 }
     

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

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

    -References del_gline().

    00737 {
    -00738         return del_gline(hostmask.c_str());
    -00739 }
    +References del_gline().
    00664 {
    +00665         return del_gline(hostmask.c_str());
    +00666 }
     

    @@ -1296,11 +1296,11 @@ Deletes a local K-Line.

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

    -References del_kline().

    00752 {
    -00753         return del_kline(hostmask.c_str());
    -00754 }
    +References del_kline().
    00679 {
    +00680         return del_kline(hostmask.c_str());
    +00681 }
     

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

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

    -References del_qline().

    00742 {
    -00743         return del_qline(nickname.c_str());
    -00744 }
    +References del_qline().
    00669 {
    +00670         return del_qline(nickname.c_str());
    +00671 }
     

    @@ -1374,18 +1374,18 @@ Deletes a class derived from InspSocke

    -Definition at line 405 of file modules.cpp. +Definition at line 332 of file modules.cpp.

    -References module_sockets.

    00406 {
    -00407         for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++)
    -00408         {
    -00409                 if (*a == sock)
    -00410                 {
    -00411                         module_sockets.erase(a);
    -00412                         return;
    -00413                 }
    -00414         }
    -00415 }
    +References module_sockets.
    00333 {
    +00334         for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++)
    +00335         {
    +00336                 if (*a == sock)
    +00337                 {
    +00338                         module_sockets.erase(a);
    +00339                         return;
    +00340                 }
    +00341         }
    +00342 }
     

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

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

    -References del_zline().

    00747 {
    -00748         return del_zline(ipaddr.c_str());
    -00749 }
    +References del_zline().
    00674 {
    +00675         return del_zline(ipaddr.c_str());
    +00676 }
     

    @@ -1459,9 +1459,9 @@ 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 590 of file modules.cpp.

    00591 {
    -00592         return FindChan(channel.c_str());
    -00593 }
    +Definition at line 517 of file modules.cpp.
    00518 {
    +00519         return FindChan(channel.c_str());
    +00520 }
     

    @@ -1496,9 +1496,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 585 of file modules.cpp.

    00586 {
    -00587         return (socket < 65536 ? fd_ref_table[socket] : NULL);
    -00588 }
    +Definition at line 512 of file modules.cpp.
    00513 {
    +00514         return (socket < 65536 ? fd_ref_table[socket] : NULL);
    +00515 }
     

    @@ -1533,18 +1533,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 795 of file modules.cpp. -

    -References MODCOUNT, module_names, and modules.

    00796 {
    -00797         for (int i = 0; i <= MODCOUNT; i++)
    -00798         {
    -00799                 if (module_names[i] == name)
    -00800                 {
    -00801                         return modules[i];
    -00802                 }
    -00803         }
    -00804         return NULL;
    -00805 }
    +Definition at line 722 of file modules.cpp.
    +

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

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

    @@ -1579,9 +1579,9 @@ 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 580 of file modules.cpp.

    00581 {
    -00582         return Find(nick);
    -00583 }
    +Definition at line 507 of file modules.cpp.
    00508 {
    +00509         return Find(nick);
    +00510 }
     

    @@ -1615,9 +1615,9 @@ 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 620 of file modules.cpp.

    00621 {
    -00622         return Admin(getadminname(),getadminemail(),getadminnick());
    -00623 }
    +Definition at line 547 of file modules.cpp.
    00548 {
    +00549         return Admin(getadminname(),getadminemail(),getadminnick());
    +00550 }
     

    @@ -1651,9 +1651,9 @@ Returns the network name, global to all linked servers.

    -Definition at line 610 of file modules.cpp.

    00611 {
    -00612         return getnetworkname();
    -00613 }
    +Definition at line 537 of file modules.cpp.
    00538 {
    +00539         return getnetworkname();
    +00540 }
     

    @@ -1687,9 +1687,9 @@ Returns the server description string of the local server.

    -Definition at line 615 of file modules.cpp.

    00616 {
    -00617         return getserverdesc();
    -00618 }
    +Definition at line 542 of file modules.cpp.
    00543 {
    +00544         return getserverdesc();
    +00545 }
     

    @@ -1723,9 +1723,9 @@ Returns the server name of the server where the module is loaded.

    -Definition at line 605 of file modules.cpp.

    00606 {
    -00607         return getservername();
    -00608 }
    +Definition at line 532 of file modules.cpp.
    00533 {
    +00534         return getservername();
    +00535 }
     

    @@ -1760,19 +1760,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 445 of file modules.cpp. -

    -References chanrec::GetUsers(), and list.

    00446 {
    -00447         chanuserlist userl;
    -00448         userl.clear();
    -00449         std::vector<char*> *list = chan->GetUsers();
    -00450         for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++)
    -00451         {
    -00452                 char* o = *i;
    -00453                 userl.push_back((userrec*)o);
    -00454         }
    -00455         return userl;
    -00456 }
    +Definition at line 372 of file modules.cpp.
    +

    +References chanrec::GetUsers().

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

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

    Nicks for unregistered connections will return false.

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

    -References isnick().

    00576 {
    -00577         return (isnick(nick.c_str()) != 0);
    -00578 }
    +References isnick().
    00503 {
    +00504         return (isnick(nick.c_str()) != 0);
    +00505 }
     

    @@ -1855,11 +1855,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 600 of file modules.cpp. +Definition at line 527 of file modules.cpp.

    -References has_channel().

    00601 {
    -00602         return has_channel(User,Chan);
    -00603 }
    +References has_channel().
    00528 {
    +00529         return has_channel(User,Chan);
    +00530 }
     

    @@ -1894,11 +1894,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 467 of file modules.cpp. +Definition at line 394 of file modules.cpp.

    -References is_uline().

    00468 {
    -00469         return is_uline(server.c_str());
    -00470 }
    +References is_uline().
    00395 {
    +00396         return is_uline(server.c_str());
    +00397 }
     

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

    -Definition at line 766 of file modules.cpp.

    00767 {
    -00768         const char* dest = mask.c_str();
    -00769         if (strchr(dest,'!')==0)
    -00770                 return false;
    -00771         if (strchr(dest,'@')==0)
    -00772                 return false;
    -00773         for (unsigned int i = 0; i < strlen(dest); i++)
    -00774                 if (dest[i] < 32)
    -00775                         return false;
    -00776         for (unsigned int i = 0; i < strlen(dest); i++)
    -00777                 if (dest[i] > 126)
    -00778                         return false;
    -00779         unsigned int c = 0;
    -00780         for (unsigned int i = 0; i < strlen(dest); i++)
    -00781                 if (dest[i] == '!')
    -00782                         c++;
    -00783         if (c>1)
    -00784                 return false;
    -00785         c = 0;
    -00786         for (unsigned int i = 0; i < strlen(dest); i++)
    -00787                 if (dest[i] == '@')
    -00788                         c++;
    -00789         if (c>1)
    -00790                 return false;
    -00791 
    -00792         return true;
    -00793 }
    +Definition at line 693 of file modules.cpp.
    00694 {
    +00695         const char* dest = mask.c_str();
    +00696         if (strchr(dest,'!')==0)
    +00697                 return false;
    +00698         if (strchr(dest,'@')==0)
    +00699                 return false;
    +00700         for (unsigned int i = 0; i < strlen(dest); i++)
    +00701                 if (dest[i] < 32)
    +00702                         return false;
    +00703         for (unsigned int i = 0; i < strlen(dest); i++)
    +00704                 if (dest[i] > 126)
    +00705                         return false;
    +00706         unsigned int c = 0;
    +00707         for (unsigned int i = 0; i < strlen(dest); i++)
    +00708                 if (dest[i] == '!')
    +00709                         c++;
    +00710         if (c>1)
    +00711                 return false;
    +00712         c = 0;
    +00713         for (unsigned int i = 0; i < strlen(dest); i++)
    +00714                 if (dest[i] == '@')
    +00715                         c++;
    +00716         if (c>1)
    +00717                 return false;
    +00718 
    +00719         return true;
    +00720 }
     

    @@ -2007,9 +2007,9 @@ Definition at line 766

    -Definition at line 477 of file modules.cpp.

    00478 {
    -00479         return is_valid_cmd(commandname.c_str(), pcnt, user);
    -00480 }
    +Definition at line 404 of file modules.cpp.
    00405 {
    +00406         return is_valid_cmd(commandname.c_str(), pcnt, user);
    +00407 }
     

    @@ -2059,9 +2059,9 @@ 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 435 of file modules.cpp.

    00436 {
    -00437         return add_channel(user,cname.c_str(),key.c_str(),false);
    -00438 }
    +Definition at line 362 of file modules.cpp.
    00363 {
    +00364         return add_channel(user,cname.c_str(),key.c_str(),false);
    +00365 }
     

    @@ -2105,9 +2105,9 @@ 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 482 of file modules.cpp.

    00483 {
    -00484         log(level,"%s",s.c_str());
    -00485 }
    +Definition at line 409 of file modules.cpp.
    00410 {
    +00411         log(level,"%s",s.c_str());
    +00412 }
     

    @@ -2151,12 +2151,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 422 of file modules.cpp.

    00423 {
    -00424         char literal[MAXBUF],pattern[MAXBUF];
    -00425         strlcpy(literal,sliteral.c_str(),MAXBUF);
    -00426         strlcpy(pattern,spattern.c_str(),MAXBUF);
    -00427         return match(literal,pattern);
    -00428 }
    +Definition at line 349 of file modules.cpp.
    00350 {
    +00351         char literal[MAXBUF],pattern[MAXBUF];
    +00352         strlcpy(literal,sliteral.c_str(),MAXBUF);
    +00353         strlcpy(pattern,spattern.c_str(),MAXBUF);
    +00354         return match(literal,pattern);
    +00355 }
     

    @@ -2206,9 +2206,9 @@ 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 440 of file modules.cpp.

    00441 {
    -00442         return del_channel(user,cname.c_str(),reason.c_str(),false);
    -00443 }
    +Definition at line 367 of file modules.cpp.
    00368 {
    +00369         return del_channel(user,cname.c_str(),reason.c_str(),false);
    +00370 }
     

    @@ -2258,36 +2258,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 681 of file modules.cpp. -

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

    00682 {
    -00683         zombie->fd = alive->fd;
    -00684         alive->fd = FD_MAGIC_NUMBER;
    -00685         alive->ClearBuffer();
    -00686         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
    -00687         kill_link(alive,message.c_str());
    -00688         fd_ref_table[zombie->fd] = zombie;
    -00689         for (int i = 0; i != MAXCHANS; i++)
    -00690         {
    -00691                 if (zombie->chans[i].channel != NULL)
    -00692                 {
    -00693                         if (zombie->chans[i].channel->name)
    -00694                         {
    -00695                                 chanrec* Ptr = zombie->chans[i].channel;
    -00696                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
    -00697                                 if (Ptr->topicset)
    -00698                                 {
    -00699                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
    -00700                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
    -00701                                 }
    -00702                                 userlist(zombie,Ptr);
    -00703                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
    -00704 
    -00705                         }
    -00706                 }
    -00707         }
    -00708         return true;
    -00709 }
    +Definition at line 608 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.

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

    @@ -2333,9 +2333,9 @@ 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 462 of file modules.cpp.

    00463 {
    -00464         kill_link(user,reason.c_str());
    -00465 }
    +Definition at line 389 of file modules.cpp.
    00390 {
    +00391         kill_link(user,reason.c_str());
    +00392 }
     

    @@ -2367,10 +2367,12 @@ Definition at line 462

    -Definition at line 399 of file modules.cpp.

    00400 {
    -00401         WriteOpers("*** Rehashing config file");
    -00402         ReadConfig(false,NULL);
    -00403 }
    +Definition at line 326 of file modules.cpp.
    +

    +References ServerConfig::Read().

    00327 {
    +00328         WriteOpers("*** Rehashing config file");
    +00329         Config->Read(false,NULL);
    +00330 }
     

    @@ -2414,9 +2416,9 @@ 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 497 of file modules.cpp.

    00498 {
    -00499         Write(Socket,"%s",s.c_str());
    -00500 }
    +Definition at line 424 of file modules.cpp.
    00425 {
    +00426         Write(Socket,"%s",s.c_str());
    +00427 }
     

    @@ -2472,16 +2474,16 @@ 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 531 of file modules.cpp.

    00532 {
    -00533         if (IncludeSender)
    -00534         {
    -00535                 WriteChannel(Channel,User,"%s",s.c_str());
    -00536         }
    -00537         else
    -00538         {
    -00539                 ChanExceptSender(Channel,User,"%s",s.c_str());
    -00540         }
    -00541 }
    +Definition at line 458 of file modules.cpp.
    00459 {
    +00460         if (IncludeSender)
    +00461         {
    +00462                 WriteChannel(Channel,User,"%s",s.c_str());
    +00463         }
    +00464         else
    +00465         {
    +00466                 ChanExceptSender(Channel,User,"%s",s.c_str());
    +00467         }
    +00468 }
     

    @@ -2531,9 +2533,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 526 of file modules.cpp.

    00527 {
    -00528         WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str());
    -00529 }
    +Definition at line 453 of file modules.cpp.
    00454 {
    +00455         WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str());
    +00456 }
     

    @@ -2583,16 +2585,16 @@ 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 548 of file modules.cpp.

    00549 {
    -00550         if (IncludeSender)
    -00551         {
    -00552                 WriteCommon(User,"%s",text.c_str());
    -00553         }
    -00554         else
    -00555         {
    -00556                 WriteCommonExcept(User,"%s",text.c_str());
    -00557         }
    -00558 }
    +Definition at line 475 of file modules.cpp.
    00476 {
    +00477         if (IncludeSender)
    +00478         {
    +00479                 WriteCommon(User,"%s",text.c_str());
    +00480         }
    +00481         else
    +00482         {
    +00483                 WriteCommonExcept(User,"%s",text.c_str());
    +00484         }
    +00485 }
     

    @@ -2642,9 +2644,9 @@ 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 507 of file modules.cpp.

    00508 {
    -00509         WriteFrom(Socket,User,"%s",s.c_str());
    -00510 }
    +Definition at line 434 of file modules.cpp.
    00435 {
    +00436         WriteFrom(Socket,User,"%s",s.c_str());
    +00437 }
     

    @@ -2701,11 +2703,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 492 of file modules.cpp. +Definition at line 419 of file modules.cpp.

    -References server_mode().

    00493 {
    -00494         server_mode(parameters,pcnt,user);
    -00495 }
    +References server_mode().
    00420 {
    +00421         server_mode(parameters,pcnt,user);
    +00422 }
     

    @@ -2740,9 +2742,9 @@ Sends text to all opers.

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

    -Definition at line 417 of file modules.cpp.

    00418 {
    -00419         WriteOpers("%s",s.c_str());
    -00420 }
    +Definition at line 344 of file modules.cpp.
    00345 {
    +00346         WriteOpers("%s",s.c_str());
    +00347 }
     

    @@ -2786,9 +2788,9 @@ 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 502 of file modules.cpp.

    00503 {
    -00504         WriteServ(Socket,"%s",s.c_str());
    -00505 }
    +Definition at line 429 of file modules.cpp.
    00430 {
    +00431         WriteServ(Socket,"%s",s.c_str());
    +00432 }
     

    @@ -2842,20 +2844,20 @@ The format will become:

    :localserver TEXT

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

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

    -References connection::fd.

    00513 {
    -00514         if (!Source)
    -00515         {
    -00516                 // if source is NULL, then the message originates from the local server
    -00517                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
    -00518         }
    -00519         else
    -00520         {
    -00521                 // otherwise it comes from the user specified
    -00522                 WriteTo(Source,Dest,"%s",s.c_str());
    -00523         }
    -00524 }
    +Definition at line 439 of file modules.cpp.
    +

    +References connection::fd.

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

    @@ -2907,9 +2909,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 430 of file modules.cpp.

    00431 {
    -00432         WriteMode(modes.c_str(),flags,"%s",text.c_str());
    -00433 }
    +Definition at line 357 of file modules.cpp.
    00358 {
    +00359         WriteMode(modes.c_str(),flags,"%s",text.c_str());
    +00360 }
     

    @@ -2953,9 +2955,9 @@ 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 560 of file modules.cpp.

    00561 {
    -00562         WriteWallOps(User,false,"%s",text.c_str());
    -00563 }
    +Definition at line 487 of file modules.cpp.
    00488 {
    +00489         WriteWallOps(User,false,"%s",text.c_str());
    +00490 }
     

    @@ -2999,18 +3001,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 669 of file modules.cpp. -

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

    00670 {
    -00671         unsigned int old_fd = user->fd;
    -00672         user->fd = FD_MAGIC_NUMBER;
    -00673         user->ClearBuffer();
    -00674         Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str());
    -00675         SE->DelFd(old_fd);
    -00676         shutdown(old_fd,2);
    -00677         close(old_fd);
    -00678         return true;
    -00679 }
    +Definition at line 596 of file modules.cpp.
    +

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

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

    @@ -3018,7 +3020,7 @@ References userrec::ClearBuff


    The documentation for this class was generated from the following files: -
    Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:33 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 new file mode 100644 index 000000000..927a91cc5 --- /dev/null +++ b/docs/module-doc/classServerConfig-members.html @@ -0,0 +1,63 @@ + + +InspIRCd: Member List + + + + +

    ServerConfig Member List

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

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    addrsServerConfig
    AdminEmailServerConfig
    AdminNameServerConfig
    AdminNickServerConfig
    ageclassbase
    AllowHalfopServerConfig
    classbase()classbase [inline]
    ClassesServerConfig
    ClearStack()ServerConfig
    config_fServerConfig
    ConfProcess(char *buffer, long linenumber, std::stringstream *errorstream, bool &error, std::string filename)ServerConfig [private]
    ConfValue(char *tag, char *var, int index, char *result, std::stringstream *config)ServerConfig
    ConfValueEnum(char *tag, std::stringstream *config)ServerConfig
    debuggingServerConfig
    DieDelayServerConfig
    diepassServerConfig
    DieValueServerConfig
    DisabledCommandsServerConfig
    dns_timeoutServerConfig
    DNSServerServerConfig
    EnumConf(std::stringstream *config_f, const char *tag)ServerConfig
    EnumValues(std::stringstream *config, const char *tag, int index)ServerConfig
    fgets_safe(char *buffer, size_t maxsize, FILE *&file)ServerConfig [private]
    include_stackServerConfig [private]
    LoadConf(const char *filename, std::stringstream *target, std::stringstream *errorstream)ServerConfig
    log_fileServerConfig
    LogLevelServerConfig
    MaxConnServerConfig
    MaxWhoResultsServerConfig
    ModPathServerConfig
    module_namesServerConfig
    motdServerConfig
    MOTDServerConfig
    MyExecutableServerConfig
    NetBufferSizeServerConfig
    NetworkServerConfig
    noforkServerConfig
    PIDServerConfig
    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
    ServerConfig()ServerConfig
    ServerDescServerConfig
    ServerNameServerConfig
    SoftLimitServerConfig
    unlimitcoreServerConfig
    ~classbase()classbase [inline]


    Generated on Wed Dec 14 14:49:34 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
    + + diff --git a/docs/module-doc/classServerConfig.html b/docs/module-doc/classServerConfig.html new file mode 100644 index 000000000..7991b1f19 --- /dev/null +++ b/docs/module-doc/classServerConfig.html @@ -0,0 +1,1512 @@ + + +InspIRCd: ServerConfig Class Reference + + + + +

    ServerConfig Class Reference

    #include <inspircd_io.h> +

    +Inheritance diagram for ServerConfig:

    Inheritance graph
    + + + +
    [legend]
    Collaboration diagram for ServerConfig:

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

    Public Member Functions

     ServerConfig ()
    void ClearStack ()
    void Read (bool bail, userrec *user)
    bool LoadConf (const char *filename, std::stringstream *target, std::stringstream *errorstream)
    int ConfValue (char *tag, char *var, int index, char *result, std::stringstream *config)
    int ReadConf (std::stringstream *config_f, const char *tag, const char *var, int index, char *result)
    int ConfValueEnum (char *tag, std::stringstream *config)
    int EnumConf (std::stringstream *config_f, const char *tag)
    int EnumValues (std::stringstream *config, const char *tag, int index)

    Public Attributes

    char ServerName [MAXBUF]
    char Network [MAXBUF]
    char ServerDesc [MAXBUF]
    char AdminName [MAXBUF]
    char AdminEmail [MAXBUF]
    char AdminNick [MAXBUF]
    char diepass [MAXBUF]
    char restartpass [MAXBUF]
    char motd [MAXBUF]
    char rules [MAXBUF]
    char PrefixQuit [MAXBUF]
    char DieValue [MAXBUF]
    char DNSServer [MAXBUF]
    char DisabledCommands [MAXBUF]
    char ModPath [1024]
    char MyExecutable [1024]
    FILE * log_file
    bool nofork
    bool unlimitcore
    bool AllowHalfop
    int dns_timeout
    int NetBufferSize
    int MaxConn
    unsigned int SoftLimit
    int MaxWhoResults
    int debugging
    int LogLevel
    int DieDelay
    char addrs [MAXBUF][255]
    file_cache MOTD
    file_cache RULES
    char PID [1024]
    std::stringstream config_f
    ClassVector Classes
    std::vector< std::stringmodule_names

    Private Member Functions

    int fgets_safe (char *buffer, size_t maxsize, FILE *&file)
    std::string ConfProcess (char *buffer, long linenumber, std::stringstream *errorstream, bool &error, std::string filename)

    Private Attributes

    std::vector< std::stringinclude_stack
    +

    Detailed Description

    + +

    + +

    +Definition at line 34 of file inspircd_io.h.


    Constructor & Destructor Documentation

    +

    + + + + +
    + + + + + + + + +
    ServerConfig::ServerConfig  ) 
    +
    + + + + + +
    +   + + +

    +

    +


    Member Function Documentation

    +

    + + + + +
    + + + + + + + + +
    void ServerConfig::ClearStack  ) 
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by ConfigReader::ConfigReader().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    std::string ServerConfig::ConfProcess char *  buffer,
    long  linenumber,
    std::stringstream *  errorstream,
    bool &  error,
    std::string  filename
    [private]
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    int ServerConfig::ConfValue char *  tag,
    char *  var,
    int  index,
    char *  result,
    std::stringstream *  config
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by userrec::HasPermission().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    int ServerConfig::ConfValueEnum char *  tag,
    std::stringstream *  config
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    int ServerConfig::EnumConf std::stringstream *  config_f,
    const char *  tag
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by ConfigReader::Enumerate().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    int ServerConfig::EnumValues std::stringstream *  config,
    const char *  tag,
    int  index
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by ConfigReader::EnumerateValues().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    int ServerConfig::fgets_safe char *  buffer,
    size_t  maxsize,
    FILE *&  file
    [private]
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    bool ServerConfig::LoadConf const char *  filename,
    std::stringstream *  target,
    std::stringstream *  errorstream
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by ConfigReader::ConfigReader().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    void ServerConfig::Read bool  bail,
    userrec user
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by Server::RehashServer().

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    int ServerConfig::ReadConf std::stringstream *  config_f,
    const char *  tag,
    const char *  var,
    int  index,
    char *  result
    +
    + + + + + +
    +   + + +

    + +

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

    +


    Member Data Documentation

    +

    + + + + +
    + + + + +
    char ServerConfig::addrs[MAXBUF][255]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 70 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::AdminEmail[MAXBUF]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 46 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::AdminName[MAXBUF]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 45 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::AdminNick[MAXBUF]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 47 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    bool ServerConfig::AllowHalfop
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 61 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    ClassVector ServerConfig::Classes
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 75 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    std::stringstream ServerConfig::config_f
    +
    + + + + + +
    +   + + +

    + +

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

    +Referenced by userrec::HasPermission().

    +

    + + + + +
    + + + + +
    int ServerConfig::debugging
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 67 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    int ServerConfig::DieDelay
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 69 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::diepass[MAXBUF]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 48 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::DieValue[MAXBUF]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 53 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::DisabledCommands[MAXBUF]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 55 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    int ServerConfig::dns_timeout
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 62 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::DNSServer[MAXBUF]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 54 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    std::vector<std::string> ServerConfig::include_stack [private]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 37 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    FILE* ServerConfig::log_file
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 58 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    int ServerConfig::LogLevel
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 68 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    int ServerConfig::MaxConn
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 64 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    int ServerConfig::MaxWhoResults
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 66 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::ModPath[1024]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 56 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    std::vector<std::string> ServerConfig::module_names
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 76 of file inspircd_io.h. +

    +Referenced by Server::FindModule().

    +

    + + + + +
    + + + + +
    file_cache ServerConfig::MOTD
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 71 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::motd[MAXBUF]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 50 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::MyExecutable[1024]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 57 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    int ServerConfig::NetBufferSize
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 63 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::Network[MAXBUF]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 43 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    bool ServerConfig::nofork
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 59 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::PID[1024]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 73 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::PrefixQuit[MAXBUF]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 52 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::restartpass[MAXBUF]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 49 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    file_cache ServerConfig::RULES
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 72 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::rules[MAXBUF]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 51 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::ServerDesc[MAXBUF]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 44 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    char ServerConfig::ServerName[MAXBUF]
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 42 of file inspircd_io.h. +

    +Referenced by userrec::userrec().

    +

    + + + + +
    + + + + +
    unsigned int ServerConfig::SoftLimit
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 65 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    bool ServerConfig::unlimitcore
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 60 of file inspircd_io.h.

    +


    The documentation for this class was generated from the following file: +
    Generated on Wed Dec 14 14:49:34 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 new file mode 100644 index 000000000..299c2a369 Binary files /dev/null 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 new file mode 100644 index 000000000..026a524ee --- /dev/null +++ b/docs/module-doc/classServerConfig__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 38,11 118,37 diff --git a/docs/module-doc/classServerConfig__coll__graph.md5 b/docs/module-doc/classServerConfig__coll__graph.md5 new file mode 100644 index 000000000..7c238fb05 --- /dev/null +++ b/docs/module-doc/classServerConfig__coll__graph.md5 @@ -0,0 +1 @@ +2e10a0ef0c4d0446b103d1c843d9b249 \ No newline at end of file diff --git a/docs/module-doc/classServerConfig__inherit__graph.gif b/docs/module-doc/classServerConfig__inherit__graph.gif new file mode 100644 index 000000000..4972f14c2 Binary files /dev/null and b/docs/module-doc/classServerConfig__inherit__graph.gif differ diff --git a/docs/module-doc/classServerConfig__inherit__graph.map b/docs/module-doc/classServerConfig__inherit__graph.map new file mode 100644 index 000000000..f176cb530 --- /dev/null +++ b/docs/module-doc/classServerConfig__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 18,7 98,34 diff --git a/docs/module-doc/classServerConfig__inherit__graph.md5 b/docs/module-doc/classServerConfig__inherit__graph.md5 new file mode 100644 index 000000000..6756d2a5d --- /dev/null +++ b/docs/module-doc/classServerConfig__inherit__graph.md5 @@ -0,0 +1 @@ +a3af96cfe8dd557f11a5c19346d12442 \ No newline at end of file diff --git a/docs/module-doc/classSocketEngine-members.html b/docs/module-doc/classSocketEngine-members.html index b34cedb34..920035deb 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 Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:34 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classSocketEngine.html b/docs/module-doc/classSocketEngine.html index 50de26e7d..96c5a96e2 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, and EngineHandle.
    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, and EngineHandle.
    00047 {
    +00048         log(DEBUG,"SocketEngine::~SocketEngine()");
     00049 #ifdef USE_EPOLL
     00050         close(EngineHandle);
     00051 #endif
    @@ -188,39 +188,39 @@ 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, ref, and X_READBIT.

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

    00066 {
    +Referenced by InspSocket::InspSocket(), and InspSocket::Poll().
    00066 {
     00067         if ((fd < 0) || (fd > 65535))
     00068                 return false;
     00069         this->fds.push_back(fd);
     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, 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,18 +276,18 @@ 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                 }
     00120         }
     00121 #ifdef USE_KQUEUE
     00122         struct kevent ke;
    -00123         EV_SET(&ke, fd, ref[fd] && X_READBIT ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL);
    +00123         EV_SET(&ke, fd, ref[fd] & X_READBIT ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL);
     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
    @@ -338,18 +338,18 @@ Returns the socket engines name This returns the name of the engine for use in /
     

    -Definition at line 196 of file socketengine.cpp.

    00197 {
    -00198 #ifdef USE_SELECT
    -00199         return "select";
    +Definition at line 193 of file socketengine.cpp.
    00194 {
    +00195 #ifdef USE_SELECT
    +00196         return "select";
    +00197 #endif
    +00198 #ifdef USE_KQUEUE
    +00199         return "kqueue";
     00200 #endif
    -00201 #ifdef USE_KQUEUE
    -00202         return "kqueue";
    +00201 #ifdef USE_EPOLL
    +00202         return "epoll";
     00203 #endif
    -00204 #ifdef USE_EPOLL
    -00205         return "epoll";
    -00206 #endif
    -00207         return "misconfigured";
    -00208 }
    +00204         return "misconfigured";
    +00205 }
     

    @@ -428,7 +428,7 @@ Please note that this doesnt wait long, only a couple of milliseconds. It return

    Definition at line 146 of file socketengine.cpp.

    -References DEBUG, EngineHandle, fds, ke_list, ref, ts, and X_READBIT.

    00147 {
    +References EngineHandle, fds, ke_list, ref, ts, and X_READBIT.
    00147 {
     00148         fdlist.clear();
     00149 #ifdef USE_SELECT
     00150         FD_ZERO(&wfdset);
    @@ -455,27 +455,24 @@ References DEBUG, 00171                 for (unsigned int a = 0; a < fds.size(); a++)
     00172                 {
     00173                         if ((FD_ISSET (fds[a], &rfdset)) || (FD_ISSET (fds[a], &wfdset)))
    -00174                         {
    -00175                                 log(DEBUG,"...Adding active %d",fds[a]);
    -00176                                 fdlist.push_back(fds[a]);
    -00177                         }
    -00178                 }
    -00179         }
    -00180 #endif
    -00181 #ifdef USE_KQUEUE
    -00182         ts.tv_nsec = 10000L;
    -00183         ts.tv_sec = 0;
    -00184         int i = kevent(EngineHandle, NULL, 0, &ke_list[0], 65535, &ts);
    -00185         for (int j = 0; j < i; j++)
    -00186                 fdlist.push_back(ke_list[j].ident);
    -00187 #endif
    -00188 #ifdef USE_EPOLL
    -00189         int i = epoll_wait(EngineHandle, events, 65535, 100);
    -00190         for (int j = 0; j < i; j++)
    -00191                 fdlist.push_back(events[j].data.fd);
    -00192 #endif
    -00193         return true;
    -00194 }
    +00174                                 fdlist.push_back(fds[a]);
    +00175                 }
    +00176         }
    +00177 #endif
    +00178 #ifdef USE_KQUEUE
    +00179         ts.tv_nsec = 10000L;
    +00180         ts.tv_sec = 0;
    +00181         int i = kevent(EngineHandle, NULL, 0, &ke_list[0], 65535, &ts);
    +00182         for (int j = 0; j < i; j++)
    +00183                 fdlist.push_back(ke_list[j].ident);
    +00184 #endif
    +00185 #ifdef USE_EPOLL
    +00186         int i = epoll_wait(EngineHandle, events, 65535, 100);
    +00187         for (int j = 0; j < i; j++)
    +00188                 fdlist.push_back(events[j].data.fd);
    +00189 #endif
    +00190         return true;
    +00191 }
     

    @@ -592,7 +589,7 @@ Referenced by Wait()


    The documentation for this class was generated from the following files: -
    Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:34 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 db5c65d7f..cfb859e88 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 Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 816354c08..07fa12a14 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 240 of file modules.cpp.

    00240 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { };
    +Definition at line 167 of file modules.cpp.
    00167 : 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 Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:36 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 196b71daa..3e9351ddc 100644 --- a/docs/module-doc/classWhoWasUser-members.html +++ b/docs/module-doc/classWhoWasUser-members.html @@ -13,7 +13,7 @@ nickWhoWasUser serverWhoWasUser signonWhoWasUser -
    Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classWhoWasUser.html b/docs/module-doc/classWhoWasUser.html index 2e5bd0e18..6fdfa0518 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 Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:36 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 50cb070a9..ef2188e8e 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 Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index 084f334d6..2f9771cb2 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -47,7 +47,7 @@ XLine is the base class for ban lines such as G lines and K lines.

    -Definition at line 34 of file xline.h.


    Member Data Documentation

    +Definition at line 39 of file xline.h.

    Member Data Documentation

    @@ -72,7 +72,7 @@ The duration of the ban, or 0 if permenant.

    -Definition at line 44 of file xline.h. +Definition at line 49 of file xline.h.

    @@ -99,7 +99,7 @@ Number of times the core matches the ban, for statistics.

    -Definition at line 56 of file xline.h. +Definition at line 61 of file xline.h.

    @@ -126,7 +126,7 @@ Reason for the ban.

    -Definition at line 52 of file xline.h. +Definition at line 57 of file xline.h.

    @@ -153,7 +153,7 @@ The time the line was added.

    -Definition at line 40 of file xline.h. +Definition at line 45 of file xline.h.

    @@ -180,12 +180,12 @@ Source of the ban.

    This can be a servername or an oper nickname

    -Definition at line 48 of file xline.h. +Definition at line 53 of file xline.h.


    The documentation for this class was generated from the following file: -
    Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:36 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 4ad178371..fc8645ecf 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 Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index 69600b14b..84dfd5be4 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -35,7 +35,7 @@ ZLine class.

    -Definition at line 93 of file xline.h.


    Member Data Documentation

    +Definition at line 98 of file xline.h.

    Member Data Documentation

    @@ -60,7 +60,7 @@ IP Address (xx.yy.zz.aa) to match against May contain wildcards.

    -Definition at line 99 of file xline.h. +Definition at line 104 of file xline.h.

    @@ -87,12 +87,12 @@ Set if this is a global Z:line (e.g.

    it came from another server)

    -Definition at line 103 of file xline.h. +Definition at line 108 of file xline.h.


    The documentation for this class was generated from the following file: -
    Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:36 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 4a99c5512..11464dd07 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index efda184a8..808cabf95 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -123,18 +123,18 @@ Creates a channel record and initialises it with default values.

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

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

    00102 {
    -00103         strcpy(name,"");
    -00104         strcpy(custom_modes,"");
    -00105         strcpy(topic,"");
    -00106         strcpy(setby,"");
    -00107         strcpy(key,"");
    -00108         created = topicset = limit = 0;
    -00109         binarymodes = 0;
    -00110         internal_userlist.clear();
    -00111 }
    +Definition at line 73 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 }
     

    @@ -207,12 +207,12 @@ 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 194 of file channels.cpp. +Definition at line 166 of file channels.cpp.

    -References DEBUG, and internal_userlist.

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

    @@ -252,20 +252,20 @@ 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 200 of file channels.cpp. -

    -References DEBUG, internal_userlist, and name.

    00201 {
    -00202         for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++)
    -00203         {
    -00204                 if (*a == castuser)
    -00205                 {
    -00206                         log(DEBUG,"Removed casted user from channel's internal list");
    -00207                         internal_userlist.erase(a);
    -00208                         return;
    -00209                 }
    -00210         }
    -00211         log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name);
    -00212 }
    +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 }
     

    @@ -307,21 +307,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 174 of file channels.cpp. -

    -References custom_mode_params.

    00175 {
    -00176         if (custom_mode_params.size())
    -00177         {
    -00178                 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
    -00179                 {
    -00180                         if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
    -00181                         {
    -00182                                 return i->parameter;
    -00183                         }
    -00184                 }
    -00185         }
    -00186         return "";
    -00187 }
    +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 }
     

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

    Returns:
    The number of users on this channel

    -Definition at line 189 of file channels.cpp.

    00190 {
    -00191         return (this->internal_userlist.size());
    -00192 }
    +Definition at line 161 of file channels.cpp.
    00162 {
    +00163         return (this->internal_userlist.size());
    +00164 }
     

    @@ -394,13 +394,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 214 of file channels.cpp. +Definition at line 186 of file channels.cpp.

    References internal_userlist.

    -Referenced by Server::GetUsers().

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

    @@ -441,9 +441,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 169 of file channels.cpp.

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

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

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

    -References custom_modes, DEBUG, and SetCustomModeParam().

    00114 {
    -00115         if (mode_on) {
    -00116                 static char m[3];
    -00117                 m[0] = mode;
    -00118                 m[1] = '\0';
    -00119                 if (!strchr(this->custom_modes,mode))
    -00120                 {
    -00121                         strlcat(custom_modes,m,MAXMODES);
    -00122                 }
    -00123                 log(DEBUG,"Custom mode %c set",mode);
    -00124         }
    -00125         else {
    -00126 
    -00127                 std::string a = this->custom_modes;
    -00128                 int pos = a.find(mode);
    -00129                 a.erase(pos,1);
    -00130                 strncpy(this->custom_modes,a.c_str(),MAXMODES);
    -00131 
    -00132                 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes);
    -00133                 this->SetCustomModeParam(mode,"",false);
    -00134         }
    -00135 }
    +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 }
     

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

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

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

    -Referenced by SetCustomMode().

    00139 {
    -00140 
    -00141         log(DEBUG,"SetCustomModeParam called");
    -00142         ModeParameter M;
    -00143         M.mode = mode;
    -00144         strlcpy(M.channel,this->name,CHANMAX);
    -00145         strlcpy(M.parameter,parameter,MAXBUF);
    -00146         if (mode_on)
    -00147         {
    -00148                 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter);
    -00149                 custom_mode_params.push_back(M);
    -00150         }
    -00151         else
    -00152         {
    -00153                 if (custom_mode_params.size())
    -00154                 {
    -00155                         for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
    -00156                         {
    -00157                                 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
    -00158                                 {
    -00159                                         log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter);
    -00160                                         custom_mode_params.erase(i);
    -00161                                         return;
    -00162                                 }
    -00163                         }
    -00164                 }
    -00165                 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!");
    -00166         }
    -00167 }
    +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 }
     

    @@ -665,7 +665,7 @@ Contains a bitmask of the CM_* builtin (RFC) binary mode symbols.

    Definition at line 145 of file channels.h.

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

    @@ -694,7 +694,7 @@ Creation time.

    Definition at line 123 of file channels.h.

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

    @@ -723,7 +723,7 @@ Plugins may use this field in any way they see fit.

    Definition at line 110 of file channels.h.

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

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

    Definition at line 115 of file channels.h.

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

    @@ -781,7 +781,7 @@ If this value is an empty string, there is no channel key in place.

    Definition at line 141 of file channels.h.

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

    @@ -810,7 +810,7 @@ If this value is zero, there is no limit in place.

    Definition at line 136 of file channels.h.

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

    @@ -839,7 +839,7 @@ The channels name.

    Definition at line 106 of file channels.h.

    -Referenced by chanrec(), DelUser(), and Server::PseudoToUser(). +Referenced by chanrec(), DelUser(), and Server::PseudoToUser().

    @@ -868,7 +868,7 @@ If this member is an empty string, no topic was ever set.

    Definition at line 131 of file channels.h.

    -Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(), and Server::PseudoToUser().

    @@ -897,7 +897,7 @@ If this is an empty string, no channel topic is set.

    Definition at line 120 of file channels.h.

    -Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(), and Server::PseudoToUser().

    @@ -926,12 +926,12 @@ If no topic was ever set, this will be equal to 127 of file channels.h.

    -Referenced by chanrec(), and Server::PseudoToUser(). +Referenced by chanrec(), and Server::PseudoToUser().


    The documentation for this class was generated from the following files: -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 c2be5d4e8..970fa0896 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index daa0a5d26..b5c474bf1 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -12,22 +12,23 @@

    Inheritance diagram for classbase:

    Inheritance graph
    - - + + - - + + - - + + - - + + - - - - + + + + +
    [legend]
    Collaboration diagram for classbase:

    Collaboration graph
    [legend]
    List of all members. @@ -149,7 +150,7 @@ Referenced by classbase().

    The documentation for this class was generated from the following file: -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classclassbase__inherit__graph.gif b/docs/module-doc/classclassbase__inherit__graph.gif index f31018bb8..5f6fdd3fd 100644 Binary files a/docs/module-doc/classclassbase__inherit__graph.gif and b/docs/module-doc/classclassbase__inherit__graph.gif differ diff --git a/docs/module-doc/classclassbase__inherit__graph.map b/docs/module-doc/classclassbase__inherit__graph.map index 60738fc27..63be230b4 100644 --- a/docs/module-doc/classclassbase__inherit__graph.map +++ b/docs/module-doc/classclassbase__inherit__graph.map @@ -1,17 +1,18 @@ base referer -rect $classAdmin.html 167,7 228,33 -rect $classConfigReader.html 145,57 249,84 +rect $classAdmin.html 167,7 228,34 +rect $classConfigReader.html 145,58 249,84 rect $classConnectClass.html 145,108 249,135 -rect $classExtensible.html 156,159 239,185 -rect $classExtMode.html 160,209 235,236 +rect $classExtensible.html 156,159 239,186 +rect $classExtMode.html 160,210 235,236 rect $classFileReader.html 153,260 241,287 -rect $classHostItem.html 160,311 235,337 -rect $classInvited.html 167,361 228,388 +rect $classHostItem.html 160,311 235,338 +rect $classInvited.html 167,362 228,388 rect $classModeParameter.html 139,412 256,439 -rect $classModule.html 164,463 231,489 -rect $classModuleFactory.html 143,513 252,540 +rect $classModule.html 164,463 231,490 +rect $classModuleFactory.html 143,514 252,540 rect $classModuleMessage.html 137,564 257,591 -rect $classServer.html 167,615 228,641 -rect $classucrec.html 171,665 224,692 -rect $classVersion.html 164,716 231,743 -rect $classXLine.html 169,767 225,793 +rect $classServer.html 167,615 228,642 +rect $classServerConfig.html 147,666 248,692 +rect $classucrec.html 171,716 224,743 +rect $classVersion.html 164,767 231,794 +rect $classXLine.html 169,818 225,844 diff --git a/docs/module-doc/classclassbase__inherit__graph.md5 b/docs/module-doc/classclassbase__inherit__graph.md5 index 6f7c9a558..f544ba5d8 100644 --- a/docs/module-doc/classclassbase__inherit__graph.md5 +++ b/docs/module-doc/classclassbase__inherit__graph.md5 @@ -1 +1 @@ -9ba08cccc68a6425b7a7fee87f20249b \ No newline at end of file +2dcead24293b96c88fe586688d98dbf1 \ No newline at end of file diff --git a/docs/module-doc/classcommand__t-members.html b/docs/module-doc/classcommand__t-members.html index 93f4ec932..e6a640d17 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:30 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 efc44e6cc..4442940b4 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -242,7 +242,7 @@ Definition at line 43 of
    The documentation for this class was generated from the following file: -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:30 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 d903847ef..f2d0f5a26 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index e445d4bd1..b412af793 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -142,7 +142,7 @@ Stats counter for bytes inbound.

    Definition at line 54 of file connection.h.

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

    @@ -171,7 +171,7 @@ Stats counter for bytes outbound.

    Definition at line 58 of file connection.h.

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

    @@ -200,7 +200,7 @@ Stats counter for commands inbound.

    Definition at line 62 of file connection.h.

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

    @@ -229,7 +229,7 @@ Stats counter for commands outbound.

    Definition at line 66 of file connection.h.

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

    @@ -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 connection(), ConfigReader::DumpErrors(), Server::PseudoToUser(), Server::SendTo(), userrec::userrec(), and Server::UserToPseudo().

    @@ -287,7 +287,7 @@ True if server/user has authenticated, false if otherwise.

    Definition at line 70 of file connection.h.

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

    @@ -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().

    @@ -345,7 +345,7 @@ Time that the connection last sent data, used to calculate idle time.

    Definition at line 92 of file connection.h.

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

    @@ -374,7 +374,7 @@ IP of connection.

    Definition at line 50 of file connection.h.

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

    @@ -403,7 +403,7 @@ Time the connection was last pinged.

    Definition at line 84 of file connection.h.

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

    @@ -432,7 +432,7 @@ Used by PING checks with clients.

    Definition at line 96 of file connection.h.

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

    @@ -461,7 +461,7 @@ For a serverrec this is the current listening port of the serverrec object.

    Definition at line 76 of file connection.h.

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

    @@ -490,7 +490,7 @@ Used by userrec to indicate the registration status of the connection.

    Definition at line 80 of file connection.h.

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

    @@ -519,12 +519,12 @@ Time the connection was created, set in the constructor.

    Definition at line 88 of file connection.h.

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


    The documentation for this class was generated from the following file: -
    Generated on Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:30 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 53e8a3548..29a5189f7 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -10,24 +10,24 @@
      A  
      D  
      H  
    -
      M  
    -StrHashComp (irc)   Admin   DNS   hash< in_addr > (nspace)   ModeParameter   
      U  
    +ModeParameter   StrHashComp (irc)   Admin   DNS   hash< in_addr > (nspace)   Module   
      U  
      B  
    -dns_ip4list   hash< string > (nspace)   Module   ucrec   BanItem   
      E  
    -HostItem   ModuleFactory   userrec   BoolSet   ELine   
      I  
    -ModuleMessage   
      V  
    +dns_ip4list   hash< string > (nspace)   ModuleFactory   ucrec   BanItem   
      E  
    +HostItem   ModuleMessage   userrec   BoolSet   ELine   
      I  
    +
      Q  
    +
      V  
      C  
    -Event   InAddr_HashComp (irc)   
      Q  
    -Version   chanrec   ExemptItem   InspSocket   QLine   
      W  
    -char_traits (std)   Extensible   Invited   
      R  
    -WhoWasUser   classbase   ExtMode   InviteItem   Request   
      X  
    +Event   InAddr_HashComp (irc)   QLine   Version   chanrec   ExemptItem   InspSocket   
      R  
    +
      W  
    +char_traits (std)   Extensible   Invited   Request   WhoWasUser   classbase   ExtMode   InviteItem   
      S  
    +
      X  
    command_t   
      F  
    -irc_char_traits (irc)   
      S  
    -XLine   ConfigReader   FileReader   
      K  
    -Server   
      Z  
    +irc_char_traits (irc)   Server   XLine   ConfigReader   FileReader   
      K  
    +ServerConfig   
      Z  
    ConnectClass   
      G  
    -KLine   SocketEngine   ZLine   connection   GLine   

    A | B | C | D | E | F | G | H | I | K | M | Q | R | S | U | V | W | X | Z

    -


    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +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 14:49:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classstd_1_1char__traits.html b/docs/module-doc/classstd_1_1char__traits.html index 5bab456d9..211fbdbb3 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 3b0fa6f47..74bc24deb 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 Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:34 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index ba8cd0d85..73fd8c3d4 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -131,9 +131,7 @@ 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. -

    -Referenced by Server::PseudoToUser(), and userrec::userrec(). +Definition at line 252 of file channels.h.

    @@ -160,14 +158,12 @@ 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. -

    -Referenced by userrec::userrec(). +Definition at line 247 of file channels.h.


    The documentation for this class was generated from the following file: -
    Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:34 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 6f14fc7a6..284a62c2d 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -13,7 +13,7 @@ BufferIsReady()userrec bytes_inconnection bytes_outconnection - chansuserrec + chansuserrec classbase()classbase [inline] ClearBuffer()userrec CloseSocket()userrec @@ -70,7 +70,7 @@ WriteErroruserrec ~classbase()classbase [inline] ~userrec()userrec [virtual] -
    Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index d7992bf63..e6360b99e 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -18,8 +18,7 @@ Inheritance diagram for userrec:

    [legend]
    Collaboration diagram for userrec:

    Collaboration graph
    - - +
    [legend]
    List of all members. @@ -95,7 +94,7 @@ Inheritance diagram for userrec:

    char 
    - + @@ -181,36 +180,32 @@ Definition at line 111 of f

    -Definition at line 38 of file users.cpp. -

    -References awaymsg, connection::bytes_in, connection::bytes_out, ucrec::channel, 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, ServerName, connection::signon, TIME, timeout, and ucrec::uc_modes.

    00039 {
    -00040         // the PROPER way to do it, AVOID bzero at *ALL* costs
    -00041         strcpy(nick,"");
    -00042         strcpy(ip,"127.0.0.1");
    -00043         timeout = 0;
    -00044         strcpy(ident,"");
    -00045         strcpy(host,"");
    -00046         strcpy(dhost,"");
    -00047         strcpy(fullname,"");
    -00048         strcpy(modes,"");
    -00049         server = (char*)FindServerNamePtr(ServerName);
    -00050         strcpy(awaymsg,"");
    -00051         strcpy(oper,"");
    -00052         reset_due = TIME;
    -00053         lines_in = 0;
    -00054         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
    -00055         flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
    -00056         haspassed = false;
    -00057         dns_done = false;
    -00058         recvq = "";
    -00059         sendq = "";
    -00060         for (int i = 0; i < MAXCHANS; i++)
    -00061         {
    -00062                 this->chans[i].channel = NULL;
    -00063                 this->chans[i].uc_modes = 0;
    -00064         }
    -00065         invites.clear();
    -00066 }
    +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 {
    +00038         // the PROPER way to do it, AVOID bzero at *ALL* costs
    +00039         strcpy(nick,"");
    +00040         strcpy(ip,"127.0.0.1");
    +00041         timeout = 0;
    +00042         strcpy(ident,"");
    +00043         strcpy(host,"");
    +00044         strcpy(dhost,"");
    +00045         strcpy(fullname,"");
    +00046         strcpy(modes,"");
    +00047         server = (char*)FindServerNamePtr(Config->ServerName);
    +00048         strcpy(awaymsg,"");
    +00049         strcpy(oper,"");
    +00050         reset_due = TIME;
    +00051         lines_in = 0;
    +00052         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
    +00053         flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
    +00054         haspassed = false;
    +00055         dns_done = false;
    +00056         recvq = "";
    +00057         sendq = "";
    +00058         chans.clear();
    +00059         invites.clear();
    +00060 }
     

    @@ -242,8 +237,8 @@ References awaymsg,

    -Definition at line 68 of file users.cpp.

    00069 {
    -00070 }
    +Definition at line 62 of file users.cpp.
    00063 {
    +00064 }
     

    @@ -279,32 +274,32 @@ This method adds data to the buffer of the user.

    The buffer can grow to any size within limits of the available memory, managed by the size of a std::string, however if any individual line in the buffer grows over 600 bytes in length (which is 88 chars over the RFC-specified limit per line) then the method will return false and the text will not be inserted.

    -Definition at line 205 of file users.cpp. -

    -References recvq, recvqmax, and SetWriteError().

    00206 {
    -00207         std::string b = "";
    -00208         for (unsigned int i = 0; i < a.length(); i++)
    -00209                 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7))
    -00210                         b = b + a[i];
    -00211         std::stringstream stream(recvq);
    -00212         stream << b;
    -00213         recvq = stream.str();
    -00214         unsigned int i = 0;
    -00215         // count the size of the first line in the buffer.
    -00216         while (i < recvq.length())
    -00217         {
    -00218                 if (recvq[i++] == '\n')
    -00219                         break;
    -00220         }
    -00221         if (recvq.length() > (unsigned)this->recvqmax)
    -00222         {
    -00223                 this->SetWriteError("RecvQ exceeded");
    -00224                 WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax);
    -00225         }
    -00226         // return false if we've had more than 600 characters WITHOUT
    -00227         // a carriage return (this is BAD, drop the socket)
    -00228         return (i < 600);
    -00229 }
    +Definition at line 198 of file users.cpp.
    +

    +References recvq, recvqmax, and SetWriteError().

    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))
    +00203                         b = b + a[i];
    +00204         std::stringstream stream(recvq);
    +00205         stream << b;
    +00206         recvq = stream.str();
    +00207         unsigned int i = 0;
    +00208         // count the size of the first line in the buffer.
    +00209         while (i < recvq.length())
    +00210         {
    +00211                 if (recvq[i++] == '\n')
    +00212                         break;
    +00213         }
    +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);
    +00218         }
    +00219         // return false if we've had more than 600 characters WITHOUT
    +00220         // a carriage return (this is BAD, drop the socket)
    +00221         return (i < 600);
    +00222 }
     

    @@ -339,21 +334,21 @@ Adds to the user's write buffer.

    You may add any amount of text up to this users sendq value, if you exceed the sendq value, SetWriteError() will be called to set the users error string to "SendQ exceeded", and further buffer adds will be dropped.

    -Definition at line 261 of file users.cpp. -

    -References sendq, sendqmax, and SetWriteError().

    00262 {
    -00263         if (this->GetWriteError() != "")
    -00264                 return;
    -00265         if (sendq.length() + data.length() > (unsigned)this->sendqmax)
    -00266         {
    -00267                 WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax);
    -00268                 this->SetWriteError("SendQ exceeded");
    -00269                 return;
    -00270         }
    -00271         std::stringstream stream;
    -00272         stream << sendq << data;
    -00273         sendq = stream.str();
    -00274 }
    +Definition at line 254 of file users.cpp.
    +

    +References sendq, sendqmax, and SetWriteError().

    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);
    +00261                 this->SetWriteError("SendQ exceeded");
    +00262                 return;
    +00263         }
    +00264         std::stringstream stream;
    +00265         stream << sendq << data;
    +00266         sendq = stream.str();
    +00267 }
     

    @@ -387,14 +382,14 @@ This method returns true if the buffer contains at least one carriage return cha

    one complete line may be read)

    -Definition at line 231 of file users.cpp. +Definition at line 224 of file users.cpp.

    -References recvq.

    00232 {
    -00233         for (unsigned int i = 0; i < recvq.length(); i++)
    -00234                 if (recvq[i] == '\n')
    -00235                         return true;
    -00236         return false;
    -00237 }
    +References recvq.
    00225 {
    +00226         for (unsigned int i = 0; i < recvq.length(); i++)
    +00227                 if (recvq[i] == '\n')
    +00228                         return true;
    +00229         return false;
    +00230 }
     

    @@ -428,13 +423,13 @@ This function clears the entire buffer by setting it to an empty string.

    -Definition at line 239 of file users.cpp. +Definition at line 232 of file users.cpp.

    References recvq.

    -Referenced by Server::PseudoToUser(), and Server::UserToPseudo().

    00240 {
    -00241         recvq = "";
    -00242 }
    +Referenced by Server::PseudoToUser(), and Server::UserToPseudo().
    00233 {
    +00234         recvq = "";
    +00235 }
     

    @@ -468,10 +463,10 @@ Shuts down and closes the user's socket.

    -Definition at line 72 of file users.cpp.

    00073 {
    -00074         shutdown(this->fd,2);
    -00075         close(this->fd);
    -00076 }
    +Definition at line 66 of file users.cpp.
    00067 {
    +00068         shutdown(this->fd,2);
    +00069         close(this->fd);
    +00070 }
     

    @@ -505,28 +500,28 @@ Flushes as much of the user's buffer to the file descriptor as possible.

    This function may not always flush the entire buffer, rather instead as much of it as it possibly can. If the send() call fails to send the entire buffer, the buffer position is advanced forwards and the rest of the data sent at the next call to this method.

    -Definition at line 277 of file users.cpp. -

    -References connection::bytes_out, connection::cmds_out, sendq, and SetWriteError().

    00278 {
    -00279         if (sendq.length())
    -00280         {
    -00281                 char* tb = (char*)this->sendq.c_str();
    -00282                 int n_sent = write(this->fd,tb,this->sendq.length());
    -00283                 if (n_sent == -1)
    -00284                 {
    -00285                         this->SetWriteError(strerror(errno));
    -00286                 }
    -00287                 else
    -00288                 {
    -00289                         // advance the queue
    -00290                         tb += n_sent;
    -00291                         this->sendq = tb;
    -00292                         // update the user's stats counters
    -00293                         this->bytes_out += n_sent;
    -00294                         this->cmds_out++;
    -00295                 }
    -00296         }
    -00297 }
    +Definition at line 270 of file users.cpp.
    +

    +References connection::bytes_out, connection::cmds_out, sendq, and SetWriteError().

    00271 {
    +00272         if (sendq.length())
    +00273         {
    +00274                 char* tb = (char*)this->sendq.c_str();
    +00275                 int n_sent = write(this->fd,tb,this->sendq.length());
    +00276                 if (n_sent == -1)
    +00277                 {
    +00278                         this->SetWriteError(strerror(errno));
    +00279                 }
    +00280                 else
    +00281                 {
    +00282                         // advance the queue
    +00283                         tb += n_sent;
    +00284                         this->sendq = tb;
    +00285                         // update the user's stats counters
    +00286                         this->bytes_out += n_sent;
    +00287                         this->cmds_out++;
    +00288                 }
    +00289         }
    +00290 }
     

    @@ -560,23 +555,23 @@ This method returns the first available string at the tail end of the buffer and

    This means it is a one way operation in a similar way to strtok(), and multiple calls return multiple lines if they are available. The results of this function if there are no lines to be read are unknown, always use BufferIsReady() to check if it is ok to read the buffer before calling GetBuffer().

    -Definition at line 244 of file users.cpp. -

    -References recvq.

    00245 {
    -00246         if (recvq == "")
    -00247                 return "";
    -00248         char* line = (char*)recvq.c_str();
    -00249         std::string ret = "";
    -00250         while ((*line != '\n') && (strlen(line)))
    -00251         {
    -00252                 ret = ret + *line;
    -00253                 line++;
    -00254         }
    -00255         if ((*line == '\n') || (*line == '\r'))
    -00256                 line++;
    -00257         recvq = line;
    -00258         return ret;
    -00259 }
    +Definition at line 237 of file users.cpp.
    +

    +References recvq.

    00238 {
    +00239         if (recvq == "")
    +00240                 return "";
    +00241         char* line = (char*)recvq.c_str();
    +00242         std::string ret = "";
    +00243         while ((*line != '\n') && (strlen(line)))
    +00244         {
    +00245                 ret = ret + *line;
    +00246                 line++;
    +00247         }
    +00248         if ((*line == '\n') || (*line == '\r'))
    +00249                 line++;
    +00250         recvq = line;
    +00251         return ret;
    +00252 }
     

    @@ -610,13 +605,13 @@ Returns the full displayed host of the user This member function returns the hos

    -Definition at line 78 of file users.cpp. +Definition at line 72 of file users.cpp.

    -References dhost, ident, and nick.

    00079 {
    -00080         static char result[MAXBUF];
    -00081         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost);
    -00082         return result;
    -00083 }
    +References dhost, ident, and nick.
    00073 {
    +00074         static char result[MAXBUF];
    +00075         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost);
    +00076         return result;
    +00077 }
     

    @@ -650,13 +645,13 @@ Returns the full real host of the user This member function returns the hostname

    If any form of hostname cloaking is in operation, e.g. through a module, then this method will ignore it and return the true hostname.

    -Definition at line 96 of file users.cpp. +Definition at line 89 of file users.cpp.

    -References connection::host, ident, and nick.

    00097 {
    -00098         static char fresult[MAXBUF];
    -00099         snprintf(fresult,MAXBUF,"%s!%s@%s",nick,ident,host);
    -00100         return fresult;
    -00101 }
    +References connection::host, ident, and nick.
    00090 {
    +00091         static char fresult[MAXBUF];
    +00092         snprintf(fresult,MAXBUF,"%s!%s@%s",nick,ident,host);
    +00093         return fresult;
    +00094 }
     

    @@ -690,11 +685,11 @@ Returns the list of channels this user has been invited to but has not yet joine

    -Definition at line 117 of file users.cpp. +Definition at line 110 of file users.cpp.

    -References invites.

    00118 {
    -00119         return &invites;
    -00120 }
    +References invites.
    00111 {
    +00112         return &invites;
    +00113 }
     

    @@ -728,11 +723,11 @@ Returns the write error which last occured on this connection or an empty string

    -Definition at line 307 of file users.cpp. +Definition at line 300 of file users.cpp.

    -References WriteError.

    00308 {
    -00309         return this->WriteError;
    -00310 }
    +References WriteError.
    00301 {
    +00302         return this->WriteError;
    +00303 }
     

    @@ -767,59 +762,59 @@ Returns true or false for if a user can execute a privilaged oper command.

    This is done by looking up their oper type from userrec::oper, then referencing this to their oper classes and checking the commands they can execute.

    -Definition at line 151 of file users.cpp. -

    -References config_f, and is_uline().

    00152 {
    -00153         char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
    -00154         char* mycmd;
    -00155         char* savept;
    -00156         char* savept2;
    -00157         
    -00158         // users on u-lined servers can completely bypass
    -00159         // all permissions based checks.
    -00160         //
    -00161         // of course, if this is sent to a remote server and this
    -00162         // server is not ulined there, then that other server
    -00163         // silently drops the command.
    -00164         if (is_uline(this->server))
    -00165                 return true;
    -00166         
    -00167         // are they even an oper at all?
    -00168         if (strchr(this->modes,'o'))
    -00169         {
    -00170                 for (int j =0; j < ConfValueEnum("type",&config_f); j++)
    -00171                 {
    -00172                         ConfValue("type","name",j,TypeName,&config_f);
    -00173                         if (!strcmp(TypeName,this->oper))
    -00174                         {
    -00175                                 ConfValue("type","classes",j,Classes,&config_f);
    -00176                                 char* myclass = strtok_r(Classes," ",&savept);
    -00177                                 while (myclass)
    -00178                                 {
    -00179                                         for (int k =0; k < ConfValueEnum("class",&config_f); k++)
    -00180                                         {
    -00181                                                 ConfValue("class","name",k,ClassName,&config_f);
    -00182                                                 if (!strcmp(ClassName,myclass))
    -00183                                                 {
    -00184                                                         ConfValue("class","commands",k,CommandList,&config_f);
    -00185                                                         mycmd = strtok_r(CommandList," ",&savept2);
    -00186                                                         while (mycmd)
    -00187                                                         {
    -00188                                                                 if ((!strcasecmp(mycmd,command)) || (*mycmd == '*'))
    -00189                                                                 {
    -00190                                                                         return true;
    -00191                                                                 }
    -00192                                                                 mycmd = strtok_r(NULL," ",&savept2);
    -00193                                                         }
    -00194                                                 }
    -00195                                         }
    -00196                                         myclass = strtok_r(NULL," ",&savept);
    -00197                                 }
    -00198                         }
    -00199                 }
    -00200         }
    -00201         return false;
    -00202 }
    +Definition at line 144 of file users.cpp.
    +

    +References ServerConfig::config_f, ServerConfig::ConfValue(), and is_uline().

    00145 {
    +00146         char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
    +00147         char* mycmd;
    +00148         char* savept;
    +00149         char* savept2;
    +00150         
    +00151         // users on u-lined servers can completely bypass
    +00152         // all permissions based checks.
    +00153         //
    +00154         // of course, if this is sent to a remote server and this
    +00155         // server is not ulined there, then that other server
    +00156         // silently drops the command.
    +00157         if (is_uline(this->server))
    +00158                 return true;
    +00159         
    +00160         // are they even an oper at all?
    +00161         if (strchr(this->modes,'o'))
    +00162         {
    +00163                 for (int j =0; j < Config->ConfValueEnum("type",&Config->config_f); j++)
    +00164                 {
    +00165                         Config->ConfValue("type","name",j,TypeName,&Config->config_f);
    +00166                         if (!strcmp(TypeName,this->oper))
    +00167                         {
    +00168                                 Config->ConfValue("type","classes",j,Classes,&Config->config_f);
    +00169                                 char* myclass = strtok_r(Classes," ",&savept);
    +00170                                 while (myclass)
    +00171                                 {
    +00172                                         for (int k =0; k < Config->ConfValueEnum("class",&Config->config_f); k++)
    +00173                                         {
    +00174                                                 Config->ConfValue("class","name",k,ClassName,&Config->config_f);
    +00175                                                 if (!strcmp(ClassName,myclass))
    +00176                                                 {
    +00177                                                         Config->ConfValue("class","commands",k,CommandList,&Config->config_f);
    +00178                                                         mycmd = strtok_r(CommandList," ",&savept2);
    +00179                                                         while (mycmd)
    +00180                                                         {
    +00181                                                                 if ((!strcasecmp(mycmd,command)) || (*mycmd == '*'))
    +00182                                                                 {
    +00183                                                                         return true;
    +00184                                                                 }
    +00185                                                                 mycmd = strtok_r(NULL," ",&savept2);
    +00186                                                         }
    +00187                                                 }
    +00188                                         }
    +00189                                         myclass = strtok_r(NULL," ",&savept);
    +00190                                 }
    +00191                         }
    +00192                 }
    +00193         }
    +00194         return false;
    +00195 }
     

    @@ -854,13 +849,13 @@ Adds a channel to a users invite list (invites them to a channel).

    -Definition at line 122 of file users.cpp. +Definition at line 115 of file users.cpp.

    -References Invited::channel, and invites.

    00123 {
    -00124         Invited i;
    -00125         strlcpy(i.channel,channel,CHANMAX);
    -00126         invites.push_back(i);
    -00127 }
    +References Invited::channel, and invites.
    00116 {
    +00117         Invited i;
    +00118         strlcpy(i.channel,channel,CHANMAX);
    +00119         invites.push_back(i);
    +00120 }
     

    @@ -895,20 +890,20 @@ Returns true if a user is invited to a channel.

    -Definition at line 103 of file users.cpp. +Definition at line 96 of file users.cpp.

    -References invites.

    00104 {
    -00105         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
    -00106         {
    -00107                 if (i->channel) {
    -00108                         if (!strcasecmp(i->channel,channel))
    -00109                         {
    -00110                                 return true;
    -00111                         }
    -00112                 }
    -00113         }
    -00114         return false;
    -00115 }
    +References invites.
    00097 {
    +00098         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
    +00099         {
    +00100                 if (i->channel) {
    +00101                         if (!strcasecmp(i->channel,channel))
    +00102                         {
    +00103                                 return true;
    +00104                         }
    +00105                 }
    +00106         }
    +00107         return false;
    +00108 }
     

    @@ -952,16 +947,13 @@ Calls read() to read some data for this user using their fd.

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

    -References DEBUG.

    00086 {
    -00087         if (this->fd > -1)
    -00088         {
    -00089                 log(DEBUG,"userrec::ReadData on fd %d",this->fd);
    -00090                 return read(this->fd, buffer, size);
    -00091         }
    -00092         else return 0;
    -00093 }
    +Definition at line 79 of file users.cpp.
    00080 {
    +00081         if (this->fd > -1)
    +00082         {
    +00083                 return read(this->fd, buffer, size);
    +00084         }
    +00085         else return 0;
    +00086 }
     

    @@ -996,28 +988,28 @@ Removes a channel from a users invite list.

    This member function is called on successfully joining an invite only channel to which the user has previously been invited, to clear the invitation.

    -Definition at line 129 of file users.cpp. -

    -References DEBUG, and invites.

    00130 {
    -00131         log(DEBUG,"Removing invites");
    -00132         if (channel)
    -00133         {
    -00134                 if (invites.size())
    -00135                 {
    -00136                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
    -00137                         {
    -00138                                 if (i->channel)
    -00139                                 {
    -00140                                         if (!strcasecmp(i->channel,channel))
    -00141                                         {
    -00142                                                 invites.erase(i);
    -00143                                                 return;
    -00144                                         }
    -00145                                 }
    -00146                         }
    -00147                 }
    -00148         }
    -00149 }
    +Definition at line 122 of file users.cpp.
    +

    +References DEBUG, and invites.

    00123 {
    +00124         log(DEBUG,"Removing invites");
    +00125         if (channel)
    +00126         {
    +00127                 if (invites.size())
    +00128                 {
    +00129                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
    +00130                         {
    +00131                                 if (i->channel)
    +00132                                 {
    +00133                                         if (!strcasecmp(i->channel,channel))
    +00134                                         {
    +00135                                                 invites.erase(i);
    +00136                                                 return;
    +00137                                         }
    +00138                                 }
    +00139                         }
    +00140                 }
    +00141         }
    +00142 }
     

    @@ -1052,16 +1044,16 @@ Sets the write error for a connection.

    This is done because the actual disconnect of a client may occur at an inopportune time such as half way through /LIST output. The WriteErrors of clients are checked at a more ideal time (in the mainloop) and errored clients purged.

    -Definition at line 299 of file users.cpp. +Definition at line 292 of file users.cpp.

    -References DEBUG, and WriteError. +References DEBUG, and WriteError.

    -Referenced by AddBuffer(), AddWriteBuf(), and FlushWriteBuf().

    00300 {
    -00301         log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str());
    -00302         // don't try to set the error twice, its already set take the first string.
    -00303         if (this->WriteError == "")
    -00304                 this->WriteError = error;
    -00305 }
    +Referenced by AddBuffer(), AddWriteBuf(), and FlushWriteBuf().
    00293 {
    +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;
    +00298 }
     

    @@ -1094,16 +1086,16 @@ If this string is empty, the user is not marked as away.

    Definition at line 158 of file users.h.

    -Referenced by userrec(). +Referenced by userrec().

    modes [54]
     The user's mode string.
    ucrec chans [MAXCHANS]
    std::vector< ucrecchans
    char * server
    -

    +

    @@ -1121,7 +1113,7 @@ Referenced by userrec().

    Definition at line 149 of file users.h.

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

    - +
    ucrec userrec::chans[MAXCHANS] std::vector<ucrec> userrec::chans

    @@ -1150,7 +1142,7 @@ This usually matches the value of 134 of file users.h.

    -Referenced by GetFullHost(), and userrec(). +Referenced by GetFullHost(), and userrec().

    @@ -1179,7 +1171,7 @@ True when DNS lookups are completed.

    Definition at line 181 of file users.h.

    -Referenced by userrec(). +Referenced by userrec().

    @@ -1208,7 +1200,7 @@ Number of lines the user can place into the buffer (up to the global NetBufferSi

    Definition at line 164 of file users.h.

    -Referenced by userrec(). +Referenced by userrec().

    @@ -1237,7 +1229,7 @@ The users full name.

    Definition at line 138 of file users.h.

    -Referenced by userrec(). +Referenced by userrec().

    @@ -1266,7 +1258,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().

    @@ -1295,7 +1287,7 @@ A list of channels the user has a pending invite to.

    Definition at line 117 of file users.h.

    -Referenced by GetInviteList(), InviteTo(), IsInvited(), RemoveInvite(), and userrec(). +Referenced by GetInviteList(), InviteTo(), IsInvited(), RemoveInvite(), and userrec().

    @@ -1324,7 +1316,7 @@ Flood counters.

    Definition at line 206 of file users.h.

    -Referenced by userrec(). +Referenced by userrec().

    @@ -1353,7 +1345,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 userrec().

    @@ -1382,7 +1374,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 ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), and userrec().

    @@ -1411,7 +1403,7 @@ This is used to check permissions in operclasses, so that we can say 'yay' or 'n

    Definition at line 177 of file users.h.

    -Referenced by userrec(). +Referenced by userrec().

    @@ -1494,7 +1486,7 @@ Lines from the IRCd awaiting processing are stored here. Upgraded april 2005, ol

    Definition at line 197 of file users.h.

    -Referenced by AddBuffer(), BufferIsReady(), ClearBuffer(), GetBuffer(), and userrec(). +Referenced by AddBuffer(), BufferIsReady(), ClearBuffer(), GetBuffer(), and userrec().

    @@ -1523,7 +1515,7 @@ Maximum size this user's recvq can become.

    Definition at line 220 of file users.h.

    -Referenced by AddBuffer(). +Referenced by AddBuffer().

    @@ -1550,7 +1542,7 @@ Referenced by AddBuffer()

    Definition at line 207 of file users.h.

    -Referenced by userrec(). +Referenced by userrec().

    @@ -1579,7 +1571,7 @@ Lines waiting to be sent are stored here until their buffer is flushed.

    Definition at line 202 of file users.h.

    -Referenced by AddWriteBuf(), FlushWriteBuf(), and userrec(). +Referenced by AddWriteBuf(), FlushWriteBuf(), and userrec().

    @@ -1608,7 +1600,7 @@ Maximum size this user's sendq can become.

    Definition at line 216 of file users.h.

    -Referenced by AddWriteBuf(). +Referenced by AddWriteBuf().

    @@ -1637,7 +1629,7 @@ The server the user is connected to.

    Definition at line 153 of file users.h.

    -Referenced by userrec(). +Referenced by userrec().

    @@ -1691,7 +1683,7 @@ Number of seconds this user is given to send USER/NICK If they do not send their

    Definition at line 170 of file users.h.

    -Referenced by userrec(). +Referenced by userrec().

    @@ -1718,12 +1710,12 @@ Referenced by userrec().

    Definition at line 212 of file users.h.

    -Referenced by GetWriteError(), and SetWriteError(). +Referenced by GetWriteError(), and SetWriteError().


    The documentation for this class was generated from the following files: -
    Generated on Mon Dec 12 18:31:03 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:36 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/classuserrec__coll__graph.gif b/docs/module-doc/classuserrec__coll__graph.gif index c04b77ecc..956286835 100644 Binary files a/docs/module-doc/classuserrec__coll__graph.gif and b/docs/module-doc/classuserrec__coll__graph.gif differ diff --git a/docs/module-doc/classuserrec__coll__graph.map b/docs/module-doc/classuserrec__coll__graph.map index 0c1aa906e..4bdefc2dc 100644 --- a/docs/module-doc/classuserrec__coll__graph.map +++ b/docs/module-doc/classuserrec__coll__graph.map @@ -1,3 +1,2 @@ base referer -rect $classconnection.html 199,429 284,456 -rect $classucrec.html 215,7 268,33 +rect $classconnection.html 209,355 295,382 diff --git a/docs/module-doc/classuserrec__coll__graph.md5 b/docs/module-doc/classuserrec__coll__graph.md5 index 4ad527f15..a057083b0 100644 --- a/docs/module-doc/classuserrec__coll__graph.md5 +++ b/docs/module-doc/classuserrec__coll__graph.md5 @@ -1 +1 @@ -e23f71aec70c162678f86988d6926812 \ No newline at end of file +b466bb927c1e2d01107d80d37ebcffbc \ No newline at end of file diff --git a/docs/module-doc/commands_8h-source.html b/docs/module-doc/commands_8h-source.html index 6a85ce6b1..2439e45c3 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 Mon Dec 12 18:30:58 2005 for InspIRCd by  +

    Generated on Wed Dec 14 14:49:16 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 037c66c72..6fc6be221 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -232,7 +232,7 @@ Other useful functions.

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

    @@ -2459,10 +2459,10 @@ Functions for u:lined servers.

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


    Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:20 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index 58b10d566..d4440247a 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 Mon Dec 12 18:30:58 2005 for InspIRCd by  +

    Generated on Wed Dec 14 14:49:16 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 81dcda960..fa0594791 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -31,14 +31,16 @@ Include dependency graph for connection.h:

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

    @@ -49,7 +51,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 Mon Dec 12 18:30:59 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:21 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 6955c5eeb..c64a82a3c 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 e2eda6b4d..c3efed18d 100644 --- a/docs/module-doc/connection_8h__dep__incl.map +++ b/docs/module-doc/connection_8h__dep__incl.map @@ -1,9 +1,11 @@ base referer -rect $users_8cpp-source.html 426,58 506,84 -rect $users_8h-source.html 155,184 219,211 -rect $channels_8cpp-source.html 416,286 515,312 -rect $modules_8cpp-source.html 416,210 515,236 -rect $commands_8h-source.html 268,108 367,135 -rect $message_8h-source.html 275,210 360,236 -rect $mode_8h-source.html 284,260 351,287 -rect $xline_8h-source.html 287,311 348,338 +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 diff --git a/docs/module-doc/connection_8h__dep__incl.md5 b/docs/module-doc/connection_8h__dep__incl.md5 index d38e2fed2..613f1d7f7 100644 --- a/docs/module-doc/connection_8h__dep__incl.md5 +++ b/docs/module-doc/connection_8h__dep__incl.md5 @@ -1 +1 @@ -e7f8b1061bdad90c2835adfcfbc5d84e \ No newline at end of file +c5ffe3853fdba64837971f3d30d71f14 \ 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 b657e40fe..c69bbe5ce 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -44,7 +44,7 @@ 00051 00052 #endif 00053 -

    Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +

    Generated on Wed Dec 14 14:49:16 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 87933639b..299e74444 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -20,9 +20,10 @@ Include dependency graph for ctables.h:

    - - + + +

    @@ -33,7 +34,7 @@ This graph shows which files directly or indirectly include this file:

     A structure that defines a command. More...
    -
    Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:22 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 f94b83651..175dc53ee 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 ed00ae9d1..2b918e669 100644 --- a/docs/module-doc/ctables_8h__dep__incl.map +++ b/docs/module-doc/ctables_8h__dep__incl.map @@ -1,4 +1,5 @@ base referer -rect $channels_8cpp-source.html 267,32 365,59 -rect $modules_8cpp-source.html 267,95 365,121 +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 diff --git a/docs/module-doc/ctables_8h__dep__incl.md5 b/docs/module-doc/ctables_8h__dep__incl.md5 index 7b340a242..5b3718c8e 100644 --- a/docs/module-doc/ctables_8h__dep__incl.md5 +++ b/docs/module-doc/ctables_8h__dep__incl.md5 @@ -1 +1 @@ -80b5bb648ec2e7f34f52355a033ea5d8 \ No newline at end of file +7aa3594f0112e287bece8166ab6a151c \ No newline at end of file diff --git a/docs/module-doc/dir_000000.html b/docs/module-doc/dir_000000.html index 9b76522eb..ac517be3a 100644 --- a/docs/module-doc/dir_000000.html +++ b/docs/module-doc/dir_000000.html @@ -20,7 +20,7 @@ directory  brain -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:36 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 5c9758f6e..e0d09e519 100644 --- a/docs/module-doc/dir_000001.html +++ b/docs/module-doc/dir_000001.html @@ -21,7 +21,7 @@ directory  inspircd-cvs -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:36 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 40e2805ec..a3add89ff 100644 --- a/docs/module-doc/dir_000002.html +++ b/docs/module-doc/dir_000002.html @@ -21,7 +21,7 @@ directory  inspircd -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 98968c648..85a188e03 100644 --- a/docs/module-doc/dir_000003.html +++ b/docs/module-doc/dir_000003.html @@ -26,7 +26,7 @@ directory  src -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 ee9742f9e..8f270fee0 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_000004.html b/docs/module-doc/dir_000004.html index 4ef26a681..7e8fbc290 100644 --- a/docs/module-doc/dir_000004.html +++ b/docs/module-doc/dir_000004.html @@ -31,6 +31,8 @@ file  hashcomp.h [code] +file  inspircd_io.h [code] + file  message.h [code] file  mode.h [code] @@ -41,12 +43,16 @@ file  socketengine.h [code] +file  typedefs.h [code] + +file  userprocess.h [code] + file  users.h [code] file  xline.h [code] -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:36 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 56cdf44c6..d1c9ad25f 100644 --- a/docs/module-doc/dir_000005.html +++ b/docs/module-doc/dir_000005.html @@ -31,7 +31,7 @@ file  users.cpp [code] -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 f9d56056d..f4aabd513 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.cppmessage.h
    channels.cppmode.h
    channels.cppmodules.h
    channels.cppusers.h
    channels.cppxline.h
    modules.cppcommands.h
    modules.cppctables.h
    modules.cpphashcomp.h
    modules.cppmessage.h
    modules.cppmode.h
    modules.cppmodules.h
    modules.cppsocket.h
    modules.cppsocketengine.h
    modules.cppusers.h
    modules.cppxline.h
    socket.cppsocket.h
    socket.cppsocketengine.h
    socketengine.cppsocketengine.h
    users.cppchannels.h
    users.cppcommands.h
    users.cppconnection.h
    users.cppusers.h

    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +

    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 14:49:37 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 e6c88b20b..41c07d90f 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/dirs.html b/docs/module-doc/dirs.html index a5dd1aa54..8b6681f4b 100644 --- a/docs/module-doc/dirs.html +++ b/docs/module-doc/dirs.html @@ -21,7 +21,7 @@ -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 81a851b2f..8419d55ac 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 Mon Dec 12 18:30:58 2005 for InspIRCd by  +

    Generated on Wed Dec 14 14:49:16 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 20c5da73b..d7c8b4325 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 Mon Dec 12 18:30:59 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:22 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index 3c6256c82..645b1618f 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -14,6 +14,7 @@ ctables.h [code] dns.h [code] hashcomp.h [code] + inspircd_io.h [code] message.h [code] mode.h [code] modules.cpp [code] @@ -22,11 +23,13 @@ socket.h [code] socketengine.cpp [code] socketengine.h [code] + typedefs.h [code] + userprocess.h [code] users.cpp [code] users.h [code] xline.h [code] -
    Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:16 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index a979e1956..b52346652 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -22,16 +22,21 @@ Here is a list of all class members with links to the classes they belong to: : Server
  • AddKLine() : Server
  • AddQLine() : Server
  • addr -: InspSocket
  • AddSocket() +: InspSocket
  • addrs +: ServerConfig
  • AddSocket() : Server
  • AddUser() : chanrec
  • AddWriteBuf() : userrec
  • addy : InspSocket
  • AddZLine() : Server
  • Admin() -: Admin
  • age -: classbase
  • awaymsg +: Admin
  • AdminEmail +: ServerConfig
  • AdminName +: ServerConfig
  • AdminNick +: ServerConfig
  • age +: classbase
  • AllowHalfop +: ServerConfig
  • awaymsg : userrec -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 98fec13c3..f333302fb 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 3016de1e8..3fe20333f 100644 --- a/docs/module-doc/functions_0x63.html +++ b/docs/module-doc/functions_0x63.html @@ -22,9 +22,11 @@ Here is a list of all class members with links to the classes they belong to: : Server
  • channel : Invited, ucrec, ModeParameter
  • chanrec() : chanrec
  • chans -: userrec
  • classbase() -: classbase
  • ClearBuffer() -: userrec
  • client +: userrec
  • classbase() +: classbase
  • Classes +: ServerConfig
  • ClearBuffer() +: userrec
  • ClearStack() +: ServerConfig
  • client : InspSocket
  • Close() : InspSocket
  • CloseSocket() : userrec
  • cmds_in @@ -32,15 +34,19 @@ Here is a list of all class members with links to the classes they belong to: : connection
  • command : command_t
  • CommonChannels() : Server
  • compare() -: irc::irc_char_traits
  • ConfigReader() -: ConfigReader
  • ConnectClass() +: irc::irc_char_traits
  • config_f +: ServerConfig
  • ConfigReader() +: ConfigReader
  • ConfProcess() +: ServerConfig
  • ConfValue() +: ServerConfig
  • ConfValueEnum() +: ServerConfig
  • ConnectClass() : ConnectClass
  • connection() : connection
  • CountUsers() : Server
  • created : chanrec
  • CreateModule() : ModuleFactory
  • custom_modes : chanrec -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 64457b2f0..b486d1deb 100644 --- a/docs/module-doc/functions_0x64.html +++ b/docs/module-doc/functions_0x64.html @@ -13,7 +13,8 @@ Here is a list of all class members with links to the classes they belong to:

    - d -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 ae170d403..2af57be17 100644 --- a/docs/module-doc/functions_0x65.html +++ b/docs/module-doc/functions_0x65.html @@ -14,9 +14,11 @@ Here is a list of all class members with links to the classes they belong to:

    - e -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 4054c8b2e..cbd3f80e6 100644 --- a/docs/module-doc/functions_0x66.html +++ b/docs/module-doc/functions_0x66.html @@ -15,7 +15,8 @@ Here is a list of all class members with links to the classes they belong to:
  • fc : FileReader
  • fd : InspSocket, connection
  • fds -: SocketEngine
  • FileReader() +: SocketEngine
  • fgets_safe() +: ServerConfig
  • FileReader() : FileReader
  • FileSize() : FileReader
  • find() : irc::irc_char_traits
  • FindChannel() @@ -29,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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 c15f14af6..84208512d 100644 --- a/docs/module-doc/functions_0x67.html +++ b/docs/module-doc/functions_0x67.html @@ -43,7 +43,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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 a114700c4..7a3f1f224 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 4eb320b23..d49e30262 100644 --- a/docs/module-doc/functions_0x69.html +++ b/docs/module-doc/functions_0x69.html @@ -16,14 +16,15 @@ Here is a list of all class members with links to the classes they belong to: : InspSocket
  • id : Event
  • ident : WhoWasUser, userrec
  • idle_lastmsg -: connection
  • InspSocket() +: connection
  • include_stack +: ServerConfig
  • InspSocket() : InspSocket
  • internal_userlist : chanrec
  • Invert() : BoolSet
  • invites : userrec
  • InviteTo() -: userrec
  • IP -: InspSocket
  • ip -: dns_ip4list, connection
  • ipaddr +: userrec
  • ip +: dns_ip4list, connection
  • IP +: InspSocket
  • ipaddr : ZLine
  • is_global : QLine, ZLine
  • IsCustomModeSet() : chanrec
  • IsInvited() @@ -33,7 +34,7 @@ Here is a list of all class members with links to the classes they belong to: : Server
  • IsValidMask() : Server
  • IsValidModuleCommand() : Server -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 180793afe..5830615d0 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 6c4b08018..171af41b5 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 1693d2b47..8192b194d 100644 --- a/docs/module-doc/functions_0x6c.html +++ b/docs/module-doc/functions_0x6c.html @@ -17,12 +17,15 @@ Here is a list of all class members with links to the classes they belong to: : InspSocket
  • limit : chanrec
  • lines_in : userrec
  • list -: ExtMode
  • LoadFile() +: ExtMode
  • LoadConf() +: ServerConfig
  • LoadFile() : FileReader
  • localbuf : DNS
  • Log() -: Server
  • lt() +: Server
  • log_file +: ServerConfig
  • LogLevel +: ServerConfig
  • lt() : irc::irc_char_traits -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 2085008d3..b6093d0d0 100644 --- a/docs/module-doc/functions_0x6d.html +++ b/docs/module-doc/functions_0x6d.html @@ -14,16 +14,23 @@ Here is a list of all class members with links to the classes they belong to:

    - m -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 81e70ea10..ca6207929 100644 --- a/docs/module-doc/functions_0x6e.html +++ b/docs/module-doc/functions_0x6e.html @@ -17,12 +17,15 @@ Here is a list of all class members with links to the classes they belong to: : chanrec
  • Name : Admin
  • ne() : irc::irc_char_traits
  • needsoper -: ExtMode
  • next +: ExtMode
  • NetBufferSize +: ServerConfig
  • Network +: ServerConfig
  • next : dns_ip4list
  • nick : QLine, WhoWasUser, userrec
  • Nick -: Admin
  • nping +: Admin
  • nofork +: ServerConfig
  • nping : connection -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 96cf3b4c2..f51e50ade 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 a525f99ae..49e7020ad 100644 --- a/docs/module-doc/functions_0x70.html +++ b/docs/module-doc/functions_0x70.html @@ -18,15 +18,17 @@ Here is a list of all class members with links to the classes they belong to: : ExtMode
  • PartUserFromChannel() : Server
  • pass : ConnectClass
  • password -: userrec
  • pingmax +: userrec
  • PID +: ServerConfig
  • pingmax : userrec
  • pingtime : ConnectClass
  • Poll() : InspSocket
  • port -: InspSocket, connection
  • ProtoSendMetaData() +: InspSocket, connection
  • PrefixQuit +: ServerConfig
  • ProtoSendMetaData() : Module
  • ProtoSendMode() : Module
  • PseudoToUser() : Server -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 0d0f0c958..47f71a836 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 26c478856..5a5585f90 100644 --- a/docs/module-doc/functions_0x72.html +++ b/docs/module-doc/functions_0x72.html @@ -13,7 +13,8 @@ Here is a list of all class members with links to the classes they belong to:

    - r -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +: Version
  • rules +: ServerConfig
  • RULES +: ServerConfig +
    Generated on Wed Dec 14 14:49:28 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 90825f1ff..ff0059cad 100644 --- a/docs/module-doc/functions_0x73.html +++ b/docs/module-doc/functions_0x73.html @@ -27,7 +27,10 @@ Here is a list of all class members with links to the classes they belong to: : Server
  • SendWallops() : Server
  • Server() : Server
  • server -: WhoWasUser, userrec, InspSocket
  • Set() +: WhoWasUser, userrec, InspSocket
  • ServerConfig() +: ServerConfig
  • ServerDesc +: ServerConfig
  • ServerName +: ServerConfig
  • Set() : BoolSet
  • set_by : HostItem
  • set_time : XLine, HostItem
  • setby @@ -39,10 +42,11 @@ Here is a list of all class members with links to the classes they belong to: : userrec
  • Shrink() : Extensible
  • signon : WhoWasUser, connection
  • SocketEngine() -: SocketEngine
  • source +: SocketEngine
  • SoftLimit +: ServerConfig
  • source : XLine, Event, Request, command_t
  • state : InspSocket -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 c876e6189..628fe57a4 100644 --- a/docs/module-doc/functions_0x74.html +++ b/docs/module-doc/functions_0x74.html @@ -14,16 +14,16 @@ Here is a list of all class members with links to the classes they belong to:

    - t -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 1ac82c26e..c1c6931dd 100644 --- a/docs/module-doc/functions_0x75.html +++ b/docs/module-doc/functions_0x75.html @@ -14,12 +14,13 @@ Here is a list of all class members with links to the classes they belong to:

    - u -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 21c00f111..31fec288f 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 ef31577b6..6ca8111cf 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 90ae5d686..db3305a53 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 241298cec..ad0b484df 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 c9adac83a..c30d20d1c 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 69ef12564..640cc3cf5 100644 --- a/docs/module-doc/functions_func_0x63.html +++ b/docs/module-doc/functions_func_0x63.html @@ -21,17 +21,21 @@ : Server
  • chanrec() : chanrec
  • classbase() : classbase
  • ClearBuffer() -: userrec
  • Close() +: userrec
  • ClearStack() +: ServerConfig
  • Close() : InspSocket
  • CloseSocket() : userrec
  • CommonChannels() : Server
  • compare() : irc::irc_char_traits
  • ConfigReader() -: ConfigReader
  • ConnectClass() +: ConfigReader
  • ConfProcess() +: ServerConfig
  • ConfValue() +: ServerConfig
  • ConfValueEnum() +: ServerConfig
  • ConnectClass() : ConnectClass
  • connection() : connection
  • CountUsers() : Server
  • CreateModule() : ModuleFactory -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 c2613283a..2ab41542c 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 b528824d5..e23bdecfb 100644 --- a/docs/module-doc/functions_func_0x65.html +++ b/docs/module-doc/functions_func_0x65.html @@ -12,15 +12,17 @@

    - e -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 b3ab50f95..0e2d42193 100644 --- a/docs/module-doc/functions_func_0x66.html +++ b/docs/module-doc/functions_func_0x66.html @@ -12,7 +12,8 @@

    - f -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 b86d92703..e1f310d6b 100644 --- a/docs/module-doc/functions_func_0x67.html +++ b/docs/module-doc/functions_func_0x67.html @@ -43,7 +43,7 @@ : Server, chanrec
  • GetVersion() : Module
  • GetWriteError() : userrec -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 e54ac98e4..82953a94a 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 3cd18c72d..f7b844dc7 100644 --- a/docs/module-doc/functions_func_0x69.html +++ b/docs/module-doc/functions_func_0x69.html @@ -23,7 +23,7 @@ : Server
  • IsValidMask() : Server
  • IsValidModuleCommand() : Server -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 e9391da95..2a881d52f 100644 --- a/docs/module-doc/functions_func_0x6a.html +++ b/docs/module-doc/functions_func_0x6a.html @@ -14,7 +14,7 @@

    - j -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 a9f1d57a6..1e3cd2bf6 100644 --- a/docs/module-doc/functions_func_0x6c.html +++ b/docs/module-doc/functions_func_0x6c.html @@ -12,11 +12,12 @@

    - l -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 bcc47d127..35a36040a 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 60400f2aa..79765436c 100644 --- a/docs/module-doc/functions_func_0x6e.html +++ b/docs/module-doc/functions_func_0x6e.html @@ -14,7 +14,7 @@

    - n -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 e62b423cc..55b1e196d 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 8cbc4acdd..e955bc3c0 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 cc50c55b2..71a14778e 100644 --- a/docs/module-doc/functions_func_0x71.html +++ b/docs/module-doc/functions_func_0x71.html @@ -14,7 +14,7 @@

    - q -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 ad2ea97bc..ae30a71bb 100644 --- a/docs/module-doc/functions_func_0x72.html +++ b/docs/module-doc/functions_func_0x72.html @@ -13,7 +13,8 @@

    - r -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 49383e229..d8411a688 100644 --- a/docs/module-doc/functions_func_0x73.html +++ b/docs/module-doc/functions_func_0x73.html @@ -24,7 +24,8 @@ : Server
  • SendToModeMask() : Server
  • SendWallops() : Server
  • Server() -: Server
  • Set() +: Server
  • ServerConfig() +: ServerConfig
  • Set() : BoolSet
  • SetCustomMode() : chanrec
  • SetCustomModeParam() : chanrec
  • SetNS() @@ -33,7 +34,7 @@ : userrec
  • Shrink() : Extensible
  • SocketEngine() : SocketEngine -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 ba9318fb6..e6e95fd87 100644 --- a/docs/module-doc/functions_func_0x74.html +++ b/docs/module-doc/functions_func_0x74.html @@ -14,7 +14,7 @@

    - t -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 98febe922..e58b673d0 100644 --- a/docs/module-doc/functions_func_0x75.html +++ b/docs/module-doc/functions_func_0x75.html @@ -17,7 +17,7 @@ : BoolSet
  • userrec() : userrec
  • UserToPseudo() : Server -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 4fbdb9794..6c1009524 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 2fa91d850..057b8a056 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 dc5fe8245..a5df81d15 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 Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 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 e4f24c594..9fb59da5d 100644 --- a/docs/module-doc/functions_vars.html +++ b/docs/module-doc/functions_vars.html @@ -13,9 +13,14 @@

    - a -

    - b -

    - d -

    - e -

    - k -

    +: DNS
  • log_file +: ServerConfig
  • LogLevel +: ServerConfig

    - m -

    - n -

    - o -

    +: InspSocket, connection
  • PrefixQuit +: ServerConfig

    - r -

    +: Version
  • rules +: ServerConfig
  • RULES +: ServerConfig

    - s -

    - t -

    - u -

    - w -

    -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:29 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index 878fe151f..32ed3bd7b 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -31,13 +31,15 @@ Here is a list of all file members with links to the files they belong to: : xline.h
  • add_qline() : xline.h
  • add_zline() : xline.h
  • address_cache -: modules.cpp
  • AdminEmail -: modules.cpp, channels.cpp
  • AdminName -: modules.cpp, channels.cpp
  • AdminNick -: modules.cpp, channels.cpp
  • allowed_umode() -: mode.h
  • apply_lines() -: xline.h -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +: typedefs.h
  • allowed_umode() +: mode.h
  • APPLY_ALL +: xline.h
  • APPLY_GLINES +: xline.h
  • APPLY_KLINES +: xline.h
  • apply_lines() +: xline.h
  • APPLY_QLINES +: xline.h
  • APPLY_ZLINES +: xline.h +
    Generated on Wed Dec 14 14:49:37 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 26e544fd9..426e8c622 100644 --- a/docs/module-doc/globals_0x62.html +++ b/docs/module-doc/globals_0x62.html @@ -13,10 +13,11 @@ Here is a list of all file members with links to the files they belong to:

    - b -

    -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 a89c9cfc8..d7d0a80ff 100644 --- a/docs/module-doc/globals_0x63.html +++ b/docs/module-doc/globals_0x63.html @@ -16,11 +16,13 @@ Here is a list of all file members with links to the files they belong to: : message.h
  • CC_ALLOW : users.h
  • CC_DENY : users.h
  • chan_hash -: modules.cpp
  • ChangeDisplayedHost() +: typedefs.h
  • ChangeDisplayedHost() : message.h
  • ChangeName() : message.h
  • chanlist : modules.cpp
  • chanuserlist -: modules.h
  • chlist() +: modules.h
  • CheckDie() +: userprocess.h
  • CheckRoot() +: userprocess.h
  • chlist() : message.h
  • chop() : message.h
  • ClassVector : users.h
  • CleanAndResolve() @@ -34,17 +36,18 @@ Here is a list of all file members with links to the files they belong to: : channels.h
  • cmdlist : modules.cpp
  • cmode() : message.h
  • command_table -: modules.cpp
  • common_channels() +: typedefs.h
  • common_channels() : message.h
  • CONF_FILE_NOT_FOUND : modules.h
  • CONF_NOT_A_NUMBER : modules.h
  • CONF_NOT_UNSIGNED : modules.h
  • CONF_VALUE_NOT_FOUND -: modules.h
  • config_f -: users.cpp, modules.cpp, channels.cpp
  • createcommand() +: modules.h
  • Config +: users.cpp, modules.cpp, channels.cpp
  • config_f +: channels.cpp
  • createcommand() : modules.h
  • cstatus() : message.h
  • custom_mode_params : channels.cpp -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 f14ae2ce5..2920aa66c 100644 --- a/docs/module-doc/globals_0x64.html +++ b/docs/module-doc/globals_0x64.html @@ -12,22 +12,20 @@ Here is a list of all file members with links to the files they belong to:

    - d -

    -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 893387027..3a2cf9570 100644 --- a/docs/module-doc/globals_0x65.html +++ b/docs/module-doc/globals_0x65.html @@ -15,11 +15,12 @@ Here is a list of all file members with links to the files they belong to:
  • eline_set_creation_time() : xline.h
  • EMode : modules.cpp
  • ExemptList -: channels.h
  • expire_lines() +: channels.h
  • Exit() +: inspircd_io.h
  • expire_lines() : xline.h
  • ExtModeList -: modules.cpp
  • ExtModeListIter -: modules.cpp -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +: typedefs.h
  • ExtModeListIter +: typedefs.h +
    Generated on Wed Dec 14 14:49:37 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 715bba81a..cb4013876 100644 --- a/docs/module-doc/globals_0x66.html +++ b/docs/module-doc/globals_0x66.html @@ -16,10 +16,11 @@ Here is a list of all file members with links to the files they belong to: : modules.cpp, channels.cpp
  • FD_MAGIC_NUMBER : modules.h
  • fd_ref_table : modules.cpp
  • file_cache -: modules.h
  • FOREACH_MOD +: modules.h
  • FileExists() +: inspircd_io.h
  • FOREACH_MOD : modules.h
  • FOREACH_RESULT : modules.h -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 56cad4d97..388bdfb1b 100644 --- a/docs/module-doc/globals_0x67.html +++ b/docs/module-doc/globals_0x67.html @@ -17,7 +17,7 @@ Here is a list of all file members with links to the files they belong to: : mode.h
  • give_voice() : mode.h
  • gline_set_creation_time() : xline.h -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 e33f32940..daa1712b6 100644 --- a/docs/module-doc/globals_0x68.html +++ b/docs/module-doc/globals_0x68.html @@ -67,7 +67,7 @@ Here is a list of all file members with links to the files they belong to: : commands.h
  • has_channel() : message.h
  • hasumode() : message.h -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 0b83a0dda..da6ab59dc 100644 --- a/docs/module-doc/globals_0x69.html +++ b/docs/module-doc/globals_0x69.html @@ -21,8 +21,7 @@ Here is a list of all file members with links to the files they belong to: : socket.h
  • I_ERR_TIMEOUT : socket.h
  • I_ERROR : socket.h
  • I_LISTENING -: socket.h
  • include_stack -: modules.cpp
  • InspSocketError +: socket.h
  • InspSocketError : socket.h
  • InspSocketState : socket.h
  • InvitedList : users.h
  • InviteList @@ -32,7 +31,7 @@ Here is a list of all file members with links to the files they belong to: : commands.h
  • isident() : message.h
  • isnick() : message.h -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 1902cda06..0af135f9c 100644 --- a/docs/module-doc/globals_0x6c.html +++ b/docs/module-doc/globals_0x6c.html @@ -12,11 +12,9 @@ Here is a list of all file members with links to the files they belong to:

    - l -

    -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
  • LoadAllModules() +: userprocess.h +
    Generated on Wed Dec 14 14:49:37 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 e5e550282..55a3cc39f 100644 --- a/docs/module-doc/globals_0x6d.html +++ b/docs/module-doc/globals_0x6d.html @@ -17,9 +17,7 @@ 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
  • MaxConn -: socket.cpp
  • MaxWhoResults -: modules.cpp, channels.cpp
  • merge_mode() +: xline.h
  • merge_mode() : mode.h
  • merge_mode2() : mode.h
  • MODCOUNT : modules.cpp, channels.cpp
  • ModeDefined() @@ -29,15 +27,13 @@ Here is a list of all file members with links to the files they belong to: : modules.cpp
  • ModeIsListMode() : modules.cpp
  • ModeMakeList() : modules.cpp
  • module_names -: modules.cpp, channels.cpp
  • module_sockets +: channels.cpp
  • module_sockets : modules.cpp
  • modules -: modules.cpp, channels.cpp
  • MOTD -: modules.cpp
  • motd -: modules.cpp, channels.cpp
  • MT_CHANNEL +: modules.cpp, channels.cpp
  • MT_CHANNEL : modules.h
  • MT_CLIENT : modules.h
  • MT_SERVER : modules.h -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 a15d7a912..bda58d3d6 100644 --- a/docs/module-doc/globals_0x6e.html +++ b/docs/module-doc/globals_0x6e.html @@ -12,14 +12,11 @@ Here is a list of all file members with links to the files they belong to:

    - n -

    -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 3701656e8..82748c8bb 100644 --- a/docs/module-doc/globals_0x6f.html +++ b/docs/module-doc/globals_0x6f.html @@ -12,9 +12,11 @@ Here is a list of all file members with links to the files they belong to:

    - o -

    -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
  • OpenLog() +: userprocess.h
  • openSockfd +: socket.cpp
  • OpenTCPSocket() +: inspircd_io.h +
    Generated on Wed Dec 14 14:49:37 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 6d913f2d7..3fe8470ee 100644 --- a/docs/module-doc/globals_0x70.html +++ b/docs/module-doc/globals_0x70.html @@ -13,12 +13,12 @@ Here is a list of all file members with links to the files they belong to:

    - p -

    -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +: mode.h
  • ProcessUser() +: userprocess.h +
    Generated on Wed Dec 14 14:49:37 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 434bc765d..80788e913 100644 --- a/docs/module-doc/globals_0x71.html +++ b/docs/module-doc/globals_0x71.html @@ -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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 86e4d731e..2b5acd8d5 100644 --- a/docs/module-doc/globals_0x72.html +++ b/docs/module-doc/globals_0x72.html @@ -14,11 +14,8 @@ Here is a list of all file members with links to the files they belong to:

    - r -

    -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +: socketengine.cpp +
    Generated on Wed Dec 14 14:49:37 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 041882958..701b40539 100644 --- a/docs/module-doc/globals_0x73.html +++ b/docs/module-doc/globals_0x73.html @@ -15,10 +15,11 @@ 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
  • ServerDesc -: modules.cpp, channels.cpp
  • ServerName -: users.cpp, modules.cpp, channels.cpp
  • SPARSE -: modules.h
  • startup_time +: modules.h, mode.h
  • 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() : xline.h
  • stats_g() : xline.h
  • stats_k() @@ -31,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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 d3f574ece..c5928f80e 100644 --- a/docs/module-doc/globals_0x74.html +++ b/docs/module-doc/globals_0x74.html @@ -20,7 +20,7 @@ Here is a list of all file members with links to the files they belong to: : message.h
  • tidystring() : message.h
  • TIME : users.cpp, socket.cpp, modules.cpp, channels.cpp -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 50533a42a..bd8905e78 100644 --- a/docs/module-doc/globals_0x75.html +++ b/docs/module-doc/globals_0x75.html @@ -17,10 +17,9 @@ Here is a list of all file members with links to the files they belong to: : channels.h
  • UCMODE_OP : channels.h
  • UCMODE_PROTECT : channels.h
  • UCMODE_VOICE -: channels.h
  • unlimitcore -: socket.cpp
  • user_hash -: modules.cpp -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +: channels.h
  • user_hash +: typedefs.h +
    Generated on Wed Dec 14 14:49:37 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 a19d21959..61ed3360c 100644 --- a/docs/module-doc/globals_0x76.html +++ b/docs/module-doc/globals_0x76.html @@ -13,13 +13,13 @@ Here is a list of all file members with links to the files they belong to:

    - v -

    -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 3eeec7149..5b03af87a 100644 --- a/docs/module-doc/globals_0x77.html +++ b/docs/module-doc/globals_0x77.html @@ -14,10 +14,11 @@ Here is a list of all file members with links to the files they belong to:

    - w -

    -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +: modules.cpp, channels.cpp
  • WritePID() +: inspircd_io.h +
    Generated on Wed Dec 14 14:49:37 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 05dcb161d..b9d5f36c7 100644 --- a/docs/module-doc/globals_0x78.html +++ b/docs/module-doc/globals_0x78.html @@ -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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 cd6f378ed..d1c40cf44 100644 --- a/docs/module-doc/globals_0x7a.html +++ b/docs/module-doc/globals_0x7a.html @@ -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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/globals_defs.html b/docs/module-doc/globals_defs.html index 93ede95b3..faa848260 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -41,8 +41,8 @@ : modules.h

    - d -

    +: modules.h, inspircd_io.h
  • DEFAULT +: modules.h, inspircd_io.h

    - f -

    - n -

    - s -

    - v -

    -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 99c2c3ee1..72f29fe7c 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 ed8d625b6..1b9879ba7 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 16c4147d9..cf9bb3501 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -6,7 +6,7 @@ -
    a | b | c | d | e | f | g | h | i | m | n | p | q | r | s | t | z
    +
    a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | w | z

    @@ -20,15 +20,18 @@ : xline.h

  • add_zline() : xline.h
  • allowed_umode() : mode.h
  • apply_lines() -: xline.h +: xline.h

    - b -

    - c -

    - d -

    - e -

    - f -

    +: modules.cpp, channels.cpp
  • FileExists() +: inspircd_io.h

    - g -

    +

    - l -

    - m -

    - q -

    +
    Generated on Wed Dec 14 14:49:37 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 3e6ac2967..bd909da15 100644 --- a/docs/module-doc/globals_vars.html +++ b/docs/module-doc/globals_vars.html @@ -6,16 +6,18 @@ -
    a | b | c | d | e | f | i | l | m | n | o | p | r | s | t | u | w | x
    +
    a | b | c | e | f | i | m | o | p | r | s | t | w | x

    - a -

    +
  • APPLY_ALL +: xline.h
  • APPLY_GLINES +: xline.h
  • APPLY_KLINES +: xline.h
  • APPLY_QLINES +: xline.h
  • APPLY_ZLINES +: xline.h

    - b -

    @@ -23,15 +25,10 @@
  • chanlist : modules.cpp
  • clientlist : modules.cpp
  • cmdlist -: modules.cpp
  • config_f -: users.cpp, modules.cpp, channels.cpp
  • custom_mode_params +: modules.cpp
  • Config +: users.cpp, modules.cpp, channels.cpp
  • config_f +: channels.cpp
  • custom_mode_params : channels.cpp -

    - d -

    - e -

    @@ -40,55 +37,32 @@ : modules.cpp, channels.cpp
  • fd_ref_table : modules.cpp

    - i -

    -

    - l -

    - m -

    -

    - n -

    +: modules.cpp, channels.cpp

    - o -

    - p -

    +: modules.cpp
  • ports +: modules.cpp

    - r -

    +: socketengine.cpp

    - s -

    - t -

    -

    - u -

    - w -

    -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 b633c5d3f..3737e5375 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 328c11062..aa9b29253 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 Mon Dec 12 18:30:58 2005 for InspIRCd by  +

    Generated on Wed Dec 14 14:49:16 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 282bdb2d5..277bce791 100644 --- a/docs/module-doc/hashcomp_8h.html +++ b/docs/module-doc/hashcomp_8h.html @@ -16,7 +16,8 @@ Include dependency graph for hashcomp.h:

    - + +

    @@ -77,7 +78,7 @@ This graph shows which files directly or indirectly include this file:

    44 of file hashcomp.h. -
    Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:22 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 ba92d59f7..076e8b9e0 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 d4d87c8b6..f8f9b2cc4 100644 --- a/docs/module-doc/hashcomp_8h__dep__incl.map +++ b/docs/module-doc/hashcomp_8h__dep__incl.map @@ -1,2 +1,3 @@ base referer -rect $modules_8cpp-source.html 151,7 249,33 +rect $modules_8cpp-source.html 284,32 383,59 +rect $typedefs_8h-source.html 151,58 236,84 diff --git a/docs/module-doc/hashcomp_8h__dep__incl.md5 b/docs/module-doc/hashcomp_8h__dep__incl.md5 index 13ab4aa0c..02fa744bc 100644 --- a/docs/module-doc/hashcomp_8h__dep__incl.md5 +++ b/docs/module-doc/hashcomp_8h__dep__incl.md5 @@ -1 +1 @@ -18f1cb2dbb2c368f942055809c28a9a3 \ No newline at end of file +40ab5dae8b125b51cc6bddd308d045f3 \ No newline at end of file diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 87923ef0d..2f41e34b2 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -45,6 +45,7 @@ This inheritance list is sorted roughly, but not completely, alphabetically:
  • Server +
  • ServerConfig
  • ucrec
  • Version
  • XLine @@ -66,7 +67,7 @@ This inheritance list is sorted roughly, but not completely, alphabetically: -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/inherit__graph__2.gif b/docs/module-doc/inherit__graph__2.gif index e9fb3711f..e18fe591e 100644 Binary files a/docs/module-doc/inherit__graph__2.gif and b/docs/module-doc/inherit__graph__2.gif differ diff --git a/docs/module-doc/inherit__graph__2.map b/docs/module-doc/inherit__graph__2.map index 3d1b2b163..089be13aa 100644 --- a/docs/module-doc/inherit__graph__2.map +++ b/docs/module-doc/inherit__graph__2.map @@ -1,5 +1,5 @@ base referer -rect $classclassbase.html 8,387 88,413 +rect $classclassbase.html 8,412 88,439 rect $classAdmin.html 167,7 228,33 rect $classConfigReader.html 146,57 250,84 rect $classConnectClass.html 146,108 250,135 @@ -13,9 +13,10 @@ rect $classModule.html 164,463 231,489 rect $classModuleFactory.html 143,513 252,540 rect $classModuleMessage.html 138,564 258,591 rect $classServer.html 167,615 228,641 -rect $classucrec.html 171,665 224,692 -rect $classVersion.html 164,716 231,743 -rect $classXLine.html 170,767 226,793 +rect $classServerConfig.html 147,665 248,692 +rect $classucrec.html 171,716 224,743 +rect $classVersion.html 164,767 231,793 +rect $classXLine.html 170,817 226,844 rect $classchanrec.html 319,108 388,135 rect $classcommand__t.html 308,159 399,185 rect $classconnection.html 311,209 396,236 @@ -25,8 +26,8 @@ rect $classExemptItem.html 307,311 400,337 rect $classInviteItem.html 314,361 394,388 rect $classEvent.html 326,539 382,565 rect $classRequest.html 318,589 390,616 -rect $classELine.html 326,665 382,692 -rect $classGLine.html 324,716 383,743 -rect $classKLine.html 326,767 382,793 -rect $classQLine.html 324,817 383,844 -rect $classZLine.html 326,868 382,895 +rect $classELine.html 326,716 382,743 +rect $classGLine.html 324,767 383,793 +rect $classKLine.html 326,817 382,844 +rect $classQLine.html 324,868 383,895 +rect $classZLine.html 326,919 382,945 diff --git a/docs/module-doc/inherit__graph__2.md5 b/docs/module-doc/inherit__graph__2.md5 index f9ee5de24..c52b8028e 100644 --- a/docs/module-doc/inherit__graph__2.md5 +++ b/docs/module-doc/inherit__graph__2.md5 @@ -1 +1 @@ -5245feb0cb84245dfc703490db270136 \ No newline at end of file +6d4274482c5e5284d113f8910d688065 \ No newline at end of file diff --git a/docs/module-doc/inherits.html b/docs/module-doc/inherits.html index 8e56c5d22..85f6f35c2 100644 --- a/docs/module-doc/inherits.html +++ b/docs/module-doc/inherits.html @@ -19,7 +19,7 @@ - + @@ -33,9 +33,10 @@ - - - + + + + @@ -45,11 +46,11 @@ - - - - - + + + + + @@ -88,7 +89,7 @@ -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:38 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/inspircd__io_8h-source.html b/docs/module-doc/inspircd__io_8h-source.html new file mode 100644 index 000000000..1d9d839b9 --- /dev/null +++ b/docs/module-doc/inspircd__io_8h-source.html @@ -0,0 +1,120 @@ + + +InspIRCd: inspircd_io.h Source File + + + + + +

    inspircd_io.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_IO_H__
    +00018 #define __INSPIRCD_IO_H__
    +00019 
    +00020 #include <sstream>
    +00021 #include <string>
    +00022 #include <vector>
    +00023 #include "inspircd.h"
    +00024 #include "globals.h"
    +00025 
    +00026 // flags for use with log()
    +00027 
    +00028 #define DEBUG 10
    +00029 #define VERBOSE 20
    +00030 #define DEFAULT 30
    +00031 #define SPARSE 40
    +00032 #define NONE 50
    +00033 
    +00034 class ServerConfig : public classbase
    +00035 {
    +00036   private:
    +00037         std::vector<std::string> include_stack;
    +00038         int fgets_safe(char* buffer, size_t maxsize, FILE* &file);
    +00039         std::string ConfProcess(char* buffer, long linenumber, std::stringstream* errorstream, bool &error, std::string filename);
    +00040 
    +00041   public:
    +00042         char ServerName[MAXBUF];
    +00043         char Network[MAXBUF];
    +00044         char ServerDesc[MAXBUF];
    +00045         char AdminName[MAXBUF];
    +00046         char AdminEmail[MAXBUF];
    +00047         char AdminNick[MAXBUF];
    +00048         char diepass[MAXBUF];
    +00049         char restartpass[MAXBUF];
    +00050         char motd[MAXBUF];
    +00051         char rules[MAXBUF];
    +00052         char PrefixQuit[MAXBUF];
    +00053         char DieValue[MAXBUF];
    +00054         char DNSServer[MAXBUF];
    +00055         char DisabledCommands[MAXBUF];
    +00056         char ModPath[1024];
    +00057         char MyExecutable[1024];
    +00058         FILE *log_file;
    +00059         bool nofork;
    +00060         bool unlimitcore;
    +00061         bool AllowHalfop;
    +00062         int dns_timeout;
    +00063         int NetBufferSize;      // NetBufferSize used as the buffer size for all read() ops
    +00064         int MaxConn;            // size of accept() backlog (128 by default on *BSD)
    +00065         unsigned int SoftLimit;
    +00066         int MaxWhoResults;
    +00067         int debugging;
    +00068         int LogLevel;
    +00069         int DieDelay;
    +00070         char addrs[MAXBUF][255];
    +00071         file_cache MOTD;
    +00072         file_cache RULES;
    +00073         char PID[1024];
    +00074         std::stringstream config_f;
    +00075         ClassVector Classes;
    +00076         std::vector<std::string> module_names;
    +00077 
    +00078         ServerConfig();
    +00079         void ClearStack();
    +00080         void Read(bool bail, userrec* user);
    +00081         bool LoadConf(const char* filename, std::stringstream *target, std::stringstream* errorstream);
    +00082         int ConfValue(char* tag, char* var, int index, char *result, std::stringstream *config);
    +00083         int ReadConf(std::stringstream *config_f,const char* tag, const char* var, int index, char *result);
    +00084         int ConfValueEnum(char* tag,std::stringstream *config);
    +00085         int EnumConf(std::stringstream *config_f,const char* tag);
    +00086         int EnumValues(std::stringstream *config, const char* tag, int index);
    +00087 };
    +00088 
    +00089 
    +00090 void Exit (int); 
    +00091 void Start (void); 
    +00092 int DaemonSeed (void); 
    +00093 bool FileExists (const char* file);
    +00094 int OpenTCPSocket (void); 
    +00095 int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr);
    +00096 
    +00097 /*bool LoadConf(const char* filename, std::stringstream *target, std::stringstream* errorstream);
    +00098 int ConfValue(char* tag, char* var, int index, char *result, std::stringstream *config);
    +00099 int ReadConf(std::stringstream *config_f,const char* tag, const char* var, int index, char *result);
    +00100 int ConfValueEnum(char* tag,std::stringstream *config);
    +00101 int EnumConf(std::stringstream *config_f,const char* tag);
    +00102 int EnumValues(std::stringstream *config, const char* tag, int index);*/
    +00103 
    +00104 void WritePID(std::string filename);
    +00105 
    +00106 #endif
    +

    Generated on Wed Dec 14 14:49:16 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 new file mode 100644 index 000000000..85773d0a1 --- /dev/null +++ b/docs/module-doc/inspircd__io_8h.html @@ -0,0 +1,420 @@ + + +InspIRCd: inspircd_io.h File Reference + + + + + +

    inspircd_io.h File Reference

    #include <sstream>
    +#include <string>
    +#include <vector>
    +#include "inspircd.h"
    +#include "globals.h"
    + +

    +Include dependency graph for inspircd_io.h:

    + +

    +This graph shows which files directly or indirectly include this file:

    + + + + + + +

    +Go to the source code of this file. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Classes

    class  ServerConfig

    Defines

    #define DEBUG   10
    #define VERBOSE   20
    #define DEFAULT   30
    #define SPARSE   40
    #define NONE   50

    Functions

    void Exit (int)
    void Start (void)
    int DaemonSeed (void)
    bool FileExists (const char *file)
    int OpenTCPSocket (void)
    int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char *addr)
    void WritePID (std::string filename)
    +


    Define Documentation

    +

    + + + + +
    + + + + +
    #define DEBUG   10
    +
    + + + + + +
    +   + + +

    + +

    +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().

    +

    + + + + +
    + + + + +
    #define DEFAULT   30
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 30 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    #define NONE   50
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 32 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    #define SPARSE   40
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 31 of file inspircd_io.h.

    +

    + + + + +
    + + + + +
    #define VERBOSE   20
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 29 of file inspircd_io.h.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    int BindSocket int  sockfd,
    struct sockaddr_in  client,
    struct sockaddr_in  server,
    int  port,
    char *  addr
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by InspSocket::InspSocket().

    +

    + + + + +
    + + + + + + + + + +
    int DaemonSeed void   ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + +
    void Exit int   ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + +
    bool FileExists const char *  file  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + +
    int OpenTCPSocket void   ) 
    +
    + + + + + +
    +   + + +

    + +

    +Referenced by InspSocket::InspSocket().

    +

    + + + + +
    + + + + + + + + + +
    void Start void   ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + +
    void WritePID std::string  filename  ) 
    +
    + + + + + +
    +   + + +

    +

    +


    Generated on Wed Dec 14 14:49:23 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 new file mode 100644 index 000000000..d9adbe194 Binary files /dev/null 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 new file mode 100644 index 000000000..3d1893566 --- /dev/null +++ b/docs/module-doc/inspircd__io_8h__dep__incl.map @@ -0,0 +1,4 @@ +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 diff --git a/docs/module-doc/inspircd__io_8h__dep__incl.md5 b/docs/module-doc/inspircd__io_8h__dep__incl.md5 new file mode 100644 index 000000000..2c682c785 --- /dev/null +++ b/docs/module-doc/inspircd__io_8h__dep__incl.md5 @@ -0,0 +1 @@ +7eca6ee03b8313db6051fb05e53f2d93 \ 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 new file mode 100644 index 000000000..f574379f0 Binary files /dev/null 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 new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/inspircd__io_8h__incl.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/inspircd__io_8h__incl.md5 b/docs/module-doc/inspircd__io_8h__incl.md5 new file mode 100644 index 000000000..974329ef1 --- /dev/null +++ b/docs/module-doc/inspircd__io_8h__incl.md5 @@ -0,0 +1 @@ +be7efab13a3353412e4a7bcda3182ee6 \ No newline at end of file diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index d6eb707ab..730e7e55f 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -7,7 +7,7 @@

    InspIRCd Documentation

    -

    1.0Betareleases


    Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +

    1.0Betareleases


    Generated on Wed Dec 14 14:49:16 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 e0fc63f50..22bba55ae 100644 --- a/docs/module-doc/message_8h-source.html +++ b/docs/module-doc/message_8h-source.html @@ -53,11 +53,11 @@ 00044 int cstatus(userrec *user, chanrec *chan); 00045 int has_channel(userrec *u, chanrec *c); 00046 void TidyBan(char *ban); -00047 char* chlist(userrec *user, userrec* source); +00047 std::string chlist(userrec *user, userrec* source); 00048 void send_network_quit(const char* nick, const char* reason); 00049 00050 #endif -

  • Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +

    Generated on Wed Dec 14 14:49:16 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 946a3243c..a9d4b46f0 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -67,7 +67,7 @@ This graph shows which files directly or indirectly include this file:

    void TidyBan (char *ban) -char * chlist (userrec *user, userrec *source) +std::string chlist (userrec *user, userrec *source) void send_network_quit (const char *nick, const char *reason) @@ -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().

    @@ -213,7 +213,7 @@ Referenced by Server::Chang - + @@ -345,7 +345,7 @@ Referenced by Server::Chang

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

    char* chlist std::string chlist userrec user,

    @@ -384,7 +384,7 @@ Referenced by Server::ChanM

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

    @@ -460,7 +460,7 @@ Referenced by Server::Commo

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

    @@ -555,7 +555,7 @@ Referenced by Server::IsOnC

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

    @@ -679,7 +679,7 @@ Referenced by Server::IsNic -


    Generated on Mon Dec 12 18:30:59 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:23 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 da79230a4..b184dbb57 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -55,7 +55,7 @@ 00046 00047 00048 #endif -

    Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +

    Generated on Wed Dec 14 14:49:16 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 72cdf4781..a1d6e7eed 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 Mon Dec 12 18:30:59 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:23 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 cb085bad6..9a36d4e5b 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -27,994 +27,922 @@ 00018 00019 #include "inspircd_config.h" 00020 #include "inspircd.h" -00021 #include "inspircd_io.h" +00021 #include "inspircd_io.h" 00022 #include "inspircd_util.h" 00023 #include <unistd.h> 00024 #include <sys/errno.h> -00025 -00026 #ifdef USE_KQUEUE -00027 #include <sys/types.h> -00028 #include <sys/event.h> -00029 #include <sys/time.h> -00030 #endif -00031 -00032 #ifdef USE_EPOLL -00033 #include <sys/epoll.h> -00034 #endif -00035 -00036 #include <time.h> -00037 #include <string> -00038 #ifdef GCC3 -00039 #include <ext/hash_map> -00040 #else -00041 #include <hash_map> -00042 #endif -00043 #include <map> -00044 #include <sstream> -00045 #include <vector> -00046 #include <deque> -00047 #include "users.h" -00048 #include "ctables.h" -00049 #include "globals.h" -00050 #include "modules.h" -00051 #include "dynamic.h" -00052 #include "wildcard.h" -00053 #include "message.h" -00054 #include "mode.h" -00055 #include "xline.h" -00056 #include "commands.h" -00057 #include "inspstring.h" -00058 #include "helperfuncs.h" -00059 #include "hashcomp.h" -00060 #include "socket.h" -00061 #include "socketengine.h" -00062 -00063 extern SocketEngine* SE; -00064 extern int MODCOUNT; -00065 extern std::vector<Module*> modules; -00066 extern std::vector<ircd_module*> factory; +00025 #include <time.h> +00026 #include <string> +00027 #ifdef GCC3 +00028 #include <ext/hash_map> +00029 #else +00030 #include <hash_map> +00031 #endif +00032 #include <map> +00033 #include <sstream> +00034 #include <vector> +00035 #include <deque> +00036 #include "users.h" +00037 #include "ctables.h" +00038 #include "globals.h" +00039 #include "modules.h" +00040 #include "dynamic.h" +00041 #include "wildcard.h" +00042 #include "message.h" +00043 #include "mode.h" +00044 #include "xline.h" +00045 #include "commands.h" +00046 #include "inspstring.h" +00047 #include "helperfuncs.h" +00048 #include "hashcomp.h" +00049 #include "socket.h" +00050 #include "socketengine.h" +00051 #include "typedefs.h" +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 extern std::vector<std::string> include_stack; -00069 -00070 extern std::vector<InspSocket*> module_sockets; -00071 -00072 extern time_t TIME; -00073 -00074 extern int LogLevel; -00075 extern char ServerName[MAXBUF]; -00076 extern char Network[MAXBUF]; -00077 extern char ServerDesc[MAXBUF]; -00078 extern char AdminName[MAXBUF]; -00079 extern char AdminEmail[MAXBUF]; -00080 extern char AdminNick[MAXBUF]; -00081 extern char diepass[MAXBUF]; -00082 extern char restartpass[MAXBUF]; -00083 extern char motd[MAXBUF]; -00084 extern char rules[MAXBUF]; -00085 extern char list[MAXBUF]; -00086 extern char PrefixQuit[MAXBUF]; -00087 extern char DieValue[MAXBUF]; -00088 -00089 extern int debugging; -00090 extern int WHOWAS_STALE; -00091 extern int WHOWAS_MAX; -00092 extern int DieDelay; -00093 extern time_t startup_time; -00094 extern int NetBufferSize; -00095 extern int MaxWhoResults; -00096 extern time_t nb_start; -00097 -00098 extern std::vector<std::string> module_names; -00099 -00100 extern int boundPortCount; -00101 extern int portCount; +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 extern int ports[MAXSOCKS]; -00104 -00105 class Server; -00106 -00107 extern std::stringstream config_f; -00108 -00109 -00110 -00111 extern FILE *log_file; -00112 -00113 extern userrec* fd_ref_table[65536]; +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 typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash; -00116 typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash; -00117 typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache; -00118 typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash; -00119 typedef std::deque<command_t> command_table; -00120 -00121 -00122 extern user_hash clientlist; -00123 extern chan_hash chanlist; -00124 extern whowas_hash whowas; -00125 extern command_table cmdlist; -00126 extern file_cache MOTD; -00127 extern file_cache RULES; -00128 extern address_cache IP; -00129 -00130 -00131 // class type for holding an extended mode character - internal to core -00132 -00133 class ExtMode : public classbase -00134 { -00135 public: -00136 char modechar; -00137 int type; -00138 bool needsoper; -00139 int params_when_on; -00140 int params_when_off; -00141 bool list; -00142 ExtMode(char mc, int ty, bool oper, int p_on, int p_off) : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; -00143 }; -00144 -00145 typedef std::vector<ExtMode> ExtModeList; -00146 typedef ExtModeList::iterator ExtModeListIter; -00147 -00148 -00149 ExtModeList EMode; +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 // returns true if an extended mode character is in use -00152 bool ModeDefined(char modechar, int type) +00151 // turns a mode into a listmode +00152 void ModeMakeList(char modechar) 00153 { -00154 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) +00154 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) 00155 { -00156 if ((i->modechar == modechar) && (i->type == type)) +00156 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) 00157 { -00158 return true; -00159 } -00160 } -00161 return false; -00162 } -00163 -00164 bool ModeIsListMode(char modechar, int type) -00165 { -00166 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00167 { -00168 if ((i->modechar == modechar) && (i->type == type) && (i->list == true)) -00169 { -00170 return true; -00171 } -00172 } -00173 return false; -00174 } -00175 -00176 bool ModeDefinedOper(char modechar, int type) -00177 { -00178 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00179 { -00180 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true)) -00181 { -00182 return true; -00183 } -00184 } -00185 return false; -00186 } -00187 -00188 // returns number of parameters for a custom mode when it is switched on -00189 int ModeDefinedOn(char modechar, int type) -00190 { -00191 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00192 { -00193 if ((i->modechar == modechar) && (i->type == type)) -00194 { -00195 return i->params_when_on; -00196 } -00197 } -00198 return 0; -00199 } -00200 -00201 // returns number of parameters for a custom mode when it is switched on -00202 int ModeDefinedOff(char modechar, int type) -00203 { -00204 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00205 { -00206 if ((i->modechar == modechar) && (i->type == type)) -00207 { -00208 return i->params_when_off; -00209 } -00210 } -00211 return 0; +00158 i->list = true; +00159 return; +00160 } +00161 } +00162 return; +00163 } +00164 +00165 // version is a simple class for holding a modules version number +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 // returns true if an extended mode character is in use -00215 bool DoAddExtendedMode(char modechar, int type, bool requires_oper, int params_on, int params_off) -00216 { -00217 if (ModeDefined(modechar,type)) { -00218 return false; -00219 } -00220 EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off)); -00221 return true; -00222 } -00223 -00224 // turns a mode into a listmode -00225 void ModeMakeList(char modechar) -00226 { -00227 for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++) -00228 { -00229 if ((i->modechar == modechar) && (i->type == MT_CHANNEL)) -00230 { -00231 i->list = true; -00232 return; -00233 } -00234 } -00235 return; -00236 } -00237 -00238 // version is a simple class for holding a modules version number -00239 -00240 Version::Version(int major, int minor, int revision, int build, int flags) : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { }; -00241 -00242 // admin is a simple class for holding a server's administrative info -00243 -00244 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { }; -00245 -00246 Request::Request(char* anydata, Module* src, Module* dst) : data(anydata), source(src), dest(dst) { }; -00247 -00248 char* Request::GetData() -00249 { -00250 return this->data; -00251 } -00252 -00253 Module* Request::GetSource() -00254 { -00255 return this->source; -00256 } -00257 -00258 Module* Request::GetDest() -00259 { -00260 return this->dest; -00261 } -00262 -00263 char* Request::Send() -00264 { -00265 if (this->dest) -00266 { -00267 return dest->OnRequest(this); -00268 } -00269 else -00270 { -00271 return NULL; -00272 } -00273 } -00274 -00275 Event::Event(char* anydata, Module* src, std::string eventid) : data(anydata), source(src), id(eventid) { }; -00276 -00277 char* Event::GetData() -00278 { -00279 return this->data; -00280 } -00281 -00282 Module* Event::GetSource() -00283 { -00284 return this->source; -00285 } -00286 -00287 char* Event::Send() -00288 { -00289 FOREACH_MOD OnEvent(this); -00290 return NULL; -00291 } -00292 -00293 std::string Event::GetEventID() -00294 { -00295 return this->id; -00296 } -00297 -00298 -00299 // These declarations define the behavours of the base class Module (which does nothing at all) -00300 -00301 Module::Module(Server* Me) { } -00302 Module::~Module() { } -00303 void Module::OnUserConnect(userrec* user) { } -00304 void Module::OnUserQuit(userrec* user, std::string message) { } -00305 void Module::OnUserDisconnect(userrec* user) { } -00306 void Module::OnUserJoin(userrec* user, chanrec* channel) { } -00307 void Module::OnUserPart(userrec* user, chanrec* channel) { } -00308 void Module::OnRehash(std::string parameter) { } -00309 void Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { } -00310 int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; } -00311 int Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; } -00312 void Module::OnMode(userrec* user, void* dest, int target_type, std::string text) { }; -00313 Version Module::GetVersion() { return Version(1,0,0,0,VF_VENDOR); } -00314 void Module::OnOper(userrec* user, std::string opertype) { }; -00315 void Module::OnInfo(userrec* user) { }; -00316 void Module::OnWhois(userrec* source, userrec* dest) { }; -00317 int Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; }; -00318 int Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; -00319 int Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; }; -00320 int Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; }; -00321 void Module::OnUserPostNick(userrec* user, std::string oldnick) { }; -00322 int Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; }; -00323 void Module::On005Numeric(std::string &output) { }; -00324 int Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; }; -00325 void Module::OnLoadModule(Module* mod,std::string name) { }; -00326 void Module::OnUnloadModule(Module* mod,std::string name) { }; -00327 void Module::OnBackgroundTimer(time_t curtime) { }; -00328 void Module::OnSendList(userrec* user, chanrec* channel, char mode) { }; -00329 int Module::OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user) { return 0; }; -00330 bool Module::OnCheckReady(userrec* user) { return true; }; -00331 void Module::OnUserRegister(userrec* user) { }; -00332 int Module::OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { return 0; }; -00333 void Module::OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { }; -00334 int Module::OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt) { return 0; }; -00335 int Module::OnCheckInvite(userrec* user, chanrec* chan) { return 0; }; -00336 int Module::OnCheckKey(userrec* user, chanrec* chan, std::string keygiven) { return 0; }; -00337 int Module::OnCheckLimit(userrec* user, chanrec* chan) { return 0; }; -00338 int Module::OnCheckBan(userrec* user, chanrec* chan) { return 0; }; -00339 void Module::OnStats(char symbol) { }; -00340 int Module::OnChangeLocalUserHost(userrec* user, std::string newhost) { return 0; }; -00341 int Module::OnChangeLocalUserGECOS(userrec* user, std::string newhost) { return 0; }; -00342 int Module::OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { return 0; }; -00343 void Module::OnEvent(Event* event) { return; }; -00344 char* Module::OnRequest(Request* request) { return NULL; }; -00345 int Module::OnOperCompare(std::string password, std::string input) { return 0; }; -00346 void Module::OnGlobalOper(userrec* user) { }; -00347 void Module::OnGlobalConnect(userrec* user) { }; -00348 int Module::OnAddBan(userrec* source, chanrec* channel,std::string banmask) { return 0; }; -00349 int Module::OnDelBan(userrec* source, chanrec* channel,std::string banmask) { return 0; }; -00350 void Module::OnRawSocketAccept(int fd, std::string ip, int localport) { }; -00351 int Module::OnRawSocketWrite(int fd, char* buffer, int count) { return 0; }; -00352 void Module::OnRawSocketClose(int fd) { }; -00353 int Module::OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult) { return 0; }; -00354 void Module::OnUserMessage(userrec* user, void* dest, int target_type, std::string text) { }; -00355 void Module::OnUserNotice(userrec* user, void* dest, int target_type, std::string text) { }; -00356 void Module::OnRemoteKill(userrec* source, userrec* dest, std::string reason) { }; -00357 void Module::OnUserInvite(userrec* source,userrec* dest,chanrec* channel) { }; -00358 void Module::OnPostLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { }; -00359 void Module::OnGetServerDescription(std::string servername,std::string &description) { }; -00360 void Module::OnSyncUser(userrec* user, Module* proto, void* opaque) { }; -00361 void Module::OnSyncChannel(chanrec* chan, Module* proto, void* opaque) { }; -00362 void Module::ProtoSendMode(void* opaque, int target_type, void* target, std::string modeline) { }; -00363 void Module::OnSyncChannelMetaData(chanrec* chan, Module* proto,void* opaque, std::string extname) { }; -00364 void Module::OnSyncUserMetaData(userrec* user, Module* proto,void* opaque, std::string extname) { }; -00365 void Module::OnDecodeMetaData(int target_type, void* target, std::string extname, std::string extdata) { }; -00366 void Module::ProtoSendMetaData(void* opaque, int target_type, void* target, std::string extname, std::string extdata) { }; -00367 void Module::OnWallops(userrec* user, std::string text) { }; -00368 void Module::OnChangeHost(userrec* user, std::string newhost) { }; -00369 void Module::OnChangeName(userrec* user, std::string gecos) { }; -00370 void Module::OnAddGLine(long duration, userrec* source, std::string reason, std::string hostmask) { }; -00371 void Module::OnAddZLine(long duration, userrec* source, std::string reason, std::string ipmask) { }; -00372 void Module::OnAddKLine(long duration, userrec* source, std::string reason, std::string hostmask) { }; -00373 void Module::OnAddQLine(long duration, userrec* source, std::string reason, std::string nickmask) { }; -00374 void Module::OnAddELine(long duration, userrec* source, std::string reason, std::string hostmask) { }; -00375 void Module::OnDelGLine(userrec* source, std::string hostmask) { }; -00376 void Module::OnDelZLine(userrec* source, std::string ipmask) { }; -00377 void Module::OnDelKLine(userrec* source, std::string hostmask) { }; -00378 void Module::OnDelQLine(userrec* source, std::string nickmask) { }; -00379 void Module::OnDelELine(userrec* source, std::string hostmask) { }; -00380 void Module::OnCleanup(int target_type, void* item) { }; -00381 -00382 /* server is a wrapper class that provides methods to all of the C-style -00383 * exports in the core -00384 */ -00385 -00386 Server::Server() -00387 { -00388 } -00389 -00390 Server::~Server() -00391 { +00214 char* Event::Send() +00215 { +00216 FOREACH_MOD OnEvent(this); +00217 return NULL; +00218 } +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) { }; +00308 +00309 /* server is a wrapper class that provides methods to all of the C-style +00310 * exports in the core +00311 */ +00312 +00313 Server::Server() +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 void Server::DelSocket(InspSocket* sock) +00333 { +00334 for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) +00335 { +00336 if (*a == sock) +00337 { +00338 module_sockets.erase(a); +00339 return; +00340 } +00341 } +00342 } +00343 +00344 void Server::SendOpers(std::string s) +00345 { +00346 WriteOpers("%s",s.c_str()); +00347 } +00348 +00349 bool Server::MatchText(std::string sliteral, std::string spattern) +00350 { +00351 char literal[MAXBUF],pattern[MAXBUF]; +00352 strlcpy(literal,sliteral.c_str(),MAXBUF); +00353 strlcpy(pattern,spattern.c_str(),MAXBUF); +00354 return match(literal,pattern); +00355 } +00356 +00357 void Server::SendToModeMask(std::string modes, int flags, std::string text) +00358 { +00359 WriteMode(modes.c_str(),flags,"%s",text.c_str()); +00360 } +00361 +00362 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) +00363 { +00364 return add_channel(user,cname.c_str(),key.c_str(),false); +00365 } +00366 +00367 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) +00368 { +00369 return del_channel(user,cname.c_str(),reason.c_str(),false); +00370 } +00371 +00372 chanuserlist Server::GetUsers(chanrec* chan) +00373 { +00374 chanuserlist userl; +00375 userl.clear(); +00376 std::vector<char*> *list = chan->GetUsers(); +00377 for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) +00378 { +00379 char* o = *i; +00380 userl.push_back((userrec*)o); +00381 } +00382 return userl; +00383 } +00384 void Server::ChangeUserNick(userrec* user, std::string nickname) +00385 { +00386 force_nickchange(user,nickname.c_str()); +00387 } +00388 +00389 void Server::QuitUser(userrec* user, std::string reason) +00390 { +00391 kill_link(user,reason.c_str()); 00392 } 00393 -00394 void Server::AddSocket(InspSocket* sock) +00394 bool Server::IsUlined(std::string server) 00395 { -00396 module_sockets.push_back(sock); +00396 return is_uline(server.c_str()); 00397 } 00398 -00399 void Server::RehashServer() +00399 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) 00400 { -00401 WriteOpers("*** Rehashing config file"); -00402 ReadConfig(false,NULL); -00403 } -00404 -00405 void Server::DelSocket(InspSocket* sock) -00406 { -00407 for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) -00408 { -00409 if (*a == sock) -00410 { -00411 module_sockets.erase(a); -00412 return; -00413 } -00414 } -00415 } -00416 -00417 void Server::SendOpers(std::string s) -00418 { -00419 WriteOpers("%s",s.c_str()); -00420 } -00421 -00422 bool Server::MatchText(std::string sliteral, std::string spattern) -00423 { -00424 char literal[MAXBUF],pattern[MAXBUF]; -00425 strlcpy(literal,sliteral.c_str(),MAXBUF); -00426 strlcpy(pattern,spattern.c_str(),MAXBUF); -00427 return match(literal,pattern); -00428 } -00429 -00430 void Server::SendToModeMask(std::string modes, int flags, std::string text) -00431 { -00432 WriteMode(modes.c_str(),flags,"%s",text.c_str()); -00433 } -00434 -00435 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key) -00436 { -00437 return add_channel(user,cname.c_str(),key.c_str(),false); -00438 } -00439 -00440 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason) -00441 { -00442 return del_channel(user,cname.c_str(),reason.c_str(),false); -00443 } -00444 -00445 chanuserlist Server::GetUsers(chanrec* chan) -00446 { -00447 chanuserlist userl; -00448 userl.clear(); -00449 std::vector<char*> *list = chan->GetUsers(); -00450 for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) -00451 { -00452 char* o = *i; -00453 userl.push_back((userrec*)o); -00454 } -00455 return userl; +00401 call_handler(commandname.c_str(),parameters,pcnt,user); +00402 } +00403 +00404 bool Server::IsValidModuleCommand(std::string commandname, int pcnt, userrec* user) +00405 { +00406 return is_valid_cmd(commandname.c_str(), pcnt, user); +00407 } +00408 +00409 void Server::Log(int level, std::string s) +00410 { +00411 log(level,"%s",s.c_str()); +00412 } +00413 +00414 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) +00415 { +00416 createcommand(cmd,f,flags,minparams,source); +00417 } +00418 +00419 void Server::SendMode(char **parameters, int pcnt, userrec *user) +00420 { +00421 server_mode(parameters,pcnt,user); +00422 } +00423 +00424 void Server::Send(int Socket, std::string s) +00425 { +00426 Write(Socket,"%s",s.c_str()); +00427 } +00428 +00429 void Server::SendServ(int Socket, std::string s) +00430 { +00431 WriteServ(Socket,"%s",s.c_str()); +00432 } +00433 +00434 void Server::SendFrom(int Socket, userrec* User, std::string s) +00435 { +00436 WriteFrom(Socket,User,"%s",s.c_str()); +00437 } +00438 +00439 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) +00440 { +00441 if (!Source) +00442 { +00443 // if source is NULL, then the message originates from the local server +00444 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); +00445 } +00446 else +00447 { +00448 // otherwise it comes from the user specified +00449 WriteTo(Source,Dest,"%s",s.c_str()); +00450 } +00451 } +00452 +00453 void Server::SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text) +00454 { +00455 WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str()); 00456 } -00457 void Server::ChangeUserNick(userrec* user, std::string nickname) -00458 { -00459 force_nickchange(user,nickname.c_str()); -00460 } -00461 -00462 void Server::QuitUser(userrec* user, std::string reason) -00463 { -00464 kill_link(user,reason.c_str()); -00465 } -00466 -00467 bool Server::IsUlined(std::string server) -00468 { -00469 return is_uline(server.c_str()); -00470 } -00471 -00472 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user) -00473 { -00474 call_handler(commandname.c_str(),parameters,pcnt,user); -00475 } -00476 -00477 bool Server::IsValidModuleCommand(std::string commandname, int pcnt, userrec* user) -00478 { -00479 return is_valid_cmd(commandname.c_str(), pcnt, user); -00480 } -00481 -00482 void Server::Log(int level, std::string s) -00483 { -00484 log(level,"%s",s.c_str()); +00457 +00458 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) +00459 { +00460 if (IncludeSender) +00461 { +00462 WriteChannel(Channel,User,"%s",s.c_str()); +00463 } +00464 else +00465 { +00466 ChanExceptSender(Channel,User,"%s",s.c_str()); +00467 } +00468 } +00469 +00470 bool Server::CommonChannels(userrec* u1, userrec* u2) +00471 { +00472 return (common_channels(u1,u2) != 0); +00473 } +00474 +00475 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) +00476 { +00477 if (IncludeSender) +00478 { +00479 WriteCommon(User,"%s",text.c_str()); +00480 } +00481 else +00482 { +00483 WriteCommonExcept(User,"%s",text.c_str()); +00484 } 00485 } 00486 -00487 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source) +00487 void Server::SendWallops(userrec* User, std::string text) 00488 { -00489 createcommand(cmd,f,flags,minparams,source); +00489 WriteWallOps(User,false,"%s",text.c_str()); 00490 } 00491 -00492 void Server::SendMode(char **parameters, int pcnt, userrec *user) +00492 void Server::ChangeHost(userrec* user, std::string host) 00493 { -00494 server_mode(parameters,pcnt,user); +00494 ChangeDisplayedHost(user,host.c_str()); 00495 } 00496 -00497 void Server::Send(int Socket, std::string s) +00497 void Server::ChangeGECOS(userrec* user, std::string gecos) 00498 { -00499 Write(Socket,"%s",s.c_str()); +00499 ChangeName(user,gecos.c_str()); 00500 } 00501 -00502 void Server::SendServ(int Socket, std::string s) +00502 bool Server::IsNick(std::string nick) 00503 { -00504 WriteServ(Socket,"%s",s.c_str()); +00504 return (isnick(nick.c_str()) != 0); 00505 } 00506 -00507 void Server::SendFrom(int Socket, userrec* User, std::string s) +00507 userrec* Server::FindNick(std::string nick) 00508 { -00509 WriteFrom(Socket,User,"%s",s.c_str()); +00509 return Find(nick); 00510 } 00511 -00512 void Server::SendTo(userrec* Source, userrec* Dest, std::string s) +00512 userrec* Server::FindDescriptor(int socket) 00513 { -00514 if (!Source) -00515 { -00516 // if source is NULL, then the message originates from the local server -00517 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str()); -00518 } -00519 else -00520 { -00521 // otherwise it comes from the user specified -00522 WriteTo(Source,Dest,"%s",s.c_str()); -00523 } -00524 } -00525 -00526 void Server::SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text) -00527 { -00528 WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str()); -00529 } -00530 -00531 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender) -00532 { -00533 if (IncludeSender) -00534 { -00535 WriteChannel(Channel,User,"%s",s.c_str()); -00536 } -00537 else -00538 { -00539 ChanExceptSender(Channel,User,"%s",s.c_str()); -00540 } -00541 } -00542 -00543 bool Server::CommonChannels(userrec* u1, userrec* u2) -00544 { -00545 return (common_channels(u1,u2) != 0); -00546 } -00547 -00548 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender) -00549 { -00550 if (IncludeSender) -00551 { -00552 WriteCommon(User,"%s",text.c_str()); -00553 } -00554 else -00555 { -00556 WriteCommonExcept(User,"%s",text.c_str()); -00557 } -00558 } -00559 -00560 void Server::SendWallops(userrec* User, std::string text) -00561 { -00562 WriteWallOps(User,false,"%s",text.c_str()); -00563 } -00564 -00565 void Server::ChangeHost(userrec* user, std::string host) -00566 { -00567 ChangeDisplayedHost(user,host.c_str()); -00568 } -00569 -00570 void Server::ChangeGECOS(userrec* user, std::string gecos) -00571 { -00572 ChangeName(user,gecos.c_str()); -00573 } -00574 -00575 bool Server::IsNick(std::string nick) -00576 { -00577 return (isnick(nick.c_str()) != 0); -00578 } -00579 -00580 userrec* Server::FindNick(std::string nick) -00581 { -00582 return Find(nick); -00583 } -00584 -00585 userrec* Server::FindDescriptor(int socket) -00586 { -00587 return (socket < 65536 ? fd_ref_table[socket] : NULL); +00514 return (socket < 65536 ? fd_ref_table[socket] : NULL); +00515 } +00516 +00517 chanrec* Server::FindChannel(std::string channel) +00518 { +00519 return FindChan(channel.c_str()); +00520 } +00521 +00522 std::string Server::ChanMode(userrec* User, chanrec* Chan) +00523 { +00524 return cmode(User,Chan); +00525 } +00526 +00527 bool Server::IsOnChannel(userrec* User, chanrec* Chan) +00528 { +00529 return has_channel(User,Chan); +00530 } +00531 +00532 std::string Server::GetServerName() +00533 { +00534 return getservername(); +00535 } +00536 +00537 std::string Server::GetNetworkName() +00538 { +00539 return getnetworkname(); +00540 } +00541 +00542 std::string Server::GetServerDescription() +00543 { +00544 return getserverdesc(); +00545 } +00546 +00547 Admin Server::GetAdmin() +00548 { +00549 return Admin(getadminname(),getadminemail(),getadminnick()); +00550 } +00551 +00552 +00553 +00554 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) +00555 { +00556 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) +00557 { +00558 if (type == MT_SERVER) +00559 { +00560 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); +00561 return false; +00562 } +00563 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) +00564 { +00565 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); +00566 return false; +00567 } +00568 if ((params_when_on>1) || (params_when_off>1)) +00569 { +00570 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); +00571 return false; +00572 } +00573 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); +00574 } +00575 else +00576 { +00577 log(DEBUG,"*** API ERROR *** Muppet modechar detected."); +00578 } +00579 return false; +00580 } +00581 +00582 bool Server::AddExtendedListMode(char modechar) +00583 { +00584 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); +00585 if (res) +00586 ModeMakeList(modechar); +00587 return res; 00588 } 00589 -00590 chanrec* Server::FindChannel(std::string channel) +00590 int Server::CountUsers(chanrec* c) 00591 { -00592 return FindChan(channel.c_str()); +00592 return usercount(c); 00593 } 00594 -00595 std::string Server::ChanMode(userrec* User, chanrec* Chan) -00596 { -00597 return cmode(User,Chan); -00598 } -00599 -00600 bool Server::IsOnChannel(userrec* User, chanrec* Chan) -00601 { -00602 return has_channel(User,Chan); -00603 } -00604 -00605 std::string Server::GetServerName() -00606 { -00607 return getservername(); -00608 } -00609 -00610 std::string Server::GetNetworkName() -00611 { -00612 return getnetworkname(); -00613 } -00614 -00615 std::string Server::GetServerDescription() -00616 { -00617 return getserverdesc(); -00618 } -00619 -00620 Admin Server::GetAdmin() -00621 { -00622 return Admin(getadminname(),getadminemail(),getadminnick()); -00623 } -00624 -00625 -00626 -00627 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off) -00628 { -00629 if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z'))) -00630 { -00631 if (type == MT_SERVER) -00632 { -00633 log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion"); -00634 return false; -00635 } -00636 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT)) -00637 { -00638 log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported"); -00639 return false; -00640 } -00641 if ((params_when_on>1) || (params_when_off>1)) -00642 { -00643 log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported"); -00644 return false; -00645 } -00646 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off); -00647 } -00648 else -00649 { -00650 log(DEBUG,"*** API ERROR *** Muppet modechar detected."); -00651 } -00652 return false; -00653 } -00654 -00655 bool Server::AddExtendedListMode(char modechar) -00656 { -00657 bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1); -00658 if (res) -00659 ModeMakeList(modechar); -00660 return res; +00595 +00596 bool Server::UserToPseudo(userrec* user,std::string message) +00597 { +00598 unsigned int old_fd = user->fd; +00599 user->fd = FD_MAGIC_NUMBER; +00600 user->ClearBuffer(); +00601 Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str()); +00602 SE->DelFd(old_fd); +00603 shutdown(old_fd,2); +00604 close(old_fd); +00605 return true; +00606 } +00607 +00608 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message) +00609 { +00610 zombie->fd = alive->fd; +00611 alive->fd = FD_MAGIC_NUMBER; +00612 alive->ClearBuffer(); +00613 Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick); +00614 kill_link(alive,message.c_str()); +00615 fd_ref_table[zombie->fd] = zombie; +00616 for (unsigned int i = 0; i < zombie->chans.size(); i++) +00617 { +00618 if (zombie->chans[i].channel != NULL) +00619 { +00620 if (zombie->chans[i].channel->name) +00621 { +00622 chanrec* Ptr = zombie->chans[i].channel; +00623 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name); +00624 if (Ptr->topicset) +00625 { +00626 WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic); +00627 WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); +00628 } +00629 userlist(zombie,Ptr); +00630 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name); +00631 +00632 } +00633 } +00634 } +00635 return true; +00636 } +00637 +00638 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask) +00639 { +00640 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00641 } +00642 +00643 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname) +00644 { +00645 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); +00646 } +00647 +00648 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr) +00649 { +00650 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); +00651 } +00652 +00653 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask) +00654 { +00655 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); +00656 } +00657 +00658 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask) +00659 { +00660 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); 00661 } 00662 -00663 int Server::CountUsers(chanrec* c) +00663 bool Server::DelGLine(std::string hostmask) 00664 { -00665 return usercount(c); +00665 return del_gline(hostmask.c_str()); 00666 } 00667 -00668 -00669 bool Server::UserToPseudo(userrec* user,std::string message) -00670 { -00671 unsigned int old_fd = user->fd; -00672 user->fd = FD_MAGIC_NUMBER; -00673 user->ClearBuffer(); -00674 Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str()); -00675 SE->DelFd(old_fd); -00676 shutdown(old_fd,2); -00677 close(old_fd); -00678 return true; -00679 } -00680 -00681 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message) -00682 { -00683 zombie->fd = alive->fd; -00684 alive->fd = FD_MAGIC_NUMBER; -00685 alive->ClearBuffer(); -00686 Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick); -00687 kill_link(alive,message.c_str()); -00688 fd_ref_table[zombie->fd] = zombie; -00689 for (int i = 0; i != MAXCHANS; i++) -00690 { -00691 if (zombie->chans[i].channel != NULL) -00692 { -00693 if (zombie->chans[i].channel->name) -00694 { -00695 chanrec* Ptr = zombie->chans[i].channel; -00696 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name); -00697 if (Ptr->topicset) -00698 { -00699 WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic); -00700 WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset); -00701 } -00702 userlist(zombie,Ptr); -00703 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name); -00704 -00705 } -00706 } -00707 } -00708 return true; -00709 } -00710 -00711 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask) -00712 { -00713 add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00714 } -00715 -00716 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname) -00717 { -00718 add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); -00719 } -00720 -00721 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr) -00722 { -00723 add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); -00724 } -00725 -00726 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask) -00727 { -00728 add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00729 } -00730 -00731 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask) -00732 { -00733 add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); -00734 } -00735 -00736 bool Server::DelGLine(std::string hostmask) -00737 { -00738 return del_gline(hostmask.c_str()); -00739 } -00740 -00741 bool Server::DelQLine(std::string nickname) -00742 { -00743 return del_qline(nickname.c_str()); -00744 } -00745 -00746 bool Server::DelZLine(std::string ipaddr) -00747 { -00748 return del_zline(ipaddr.c_str()); -00749 } -00750 -00751 bool Server::DelKLine(std::string hostmask) -00752 { -00753 return del_kline(hostmask.c_str()); -00754 } -00755 -00756 bool Server::DelELine(std::string hostmask) -00757 { -00758 return del_eline(hostmask.c_str()); -00759 } -00760 -00761 long Server::CalcDuration(std::string delta) -00762 { -00763 return duration(delta.c_str()); -00764 } -00765 -00766 bool Server::IsValidMask(std::string mask) -00767 { -00768 const char* dest = mask.c_str(); -00769 if (strchr(dest,'!')==0) -00770 return false; -00771 if (strchr(dest,'@')==0) -00772 return false; -00773 for (unsigned int i = 0; i < strlen(dest); i++) -00774 if (dest[i] < 32) -00775 return false; -00776 for (unsigned int i = 0; i < strlen(dest); i++) -00777 if (dest[i] > 126) -00778 return false; -00779 unsigned int c = 0; -00780 for (unsigned int i = 0; i < strlen(dest); i++) -00781 if (dest[i] == '!') -00782 c++; -00783 if (c>1) -00784 return false; -00785 c = 0; -00786 for (unsigned int i = 0; i < strlen(dest); i++) -00787 if (dest[i] == '@') -00788 c++; -00789 if (c>1) -00790 return false; -00791 -00792 return true; -00793 } -00794 -00795 Module* Server::FindModule(std::string name) -00796 { -00797 for (int i = 0; i <= MODCOUNT; i++) -00798 { -00799 if (module_names[i] == name) -00800 { -00801 return modules[i]; -00802 } -00803 } -00804 return NULL; -00805 } -00806 -00807 ConfigReader::ConfigReader() -00808 { -00809 include_stack.clear(); -00810 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00811 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00812 this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog); -00813 if (!this->readerror) -00814 this->error = CONF_FILE_NOT_FOUND; -00815 } -00816 -00817 -00818 ConfigReader::~ConfigReader() -00819 { -00820 if (this->cache) -00821 delete this->cache; -00822 if (this->errorlog) -00823 delete this->errorlog; +00668 bool Server::DelQLine(std::string nickname) +00669 { +00670 return del_qline(nickname.c_str()); +00671 } +00672 +00673 bool Server::DelZLine(std::string ipaddr) +00674 { +00675 return del_zline(ipaddr.c_str()); +00676 } +00677 +00678 bool Server::DelKLine(std::string hostmask) +00679 { +00680 return del_kline(hostmask.c_str()); +00681 } +00682 +00683 bool Server::DelELine(std::string hostmask) +00684 { +00685 return del_eline(hostmask.c_str()); +00686 } +00687 +00688 long Server::CalcDuration(std::string delta) +00689 { +00690 return duration(delta.c_str()); +00691 } +00692 +00693 bool Server::IsValidMask(std::string mask) +00694 { +00695 const char* dest = mask.c_str(); +00696 if (strchr(dest,'!')==0) +00697 return false; +00698 if (strchr(dest,'@')==0) +00699 return false; +00700 for (unsigned int i = 0; i < strlen(dest); i++) +00701 if (dest[i] < 32) +00702 return false; +00703 for (unsigned int i = 0; i < strlen(dest); i++) +00704 if (dest[i] > 126) +00705 return false; +00706 unsigned int c = 0; +00707 for (unsigned int i = 0; i < strlen(dest); i++) +00708 if (dest[i] == '!') +00709 c++; +00710 if (c>1) +00711 return false; +00712 c = 0; +00713 for (unsigned int i = 0; i < strlen(dest); i++) +00714 if (dest[i] == '@') +00715 c++; +00716 if (c>1) +00717 return false; +00718 +00719 return true; +00720 } +00721 +00722 Module* Server::FindModule(std::string name) +00723 { +00724 for (int i = 0; i <= MODCOUNT; i++) +00725 { +00726 if (Config->module_names[i] == name) +00727 { +00728 return modules[i]; +00729 } +00730 } +00731 return NULL; +00732 } +00733 +00734 ConfigReader::ConfigReader() +00735 { +00736 Config->ClearStack(); +00737 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00738 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00739 this->readerror = Config->LoadConf(CONFIG_FILE,this->cache,this->errorlog); +00740 if (!this->readerror) +00741 this->error = CONF_FILE_NOT_FOUND; +00742 } +00743 +00744 +00745 ConfigReader::~ConfigReader() +00746 { +00747 if (this->cache) +00748 delete this->cache; +00749 if (this->errorlog) +00750 delete this->errorlog; +00751 } +00752 +00753 +00754 ConfigReader::ConfigReader(std::string filename) +00755 { +00756 Config->ClearStack(); +00757 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); +00758 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); +00759 this->readerror = Config->LoadConf(filename.c_str(),this->cache,this->errorlog); +00760 if (!this->readerror) +00761 this->error = CONF_FILE_NOT_FOUND; +00762 }; +00763 +00764 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) +00765 { +00766 char val[MAXBUF]; +00767 char t[MAXBUF]; +00768 char n[MAXBUF]; +00769 strlcpy(t,tag.c_str(),MAXBUF); +00770 strlcpy(n,name.c_str(),MAXBUF); +00771 int res = Config->ReadConf(cache,t,n,index,val); +00772 if (!res) +00773 { +00774 this->error = CONF_VALUE_NOT_FOUND; +00775 return ""; +00776 } +00777 return val; +00778 } +00779 +00780 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) +00781 { +00782 char val[MAXBUF]; +00783 char t[MAXBUF]; +00784 char n[MAXBUF]; +00785 strlcpy(t,tag.c_str(),MAXBUF); +00786 strlcpy(n,name.c_str(),MAXBUF); +00787 int res = Config->ReadConf(cache,t,n,index,val); +00788 if (!res) +00789 { +00790 this->error = CONF_VALUE_NOT_FOUND; +00791 return false; +00792 } +00793 std::string s = val; +00794 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); +00795 } +00796 +00797 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) +00798 { +00799 char val[MAXBUF]; +00800 char t[MAXBUF]; +00801 char n[MAXBUF]; +00802 strlcpy(t,tag.c_str(),MAXBUF); +00803 strlcpy(n,name.c_str(),MAXBUF); +00804 int res = Config->ReadConf(cache,t,n,index,val); +00805 if (!res) +00806 { +00807 this->error = CONF_VALUE_NOT_FOUND; +00808 return 0; +00809 } +00810 for (unsigned int i = 0; i < strlen(val); i++) +00811 { +00812 if (!isdigit(val[i])) +00813 { +00814 this->error = CONF_NOT_A_NUMBER; +00815 return 0; +00816 } +00817 } +00818 if ((needs_unsigned) && (atoi(val)<0)) +00819 { +00820 this->error = CONF_NOT_UNSIGNED; +00821 return 0; +00822 } +00823 return atoi(val); 00824 } 00825 -00826 -00827 ConfigReader::ConfigReader(std::string filename) -00828 { -00829 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); -00830 this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out); -00831 this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog); -00832 if (!this->readerror) -00833 this->error = CONF_FILE_NOT_FOUND; -00834 }; -00835 -00836 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index) -00837 { -00838 char val[MAXBUF]; -00839 char t[MAXBUF]; -00840 char n[MAXBUF]; -00841 strlcpy(t,tag.c_str(),MAXBUF); -00842 strlcpy(n,name.c_str(),MAXBUF); -00843 int res = ReadConf(cache,t,n,index,val); -00844 if (!res) -00845 { -00846 this->error = CONF_VALUE_NOT_FOUND; -00847 return ""; -00848 } -00849 return val; -00850 } -00851 -00852 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index) -00853 { -00854 char val[MAXBUF]; -00855 char t[MAXBUF]; -00856 char n[MAXBUF]; -00857 strlcpy(t,tag.c_str(),MAXBUF); -00858 strlcpy(n,name.c_str(),MAXBUF); -00859 int res = ReadConf(cache,t,n,index,val); -00860 if (!res) -00861 { -00862 this->error = CONF_VALUE_NOT_FOUND; -00863 return false; -00864 } -00865 std::string s = val; -00866 return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1")); -00867 } -00868 -00869 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned) -00870 { -00871 char val[MAXBUF]; -00872 char t[MAXBUF]; -00873 char n[MAXBUF]; -00874 strlcpy(t,tag.c_str(),MAXBUF); -00875 strlcpy(n,name.c_str(),MAXBUF); -00876 int res = ReadConf(cache,t,n,index,val); -00877 if (!res) -00878 { -00879 this->error = CONF_VALUE_NOT_FOUND; -00880 return 0; -00881 } -00882 for (unsigned int i = 0; i < strlen(val); i++) -00883 { -00884 if (!isdigit(val[i])) -00885 { -00886 this->error = CONF_NOT_A_NUMBER; -00887 return 0; -00888 } -00889 } -00890 if ((needs_unsigned) && (atoi(val)<0)) -00891 { -00892 this->error = CONF_NOT_UNSIGNED; -00893 return 0; -00894 } -00895 return atoi(val); -00896 } -00897 -00898 long ConfigReader::GetError() -00899 { -00900 long olderr = this->error; -00901 this->error = 0; -00902 return olderr; +00826 long ConfigReader::GetError() +00827 { +00828 long olderr = this->error; +00829 this->error = 0; +00830 return olderr; +00831 } +00832 +00833 void ConfigReader::DumpErrors(bool bail, userrec* user) +00834 { +00835 if (bail) +00836 { +00837 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); +00838 exit(0); +00839 } +00840 else +00841 { +00842 char dataline[1024]; +00843 if (user) +00844 { +00845 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); +00846 while (!errorlog->eof()) +00847 { +00848 errorlog->getline(dataline,1024); +00849 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); +00850 } +00851 } +00852 else +00853 { +00854 WriteOpers("There were errors in the configuration file:",user->nick); +00855 while (!errorlog->eof()) +00856 { +00857 errorlog->getline(dataline,1024); +00858 WriteOpers(dataline); +00859 } +00860 } +00861 return; +00862 } +00863 } +00864 +00865 +00866 int ConfigReader::Enumerate(std::string tag) +00867 { +00868 return Config->EnumConf(cache,tag.c_str()); +00869 } +00870 +00871 int ConfigReader::EnumerateValues(std::string tag, int index) +00872 { +00873 return Config->EnumValues(cache, tag.c_str(), index); +00874 } +00875 +00876 bool ConfigReader::Verify() +00877 { +00878 return this->readerror; +00879 } +00880 +00881 +00882 FileReader::FileReader(std::string filename) +00883 { +00884 file_cache c; +00885 readfile(c,filename.c_str()); +00886 this->fc = c; +00887 } +00888 +00889 FileReader::FileReader() +00890 { +00891 } +00892 +00893 void FileReader::LoadFile(std::string filename) +00894 { +00895 file_cache c; +00896 readfile(c,filename.c_str()); +00897 this->fc = c; +00898 } +00899 +00900 +00901 FileReader::~FileReader() +00902 { 00903 } 00904 -00905 void ConfigReader::DumpErrors(bool bail, userrec* user) +00905 bool FileReader::Exists() 00906 { -00907 if (bail) +00907 if (fc.size() == 0) 00908 { -00909 printf("There were errors in your configuration:\n%s",errorlog->str().c_str()); -00910 exit(0); -00911 } -00912 else -00913 { -00914 char dataline[1024]; -00915 if (user) -00916 { -00917 WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); -00918 while (!errorlog->eof()) -00919 { -00920 errorlog->getline(dataline,1024); -00921 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline); -00922 } -00923 } -00924 else -00925 { -00926 WriteOpers("There were errors in the configuration file:",user->nick); -00927 while (!errorlog->eof()) -00928 { -00929 errorlog->getline(dataline,1024); -00930 WriteOpers(dataline); -00931 } -00932 } -00933 return; -00934 } -00935 } -00936 -00937 -00938 int ConfigReader::Enumerate(std::string tag) -00939 { -00940 return EnumConf(cache,tag.c_str()); -00941 } -00942 -00943 int ConfigReader::EnumerateValues(std::string tag, int index) -00944 { -00945 return EnumValues(cache, tag.c_str(), index); -00946 } -00947 -00948 bool ConfigReader::Verify() -00949 { -00950 return this->readerror; -00951 } -00952 -00953 -00954 FileReader::FileReader(std::string filename) -00955 { -00956 file_cache c; -00957 readfile(c,filename.c_str()); -00958 this->fc = c; -00959 } -00960 -00961 FileReader::FileReader() -00962 { -00963 } -00964 -00965 void FileReader::LoadFile(std::string filename) -00966 { -00967 file_cache c; -00968 readfile(c,filename.c_str()); -00969 this->fc = c; -00970 } -00971 -00972 -00973 FileReader::~FileReader() -00974 { -00975 } -00976 -00977 bool FileReader::Exists() -00978 { -00979 if (fc.size() == 0) -00980 { -00981 return(false); -00982 } -00983 else -00984 { -00985 return(true); -00986 } -00987 } -00988 -00989 std::string FileReader::GetLine(int x) -00990 { -00991 if ((x<0) || ((unsigned)x>fc.size())) -00992 return ""; -00993 return fc[x]; -00994 } -00995 -00996 int FileReader::FileSize() -00997 { -00998 return fc.size(); -00999 } -01000 -01001 -01002 std::vector<Module*> modules(255); -01003 std::vector<ircd_module*> factory(255); -01004 -01005 int MODCOUNT = -1; -01006 -01007 -

    Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +00909 return(false); +00910 } +00911 else +00912 { +00913 return(true); +00914 } +00915 } +00916 +00917 std::string FileReader::GetLine(int x) +00918 { +00919 if ((x<0) || ((unsigned)x>fc.size())) +00920 return ""; +00921 return fc[x]; +00922 } +00923 +00924 int FileReader::FileSize() +00925 { +00926 return fc.size(); +00927 } +00928 +00929 +00930 std::vector<Module*> modules(255); +00931 std::vector<ircd_module*> factory(255); +00932 +00933 int MODCOUNT = -1; +00934 +00935 +

    Generated on Wed Dec 14 14:49:17 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 fbf7a10f3..cbc72e984 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -9,7 +9,7 @@ home » brain » inspircd-cvs » inspircd » src

    modules.cpp File Reference

    #include "inspircd_config.h"
    #include "inspircd.h"
    -#include "inspircd_io.h"
    +#include "inspircd_io.h"
    #include "inspircd_util.h"
    #include <unistd.h>
    #include <sys/errno.h>
    @@ -35,51 +35,28 @@ #include "hashcomp.h"
    #include "socket.h"
    #include "socketengine.h"
    +#include "typedefs.h"

    Include dependency graph for modules.cpp:

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

    Go to the source code of this file. - - - - - - - - - - - - - - - - - - @@ -102,268 +79,44 @@ Include dependency graph for modules.cpp:


    Variables

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

    Classes

    class  ExtMode

    Typedefs

    typedef nspace::hash_map<
    - std::string, userrec *, nspace::hash<
    - string >, irc::StrHashComp
    user_hash
    typedef nspace::hash_map<
    - std::string, chanrec *, nspace::hash<
    - string >, irc::StrHashComp
    chan_hash
    typedef nspace::hash_map<
    - in_addr, string *, nspace::hash<
    - in_addr >, irc::InAddr_HashComp
    address_cache
    typedef nspace::hash_map<
    - std::string, WhoWasUser *,
    - nspace::hash< string >, irc::StrHashComp
    whowas_hash
    typedef std::deque< command_tcommand_table
    typedef std::vector< ExtModeExtModeList
    typedef ExtModeList::iterator ExtModeListIter

    Functions

    bool ModeDefined (char modechar, int type)
    SocketEngineSE
    ServerConfigConfig
    int MODCOUNT = -1
    std::vector< Module * > modules
    std::vector< ircd_module * > factory
    std::vector< std::stringinclude_stack
    std::vector< InspSocket * > module_sockets
    time_t TIME
    int LogLevel
    char ServerName [MAXBUF]
    char Network [MAXBUF]
    char ServerDesc [MAXBUF]
    char AdminName [MAXBUF]
    char AdminEmail [MAXBUF]
    char AdminNick [MAXBUF]
    char diepass [MAXBUF]
    char restartpass [MAXBUF]
    char motd [MAXBUF]
    char rules [MAXBUF]
    char list [MAXBUF]
    char PrefixQuit [MAXBUF]
    char DieValue [MAXBUF]
    int debugging
    int WHOWAS_STALE
    int WHOWAS_MAX
    int DieDelay
    time_t startup_time
    int NetBufferSize
    int MaxWhoResults
    time_t nb_start
    std::vector< std::stringmodule_names
    int boundPortCount
    int portCount
    int ports [MAXSOCKS]
    std::stringstream config_f
    FILE * log_file
    userrecfd_ref_table [65536]
    user_hash clientlist
    chan_hash chanlist
    whowas_hash whowas
    command_table cmdlist
    file_cache MOTD
    file_cache RULES
    address_cache IP
    ExtModeList EMode
    -


    Typedef Documentation

    -

    - - - - -
    - - - - -
    typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 117 of file modules.cpp.

    -

    - - - - -
    - - - - -
    typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 116 of file modules.cpp.

    -

    - - - - -
    - - - - -
    typedef std::deque<command_t> command_table
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 119 of file modules.cpp.

    -

    - - - - -
    - - - - -
    typedef std::vector<ExtMode> ExtModeList
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 145 of file modules.cpp.

    -

    - - - - -
    - - - - -
    typedef ExtModeList::iterator ExtModeListIter
    -
    - - - - -

    +

    -

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

    -   - +
    user_hash clientlist
    chan_hash chanlist
    -

    - - - - -
    - - - - -
    typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash
    -
    - - - - -

    +

    -

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

    -   - +
    whowas_hash whowas
    command_table cmdlist
    -

    - - - - -
    - - - - -
    typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash
    -
    - - - - -

    +

    -

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

    -   - +
    address_cache IP
    ExtModeList EMode


    Function Documentation

    @@ -420,17 +173,17 @@ Definition at line 118

    -Definition at line 215 of file modules.cpp. +Definition at line 142 of file modules.cpp.

    -References EMode, and ModeDefined(). +References EMode, and ModeDefined().

    -Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode().

    00216 {
    -00217         if (ModeDefined(modechar,type)) {
    -00218                 return false;
    -00219         }
    -00220         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    -00221         return true;
    -00222 }
    +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 }
     

    @@ -500,20 +253,20 @@ Referenced by Server::AddEx

    -Definition at line 152 of file modules.cpp. +Definition at line 79 of file modules.cpp.

    -References EMode. +References EMode.

    -Referenced by DoAddExtendedMode().

    00153 {
    -00154         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00155         {
    -00156                 if ((i->modechar == modechar) && (i->type == type))
    -00157                 {
    -00158                         return true;
    -00159                 }
    -00160         }
    -00161         return false;
    -00162 }
    +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 }
     

    @@ -555,18 +308,18 @@ Referenced by DoAddExtended

    -Definition at line 202 of file modules.cpp. +Definition at line 129 of file modules.cpp.

    -References EMode.

    00203 {
    -00204         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00205         {
    -00206                 if ((i->modechar == modechar) && (i->type == type))
    -00207                 {
    -00208                         return i->params_when_off;
    -00209                 }
    -00210         }
    -00211         return 0;
    -00212 }
    +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 }
     

    @@ -608,18 +361,18 @@ References EMode.

    -Definition at line 189 of file modules.cpp. +Definition at line 116 of file modules.cpp.

    -References EMode.

    00190 {
    -00191         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00192         {
    -00193                 if ((i->modechar == modechar) && (i->type == type))
    -00194                 {
    -00195                         return i->params_when_on;
    -00196                 }
    -00197         }
    -00198         return 0;
    -00199 }
    +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 }
     

    @@ -661,18 +414,18 @@ References EMode.

    -Definition at line 176 of file modules.cpp. +Definition at line 103 of file modules.cpp.

    -References EMode.

    00177 {
    -00178         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00179         {
    -00180                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    -00181                 {
    -00182                         return true;
    -00183                 }
    -00184         }
    -00185         return false;
    -00186 }
    +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 }
     

    @@ -714,18 +467,18 @@ References EMode.

    -Definition at line 164 of file modules.cpp. +Definition at line 91 of file modules.cpp.

    -References EMode.

    00165 {
    -00166         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00167         {
    -00168                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
    -00169                 {
    -00170                         return true;
    -00171                 }
    -00172         }
    -00173         return false;
    -00174 }
    +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 }
     

    @@ -758,21 +511,21 @@ References EMode.

    -Definition at line 225 of file modules.cpp. +Definition at line 152 of file modules.cpp.

    -References EMode, and MT_CHANNEL. +References EMode, and MT_CHANNEL.

    -Referenced by Server::AddExtendedListMode().

    00226 {
    -00227         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00228         {
    -00229                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    -00230                 {
    -00231                         i->list = true;
    -00232                         return;
    -00233                 }
    -00234         }
    -00235         return;
    -00236 }
    +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 }
     

    @@ -807,13 +560,13 @@ Referenced by Server::AddEx


    Variable Documentation

    -

    +

    @@ -830,13 +583,13 @@ Referenced by Server::AddEx
    - +
    char AdminEmail[MAXBUF] int boundPortCount
    -

    +

    @@ -853,13 +606,13 @@ Referenced by Server::AddEx
    - +
    char AdminName[MAXBUF] chan_hash chanlist
    -

    +

    @@ -876,13 +629,13 @@ Referenced by Server::AddEx
    - +
    char AdminNick[MAXBUF] user_hash clientlist
    -

    +

    @@ -899,13 +652,13 @@ Referenced by Server::AddEx
    - +
    int boundPortCount command_table cmdlist
    -

    +

    @@ -922,13 +675,13 @@ Referenced by Server::AddEx
    - +
    chan_hash chanlist ServerConfig* Config
    -

    +

    @@ -942,16 +695,20 @@ Referenced by Server::AddEx + +

    +Definition at line 76 of file modules.cpp. +

    +Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList().

    - +
    user_hash clientlist ExtModeList EMode

    -

    -

    +

    @@ -968,13 +725,13 @@ Referenced by Server::AddEx
    - +
    command_table cmdlist std::vector<ircd_module*> factory
    -

    +

    @@ -991,13 +748,13 @@ Referenced by Server::AddEx
    - +
    std::stringstream config_f userrec* fd_ref_table[65536]
    -

    +

    @@ -1014,13 +771,13 @@ Referenced by Server::AddEx
    - +
    int debugging address_cache IP
    -

    +

    @@ -1034,16 +791,18 @@ Referenced by Server::AddEx + +

    +Definition at line 933 of file modules.cpp.

    - +
    int DieDelay int MODCOUNT = -1

    -

    -

    +

    @@ -1057,16 +816,18 @@ Referenced by Server::AddEx + +

    +Referenced by Server::AddSocket(), and Server::DelSocket().

    - +
    char diepass[MAXBUF] std::vector<InspSocket*> module_sockets

    -

    -

    +

    @@ -1083,13 +844,13 @@ Referenced by Server::AddEx
    - +
    char DieValue[MAXBUF] std::vector<Module*> modules
    -

    +

    @@ -1103,20 +864,16 @@ Referenced by Server::AddEx +
    - +
    ExtModeList EMode int portCount

    - -

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

    -Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList().

    -

    +

    @@ -1133,521 +890,7 @@ Referenced by DoAddExtended
    - +
    std::vector<ircd_module*> factory int ports[MAXSOCKS]
    -

    - - - - -
    - - - - -
    userrec* fd_ref_table[65536]
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    std::vector<std::string> include_stack
    -
    - - - - - -
    -   - - -

    - -

    -Referenced by ConfigReader::ConfigReader().

    -

    - - - - -
    - - - - -
    address_cache IP
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    char list[MAXBUF]
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    FILE* log_file
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    int LogLevel
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    int MaxWhoResults
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 81 of file channels.cpp.

    -

    - - - - -
    - - - - -
    int MODCOUNT = -1
    -
    - - - - - -
    -   - - -

    - -

    -Definition at line 1005 of file modules.cpp.

    -

    - - - - -
    - - - - -
    std::vector<std::string> module_names
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    std::vector<InspSocket*> module_sockets
    -
    - - - - - -
    -   - - -

    - -

    -Referenced by Server::AddSocket(), and Server::DelSocket().

    -

    - - - - -
    - - - - -
    std::vector<Module*> modules
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    file_cache MOTD
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    char motd[MAXBUF]
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    time_t nb_start
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    int NetBufferSize
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    char Network[MAXBUF]
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    int portCount
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    int ports[MAXSOCKS]
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    char PrefixQuit[MAXBUF]
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    char restartpass[MAXBUF]
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    file_cache RULES
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    char rules[MAXBUF]
    -
    - - - - - -
    -   - - -

    -

    -

    +

    - -
    @@ -1666,52 +909,6 @@ Referenced by Server::AddSo -

    -

    -

    - - - - -
    - - - - -
    char ServerDesc[MAXBUF]
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    char ServerName[MAXBUF]
    -
    - - - - @@ -1768,7 +965,7 @@ Referenced by Server::AddSo @@ -1831,7 +1028,7 @@ Referenced by Server::AddSo
    -   - -

    - +
    whowas_hash whowas whowas_hash whowas
    -


    Generated on Mon Dec 12 18:31:00 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:24 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 e04be883e..aec40cf17 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 97e8339ae..997736c8c 100644 --- a/docs/module-doc/modules_8cpp__incl.map +++ b/docs/module-doc/modules_8cpp__incl.map @@ -1,11 +1,13 @@ base referer -rect $users_8h-source.html 330,283 394,309 -rect $ctables_8h-source.html 324,1093 399,1120 -rect $modules_8h-source.html 168,1043 251,1069 -rect $socket_8h-source.html 326,941 398,968 -rect $message_8h-source.html 167,404 252,431 -rect $mode_8h-source.html 176,533 243,560 -rect $xline_8h-source.html 179,341 240,368 -rect $commands_8h-source.html 160,637 259,664 -rect $hashcomp_8h-source.html 315,80 408,107 -rect $socketengine_8h-source.html 154,815 266,841 +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 diff --git a/docs/module-doc/modules_8cpp__incl.md5 b/docs/module-doc/modules_8cpp__incl.md5 index 5a54bd59b..7242058c8 100644 --- a/docs/module-doc/modules_8cpp__incl.md5 +++ b/docs/module-doc/modules_8cpp__incl.md5 @@ -1 +1 @@ -409a89031830030c4b614aa791a8cbab \ No newline at end of file +3ca915eed2bfd73681bb564430d33061 \ 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 61b6111c2..d1efc44d8 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -160,358 +160,370 @@ 00230 char* Send(); 00231 }; 00232 -00233 -00239 class Module : public classbase -00240 { -00241 public: -00242 -00247 Module(Server* Me); +00236 class ExtMode : public classbase +00237 { +00238 public: +00239 char modechar; +00240 int type; +00241 bool needsoper; +00242 int params_when_on; +00243 int params_when_off; +00244 bool list; +00245 ExtMode(char mc, int ty, bool oper, int p_on, int p_off) : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { }; +00246 }; +00247 00248 -00252 virtual ~Module(); -00253 -00258 virtual Version GetVersion(); -00259 -00264 virtual void OnUserConnect(userrec* user); -00265 -00273 virtual void OnUserQuit(userrec* user, std::string message); +00254 class Module : public classbase +00255 { +00256 public: +00257 +00262 Module(Server* Me); +00263 +00267 virtual ~Module(); +00268 +00273 virtual Version GetVersion(); 00274 -00281 virtual void OnUserDisconnect(userrec* user); -00282 -00289 virtual void OnUserJoin(userrec* user, chanrec* channel); -00290 -00297 virtual void OnUserPart(userrec* user, chanrec* channel); -00298 -00306 virtual void OnRehash(std::string parameter); -00307 -00319 virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user); -00320 -00336 virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params); -00337 -00354 virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname); -00355 -00366 virtual int OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason); -00367 -00376 virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason); -00377 -00384 virtual void OnOper(userrec* user, std::string opertype); -00385 -00396 virtual void OnInfo(userrec* user); -00397 -00404 virtual void OnWhois(userrec* source, userrec* dest); -00405 -00415 virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel); -00416 -00424 virtual void OnUserInvite(userrec* source,userrec* dest,chanrec* channel); -00425 -00439 virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text); -00440 -00457 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); -00458 -00469 virtual int OnUserPreNick(userrec* user, std::string newnick); -00470 -00479 virtual void OnUserMessage(userrec* user, void* dest, int target_type, std::string text); -00480 -00489 virtual void OnUserNotice(userrec* user, void* dest, int target_type, std::string text); -00490 -00500 virtual void OnMode(userrec* user, void* dest, int target_type, std::string text); -00501 -00510 virtual void OnGetServerDescription(std::string servername,std::string &description); -00511 -00524 virtual void OnSyncUser(userrec* user, Module* proto, void* opaque); -00525 -00541 virtual void OnSyncChannel(chanrec* chan, Module* proto, void* opaque); -00542 -00543 /* Allows modules to syncronize metadata related to channels over the network during a netburst. -00544 * Whenever the linking module wants to send out data, but doesnt know what the data -00545 * represents (e.g. it is Extensible metadata, added to a userrec or chanrec by a module) then -00546 * this method is called.You should use the ProtoSendMetaData function after you've -00547 * correctly decided how the data should be represented, to send the metadata on its way if it belongs -00548 * to your module. For a good example of how to use this method, see src/modules/m_swhois.cpp. -00549 * @param chan The channel whos metadata is being syncronized -00550 * @param proto A pointer to the module handling network protocol -00551 * @param opaque An opaque pointer set by the protocol module, should not be modified! -00552 * @param extname The extensions name which is being searched for -00553 */ -00554 virtual void OnSyncChannelMetaData(chanrec* chan, Module* proto,void* opaque, std::string extname); -00555 -00556 /* Allows modules to syncronize metadata related to users over the network during a netburst. -00557 * Whenever the linking module wants to send out data, but doesnt know what the data -00558 * represents (e.g. it is Extensible metadata, added to a userrec or chanrec by a module) then -00559 * this method is called. You should use the ProtoSendMetaData function after you've -00560 * correctly decided how the data should be represented, to send the metadata on its way if -00561 * if it belongs to your module. -00562 * @param user The user whos metadata is being syncronized -00563 * @param proto A pointer to the module handling network protocol -00564 * @param opaque An opaque pointer set by the protocol module, should not be modified! -00565 * @param extname The extensions name which is being searched for -00566 */ -00567 virtual void OnSyncUserMetaData(userrec* user, Module* proto,void* opaque, std::string extname); -00568 -00576 virtual void OnDecodeMetaData(int target_type, void* target, std::string extname, std::string extdata); -00577 -00591 virtual void ProtoSendMode(void* opaque, int target_type, void* target, std::string modeline); +00279 virtual void OnUserConnect(userrec* user); +00280 +00288 virtual void OnUserQuit(userrec* user, std::string message); +00289 +00296 virtual void OnUserDisconnect(userrec* user); +00297 +00304 virtual void OnUserJoin(userrec* user, chanrec* channel); +00305 +00312 virtual void OnUserPart(userrec* user, chanrec* channel); +00313 +00321 virtual void OnRehash(std::string parameter); +00322 +00334 virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user); +00335 +00351 virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params); +00352 +00369 virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname); +00370 +00381 virtual int OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason); +00382 +00391 virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason); +00392 +00399 virtual void OnOper(userrec* user, std::string opertype); +00400 +00411 virtual void OnInfo(userrec* user); +00412 +00419 virtual void OnWhois(userrec* source, userrec* dest); +00420 +00430 virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel); +00431 +00439 virtual void OnUserInvite(userrec* source,userrec* dest,chanrec* channel); +00440 +00454 virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text); +00455 +00472 virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text); +00473 +00484 virtual int OnUserPreNick(userrec* user, std::string newnick); +00485 +00494 virtual void OnUserMessage(userrec* user, void* dest, int target_type, std::string text); +00495 +00504 virtual void OnUserNotice(userrec* user, void* dest, int target_type, std::string text); +00505 +00515 virtual void OnMode(userrec* user, void* dest, int target_type, std::string text); +00516 +00525 virtual void OnGetServerDescription(std::string servername,std::string &description); +00526 +00539 virtual void OnSyncUser(userrec* user, Module* proto, void* opaque); +00540 +00556 virtual void OnSyncChannel(chanrec* chan, Module* proto, void* opaque); +00557 +00558 /* Allows modules to syncronize metadata related to channels over the network during a netburst. +00559 * Whenever the linking module wants to send out data, but doesnt know what the data +00560 * represents (e.g. it is Extensible metadata, added to a userrec or chanrec by a module) then +00561 * this method is called.You should use the ProtoSendMetaData function after you've +00562 * correctly decided how the data should be represented, to send the metadata on its way if it belongs +00563 * to your module. For a good example of how to use this method, see src/modules/m_swhois.cpp. +00564 * @param chan The channel whos metadata is being syncronized +00565 * @param proto A pointer to the module handling network protocol +00566 * @param opaque An opaque pointer set by the protocol module, should not be modified! +00567 * @param extname The extensions name which is being searched for +00568 */ +00569 virtual void OnSyncChannelMetaData(chanrec* chan, Module* proto,void* opaque, std::string extname); +00570 +00571 /* Allows modules to syncronize metadata related to users over the network during a netburst. +00572 * Whenever the linking module wants to send out data, but doesnt know what the data +00573 * represents (e.g. it is Extensible metadata, added to a userrec or chanrec by a module) then +00574 * this method is called. You should use the ProtoSendMetaData function after you've +00575 * correctly decided how the data should be represented, to send the metadata on its way if +00576 * if it belongs to your module. +00577 * @param user The user whos metadata is being syncronized +00578 * @param proto A pointer to the module handling network protocol +00579 * @param opaque An opaque pointer set by the protocol module, should not be modified! +00580 * @param extname The extensions name which is being searched for +00581 */ +00582 virtual void OnSyncUserMetaData(userrec* user, Module* proto,void* opaque, std::string extname); +00583 +00591 virtual void OnDecodeMetaData(int target_type, void* target, std::string extname, std::string extdata); 00592 -00607 virtual void ProtoSendMetaData(void* opaque, int target_type, void* target, std::string extname, std::string extdata); -00608 -00613 virtual void OnWallops(userrec* user, std::string text); -00614 -00620 virtual void OnChangeHost(userrec* user, std::string newhost); -00621 -00627 virtual void OnChangeName(userrec* user, std::string gecos); -00628 -00636 virtual void OnAddGLine(long duration, userrec* source, std::string reason, std::string hostmask); -00637 -00645 virtual void OnAddZLine(long duration, userrec* source, std::string reason, std::string ipmask); -00646 -00654 virtual void OnAddKLine(long duration, userrec* source, std::string reason, std::string hostmask); -00655 -00663 virtual void OnAddQLine(long duration, userrec* source, std::string reason, std::string nickmask); -00664 -00672 virtual void OnAddELine(long duration, userrec* source, std::string reason, std::string hostmask); -00673 -00679 virtual void OnDelGLine(userrec* source, std::string hostmask); -00680 -00686 virtual void OnDelZLine(userrec* source, std::string ipmask); -00687 -00693 virtual void OnDelKLine(userrec* source, std::string hostmask); -00694 -00700 virtual void OnDelQLine(userrec* source, std::string nickmask); -00701 -00707 virtual void OnDelELine(userrec* source, std::string hostmask); -00708 -00718 virtual void OnCleanup(int target_type, void* item); -00719 -00729 virtual void OnUserPostNick(userrec* user, std::string oldnick); -00730 -00756 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); -00757 -00762 virtual void On005Numeric(std::string &output); -00763 -00777 virtual int OnKill(userrec* source, userrec* dest, std::string reason); +00606 virtual void ProtoSendMode(void* opaque, int target_type, void* target, std::string modeline); +00607 +00622 virtual void ProtoSendMetaData(void* opaque, int target_type, void* target, std::string extname, std::string extdata); +00623 +00628 virtual void OnWallops(userrec* user, std::string text); +00629 +00635 virtual void OnChangeHost(userrec* user, std::string newhost); +00636 +00642 virtual void OnChangeName(userrec* user, std::string gecos); +00643 +00651 virtual void OnAddGLine(long duration, userrec* source, std::string reason, std::string hostmask); +00652 +00660 virtual void OnAddZLine(long duration, userrec* source, std::string reason, std::string ipmask); +00661 +00669 virtual void OnAddKLine(long duration, userrec* source, std::string reason, std::string hostmask); +00670 +00678 virtual void OnAddQLine(long duration, userrec* source, std::string reason, std::string nickmask); +00679 +00687 virtual void OnAddELine(long duration, userrec* source, std::string reason, std::string hostmask); +00688 +00694 virtual void OnDelGLine(userrec* source, std::string hostmask); +00695 +00701 virtual void OnDelZLine(userrec* source, std::string ipmask); +00702 +00708 virtual void OnDelKLine(userrec* source, std::string hostmask); +00709 +00715 virtual void OnDelQLine(userrec* source, std::string nickmask); +00716 +00722 virtual void OnDelELine(userrec* source, std::string hostmask); +00723 +00733 virtual void OnCleanup(int target_type, void* item); +00734 +00744 virtual void OnUserPostNick(userrec* user, std::string oldnick); +00745 +00771 virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type); +00772 +00777 virtual void On005Numeric(std::string &output); 00778 -00784 virtual void OnRemoteKill(userrec* source, userrec* dest, std::string reason); -00785 -00798 virtual void OnLoadModule(Module* mod,std::string name); -00799 -00812 virtual void OnUnloadModule(Module* mod,std::string name); -00813 -00820 virtual void OnBackgroundTimer(time_t curtime); -00821 -00832 virtual void OnSendList(userrec* user, chanrec* channel, char mode); -00833 -00849 virtual int OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user); -00850 -00861 virtual bool OnCheckReady(userrec* user); -00862 -00871 virtual void OnUserRegister(userrec* user); -00872 -00885 virtual int OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt); -00886 -00895 virtual int OnCheckInvite(userrec* user, chanrec* chan); -00896 -00906 virtual int OnCheckKey(userrec* user, chanrec* chan, std::string keygiven); -00907 -00916 virtual int OnCheckLimit(userrec* user, chanrec* chan); -00917 -00926 virtual int OnCheckBan(userrec* user, chanrec* chan); -00927 -00932 virtual void OnStats(char symbol); -00933 -00940 virtual int OnChangeLocalUserHost(userrec* user, std::string newhost); -00941 -00948 virtual int OnChangeLocalUserGECOS(userrec* user, std::string newhost); -00949 -00957 virtual int OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic); -00958 -00965 virtual void OnPostLocalTopicChange(userrec* user, chanrec* chan, std::string topic); -00966 -00973 virtual void OnEvent(Event* event); -00974 -00982 virtual char* OnRequest(Request* request); -00983 -00993 virtual int OnOperCompare(std::string password, std::string input); -00994 -01001 virtual void OnGlobalOper(userrec* user); -01002 -01008 virtual void OnGlobalConnect(userrec* user); +00792 virtual int OnKill(userrec* source, userrec* dest, std::string reason); +00793 +00799 virtual void OnRemoteKill(userrec* source, userrec* dest, std::string reason); +00800 +00813 virtual void OnLoadModule(Module* mod,std::string name); +00814 +00827 virtual void OnUnloadModule(Module* mod,std::string name); +00828 +00835 virtual void OnBackgroundTimer(time_t curtime); +00836 +00847 virtual void OnSendList(userrec* user, chanrec* channel, char mode); +00848 +00864 virtual int OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user); +00865 +00876 virtual bool OnCheckReady(userrec* user); +00877 +00886 virtual void OnUserRegister(userrec* user); +00887 +00900 virtual int OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt); +00901 +00910 virtual int OnCheckInvite(userrec* user, chanrec* chan); +00911 +00921 virtual int OnCheckKey(userrec* user, chanrec* chan, std::string keygiven); +00922 +00931 virtual int OnCheckLimit(userrec* user, chanrec* chan); +00932 +00941 virtual int OnCheckBan(userrec* user, chanrec* chan); +00942 +00947 virtual void OnStats(char symbol); +00948 +00955 virtual int OnChangeLocalUserHost(userrec* user, std::string newhost); +00956 +00963 virtual int OnChangeLocalUserGECOS(userrec* user, std::string newhost); +00964 +00972 virtual int OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic); +00973 +00980 virtual void OnPostLocalTopicChange(userrec* user, chanrec* chan, std::string topic); +00981 +00988 virtual void OnEvent(Event* event); +00989 +00997 virtual char* OnRequest(Request* request); +00998 +01008 virtual int OnOperCompare(std::string password, std::string input); 01009 -01017 virtual int OnAddBan(userrec* source, chanrec* channel,std::string banmask); -01018 -01026 virtual int OnDelBan(userrec* source, chanrec* channel,std::string banmask); -01027 -01037 virtual void OnRawSocketAccept(int fd, std::string ip, int localport); -01038 -01049 virtual int OnRawSocketWrite(int fd, char* buffer, int count); -01050 -01055 virtual void OnRawSocketClose(int fd); -01056 -01072 virtual int OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult); -01073 }; -01074 -01075 -01081 class Server : public classbase -01082 { -01083 public: -01087 Server(); -01091 virtual ~Server(); -01092 -01096 virtual void SendOpers(std::string s); -01101 virtual void Log(int level, std::string s); -01106 virtual void Send(int Socket, std::string s); -01111 virtual void SendServ(int Socket, std::string s); -01115 virtual void SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text); -01120 virtual void SendFrom(int Socket, userrec* User, std::string s); -01135 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); -01142 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); -01147 virtual bool CommonChannels(userrec* u1, userrec* u2); -01155 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); -01160 virtual void SendWallops(userrec* User, std::string text); -01161 -01165 virtual bool IsNick(std::string nick); -01169 virtual int CountUsers(chanrec* c); -01173 virtual userrec* FindNick(std::string nick); -01177 virtual userrec* FindDescriptor(int socket); -01181 virtual chanrec* FindChannel(std::string channel); -01186 virtual std::string ChanMode(userrec* User, chanrec* Chan); -01190 virtual bool IsOnChannel(userrec* User, chanrec* Chan); -01193 virtual std::string GetServerName(); -01196 virtual std::string GetNetworkName(); -01199 virtual std::string GetServerDescription(); -01205 virtual Admin GetAdmin(); -01224 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); -01225 -01247 virtual bool AddExtendedListMode(char modechar); -01248 -01266 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); -01267 -01289 virtual void SendMode(char **parameters, int pcnt, userrec *user); -01290 -01303 virtual void SendToModeMask(std::string modes, int flags, std::string text); -01304 -01310 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); -01311 -01317 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); -01318 -01324 virtual void ChangeUserNick(userrec* user, std::string nickname); -01325 -01336 virtual void QuitUser(userrec* user, std::string reason); -01337 -01342 virtual bool MatchText(std::string sliteral, std::string spattern); -01343 -01355 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); -01356 -01357 virtual bool IsValidModuleCommand(std::string commandname, int pcnt, userrec* user); +01016 virtual void OnGlobalOper(userrec* user); +01017 +01023 virtual void OnGlobalConnect(userrec* user); +01024 +01032 virtual int OnAddBan(userrec* source, chanrec* channel,std::string banmask); +01033 +01041 virtual int OnDelBan(userrec* source, chanrec* channel,std::string banmask); +01042 +01052 virtual void OnRawSocketAccept(int fd, std::string ip, int localport); +01053 +01064 virtual int OnRawSocketWrite(int fd, char* buffer, int count); +01065 +01070 virtual void OnRawSocketClose(int fd); +01071 +01087 virtual int OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult); +01088 }; +01089 +01090 +01096 class Server : public classbase +01097 { +01098 public: +01102 Server(); +01106 virtual ~Server(); +01107 +01111 virtual void SendOpers(std::string s); +01116 virtual void Log(int level, std::string s); +01121 virtual void Send(int Socket, std::string s); +01126 virtual void SendServ(int Socket, std::string s); +01130 virtual void SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text); +01135 virtual void SendFrom(int Socket, userrec* User, std::string s); +01150 virtual void SendTo(userrec* Source, userrec* Dest, std::string s); +01157 virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender); +01162 virtual bool CommonChannels(userrec* u1, userrec* u2); +01170 virtual void SendCommon(userrec* User, std::string text,bool IncludeSender); +01175 virtual void SendWallops(userrec* User, std::string text); +01176 +01180 virtual bool IsNick(std::string nick); +01184 virtual int CountUsers(chanrec* c); +01188 virtual userrec* FindNick(std::string nick); +01192 virtual userrec* FindDescriptor(int socket); +01196 virtual chanrec* FindChannel(std::string channel); +01201 virtual std::string ChanMode(userrec* User, chanrec* Chan); +01205 virtual bool IsOnChannel(userrec* User, chanrec* Chan); +01208 virtual std::string GetServerName(); +01211 virtual std::string GetNetworkName(); +01214 virtual std::string GetServerDescription(); +01220 virtual Admin GetAdmin(); +01239 virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off); +01240 +01262 virtual bool AddExtendedListMode(char modechar); +01263 +01281 virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source); +01282 +01304 virtual void SendMode(char **parameters, int pcnt, userrec *user); +01305 +01318 virtual void SendToModeMask(std::string modes, int flags, std::string text); +01319 +01325 virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key); +01326 +01332 virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason); +01333 +01339 virtual void ChangeUserNick(userrec* user, std::string nickname); +01340 +01351 virtual void QuitUser(userrec* user, std::string reason); +01352 +01357 virtual bool MatchText(std::string sliteral, std::string spattern); 01358 -01364 virtual void ChangeHost(userrec* user, std::string host); -01365 -01371 virtual void ChangeGECOS(userrec* user, std::string gecos); -01372 -01381 virtual bool IsUlined(std::string server); -01382 -01386 virtual chanuserlist GetUsers(chanrec* chan); -01387 -01394 virtual bool UserToPseudo(userrec* user,std::string message); -01395 -01402 virtual bool PseudoToUser(userrec* alive,userrec* zombie,std::string message); -01403 -01411 virtual void AddGLine(long duration, std::string source, std::string reason, std::string hostmask); -01412 -01420 virtual void AddQLine(long duration, std::string source, std::string reason, std::string nickname); -01421 -01429 virtual void AddZLine(long duration, std::string source, std::string reason, std::string ipaddr); -01430 -01438 virtual void AddKLine(long duration, std::string source, std::string reason, std::string hostmask); -01439 -01447 virtual void AddELine(long duration, std::string source, std::string reason, std::string hostmask); -01448 -01451 virtual bool DelGLine(std::string hostmask); -01452 -01455 virtual bool DelQLine(std::string nickname); -01456 -01459 virtual bool DelZLine(std::string ipaddr); -01460 -01463 virtual bool DelKLine(std::string hostmask); -01464 -01467 virtual bool DelELine(std::string hostmask); -01468 -01474 virtual long CalcDuration(std::string duration); +01370 virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user); +01371 +01372 virtual bool IsValidModuleCommand(std::string commandname, int pcnt, userrec* user); +01373 +01379 virtual void ChangeHost(userrec* user, std::string host); +01380 +01386 virtual void ChangeGECOS(userrec* user, std::string gecos); +01387 +01396 virtual bool IsUlined(std::string server); +01397 +01401 virtual chanuserlist GetUsers(chanrec* chan); +01402 +01409 virtual bool UserToPseudo(userrec* user,std::string message); +01410 +01417 virtual bool PseudoToUser(userrec* alive,userrec* zombie,std::string message); +01418 +01426 virtual void AddGLine(long duration, std::string source, std::string reason, std::string hostmask); +01427 +01435 virtual void AddQLine(long duration, std::string source, std::string reason, std::string nickname); +01436 +01444 virtual void AddZLine(long duration, std::string source, std::string reason, std::string ipaddr); +01445 +01453 virtual void AddKLine(long duration, std::string source, std::string reason, std::string hostmask); +01454 +01462 virtual void AddELine(long duration, std::string source, std::string reason, std::string hostmask); +01463 +01466 virtual bool DelGLine(std::string hostmask); +01467 +01470 virtual bool DelQLine(std::string nickname); +01471 +01474 virtual bool DelZLine(std::string ipaddr); 01475 -01478 virtual bool IsValidMask(std::string mask); +01478 virtual bool DelKLine(std::string hostmask); 01479 -01484 virtual Module* FindModule(std::string name); -01485 -01488 virtual void AddSocket(InspSocket* sock); -01489 -01492 virtual void DelSocket(InspSocket* sock); -01493 -01494 virtual void RehashServer(); -01495 }; -01496 -01497 -01498 #define CONF_NOT_A_NUMBER 0x000010 -01499 #define CONF_NOT_UNSIGNED 0x000080 -01500 #define CONF_VALUE_NOT_FOUND 0x000100 -01501 #define CONF_FILE_NOT_FOUND 0x000200 -01502 -01503 -01510 class ConfigReader : public classbase -01511 { -01512 protected: -01518 std::stringstream *cache; -01519 std::stringstream *errorlog; -01522 bool readerror; -01523 long error; -01524 -01525 public: -01530 ConfigReader(); // default constructor reads ircd.conf -01534 ConfigReader(std::string filename); // read a module-specific config -01538 ~ConfigReader(); -01543 std::string ReadValue(std::string tag, std::string name, int index); -01549 bool ReadFlag(std::string tag, std::string name, int index); -01558 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); -01563 long GetError(); -01570 int Enumerate(std::string tag); -01575 bool Verify(); -01582 void DumpErrors(bool bail,userrec* user); -01583 -01589 int EnumerateValues(std::string tag, int index); -01590 }; -01591 -01592 -01593 -01599 class FileReader : public classbase -01600 { -01601 file_cache fc; -01602 public: -01607 FileReader(); +01482 virtual bool DelELine(std::string hostmask); +01483 +01489 virtual long CalcDuration(std::string duration); +01490 +01493 virtual bool IsValidMask(std::string mask); +01494 +01499 virtual Module* FindModule(std::string name); +01500 +01503 virtual void AddSocket(InspSocket* sock); +01504 +01507 virtual void DelSocket(InspSocket* sock); +01508 +01509 virtual void RehashServer(); +01510 }; +01511 +01512 +01513 #define CONF_NOT_A_NUMBER 0x000010 +01514 #define CONF_NOT_UNSIGNED 0x000080 +01515 #define CONF_VALUE_NOT_FOUND 0x000100 +01516 #define CONF_FILE_NOT_FOUND 0x000200 +01517 +01518 +01525 class ConfigReader : public classbase +01526 { +01527 protected: +01533 std::stringstream *cache; +01534 std::stringstream *errorlog; +01537 bool readerror; +01538 long error; +01539 +01540 public: +01545 ConfigReader(); // default constructor reads ircd.conf +01549 ConfigReader(std::string filename); // read a module-specific config +01553 ~ConfigReader(); +01558 std::string ReadValue(std::string tag, std::string name, int index); +01564 bool ReadFlag(std::string tag, std::string name, int index); +01573 long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned); +01578 long GetError(); +01585 int Enumerate(std::string tag); +01590 bool Verify(); +01597 void DumpErrors(bool bail,userrec* user); +01598 +01604 int EnumerateValues(std::string tag, int index); +01605 }; +01606 +01607 01608 -01614 FileReader(std::string filename); -01615 -01619 ~FileReader(); -01620 -01626 void LoadFile(std::string filename); -01627 -01631 bool Exists(); -01632 -01637 std::string GetLine(int x); -01638 -01644 int FileSize(); -01645 }; -01646 -01647 -01654 class ModuleFactory : public classbase -01655 { -01656 public: -01657 ModuleFactory() { } -01658 virtual ~ModuleFactory() { } -01663 virtual Module * CreateModule(Server* Me) = 0; -01664 }; -01665 -01666 -01667 typedef DLLFactory<ModuleFactory> ircd_module; -01668 -01669 #endif -

    Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +01614 class FileReader : public classbase +01615 { +01616 file_cache fc; +01617 public: +01622 FileReader(); +01623 +01629 FileReader(std::string filename); +01630 +01634 ~FileReader(); +01635 +01641 void LoadFile(std::string filename); +01642 +01646 bool Exists(); +01647 +01652 std::string GetLine(int x); +01653 +01659 int FileSize(); +01660 }; +01661 +01662 +01669 class ModuleFactory : public classbase +01670 { +01671 public: +01672 ModuleFactory() { } +01673 virtual ~ModuleFactory() { } +01678 virtual Module * CreateModule(Server* Me) = 0; +01679 }; +01680 +01681 +01682 typedef DLLFactory<ModuleFactory> ircd_module; +01683 +01684 #endif +

    Generated on Wed Dec 14 14:49:17 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 4007063a9..53cd259b8 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -26,8 +26,9 @@ Include dependency graph for modules.h:

    - - + + +

    @@ -49,6 +50,9 @@ This graph shows which files directly or indirectly include this file:

    class  Event  The Event class is a unicast message directed at all modules. More...
    +class  ExtMode + + 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...
    @@ -425,7 +429,7 @@ Used with OnAccessCheck() method of modules.

    Definition at line 37 of file modules.h.

    -Referenced by Module::OnAccessCheck(). +Referenced by Module::OnAccessCheck().

    @@ -475,9 +479,9 @@ Definition at line 38 of

    -Definition at line 1501 of file modules.h. +Definition at line 1516 of file modules.h.

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

    @@ -502,9 +506,9 @@ Referenced by ConfigReader:

    -Definition at line 1498 of file modules.h. +Definition at line 1513 of file modules.h.

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

    @@ -529,9 +533,9 @@ Referenced by ConfigReader:

    -Definition at line 1499 of file modules.h. +Definition at line 1514 of file modules.h.

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

    @@ -556,9 +560,9 @@ Referenced by ConfigReader:

    -Definition at line 1500 of file modules.h. +Definition at line 1515 of file modules.h.

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

    @@ -585,9 +589,7 @@ log levels

    -Definition at line 23 of file modules.h. -

    -Referenced by Server::AddExtendedMode(), SocketEngine::AddFd(), chanrec::AddUser(), SocketEngine::DelFd(), chanrec::DelUser(), InspSocket::InspSocket(), InspSocket::Read(), userrec::ReadData(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), SocketEngine::SocketEngine(), SocketEngine::Wait(), and SocketEngine::~SocketEngine(). +Definition at line 23 of file modules.h.

    @@ -639,7 +641,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().

    @@ -666,7 +668,7 @@ Referenced by Server::Pseud

    Definition at line 81 of file modules.h.

    -Referenced by Event::Send(). +Referenced by Event::Send().

    @@ -734,7 +736,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().

    @@ -761,7 +763,7 @@ Referenced by Server::AddEx

    Definition at line 32 of file modules.h.

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

    @@ -788,7 +790,7 @@ Referenced by Server::AddEx

    Definition at line 33 of file modules.h.

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

    @@ -967,7 +969,7 @@ Definition at line 52 of

    Definition at line 53 of file modules.h.

    -Referenced by Module::GetVersion(). +Referenced by Module::GetVersion().


    Typedef Documentation

    @@ -1047,7 +1049,7 @@ Definition at line 65 of

    -Definition at line 1667 of file modules.h. +Definition at line 1682 of file modules.h.

    @@ -1130,7 +1132,7 @@ Definition at line 70 of

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

    @@ -1176,7 +1178,7 @@ Referenced by Server::AddCo -


    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:25 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 b2d7f6bac..ffda5e4bd 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 d7538d0b6..c8b77543c 100644 --- a/docs/module-doc/modules_8h__dep__incl.map +++ b/docs/module-doc/modules_8h__dep__incl.map @@ -1,3 +1,4 @@ base referer -rect $channels_8cpp-source.html 141,7 240,34 -rect $modules_8cpp-source.html 141,58 240,84 +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 diff --git a/docs/module-doc/modules_8h__dep__incl.md5 b/docs/module-doc/modules_8h__dep__incl.md5 index 60d2fe3bf..afb807516 100644 --- a/docs/module-doc/modules_8h__dep__incl.md5 +++ b/docs/module-doc/modules_8h__dep__incl.md5 @@ -1 +1 @@ -611991712fd0ca861a8e76c0cc7c6347 \ No newline at end of file +709af1b122d8fb9d54f7e641c4015265 \ No newline at end of file diff --git a/docs/module-doc/namespaceirc.html b/docs/module-doc/namespaceirc.html index ecc59e554..39cf69d8c 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacemembers.html b/docs/module-doc/namespacemembers.html index 551a390ba..1a737aed5 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 d1da4447d..facd5858b 100644 --- a/docs/module-doc/namespacemembers_type.html +++ b/docs/module-doc/namespacemembers_type.html @@ -11,7 +11,7 @@ -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index d4cb5e106..2fe1f7d8f 100644 --- a/docs/module-doc/namespacenspace.html +++ b/docs/module-doc/namespacenspace.html @@ -15,7 +15,7 @@ struct  hash< string > -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index c2272e9df..a74f24753 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -10,7 +10,7 @@ nspace std -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index f230107f5..60c022406 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -10,7 +10,7 @@
    -
    Generated on Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 d0acacdf1..301f525b4 100644 --- a/docs/module-doc/socket_8cpp-source.html +++ b/docs/module-doc/socket_8cpp-source.html @@ -40,7 +40,7 @@ 00031 #include <fstream> 00032 #include "socket.h" 00033 #include "inspircd.h" -00034 #include "inspircd_io.h" +00034 #include "inspircd_io.h" 00035 #include "inspircd_util.h" 00036 #include "inspstring.h" 00037 #include "helperfuncs.h" @@ -48,243 +48,246 @@ 00039 00040 extern SocketEngine* SE; 00041 -00042 extern FILE *log_file; -00043 extern int boundPortCount; -00044 extern int openSockfd[MAXSOCKS]; -00045 extern time_t TIME; -00046 extern bool unlimitcore; -00047 extern int MaxConn; -00048 -00049 InspSocket::InspSocket() -00050 { -00051 this->state = I_DISCONNECTED; -00052 } -00053 -00054 InspSocket::InspSocket(int newfd, char* ip) -00055 { -00056 this->fd = newfd; -00057 this->state = I_CONNECTED; -00058 this->IP = ip; -00059 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +00042 extern int boundPortCount; +00043 extern int openSockfd[MAXSOCKS]; +00044 extern time_t TIME; +00045 +00046 InspSocket* socket_ref[65535]; +00047 +00048 InspSocket::InspSocket() +00049 { +00050 this->state = I_DISCONNECTED; +00051 } +00052 +00053 InspSocket::InspSocket(int newfd, char* ip) +00054 { +00055 this->fd = newfd; +00056 this->state = I_CONNECTED; +00057 this->IP = ip; +00058 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +00059 socket_ref[this->fd] = this; 00060 } 00061 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 00085 { 00086 this->state = I_LISTENING; 00087 SE->AddFd(this->fd,true,X_ESTAB_MODULE); -00088 log(DEBUG,"New socket now in I_LISTENING state"); -00089 return; -00090 } -00091 } -00092 } else { -00093 char* ip; -00094 this->host = host; -00095 hostent* hoste = gethostbyname(host.c_str()); -00096 if (!hoste) { -00097 ip = (char*)host.c_str(); -00098 } else { -00099 struct in_addr* ia = (in_addr*)hoste->h_addr; -00100 ip = inet_ntoa(*ia); -00101 } -00102 -00103 this->IP = ip; -00104 -00105 timeout_end = time(NULL)+maxtime; -00106 timeout = false; -00107 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) -00108 { -00109 this->state = I_ERROR; -00110 this->OnError(I_ERR_SOCKET); -00111 return; -00112 } -00113 this->port = port; -00114 inet_aton(ip,&addy); -00115 addr.sin_family = AF_INET; -00116 addr.sin_addr = addy; -00117 addr.sin_port = htons(this->port); -00118 -00119 int flags; -00120 flags = fcntl(this->fd, F_GETFL, 0); -00121 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK); -00122 -00123 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1) -00124 { -00125 if (errno != EINPROGRESS) -00126 { -00127 this->Close(); -00128 this->OnError(I_ERR_CONNECT); -00129 this->state = I_ERROR; -00130 return; -00131 } -00132 } -00133 this->state = I_CONNECTING; -00134 SE->AddFd(this->fd,false,X_ESTAB_MODULE); -00135 return; -00136 } -00137 } -00138 -00139 void InspSocket::Close() -00140 { -00141 if (this->fd != -1) -00142 { -00143 this->OnClose(); -00144 shutdown(this->fd,2); -00145 close(this->fd); -00146 this->fd = -1; -00147 } -00148 } -00149 -00150 std::string InspSocket::GetIP() -00151 { -00152 return this->IP; -00153 } -00154 -00155 char* InspSocket::Read() -00156 { -00157 int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0); -00158 if (n > 0) -00159 { -00160 ibuf[n] = 0; -00161 return ibuf; -00162 } -00163 else -00164 { -00165 log(DEBUG,"EOF or error on socket"); -00166 return NULL; -00167 } -00168 } -00169 -00170 // There are two possible outcomes to this function. -00171 // It will either write all of the data, or an undefined amount. -00172 // If an undefined amount is written the connection has failed -00173 // and should be aborted. -00174 int InspSocket::Write(std::string data) -00175 { -00176 char* d = (char*)data.c_str(); -00177 unsigned int written = 0; -00178 int n = 0; -00179 int s = data.length(); -00180 while ((written < data.length()) && (n >= 0)) -00181 { -00182 n = send(this->fd,d,s,0); -00183 if (n > 0) -00184 { -00185 // If we didnt write everything, advance -00186 // the pointers so that when we retry -00187 // the next time around the loop, we try -00188 // to write what we failed to write before. -00189 written += n; -00190 s -= n; -00191 d += n; -00192 } -00193 } -00194 return written; -00195 } -00196 -00197 bool InspSocket::Timeout(time_t current) -00198 { -00199 if ((this->state == I_CONNECTING) && (current > timeout_end)) -00200 { -00201 // for non-listening sockets, the timeout can occur -00202 // which causes termination of the connection after -00203 // the given number of seconds without a successful -00204 // connection. -00205 this->OnTimeout(); -00206 this->OnError(I_ERR_TIMEOUT); -00207 timeout = true; -00208 this->state = I_ERROR; -00209 return true; -00210 } -00211 return false; -00212 } -00213 -00214 bool InspSocket::Poll() -00215 { -00216 int incoming = -1; -00217 -00218 switch (this->state) -00219 { -00220 case I_CONNECTING: -00221 this->SetState(I_CONNECTED); -00222 /* Our socket was in write-state, so delete it and re-add it -00223 * in read-state. -00224 */ -00225 SE->DelFd(this->fd); -00226 SE->AddFd(this->fd,true,X_ESTAB_MODULE); -00227 return this->OnConnected(); -00228 break; -00229 case I_LISTENING: -00230 length = sizeof (client); -00231 incoming = accept (this->fd, (sockaddr*)&client,&length); -00232 this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr)); -00233 return true; -00234 break; -00235 case I_CONNECTED: -00236 return this->OnDataReady(); +00088 socket_ref[this->fd] = this; +00089 log(DEBUG,"New socket now in I_LISTENING state"); +00090 return; +00091 } +00092 } +00093 } else { +00094 char* ip; +00095 this->host = host; +00096 hostent* hoste = gethostbyname(host.c_str()); +00097 if (!hoste) { +00098 ip = (char*)host.c_str(); +00099 } else { +00100 struct in_addr* ia = (in_addr*)hoste->h_addr; +00101 ip = inet_ntoa(*ia); +00102 } +00103 +00104 this->IP = ip; +00105 +00106 timeout_end = time(NULL)+maxtime; +00107 timeout = false; +00108 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) +00109 { +00110 this->state = I_ERROR; +00111 this->OnError(I_ERR_SOCKET); +00112 return; +00113 } +00114 this->port = port; +00115 inet_aton(ip,&addy); +00116 addr.sin_family = AF_INET; +00117 addr.sin_addr = addy; +00118 addr.sin_port = htons(this->port); +00119 +00120 int flags; +00121 flags = fcntl(this->fd, F_GETFL, 0); +00122 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK); +00123 +00124 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1) +00125 { +00126 if (errno != EINPROGRESS) +00127 { +00128 this->Close(); +00129 this->OnError(I_ERR_CONNECT); +00130 this->state = I_ERROR; +00131 return; +00132 } +00133 } +00134 this->state = I_CONNECTING; +00135 SE->AddFd(this->fd,false,X_ESTAB_MODULE); +00136 socket_ref[this->fd] = this; +00137 return; +00138 } +00139 } +00140 +00141 void InspSocket::Close() +00142 { +00143 if (this->fd != -1) +00144 { +00145 this->OnClose(); +00146 shutdown(this->fd,2); +00147 close(this->fd); +00148 socket_ref[this->fd] = NULL; +00149 this->fd = -1; +00150 } +00151 } +00152 +00153 std::string InspSocket::GetIP() +00154 { +00155 return this->IP; +00156 } +00157 +00158 char* InspSocket::Read() +00159 { +00160 int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0); +00161 if (n > 0) +00162 { +00163 ibuf[n] = 0; +00164 return ibuf; +00165 } +00166 else +00167 { +00168 log(DEBUG,"EOF or error on socket"); +00169 return NULL; +00170 } +00171 } +00172 +00173 // There are two possible outcomes to this function. +00174 // It will either write all of the data, or an undefined amount. +00175 // If an undefined amount is written the connection has failed +00176 // and should be aborted. +00177 int InspSocket::Write(std::string data) +00178 { +00179 char* d = (char*)data.c_str(); +00180 unsigned int written = 0; +00181 int n = 0; +00182 int s = data.length(); +00183 while ((written < data.length()) && (n >= 0)) +00184 { +00185 n = send(this->fd,d,s,0); +00186 if (n > 0) +00187 { +00188 // If we didnt write everything, advance +00189 // the pointers so that when we retry +00190 // the next time around the loop, we try +00191 // to write what we failed to write before. +00192 written += n; +00193 s -= n; +00194 d += n; +00195 } +00196 } +00197 return written; +00198 } +00199 +00200 bool InspSocket::Timeout(time_t current) +00201 { +00202 if ((this->state == I_CONNECTING) && (current > timeout_end)) +00203 { +00204 // for non-listening sockets, the timeout can occur +00205 // which causes termination of the connection after +00206 // the given number of seconds without a successful +00207 // connection. +00208 this->OnTimeout(); +00209 this->OnError(I_ERR_TIMEOUT); +00210 timeout = true; +00211 this->state = I_ERROR; +00212 return true; +00213 } +00214 return false; +00215 } +00216 +00217 bool InspSocket::Poll() +00218 { +00219 int incoming = -1; +00220 +00221 switch (this->state) +00222 { +00223 case I_CONNECTING: +00224 this->SetState(I_CONNECTED); +00225 /* Our socket was in write-state, so delete it and re-add it +00226 * in read-state. +00227 */ +00228 SE->DelFd(this->fd); +00229 SE->AddFd(this->fd,true,X_ESTAB_MODULE); +00230 return this->OnConnected(); +00231 break; +00232 case I_LISTENING: +00233 length = sizeof (client); +00234 incoming = accept (this->fd, (sockaddr*)&client,&length); +00235 this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr)); +00236 return true; 00237 break; -00238 default: -00239 break; -00240 } -00241 -00242 return true; -00243 } +00238 case I_CONNECTED: +00239 return this->OnDataReady(); +00240 break; +00241 default: +00242 break; +00243 } 00244 -00245 void InspSocket::SetState(InspSocketState s) -00246 { -00247 log(DEBUG,"Socket state change"); -00248 this->state = s; -00249 } -00250 -00251 InspSocketState InspSocket::GetState() -00252 { -00253 return this->state; -00254 } -00255 -00256 int InspSocket::GetFd() -00257 { -00258 return this->fd; -00259 } -00260 -00261 bool InspSocket::OnConnected() { return true; } -00262 void InspSocket::OnError(InspSocketError e) { return; } -00263 int InspSocket::OnDisconnect() { return 0; } -00264 int InspSocket::OnIncomingConnection(int newfd, char* ip) { return 0; } -00265 bool InspSocket::OnDataReady() { return true; } -00266 void InspSocket::OnTimeout() { return; } -00267 void InspSocket::OnClose() { return; } -00268 -00269 InspSocket::~InspSocket() -00270 { -00271 this->Close(); -00272 } -00273 -00274 /* -00275 int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr) -00276 int OpenTCPSocket (void) -00277 */ -

    Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +00245 return true; +00246 } +00247 +00248 void InspSocket::SetState(InspSocketState s) +00249 { +00250 log(DEBUG,"Socket state change"); +00251 this->state = s; +00252 } +00253 +00254 InspSocketState InspSocket::GetState() +00255 { +00256 return this->state; +00257 } +00258 +00259 int InspSocket::GetFd() +00260 { +00261 return this->fd; +00262 } +00263 +00264 bool InspSocket::OnConnected() { return true; } +00265 void InspSocket::OnError(InspSocketError e) { return; } +00266 int InspSocket::OnDisconnect() { return 0; } +00267 int InspSocket::OnIncomingConnection(int newfd, char* ip) { return 0; } +00268 bool InspSocket::OnDataReady() { return true; } +00269 void InspSocket::OnTimeout() { return; } +00270 void InspSocket::OnClose() { return; } +00271 +00272 InspSocket::~InspSocket() +00273 { +00274 this->Close(); +00275 } +00276 +00277 /* +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 14:49:17 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 84acf418e..506657c69 100644 --- a/docs/module-doc/socket_8cpp.html +++ b/docs/module-doc/socket_8cpp.html @@ -22,7 +22,7 @@ #include <fstream>
    #include "socket.h"
    #include "inspircd.h"
    -#include "inspircd_io.h"
    +#include "inspircd_io.h"
    #include "inspircd_util.h"
    #include "inspstring.h"
    #include "helperfuncs.h"
    @@ -31,8 +31,9 @@

    Include dependency graph for socket.cpp:

    - - + + +

    @@ -41,17 +42,13 @@ Include dependency graph for socket.cpp:


    Variables

    SocketEngineSE -FILE * log_file - int boundPortCount int openSockfd [MAXSOCKS] time_t TIME -bool unlimitcore - -int MaxConn +InspSocketsocket_ref [65535]

    Variable Documentation

    @@ -74,52 +71,6 @@ Include dependency graph for socket.cpp:

    - - - - -
    - - - - -
    FILE* log_file
    -
    - - - - - -
    -   - - -

    -

    -

    - - - - -
    - - - - -
    int MaxConn
    -
    - - - - @@ -170,13 +121,13 @@ Include dependency graph for socket.cpp:

    +

    -   - -

    @@ -190,16 +141,18 @@ Include dependency graph for socket.cpp:

    46 of file socket.cpp.
    - +
    time_t TIME InspSocket* socket_ref[65535]
    -

    +

    @@ -216,7 +169,7 @@ Include dependency graph for socket.cpp:

    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:25 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 96429a7a6..71318697c 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 2be61668c..1374f07ed 100644 --- a/docs/module-doc/socket_8cpp__incl.map +++ b/docs/module-doc/socket_8cpp__incl.map @@ -1,3 +1,4 @@ base referer -rect $socket_8h-source.html 160,362 232,388 -rect $socketengine_8h-source.html 140,159 252,186 +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 diff --git a/docs/module-doc/socket_8cpp__incl.md5 b/docs/module-doc/socket_8cpp__incl.md5 index 61a543f9d..5059c3bba 100644 --- a/docs/module-doc/socket_8cpp__incl.md5 +++ b/docs/module-doc/socket_8cpp__incl.md5 @@ -1 +1 @@ -c5a330a4e5a7da84d33f6af21a61216b \ No newline at end of file +90e1383e8aa075991d7a330be1573c66 \ 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 21535c883..f6c76d043 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 Mon Dec 12 18:30:58 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:17 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 d527d07ad..65f86a55e 100644 --- a/docs/module-doc/socket_8h.html +++ b/docs/module-doc/socket_8h.html @@ -19,10 +19,11 @@ Include dependency graph for socket.h:

    This graph shows which files directly or indirectly include this file:

    - + - + +

    @@ -139,7 +140,7 @@ Definition at line 29 of f

    - +
    bool unlimitcore time_t TIME
    -


    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:26 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 8649832ea..c36bb318a 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 c89bd0ae5..41318c6e5 100644 --- a/docs/module-doc/socket_8h__dep__incl.map +++ b/docs/module-doc/socket_8h__dep__incl.map @@ -1,5 +1,6 @@ base referer -rect $modules_8cpp-source.html 261,32 360,59 +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 261,108 360,135 +rect $channels_8cpp-source.html 262,108 360,135 +rect $typedefs_8h-source.html 268,159 354,185 diff --git a/docs/module-doc/socket_8h__dep__incl.md5 b/docs/module-doc/socket_8h__dep__incl.md5 index bffef7bdc..197554b02 100644 --- a/docs/module-doc/socket_8h__dep__incl.md5 +++ b/docs/module-doc/socket_8h__dep__incl.md5 @@ -1 +1 @@ -0eb028aa994c3569f9be98fd88930f79 \ No newline at end of file +eb848111c3060b658816757104f37d5b \ 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 a1281f8be..54fd76fc4 100644 --- a/docs/module-doc/socketengine_8cpp-source.html +++ b/docs/module-doc/socketengine_8cpp-source.html @@ -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,18 +122,18 @@ 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 } 00120 } 00121 #ifdef USE_KQUEUE 00122 struct kevent ke; -00123 EV_SET(&ke, fd, ref[fd] && X_READBIT ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL); +00123 EV_SET(&ke, fd, ref[fd] & X_READBIT ? EVFILT_READ : EVFILT_WRITE, EV_DELETE, 0, 0, NULL); 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 @@ -180,42 +180,39 @@ 00171 for (unsigned int a = 0; a < fds.size(); a++) 00172 { 00173 if ((FD_ISSET (fds[a], &rfdset)) || (FD_ISSET (fds[a], &wfdset))) -00174 { -00175 log(DEBUG,"...Adding active %d",fds[a]); -00176 fdlist.push_back(fds[a]); -00177 } -00178 } -00179 } -00180 #endif -00181 #ifdef USE_KQUEUE -00182 ts.tv_nsec = 10000L; -00183 ts.tv_sec = 0; -00184 int i = kevent(EngineHandle, NULL, 0, &ke_list[0], 65535, &ts); -00185 for (int j = 0; j < i; j++) -00186 fdlist.push_back(ke_list[j].ident); -00187 #endif -00188 #ifdef USE_EPOLL -00189 int i = epoll_wait(EngineHandle, events, 65535, 100); -00190 for (int j = 0; j < i; j++) -00191 fdlist.push_back(events[j].data.fd); -00192 #endif -00193 return true; -00194 } -00195 -00196 std::string SocketEngine::GetName() -00197 { -00198 #ifdef USE_SELECT -00199 return "select"; +00174 fdlist.push_back(fds[a]); +00175 } +00176 } +00177 #endif +00178 #ifdef USE_KQUEUE +00179 ts.tv_nsec = 10000L; +00180 ts.tv_sec = 0; +00181 int i = kevent(EngineHandle, NULL, 0, &ke_list[0], 65535, &ts); +00182 for (int j = 0; j < i; j++) +00183 fdlist.push_back(ke_list[j].ident); +00184 #endif +00185 #ifdef USE_EPOLL +00186 int i = epoll_wait(EngineHandle, events, 65535, 100); +00187 for (int j = 0; j < i; j++) +00188 fdlist.push_back(events[j].data.fd); +00189 #endif +00190 return true; +00191 } +00192 +00193 std::string SocketEngine::GetName() +00194 { +00195 #ifdef USE_SELECT +00196 return "select"; +00197 #endif +00198 #ifdef USE_KQUEUE +00199 return "kqueue"; 00200 #endif -00201 #ifdef USE_KQUEUE -00202 return "kqueue"; +00201 #ifdef USE_EPOLL +00202 return "epoll"; 00203 #endif -00204 #ifdef USE_EPOLL -00205 return "epoll"; -00206 #endif -00207 return "misconfigured"; -00208 } -

    Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +00204 return "misconfigured"; +00205 } +

    Generated on Wed Dec 14 14:49:17 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 1c9d3c524..6c02070b0 100644 --- a/docs/module-doc/socketengine_8cpp.html +++ b/docs/module-doc/socketengine_8cpp.html @@ -55,7 +55,7 @@ Definition at line 33< Referenced by SocketEngine::AddFd(), SocketEngine::DelFd(), SocketEngine::GetType(), and SocketEngine::Wait(). -
    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socketengine_8h-source.html b/docs/module-doc/socketengine_8h-source.html index 16d95e2ab..a9b9340c5 100644 --- a/docs/module-doc/socketengine_8h-source.html +++ b/docs/module-doc/socketengine_8h-source.html @@ -82,7 +82,7 @@ 00142 }; 00143 00144 #endif -

    Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +

    Generated on Wed Dec 14 14:49:17 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 b4e62a88f..d98efd075 100644 --- a/docs/module-doc/socketengine_8h.html +++ b/docs/module-doc/socketengine_8h.html @@ -154,7 +154,7 @@ Definition at line 45 Definition at line 44 of file socketengine.h.

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

    @@ -211,7 +211,7 @@ Definition at line 55SocketEngine::AddFd(), SocketEngine::DelFd(), and SocketEngine::Wait(). -


    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:26 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structdns__ip4list-members.html b/docs/module-doc/structdns__ip4list-members.html index 6c489839c..289af1dd0 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:30 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 63146e509..253c29fc6 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 Mon Dec 12 18:31:02 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:30 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 4b699df1c..a37cd2c2d 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 5efab0fa6..fd121ce96 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 e82ae67a0..c74828c81 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 586ef4671..1abcc2304 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 0a8db33f9..f4bb52951 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 1684d8075..c85d4331c 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 645a04575..831baf385 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 a914a72b6..3cfadbcc5 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 0de234d8f..020a922aa 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 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 0f2566776..ce45bfe89 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 Mon Dec 12 18:31:04 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:37 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/tree.html b/docs/module-doc/tree.html index 39c87256d..b3fce4fbe 100644 --- a/docs/module-doc/tree.html +++ b/docs/module-doc/tree.html @@ -82,6 +82,7 @@

    |o*ctables.h

    |o*dns.h

    |o*hashcomp.h

    +

    |o*inspircd_io.h

    |o*message.h

    |o*mode.h

    |o*modules.cpp

    @@ -90,6 +91,8 @@

    |o*socket.h

    |o*socketengine.cpp

    |o*socketengine.h

    +

    |o*typedefs.h

    +

    |o*userprocess.h

    |o*users.cpp

    |o*users.h

    |\*xline.h

    @@ -131,6 +134,7 @@

    |o*QLine

    |o*Request

    |o*Server

    +

    |o*ServerConfig

    |o*SocketEngine

    |o*irc::StrHashComp

    |o*ucrec

    @@ -179,6 +183,7 @@

    |||\*Request

    ||o*Server

    +

    ||o*ServerConfig

    ||o*ucrec

    ||o*Version

    ||\+XLine

    diff --git a/docs/module-doc/typedefs_8h-source.html b/docs/module-doc/typedefs_8h-source.html new file mode 100644 index 000000000..35b7b586f --- /dev/null +++ b/docs/module-doc/typedefs_8h-source.html @@ -0,0 +1,43 @@ + + +InspIRCd: typedefs.h Source File + + + + + +

    typedefs.h

    Go to the documentation of this file.
    00001 #ifndef __TYPEDEF_H__
    +00002 #define __TYPEDEF_H__
    +00003 
    +00004 #include "users.h"
    +00005 #include "channels.h"
    +00006 #include "hashcomp.h"
    +00007 #include "inspstring.h"
    +00008 #include "ctables.h"
    +00009 #include "inspircd.h"
    +00010 #include "modules.h"
    +00011 #include "globals.h"
    +00012 #include "inspircd_config.h"
    +00013 #include <string>
    +00014 #ifdef GCC3
    +00015 #include <ext/hash_map>
    +00016 #else
    +00017 #include <hash_map>
    +00018 #endif
    +00019 
    +00020 typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash;
    +00021 typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash;
    +00022 typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache;
    +00023 typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash;
    +00024 typedef std::deque<command_t> command_table;
    +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 14:49:17 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 new file mode 100644 index 000000000..45b02de74 --- /dev/null +++ b/docs/module-doc/typedefs_8h.html @@ -0,0 +1,272 @@ + + +InspIRCd: typedefs.h File Reference + + + + + +

    typedefs.h File Reference

    #include "users.h"
    +#include "channels.h"
    +#include "hashcomp.h"
    +#include "inspstring.h"
    +#include "ctables.h"
    +#include "inspircd.h"
    +#include "modules.h"
    +#include "globals.h"
    +#include "inspircd_config.h"
    +#include <string>
    +#include <ext/hash_map>
    + +

    +Include dependency graph for typedefs.h:

    + + + + + + + + +

    +This graph shows which files directly or indirectly include this file:

    + + + + +

    +Go to the source code of this file. + + + + + + + + + + + + + + + + + + +

    Typedefs

    typedef nspace::hash_map<
    + std::string, userrec *, nspace::hash<
    + string >, irc::StrHashComp
    user_hash
    typedef nspace::hash_map<
    + std::string, chanrec *, nspace::hash<
    + string >, irc::StrHashComp
    chan_hash
    typedef nspace::hash_map<
    + in_addr, string *, nspace::hash<
    + in_addr >, irc::InAddr_HashComp
    address_cache
    typedef nspace::hash_map<
    + std::string, WhoWasUser *,
    + nspace::hash< string >, irc::StrHashComp
    whowas_hash
    typedef std::deque< command_tcommand_table
    typedef std::vector< std::stringservernamelist
    typedef std::vector< ExtModeExtModeList
    typedef ExtModeList::iterator ExtModeListIter
    +


    Typedef Documentation

    +

    + + + + +
    + + + + +
    typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 22 of file typedefs.h.

    +

    + + + + +
    + + + + +
    typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 21 of file typedefs.h.

    +

    + + + + +
    + + + + +
    typedef std::deque<command_t> command_table
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 24 of file typedefs.h.

    +

    + + + + +
    + + + + +
    typedef std::vector<ExtMode> ExtModeList
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 26 of file typedefs.h.

    +

    + + + + +
    + + + + +
    typedef ExtModeList::iterator ExtModeListIter
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 27 of file typedefs.h.

    +

    + + + + +
    + + + + +
    typedef std::vector<std::string> servernamelist
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 25 of file typedefs.h.

    +

    + + + + +
    + + + + +
    typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 20 of file typedefs.h.

    +

    + + + + +
    + + + + +
    typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 23 of file typedefs.h.

    +


    Generated on Wed Dec 14 14:49:27 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 new file mode 100644 index 000000000..9f1b6aa92 Binary files /dev/null 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 new file mode 100644 index 000000000..096b0abd5 --- /dev/null +++ b/docs/module-doc/typedefs_8h__dep__incl.map @@ -0,0 +1,2 @@ +base referer +rect $modules_8cpp-source.html 140,7 239,33 diff --git a/docs/module-doc/typedefs_8h__dep__incl.md5 b/docs/module-doc/typedefs_8h__dep__incl.md5 new file mode 100644 index 000000000..0d707fc49 --- /dev/null +++ b/docs/module-doc/typedefs_8h__dep__incl.md5 @@ -0,0 +1 @@ +a0f44bb677c4bae9f3f18d396131af56 \ No newline at end of file diff --git a/docs/module-doc/typedefs_8h__incl.gif b/docs/module-doc/typedefs_8h__incl.gif new file mode 100644 index 000000000..25517e2e2 Binary files /dev/null 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 new file mode 100644 index 000000000..632ae99bc --- /dev/null +++ b/docs/module-doc/typedefs_8h__incl.map @@ -0,0 +1,6 @@ +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 $modules_8h-source.html 147,311 229,337 diff --git a/docs/module-doc/typedefs_8h__incl.md5 b/docs/module-doc/typedefs_8h__incl.md5 new file mode 100644 index 000000000..8fd87bc7b --- /dev/null +++ b/docs/module-doc/typedefs_8h__incl.md5 @@ -0,0 +1 @@ +1fe97cc4a91ebf3317aa83aa4ddd3f2d \ No newline at end of file diff --git a/docs/module-doc/userprocess_8h-source.html b/docs/module-doc/userprocess_8h-source.html new file mode 100644 index 000000000..982522ae5 --- /dev/null +++ b/docs/module-doc/userprocess_8h-source.html @@ -0,0 +1,27 @@ + + +InspIRCd: userprocess.h Source File + + + + + +

    userprocess.h

    Go to the documentation of this file.
    00001 #ifndef __USERPROCESS_H__
    +00002 #define __USERPROCESS_H__
    +00003 
    +00004 #include "users.h"
    +00005 
    +00006 void CheckDie();
    +00007 void LoadAllModules();
    +00008 void CheckRoot();
    +00009 void OpenLog(char** argv, int argc);
    +00010 bool DoBackgroundUserStuff(time_t TIME);
    +00011 void ProcessUser(userrec* cu);
    +00012 
    +00013 #endif
    +

    Generated on Wed Dec 14 14:49:17 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 new file mode 100644 index 000000000..1e60a7526 --- /dev/null +++ b/docs/module-doc/userprocess_8h.html @@ -0,0 +1,216 @@ + + +InspIRCd: userprocess.h File Reference + + + + + +

    userprocess.h File Reference

    #include "users.h"
    + +

    +Include dependency graph for userprocess.h:

    + + + + + + +

    +Go to the source code of this file. + + + + + + + + + + + + + + +

    Functions

    void CheckDie ()
    void LoadAllModules ()
    void CheckRoot ()
    void OpenLog (char **argv, int argc)
    bool DoBackgroundUserStuff (time_t TIME)
    void ProcessUser (userrec *cu)
    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + +
    void CheckDie  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + +
    void CheckRoot  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + +
    bool DoBackgroundUserStuff time_t  TIME  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + +
    void LoadAllModules  ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    void OpenLog char **  argv,
    int  argc
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + +
    void ProcessUser userrec cu  ) 
    +
    + + + + + +
    +   + + +

    +

    +


    Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
    + + diff --git a/docs/module-doc/userprocess_8h__incl.gif b/docs/module-doc/userprocess_8h__incl.gif new file mode 100644 index 000000000..594200be4 Binary files /dev/null and b/docs/module-doc/userprocess_8h__incl.gif differ diff --git a/docs/module-doc/userprocess_8h__incl.map b/docs/module-doc/userprocess_8h__incl.map new file mode 100644 index 000000000..597eed7b6 --- /dev/null +++ b/docs/module-doc/userprocess_8h__incl.map @@ -0,0 +1,4 @@ +base referer +rect $users_8h-source.html 163,108 227,135 +rect $channels_8h-source.html 283,108 368,135 +rect $connection_8h-source.html 276,58 375,84 diff --git a/docs/module-doc/userprocess_8h__incl.md5 b/docs/module-doc/userprocess_8h__incl.md5 new file mode 100644 index 000000000..3dc031b2d --- /dev/null +++ b/docs/module-doc/userprocess_8h__incl.md5 @@ -0,0 +1 @@ +bd342784e8f38bb1e1aa5077552ba0a3 \ No newline at end of file diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 85fe1cfcf..2ada48e14 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -39,285 +39,278 @@ 00030 #include "commands.h" 00031 #include "helperfuncs.h" 00032 -00033 extern std::stringstream config_f; -00034 extern char ServerName[MAXBUF]; +00033 extern ServerConfig* Config; +00034 extern time_t TIME; 00035 -00036 extern time_t TIME; -00037 -00038 userrec::userrec() -00039 { -00040 // the PROPER way to do it, AVOID bzero at *ALL* costs -00041 strcpy(nick,""); -00042 strcpy(ip,"127.0.0.1"); -00043 timeout = 0; -00044 strcpy(ident,""); -00045 strcpy(host,""); -00046 strcpy(dhost,""); -00047 strcpy(fullname,""); -00048 strcpy(modes,""); -00049 server = (char*)FindServerNamePtr(ServerName); -00050 strcpy(awaymsg,""); -00051 strcpy(oper,""); -00052 reset_due = TIME; -00053 lines_in = 0; -00054 fd = lastping = signon = idle_lastmsg = nping = registered = 0; -00055 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; -00056 haspassed = false; -00057 dns_done = false; -00058 recvq = ""; -00059 sendq = ""; -00060 for (int i = 0; i < MAXCHANS; i++) -00061 { -00062 this->chans[i].channel = NULL; -00063 this->chans[i].uc_modes = 0; -00064 } -00065 invites.clear(); -00066 } -00067 -00068 userrec::~userrec() -00069 { +00036 userrec::userrec() +00037 { +00038 // the PROPER way to do it, AVOID bzero at *ALL* costs +00039 strcpy(nick,""); +00040 strcpy(ip,"127.0.0.1"); +00041 timeout = 0; +00042 strcpy(ident,""); +00043 strcpy(host,""); +00044 strcpy(dhost,""); +00045 strcpy(fullname,""); +00046 strcpy(modes,""); +00047 server = (char*)FindServerNamePtr(Config->ServerName); +00048 strcpy(awaymsg,""); +00049 strcpy(oper,""); +00050 reset_due = TIME; +00051 lines_in = 0; +00052 fd = lastping = signon = idle_lastmsg = nping = registered = 0; +00053 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; +00054 haspassed = false; +00055 dns_done = false; +00056 recvq = ""; +00057 sendq = ""; +00058 chans.clear(); +00059 invites.clear(); +00060 } +00061 +00062 userrec::~userrec() +00063 { +00064 } +00065 +00066 void userrec::CloseSocket() +00067 { +00068 shutdown(this->fd,2); +00069 close(this->fd); 00070 } -00071 -00072 void userrec::CloseSocket() +00071 +00072 char* userrec::GetFullHost() 00073 { -00074 shutdown(this->fd,2); -00075 close(this->fd); -00076 } -00077 -00078 char* userrec::GetFullHost() -00079 { -00080 static char result[MAXBUF]; -00081 snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost); -00082 return result; -00083 } -00084 -00085 int userrec::ReadData(void* buffer, size_t size) -00086 { -00087 if (this->fd > -1) -00088 { -00089 log(DEBUG,"userrec::ReadData on fd %d",this->fd); -00090 return read(this->fd, buffer, size); -00091 } -00092 else return 0; -00093 } -00094 +00074 static char result[MAXBUF]; +00075 snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost); +00076 return result; +00077 } +00078 +00079 int userrec::ReadData(void* buffer, size_t size) +00080 { +00081 if (this->fd > -1) +00082 { +00083 return read(this->fd, buffer, size); +00084 } +00085 else return 0; +00086 } +00087 +00088 +00089 char* userrec::GetFullRealHost() +00090 { +00091 static char fresult[MAXBUF]; +00092 snprintf(fresult,MAXBUF,"%s!%s@%s",nick,ident,host); +00093 return fresult; +00094 } 00095 -00096 char* userrec::GetFullRealHost() +00096 bool userrec::IsInvited(char* channel) 00097 { -00098 static char fresult[MAXBUF]; -00099 snprintf(fresult,MAXBUF,"%s!%s@%s",nick,ident,host); -00100 return fresult; -00101 } -00102 -00103 bool userrec::IsInvited(char* channel) -00104 { -00105 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -00106 { -00107 if (i->channel) { -00108 if (!strcasecmp(i->channel,channel)) -00109 { -00110 return true; -00111 } -00112 } -00113 } -00114 return false; -00115 } -00116 -00117 InvitedList* userrec::GetInviteList() -00118 { -00119 return &invites; +00098 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00099 { +00100 if (i->channel) { +00101 if (!strcasecmp(i->channel,channel)) +00102 { +00103 return true; +00104 } +00105 } +00106 } +00107 return false; +00108 } +00109 +00110 InvitedList* userrec::GetInviteList() +00111 { +00112 return &invites; +00113 } +00114 +00115 void userrec::InviteTo(char* channel) +00116 { +00117 Invited i; +00118 strlcpy(i.channel,channel,CHANMAX); +00119 invites.push_back(i); 00120 } 00121 -00122 void userrec::InviteTo(char* channel) +00122 void userrec::RemoveInvite(char* channel) 00123 { -00124 Invited i; -00125 strlcpy(i.channel,channel,CHANMAX); -00126 invites.push_back(i); -00127 } -00128 -00129 void userrec::RemoveInvite(char* channel) -00130 { -00131 log(DEBUG,"Removing invites"); -00132 if (channel) -00133 { -00134 if (invites.size()) -00135 { -00136 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -00137 { -00138 if (i->channel) -00139 { -00140 if (!strcasecmp(i->channel,channel)) -00141 { -00142 invites.erase(i); -00143 return; -00144 } -00145 } -00146 } -00147 } -00148 } -00149 } -00150 -00151 bool userrec::HasPermission(char* command) -00152 { -00153 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; -00154 char* mycmd; -00155 char* savept; -00156 char* savept2; -00157 -00158 // users on u-lined servers can completely bypass -00159 // all permissions based checks. -00160 // -00161 // of course, if this is sent to a remote server and this -00162 // server is not ulined there, then that other server -00163 // silently drops the command. -00164 if (is_uline(this->server)) -00165 return true; -00166 -00167 // are they even an oper at all? -00168 if (strchr(this->modes,'o')) -00169 { -00170 for (int j =0; j < ConfValueEnum("type",&config_f); j++) -00171 { -00172 ConfValue("type","name",j,TypeName,&config_f); -00173 if (!strcmp(TypeName,this->oper)) -00174 { -00175 ConfValue("type","classes",j,Classes,&config_f); -00176 char* myclass = strtok_r(Classes," ",&savept); -00177 while (myclass) -00178 { -00179 for (int k =0; k < ConfValueEnum("class",&config_f); k++) -00180 { -00181 ConfValue("class","name",k,ClassName,&config_f); -00182 if (!strcmp(ClassName,myclass)) -00183 { -00184 ConfValue("class","commands",k,CommandList,&config_f); -00185 mycmd = strtok_r(CommandList," ",&savept2); -00186 while (mycmd) -00187 { -00188 if ((!strcasecmp(mycmd,command)) || (*mycmd == '*')) -00189 { -00190 return true; -00191 } -00192 mycmd = strtok_r(NULL," ",&savept2); -00193 } -00194 } -00195 } -00196 myclass = strtok_r(NULL," ",&savept); -00197 } -00198 } -00199 } -00200 } -00201 return false; -00202 } -00203 -00204 -00205 bool userrec::AddBuffer(std::string a) -00206 { -00207 std::string b = ""; -00208 for (unsigned int i = 0; i < a.length(); i++) -00209 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7)) -00210 b = b + a[i]; -00211 std::stringstream stream(recvq); -00212 stream << b; -00213 recvq = stream.str(); -00214 unsigned int i = 0; -00215 // count the size of the first line in the buffer. -00216 while (i < recvq.length()) -00217 { -00218 if (recvq[i++] == '\n') -00219 break; -00220 } -00221 if (recvq.length() > (unsigned)this->recvqmax) -00222 { -00223 this->SetWriteError("RecvQ exceeded"); -00224 WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax); -00225 } -00226 // return false if we've had more than 600 characters WITHOUT -00227 // a carriage return (this is BAD, drop the socket) -00228 return (i < 600); -00229 } -00230 -00231 bool userrec::BufferIsReady() -00232 { -00233 for (unsigned int i = 0; i < recvq.length(); i++) -00234 if (recvq[i] == '\n') -00235 return true; -00236 return false; -00237 } -00238 -00239 void userrec::ClearBuffer() -00240 { -00241 recvq = ""; -00242 } -00243 -00244 std::string userrec::GetBuffer() -00245 { -00246 if (recvq == "") -00247 return ""; -00248 char* line = (char*)recvq.c_str(); -00249 std::string ret = ""; -00250 while ((*line != '\n') && (strlen(line))) -00251 { -00252 ret = ret + *line; -00253 line++; -00254 } -00255 if ((*line == '\n') || (*line == '\r')) -00256 line++; -00257 recvq = line; -00258 return ret; -00259 } -00260 -00261 void userrec::AddWriteBuf(std::string data) -00262 { -00263 if (this->GetWriteError() != "") -00264 return; -00265 if (sendq.length() + data.length() > (unsigned)this->sendqmax) -00266 { -00267 WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax); -00268 this->SetWriteError("SendQ exceeded"); -00269 return; -00270 } -00271 std::stringstream stream; -00272 stream << sendq << data; -00273 sendq = stream.str(); -00274 } -00275 -00276 // send AS MUCH OF THE USERS SENDQ as we are able to (might not be all of it) -00277 void userrec::FlushWriteBuf() -00278 { -00279 if (sendq.length()) -00280 { -00281 char* tb = (char*)this->sendq.c_str(); -00282 int n_sent = write(this->fd,tb,this->sendq.length()); -00283 if (n_sent == -1) -00284 { -00285 this->SetWriteError(strerror(errno)); -00286 } -00287 else -00288 { -00289 // advance the queue -00290 tb += n_sent; -00291 this->sendq = tb; -00292 // update the user's stats counters -00293 this->bytes_out += n_sent; -00294 this->cmds_out++; -00295 } -00296 } -00297 } -00298 -00299 void userrec::SetWriteError(std::string error) -00300 { -00301 log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str()); -00302 // don't try to set the error twice, its already set take the first string. -00303 if (this->WriteError == "") -00304 this->WriteError = error; -00305 } -00306 -00307 std::string userrec::GetWriteError() -00308 { -00309 return this->WriteError; -00310 } -

    Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +00124 log(DEBUG,"Removing invites"); +00125 if (channel) +00126 { +00127 if (invites.size()) +00128 { +00129 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00130 { +00131 if (i->channel) +00132 { +00133 if (!strcasecmp(i->channel,channel)) +00134 { +00135 invites.erase(i); +00136 return; +00137 } +00138 } +00139 } +00140 } +00141 } +00142 } +00143 +00144 bool userrec::HasPermission(char* command) +00145 { +00146 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; +00147 char* mycmd; +00148 char* savept; +00149 char* savept2; +00150 +00151 // users on u-lined servers can completely bypass +00152 // all permissions based checks. +00153 // +00154 // of course, if this is sent to a remote server and this +00155 // server is not ulined there, then that other server +00156 // silently drops the command. +00157 if (is_uline(this->server)) +00158 return true; +00159 +00160 // are they even an oper at all? +00161 if (strchr(this->modes,'o')) +00162 { +00163 for (int j =0; j < Config->ConfValueEnum("type",&Config->config_f); j++) +00164 { +00165 Config->ConfValue("type","name",j,TypeName,&Config->config_f); +00166 if (!strcmp(TypeName,this->oper)) +00167 { +00168 Config->ConfValue("type","classes",j,Classes,&Config->config_f); +00169 char* myclass = strtok_r(Classes," ",&savept); +00170 while (myclass) +00171 { +00172 for (int k =0; k < Config->ConfValueEnum("class",&Config->config_f); k++) +00173 { +00174 Config->ConfValue("class","name",k,ClassName,&Config->config_f); +00175 if (!strcmp(ClassName,myclass)) +00176 { +00177 Config->ConfValue("class","commands",k,CommandList,&Config->config_f); +00178 mycmd = strtok_r(CommandList," ",&savept2); +00179 while (mycmd) +00180 { +00181 if ((!strcasecmp(mycmd,command)) || (*mycmd == '*')) +00182 { +00183 return true; +00184 } +00185 mycmd = strtok_r(NULL," ",&savept2); +00186 } +00187 } +00188 } +00189 myclass = strtok_r(NULL," ",&savept); +00190 } +00191 } +00192 } +00193 } +00194 return false; +00195 } +00196 +00197 +00198 bool userrec::AddBuffer(std::string a) +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)) +00203 b = b + a[i]; +00204 std::stringstream stream(recvq); +00205 stream << b; +00206 recvq = stream.str(); +00207 unsigned int i = 0; +00208 // count the size of the first line in the buffer. +00209 while (i < recvq.length()) +00210 { +00211 if (recvq[i++] == '\n') +00212 break; +00213 } +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); +00218 } +00219 // return false if we've had more than 600 characters WITHOUT +00220 // a carriage return (this is BAD, drop the socket) +00221 return (i < 600); +00222 } +00223 +00224 bool userrec::BufferIsReady() +00225 { +00226 for (unsigned int i = 0; i < recvq.length(); i++) +00227 if (recvq[i] == '\n') +00228 return true; +00229 return false; +00230 } +00231 +00232 void userrec::ClearBuffer() +00233 { +00234 recvq = ""; +00235 } +00236 +00237 std::string userrec::GetBuffer() +00238 { +00239 if (recvq == "") +00240 return ""; +00241 char* line = (char*)recvq.c_str(); +00242 std::string ret = ""; +00243 while ((*line != '\n') && (strlen(line))) +00244 { +00245 ret = ret + *line; +00246 line++; +00247 } +00248 if ((*line == '\n') || (*line == '\r')) +00249 line++; +00250 recvq = line; +00251 return ret; +00252 } +00253 +00254 void userrec::AddWriteBuf(std::string data) +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); +00261 this->SetWriteError("SendQ exceeded"); +00262 return; +00263 } +00264 std::stringstream stream; +00265 stream << sendq << data; +00266 sendq = stream.str(); +00267 } +00268 +00269 // send AS MUCH OF THE USERS SENDQ as we are able to (might not be all of it) +00270 void userrec::FlushWriteBuf() +00271 { +00272 if (sendq.length()) +00273 { +00274 char* tb = (char*)this->sendq.c_str(); +00275 int n_sent = write(this->fd,tb,this->sendq.length()); +00276 if (n_sent == -1) +00277 { +00278 this->SetWriteError(strerror(errno)); +00279 } +00280 else +00281 { +00282 // advance the queue +00283 tb += n_sent; +00284 this->sendq = tb; +00285 // update the user's stats counters +00286 this->bytes_out += n_sent; +00287 this->cmds_out++; +00288 } +00289 } +00290 } +00291 +00292 void userrec::SetWriteError(std::string error) +00293 { +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; +00298 } +00299 +00300 std::string userrec::GetWriteError() +00301 { +00302 return this->WriteError; +00303 } +

    Generated on Wed Dec 14 14:49:17 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 03f0c51bf..772f374d9 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -30,44 +30,19 @@ Include dependency graph for users.cpp:

    Go to the source code of this file. - - - +

    Variables

    std::stringstream config_f
    char ServerName [MAXBUF]
    ServerConfigConfig
    time_t TIME

    Variable Documentation

    -

    - - - - -
    - - - - -
    std::stringstream config_f
    -
    - - - - - -
    -   - - -

    -

    -

    +

    @@ -107,7 +82,7 @@ Include dependency graph for users.cpp:

    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index 170ef7e1a..d3dec62be 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -102,7 +102,7 @@ 00139 00147 char modes[54]; 00148 -00149 ucrec chans[MAXCHANS]; +00149 std::vector<ucrec> chans; 00150 00153 char* server; 00154 @@ -192,7 +192,7 @@ 00342 }; 00343 00344 #endif -
    Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:17 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 d8b0e6494..e64cb27de 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -23,13 +23,15 @@ Include dependency graph for users.h:

    This graph shows which files directly or indirectly include this file:

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

    @@ -275,7 +277,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.

    - +
    char ServerName[MAXBUF] ServerConfig* Config
    -


    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +
    Generated on Wed Dec 14 14:49:28 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 aa0164236..de6531f7e 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 58ad59725..8476fde3d 100644 --- a/docs/module-doc/users_8h__dep__incl.map +++ b/docs/module-doc/users_8h__dep__incl.map @@ -1,8 +1,10 @@ base referer -rect $channels_8cpp-source.html 269,83 368,109 -rect $modules_8cpp-source.html 269,159 368,185 -rect $users_8cpp-source.html 279,285 359,312 -rect $commands_8h-source.html 121,260 220,287 -rect $message_8h-source.html 128,57 213,84 -rect $mode_8h-source.html 137,108 204,135 -rect $xline_8h-source.html 140,159 201,185 +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 diff --git a/docs/module-doc/users_8h__dep__incl.md5 b/docs/module-doc/users_8h__dep__incl.md5 index 657a6ee6c..34eb02fef 100644 --- a/docs/module-doc/users_8h__dep__incl.md5 +++ b/docs/module-doc/users_8h__dep__incl.md5 @@ -1 +1 @@ -1df71afa1aaf320bbe4ab884cb21df5d \ No newline at end of file +e4bee193bd70218d154c4fd5eeba5fa4 \ 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 f60c2a20b..19224f400 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -37,94 +37,99 @@ 00028 #include "users.h" 00029 #include "channels.h" 00030 -00031 -00034 class XLine : public classbase -00035 { -00036 public: -00037 -00040 time_t set_time; -00041 -00044 long duration; -00045 -00048 char source[256]; -00049 -00052 char reason[MAXBUF]; -00053 -00056 long n_matches; -00057 -00058 }; -00059 -00062 class KLine : public XLine -00063 { -00064 public: -00068 char hostmask[200]; -00069 }; -00070 -00073 class GLine : public XLine -00074 { -00075 public: -00079 char hostmask[200]; -00080 }; -00081 -00082 class ELine : public XLine -00083 { -00084 public: -00088 char hostmask[200]; -00089 }; -00090 -00093 class ZLine : public XLine -00094 { -00095 public: -00099 char ipaddr[40]; -00103 bool is_global; -00104 }; -00105 -00108 class QLine : public XLine -00109 { -00110 public: -00114 char nick[64]; -00118 bool is_global; -00119 }; -00120 -00121 void read_xline_defaults(); -00122 -00123 void add_gline(long duration, const char* source, const char* reason, const char* hostmask); -00124 void add_qline(long duration, const char* source, const char* reason, const char* nickname); -00125 void add_zline(long duration, const char* source, const char* reason, const char* ipaddr); -00126 void add_kline(long duration, const char* source, const char* reason, const char* hostmask); -00127 void add_eline(long duration, const char* source, const char* reason, const char* hostmask); -00128 -00129 bool del_gline(const char* hostmask); -00130 bool del_qline(const char* nickname); -00131 bool del_zline(const char* ipaddr); -00132 bool del_kline(const char* hostmask); -00133 bool del_eline(const char* hostmask); -00134 -00135 char* matches_qline(const char* nick); -00136 char* matches_gline(const char* host); -00137 char* matches_zline(const char* ipaddr); -00138 char* matches_kline(const char* host); -00139 char* matches_exception(const char* host); -00140 -00141 void expire_lines(); -00142 void apply_lines(); -00143 -00144 void stats_k(userrec* user); -00145 void stats_g(userrec* user); -00146 void stats_q(userrec* user); -00147 void stats_z(userrec* user); -00148 void stats_e(userrec* user); -00149 -00150 void gline_set_creation_time(char* host, time_t create_time); -00151 void qline_set_creation_time(char* nick, time_t create_time); -00152 void zline_set_creation_time(char* ip, time_t create_time); -00153 void eline_set_creation_time(char* host, time_t create_time); -00154 -00155 bool zline_make_global(const char* ipaddr); -00156 bool qline_make_global(const char* nickname); -00157 -00158 #endif -

    Generated on Mon Dec 12 18:30:58 2005 for InspIRCd by  +00031 const int APPLY_GLINES = 1; +00032 const int APPLY_KLINES = 2; +00033 const int APPLY_QLINES = 4; +00034 const int APPLY_ZLINES = 8; +00035 const int APPLY_ALL = APPLY_GLINES | APPLY_KLINES | APPLY_QLINES | APPLY_ZLINES; +00036 +00039 class XLine : public classbase +00040 { +00041 public: +00042 +00045 time_t set_time; +00046 +00049 long duration; +00050 +00053 char source[256]; +00054 +00057 char reason[MAXBUF]; +00058 +00061 long n_matches; +00062 +00063 }; +00064 +00067 class KLine : public XLine +00068 { +00069 public: +00073 char hostmask[200]; +00074 }; +00075 +00078 class GLine : public XLine +00079 { +00080 public: +00084 char hostmask[200]; +00085 }; +00086 +00087 class ELine : public XLine +00088 { +00089 public: +00093 char hostmask[200]; +00094 }; +00095 +00098 class ZLine : public XLine +00099 { +00100 public: +00104 char ipaddr[40]; +00108 bool is_global; +00109 }; +00110 +00113 class QLine : public XLine +00114 { +00115 public: +00119 char nick[64]; +00123 bool is_global; +00124 }; +00125 +00126 void read_xline_defaults(); +00127 +00128 void add_gline(long duration, const char* source, const char* reason, const char* hostmask); +00129 void add_qline(long duration, const char* source, const char* reason, const char* nickname); +00130 void add_zline(long duration, const char* source, const char* reason, const char* ipaddr); +00131 void add_kline(long duration, const char* source, const char* reason, const char* hostmask); +00132 void add_eline(long duration, const char* source, const char* reason, const char* hostmask); +00133 +00134 bool del_gline(const char* hostmask); +00135 bool del_qline(const char* nickname); +00136 bool del_zline(const char* ipaddr); +00137 bool del_kline(const char* hostmask); +00138 bool del_eline(const char* hostmask); +00139 +00140 char* matches_qline(const char* nick); +00141 char* matches_gline(const char* host); +00142 char* matches_zline(const char* ipaddr); +00143 char* matches_kline(const char* host); +00144 char* matches_exception(const char* host); +00145 +00146 void expire_lines(); +00147 void apply_lines(const int What); +00148 +00149 void stats_k(userrec* user); +00150 void stats_g(userrec* user); +00151 void stats_q(userrec* user); +00152 void stats_z(userrec* user); +00153 void stats_e(userrec* user); +00154 +00155 void gline_set_creation_time(char* host, time_t create_time); +00156 void qline_set_creation_time(char* nick, time_t create_time); +00157 void zline_set_creation_time(char* ip, time_t create_time); +00158 void eline_set_creation_time(char* host, time_t create_time); +00159 +00160 bool zline_make_global(const char* ipaddr); +00161 bool qline_make_global(const char* nickname); +00162 +00163 #endif +

    Generated on Wed Dec 14 14:49:17 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 90b264090..cc11181c6 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -87,7 +87,7 @@ This graph shows which files directly or indirectly include this file:

    void expire_lines () -void apply_lines () +void apply_lines (const int What) void stats_k (userrec *user) @@ -111,6 +111,17 @@ This graph shows which files directly or indirectly include this file:

    bool qline_make_global (const char *nickname) +

    Variables

    +const int APPLY_GLINES = 1 + +const int APPLY_KLINES = 2 + +const int APPLY_QLINES = 4 + +const int APPLY_ZLINES = 8 + +const int APPLY_ALL = APPLY_GLINES | APPLY_KLINES | APPLY_QLINES | APPLY_ZLINES +

    Function Documentation

    @@ -161,7 +172,7 @@ This graph shows which files directly or indirectly include this file:

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

    @@ -212,7 +223,7 @@ Referenced by Server::AddEL

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

    @@ -263,7 +274,7 @@ Referenced by Server::AddGL

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

    @@ -314,7 +325,7 @@ Referenced by Server::AddKL

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

    @@ -365,10 +376,10 @@ Referenced by Server::AddQL

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

    +

    - + + @@ -422,7 +434,7 @@ Referenced by Server::AddZL

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

    @@ -376,7 +387,8 @@ Referenced by Server::AddZL
    void apply_lines const int  What  ) 

    @@ -452,7 +464,7 @@ Referenced by Server::DelEL

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

    @@ -482,7 +494,7 @@ Referenced by Server::DelGL

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

    @@ -512,7 +524,7 @@ Referenced by Server::DelKL

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

    @@ -542,7 +554,7 @@ Referenced by Server::DelQL

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

    @@ -1083,7 +1095,133 @@ Referenced by Server::DelZL -


    Generated on Mon Dec 12 18:31:01 2005 for InspIRCd by  +

    Variable Documentation

    +

    + + + + +
    + + + + +
    const int APPLY_ALL = APPLY_GLINES | APPLY_KLINES | APPLY_QLINES | APPLY_ZLINES
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 35 of file xline.h.

    +

    + + + + +
    + + + + +
    const int APPLY_GLINES = 1
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 31 of file xline.h.

    +

    + + + + +
    + + + + +
    const int APPLY_KLINES = 2
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 32 of file xline.h.

    +

    + + + + +
    + + + + +
    const int APPLY_QLINES = 4
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 33 of file xline.h.

    +

    + + + + +
    + + + + +
    const int APPLY_ZLINES = 8
    +
    + + + + + +
    +   + + +

    + +

    +Definition at line 34 of file xline.h.

    +


    Generated on Wed Dec 14 14:49:28 2005 for InspIRCd by  doxygen 1.4.4-20050815
    -- cgit v1.2.3