From cd9f9a8add02597a2998ba74b803ed3fbf81314c Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 27 Nov 2005 01:44:46 +0000 Subject: Added new documentation git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1966 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/annotated.html | 22 +- docs/module-doc/base_8h-source.html | 168 +- docs/module-doc/base_8h.html | 118 +- docs/module-doc/base_8h__dep__incl.gif | Bin 2311 -> 8561 bytes docs/module-doc/base_8h__dep__incl.map | 13 + docs/module-doc/base_8h__dep__incl.md5 | 1 + docs/module-doc/base_8h__incl.gif | Bin 1809 -> 1795 bytes docs/module-doc/base_8h__incl.map | 1 + docs/module-doc/base_8h__incl.md5 | 1 + docs/module-doc/channels_8cpp-source.html | 455 ++- docs/module-doc/channels_8cpp.html | 679 ++--- docs/module-doc/channels_8cpp__incl.gif | Bin 37780 -> 23588 bytes docs/module-doc/channels_8cpp__incl.map | 7 + docs/module-doc/channels_8cpp__incl.md5 | 1 + docs/module-doc/channels_8h-source.html | 281 +- docs/module-doc/channels_8h.html | 235 +- docs/module-doc/channels_8h__dep__incl.gif | Bin 5287 -> 5188 bytes docs/module-doc/channels_8h__dep__incl.map | 9 + docs/module-doc/channels_8h__dep__incl.md5 | 1 + docs/module-doc/channels_8h__incl.gif | Bin 3121 -> 2912 bytes docs/module-doc/channels_8h__incl.map | 2 + docs/module-doc/channels_8h__incl.md5 | 1 + docs/module-doc/classAdmin-members.html | 27 +- docs/module-doc/classAdmin.html | 101 +- docs/module-doc/classAdmin__coll__graph.gif | Bin 2019 -> 2022 bytes docs/module-doc/classAdmin__coll__graph.map | 2 + docs/module-doc/classAdmin__coll__graph.md5 | 1 + docs/module-doc/classAdmin__inherit__graph.gif | Bin 776 -> 766 bytes docs/module-doc/classAdmin__inherit__graph.map | 2 + docs/module-doc/classAdmin__inherit__graph.md5 | 1 + docs/module-doc/classBanItem-members.html | 29 +- docs/module-doc/classBanItem.html | 25 +- docs/module-doc/classBanItem__coll__graph.gif | Bin 2874 -> 2871 bytes docs/module-doc/classBanItem__coll__graph.map | 3 + docs/module-doc/classBanItem__coll__graph.md5 | 1 + docs/module-doc/classBanItem__inherit__graph.gif | Bin 1133 -> 1125 bytes docs/module-doc/classBanItem__inherit__graph.map | 3 + docs/module-doc/classBanItem__inherit__graph.md5 | 1 + docs/module-doc/classBoolSet-members.html | 35 +- docs/module-doc/classBoolSet.html | 176 +- docs/module-doc/classBoolSet__coll__graph.gif | Bin 818 -> 815 bytes docs/module-doc/classBoolSet__coll__graph.map | 1 + docs/module-doc/classBoolSet__coll__graph.md5 | 1 + docs/module-doc/classConfigReader-members.html | 49 +- docs/module-doc/classConfigReader.html | 632 +++-- docs/module-doc/classConfigReader__coll__graph.gif | Bin 3224 -> 3200 bytes docs/module-doc/classConfigReader__coll__graph.map | 2 + docs/module-doc/classConfigReader__coll__graph.md5 | 1 + .../classConfigReader__inherit__graph.gif | Bin 949 -> 950 bytes .../classConfigReader__inherit__graph.map | 2 + .../classConfigReader__inherit__graph.md5 | 1 + docs/module-doc/classConnectClass-members.html | 39 +- docs/module-doc/classConnectClass.html | 179 +- docs/module-doc/classConnectClass__coll__graph.gif | Bin 3998 -> 4037 bytes docs/module-doc/classConnectClass__coll__graph.map | 2 + docs/module-doc/classConnectClass__coll__graph.md5 | 1 + .../classConnectClass__inherit__graph.gif | Bin 944 -> 941 bytes .../classConnectClass__inherit__graph.map | 2 + .../classConnectClass__inherit__graph.md5 | 1 + docs/module-doc/classDNS-members.html | 67 +- docs/module-doc/classDNS.html | 390 ++- docs/module-doc/classDNS__coll__graph.gif | Bin 2064 -> 1691 bytes docs/module-doc/classDNS__coll__graph.map | 1 + docs/module-doc/classDNS__coll__graph.md5 | 1 + docs/module-doc/classELine-members.html | 31 +- docs/module-doc/classELine.html | 47 +- docs/module-doc/classELine__coll__graph.gif | Bin 3920 -> 3915 bytes docs/module-doc/classELine__coll__graph.map | 3 + docs/module-doc/classELine__coll__graph.md5 | 1 + docs/module-doc/classELine__inherit__graph.gif | Bin 1036 -> 1022 bytes docs/module-doc/classELine__inherit__graph.map | 3 + docs/module-doc/classELine__inherit__graph.md5 | 1 + docs/module-doc/classEvent-members.html | 36 +- docs/module-doc/classEvent.html | 227 +- docs/module-doc/classEvent__coll__graph.gif | Bin 3377 -> 3362 bytes docs/module-doc/classEvent__coll__graph.map | 4 + docs/module-doc/classEvent__coll__graph.md5 | 1 + docs/module-doc/classEvent__inherit__graph.gif | Bin 1306 -> 1310 bytes docs/module-doc/classEvent__inherit__graph.map | 3 + docs/module-doc/classEvent__inherit__graph.md5 | 1 + docs/module-doc/classExemptItem-members.html | 29 +- docs/module-doc/classExemptItem.html | 25 +- docs/module-doc/classExemptItem__coll__graph.gif | Bin 2939 -> 2936 bytes docs/module-doc/classExemptItem__coll__graph.map | 3 + docs/module-doc/classExemptItem__coll__graph.md5 | 1 + .../module-doc/classExemptItem__inherit__graph.gif | Bin 1217 -> 1211 bytes .../module-doc/classExemptItem__inherit__graph.map | 3 + .../module-doc/classExemptItem__inherit__graph.md5 | 1 + docs/module-doc/classExtMode-members.html | 33 +- docs/module-doc/classExtMode.html | 157 +- docs/module-doc/classExtMode__coll__graph.gif | Bin 3625 -> 3634 bytes docs/module-doc/classExtMode__coll__graph.map | 2 + docs/module-doc/classExtMode__coll__graph.md5 | 1 + docs/module-doc/classExtMode__inherit__graph.gif | Bin 830 -> 826 bytes docs/module-doc/classExtMode__inherit__graph.map | 2 + docs/module-doc/classExtMode__inherit__graph.md5 | 1 + docs/module-doc/classExtensible-members.html | 27 +- docs/module-doc/classExtensible.html | 111 +- docs/module-doc/classExtensible__coll__graph.gif | Bin 2336 -> 2331 bytes docs/module-doc/classExtensible__coll__graph.map | 2 + docs/module-doc/classExtensible__coll__graph.md5 | 1 + .../module-doc/classExtensible__inherit__graph.gif | Bin 3140 -> 2359 bytes .../module-doc/classExtensible__inherit__graph.map | 6 + .../module-doc/classExtensible__inherit__graph.md5 | 1 + docs/module-doc/classFileReader-members.html | 35 +- docs/module-doc/classFileReader.html | 249 +- docs/module-doc/classFileReader__coll__graph.gif | Bin 1825 -> 1817 bytes docs/module-doc/classFileReader__coll__graph.map | 2 + docs/module-doc/classFileReader__coll__graph.md5 | 1 + .../module-doc/classFileReader__inherit__graph.gif | Bin 865 -> 855 bytes .../module-doc/classFileReader__inherit__graph.map | 2 + .../module-doc/classFileReader__inherit__graph.md5 | 1 + docs/module-doc/classGLine-members.html | 31 +- docs/module-doc/classGLine.html | 40 +- docs/module-doc/classGLine__coll__graph.gif | Bin 3945 -> 3945 bytes docs/module-doc/classGLine__coll__graph.map | 3 + docs/module-doc/classGLine__coll__graph.md5 | 1 + docs/module-doc/classGLine__inherit__graph.gif | Bin 1055 -> 1047 bytes docs/module-doc/classGLine__inherit__graph.map | 3 + docs/module-doc/classGLine__inherit__graph.md5 | 1 + docs/module-doc/classHostItem-members.html | 29 +- docs/module-doc/classHostItem.html | 100 +- docs/module-doc/classHostItem__coll__graph.gif | Bin 2476 -> 2469 bytes docs/module-doc/classHostItem__coll__graph.map | 2 + docs/module-doc/classHostItem__coll__graph.md5 | 1 + docs/module-doc/classHostItem__inherit__graph.gif | Bin 2023 -> 2030 bytes docs/module-doc/classHostItem__inherit__graph.map | 5 + docs/module-doc/classHostItem__inherit__graph.md5 | 1 + docs/module-doc/classInspSocket-members.html | 43 + docs/module-doc/classInspSocket.html | 1212 ++++++++ docs/module-doc/classInspSocket__coll__graph.gif | Bin 0 -> 6744 bytes docs/module-doc/classInspSocket__coll__graph.map | 1 + docs/module-doc/classInspSocket__coll__graph.md5 | 1 + docs/module-doc/classInviteItem-members.html | 29 +- docs/module-doc/classInviteItem.html | 25 +- docs/module-doc/classInviteItem__coll__graph.gif | Bin 2893 -> 2893 bytes docs/module-doc/classInviteItem__coll__graph.map | 3 + docs/module-doc/classInviteItem__coll__graph.md5 | 1 + .../module-doc/classInviteItem__inherit__graph.gif | Bin 1147 -> 1138 bytes .../module-doc/classInviteItem__inherit__graph.map | 3 + .../module-doc/classInviteItem__inherit__graph.md5 | 1 + docs/module-doc/classInvited-members.html | 21 +- docs/module-doc/classInvited.html | 36 +- docs/module-doc/classInvited__coll__graph.gif | Bin 1757 -> 1752 bytes docs/module-doc/classInvited__coll__graph.map | 2 + docs/module-doc/classInvited__coll__graph.md5 | 1 + docs/module-doc/classInvited__inherit__graph.gif | Bin 788 -> 775 bytes docs/module-doc/classInvited__inherit__graph.map | 2 + docs/module-doc/classInvited__inherit__graph.md5 | 1 + docs/module-doc/classKLine-members.html | 31 +- docs/module-doc/classKLine.html | 40 +- docs/module-doc/classKLine__coll__graph.gif | Bin 3944 -> 3938 bytes docs/module-doc/classKLine__coll__graph.map | 3 + docs/module-doc/classKLine__coll__graph.md5 | 1 + docs/module-doc/classKLine__inherit__graph.gif | Bin 1055 -> 1049 bytes docs/module-doc/classKLine__inherit__graph.map | 3 + docs/module-doc/classKLine__inherit__graph.md5 | 1 + docs/module-doc/classModeParameter-members.html | 25 +- docs/module-doc/classModeParameter.html | 62 +- .../module-doc/classModeParameter__coll__graph.gif | Bin 2319 -> 2309 bytes .../module-doc/classModeParameter__coll__graph.map | 2 + .../module-doc/classModeParameter__coll__graph.md5 | 1 + .../classModeParameter__inherit__graph.gif | Bin 1004 -> 1000 bytes .../classModeParameter__inherit__graph.map | 2 + .../classModeParameter__inherit__graph.md5 | 1 + docs/module-doc/classModule-members.html | 131 +- docs/module-doc/classModule.html | 1618 ++++++----- docs/module-doc/classModuleFactory-members.html | 25 +- docs/module-doc/classModuleFactory.html | 72 +- .../module-doc/classModuleFactory__coll__graph.gif | Bin 1463 -> 1439 bytes .../module-doc/classModuleFactory__coll__graph.map | 2 + .../module-doc/classModuleFactory__coll__graph.md5 | 1 + .../classModuleFactory__inherit__graph.gif | Bin 977 -> 980 bytes .../classModuleFactory__inherit__graph.map | 2 + .../classModuleFactory__inherit__graph.md5 | 1 + docs/module-doc/classModuleMessage-members.html | 22 +- docs/module-doc/classModuleMessage.html | 79 +- .../module-doc/classModuleMessage__coll__graph.gif | Bin 1525 -> 1512 bytes .../module-doc/classModuleMessage__coll__graph.map | 2 + .../module-doc/classModuleMessage__coll__graph.md5 | 1 + .../classModuleMessage__inherit__graph.gif | Bin 1662 -> 1660 bytes .../classModuleMessage__inherit__graph.map | 4 + .../classModuleMessage__inherit__graph.md5 | 1 + docs/module-doc/classModule__coll__graph.gif | Bin 1231 -> 1226 bytes docs/module-doc/classModule__coll__graph.map | 2 + docs/module-doc/classModule__coll__graph.md5 | 1 + docs/module-doc/classModule__inherit__graph.gif | Bin 805 -> 795 bytes docs/module-doc/classModule__inherit__graph.map | 2 + docs/module-doc/classModule__inherit__graph.md5 | 1 + docs/module-doc/classQLine-members.html | 33 +- docs/module-doc/classQLine.html | 53 +- docs/module-doc/classQLine__coll__graph.gif | Bin 4154 -> 4165 bytes docs/module-doc/classQLine__coll__graph.map | 3 + docs/module-doc/classQLine__coll__graph.md5 | 1 + docs/module-doc/classQLine__inherit__graph.gif | Bin 1071 -> 1062 bytes docs/module-doc/classQLine__inherit__graph.map | 3 + docs/module-doc/classQLine__inherit__graph.md5 | 1 + docs/module-doc/classRequest-members.html | 36 +- docs/module-doc/classRequest.html | 233 +- docs/module-doc/classRequest__coll__graph.gif | Bin 3142 -> 3124 bytes docs/module-doc/classRequest__coll__graph.map | 4 + docs/module-doc/classRequest__coll__graph.md5 | 1 + docs/module-doc/classRequest__inherit__graph.gif | Bin 1371 -> 1372 bytes docs/module-doc/classRequest__inherit__graph.map | 3 + docs/module-doc/classRequest__inherit__graph.md5 | 1 + docs/module-doc/classServer-members.html | 136 +- docs/module-doc/classServer.html | 2484 ++++++++--------- docs/module-doc/classServer__coll__graph.gif | Bin 1212 -> 1208 bytes docs/module-doc/classServer__coll__graph.map | 2 + docs/module-doc/classServer__coll__graph.md5 | 1 + docs/module-doc/classServer__inherit__graph.gif | Bin 788 -> 783 bytes docs/module-doc/classServer__inherit__graph.map | 2 + docs/module-doc/classServer__inherit__graph.md5 | 1 + docs/module-doc/classVersion-members.html | 31 +- docs/module-doc/classVersion.html | 129 +- docs/module-doc/classVersion__coll__graph.gif | Bin 2465 -> 2448 bytes docs/module-doc/classVersion__coll__graph.map | 2 + docs/module-doc/classVersion__coll__graph.md5 | 1 + docs/module-doc/classVersion__inherit__graph.gif | Bin 796 -> 785 bytes docs/module-doc/classVersion__inherit__graph.map | 2 + docs/module-doc/classVersion__inherit__graph.md5 | 1 + docs/module-doc/classWhoWasUser-members.html | 27 +- docs/module-doc/classWhoWasUser.html | 96 +- docs/module-doc/classWhoWasUser__coll__graph.gif | Bin 2168 -> 2150 bytes docs/module-doc/classWhoWasUser__coll__graph.map | 1 + docs/module-doc/classWhoWasUser__coll__graph.md5 | 1 + docs/module-doc/classXLine-members.html | 29 +- docs/module-doc/classXLine.html | 98 +- docs/module-doc/classXLine__coll__graph.gif | Bin 3094 -> 3056 bytes docs/module-doc/classXLine__coll__graph.map | 2 + docs/module-doc/classXLine__coll__graph.md5 | 1 + docs/module-doc/classXLine__inherit__graph.gif | Bin 2317 -> 2315 bytes docs/module-doc/classXLine__inherit__graph.map | 7 + docs/module-doc/classXLine__inherit__graph.md5 | 1 + docs/module-doc/classZLine-members.html | 33 +- docs/module-doc/classZLine.html | 53 +- docs/module-doc/classZLine__coll__graph.gif | Bin 4183 -> 4184 bytes docs/module-doc/classZLine__coll__graph.map | 3 + docs/module-doc/classZLine__coll__graph.md5 | 1 + docs/module-doc/classZLine__inherit__graph.gif | Bin 1046 -> 1037 bytes docs/module-doc/classZLine__inherit__graph.map | 3 + docs/module-doc/classZLine__inherit__graph.md5 | 1 + docs/module-doc/classchanrec-members.html | 67 +- docs/module-doc/classchanrec.html | 638 +++-- docs/module-doc/classchanrec__coll__graph.gif | Bin 7229 -> 7302 bytes docs/module-doc/classchanrec__coll__graph.map | 3 + docs/module-doc/classchanrec__coll__graph.md5 | 1 + docs/module-doc/classchanrec__inherit__graph.gif | Bin 1153 -> 1148 bytes docs/module-doc/classchanrec__inherit__graph.map | 3 + docs/module-doc/classchanrec__inherit__graph.md5 | 1 + docs/module-doc/classclassbase-members.html | 19 +- docs/module-doc/classclassbase.html | 102 +- docs/module-doc/classclassbase__coll__graph.gif | Bin 886 -> 875 bytes docs/module-doc/classclassbase__coll__graph.map | 1 + docs/module-doc/classclassbase__coll__graph.md5 | 1 + docs/module-doc/classclassbase__inherit__graph.gif | Bin 7828 -> 8599 bytes docs/module-doc/classclassbase__inherit__graph.map | 17 + docs/module-doc/classclassbase__inherit__graph.md5 | 1 + docs/module-doc/classcommand__t-members.html | 39 +- docs/module-doc/classcommand__t.html | 118 +- docs/module-doc/classcommand__t__coll__graph.gif | Bin 5223 -> 5231 bytes docs/module-doc/classcommand__t__coll__graph.map | 3 + docs/module-doc/classcommand__t__coll__graph.md5 | 1 + .../module-doc/classcommand__t__inherit__graph.gif | Bin 1225 -> 1222 bytes .../module-doc/classcommand__t__inherit__graph.map | 3 + .../module-doc/classcommand__t__inherit__graph.md5 | 1 + docs/module-doc/classconnection-members.html | 55 +- docs/module-doc/classconnection.html | 296 +- docs/module-doc/classconnection__coll__graph.gif | Bin 6624 -> 6625 bytes docs/module-doc/classconnection__coll__graph.map | 3 + docs/module-doc/classconnection__coll__graph.md5 | 1 + .../module-doc/classconnection__inherit__graph.gif | Bin 1917 -> 1467 bytes .../module-doc/classconnection__inherit__graph.map | 4 + .../module-doc/classconnection__inherit__graph.md5 | 1 + docs/module-doc/classes.html | 56 +- docs/module-doc/classstd_1_1char__traits.html | 19 +- .../classstd_1_1char__traits__inherit__graph.gif | Bin 1074 -> 1056 bytes .../classstd_1_1char__traits__inherit__graph.map | 2 + .../classstd_1_1char__traits__inherit__graph.md5 | 1 + docs/module-doc/classucrec-members.html | 27 +- docs/module-doc/classucrec.html | 97 +- docs/module-doc/classucrec__coll__graph.gif | Bin 3342 -> 3333 bytes docs/module-doc/classucrec__coll__graph.map | 3 + docs/module-doc/classucrec__coll__graph.md5 | 1 + docs/module-doc/classucrec__inherit__graph.gif | Bin 739 -> 726 bytes docs/module-doc/classucrec__inherit__graph.map | 2 + docs/module-doc/classucrec__inherit__graph.md5 | 1 + docs/module-doc/classuserrec-members.html | 139 +- docs/module-doc/classuserrec.html | 1244 ++++----- docs/module-doc/classuserrec__coll__graph.gif | Bin 13310 -> 13514 bytes docs/module-doc/classuserrec__coll__graph.map | 3 + docs/module-doc/classuserrec__coll__graph.md5 | 1 + docs/module-doc/classuserrec__inherit__graph.gif | Bin 1461 -> 1449 bytes docs/module-doc/classuserrec__inherit__graph.map | 4 + docs/module-doc/classuserrec__inherit__graph.md5 | 1 + docs/module-doc/commands_8h-source.html | 217 +- docs/module-doc/commands_8h.html | 2894 +++++--------------- docs/module-doc/commands_8h__dep__incl.gif | Bin 915 -> 808 bytes docs/module-doc/commands_8h__dep__incl.map | 2 + docs/module-doc/commands_8h__dep__incl.md5 | 1 + docs/module-doc/commands_8h__incl.gif | Bin 4507 -> 7547 bytes docs/module-doc/commands_8h__incl.map | 4 + docs/module-doc/commands_8h__incl.md5 | 1 + docs/module-doc/connection_8h-source.html | 261 +- docs/module-doc/connection_8h.html | 243 +- docs/module-doc/connection_8h__dep__incl.gif | Bin 3144 -> 4540 bytes docs/module-doc/connection_8h__dep__incl.map | 9 + docs/module-doc/connection_8h__dep__incl.md5 | 1 + docs/module-doc/connection_8h__incl.gif | Bin 7713 -> 8137 bytes docs/module-doc/connection_8h__incl.map | 2 + docs/module-doc/connection_8h__incl.md5 | 1 + docs/module-doc/ctables_8h-source.html | 85 +- docs/module-doc/ctables_8h.html | 39 +- docs/module-doc/ctables_8h__dep__incl.gif | Bin 2061 -> 1704 bytes docs/module-doc/ctables_8h__dep__incl.map | 4 + docs/module-doc/ctables_8h__dep__incl.md5 | 1 + docs/module-doc/ctables_8h__incl.gif | Bin 2730 -> 2535 bytes docs/module-doc/ctables_8h__incl.map | 2 + docs/module-doc/ctables_8h__incl.md5 | 1 + docs/module-doc/dir_000000.html | 27 + docs/module-doc/dir_000000_dep.gif | Bin 0 -> 826 bytes docs/module-doc/dir_000000_dep.map | 3 + docs/module-doc/dir_000001.html | 28 + docs/module-doc/dir_000001_dep.gif | Bin 0 -> 1434 bytes docs/module-doc/dir_000001_dep.map | 4 + docs/module-doc/dir_000002.html | 28 + docs/module-doc/dir_000002_dep.gif | Bin 0 -> 1461 bytes docs/module-doc/dir_000002_dep.map | 4 + docs/module-doc/dir_000003.html | 33 + docs/module-doc/dir_000003_dep.gif | Bin 0 -> 2115 bytes docs/module-doc/dir_000003_dep.map | 7 + docs/module-doc/dir_000004.html | 51 + docs/module-doc/dir_000004_dep.gif | Bin 0 -> 1024 bytes docs/module-doc/dir_000004_dep.map | 3 + docs/module-doc/dir_000005.html | 36 + docs/module-doc/dir_000005_000004.html | 14 + docs/module-doc/dir_000005_dep.gif | Bin 0 -> 1343 bytes docs/module-doc/dir_000005_dep.map | 6 + docs/module-doc/dirs.html | 28 + docs/module-doc/dns_8h-source.html | 139 +- docs/module-doc/dns_8h.html | 25 +- docs/module-doc/dns_8h__incl.gif | Bin 1991 -> 1873 bytes docs/module-doc/dns_8h__incl.map | 1 + docs/module-doc/dns_8h__incl.md5 | 1 + docs/module-doc/doxygen.png | Bin 2351 -> 1280 bytes docs/module-doc/files.html | 15 +- docs/module-doc/functions.html | 475 +--- docs/module-doc/functions_0x62.html | 29 + docs/module-doc/functions_0x63.html | 47 + docs/module-doc/functions_0x64.html | 48 + docs/module-doc/functions_0x65.html | 31 + docs/module-doc/functions_0x66.html | 35 + docs/module-doc/functions_0x67.html | 44 + docs/module-doc/functions_0x68.html | 27 + docs/module-doc/functions_0x69.html | 38 + docs/module-doc/functions_0x6a.html | 21 + docs/module-doc/functions_0x6b.html | 21 + docs/module-doc/functions_0x6c.html | 28 + docs/module-doc/functions_0x6d.html | 29 + docs/module-doc/functions_0x6e.html | 29 + docs/module-doc/functions_0x6f.html | 86 + docs/module-doc/functions_0x70.html | 32 + docs/module-doc/functions_0x71.html | 21 + docs/module-doc/functions_0x72.html | 37 + docs/module-doc/functions_0x73.html | 48 + docs/module-doc/functions_0x74.html | 28 + docs/module-doc/functions_0x75.html | 26 + docs/module-doc/functions_0x76.html | 22 + docs/module-doc/functions_0x77.html | 22 + docs/module-doc/functions_0x7e.html | 33 + docs/module-doc/functions_func.html | 347 +-- docs/module-doc/functions_func_0x62.html | 22 + docs/module-doc/functions_func_0x63.html | 38 + docs/module-doc/functions_func_0x64.html | 43 + docs/module-doc/functions_func_0x65.html | 27 + docs/module-doc/functions_func_0x66.html | 29 + docs/module-doc/functions_func_0x67.html | 44 + docs/module-doc/functions_func_0x68.html | 23 + docs/module-doc/functions_func_0x69.html | 29 + docs/module-doc/functions_func_0x6a.html | 21 + docs/module-doc/functions_func_0x6c.html | 23 + docs/module-doc/functions_func_0x6d.html | 23 + docs/module-doc/functions_func_0x6e.html | 21 + docs/module-doc/functions_func_0x6f.html | 85 + docs/module-doc/functions_func_0x70.html | 23 + docs/module-doc/functions_func_0x71.html | 21 + docs/module-doc/functions_func_0x72.html | 28 + docs/module-doc/functions_func_0x73.html | 39 + docs/module-doc/functions_func_0x75.html | 24 + docs/module-doc/functions_func_0x76.html | 22 + docs/module-doc/functions_func_0x77.html | 21 + docs/module-doc/functions_func_0x7e.html | 33 + docs/module-doc/functions_vars.html | 303 +- docs/module-doc/globals.html | 386 +-- docs/module-doc/globals_0x62.html | 23 + docs/module-doc/globals_0x63.html | 51 + docs/module-doc/globals_0x64.html | 33 + docs/module-doc/globals_0x65.html | 25 + docs/module-doc/globals_0x66.html | 26 + docs/module-doc/globals_0x67.html | 24 + docs/module-doc/globals_0x68.html | 74 + docs/module-doc/globals_0x69.html | 39 + docs/module-doc/globals_0x6c.html | 23 + docs/module-doc/globals_0x6d.html | 44 + docs/module-doc/globals_0x6e.html | 26 + docs/module-doc/globals_0x6f.html | 21 + docs/module-doc/globals_0x70.html | 25 + docs/module-doc/globals_0x71.html | 22 + docs/module-doc/globals_0x72.html | 24 + docs/module-doc/globals_0x73.html | 37 + docs/module-doc/globals_0x74.html | 27 + docs/module-doc/globals_0x75.html | 27 + docs/module-doc/globals_0x76.html | 26 + docs/module-doc/globals_0x77.html | 24 + docs/module-doc/globals_0x7a.html | 22 + docs/module-doc/globals_defs.html | 153 +- docs/module-doc/globals_enum.html | 19 + docs/module-doc/globals_eval.html | 26 + docs/module-doc/globals_func.html | 345 +-- docs/module-doc/globals_type.html | 50 +- docs/module-doc/globals_vars.html | 173 +- docs/module-doc/graph_legend.gif | Bin 4686 -> 4705 bytes docs/module-doc/graph_legend.html | 15 +- docs/module-doc/hashcomp_8h-source.html | 211 +- docs/module-doc/hashcomp_8h.html | 62 +- docs/module-doc/hashcomp_8h__dep__incl.gif | Bin 912 -> 800 bytes docs/module-doc/hashcomp_8h__dep__incl.map | 2 + docs/module-doc/hashcomp_8h__dep__incl.md5 | 1 + docs/module-doc/hashcomp_8h__incl.gif | Bin 1512 -> 1375 bytes docs/module-doc/hashcomp_8h__incl.map | 1 + docs/module-doc/hashcomp_8h__incl.md5 | 1 + docs/module-doc/hierarchy.html | 18 +- docs/module-doc/inherit__graph__0.gif | Bin 367 -> 360 bytes docs/module-doc/inherit__graph__0.map | 2 + docs/module-doc/inherit__graph__0.md5 | 1 + docs/module-doc/inherit__graph__1.gif | Bin 761 -> 759 bytes docs/module-doc/inherit__graph__1.map | 3 + docs/module-doc/inherit__graph__1.md5 | 1 + docs/module-doc/inherit__graph__10.gif | Bin 0 -> 508 bytes docs/module-doc/inherit__graph__10.map | 2 + docs/module-doc/inherit__graph__10.md5 | 1 + docs/module-doc/inherit__graph__2.gif | Bin 12716 -> 12906 bytes docs/module-doc/inherit__graph__2.map | 32 + docs/module-doc/inherit__graph__2.md5 | 1 + docs/module-doc/inherit__graph__3.gif | Bin 304 -> 304 bytes docs/module-doc/inherit__graph__3.map | 2 + docs/module-doc/inherit__graph__3.md5 | 1 + docs/module-doc/inherit__graph__4.gif | Bin 397 -> 395 bytes docs/module-doc/inherit__graph__4.map | 2 + docs/module-doc/inherit__graph__4.md5 | 1 + docs/module-doc/inherit__graph__5.gif | Bin 608 -> 434 bytes docs/module-doc/inherit__graph__5.map | 2 + docs/module-doc/inherit__graph__5.md5 | 1 + docs/module-doc/inherit__graph__6.gif | Bin 531 -> 600 bytes docs/module-doc/inherit__graph__6.map | 2 + docs/module-doc/inherit__graph__6.md5 | 1 + docs/module-doc/inherit__graph__7.gif | Bin 619 -> 526 bytes docs/module-doc/inherit__graph__7.map | 2 + docs/module-doc/inherit__graph__7.md5 | 1 + docs/module-doc/inherit__graph__8.gif | Bin 590 -> 608 bytes docs/module-doc/inherit__graph__8.map | 2 + docs/module-doc/inherit__graph__8.md5 | 1 + docs/module-doc/inherit__graph__9.gif | Bin 513 -> 587 bytes docs/module-doc/inherit__graph__9.map | 2 + docs/module-doc/inherit__graph__9.md5 | 1 + docs/module-doc/inherits.html | 111 +- docs/module-doc/main.html | 11 +- docs/module-doc/message_8h-source.html | 113 +- docs/module-doc/message_8h.html | 304 +- docs/module-doc/message_8h__dep__incl.gif | Bin 1362 -> 1203 bytes docs/module-doc/message_8h__dep__incl.map | 3 + docs/module-doc/message_8h__dep__incl.md5 | 1 + docs/module-doc/message_8h__incl.gif | Bin 4480 -> 7493 bytes docs/module-doc/message_8h__incl.map | 4 + docs/module-doc/message_8h__incl.md5 | 1 + docs/module-doc/mode_8h-source.html | 109 +- docs/module-doc/mode_8h.html | 405 ++- docs/module-doc/mode_8h__dep__incl.gif | Bin 1291 -> 1122 bytes docs/module-doc/mode_8h__dep__incl.map | 3 + docs/module-doc/mode_8h__dep__incl.md5 | 1 + docs/module-doc/mode_8h__incl.gif | Bin 4393 -> 7366 bytes docs/module-doc/mode_8h__incl.map | 4 + docs/module-doc/mode_8h__incl.md5 | 1 + docs/module-doc/modules_8cpp-source.html | 2030 +++++++------- docs/module-doc/modules_8cpp.html | 1240 ++++----- docs/module-doc/modules_8cpp__incl.gif | Bin 40959 -> 27645 bytes docs/module-doc/modules_8cpp__incl.map | 10 + docs/module-doc/modules_8cpp__incl.md5 | 1 + docs/module-doc/modules_8h-source.html | 895 +++--- docs/module-doc/modules_8h.html | 588 ++-- docs/module-doc/modules_8h__dep__incl.gif | Bin 1341 -> 1182 bytes docs/module-doc/modules_8h__dep__incl.map | 3 + docs/module-doc/modules_8h__dep__incl.md5 | 1 + docs/module-doc/modules_8h__incl.gif | Bin 4700 -> 7658 bytes docs/module-doc/modules_8h__incl.map | 4 + docs/module-doc/modules_8h__incl.md5 | 1 + docs/module-doc/namespaceirc.html | 46 +- docs/module-doc/namespacemembers.html | 19 +- docs/module-doc/namespacemembers_type.html | 15 +- docs/module-doc/namespacenspace.html | 19 +- docs/module-doc/namespaces.html | 11 +- docs/module-doc/namespacestd.html | 13 +- docs/module-doc/socket_8cpp-source.html | 268 ++ docs/module-doc/socket_8cpp.html | 196 ++ docs/module-doc/socket_8cpp__incl.gif | Bin 0 -> 12213 bytes docs/module-doc/socket_8cpp__incl.map | 2 + docs/module-doc/socket_8cpp__incl.md5 | 1 + docs/module-doc/socket_8h-source.html | 80 + docs/module-doc/socket_8h.html | 140 + docs/module-doc/socket_8h__dep__incl.gif | Bin 0 -> 1971 bytes docs/module-doc/socket_8h__dep__incl.map | 5 + docs/module-doc/socket_8h__dep__incl.md5 | 1 + docs/module-doc/socket_8h__incl.gif | Bin 0 -> 2679 bytes docs/module-doc/socket_8h__incl.map | 1 + docs/module-doc/socket_8h__incl.md5 | 1 + docs/module-doc/structdns__ip4list-members.html | 17 +- docs/module-doc/structdns__ip4list.html | 48 +- .../module-doc/structdns__ip4list__coll__graph.gif | Bin 1082 -> 1121 bytes .../module-doc/structdns__ip4list__coll__graph.map | 1 + .../module-doc/structdns__ip4list__coll__graph.md5 | 1 + .../structirc_1_1InAddr__HashComp-members.html | 15 +- docs/module-doc/structirc_1_1InAddr__HashComp.html | 40 +- .../structirc_1_1StrHashComp-members.html | 15 +- docs/module-doc/structirc_1_1StrHashComp.html | 44 +- .../structirc_1_1irc__char__traits-members.html | 23 +- .../module-doc/structirc_1_1irc__char__traits.html | 130 +- ...structirc_1_1irc__char__traits__coll__graph.gif | Bin 1111 -> 1107 bytes ...structirc_1_1irc__char__traits__coll__graph.map | 2 + ...structirc_1_1irc__char__traits__coll__graph.md5 | 1 + ...uctirc_1_1irc__char__traits__inherit__graph.gif | Bin 1111 -> 1107 bytes ...uctirc_1_1irc__char__traits__inherit__graph.map | 2 + ...uctirc_1_1irc__char__traits__inherit__graph.md5 | 1 + ...ctnspace_1_1hash_3_01in__addr_01_4-members.html | 14 + .../structnspace_1_1hash_3_01in__addr_01_4.html | 61 + ...ructnspace_1_1hash_3_01string_01_4-members.html | 14 + .../structnspace_1_1hash_3_01string_01_4.html | 61 + docs/module-doc/tree.html | 100 +- docs/module-doc/users_8cpp-source.html | 609 ++-- docs/module-doc/users_8cpp.html | 82 +- docs/module-doc/users_8cpp__incl.gif | Bin 4396 -> 5014 bytes docs/module-doc/users_8cpp__incl.map | 4 + docs/module-doc/users_8cpp__incl.md5 | 1 + docs/module-doc/users_8h-source.html | 361 +-- docs/module-doc/users_8h.html | 163 +- docs/module-doc/users_8h__dep__incl.gif | Bin 4071 -> 3938 bytes docs/module-doc/users_8h__dep__incl.map | 8 + docs/module-doc/users_8h__dep__incl.md5 | 1 + docs/module-doc/users_8h__incl.gif | Bin 3092 -> 2835 bytes docs/module-doc/users_8h__incl.map | 3 + docs/module-doc/users_8h__incl.md5 | 1 + docs/module-doc/xline_8h-source.html | 235 +- docs/module-doc/xline_8h.html | 514 ++-- docs/module-doc/xline_8h__dep__incl.gif | Bin 1276 -> 1100 bytes docs/module-doc/xline_8h__dep__incl.map | 3 + docs/module-doc/xline_8h__dep__incl.md5 | 1 + docs/module-doc/xline_8h__incl.gif | Bin 4360 -> 7348 bytes docs/module-doc/xline_8h__incl.map | 4 + docs/module-doc/xline_8h__incl.md5 | 1 + 558 files changed, 17137 insertions(+), 16110 deletions(-) create mode 100644 docs/module-doc/base_8h__dep__incl.map create mode 100644 docs/module-doc/base_8h__dep__incl.md5 create mode 100644 docs/module-doc/base_8h__incl.map create mode 100644 docs/module-doc/base_8h__incl.md5 create mode 100644 docs/module-doc/channels_8cpp__incl.map create mode 100644 docs/module-doc/channels_8cpp__incl.md5 create mode 100644 docs/module-doc/channels_8h__dep__incl.map create mode 100644 docs/module-doc/channels_8h__dep__incl.md5 create mode 100644 docs/module-doc/channels_8h__incl.map create mode 100644 docs/module-doc/channels_8h__incl.md5 create mode 100644 docs/module-doc/classAdmin__coll__graph.map create mode 100644 docs/module-doc/classAdmin__coll__graph.md5 create mode 100644 docs/module-doc/classAdmin__inherit__graph.map create mode 100644 docs/module-doc/classAdmin__inherit__graph.md5 create mode 100644 docs/module-doc/classBanItem__coll__graph.map create mode 100644 docs/module-doc/classBanItem__coll__graph.md5 create mode 100644 docs/module-doc/classBanItem__inherit__graph.map create mode 100644 docs/module-doc/classBanItem__inherit__graph.md5 create mode 100644 docs/module-doc/classBoolSet__coll__graph.map create mode 100644 docs/module-doc/classBoolSet__coll__graph.md5 create mode 100644 docs/module-doc/classConfigReader__coll__graph.map create mode 100644 docs/module-doc/classConfigReader__coll__graph.md5 create mode 100644 docs/module-doc/classConfigReader__inherit__graph.map create mode 100644 docs/module-doc/classConfigReader__inherit__graph.md5 create mode 100644 docs/module-doc/classConnectClass__coll__graph.map create mode 100644 docs/module-doc/classConnectClass__coll__graph.md5 create mode 100644 docs/module-doc/classConnectClass__inherit__graph.map create mode 100644 docs/module-doc/classConnectClass__inherit__graph.md5 create mode 100644 docs/module-doc/classDNS__coll__graph.map create mode 100644 docs/module-doc/classDNS__coll__graph.md5 create mode 100644 docs/module-doc/classELine__coll__graph.map create mode 100644 docs/module-doc/classELine__coll__graph.md5 create mode 100644 docs/module-doc/classELine__inherit__graph.map create mode 100644 docs/module-doc/classELine__inherit__graph.md5 create mode 100644 docs/module-doc/classEvent__coll__graph.map create mode 100644 docs/module-doc/classEvent__coll__graph.md5 create mode 100644 docs/module-doc/classEvent__inherit__graph.map create mode 100644 docs/module-doc/classEvent__inherit__graph.md5 create mode 100644 docs/module-doc/classExemptItem__coll__graph.map create mode 100644 docs/module-doc/classExemptItem__coll__graph.md5 create mode 100644 docs/module-doc/classExemptItem__inherit__graph.map create mode 100644 docs/module-doc/classExemptItem__inherit__graph.md5 create mode 100644 docs/module-doc/classExtMode__coll__graph.map create mode 100644 docs/module-doc/classExtMode__coll__graph.md5 create mode 100644 docs/module-doc/classExtMode__inherit__graph.map create mode 100644 docs/module-doc/classExtMode__inherit__graph.md5 create mode 100644 docs/module-doc/classExtensible__coll__graph.map create mode 100644 docs/module-doc/classExtensible__coll__graph.md5 create mode 100644 docs/module-doc/classExtensible__inherit__graph.map create mode 100644 docs/module-doc/classExtensible__inherit__graph.md5 create mode 100644 docs/module-doc/classFileReader__coll__graph.map create mode 100644 docs/module-doc/classFileReader__coll__graph.md5 create mode 100644 docs/module-doc/classFileReader__inherit__graph.map create mode 100644 docs/module-doc/classFileReader__inherit__graph.md5 create mode 100644 docs/module-doc/classGLine__coll__graph.map create mode 100644 docs/module-doc/classGLine__coll__graph.md5 create mode 100644 docs/module-doc/classGLine__inherit__graph.map create mode 100644 docs/module-doc/classGLine__inherit__graph.md5 create mode 100644 docs/module-doc/classHostItem__coll__graph.map create mode 100644 docs/module-doc/classHostItem__coll__graph.md5 create mode 100644 docs/module-doc/classHostItem__inherit__graph.map create mode 100644 docs/module-doc/classHostItem__inherit__graph.md5 create mode 100644 docs/module-doc/classInspSocket-members.html create mode 100644 docs/module-doc/classInspSocket.html create mode 100644 docs/module-doc/classInspSocket__coll__graph.gif create mode 100644 docs/module-doc/classInspSocket__coll__graph.map create mode 100644 docs/module-doc/classInspSocket__coll__graph.md5 create mode 100644 docs/module-doc/classInviteItem__coll__graph.map create mode 100644 docs/module-doc/classInviteItem__coll__graph.md5 create mode 100644 docs/module-doc/classInviteItem__inherit__graph.map create mode 100644 docs/module-doc/classInviteItem__inherit__graph.md5 create mode 100644 docs/module-doc/classInvited__coll__graph.map create mode 100644 docs/module-doc/classInvited__coll__graph.md5 create mode 100644 docs/module-doc/classInvited__inherit__graph.map create mode 100644 docs/module-doc/classInvited__inherit__graph.md5 create mode 100644 docs/module-doc/classKLine__coll__graph.map create mode 100644 docs/module-doc/classKLine__coll__graph.md5 create mode 100644 docs/module-doc/classKLine__inherit__graph.map create mode 100644 docs/module-doc/classKLine__inherit__graph.md5 create mode 100644 docs/module-doc/classModeParameter__coll__graph.map create mode 100644 docs/module-doc/classModeParameter__coll__graph.md5 create mode 100644 docs/module-doc/classModeParameter__inherit__graph.map create mode 100644 docs/module-doc/classModeParameter__inherit__graph.md5 create mode 100644 docs/module-doc/classModuleFactory__coll__graph.map create mode 100644 docs/module-doc/classModuleFactory__coll__graph.md5 create mode 100644 docs/module-doc/classModuleFactory__inherit__graph.map create mode 100644 docs/module-doc/classModuleFactory__inherit__graph.md5 create mode 100644 docs/module-doc/classModuleMessage__coll__graph.map create mode 100644 docs/module-doc/classModuleMessage__coll__graph.md5 create mode 100644 docs/module-doc/classModuleMessage__inherit__graph.map create mode 100644 docs/module-doc/classModuleMessage__inherit__graph.md5 create mode 100644 docs/module-doc/classModule__coll__graph.map create mode 100644 docs/module-doc/classModule__coll__graph.md5 create mode 100644 docs/module-doc/classModule__inherit__graph.map create mode 100644 docs/module-doc/classModule__inherit__graph.md5 create mode 100644 docs/module-doc/classQLine__coll__graph.map create mode 100644 docs/module-doc/classQLine__coll__graph.md5 create mode 100644 docs/module-doc/classQLine__inherit__graph.map create mode 100644 docs/module-doc/classQLine__inherit__graph.md5 create mode 100644 docs/module-doc/classRequest__coll__graph.map create mode 100644 docs/module-doc/classRequest__coll__graph.md5 create mode 100644 docs/module-doc/classRequest__inherit__graph.map create mode 100644 docs/module-doc/classRequest__inherit__graph.md5 create mode 100644 docs/module-doc/classServer__coll__graph.map create mode 100644 docs/module-doc/classServer__coll__graph.md5 create mode 100644 docs/module-doc/classServer__inherit__graph.map create mode 100644 docs/module-doc/classServer__inherit__graph.md5 create mode 100644 docs/module-doc/classVersion__coll__graph.map create mode 100644 docs/module-doc/classVersion__coll__graph.md5 create mode 100644 docs/module-doc/classVersion__inherit__graph.map create mode 100644 docs/module-doc/classVersion__inherit__graph.md5 create mode 100644 docs/module-doc/classWhoWasUser__coll__graph.map create mode 100644 docs/module-doc/classWhoWasUser__coll__graph.md5 create mode 100644 docs/module-doc/classXLine__coll__graph.map create mode 100644 docs/module-doc/classXLine__coll__graph.md5 create mode 100644 docs/module-doc/classXLine__inherit__graph.map create mode 100644 docs/module-doc/classXLine__inherit__graph.md5 create mode 100644 docs/module-doc/classZLine__coll__graph.map create mode 100644 docs/module-doc/classZLine__coll__graph.md5 create mode 100644 docs/module-doc/classZLine__inherit__graph.map create mode 100644 docs/module-doc/classZLine__inherit__graph.md5 create mode 100644 docs/module-doc/classchanrec__coll__graph.map create mode 100644 docs/module-doc/classchanrec__coll__graph.md5 create mode 100644 docs/module-doc/classchanrec__inherit__graph.map create mode 100644 docs/module-doc/classchanrec__inherit__graph.md5 create mode 100644 docs/module-doc/classclassbase__coll__graph.map create mode 100644 docs/module-doc/classclassbase__coll__graph.md5 create mode 100644 docs/module-doc/classclassbase__inherit__graph.map create mode 100644 docs/module-doc/classclassbase__inherit__graph.md5 create mode 100644 docs/module-doc/classcommand__t__coll__graph.map create mode 100644 docs/module-doc/classcommand__t__coll__graph.md5 create mode 100644 docs/module-doc/classcommand__t__inherit__graph.map create mode 100644 docs/module-doc/classcommand__t__inherit__graph.md5 create mode 100644 docs/module-doc/classconnection__coll__graph.map create mode 100644 docs/module-doc/classconnection__coll__graph.md5 create mode 100644 docs/module-doc/classconnection__inherit__graph.map create mode 100644 docs/module-doc/classconnection__inherit__graph.md5 create mode 100644 docs/module-doc/classstd_1_1char__traits__inherit__graph.map create mode 100644 docs/module-doc/classstd_1_1char__traits__inherit__graph.md5 create mode 100644 docs/module-doc/classucrec__coll__graph.map create mode 100644 docs/module-doc/classucrec__coll__graph.md5 create mode 100644 docs/module-doc/classucrec__inherit__graph.map create mode 100644 docs/module-doc/classucrec__inherit__graph.md5 create mode 100644 docs/module-doc/classuserrec__coll__graph.map create mode 100644 docs/module-doc/classuserrec__coll__graph.md5 create mode 100644 docs/module-doc/classuserrec__inherit__graph.map create mode 100644 docs/module-doc/classuserrec__inherit__graph.md5 create mode 100644 docs/module-doc/commands_8h__dep__incl.map create mode 100644 docs/module-doc/commands_8h__dep__incl.md5 create mode 100644 docs/module-doc/commands_8h__incl.map create mode 100644 docs/module-doc/commands_8h__incl.md5 create mode 100644 docs/module-doc/connection_8h__dep__incl.map create mode 100644 docs/module-doc/connection_8h__dep__incl.md5 create mode 100644 docs/module-doc/connection_8h__incl.map create mode 100644 docs/module-doc/connection_8h__incl.md5 create mode 100644 docs/module-doc/ctables_8h__dep__incl.map create mode 100644 docs/module-doc/ctables_8h__dep__incl.md5 create mode 100644 docs/module-doc/ctables_8h__incl.map create mode 100644 docs/module-doc/ctables_8h__incl.md5 create mode 100644 docs/module-doc/dir_000000.html create mode 100644 docs/module-doc/dir_000000_dep.gif create mode 100644 docs/module-doc/dir_000000_dep.map create mode 100644 docs/module-doc/dir_000001.html create mode 100644 docs/module-doc/dir_000001_dep.gif create mode 100644 docs/module-doc/dir_000001_dep.map create mode 100644 docs/module-doc/dir_000002.html create mode 100644 docs/module-doc/dir_000002_dep.gif create mode 100644 docs/module-doc/dir_000002_dep.map create mode 100644 docs/module-doc/dir_000003.html create mode 100644 docs/module-doc/dir_000003_dep.gif create mode 100644 docs/module-doc/dir_000003_dep.map create mode 100644 docs/module-doc/dir_000004.html create mode 100644 docs/module-doc/dir_000004_dep.gif create mode 100644 docs/module-doc/dir_000004_dep.map create mode 100644 docs/module-doc/dir_000005.html create mode 100644 docs/module-doc/dir_000005_000004.html create mode 100644 docs/module-doc/dir_000005_dep.gif create mode 100644 docs/module-doc/dir_000005_dep.map create mode 100644 docs/module-doc/dirs.html create mode 100644 docs/module-doc/dns_8h__incl.map create mode 100644 docs/module-doc/dns_8h__incl.md5 create mode 100644 docs/module-doc/functions_0x62.html create mode 100644 docs/module-doc/functions_0x63.html create mode 100644 docs/module-doc/functions_0x64.html create mode 100644 docs/module-doc/functions_0x65.html create mode 100644 docs/module-doc/functions_0x66.html create mode 100644 docs/module-doc/functions_0x67.html create mode 100644 docs/module-doc/functions_0x68.html create mode 100644 docs/module-doc/functions_0x69.html create mode 100644 docs/module-doc/functions_0x6a.html create mode 100644 docs/module-doc/functions_0x6b.html create mode 100644 docs/module-doc/functions_0x6c.html create mode 100644 docs/module-doc/functions_0x6d.html create mode 100644 docs/module-doc/functions_0x6e.html create mode 100644 docs/module-doc/functions_0x6f.html create mode 100644 docs/module-doc/functions_0x70.html create mode 100644 docs/module-doc/functions_0x71.html create mode 100644 docs/module-doc/functions_0x72.html create mode 100644 docs/module-doc/functions_0x73.html create mode 100644 docs/module-doc/functions_0x74.html create mode 100644 docs/module-doc/functions_0x75.html create mode 100644 docs/module-doc/functions_0x76.html create mode 100644 docs/module-doc/functions_0x77.html create mode 100644 docs/module-doc/functions_0x7e.html create mode 100644 docs/module-doc/functions_func_0x62.html create mode 100644 docs/module-doc/functions_func_0x63.html create mode 100644 docs/module-doc/functions_func_0x64.html create mode 100644 docs/module-doc/functions_func_0x65.html create mode 100644 docs/module-doc/functions_func_0x66.html create mode 100644 docs/module-doc/functions_func_0x67.html create mode 100644 docs/module-doc/functions_func_0x68.html create mode 100644 docs/module-doc/functions_func_0x69.html create mode 100644 docs/module-doc/functions_func_0x6a.html create mode 100644 docs/module-doc/functions_func_0x6c.html create mode 100644 docs/module-doc/functions_func_0x6d.html create mode 100644 docs/module-doc/functions_func_0x6e.html create mode 100644 docs/module-doc/functions_func_0x6f.html create mode 100644 docs/module-doc/functions_func_0x70.html create mode 100644 docs/module-doc/functions_func_0x71.html create mode 100644 docs/module-doc/functions_func_0x72.html create mode 100644 docs/module-doc/functions_func_0x73.html create mode 100644 docs/module-doc/functions_func_0x75.html create mode 100644 docs/module-doc/functions_func_0x76.html create mode 100644 docs/module-doc/functions_func_0x77.html create mode 100644 docs/module-doc/functions_func_0x7e.html create mode 100644 docs/module-doc/globals_0x62.html create mode 100644 docs/module-doc/globals_0x63.html create mode 100644 docs/module-doc/globals_0x64.html create mode 100644 docs/module-doc/globals_0x65.html create mode 100644 docs/module-doc/globals_0x66.html create mode 100644 docs/module-doc/globals_0x67.html create mode 100644 docs/module-doc/globals_0x68.html create mode 100644 docs/module-doc/globals_0x69.html create mode 100644 docs/module-doc/globals_0x6c.html create mode 100644 docs/module-doc/globals_0x6d.html create mode 100644 docs/module-doc/globals_0x6e.html create mode 100644 docs/module-doc/globals_0x6f.html create mode 100644 docs/module-doc/globals_0x70.html create mode 100644 docs/module-doc/globals_0x71.html create mode 100644 docs/module-doc/globals_0x72.html create mode 100644 docs/module-doc/globals_0x73.html create mode 100644 docs/module-doc/globals_0x74.html create mode 100644 docs/module-doc/globals_0x75.html create mode 100644 docs/module-doc/globals_0x76.html create mode 100644 docs/module-doc/globals_0x77.html create mode 100644 docs/module-doc/globals_0x7a.html create mode 100644 docs/module-doc/globals_enum.html create mode 100644 docs/module-doc/globals_eval.html create mode 100644 docs/module-doc/hashcomp_8h__dep__incl.map create mode 100644 docs/module-doc/hashcomp_8h__dep__incl.md5 create mode 100644 docs/module-doc/hashcomp_8h__incl.map create mode 100644 docs/module-doc/hashcomp_8h__incl.md5 create mode 100644 docs/module-doc/inherit__graph__0.map create mode 100644 docs/module-doc/inherit__graph__0.md5 create mode 100644 docs/module-doc/inherit__graph__1.map create mode 100644 docs/module-doc/inherit__graph__1.md5 create mode 100644 docs/module-doc/inherit__graph__10.gif create mode 100644 docs/module-doc/inherit__graph__10.map create mode 100644 docs/module-doc/inherit__graph__10.md5 create mode 100644 docs/module-doc/inherit__graph__2.map create mode 100644 docs/module-doc/inherit__graph__2.md5 create mode 100644 docs/module-doc/inherit__graph__3.map create mode 100644 docs/module-doc/inherit__graph__3.md5 create mode 100644 docs/module-doc/inherit__graph__4.map create mode 100644 docs/module-doc/inherit__graph__4.md5 create mode 100644 docs/module-doc/inherit__graph__5.map create mode 100644 docs/module-doc/inherit__graph__5.md5 create mode 100644 docs/module-doc/inherit__graph__6.map create mode 100644 docs/module-doc/inherit__graph__6.md5 create mode 100644 docs/module-doc/inherit__graph__7.map create mode 100644 docs/module-doc/inherit__graph__7.md5 create mode 100644 docs/module-doc/inherit__graph__8.map create mode 100644 docs/module-doc/inherit__graph__8.md5 create mode 100644 docs/module-doc/inherit__graph__9.map create mode 100644 docs/module-doc/inherit__graph__9.md5 create mode 100644 docs/module-doc/message_8h__dep__incl.map create mode 100644 docs/module-doc/message_8h__dep__incl.md5 create mode 100644 docs/module-doc/message_8h__incl.map create mode 100644 docs/module-doc/message_8h__incl.md5 create mode 100644 docs/module-doc/mode_8h__dep__incl.map create mode 100644 docs/module-doc/mode_8h__dep__incl.md5 create mode 100644 docs/module-doc/mode_8h__incl.map create mode 100644 docs/module-doc/mode_8h__incl.md5 create mode 100644 docs/module-doc/modules_8cpp__incl.map create mode 100644 docs/module-doc/modules_8cpp__incl.md5 create mode 100644 docs/module-doc/modules_8h__dep__incl.map create mode 100644 docs/module-doc/modules_8h__dep__incl.md5 create mode 100644 docs/module-doc/modules_8h__incl.map create mode 100644 docs/module-doc/modules_8h__incl.md5 create mode 100644 docs/module-doc/socket_8cpp-source.html create mode 100644 docs/module-doc/socket_8cpp.html create mode 100644 docs/module-doc/socket_8cpp__incl.gif create mode 100644 docs/module-doc/socket_8cpp__incl.map create mode 100644 docs/module-doc/socket_8cpp__incl.md5 create mode 100644 docs/module-doc/socket_8h-source.html create mode 100644 docs/module-doc/socket_8h.html create mode 100644 docs/module-doc/socket_8h__dep__incl.gif create mode 100644 docs/module-doc/socket_8h__dep__incl.map create mode 100644 docs/module-doc/socket_8h__dep__incl.md5 create mode 100644 docs/module-doc/socket_8h__incl.gif create mode 100644 docs/module-doc/socket_8h__incl.map create mode 100644 docs/module-doc/socket_8h__incl.md5 create mode 100644 docs/module-doc/structdns__ip4list__coll__graph.map create mode 100644 docs/module-doc/structdns__ip4list__coll__graph.md5 create mode 100644 docs/module-doc/structirc_1_1irc__char__traits__coll__graph.map create mode 100644 docs/module-doc/structirc_1_1irc__char__traits__coll__graph.md5 create mode 100644 docs/module-doc/structirc_1_1irc__char__traits__inherit__graph.map create mode 100644 docs/module-doc/structirc_1_1irc__char__traits__inherit__graph.md5 create mode 100644 docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4-members.html create mode 100644 docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4.html create mode 100644 docs/module-doc/structnspace_1_1hash_3_01string_01_4-members.html create mode 100644 docs/module-doc/structnspace_1_1hash_3_01string_01_4.html create mode 100644 docs/module-doc/users_8cpp__incl.map create mode 100644 docs/module-doc/users_8cpp__incl.md5 create mode 100644 docs/module-doc/users_8h__dep__incl.map create mode 100644 docs/module-doc/users_8h__dep__incl.md5 create mode 100644 docs/module-doc/users_8h__incl.map create mode 100644 docs/module-doc/users_8h__incl.md5 create mode 100644 docs/module-doc/xline_8h__dep__incl.map create mode 100644 docs/module-doc/xline_8h__dep__incl.md5 create mode 100644 docs/module-doc/xline_8h__incl.map create mode 100644 docs/module-doc/xline_8h__incl.md5 (limited to 'docs/module-doc') diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index bb9210bdb..8d3b2baae 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -1,11 +1,11 @@ - + -InspIRCd: Annotated Index +InspIRCd: Class List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

InspIRCd Compound List

Here are the classes, structs, unions and interfaces with brief descriptions: + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

InspIRCd Class List

Here are the classes, structs, unions and interfaces with brief descriptions:
@@ -25,23 +25,22 @@ + + + - - - - @@ -50,9 +49,8 @@
AdminHolds /ADMIN data This class contains the admin details of the local server
BanItemA subclass of HostItem designed to hold channel bans (+b)
BoolSetBoolSet is a utility class designed to hold eight bools in a bitmask
ExtMode
FileReaderCaches a text file into memory and can be used to retrieve lines from it
GLineGLine class
nspace::hash< in_addr >
nspace::hash< string >
HostItemHolds an entry for a ban list, exemption list, or invite list
irc::InAddr_HashCompThis class returns true if two in_addr structs match
InspSocket
InvitedHolds a channel name to which a user has been invited
InviteItemA subclass of HostItem designed to hold channel invites (+I)
irc::irc_char_traitsThe irc_char_traits class is used for RFC-style comparison of strings
ircd_connectorEach connection has one or more of these each represents ONE outbound connection to another ircd so each inbound has multiple outbounds
KLineKLine class
ModeParameterHolds a custom parameter to a module-defined channel mode e.g
ModuleBase class for all InspIRCd modules This class is the base class for InspIRCd modules
ModuleFactoryInstantiates classes inherited from Module This class creates a class inherited from type Module, using new
ModuleMessageBase class of Request and Event This class is used to represent a basic data structure which is passed between modules for safe inter-module communications
nspace::hash< in_addr >
nspace::hash< string >
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
serverrecA class that defines the local server or a remote server
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
userrecHolds all information about a user This class stores all information about a user connected to the irc server
XLineXLine is the base class for ban lines such as G lines and K lines
ZLineZLine class
-
Generated on Mon May 30 05:16:22 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index 9a2058149..3023bee60 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -1,94 +1,92 @@ - + InspIRCd: base.h Source File - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

base.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 __BASE_H__ 
-00018 #define __BASE_H__ 
-00019 
-00020 #include "inspircd_config.h" 
-00021 #include <time.h>
-00022 #include <map>
-00023 #include <string>
-00024 
-00025 typedef void* VoidPointer;
-00026  
+
+
+
+

base.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 __BASE_H__ 
+00018 #define __BASE_H__ 
+00019 
+00020 #include "inspircd_config.h" 
+00021 #include <time.h>
+00022 #include <map>
+00023 #include <string>
+00024 
+00025 typedef void* VoidPointer;
+00026  
 00029 class classbase
-00030 {
-00031  public:
-00034         time_t age;
-00035 
-00039         classbase() { age = time(NULL); }
-00040         ~classbase() { }
-00041 };
-00042 
+00030 {
+00031  public:
+00034         time_t age;
+00035 
+00039         classbase() { age = time(NULL); }
+00040         ~classbase() { }
+00041 };
+00042 
 00050 class Extensible : public classbase
-00051 {
-00054         std::map<std::string,char*> Extension_Items;
-00055         
-00056 public:
-00057 
-00069         bool Extend(std::string key, char* p);
-00070 
-00080         bool Shrink(std::string key);
-00081         
-00088         char* GetExt(std::string key);
-00089 };
-00090 
-00091 const int bitfields[]           =       {1,2,4,8,16,32,64,128};
-00092 const int inverted_bitfields[]  =       {~1,~2,~4,~8,~16,~32,~64,~128};
-00093 
-00098 class BoolSet
-00099 {
-00100         char bits;
-00101 
-00102  public:
-00103 
-00106         BoolSet();
-00107 
-00110         BoolSet(char bitmask);
-00111 
-00116         void Set(int number);
-00117 
-00124         bool Get(int number);
-00125 
-00130         void Unset(int number);
-00131 
-00136         void Invert(int number);
-00137 
-00140         bool operator==(BoolSet other);
-00141 
-00144         BoolSet operator|(BoolSet other);
-00145         
-00148         BoolSet operator&(BoolSet other);
-00149 
-00152         bool operator=(BoolSet other);
-00153 };
-00154 
-00155 
-00156 #endif
-00157 
-

Generated on Mon May 30 05:15:18 2005 for InspIRCd by +00051 { +00054 std::map<std::string,char*> Extension_Items; +00055 +00056 public: +00057 +00069 bool Extend(std::string key, char* p); +00070 +00080 bool Shrink(std::string key); +00081 +00088 char* GetExt(std::string key); +00089 }; +00090 +00095 class BoolSet +00096 { +00097 char bits; +00098 +00099 public: +00100 +00103 BoolSet(); +00104 +00107 BoolSet(char bitmask); +00108 +00113 void Set(int number); +00114 +00121 bool Get(int number); +00122 +00127 void Unset(int number); +00128 +00133 void Invert(int number); +00134 +00137 bool operator==(BoolSet other); +00138 +00141 BoolSet operator|(BoolSet other); +00142 +00145 BoolSet operator&(BoolSet other); +00146 +00149 bool operator=(BoolSet other); +00150 }; +00151 +00152 +00153 #endif +00154 +

Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815 diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index 6da6ca04e..f2d9350a9 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -1,62 +1,68 @@ - + InspIRCd: base.h File Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

base.h File Reference

#include "inspircd_config.h"
+ +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+ +

base.h File Reference

#include "inspircd_config.h"
#include <time.h>
#include <map>
#include <string>

-Include dependency graph for base.h:

Include dependency graph
+Include dependency graph for base.h:

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

Included by dependency graph
+This graph shows which files directly or indirectly include this file:

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

-Go to the source code of this file. +Go to the source code of this file.
- - + + - - + + - - + + - - - - - - - - + + +

Compounds

class  BoolSet

Classes

class  classbase
 BoolSet is a utility class designed to hold eight bools in a bitmask. More...

class  classbase
 The base class for all inspircd classes. More...
class  Extensible
 The base class for all inspircd classes. More...

class  Extensible
 class Extensible is the parent class of many classes such as userrec and chanrec. More...
class  BoolSet
 class Extensible is the parent class of many classes such as userrec and chanrec. More...


Typedefs

typedef void * VoidPointer

Variables

const int bitfields [] = {1,2,4,8,16,32,64,128}
const int inverted_bitfields [] = {~1,~2,~4,~8,~16,~32,~64,~128}
 BoolSet is a utility class designed to hold eight bools in a bitmask. More...

Typedefs

typedef void * VoidPointer


Typedef Documentation

-

- +

+

- +
typedef void* VoidPointer + typedef void* VoidPointer
- +
  @@ -69,58 +75,8 @@ This graph shows which files directly or indirectly include this file:

25 of file base.h.
-


Variable Documentation

-

- - - - -
- - -
const int bitfields[] = {1,2,4,8,16,32,64,128} -
-
- - - - - -
-   - - -

- -

-Definition at line 91 of file base.h.

-

- - - - -
- - -
const int inverted_bitfields[] = {~1,~2,~4,~8,~16,~32,~64,~128} -
-
- - - - - -
-   - - -

- -

-Definition at line 92 of file base.h.

-


Generated on Mon May 30 05:15:25 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+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 89263dd1f..3722ae7c0 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 new file mode 100644 index 000000000..1174c2639 --- /dev/null +++ b/docs/module-doc/base_8h__dep__incl.map @@ -0,0 +1,13 @@ +base referer +rect $channels_8h-source.html 123,260 208,287 +rect $connection_8h-source.html 116,108 215,135 +rect $ctables_8h-source.html 264,7 339,33 +rect $modules_8h-source.html 396,57 479,84 +rect $users_8cpp-source.html 398,159 478,185 +rect $users_8h-source.html 270,260 334,287 +rect $commands_8h-source.html 388,463 487,489 +rect $message_8h-source.html 395,209 480,236 +rect $mode_8h-source.html 404,311 471,337 +rect $xline_8h-source.html 407,361 468,388 +rect $channels_8cpp-source.html 536,235 635,261 +rect $modules_8cpp-source.html 536,311 635,337 diff --git a/docs/module-doc/base_8h__dep__incl.md5 b/docs/module-doc/base_8h__dep__incl.md5 new file mode 100644 index 000000000..e545b47b2 --- /dev/null +++ b/docs/module-doc/base_8h__dep__incl.md5 @@ -0,0 +1 @@ +f6b12bb178ea9037bef41c096843593c \ No newline at end of file diff --git a/docs/module-doc/base_8h__incl.gif b/docs/module-doc/base_8h__incl.gif index b2b1eff77..009720209 100644 Binary files a/docs/module-doc/base_8h__incl.gif and b/docs/module-doc/base_8h__incl.gif differ diff --git a/docs/module-doc/base_8h__incl.map b/docs/module-doc/base_8h__incl.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/base_8h__incl.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/base_8h__incl.md5 b/docs/module-doc/base_8h__incl.md5 new file mode 100644 index 000000000..9190d9f22 --- /dev/null +++ b/docs/module-doc/base_8h__incl.md5 @@ -0,0 +1 @@ +67c328a54e3df328858803d816336df4 \ 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 91c8beca5..d99c7dae0 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -1,237 +1,232 @@ - + InspIRCd: channels.cpp Source File - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

channels.cpp

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 using namespace std;
-00018 
-00019 #include "inspircd_config.h"
-00020 #include "inspircd.h"
-00021 #include "inspircd_io.h"
-00022 #include "inspircd_util.h"
-00023 #include <unistd.h>
-00024 #include <sys/errno.h>
-00025 #include <sys/ioctl.h>
-00026 #include <sys/utsname.h>
-00027 #include <time.h>
-00028 #include <string>
-00029 #ifdef GCC3
-00030 #include <ext/hash_map>
-00031 #else
-00032 #include <hash_map>
-00033 #endif
-00034 #include <map>
-00035 #include <sstream>
-00036 #include <vector>
-00037 #include <deque>
-00038 #include "connection.h"
-00039 #include "users.h"
-00040 #include "servers.h"
-00041 #include "ctables.h"
-00042 #include "globals.h"
-00043 #include "modules.h"
-00044 #include "dynamic.h"
-00045 #include "wildcard.h"
-00046 #include "message.h"
-00047 #include "mode.h"
-00048 #include "xline.h"
-00049 #include "inspstring.h"
-00050 #include "helperfuncs.h"
-00051 
-00052 #ifdef GCC3
-00053 #define nspace __gnu_cxx
-00054 #else
-00055 #define nspace std
-00056 #endif
-00057 
-00058 extern int MODCOUNT;
-00059 extern std::vector<Module*> modules;
-00060 extern std::vector<ircd_module*> factory;
-00061 
-00062 extern int LogLevel;
-00063 extern char ServerName[MAXBUF];
-00064 extern char Network[MAXBUF];
-00065 extern char ServerDesc[MAXBUF];
-00066 extern char AdminName[MAXBUF];
-00067 extern char AdminEmail[MAXBUF];
-00068 extern char AdminNick[MAXBUF];
-00069 extern char diepass[MAXBUF];
-00070 extern char restartpass[MAXBUF];
-00071 extern char motd[MAXBUF];
-00072 extern char rules[MAXBUF];
-00073 extern char list[MAXBUF];
-00074 extern char PrefixQuit[MAXBUF];
-00075 extern char DieValue[MAXBUF];
-00076 
-00077 extern int debugging;
-00078 extern int WHOWAS_STALE;
-00079 extern int WHOWAS_MAX;
-00080 extern int DieDelay;
-00081 extern time_t startup_time;
-00082 extern int NetBufferSize;
-00083 int MaxWhoResults;
-00084 extern time_t nb_start;
-00085 
-00086 extern std::vector<std::string> module_names;
-00087 
-00088 extern int boundPortCount;
-00089 extern int portCount;
-00090 extern int SERVERportCount;
-00091 extern int ports[MAXSOCKS];
-00092 extern int defaultRoute;
-00093 
-00094 extern std::vector<long> auth_cookies;
-00095 extern std::stringstream config_f;
-00096 
-00097 extern serverrec* me[32];
-00098 
-00099 extern FILE *log_file;
-00100 
-00101 extern time_t TIME;
-00102 
-00103 using namespace std;
-00104 
-00105 std::vector<ModeParameter> custom_mode_params;
-00106 
-00107 chanrec::chanrec()
-00108 {
-00109         strcpy(name,"");
-00110         strcpy(custom_modes,"");
-00111         strcpy(topic,"");
-00112         strcpy(setby,"");
-00113         strcpy(key,"");
-00114         created = topicset = limit = 0;
-00115         binarymodes = 0;
-00116         internal_userlist.clear();
-00117 }
-00118 
-00119 void chanrec::SetCustomMode(char mode,bool mode_on)
-00120 {
-00121         if (mode_on) {
-00122                 static char m[3];
-00123                 m[0] = mode;
-00124                 m[1] = '\0';
-00125                 if (!strchr(this->custom_modes,mode))
-00126                 {
-00127                         strlcat(custom_modes,m,MAXMODES);
-00128                 }
-00129                 log(DEBUG,"Custom mode %c set",mode);
-00130         }
-00131         else {
-00132 
-00133                 std::string a = this->custom_modes;
-00134                 int pos = a.find(mode);
-00135                 a.erase(pos,1);
-00136                 strncpy(this->custom_modes,a.c_str(),MAXMODES);
-00137 
-00138                 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes);
-00139                 this->SetCustomModeParam(mode,"",false);
-00140         }
-00141 }
-00142 
-00143 
-00144 void chanrec::SetCustomModeParam(char mode,char* parameter,bool mode_on)
-00145 {
-00146 
-00147         log(DEBUG,"SetCustomModeParam called");
-00148         ModeParameter M;
-00149         M.mode = mode;
-00150         strlcpy(M.channel,this->name,CHANMAX);
-00151         strlcpy(M.parameter,parameter,MAXBUF);
-00152         if (mode_on)
-00153         {
-00154                 log(DEBUG,"Custom mode parameter %c %s added",mode,parameter);
-00155                 custom_mode_params.push_back(M);
-00156         }
-00157         else
-00158         {
-00159                 if (custom_mode_params.size())
-00160                 {
-00161                         for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
-00162                         {
-00163                                 if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
-00164                                 {
-00165                                         log(DEBUG,"Custom mode parameter %c %s removed",mode,parameter);
-00166                                         custom_mode_params.erase(i);
-00167                                         return;
-00168                                 }
-00169                         }
-00170                 }
-00171                 log(DEBUG,"*** BUG *** Attempt to remove non-existent mode parameter!");
-00172         }
-00173 }
-00174 
-00175 bool chanrec::IsCustomModeSet(char mode)
-00176 {
-00177         log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes);
-00178         return (strchr(this->custom_modes,mode) != 0);
-00179 }
-00180 
-00181 std::string chanrec::GetModeParameter(char mode)
-00182 {
-00183         if (custom_mode_params.size())
-00184         {
-00185                 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
-00186                 {
-00187                         if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
-00188                         {
-00189                                 return i->parameter;
-00190                         }
-00191                 }
-00192         }
-00193         return "";
-00194 }
-00195 
-00196 long chanrec::GetUserCounter()
-00197 {
-00198         return (this->internal_userlist.size());
-00199 }
-00200 
-00201 void chanrec::AddUser(char* castuser)
-00202 {
-00203         internal_userlist.push_back(castuser);
-00204         log(DEBUG,"Added casted user to channel's internal list");
-00205 }
-00206 
-00207 void chanrec::DelUser(char* castuser)
-00208 {
-00209         for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++)
-00210         {
-00211                 if (*a == castuser)
-00212                 {
-00213                         log(DEBUG,"Removed casted user from channel's internal list");
-00214                         internal_userlist.erase(a);
-00215                         return;
-00216                 }
-00217         }
-00218         log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name);
-00219 }
-00220 
-00221 std::vector<char*> *chanrec::GetUsers()
-00222 {
-00223         return &internal_userlist;
-00224 }
-

Generated on Mon May 30 05:15:18 2005 for InspIRCd by + + + +

channels.cpp

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 using namespace std;
+00018 
+00019 #include "inspircd_config.h"
+00020 #include "inspircd.h"
+00021 #include "inspircd_io.h"
+00022 #include "inspircd_util.h"
+00023 #include <unistd.h>
+00024 #include <sys/errno.h>
+00025 #include <sys/ioctl.h>
+00026 #include <sys/utsname.h>
+00027 #include <time.h>
+00028 #include <string>
+00029 #ifdef GCC3
+00030 #include <ext/hash_map>
+00031 #else
+00032 #include <hash_map>
+00033 #endif
+00034 #include <map>
+00035 #include <sstream>
+00036 #include <vector>
+00037 #include <deque>
+00038 #include "users.h"
+00039 #include "ctables.h"
+00040 #include "globals.h"
+00041 #include "modules.h"
+00042 #include "dynamic.h"
+00043 #include "wildcard.h"
+00044 #include "message.h"
+00045 #include "mode.h"
+00046 #include "xline.h"
+00047 #include "inspstring.h"
+00048 #include "helperfuncs.h"
+00049 
+00050 #ifdef GCC3
+00051 #define nspace __gnu_cxx
+00052 #else
+00053 #define nspace std
+00054 #endif
+00055 
+00056 extern 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;
+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 }
+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 {
+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         log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes);
+00172         return (strchr(this->custom_modes,mode) != 0);
+00173 }
+00174 
+00175 std::string chanrec::GetModeParameter(char mode)
+00176 {
+00177         if (custom_mode_params.size())
+00178         {
+00179                 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
+00180                 {
+00181                         if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
+00182                         {
+00183                                 return i->parameter;
+00184                         }
+00185                 }
+00186         }
+00187         return "";
+00188 }
+00189 
+00190 long chanrec::GetUserCounter()
+00191 {
+00192         return (this->internal_userlist.size());
+00193 }
+00194 
+00195 void chanrec::AddUser(char* castuser)
+00196 {
+00197         internal_userlist.push_back(castuser);
+00198         log(DEBUG,"Added casted user to channel's internal list");
+00199 }
+00200 
+00201 void chanrec::DelUser(char* castuser)
+00202 {
+00203         for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++)
+00204         {
+00205                 if (*a == castuser)
+00206                 {
+00207                         log(DEBUG,"Removed casted user from channel's internal list");
+00208                         internal_userlist.erase(a);
+00209                         return;
+00210                 }
+00211         }
+00212         log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name);
+00213 }
+00214 
+00215 std::vector<char*> *chanrec::GetUsers()
+00216 {
+00217         return &internal_userlist;
+00218 }
+

Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html index 4d76c273f..cfaa8f104 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -1,14 +1,16 @@ - + InspIRCd: channels.cpp File Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

channels.cpp File Reference

#include "inspircd_config.h"
-#include "inspircd.h"
-#include "inspircd_io.h"
-#include "inspircd_util.h"
+ +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+ +

channels.cpp File Reference

#include "inspircd_config.h"
+#include "inspircd.h"
+#include "inspircd_io.h"
+#include "inspircd_util.h"
#include <unistd.h>
#include <sys/errno.h>
#include <sys/ioctl.h>
@@ -20,131 +22,120 @@ #include <sstream>
#include <vector>
#include <deque>
-#include "connection.h"
-#include "users.h"
-#include "servers.h"
-#include "ctables.h"
-#include "globals.h"
-#include "modules.h"
-#include "dynamic.h"
-#include "wildcard.h"
-#include "message.h"
-#include "mode.h"
-#include "xline.h"
-#include "inspstring.h"
-#include "helperfuncs.h"
- -

-Include dependency graph for channels.cpp:

Include dependency graph
+#include "users.h"
+#include "ctables.h"
+#include "globals.h"
+#include "modules.h"
+#include "dynamic.h"
+#include "wildcard.h"
+#include "message.h"
+#include "mode.h"
+#include "xline.h"
+#include "inspstring.h"
+#include "helperfuncs.h"
+ +

+Include dependency graph for channels.cpp:

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

-Go to the source code of this file. +Go to the source code of this file.
- - - - - - - - - - + + - + + - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - +

Namespaces

namespace  std

Defines

#define nspace   std

Variables

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

Namespaces

namespace  std
std::vector< ircd_module * > factory

Defines

#define nspace   std
int LogLevel

Variables

int MODCOUNT = -1
char ServerName [MAXBUF]
std::vector< Module * > modules
char Network [MAXBUF]
std::vector< ircd_module * > factory
char ServerDesc [MAXBUF]
int LogLevel
char AdminName [MAXBUF]
char ServerName [MAXBUF]
char AdminEmail [MAXBUF]
char Network [MAXBUF]
char AdminNick [MAXBUF]
char ServerDesc [MAXBUF]
char diepass [MAXBUF]
char AdminName [MAXBUF]
char restartpass [MAXBUF]
char AdminEmail [MAXBUF]
char motd [MAXBUF]
char AdminNick [MAXBUF]
char rules [MAXBUF]
char diepass [MAXBUF]
char list [MAXBUF]
char restartpass [MAXBUF]
char PrefixQuit [MAXBUF]
char motd [MAXBUF]
char DieValue [MAXBUF]
char rules [MAXBUF]
int debugging
char list [MAXBUF]
int WHOWAS_STALE
char PrefixQuit [MAXBUF]
int WHOWAS_MAX
char DieValue [MAXBUF]
int DieDelay
int debugging
time_t startup_time
int WHOWAS_STALE
int NetBufferSize
int WHOWAS_MAX
int MaxWhoResults
int DieDelay
time_t nb_start
time_t startup_time
std::vector< std::string > module_names
int NetBufferSize
int boundPortCount
int MaxWhoResults
int portCount
time_t nb_start
int SERVERportCount
std::vector< std::stringmodule_names
int ports [MAXSOCKS]
int boundPortCount
int defaultRoute
int portCount
std::vector< long > auth_cookies
int ports [MAXSOCKS]
std::stringstream config_f
std::stringstream config_f
serverrecme [32]
FILE * log_file
FILE * log_file
time_t TIME
time_t TIME
std::vector< ModeParametercustom_mode_params
std::vector< ModeParametercustom_mode_params


Define Documentation

-

- +

+

- +
#define nspace   std + #define nspace   std
- +
+Definition at line 53 of file channels.cpp.
  @@ -154,22 +145,23 @@ Include dependency graph for channels.cpp:

55 of file channels.cpp.


Variable Documentation

-

- +

+

- +
char AdminEmail[MAXBUF] + char AdminEmail[MAXBUF]
- +
- -
  @@ -177,47 +169,22 @@ Definition at line 55

- -

-Definition at line 67 of file channels.cpp.

-

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

- -

-Definition at line 66 of file channels.cpp.

-

- +

+

- +
char AdminNick[MAXBUF] + char AdminName[MAXBUF]
- +
+
  @@ -225,23 +192,22 @@ Definition at line 66

- -

-Definition at line 68 of file channels.cpp.

-

- +

+

- +
std::vector<long> auth_cookies + char AdminNick[MAXBUF]
- +
+
  @@ -249,23 +215,22 @@ Definition at line 68

- -

-Definition at line 94 of file channels.cpp.

-

- +

+

- +
int boundPortCount + int boundPortCount
- +
+
  @@ -273,23 +238,22 @@ Definition at line 94

- -

-Definition at line 88 of file channels.cpp.

-

- +

+

- +
std::stringstream config_f + std::stringstream config_f
- +
+Referenced by userrec::HasPermission().
  @@ -299,23 +263,22 @@ Definition at line 88

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

-Referenced by userrec::HasPermission().

-

- +

+

- +
std::vector<ModeParameter> custom_mode_params + std::vector<ModeParameter> custom_mode_params
- +
+Referenced by chanrec::GetModeParameter(), and chanrec::SetCustomModeParam().
  @@ -325,23 +288,24 @@ Referenced by userrec::HasPer

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

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

-

- +

+

- +
int debugging + int debugging
- +
- -
  @@ -349,47 +313,22 @@ Referenced by chanrec::Get

- -

-Definition at line 77 of file channels.cpp.

-

- - - - -
- - -
int defaultRoute -
-
- - - -
-   - -

- -

-Definition at line 92 of file channels.cpp.

-

- +

+

- +
int DieDelay + int DieDelay
- +
- -
  @@ -397,47 +336,22 @@ Definition at line 92

- -

-Definition at line 80 of file channels.cpp.

-

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

- -

-Definition at line 69 of file channels.cpp.

-

- +

+

- +
char DieValue[MAXBUF] + char diepass[MAXBUF]
- +
- -
  @@ -445,47 +359,22 @@ Definition at line 69

- -

-Definition at line 75 of file channels.cpp.

-

- - - - -
- - -
std::vector<ircd_module*> factory -
-
- - - -
-   - -

- -

-Definition at line 60 of file channels.cpp.

-

- +

+

- +
char list[MAXBUF] + char DieValue[MAXBUF]
- +
+
  @@ -493,25 +382,22 @@ Definition at line 60

- -

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

-Referenced by Server::GetUsers().

-

- +

+

- +
FILE* log_file + std::vector<ircd_module*> factory
- +
+
  @@ -519,23 +405,22 @@ Referenced by Server::GetUs

- -

-Definition at line 99 of file channels.cpp.

-

- +

+

- +
int LogLevel + char list[MAXBUF]
- +
+Referenced by Server::GetUsers().
  @@ -545,21 +430,22 @@ Definition at line 99

-Definition at line 62 of file channels.cpp.

-

- +

+

- +
int MaxWhoResults + FILE* log_file
- +
+
  @@ -567,23 +453,22 @@ Definition at line 62

- -

-Definition at line 83 of file channels.cpp.

-

- +

+

- +
serverrec* me[32] + int LogLevel
- +
+
  @@ -591,25 +476,22 @@ Definition at line 83

- -

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

-Referenced by IsRoutable().

-

- +

+

- +
int MODCOUNT = -1 + int MaxWhoResults
- +
+Definition at line 81 of file channels.cpp.
  @@ -619,23 +501,22 @@ Referenced by IsRoutable()<

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

-Referenced by Server::FindModule().

-

- +

+

- +
std::vector<std::string> module_names + int MODCOUNT = -1
- +
+Referenced by Server::FindModule().
  @@ -645,23 +526,24 @@ Referenced by Server::FindM

-Definition at line 86 of file channels.cpp. +Definition at line 994 of file modules.cpp.

-Referenced by Server::FindModule().

-

- +

+

- +
std::vector<Module*> modules + std::vector<std::string> module_names
- +
+Referenced by Server::FindModule().
  @@ -671,23 +553,22 @@ Referenced by Server::FindM

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

-Referenced by Server::FindModule().

-

- +

+

- +
char motd[MAXBUF] + std::vector<Module*> modules
- +
+Referenced by Server::FindModule().
  @@ -697,21 +578,22 @@ Referenced by Server::FindM

-Definition at line 71 of file channels.cpp.

-

- +

+

- +
time_t nb_start + char motd[MAXBUF]
- +
+
  @@ -719,23 +601,22 @@ Definition at line 71

- -

-Definition at line 84 of file channels.cpp.

-

- +

+

- +
int NetBufferSize + time_t nb_start
- +
+
  @@ -743,23 +624,22 @@ Definition at line 84

- -

-Definition at line 82 of file channels.cpp.

-

- +

+

- +
char Network[MAXBUF] + int NetBufferSize
- +
+
  @@ -767,23 +647,22 @@ Definition at line 82

- -

-Definition at line 64 of file channels.cpp.

-

- +

+

- +
int portCount + char Network[MAXBUF]
- +
+
  @@ -791,23 +670,22 @@ Definition at line 64

- -

-Definition at line 89 of file channels.cpp.

-

- +

+

- +
int ports[MAXSOCKS] + int portCount
- +
+
  @@ -815,23 +693,22 @@ Definition at line 89

- -

-Definition at line 91 of file channels.cpp.

-

- +

+

- +
char PrefixQuit[MAXBUF] + int ports[MAXSOCKS]
- +
+
  @@ -839,23 +716,22 @@ Definition at line 91

- -

-Definition at line 74 of file channels.cpp.

-

- +

+

- +
char restartpass[MAXBUF] + char PrefixQuit[MAXBUF]
- +
+
  @@ -863,23 +739,22 @@ Definition at line 74

- -

-Definition at line 70 of file channels.cpp.

-

- +

+

- +
char rules[MAXBUF] + char restartpass[MAXBUF]
- +
+
  @@ -887,23 +762,22 @@ Definition at line 70

- -

-Definition at line 72 of file channels.cpp.

-

- +

+

- +
char ServerDesc[MAXBUF] + char rules[MAXBUF]
- +
+
  @@ -911,23 +785,22 @@ Definition at line 72

- -

-Definition at line 65 of file channels.cpp.

-

- +

+

- +
char ServerName[MAXBUF] + char ServerDesc[MAXBUF]
- +
+
  @@ -935,25 +808,22 @@ Definition at line 65

- -

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

-Referenced by userrec::userrec().

-

- +

+

- +
int SERVERportCount + char ServerName[MAXBUF]
- +
+Referenced by userrec::userrec().
  @@ -963,21 +833,22 @@ Referenced by userrec::userre

-Definition at line 90 of file channels.cpp.

-

- +

+

- +
time_t startup_time + time_t startup_time
- +
+
  @@ -985,23 +856,22 @@ Definition at line 90

- -

-Definition at line 81 of file channels.cpp.

-

- +

+

- +
time_t TIME + time_t TIME
- +
+Referenced by userrec::userrec().
  @@ -1011,23 +881,22 @@ Definition at line 81

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

-Referenced by serverrec::FlushWriteBuffers(), serverrec::serverrec(), and userrec::userrec().

-

- +

+

- +
int WHOWAS_MAX + int WHOWAS_MAX
- +
+
  @@ -1035,23 +904,22 @@ Referenced by serverrec::Fl

- -

-Definition at line 79 of file channels.cpp.

-

- +

+

- +
int WHOWAS_STALE + int WHOWAS_STALE
- +
+
  @@ -1059,14 +927,11 @@ Definition at line 79

- -

-Definition at line 78 of file channels.cpp.

-


Generated on Mon May 30 05:15:35 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/channels_8cpp__incl.gif b/docs/module-doc/channels_8cpp__incl.gif index 34da8c3ad..e66f6b07f 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 new file mode 100644 index 000000000..aa0d9b1cb --- /dev/null +++ b/docs/module-doc/channels_8cpp__incl.map @@ -0,0 +1,7 @@ +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 diff --git a/docs/module-doc/channels_8cpp__incl.md5 b/docs/module-doc/channels_8cpp__incl.md5 new file mode 100644 index 000000000..bc705adcd --- /dev/null +++ b/docs/module-doc/channels_8cpp__incl.md5 @@ -0,0 +1 @@ +b9467ee45a5cd937945c9c8802f0376d \ 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 ed610b7f6..e9acc6bb2 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -1,154 +1,155 @@ - + InspIRCd: channels.h Source File - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

channels.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 #include "inspircd_config.h"
-00018 #include "base.h"
-00019 #include <time.h>
-00020 #include <vector>
-00021 #include <string>
-00022 
-00023 #ifndef __CHANNELS_H__
-00024 #define __CHANNELS_H__
-00025 
-00026 #define CM_TOPICLOCK 1
-00027 #define CM_NOEXTERNAL 2
-00028 #define CM_INVITEONLY 4
-00029 #define CM_MODERATED 8
-00030 #define CM_SECRET 16
-00031 #define CM_PRIVATE 32
-00032 
+
+
+
+

channels.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 #include "inspircd_config.h"
+00018 #include "base.h"
+00019 #include <time.h>
+00020 #include <vector>
+00021 #include <string>
+00022 
+00023 #ifndef __CHANNELS_H__
+00024 #define __CHANNELS_H__
+00025 
+00026 #define CM_TOPICLOCK 1
+00027 #define CM_NOEXTERNAL 2
+00028 #define CM_INVITEONLY 4
+00029 #define CM_MODERATED 8
+00030 #define CM_SECRET 16
+00031 #define CM_PRIVATE 32
+00032 
 00036 class HostItem : public classbase
-00037 {
-00038  public:
-00039         time_t set_time;
-00040         char set_by[NICKMAX];
-00041         char data[MAXBUF];
-00042 
-00043         HostItem() { /* stub */ }
-00044         virtual ~HostItem() { /* stub */ }
-00045 };
-00046 
-00047 // banlist is inherited from HostList mainly for readability
-00048 // reasons only
-00049 
+00037 {
+00038  public:
+00039         time_t set_time;
+00040         char set_by[NICKMAX];
+00041         char data[MAXBUF];
+00042 
+00043         HostItem() { /* stub */ }
+00044         virtual ~HostItem() { /* stub */ }
+00045 };
+00046 
+00047 // banlist is inherited from HostList mainly for readability
+00048 // reasons only
+00049 
 00052 class BanItem : public HostItem
-00053 {
-00054 };
-00055 
-00056 // same with this...
-00057 
+00053 {
+00054 };
+00055 
+00056 // same with this...
+00057 
 00060 class ExemptItem : public HostItem
-00061 {
-00062 };
-00063 
-00064 // and this...
-00065 
+00061 {
+00062 };
+00063 
+00064 // and this...
+00065 
 00068 class InviteItem : public HostItem
-00069 {
-00070 };
-00071 
-00072 
+00069 {
+00070 };
+00071 
+00072 
 00077 class ModeParameter : public classbase
-00078 {
-00079  public:
-00080         char mode;
-00081         char parameter[MAXBUF];
-00082         char channel[CHANMAX];
-00083 };
-00084 
-00087 typedef std::vector<BanItem>    BanList;
-00088 
-00091 typedef std::vector<ExemptItem> ExemptList;
-00092 
-00095 typedef std::vector<InviteItem> InviteList;
-00096 
+00078 {
+00079  public:
+00080         char mode;
+00081         char parameter[MAXBUF];
+00082         char channel[CHANMAX];
+00083 };
+00084 
+00087 typedef std::vector<BanItem>    BanList;
+00088 
+00091 typedef std::vector<ExemptItem> ExemptList;
+00092 
+00095 typedef std::vector<InviteItem> InviteList;
+00096 
 00101 class chanrec : public Extensible
-00102 {
-00103  public:
-00106         char name[CHANMAX]; /* channel name */
-00110         char custom_modes[MAXMODES];     /* modes handled by modules */
-00111 
-00115         std::vector<char*> internal_userlist;
-00116         
-00120         char topic[MAXBUF];
-00123         time_t created;
-00127         time_t topicset;
-00131         char setby[NICKMAX];
-00132 
-00136         short int limit;
-00137         
-00141         char key[32];
-00142         
-00145         char binarymodes;
-00146         
-00149         BanList bans;
-00150         
-00155         void SetCustomMode(char mode,bool mode_on);
-00156 
-00162         void SetCustomModeParam(char mode,char* parameter,bool mode_on);
-00163  
-00168         bool IsCustomModeSet(char mode);
-00169 
-00180         std::string GetModeParameter(char mode);
-00181 
-00189         long GetUserCounter();
-00190 
-00198         void AddUser(char* castuser);
-00199 
-00207         void DelUser(char* castuser);
-00208 
-00218         std::vector<char*> *GetUsers();
-00219 
-00222         chanrec();
-00223 
-00224         virtual ~chanrec() { /* stub */ }
-00225 };
-00226 
-00227 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o
-00228  * needs to come AFTER struct chanrec */
-00229 
-00230 #define UCMODE_OP      1
-00231 #define UCMODE_VOICE   2
-00232 #define UCMODE_HOP     4
-00233 #define UCMODE_PROTECT 8
-00234 #define UCMODE_FOUNDER 16
-00235  
+00102 {
+00103  public:
+00106         char name[CHANMAX]; /* channel name */
+00110         char custom_modes[MAXMODES];     /* modes handled by modules */
+00111 
+00115         std::vector<char*> internal_userlist;
+00116         
+00120         char topic[MAXBUF];
+00123         time_t created;
+00127         time_t topicset;
+00131         char setby[NICKMAX];
+00132 
+00136         short int limit;
+00137         
+00141         char key[32];
+00142         
+00145         char binarymodes;
+00146         
+00149         BanList bans;
+00150         
+00155         void SetCustomMode(char mode,bool mode_on);
+00156 
+00162         void SetCustomModeParam(char mode,char* parameter,bool mode_on);
+00163  
+00168         bool IsCustomModeSet(char mode);
+00169 
+00180         std::string GetModeParameter(char mode);
+00181 
+00189         long GetUserCounter();
+00190 
+00198         void AddUser(char* castuser);
+00199 
+00207         void DelUser(char* castuser);
+00208 
+00218         std::vector<char*> *GetUsers();
+00219 
+00222         chanrec();
+00223 
+00224         virtual ~chanrec() { /* stub */ }
+00225 };
+00226 
+00227 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o
+00228  * needs to come AFTER struct chanrec */
+00229 
+00230 #define UCMODE_OP      1
+00231 #define UCMODE_VOICE   2
+00232 #define UCMODE_HOP     4
+00233 #define UCMODE_PROTECT 8
+00234 #define UCMODE_FOUNDER 16
+00235  
 00241 class ucrec : public classbase
-00242 {
-00243  public:
-00247         char uc_modes;
-00248         
-00252         chanrec *channel;
-00253 
-00254         ucrec() { /* stub */ }
-00255         virtual ~ucrec() { /* stub */ }
-00256 };
-00257 
-00258 #endif
-00259 
-

Generated on Mon May 30 05:15:19 2005 for InspIRCd by +00242 { +00243 public: +00247 char uc_modes; +00248 +00252 chanrec *channel; +00253 +00254 ucrec() { /* stub */ } +00255 virtual ~ucrec() { /* stub */ } +00256 }; +00257 +00258 #endif +00259 +

Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815 diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index 6ecb753de..b1a4e82db 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -1,107 +1,110 @@ - + InspIRCd: channels.h File Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

channels.h File Reference

#include "inspircd_config.h"
-#include "base.h"
+ +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+ +

channels.h File Reference

#include "inspircd_config.h"
+#include "base.h"
#include <time.h>
#include <vector>
#include <string>

-Include dependency graph for channels.h:

Include dependency graph
+Include dependency graph for channels.h:

- +

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

Included by dependency graph
+This graph shows which files directly or indirectly include this file:

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

-Go to the source code of this file. +Go to the source code of this file.
- - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - + + + - + - + - + - + - + - + - + - + - + - + - - + + - - + + - - + + - +

Compounds

class  BanItem

Classes

class  HostItem
 A subclass of HostItem designed to hold channel bans (+b). More...

class  chanrec
 Holds an entry for a ban list, exemption list, or invite list. More...
class  BanItem
 Holds all relevent information for a channel. More...

class  ExemptItem
 A subclass of HostItem designed to hold channel bans (+b). More...
class  ExemptItem
 A subclass of HostItem designed to hold channel exempts (+e). More...

class  HostItem
 A subclass of HostItem designed to hold channel exempts (+e). More...
class  InviteItem
 Holds an entry for a ban list, exemption list, or invite list. More...

class  InviteItem
 A subclass of HostItem designed to hold channel invites (+I). More...
class  ModeParameter
 A subclass of HostItem designed to hold channel invites (+I). More...

class  ModeParameter
 Holds a custom parameter to a module-defined channel mode e.g. More...
class  chanrec
 Holds a custom parameter to a module-defined channel mode e.g. More...

class  ucrec
 Holds all relevent information for a channel. More...
class  ucrec
 Holds 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. More...


Defines

#define CM_TOPICLOCK   1
 Holds 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. More...

Defines

#define CM_TOPICLOCK   1
#define CM_NOEXTERNAL   2
#define CM_NOEXTERNAL   2
#define CM_INVITEONLY   4
#define CM_INVITEONLY   4
#define CM_MODERATED   8
#define CM_MODERATED   8
#define CM_SECRET   16
#define CM_SECRET   16
#define CM_PRIVATE   32
#define CM_PRIVATE   32
#define UCMODE_OP   1
#define UCMODE_OP   1
#define UCMODE_VOICE   2
#define UCMODE_VOICE   2
#define UCMODE_HOP   4
#define UCMODE_HOP   4
#define UCMODE_PROTECT   8
#define UCMODE_PROTECT   8
#define UCMODE_FOUNDER   16
#define UCMODE_FOUNDER   16

Typedefs

typedef std::vector< BanItemBanList

Typedefs

typedef std::vector< BanItemBanList
 Holds a complete ban list.

typedef std::vector< ExemptItemExemptList
 Holds a complete ban list.
typedef std::vector< ExemptItemExemptList
 Holds a complete exempt list.

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

 Holds a complete invite list.


Define Documentation

-

- +

+

- +
#define CM_INVITEONLY   4 + #define CM_INVITEONLY   4
- +
  @@ -114,18 +117,19 @@ This graph shows which files directly or indirectly include this file:

28 of file channels.h.
-

- +

+

- +
#define CM_MODERATED   8 + #define CM_MODERATED   8
- +
  @@ -138,18 +142,19 @@ Definition at line 28 of Definition at line 29 of file channels.h.
-

- +

+

- +
#define CM_NOEXTERNAL   2 + #define CM_NOEXTERNAL   2
- +
  @@ -162,18 +167,19 @@ Definition at line 29 of Definition at line 27 of file channels.h.
-

- +

+

- +
#define CM_PRIVATE   32 + #define CM_PRIVATE   32
- +
  @@ -186,18 +192,19 @@ Definition at line 27 of Definition at line 31 of file channels.h.
-

- +

+

- +
#define CM_SECRET   16 + #define CM_SECRET   16
- +
  @@ -210,18 +217,19 @@ Definition at line 31 of Definition at line 30 of file channels.h.
-

- +

+

- +
#define CM_TOPICLOCK   1 + #define CM_TOPICLOCK   1
- +
  @@ -234,18 +242,19 @@ Definition at line 30 of Definition at line 26 of file channels.h.
-

- +

+

- +
#define UCMODE_FOUNDER   16 + #define UCMODE_FOUNDER   16
- +
  @@ -258,18 +267,19 @@ Definition at line 26 of Definition at line 234 of file channels.h.
-

- +

+

- +
#define UCMODE_HOP   4 + #define UCMODE_HOP   4
- +
  @@ -282,18 +292,19 @@ Definition at line 234 o Definition at line 232 of file channels.h.
-

- +

+

- +
#define UCMODE_OP   1 + #define UCMODE_OP   1
- +
  @@ -306,18 +317,19 @@ Definition at line 232 o Definition at line 230 of file channels.h.
-

- +

+

- +
#define UCMODE_PROTECT   8 + #define UCMODE_PROTECT   8
- +
  @@ -330,18 +342,19 @@ Definition at line 230 o Definition at line 233 of file channels.h.
-

- +

+

- +
#define UCMODE_VOICE   2 + #define UCMODE_VOICE   2
- +
  @@ -355,18 +368,19 @@ Definition at line 231 o


Typedef Documentation

-

- +

+

- +
typedef std::vector<BanItem> BanList + typedef std::vector<BanItem> BanList
- +
  @@ -381,18 +395,19 @@ Holds a complete ban list. Definition at line 87 of file channels.h.
-

- +

+

- +
typedef std::vector<ExemptItem> ExemptList + typedef std::vector<ExemptItem> ExemptList
- +
  @@ -407,18 +422,19 @@ Holds a complete exempt list. Definition at line 91 of file channels.h.
-

- +

+

- +
typedef std::vector<InviteItem> InviteList + typedef std::vector<InviteItem> InviteList
- +
  @@ -433,9 +449,8 @@ Holds a complete invite list. Definition at line 95 of file channels.h.
-


Generated on Mon May 30 05:15:38 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+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 d87ad78cd..c30f900f1 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 new file mode 100644 index 000000000..6a4cbd04f --- /dev/null +++ b/docs/module-doc/channels_8h__dep__incl.map @@ -0,0 +1,9 @@ +base referer +rect $users_8cpp-source.html 267,7 347,33 +rect $users_8h-source.html 144,199 208,225 +rect $commands_8h-source.html 257,311 356,337 +rect $message_8h-source.html 264,57 349,84 +rect $mode_8h-source.html 273,159 340,185 +rect $xline_8h-source.html 276,260 337,287 +rect $channels_8cpp-source.html 405,133 504,160 +rect $modules_8cpp-source.html 405,209 504,236 diff --git a/docs/module-doc/channels_8h__dep__incl.md5 b/docs/module-doc/channels_8h__dep__incl.md5 new file mode 100644 index 000000000..25db181a9 --- /dev/null +++ b/docs/module-doc/channels_8h__dep__incl.md5 @@ -0,0 +1 @@ +3803f94897b7a90d54a987bd74d935ae \ No newline at end of file diff --git a/docs/module-doc/channels_8h__incl.gif b/docs/module-doc/channels_8h__incl.gif index 942ae4726..8e4dd03bb 100644 Binary files a/docs/module-doc/channels_8h__incl.gif and b/docs/module-doc/channels_8h__incl.gif differ diff --git a/docs/module-doc/channels_8h__incl.map b/docs/module-doc/channels_8h__incl.map new file mode 100644 index 000000000..ee5bd9558 --- /dev/null +++ b/docs/module-doc/channels_8h__incl.map @@ -0,0 +1,2 @@ +base referer +rect $base_8h-source.html 143,108 204,135 diff --git a/docs/module-doc/channels_8h__incl.md5 b/docs/module-doc/channels_8h__incl.md5 new file mode 100644 index 000000000..e2b7ccf71 --- /dev/null +++ b/docs/module-doc/channels_8h__incl.md5 @@ -0,0 +1 @@ +bff3dff79fdca44ef00db5b6a6df4411 \ No newline at end of file diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index f41a63688..493a13aa1 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -1,21 +1,20 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

Admin Member List

This is the complete list of members for Admin, including all inherited members. - - - - - - - -
Admin(std::string name, std::string email, std::string nick)Admin
ageclassbase
classbase()classbase [inline]
EmailAdmin
NameAdmin
NickAdmin
~classbase()classbase [inline]

Generated on Mon May 30 05:16:26 2005 for InspIRCd by + + +

Admin Member List

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

+ + + + + + + +
Admin(std::string name, std::string email, std::string nick)Admin
ageclassbase
classbase()classbase [inline]
EmailAdmin
NameAdmin
NickAdmin
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index e8c844063..d026f9314 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -1,78 +1,77 @@ - + -InspIRCd: Admin class Reference +InspIRCd: Admin Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

Admin Class Reference

Holds /ADMIN data This class contains the admin details of the local server. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

Admin Class Reference

Holds /ADMIN data This class contains the admin details of the local server. More...

#include <modules.h>

Inheritance diagram for Admin:

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

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

Public Member Functions

 Admin (std::string name, std::string email, std::string nick)

Public Member Functions

 Admin (std::string name, std::string email, std::string nick)

Public Attributes

const std::string Name

Public Attributes

const std::string Name
const std::string Email
const std::string Email
const std::string Nick
const std::string Nick

Detailed Description

Holds /ADMIN data This class contains the admin details of the local server.

-It is constructed by class Server, and has three read-only values, Name, Email and Nick that contain the specified values for the server where the module is running. +It is constructed by class Server, and has three read-only values, Name, Email and Nick that contain the specified values for the server where the module is running.

-Definition at line 123 of file modules.h.


Constructor & Destructor Documentation

-

- +Definition at line 124 of file modules.h.

Constructor & Destructor Documentation

+

+

- + - + - - - + + + - - - + + + - + -
Admin::Admin Admin::Admin std::string std::string  name,
std::string std::string  email,
std::string std::string  nick
- +
+
  @@ -82,25 +81,26 @@ Definition at line 123 of

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

00250 : Name(name), Email(email), Nick(nick) { };
+

-

00249 : Name(name), Email(email), Nick(nick) { };
-


Member Data Documentation

-

- +

+

- +
const std::string Admin::Email + const std::string Admin::Email
- +
+Definition at line 127 of file modules.h.
  @@ -110,21 +110,22 @@ Definition at line 249

-Definition at line 126 of file modules.h.

-

- +

+

- +
const std::string Admin::Name + const std::string Admin::Name
- +
+Definition at line 127 of file modules.h.
  @@ -134,21 +135,22 @@ Definition at line 126 of

-Definition at line 126 of file modules.h.

-

- +

+

- +
const std::string Admin::Nick + const std::string Admin::Nick
- +
+Definition at line 127 of file modules.h.
  @@ -158,14 +160,13 @@ Definition at line 126 of

-Definition at line 126 of file modules.h.


The documentation for this class was generated from the following files: -
Generated on Mon May 30 05:16:26 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classAdmin__coll__graph.gif b/docs/module-doc/classAdmin__coll__graph.gif index 7c9558a17..4d6bd25b8 100644 Binary files a/docs/module-doc/classAdmin__coll__graph.gif and b/docs/module-doc/classAdmin__coll__graph.gif differ diff --git a/docs/module-doc/classAdmin__coll__graph.map b/docs/module-doc/classAdmin__coll__graph.map new file mode 100644 index 000000000..f3b09806a --- /dev/null +++ b/docs/module-doc/classAdmin__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,97 87,124 diff --git a/docs/module-doc/classAdmin__coll__graph.md5 b/docs/module-doc/classAdmin__coll__graph.md5 new file mode 100644 index 000000000..3b4270359 --- /dev/null +++ b/docs/module-doc/classAdmin__coll__graph.md5 @@ -0,0 +1 @@ +fcbd9425e21197cf5397149daaa0139a \ No newline at end of file diff --git a/docs/module-doc/classAdmin__inherit__graph.gif b/docs/module-doc/classAdmin__inherit__graph.gif index 2b622c6ae..35c9d8d18 100644 Binary files a/docs/module-doc/classAdmin__inherit__graph.gif and b/docs/module-doc/classAdmin__inherit__graph.gif differ diff --git a/docs/module-doc/classAdmin__inherit__graph.map b/docs/module-doc/classAdmin__inherit__graph.map new file mode 100644 index 000000000..8b1d85be3 --- /dev/null +++ b/docs/module-doc/classAdmin__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,7 87,34 diff --git a/docs/module-doc/classAdmin__inherit__graph.md5 b/docs/module-doc/classAdmin__inherit__graph.md5 new file mode 100644 index 000000000..d5ab12e24 --- /dev/null +++ b/docs/module-doc/classAdmin__inherit__graph.md5 @@ -0,0 +1 @@ +f2ce1930250eba1618d507c7a89a6c44 \ No newline at end of file diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index 8a0df5530..15d2909d0 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -1,22 +1,21 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

BanItem Member List

This is the complete list of members for BanItem, including all inherited members. - - - - - - - - -
ageclassbase
classbase()classbase [inline]
dataHostItem
HostItem()HostItem [inline]
set_byHostItem
set_timeHostItem
~classbase()classbase [inline]
~HostItem()HostItem [inline, virtual]

Generated on Mon May 30 05:16:28 2005 for InspIRCd by + + +

BanItem Member List

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

+ + + + + + + + +
ageclassbase
classbase()classbase [inline]
dataHostItem
HostItem()HostItem [inline]
set_byHostItem
set_timeHostItem
~classbase()classbase [inline]
~HostItem()HostItem [inline, virtual]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index 96853c0d3..7dd3b43e8 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -1,26 +1,26 @@ - + -InspIRCd: BanItem class Reference +InspIRCd: BanItem Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

BanItem Class Reference

A subclass of HostItem designed to hold channel bans (+b). + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

BanItem Class Reference

A subclass of HostItem designed to hold channel bans (+b). More...

#include <channels.h>

Inheritance diagram for BanItem:

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

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

Detailed Description

@@ -30,9 +30,8 @@ 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 May 30 05:16:28 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classBanItem__coll__graph.gif b/docs/module-doc/classBanItem__coll__graph.gif index a8fc7afab..8d3f9254b 100644 Binary files a/docs/module-doc/classBanItem__coll__graph.gif and b/docs/module-doc/classBanItem__coll__graph.gif differ diff --git a/docs/module-doc/classBanItem__coll__graph.map b/docs/module-doc/classBanItem__coll__graph.map new file mode 100644 index 000000000..84658baf1 --- /dev/null +++ b/docs/module-doc/classBanItem__coll__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classHostItem.html 109,204 184,231 +rect $classclassbase.html 107,98 187,124 diff --git a/docs/module-doc/classBanItem__coll__graph.md5 b/docs/module-doc/classBanItem__coll__graph.md5 new file mode 100644 index 000000000..25fdad153 --- /dev/null +++ b/docs/module-doc/classBanItem__coll__graph.md5 @@ -0,0 +1 @@ +76872e97aabfd7501a98401b0eb2f0ba \ No newline at end of file diff --git a/docs/module-doc/classBanItem__inherit__graph.gif b/docs/module-doc/classBanItem__inherit__graph.gif index dec40731b..5a8bc8e92 100644 Binary files a/docs/module-doc/classBanItem__inherit__graph.gif and b/docs/module-doc/classBanItem__inherit__graph.gif differ diff --git a/docs/module-doc/classBanItem__inherit__graph.map b/docs/module-doc/classBanItem__inherit__graph.map new file mode 100644 index 000000000..6bc1ce88e --- /dev/null +++ b/docs/module-doc/classBanItem__inherit__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classHostItem.html 9,81 84,108 +rect $classclassbase.html 7,7 87,33 diff --git a/docs/module-doc/classBanItem__inherit__graph.md5 b/docs/module-doc/classBanItem__inherit__graph.md5 new file mode 100644 index 000000000..c990276bd --- /dev/null +++ b/docs/module-doc/classBanItem__inherit__graph.md5 @@ -0,0 +1 @@ +592e35411807445bb35f00b94b76a8da \ No newline at end of file diff --git a/docs/module-doc/classBoolSet-members.html b/docs/module-doc/classBoolSet-members.html index 1a61e76c7..c0728dad7 100644 --- a/docs/module-doc/classBoolSet-members.html +++ b/docs/module-doc/classBoolSet-members.html @@ -1,25 +1,24 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

BoolSet Member List

This is the complete list of members for BoolSet, including all inherited members. - - - - - - - - - - - -
bitsBoolSet [private]
BoolSet()BoolSet
BoolSet(char bitmask)BoolSet
Get(int number)BoolSet
Invert(int number)BoolSet
operator &(BoolSet other)BoolSet
operator=(BoolSet other)BoolSet
operator==(BoolSet other)BoolSet
operator|(BoolSet other)BoolSet
Set(int number)BoolSet
Unset(int number)BoolSet

Generated on Mon May 30 05:16:29 2005 for InspIRCd by + + +

BoolSet Member List

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

+ + + + + + + + + + + +
bitsBoolSet [private]
BoolSet()BoolSet
BoolSet(char bitmask)BoolSet
Get(int number)BoolSet
Invert(int number)BoolSet
operator &(BoolSet other)BoolSet
operator=(BoolSet other)BoolSet
operator==(BoolSet other)BoolSet
operator|(BoolSet other)BoolSet
Set(int number)BoolSet
Unset(int number)BoolSet


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classBoolSet.html b/docs/module-doc/classBoolSet.html index bf356dabe..c812aee4f 100644 --- a/docs/module-doc/classBoolSet.html +++ b/docs/module-doc/classBoolSet.html @@ -1,79 +1,78 @@ - + -InspIRCd: BoolSet class Reference +InspIRCd: BoolSet Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

BoolSet Class Reference

BoolSet is a utility class designed to hold eight bools in a bitmask. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

BoolSet Class Reference

BoolSet is a utility class designed to hold eight bools in a bitmask. More...

#include <base.h>

Collaboration diagram for BoolSet:

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

Public Member Functions

 BoolSet ()

Public Member Functions

 BoolSet ()
 The default constructor initializes the BoolSet to all values unset.

 BoolSet (char bitmask)
 The default constructor initializes the BoolSet to all values unset.
 BoolSet (char bitmask)
 This constructor copies the default bitmask from a char.

void Set (int number)
 This constructor copies the default bitmask from a char.
void Set (int number)
 The Set method sets one bool in the set.

bool Get (int number)
 The Set method sets one bool in the set.
bool Get (int number)
 The Get method returns the value of one bool in the set.

void Unset (int number)
 The Get method returns the value of one bool in the set.
void Unset (int number)
 The Unset method unsets one value in the set.

void Invert (int number)
 The Unset method unsets one value in the set.
void Invert (int number)
 The Unset method inverts (flips) one value in the set.

bool operator== (BoolSet other)
 The Unset method inverts (flips) one value in the set.
bool operator== (BoolSet other)
 Compare two BoolSets.

BoolSet operator| (BoolSet other)
 Compare two BoolSets.
BoolSet operator| (BoolSet other)
 OR two BoolSets together.

BoolSet operator & (BoolSet other)
 OR two BoolSets together.
BoolSet operator & (BoolSet other)
 AND two BoolSets together.

bool operator= (BoolSet other)
 AND two BoolSets together.
bool operator= (BoolSet other)
 Assign one BoolSet to another.


Private Attributes

char bits
 Assign one BoolSet to another.

Private Attributes

char bits

Detailed Description

BoolSet is a utility class designed to hold eight bools in a bitmask.

-Use BoolSet::Set and BoolSet::Get to set and get bools in the bitmask, and Unset and Invert for special operations upon them. +Use BoolSet::Set and BoolSet::Get to set and get bools in the bitmask, and Unset and Invert for special operations upon them.

-Definition at line 98 of file base.h.


Constructor & Destructor Documentation

-

- +Definition at line 95 of file base.h.

Constructor & Destructor Documentation

+

+

- + -
BoolSet::BoolSet BoolSet::BoolSet  ) 
- +
  @@ -86,25 +85,24 @@ The default constructor initializes the BoolSet to all values unset.
-

- +

+

- + -
BoolSet::BoolSet BoolSet::BoolSet char  bitmask  ) 
- +
  @@ -118,25 +116,24 @@ This constructor copies the default bitmask from a char.


Member Function Documentation

-

- +

+

- + -
bool BoolSet::Get bool BoolSet::Get int  number  ) 
- +
  @@ -148,32 +145,31 @@ The Get method returns the value of one bool in the set.

Parameters:
- +
number The number of the item to retrieve. This must be between 0 and 7.
number The number of the item to retrieve. This must be between 0 and 7.
Returns:
True if the item is set, false if it is unset.
-

- +

+

- + -
void BoolSet::Invert void BoolSet::Invert int  number  ) 
- +
  @@ -185,31 +181,30 @@ The Unset method inverts (flips) one value in the set.

Parameters:
- +
number The number of the item to invert. This must be between 0 and 7.
number The number of the item to invert. This must be between 0 and 7.
-

- +

+

- + -
BoolSet BoolSet::operator & BoolSet BoolSet::operator & BoolSet  other  ) 
- +
  @@ -222,25 +217,24 @@ AND two BoolSets together.
-

- +

+

- + -
bool BoolSet::operator= bool BoolSet::operator= BoolSet  other  ) 
- +
  @@ -253,25 +247,24 @@ Assign one BoolSet to another.
-

- +

+

- + -
bool BoolSet::operator== bool BoolSet::operator== BoolSet  other  ) 
- +
  @@ -284,25 +277,24 @@ Compare two BoolSets.
-

- +

+

- + -
BoolSet BoolSet::operator| BoolSet BoolSet::operator| BoolSet  other  ) 
- +
  @@ -315,25 +307,24 @@ OR two BoolSets together.
-

- +

+

- + -
void BoolSet::Set void BoolSet::Set int  number  ) 
- +
  @@ -345,31 +336,30 @@ The Set method sets one bool in the set.

Parameters:
- +
number The number of the item to set. This must be between 0 and 7.
number The number of the item to set. This must be between 0 and 7.
-

- +

+

- + -
void BoolSet::Unset void BoolSet::Unset int  number  ) 
- +
  @@ -381,25 +371,26 @@ The Unset method unsets one value in the set.

Parameters:
- +
number The number of the item to set. This must be between 0 and 7.
number The number of the item to set. This must be between 0 and 7.


Member Data Documentation

-

- +

+

- +
char BoolSet::bits [private] + char BoolSet::bits [private]
- +
+Definition at line 97 of file base.h.
  @@ -409,14 +400,13 @@ The Unset method unsets one value in the set.

-Definition at line 100 of file base.h.


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:16:29 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classBoolSet__coll__graph.gif b/docs/module-doc/classBoolSet__coll__graph.gif index 044a9d4a5..a430a4a72 100644 Binary files a/docs/module-doc/classBoolSet__coll__graph.gif and b/docs/module-doc/classBoolSet__coll__graph.gif differ diff --git a/docs/module-doc/classBoolSet__coll__graph.map b/docs/module-doc/classBoolSet__coll__graph.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/classBoolSet__coll__graph.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/classBoolSet__coll__graph.md5 b/docs/module-doc/classBoolSet__coll__graph.md5 new file mode 100644 index 000000000..c861c5189 --- /dev/null +++ b/docs/module-doc/classBoolSet__coll__graph.md5 @@ -0,0 +1 @@ +88453d18f19c0804f5ae9ad5d18e7152 \ No newline at end of file diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index 4b1de8e41..27016f475 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -1,32 +1,31 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

ConfigReader Member List

This is the complete list of members for ConfigReader, including all inherited members. - - - - - - - - - - - - - - - - - - -
ageclassbase
cacheConfigReader [protected]
classbase()classbase [inline]
ConfigReader()ConfigReader
ConfigReader(std::string filename)ConfigReader
DumpErrors(bool bail, userrec *user)ConfigReader
Enumerate(std::string tag)ConfigReader
EnumerateValues(std::string tag, int index)ConfigReader
errorConfigReader [protected]
errorlogConfigReader [protected]
GetError()ConfigReader
readerrorConfigReader [protected]
ReadFlag(std::string tag, std::string name, int index)ConfigReader
ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned)ConfigReader
ReadValue(std::string tag, std::string name, int index)ConfigReader
Verify()ConfigReader
~classbase()classbase [inline]
~ConfigReader()ConfigReader

Generated on Mon May 30 05:16:42 2005 for InspIRCd by + + +

ConfigReader Member List

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

+ + + + + + + + + + + + + + + + + + +
ageclassbase
cacheConfigReader [protected]
classbase()classbase [inline]
ConfigReader()ConfigReader
ConfigReader(std::string filename)ConfigReader
DumpErrors(bool bail, userrec *user)ConfigReader
Enumerate(std::string tag)ConfigReader
EnumerateValues(std::string tag, int index)ConfigReader
errorConfigReader [protected]
errorlogConfigReader [protected]
GetError()ConfigReader
readerrorConfigReader [protected]
ReadFlag(std::string tag, std::string name, int index)ConfigReader
ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned)ConfigReader
ReadValue(std::string tag, std::string name, int index)ConfigReader
Verify()ConfigReader
~classbase()classbase [inline]
~ConfigReader()ConfigReader


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 8c0b0a5f1..331390141 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -1,97 +1,96 @@ - + -InspIRCd: ConfigReader class Reference +InspIRCd: ConfigReader Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

ConfigReader Class Reference

Allows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

ConfigReader Class Reference

Allows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file. More...

#include <modules.h>

Inheritance diagram for ConfigReader:

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

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

Public Member Functions

 ConfigReader ()

Public Member Functions

 ConfigReader ()
 Default constructor.

 ConfigReader (std::string filename)
 Default constructor.
 ConfigReader (std::string filename)
 Overloaded constructor.

 ~ConfigReader ()
 Overloaded constructor.
 ~ConfigReader ()
 Default destructor.

std::string ReadValue (std::string tag, std::string name, int index)
 Default destructor.
std::string ReadValue (std::string tag, std::string name, int index)
 Retrieves a value from the config file.

bool ReadFlag (std::string tag, std::string name, int index)
 Retrieves a value from the config file.
bool ReadFlag (std::string tag, std::string name, int index)
 Retrieves a boolean value from the config file.

long ReadInteger (std::string tag, std::string name, int index, bool needs_unsigned)
 Retrieves a boolean value from the config file.
long ReadInteger (std::string tag, std::string name, int index, bool needs_unsigned)
 Retrieves an integer value from the config file.

long GetError ()
 Retrieves an integer value from the config file.
long GetError ()
 Returns the last error to occur.

int Enumerate (std::string tag)
 Returns the last error to occur.
int Enumerate (std::string tag)
 Counts the number of times a given tag appears in the config file.

bool Verify ()
 Counts the number of times a given tag appears in the config file.
bool Verify ()
 Returns true if a config file is valid.

void DumpErrors (bool bail, userrec *user)
 Returns true if a config file is valid.
void DumpErrors (bool bail, userrec *user)
 Dumps the list of errors in a config file to an output location.

int EnumerateValues (std::string tag, int index)
 Dumps the list of errors in a config file to an output location.
int EnumerateValues (std::string tag, int index)
 Returns the number of items within a tag.


Protected Attributes

std::stringstream * cache
 Returns the number of items within a tag.

Protected Attributes

std::stringstream * cache
 The contents of the configuration file This protected member should never be accessed by a module (and cannot be accessed unless the core is changed).

std::stringstream * errorlog
 The contents of the configuration file This protected member should never be accessed by a module (and cannot be accessed unless the core is changed).
std::stringstream * errorlog
bool readerror
bool readerror
 Used to store errors.

long error
 Used to store errors.
long error

Detailed Description

Allows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file.

-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. +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.

-Definition at line 1150 of file modules.h.


Constructor & Destructor Documentation

-

- +Definition at line 1121 of file modules.h.

Constructor & Destructor Documentation

+

+

- + -
ConfigReader::ConfigReader ConfigReader::ConfigReader  ) 
- +
+
  @@ -103,40 +102,39 @@ Default constructor.

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

-Definition at line 821 of file modules.cpp. +Definition at line 796 of file modules.cpp.

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

00797 {
+00798         include_stack.clear();
+00799         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00800         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00801         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
+00802         if (!this->readerror)
+00803                 this->error = CONF_FILE_NOT_FOUND;
+00804 }
+

-

00822 {
-00823         include_stack.clear();
-00824         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00825         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00826         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
-00827         if (!this->readerror)
-00828                 this->error = CONF_FILE_NOT_FOUND;
-00829 }
-
-

- +

+

- + - + -
ConfigReader::ConfigReader ConfigReader::ConfigReader std::string std::string  filename  ) 
- +
+
  @@ -148,38 +146,37 @@ Overloaded constructor.

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

-Definition at line 841 of file modules.cpp. +Definition at line 816 of file modules.cpp.

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

00817 {
+00818         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00819         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
+00820         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
+00821         if (!this->readerror)
+00822                 this->error = CONF_FILE_NOT_FOUND;
+00823 };
+

-

00842 {
-00843         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00844         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
-00845         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
-00846         if (!this->readerror)
-00847                 this->error = CONF_FILE_NOT_FOUND;
-00848 };
-
-

- +

+

- + -
ConfigReader::~ConfigReader ConfigReader::~ConfigReader  ) 
- +
+
  @@ -191,48 +188,47 @@ Default destructor.

This method destroys the ConfigReader class.

-Definition at line 832 of file modules.cpp. +Definition at line 807 of file modules.cpp.

-References cache, and errorlog. +References cache, and errorlog.

00808 {
+00809         if (this->cache)
+00810                 delete this->cache;
+00811         if (this->errorlog)
+00812                 delete this->errorlog;
+00813 }
+

-

00833 {
-00834         if (this->cache)
-00835                 delete this->cache;
-00836         if (this->errorlog)
-00837                 delete this->errorlog;
-00838 }
-


Member Function Documentation

-

- +

+

- + - - + + - + -
void ConfigReader::DumpErrors void ConfigReader::DumpErrors bool  bail,
userrec user
- +
+Definition at line 894 of file modules.cpp. +

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

00895 {
+00896         if (bail)
+00897         {
+00898                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
+00899                 exit(0);
+00900         }
+00901         else
+00902         {
+00903                 char dataline[1024];
+00904                 if (user)
+00905                 {
+00906                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
+00907                         while (!errorlog->eof())
+00908                         {
+00909                                 errorlog->getline(dataline,1024);
+00910                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
+00911                         }
+00912                 }
+00913                 else
+00914                 {
+00915                         WriteOpers("There were errors in the configuration file:",user->nick);
+00916                         while (!errorlog->eof())
+00917                         {
+00918                                 errorlog->getline(dataline,1024);
+00919                                 WriteOpers(dataline);
+00920                         }
+00921                 }
+00922                 return;
+00923         }
+00924 }
+
+

+

  @@ -244,62 +240,61 @@ 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 919 of file modules.cpp. -

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

-

00920 {
-00921         if (bail)
-00922         {
-00923                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
-00924                 exit(0);
-00925         }
-00926         else
-00927         {
-00928                 char dataline[1024];
-00929                 if (user)
-00930                 {
-00931                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
-00932                         while (!errorlog->eof())
-00933                         {
-00934                                 errorlog->getline(dataline,1024);
-00935                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
-00936                         }
-00937                 }
-00938                 else
-00939                 {
-00940                         WriteOpers("There were errors in the configuration file:",user->nick);
-00941                         while (!errorlog->eof())
-00942                         {
-00943                                 errorlog->getline(dataline,1024);
-00944                                 WriteOpers(dataline);
-00945                         }
-00946                 }
-00947                 return;
-00948         }
-00949 }
-
-

- +

+

- + - + -
int ConfigReader::Enumerate int ConfigReader::Enumerate std::string std::string  tag  ) 
- +
+
  @@ -309,46 +304,45 @@ References errorlog, 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. +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 952 of file modules.cpp. +Definition at line 927 of file modules.cpp.

-References cache. +References cache.

00928 {
+00929         return EnumConf(cache,tag.c_str());
+00930 }
+

-

00953 {
-00954         return EnumConf(cache,tag.c_str());
-00955 }
-
-

- +

+

- + - + - - + + - + -
int ConfigReader::EnumerateValues int ConfigReader::EnumerateValues std::string std::string  tag,
int  index
- +
+
  @@ -360,34 +354,33 @@ 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 957 of file modules.cpp. +Definition at line 932 of file modules.cpp.

-References cache. +References cache.

00933 {
+00934         return EnumValues(cache, tag.c_str(), index);
+00935 }
+

-

00958 {
-00959         return EnumValues(cache, tag.c_str(), index);
-00960 }
-
-

- +

+

- + -
long ConfigReader::GetError long ConfigReader::GetError  ) 
- +
+
  @@ -397,54 +390,53 @@ References cache.

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. +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 912 of file modules.cpp. +Definition at line 887 of file modules.cpp.

-References error. +References error.

00888 {
+00889         long olderr = this->error;
+00890         this->error = 0;
+00891         return olderr;
+00892 }
+

-

00913 {
-00914         long olderr = this->error;
-00915         this->error = 0;
-00916         return olderr;
-00917 }
-
-

- +

+

- + - + - - - + + + - - + + - + -
bool ConfigReader::ReadFlag bool ConfigReader::ReadFlag std::string std::string  tag,
std::string std::string  name,
int  index
- +
+Definition at line 841 of file modules.cpp. +

+References cache, CONF_VALUE_NOT_FOUND, and error.

00842 {
+00843         char val[MAXBUF];
+00844         char t[MAXBUF];
+00845         char n[MAXBUF];
+00846         strlcpy(t,tag.c_str(),MAXBUF);
+00847         strlcpy(n,name.c_str(),MAXBUF);
+00848         int res = ReadConf(cache,t,n,index,val);
+00849         if (!res)
+00850         {
+00851                 this->error = CONF_VALUE_NOT_FOUND;
+00852                 return false;
+00853         }
+00854         std::string s = val;
+00855         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
+00856 }
+
+

+

  @@ -456,68 +448,67 @@ 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 866 of file modules.cpp. -

-References cache, CONF_VALUE_NOT_FOUND, and error. -

-

00867 {
-00868         char val[MAXBUF];
-00869         char t[MAXBUF];
-00870         char n[MAXBUF];
-00871         strlcpy(t,tag.c_str(),MAXBUF);
-00872         strlcpy(n,name.c_str(),MAXBUF);
-00873         int res = ReadConf(cache,t,n,index,val);
-00874         if (!res)
-00875         {
-00876                 this->error = CONF_VALUE_NOT_FOUND;
-00877                 return false;
-00878         }
-00879         std::string s = val;
-00880         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
-00881 }
-
-

- +

+

- + - + - - - + + + - - + + - - + + - + -
long ConfigReader::ReadInteger long ConfigReader::ReadInteger std::string std::string  tag,
std::string std::string  name,
int  index,
bool  needs_unsigned
- +
+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 858 of file modules.cpp. +

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

00859 {
+00860         char val[MAXBUF];
+00861         char t[MAXBUF];
+00862         char n[MAXBUF];
+00863         strlcpy(t,tag.c_str(),MAXBUF);
+00864         strlcpy(n,name.c_str(),MAXBUF);
+00865         int res = ReadConf(cache,t,n,index,val);
+00866         if (!res)
+00867         {
+00868                 this->error = CONF_VALUE_NOT_FOUND;
+00869                 return 0;
+00870         }
+00871         for (unsigned int i = 0; i < strlen(val); i++)
+00872         {
+00873                 if (!isdigit(val[i]))
+00874                 {
+00875                         this->error = CONF_NOT_A_NUMBER;
+00876                         return 0;
+00877                 }
+00878         }
+00879         if ((needs_unsigned) && (atoi(val)<0))
+00880         {
+00881                 this->error = CONF_NOT_UNSIGNED;
+00882                 return 0;
+00883         }
+00884         return atoi(val);
+00885 }
+
+

+

  @@ -527,76 +518,75 @@ References cache, 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 883 of file modules.cpp. -

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

-

00884 {
-00885         char val[MAXBUF];
-00886         char t[MAXBUF];
-00887         char n[MAXBUF];
-00888         strlcpy(t,tag.c_str(),MAXBUF);
-00889         strlcpy(n,name.c_str(),MAXBUF);
-00890         int res = ReadConf(cache,t,n,index,val);
-00891         if (!res)
-00892         {
-00893                 this->error = CONF_VALUE_NOT_FOUND;
-00894                 return 0;
-00895         }
-00896         for (int i = 0; i < strlen(val); i++)
-00897         {
-00898                 if (!isdigit(val[i]))
-00899                 {
-00900                         this->error = CONF_NOT_A_NUMBER;
-00901                         return 0;
-00902                 }
-00903         }
-00904         if ((needs_unsigned) && (atoi(val)<0))
-00905         {
-00906                 this->error = CONF_NOT_UNSIGNED;
-00907                 return 0;
-00908         }
-00909         return atoi(val);
-00910 }
-
-

- +

+

- + - + - - - + + + - - + + - + -
std::string ConfigReader::ReadValue std::string ConfigReader::ReadValue std::string std::string  tag,
std::string std::string  name,
int  index
- +
+Definition at line 825 of file modules.cpp. +

+References cache, CONF_VALUE_NOT_FOUND, and error.

00826 {
+00827         char val[MAXBUF];
+00828         char t[MAXBUF];
+00829         char n[MAXBUF];
+00830         strlcpy(t,tag.c_str(),MAXBUF);
+00831         strlcpy(n,name.c_str(),MAXBUF);
+00832         int res = ReadConf(cache,t,n,index,val);
+00833         if (!res)
+00834         {
+00835                 this->error = CONF_VALUE_NOT_FOUND;
+00836                 return "";
+00837         }
+00838         return val;
+00839 }
+
+

+

  @@ -608,45 +598,44 @@ 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 850 of file modules.cpp. -

-References cache, CONF_VALUE_NOT_FOUND, and error. -

-

00851 {
-00852         char val[MAXBUF];
-00853         char t[MAXBUF];
-00854         char n[MAXBUF];
-00855         strlcpy(t,tag.c_str(),MAXBUF);
-00856         strlcpy(n,name.c_str(),MAXBUF);
-00857         int res = ReadConf(cache,t,n,index,val);
-00858         if (!res)
-00859         {
-00860                 this->error = CONF_VALUE_NOT_FOUND;
-00861                 return "";
-00862         }
-00863         return val;
-00864 }
-
-

- +

+

- + -
bool ConfigReader::Verify bool ConfigReader::Verify  ) 
- +
+
  @@ -658,29 +647,30 @@ 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 962 of file modules.cpp. +Definition at line 937 of file modules.cpp.

-References readerror. +References readerror.

00938 {
+00939         return this->readerror;
+00940 }
+

-

00963 {
-00964         return this->readerror;
-00965 }
-


Member Data Documentation

-

- +

+

- +
std::stringstream* ConfigReader::cache [protected] + std::stringstream* ConfigReader::cache [protected]
- +
+Referenced by ConfigReader(), Enumerate(), EnumerateValues(), ReadFlag(), ReadInteger(), ReadValue(), and ~ConfigReader().
  @@ -692,23 +682,24 @@ 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 1158 of file modules.h. +Definition at line 1129 of file modules.h.

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

-

- +

+

- +
long ConfigReader::error [protected] + long ConfigReader::error [protected]
- +
+Referenced by ConfigReader(), GetError(), ReadFlag(), ReadInteger(), and ReadValue().
  @@ -718,23 +709,24 @@ Referenced by ConfigReader(

-Definition at line 1163 of file modules.h. +Definition at line 1134 of file modules.h.

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

-

- +

+

- +
std::stringstream* ConfigReader::errorlog [protected] + std::stringstream* ConfigReader::errorlog [protected]
- +
+Referenced by ConfigReader(), DumpErrors(), and ~ConfigReader().
  @@ -744,23 +736,24 @@ Referenced by ConfigReader(

-Definition at line 1159 of file modules.h. +Definition at line 1130 of file modules.h.

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

-

- +

+

- +
bool ConfigReader::readerror [protected] + bool ConfigReader::readerror [protected]
- +
+Referenced by ConfigReader(), and Verify().
  @@ -772,16 +765,15 @@ Used to store errors.

-Definition at line 1162 of file modules.h. +Definition at line 1133 of file modules.h.

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


The documentation for this class was generated from the following files: -
Generated on Mon May 30 05:16:42 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classConfigReader__coll__graph.gif b/docs/module-doc/classConfigReader__coll__graph.gif index ee5fdc558..a40a68c79 100644 Binary files a/docs/module-doc/classConfigReader__coll__graph.gif and b/docs/module-doc/classConfigReader__coll__graph.gif differ diff --git a/docs/module-doc/classConfigReader__coll__graph.map b/docs/module-doc/classConfigReader__coll__graph.map new file mode 100644 index 000000000..f3b09806a --- /dev/null +++ b/docs/module-doc/classConfigReader__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,97 87,124 diff --git a/docs/module-doc/classConfigReader__coll__graph.md5 b/docs/module-doc/classConfigReader__coll__graph.md5 new file mode 100644 index 000000000..533d84fda --- /dev/null +++ b/docs/module-doc/classConfigReader__coll__graph.md5 @@ -0,0 +1 @@ +c56dd697e22ce3c20fa3cd4bd9a8d674 \ No newline at end of file diff --git a/docs/module-doc/classConfigReader__inherit__graph.gif b/docs/module-doc/classConfigReader__inherit__graph.gif index a0401d4a0..00519120e 100644 Binary files a/docs/module-doc/classConfigReader__inherit__graph.gif and b/docs/module-doc/classConfigReader__inherit__graph.gif differ diff --git a/docs/module-doc/classConfigReader__inherit__graph.map b/docs/module-doc/classConfigReader__inherit__graph.map new file mode 100644 index 000000000..2a63d2e6a --- /dev/null +++ b/docs/module-doc/classConfigReader__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 19,7 99,34 diff --git a/docs/module-doc/classConfigReader__inherit__graph.md5 b/docs/module-doc/classConfigReader__inherit__graph.md5 new file mode 100644 index 000000000..4ca91dca8 --- /dev/null +++ b/docs/module-doc/classConfigReader__inherit__graph.md5 @@ -0,0 +1 @@ +d7b98fb3005dcfa23e616ed1d133423e \ No newline at end of file diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index c47a70089..c3f989f12 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -1,27 +1,26 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

ConnectClass Member List

This is the complete list of members for ConnectClass, including all inherited members. - - - - - - - - - - - - - -
ageclassbase
classbase()classbase [inline]
ConnectClass()ConnectClass [inline]
floodConnectClass
hostConnectClass
passConnectClass
pingtimeConnectClass
recvqmaxConnectClass
registration_timeoutConnectClass
sendqmaxConnectClass
thresholdConnectClass
typeConnectClass
~classbase()classbase [inline]

Generated on Mon May 30 05:16:44 2005 for InspIRCd by + + +

ConnectClass Member List

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

+ + + + + + + + + + + + + +
ageclassbase
classbase()classbase [inline]
ConnectClass()ConnectClass [inline]
floodConnectClass
hostConnectClass
passConnectClass
pingtimeConnectClass
recvqmaxConnectClass
registration_timeoutConnectClass
sendqmaxConnectClass
thresholdConnectClass
typeConnectClass
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index a429cb11e..8b6b1b40a 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -1,56 +1,56 @@ - + -InspIRCd: ConnectClass class Reference +InspIRCd: ConnectClass Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

ConnectClass Class Reference

Holds information relevent to <connect allow> and <connect deny> tags in the config file. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

ConnectClass Class Reference

Holds information relevent to <connect allow> and <connect deny> tags in the config file. More...

#include <users.h>

Inheritance diagram for ConnectClass:

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

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

Public Member Functions

 ConnectClass ()

Public Member Functions

 ConnectClass ()

Public Attributes

char type

Public Attributes

char type
 Type of line, either CC_ALLOW or CC_DENY.

int registration_timeout
 Type of line, either CC_ALLOW or CC_DENY.
int registration_timeout
 Max time to register the connection in seconds.

int flood
 Max time to register the connection in seconds.
int flood
 Number of lines in buffer before excess flood is triggered.

char host [MAXBUF]
 Number of lines in buffer before excess flood is triggered.
char host [MAXBUF]
 Host mask for this line.

int pingtime
 Host mask for this line.
int pingtime
 Number of seconds between pings for this line.

char pass [MAXBUF]
 Number of seconds between pings for this line.
char pass [MAXBUF]
 (Optional) Password for this line

int threshold
 (Optional) Password for this line
int threshold
 Threshold value for flood disconnect.

long sendqmax
 Threshold value for flood disconnect.
long sendqmax
 Maximum size of sendq for users in this class (bytes).

long recvqmax
 Maximum size of sendq for users in this class (bytes).
long recvqmax
 Maximum size of recvq for users in this class (bytes).

 Maximum size of recvq for users in this class (bytes).

Detailed Description

Holds information relevent to <connect allow> and <connect deny> tags in the config file. @@ -58,24 +58,23 @@ Holds information relevent to <connect allow> and <connect deny> tag

Definition at line 45 of file users.h.


Constructor & Destructor Documentation

-

- +

+

- + -
ConnectClass::ConnectClass ConnectClass::ConnectClass  )  [inline]
- +
+References flood, host, pass, pingtime, recvqmax, registration_timeout, sendqmax, and threshold.
00080         {
+00081                 registration_timeout = 0;
+00082                 flood = 0;
+00083                 pingtime = 0;
+00084                 threshold = 0;
+00085                 sendqmax = 0;
+00086                 recvqmax = 0;
+00087                 strlcpy(host,"",MAXBUF);
+00088                 strlcpy(pass,"",MAXBUF);
+00089         }
+
+

+

  @@ -87,34 +86,35 @@ Definition at line 45 of fi

Definition at line 79 of file users.h.

-References flood, host, pass, pingtime, recvqmax, registration_timeout, sendqmax, and threshold. -

-

00080         {
-00081                 registration_timeout = 0;
-00082                 flood = 0;
-00083                 pingtime = 0;
-00084                 threshold = 0;
-00085                 sendqmax = 0;
-00086                 recvqmax = 0;
-00087                 strlcpy(host,"",MAXBUF);
-00088                 strlcpy(pass,"",MAXBUF);
-00089         }
-


Member Data Documentation

-

- +

+

- +
int ConnectClass::flood + int ConnectClass::flood
- +
  @@ -131,18 +131,19 @@ Definition at line 56 of fi Referenced by ConnectClass().
-

- +

+

- +
char ConnectClass::host[MAXBUF] + char ConnectClass::host[MAXBUF]
- +
  @@ -159,18 +160,19 @@ Definition at line 59 of fi Referenced by ConnectClass().
-

- +

+

- +
char ConnectClass::pass[MAXBUF] + char ConnectClass::pass[MAXBUF]
- +
  @@ -187,18 +189,19 @@ Definition at line 65 of fi Referenced by ConnectClass().
-

- +

+

- +
int ConnectClass::pingtime + int ConnectClass::pingtime
- +
  @@ -215,18 +218,19 @@ Definition at line 62 of fi Referenced by ConnectClass().
-

- +

+

- +
long ConnectClass::recvqmax + long ConnectClass::recvqmax
- +
  @@ -243,18 +247,19 @@ Definition at line 77 of fi Referenced by ConnectClass().
-

- +

+

- +
int ConnectClass::registration_timeout + int ConnectClass::registration_timeout
- +
  @@ -271,18 +276,19 @@ Definition at line 53 of fi Referenced by ConnectClass().
-

- +

+

- +
long ConnectClass::sendqmax + long ConnectClass::sendqmax
- +
  @@ -299,18 +305,19 @@ Definition at line 73 of fi Referenced by ConnectClass().
-

- +

+

- +
int ConnectClass::threshold + int ConnectClass::threshold
- +
  @@ -327,18 +334,19 @@ Definition at line 69 of fi Referenced by ConnectClass().
-

- +

+

- +
char ConnectClass::type + char ConnectClass::type
- +
  @@ -355,9 +363,8 @@ Definition at line 50 of fi


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:16:44 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classConnectClass__coll__graph.gif b/docs/module-doc/classConnectClass__coll__graph.gif index 91e6533df..f9003df11 100644 Binary files a/docs/module-doc/classConnectClass__coll__graph.gif and b/docs/module-doc/classConnectClass__coll__graph.gif differ diff --git a/docs/module-doc/classConnectClass__coll__graph.map b/docs/module-doc/classConnectClass__coll__graph.map new file mode 100644 index 000000000..f3b09806a --- /dev/null +++ b/docs/module-doc/classConnectClass__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,97 87,124 diff --git a/docs/module-doc/classConnectClass__coll__graph.md5 b/docs/module-doc/classConnectClass__coll__graph.md5 new file mode 100644 index 000000000..386fe62e5 --- /dev/null +++ b/docs/module-doc/classConnectClass__coll__graph.md5 @@ -0,0 +1 @@ +96da8598edb3fe496b7465ff87b486c8 \ No newline at end of file diff --git a/docs/module-doc/classConnectClass__inherit__graph.gif b/docs/module-doc/classConnectClass__inherit__graph.gif index 67656e26c..57b5503c1 100644 Binary files a/docs/module-doc/classConnectClass__inherit__graph.gif and b/docs/module-doc/classConnectClass__inherit__graph.gif differ diff --git a/docs/module-doc/classConnectClass__inherit__graph.map b/docs/module-doc/classConnectClass__inherit__graph.map new file mode 100644 index 000000000..2a63d2e6a --- /dev/null +++ b/docs/module-doc/classConnectClass__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 19,7 99,34 diff --git a/docs/module-doc/classConnectClass__inherit__graph.md5 b/docs/module-doc/classConnectClass__inherit__graph.md5 new file mode 100644 index 000000000..e034e7874 --- /dev/null +++ b/docs/module-doc/classConnectClass__inherit__graph.md5 @@ -0,0 +1 @@ +5d61e64e769d14d08dfe0f37a00b141b \ No newline at end of file diff --git a/docs/module-doc/classDNS-members.html b/docs/module-doc/classDNS-members.html index 7aa9cc2ab..f1d0bb6e8 100644 --- a/docs/module-doc/classDNS-members.html +++ b/docs/module-doc/classDNS-members.html @@ -1,41 +1,40 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

DNS Member List

This is the complete list of members for DNS, including all inherited members. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
binipDNS [private]
DNS()DNS
DNS(std::string dnsserver)DNS
dns_aton4(const char *const ipstring)DNS [private]
dns_aton4_r(const char *const ipstring)DNS [private]
dns_aton4_s(const char *const ipstring, in_addr *const ip)DNS [private]
dns_getip4(const char *const name)DNS [private]
dns_getip4list(const char *const name)DNS [private]
dns_getname4(const in_addr *const ip)DNS [private]
dns_getresult(const int fd)DNS [private]
dns_getresult_r(const int fd)DNS [private]
dns_getresult_s(const int fd, char *const result)DNS [private]
dns_init()DNS [private]
dns_init_2(const char *dnsserver)DNS [private]
dns_ntoa4(const in_addr *const ip)DNS [private]
dns_ntoa4_r(const in_addr *const ip)DNS [private]
dns_ntoa4_s(const in_addr *const ip, char *const result)DNS [private]
fdDNS [private]
ForwardLookup(std::string host)DNS
GetFD()DNS
GetResult()DNS
HasResult()DNS
resultDNS [private]
ReverseLookup(std::string ip)DNS
SetNS(std::string dnsserver)DNS
tDNS [private]
~DNS()DNS

Generated on Mon May 30 05:16:48 2005 for InspIRCd by + + +

DNS Member List

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

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
binipDNS [private]
DNS()DNS
DNS(std::string dnsserver)DNS
dns_aton4(const char *const ipstring)DNS [private]
dns_aton4_r(const char *const ipstring)DNS [private]
dns_aton4_s(const char *const ipstring, in_addr *const ip)DNS [private]
dns_getip4(const char *const name)DNS [private]
dns_getip4list(const char *const name)DNS [private]
dns_getname4(const in_addr *const ip)DNS [private]
dns_getresult(const int fd)DNS [private]
dns_getresult_r(const int fd)DNS [private]
dns_getresult_s(const int fd, char *const result)DNS [private]
dns_init()DNS [private]
dns_init_2(const char *dnsserver)DNS [private]
dns_ntoa4(const in_addr *const ip)DNS [private]
dns_ntoa4_r(const in_addr *const ip)DNS [private]
dns_ntoa4_s(const in_addr *const ip, char *const result)DNS [private]
fdDNS [private]
ForwardLookup(std::string host)DNS
GetFD()DNS
GetResult()DNS
HasResult()DNS
resultDNS [private]
ReverseLookup(std::string ip)DNS
SetNS(std::string dnsserver)DNS
tDNS [private]
~DNS()DNS


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classDNS.html b/docs/module-doc/classDNS.html index 13a0af42f..0ed6c7daa 100644 --- a/docs/module-doc/classDNS.html +++ b/docs/module-doc/classDNS.html @@ -1,110 +1,109 @@ - + -InspIRCd: DNS class Reference +InspIRCd: DNS Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

DNS Class Reference

The DNS class allows fast nonblocking resolution of hostnames and ip addresses. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

DNS Class Reference

The DNS class allows fast nonblocking resolution of hostnames and ip addresses. More...

#include <dns.h>

Collaboration diagram for DNS:

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

Public Member Functions

 DNS ()

Public Member Functions

 DNS ()
 The default constructor uses dns addresses read from /etc/resolv.conf.

 DNS (std::string dnsserver)
 The default constructor uses dns addresses read from /etc/resolv.conf.
 DNS (std::string dnsserver)
 This constructor accepts a dns server address.

 ~DNS ()
 This constructor accepts a dns server address.
 ~DNS ()
 The destructor frees all used structures.

bool ReverseLookup (std::string ip)
 The destructor frees all used structures.
bool ReverseLookup (std::string ip)
 This method will start the reverse lookup of an ip given in dotted decimal format, e.g.

bool ForwardLookup (std::string host)
 This method will start the reverse lookup of an ip given in dotted decimal format, e.g.
bool ForwardLookup (std::string host)
 This method will start the forward lookup of a hostname, e.g.

bool HasResult ()
 This method will start the forward lookup of a hostname, e.g.
bool HasResult ()
 This method will return true when the lookup is completed.

std::string GetResult ()
 This method will return true when the lookup is completed.
std::string GetResult ()
 This method returns the result of your query as a string, depending upon wether you called DNS::ReverseLookup() or DNS::ForwardLookup.

int GetFD ()
 This method returns the result of your query as a string, depending upon wether you called DNS::ReverseLookup() or DNS::ForwardLookup.
int GetFD ()
 This method returns the file handle used by the dns query socket or zero if the query is invalid for some reason, e.g.

void SetNS (std::string dnsserver)
 This method returns the file handle used by the dns query socket or zero if the query is invalid for some reason, e.g.
void SetNS (std::string dnsserver)

Private Member Functions

void dns_init ()

Private Member Functions

void dns_init ()
void dns_init_2 (const char *dnsserver)
void dns_init_2 (const char *dnsserver)
in_addr * dns_aton4 (const char *const ipstring)
in_addr * dns_aton4 (const char *const ipstring)
char * dns_ntoa4 (const in_addr *const ip)
char * dns_ntoa4 (const in_addr *const ip)
int dns_getip4 (const char *const name)
int dns_getip4 (const char *const name)
int dns_getip4list (const char *const name)
int dns_getip4list (const char *const name)
int dns_getname4 (const in_addr *const ip)
int dns_getname4 (const in_addr *const ip)
char * dns_getresult (const int fd)
char * dns_getresult (const int fd)
in_addr * dns_aton4_s (const char *const ipstring, in_addr *const ip)
in_addr * dns_aton4_s (const char *const ipstring, in_addr *const ip)
char * dns_ntoa4_s (const in_addr *const ip, char *const result)
char * dns_ntoa4_s (const in_addr *const ip, char *const result)
char * dns_getresult_s (const int fd, char *const result)
char * dns_getresult_s (const int fd, char *const result)
in_addr * dns_aton4_r (const char *const ipstring)
in_addr * dns_aton4_r (const char *const ipstring)
char * dns_ntoa4_r (const in_addr *const ip)
char * dns_ntoa4_r (const in_addr *const ip)
char * dns_getresult_r (const int fd)
char * dns_getresult_r (const int fd)

Private Attributes

in_addr * binip

Private Attributes

in_addr * binip
char * result
char * result
int t
int t
unsigned int fd
int fd

Detailed Description

The DNS class allows fast nonblocking resolution of hostnames and ip addresses.

-It is based heavily upon firedns by Ian Gulliver. +It is based heavily upon firedns by Ian Gulliver.

Definition at line 35 of file dns.h.


Constructor & Destructor Documentation

-

- +

+

- + -
DNS::DNS DNS::DNS  ) 
- +
  @@ -117,25 +116,24 @@ The default constructor uses dns addresses read from /etc/resolv.conf. Please note that it will re-read /etc/resolv.conf for each copy of the class you instantiate, causing disk access and slow lookups if you create a lot of them. Consider passing the constructor a server address as a parameter instead.
-

- +

+

- + - + -
DNS::DNS DNS::DNS std::string std::string  dnsserver  ) 
- +
  @@ -148,24 +146,23 @@ This constructor accepts a dns server address. The address must be in dotted decimal form, e.g. 1.2.3.4.
-

- +

+

- + -
DNS::~DNS DNS::~DNS  ) 
- +
  @@ -179,25 +176,24 @@ The destructor frees all used structures.


Member Function Documentation

-

- +

+

- + - + -
in_addr* DNS::dns_aton4 in_addr* DNS::dns_aton4 const char *const const char *const   ipstring  )  [private]
- +
  @@ -208,25 +204,24 @@ The destructor frees all used structures.
-

- +

+

- + - + -
in_addr* DNS::dns_aton4_r in_addr* DNS::dns_aton4_r const char *const const char *const   ipstring  )  [private]
- +
  @@ -237,34 +232,33 @@ The destructor frees all used structures.
-

- +

+

- + - + - - - + + + - + -
in_addr* DNS::dns_aton4_s in_addr* DNS::dns_aton4_s const char *const const char *const   ipstring,
in_addr *const in_addr *const   ip
[private]
- +
  @@ -275,25 +269,24 @@ The destructor frees all used structures.
-

- +

+

- + - + -
int DNS::dns_getip4 int DNS::dns_getip4 const char *const const char *const   name  )  [private]
- +
  @@ -304,25 +297,24 @@ The destructor frees all used structures.
-

- +

+

- + - + -
int DNS::dns_getip4list int DNS::dns_getip4list const char *const const char *const   name  )  [private]
- +
  @@ -333,25 +325,24 @@ The destructor frees all used structures.
-

- +

+

- + - + -
int DNS::dns_getname4 int DNS::dns_getname4 const in_addr *const const in_addr *const   ip  )  [private]
- +
  @@ -362,25 +353,24 @@ The destructor frees all used structures.
-

- +

+

- + -
char* DNS::dns_getresult char* DNS::dns_getresult const int  fd  )  [private]
- +
  @@ -391,25 +381,24 @@ The destructor frees all used structures.
-

- +

+

- + -
char* DNS::dns_getresult_r char* DNS::dns_getresult_r const int  fd  )  [private]
- +
  @@ -420,34 +409,33 @@ The destructor frees all used structures.
-

- +

+

- + - - - + + + - + -
char* DNS::dns_getresult_s char* DNS::dns_getresult_s const int  fd,
char *const char *const   result
[private]
- +
  @@ -458,24 +446,23 @@ The destructor frees all used structures.
-

- +

+

- + -
void DNS::dns_init void DNS::dns_init  )  [private]
- +
  @@ -486,25 +473,24 @@ The destructor frees all used structures.
-

- +

+

- + -
void DNS::dns_init_2 void DNS::dns_init_2 const char *  dnsserver  )  [private]
- +
  @@ -515,25 +501,24 @@ The destructor frees all used structures.
-

- +

+

- + - + -
char* DNS::dns_ntoa4 char* DNS::dns_ntoa4 const in_addr *const const in_addr *const   ip  )  [private]
- +
  @@ -544,25 +529,24 @@ The destructor frees all used structures.
-

- +

+

- + - + -
char* DNS::dns_ntoa4_r char* DNS::dns_ntoa4_r const in_addr *const const in_addr *const   ip  )  [private]
- +
  @@ -573,34 +557,33 @@ The destructor frees all used structures.
-

- +

+

- + - + - - - + + + - + -
char* DNS::dns_ntoa4_s char* DNS::dns_ntoa4_s const in_addr *const const in_addr *const   ip,
char *const char *const   result
[private]
- +
  @@ -611,25 +594,24 @@ The destructor frees all used structures.
-

- +

+

- + - + -
bool DNS::ForwardLookup bool DNS::ForwardLookup std::string std::string  host  ) 
- +
  @@ -642,24 +624,23 @@ This method will start the forward lookup of a hostname, e.g. www.inspircd.org, and returns true if the lookup was successfully initiated.
-

- +

+

- + -
int DNS::GetFD int DNS::GetFD  ) 
- +
  @@ -672,24 +653,23 @@ This method returns the file handle used by the dns query socket or zero if the the dns server not responding.
-

- +

+

- + -
std::string DNS::GetResult std::string DNS::GetResult  ) 
- +
  @@ -697,29 +677,28 @@ the dns server not responding.

-This method returns the result of your query as a string, depending upon wether you called DNS::ReverseLookup() or DNS::ForwardLookup. +This method returns the result of your query as a string, depending upon wether you called DNS::ReverseLookup() or DNS::ForwardLookup.

-

- +

+

- + -
bool DNS::HasResult bool DNS::HasResult  ) 
- +
  @@ -732,25 +711,24 @@ This method will return true when the lookup is completed. It uses poll internally to determine the status of the socket.
-

- +

+

- + - + -
bool DNS::ReverseLookup bool DNS::ReverseLookup std::string std::string  ip  ) 
- +
  @@ -763,25 +741,24 @@ This method will start the reverse lookup of an ip given in dotted decimal forma 1.2.3.4, and returns true if the lookup was successfully initiated.
-

- +

+

- + - + -
void DNS::SetNS void DNS::SetNS std::string std::string  dnsserver  ) 
- +
  @@ -793,18 +770,19 @@ This method will start the reverse lookup of an ip given in dotted decimal forma


Member Data Documentation

-

- +

+

- +
in_addr* DNS::binip [private] + in_addr* DNS::binip [private]
- +
  @@ -817,18 +795,19 @@ This method will start the reverse lookup of an ip given in dotted decimal forma Definition at line 38 of file dns.h.
-

- +

+

- +
unsigned int DNS::fd [private] + int DNS::fd [private]
- +
  @@ -841,18 +820,19 @@ Definition at line 38 of file Definition at line 42 of file dns.h.
-

- +

+

- +
char* DNS::result [private] + char* DNS::result [private]
- +
  @@ -865,18 +845,19 @@ Definition at line 42 of file Definition at line 39 of file dns.h.
-

- +

+

- +
int DNS::t [private] + int DNS::t [private]
- +
  @@ -891,9 +872,8 @@ Definition at line 40 of file


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:16:48 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classDNS__coll__graph.gif b/docs/module-doc/classDNS__coll__graph.gif index 7e45c1857..ddb6ebb1d 100644 Binary files a/docs/module-doc/classDNS__coll__graph.gif and b/docs/module-doc/classDNS__coll__graph.gif differ diff --git a/docs/module-doc/classDNS__coll__graph.map b/docs/module-doc/classDNS__coll__graph.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/classDNS__coll__graph.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/classDNS__coll__graph.md5 b/docs/module-doc/classDNS__coll__graph.md5 new file mode 100644 index 000000000..7d5283854 --- /dev/null +++ b/docs/module-doc/classDNS__coll__graph.md5 @@ -0,0 +1 @@ +30aee4bdc7bc1791511ab48a46f93734 \ No newline at end of file diff --git a/docs/module-doc/classELine-members.html b/docs/module-doc/classELine-members.html index 2599c52ed..94e06c52f 100644 --- a/docs/module-doc/classELine-members.html +++ b/docs/module-doc/classELine-members.html @@ -1,23 +1,22 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

ELine Member List

This is the complete list of members for ELine, including all inherited members. - - - - - - - - - -
ageclassbase
classbase()classbase [inline]
durationXLine
hostmaskELine
n_matchesXLine
reasonXLine
set_timeXLine
sourceXLine
~classbase()classbase [inline]

Generated on Mon May 30 05:16:50 2005 for InspIRCd by + + +

ELine Member List

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

+ + + + + + + + + +
ageclassbase
classbase()classbase [inline]
durationXLine
hostmaskELine
n_matchesXLine
reasonXLine
set_timeXLine
sourceXLine
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classELine.html b/docs/module-doc/classELine.html index 9d654b0fa..7a26d840d 100644 --- a/docs/module-doc/classELine.html +++ b/docs/module-doc/classELine.html @@ -1,42 +1,48 @@ - + -InspIRCd: ELine class Reference +InspIRCd: ELine Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

ELine Class Reference

#include <xline.h> + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

ELine Class Reference

#include <xline.h>

Inheritance diagram for ELine:

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

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

Public Attributes

char hostmask [200]

Public Attributes

char hostmask [200]
 Hostmask (ident) to match against May contain wildcards.

 Hostmask (ident) to match against May contain wildcards.
-

Member Data Documentation

-

- +

Detailed Description

+ +

+ +

+Definition at line 82 of file xline.h.


Member Data Documentation

+

+

- +
char ELine::hostmask[200] + char ELine::hostmask[200]
- +
  @@ -53,9 +59,8 @@ Definition at line 88 of fi


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:16:50 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classELine__coll__graph.gif b/docs/module-doc/classELine__coll__graph.gif index 27faa2b83..2d3cfef6d 100644 Binary files a/docs/module-doc/classELine__coll__graph.gif and b/docs/module-doc/classELine__coll__graph.gif differ diff --git a/docs/module-doc/classELine__coll__graph.map b/docs/module-doc/classELine__coll__graph.map new file mode 100644 index 000000000..25a1b769a --- /dev/null +++ b/docs/module-doc/classELine__coll__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classXLine.html 165,204 221,231 +rect $classclassbase.html 7,98 87,124 diff --git a/docs/module-doc/classELine__coll__graph.md5 b/docs/module-doc/classELine__coll__graph.md5 new file mode 100644 index 000000000..6fe0010ee --- /dev/null +++ b/docs/module-doc/classELine__coll__graph.md5 @@ -0,0 +1 @@ +2647247e1a43e5ed62e46a0d90214392 \ No newline at end of file diff --git a/docs/module-doc/classELine__inherit__graph.gif b/docs/module-doc/classELine__inherit__graph.gif index b2a9da48e..f5ccb6ae1 100644 Binary files a/docs/module-doc/classELine__inherit__graph.gif and b/docs/module-doc/classELine__inherit__graph.gif differ diff --git a/docs/module-doc/classELine__inherit__graph.map b/docs/module-doc/classELine__inherit__graph.map new file mode 100644 index 000000000..37695eb4e --- /dev/null +++ b/docs/module-doc/classELine__inherit__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classXLine.html 19,81 75,108 +rect $classclassbase.html 7,7 87,33 diff --git a/docs/module-doc/classELine__inherit__graph.md5 b/docs/module-doc/classELine__inherit__graph.md5 new file mode 100644 index 000000000..ee2337751 --- /dev/null +++ b/docs/module-doc/classELine__inherit__graph.md5 @@ -0,0 +1 @@ +49a9689ad5f9b5a71ec60e80a8964d4d \ No newline at end of file diff --git a/docs/module-doc/classEvent-members.html b/docs/module-doc/classEvent-members.html index 048949ae5..626f9ce32 100644 --- a/docs/module-doc/classEvent-members.html +++ b/docs/module-doc/classEvent-members.html @@ -1,25 +1,25 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

Event Member List

This is the complete list of members for Event, including all inherited members. - - - - - - - - - - - -
ageclassbase
classbase()classbase [inline]
dataEvent [protected]
Event(char *anydata, Module *src, std::string eventid)Event
GetData()Event
GetEventID()Event
GetSource()Event
idEvent [protected]
Send()Event [virtual]
sourceEvent [protected]
~classbase()classbase [inline]

Generated on Mon May 30 05:16:52 2005 for InspIRCd by + + +

Event Member List

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

+ + + + + + + + + + + + +
ageclassbase
classbase()classbase [inline]
dataEvent [protected]
Event(char *anydata, Module *src, std::string eventid)Event
GetData()Event
GetEventID()Event
GetSource()Event
idEvent [protected]
Send()Event [virtual]
sourceEvent [protected]
~classbase()classbase [inline]
~ModuleMessage()ModuleMessage [inline, virtual]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classEvent.html b/docs/module-doc/classEvent.html index f16ad64ed..6e0a14d33 100644 --- a/docs/module-doc/classEvent.html +++ b/docs/module-doc/classEvent.html @@ -1,97 +1,96 @@ - + -InspIRCd: Event class Reference +InspIRCd: Event Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

Event Class Reference

The Event class is a unicast message directed at all modules. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

Event Class Reference

The Event class is a unicast message directed at all modules. More...

#include <modules.h>

Inheritance diagram for Event:

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

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

Public Member Functions

 Event (char *anydata, Module *src, std::string eventid)

Public Member Functions

 Event (char *anydata, Module *src, std::string eventid)
 Create a new Event.

char * GetData ()
 Create a new Event.
char * GetData ()
 Get the Event data.

ModuleGetSource ()
 Get the Event data.
ModuleGetSource ()
 Get the event Source.

std::string GetEventID ()
 Get the event Source.
std::string GetEventID ()
 Get the event ID.

char * Send ()
 Get the event ID.
char * Send ()
 Send the Event.


Protected Attributes

char * data
 Send the Event.

Protected Attributes

char * data
 This member holds a pointer to arbitary data set by the emitter of the message.

Modulesource
 This member holds a pointer to arbitary data set by the emitter of the message.
Modulesource
 This is a pointer to the sender of the message, which can be used to directly trigger events, or to create a reply.

std::string id
 This is a pointer to the sender of the message, which can be used to directly trigger events, or to create a reply.
std::string id
 The event identifier.

 The event identifier.

Detailed Description

The Event class is a unicast message directed at all modules.

-When the class is properly instantiated it may be sent to all modules using the Send() method, which will trigger the OnEvent method in all modules passing the object as its parameter. +When the class is properly instantiated it may be sent to all modules using the Send() method, which will trigger the OnEvent method in all modules passing the object as its parameter.

-Definition at line 194 of file modules.h.


Constructor & Destructor Documentation

-

- +Definition at line 196 of file modules.h.

Constructor & Destructor Documentation

+

+

- + - - + + - - - + + + - + -
Event::Event Event::Event char *  anydata,
Module src,
std::string std::string  eventid
- +
+
  @@ -103,31 +102,30 @@ Create a new Event.

-Definition at line 280 of file modules.cpp. +Definition at line 281 of file modules.cpp.

00281 : data(anydata), source(src), id(eventid) { };
+

-

00280 : data(anydata), source(src), id(eventid) { };
-


Member Function Documentation

-

- +

+

- + -
char * Event::GetData char * Event::GetData  ) 
- +
+
  @@ -139,34 +137,33 @@ Get the Event data.

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

-References data. +References data.

00284 {
+00285         return this->data;
+00286 }
+

-

00283 {
-00284         return this->data;
-00285 }
-
-

- +

+

- + -
std::string Event::GetEventID std::string Event::GetEventID  ) 
- +
+
  @@ -176,36 +173,35 @@ References data.

Get the event ID.

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

-Definition at line 298 of file modules.cpp. +Definition at line 299 of file modules.cpp.

-References id. +References id.

00300 {
+00301         return this->id;
+00302 }
+

-

00299 {
-00300         return this->id;
-00301 }
-
-

- +

+

- + -
Module * Event::GetSource Module * Event::GetSource  ) 
- +
+
  @@ -217,34 +213,33 @@ Get the event Source.

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

-References source. +References source.

00289 {
+00290         return this->source;
+00291 }
+

-

00288 {
-00289         return this->source;
-00290 }
-
-

- +

+

- + -
char * Event::Send char * Event::Send  )  [virtual]
- +
+
  @@ -254,34 +249,35 @@ References source.

Send the Event.

-The return result of an Event::Send() will always be NULL as no replies are expected. +The return result of an Event::Send() will always be NULL as no replies are expected.

-Implements ModuleMessage. +Implements ModuleMessage.

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

-References FOREACH_MOD. +References FOREACH_MOD.

00294 {
+00295         FOREACH_MOD OnEvent(this);
+00296         return NULL;
+00297 }
+

-

00293 {
-00294         FOREACH_MOD OnEvent(this);
-00295         return NULL;
-00296 }
-


Member Data Documentation

-

- +

+

- +
char* Event::data [protected] + char* Event::data [protected]
- +
+Referenced by GetData().
  @@ -293,23 +289,24 @@ This member holds a pointer to arbitary data set by the emitter of the message.

-Definition at line 199 of file modules.h. +Definition at line 201 of file modules.h.

-Referenced by GetData().

-

- +

+

- +
std::string Event::id [protected] + std::string Event::id [protected]
- +
+Referenced by GetEventID().
  @@ -319,25 +316,26 @@ Referenced by GetData()

The event identifier.

-This is arbitary text which should be used to distinguish one type of event from another. +This is arbitary text which should be used to distinguish one type of event from another.

-Definition at line 208 of file modules.h. +Definition at line 210 of file modules.h.

-Referenced by GetEventID().

-

- +

+

- +
Module* Event::source [protected] + Module* Event::source [protected]
- +
+Referenced by GetSource().
  @@ -349,16 +347,15 @@ This is a pointer to the sender of the message, which can be used to directly tr

-Definition at line 203 of file modules.h. +Definition at line 205 of file modules.h.

-Referenced by GetSource().


The documentation for this class was generated from the following files: -
Generated on Mon May 30 05:16:52 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classEvent__coll__graph.gif b/docs/module-doc/classEvent__coll__graph.gif index adbb404af..4c05eadca 100644 Binary files a/docs/module-doc/classEvent__coll__graph.gif and b/docs/module-doc/classEvent__coll__graph.gif differ diff --git a/docs/module-doc/classEvent__coll__graph.map b/docs/module-doc/classEvent__coll__graph.map new file mode 100644 index 000000000..1b4799fbe --- /dev/null +++ b/docs/module-doc/classEvent__coll__graph.map @@ -0,0 +1,4 @@ +base referer +rect $classModuleMessage.html 7,175 127,202 +rect $classclassbase.html 95,98 175,124 +rect $classModule.html 151,175 217,202 diff --git a/docs/module-doc/classEvent__coll__graph.md5 b/docs/module-doc/classEvent__coll__graph.md5 new file mode 100644 index 000000000..688bac914 --- /dev/null +++ b/docs/module-doc/classEvent__coll__graph.md5 @@ -0,0 +1 @@ +10d33c04261107a286f69046e8553f44 \ No newline at end of file diff --git a/docs/module-doc/classEvent__inherit__graph.gif b/docs/module-doc/classEvent__inherit__graph.gif index 49cc3fab3..d0456c9e8 100644 Binary files a/docs/module-doc/classEvent__inherit__graph.gif and b/docs/module-doc/classEvent__inherit__graph.gif differ diff --git a/docs/module-doc/classEvent__inherit__graph.map b/docs/module-doc/classEvent__inherit__graph.map new file mode 100644 index 000000000..f3f281b15 --- /dev/null +++ b/docs/module-doc/classEvent__inherit__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classModuleMessage.html 7,81 127,108 +rect $classclassbase.html 27,7 107,33 diff --git a/docs/module-doc/classEvent__inherit__graph.md5 b/docs/module-doc/classEvent__inherit__graph.md5 new file mode 100644 index 000000000..89c521396 --- /dev/null +++ b/docs/module-doc/classEvent__inherit__graph.md5 @@ -0,0 +1 @@ +f920774ed43bc66c960d56c584166dc7 \ No newline at end of file diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index 5e573def7..df9a82186 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -1,22 +1,21 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

ExemptItem Member List

This is the complete list of members for ExemptItem, including all inherited members. - - - - - - - - -
ageclassbase
classbase()classbase [inline]
dataHostItem
HostItem()HostItem [inline]
set_byHostItem
set_timeHostItem
~classbase()classbase [inline]
~HostItem()HostItem [inline, virtual]

Generated on Mon May 30 05:16:54 2005 for InspIRCd by + + +

ExemptItem Member List

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

+ + + + + + + + +
ageclassbase
classbase()classbase [inline]
dataHostItem
HostItem()HostItem [inline]
set_byHostItem
set_timeHostItem
~classbase()classbase [inline]
~HostItem()HostItem [inline, virtual]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index d5c04bee2..3d93816f7 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -1,26 +1,26 @@ - + -InspIRCd: ExemptItem class Reference +InspIRCd: ExemptItem Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

ExemptItem Class Reference

A subclass of HostItem designed to hold channel exempts (+e). + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

ExemptItem Class Reference

A subclass of HostItem designed to hold channel exempts (+e). More...

#include <channels.h>

Inheritance diagram for ExemptItem:

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

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

Detailed Description

@@ -30,9 +30,8 @@ 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 May 30 05:16:54 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classExemptItem__coll__graph.gif b/docs/module-doc/classExemptItem__coll__graph.gif index cd35ad4ef..2454fa4f7 100644 Binary files a/docs/module-doc/classExemptItem__coll__graph.gif and b/docs/module-doc/classExemptItem__coll__graph.gif differ diff --git a/docs/module-doc/classExemptItem__coll__graph.map b/docs/module-doc/classExemptItem__coll__graph.map new file mode 100644 index 000000000..84658baf1 --- /dev/null +++ b/docs/module-doc/classExemptItem__coll__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classHostItem.html 109,204 184,231 +rect $classclassbase.html 107,98 187,124 diff --git a/docs/module-doc/classExemptItem__coll__graph.md5 b/docs/module-doc/classExemptItem__coll__graph.md5 new file mode 100644 index 000000000..d617a8a38 --- /dev/null +++ b/docs/module-doc/classExemptItem__coll__graph.md5 @@ -0,0 +1 @@ +25e2b7408d8e26d1fbf18732be3e5256 \ No newline at end of file diff --git a/docs/module-doc/classExemptItem__inherit__graph.gif b/docs/module-doc/classExemptItem__inherit__graph.gif index 0d5742c4a..de11425e0 100644 Binary files a/docs/module-doc/classExemptItem__inherit__graph.gif and b/docs/module-doc/classExemptItem__inherit__graph.gif differ diff --git a/docs/module-doc/classExemptItem__inherit__graph.map b/docs/module-doc/classExemptItem__inherit__graph.map new file mode 100644 index 000000000..2fd89000d --- /dev/null +++ b/docs/module-doc/classExemptItem__inherit__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classHostItem.html 16,81 91,108 +rect $classclassbase.html 14,7 94,33 diff --git a/docs/module-doc/classExemptItem__inherit__graph.md5 b/docs/module-doc/classExemptItem__inherit__graph.md5 new file mode 100644 index 000000000..a09b17512 --- /dev/null +++ b/docs/module-doc/classExemptItem__inherit__graph.md5 @@ -0,0 +1 @@ +8d830e52922c7fb515e30174811f813c \ No newline at end of file diff --git a/docs/module-doc/classExtMode-members.html b/docs/module-doc/classExtMode-members.html index 5b0dae396..9e287e28e 100644 --- a/docs/module-doc/classExtMode-members.html +++ b/docs/module-doc/classExtMode-members.html @@ -1,24 +1,23 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

ExtMode Member List

This is the complete list of members for ExtMode, including all inherited members. - - - - - - - - - - -
ageclassbase
classbase()classbase [inline]
ExtMode(char mc, int ty, bool oper, int p_on, int p_off)ExtMode [inline]
listExtMode
modecharExtMode
needsoperExtMode
params_when_offExtMode
params_when_onExtMode
typeExtMode
~classbase()classbase [inline]

Generated on Mon May 30 05:16:58 2005 for InspIRCd by + + +

ExtMode Member List

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

+ + + + + + + + + + +
ageclassbase
classbase()classbase [inline]
ExtMode(char mc, int ty, bool oper, int p_on, int p_off)ExtMode [inline]
listExtMode
modecharExtMode
needsoperExtMode
params_when_offExtMode
params_when_onExtMode
typeExtMode
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index 07e1602c6..1c1255ba9 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -1,84 +1,88 @@ - + -InspIRCd: ExtMode class Reference +InspIRCd: ExtMode Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

ExtMode Class Reference

Inheritance diagram for ExtMode:

Inheritance graph
+ +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

ExtMode Class Reference

Inheritance diagram for ExtMode:

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

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

Public Member Functions

 ExtMode (char mc, int ty, bool oper, int p_on, int p_off)

Public Member Functions

 ExtMode (char mc, int ty, bool oper, int p_on, int p_off)

Public Attributes

char modechar

Public Attributes

char modechar
int type
int type
int params_when_on
bool needsoper
int params_when_off
int params_when_on
bool needsoper
int params_when_off
bool list
bool list
-

Constructor & Destructor Documentation

-

- +

Detailed Description

+ +

+ +

+Definition at line 139 of file modules.cpp.


Constructor & Destructor Documentation

+

+

- + - - + + - - + + - - + + - - + + - + -
ExtMode::ExtMode ExtMode::ExtMode char  mc,
int  ty,
bool  oper,
int  p_on,
int  p_off
[inline]
- +
+
  @@ -88,27 +92,26 @@

-Definition at line 147 of file modules.cpp. +Definition at line 148 of file modules.cpp.

00148 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { };
+

-References modechar, needsoper, params_when_off, params_when_on, and type. -

-

00147 : modechar(mc), type(ty), needsoper(oper), params_when_on(p_on), params_when_off(p_off) { };
-


Member Data Documentation

-

- +

+

- +
bool ExtMode::list + bool ExtMode::list
- +
+Definition at line 147 of file modules.cpp.
  @@ -118,21 +121,22 @@ References modechar,

-Definition at line 146 of file modules.cpp.

-

- +

+

- +
char ExtMode::modechar + char ExtMode::modechar
- +
+Definition at line 142 of file modules.cpp.
  @@ -142,23 +146,22 @@ Definition at line 146

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

-Referenced by ExtMode().

-

- +

+

- +
bool ExtMode::needsoper + bool ExtMode::needsoper
- +
+Definition at line 144 of file modules.cpp.
  @@ -168,23 +171,22 @@ Referenced by ExtMode()

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

-Referenced by ExtMode().

-

- +

+

- +
int ExtMode::params_when_off + int ExtMode::params_when_off
- +
+Definition at line 146 of file modules.cpp.
  @@ -194,23 +196,22 @@ Referenced by ExtMode()

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

-Referenced by ExtMode().

-

- +

+

- +
int ExtMode::params_when_on + int ExtMode::params_when_on
- +
+Definition at line 145 of file modules.cpp.
  @@ -220,23 +221,22 @@ Referenced by ExtMode()

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

-Referenced by ExtMode().

-

- +

+

- +
int ExtMode::type + int ExtMode::type
- +
+Definition at line 143 of file modules.cpp.
  @@ -246,16 +246,13 @@ Referenced by ExtMode()

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

-Referenced by ExtMode().


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:16:58 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classExtMode__coll__graph.gif b/docs/module-doc/classExtMode__coll__graph.gif index ee3fb7a7a..183d9ea68 100644 Binary files a/docs/module-doc/classExtMode__coll__graph.gif and b/docs/module-doc/classExtMode__coll__graph.gif differ diff --git a/docs/module-doc/classExtMode__coll__graph.map b/docs/module-doc/classExtMode__coll__graph.map new file mode 100644 index 000000000..f3b09806a --- /dev/null +++ b/docs/module-doc/classExtMode__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,97 87,124 diff --git a/docs/module-doc/classExtMode__coll__graph.md5 b/docs/module-doc/classExtMode__coll__graph.md5 new file mode 100644 index 000000000..34584682d --- /dev/null +++ b/docs/module-doc/classExtMode__coll__graph.md5 @@ -0,0 +1 @@ +aef2bb7129d67057b097a14e7f4fbf44 \ No newline at end of file diff --git a/docs/module-doc/classExtMode__inherit__graph.gif b/docs/module-doc/classExtMode__inherit__graph.gif index db05959c5..4efe4abe8 100644 Binary files a/docs/module-doc/classExtMode__inherit__graph.gif and b/docs/module-doc/classExtMode__inherit__graph.gif differ diff --git a/docs/module-doc/classExtMode__inherit__graph.map b/docs/module-doc/classExtMode__inherit__graph.map new file mode 100644 index 000000000..8b1d85be3 --- /dev/null +++ b/docs/module-doc/classExtMode__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,7 87,34 diff --git a/docs/module-doc/classExtMode__inherit__graph.md5 b/docs/module-doc/classExtMode__inherit__graph.md5 new file mode 100644 index 000000000..148e73af3 --- /dev/null +++ b/docs/module-doc/classExtMode__inherit__graph.md5 @@ -0,0 +1 @@ +8e2dde6b6b72ead80009841a4a78fc58 \ No newline at end of file diff --git a/docs/module-doc/classExtensible-members.html b/docs/module-doc/classExtensible-members.html index 35c799bd6..00599a442 100644 --- a/docs/module-doc/classExtensible-members.html +++ b/docs/module-doc/classExtensible-members.html @@ -1,21 +1,20 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

Extensible Member List

This is the complete list of members for Extensible, including all inherited members. - - - - - - - -
ageclassbase
classbase()classbase [inline]
Extend(std::string key, char *p)Extensible
Extension_ItemsExtensible [private]
GetExt(std::string key)Extensible
Shrink(std::string key)Extensible
~classbase()classbase [inline]

Generated on Mon May 30 05:16:57 2005 for InspIRCd by + + +

Extensible Member List

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

+ + + + + + + +
ageclassbase
classbase()classbase [inline]
Extend(std::string key, char *p)Extensible
Extension_ItemsExtensible [private]
GetExt(std::string key)Extensible
Shrink(std::string key)Extensible
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index 516f0bf3a..4308465d9 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -1,82 +1,79 @@ - + -InspIRCd: Extensible class Reference +InspIRCd: Extensible Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

Extensible Class Reference

class Extensible is the parent class of many classes such as userrec and chanrec. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

Extensible Class Reference

class Extensible is the parent class of many classes such as userrec and chanrec. More...

#include <base.h>

Inheritance diagram for Extensible:

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

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

Public Member Functions

bool Extend (std::string key, char *p)

Public Member Functions

bool Extend (std::string key, char *p)
 Extend an Extensible class.

bool Shrink (std::string key)
 Extend an Extensible class.
bool Shrink (std::string key)
 Shrink an Extensible class.

char * GetExt (std::string key)
 Shrink an Extensible class.
char * GetExt (std::string key)
 Get an extension item.


Private Attributes

std::map< std::string, char * > Extension_Items
 Get an extension item.

Private Attributes

std::map< std::string, char * > Extension_Items
 Private data store.

 Private data store.

Detailed Description

class Extensible is the parent class of many classes such as userrec and chanrec.

-class Extensible implements a system which allows modules to 'extend' the class by attaching data within a map associated with the object. In this way modules can store their own custom information within user objects, channel objects and server objects, without breaking other modules (this is more sensible than using a flags variable, and each module defining bits within the flag as 'theirs' as it is less prone to conflict and supports arbitary data storage). +class Extensible implements a system which allows modules to 'extend' the class by attaching data within a map associated with the object. In this way modules can store their own custom information within user objects, channel objects and server objects, without breaking other modules (this is more sensible than using a flags variable, and each module defining bits within the flag as 'theirs' as it is less prone to conflict and supports arbitary data storage).

Definition at line 50 of file base.h.


Member Function Documentation

-

- +

+

- + - + - - + + - + -
bool Extensible::Extend bool Extensible::Extend std::string std::string  key,
char *  p
- +
  @@ -88,34 +85,33 @@ Extend an Extensible class.

Parameters:
- - + +
key The key parameter is an arbitary string which identifies the extension data
p This parameter is a pointer to any data you wish to associate with the object
key The key parameter is an arbitary string which identifies the extension data
p This parameter is a pointer to any data you wish to associate with the object
-You must provide a key to store the data as, and a void* to the data (typedef VoidPointer) The data will be inserted into the map. If the data already exists, you may not insert it twice, Extensible::Extend will return false in this case.

+You must provide a key to store the data as, and a void* to the data (typedef VoidPointer) The data will be inserted into the map. If the data already exists, you may not insert it twice, Extensible::Extend will return false in this case.

Returns:
Returns true on success, false if otherwise
-

- +

+

- + - + -
char* Extensible::GetExt char* Extensible::GetExt std::string std::string  key  ) 
- +
  @@ -127,32 +123,31 @@ Get an extension item.

Parameters:
- +
key The key parameter is an arbitary string which identifies the extension data
key The key parameter is an arbitary string which identifies the extension data
Returns:
If you provide a non-existent key name, the function returns NULL, otherwise a pointer to the item referenced by the key is returned.
-

- +

+

- + - + -
bool Extensible::Shrink bool Extensible::Shrink std::string std::string  key  ) 
- +
  @@ -164,7 +159,7 @@ Shrink an Extensible class.

Parameters:
- +
key The key parameter is an arbitary string which identifies the extension data
key The key parameter is an arbitary string which identifies the extension data
You must provide a key name. The given key name will be removed from the classes data. If you provide a nonexistent key (case is important) then the function will return false.

@@ -173,18 +168,19 @@ You must provide a key name. The given key name will be removed from the classes


Member Data Documentation

-

- +

+

- +
std::map<std::string,char*> Extensible::Extension_Items [private] + std::map<std::string,char*> Extensible::Extension_Items [private]
- +
  @@ -201,9 +197,8 @@ Definition at line 54 of fil


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:16:57 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classExtensible__coll__graph.gif b/docs/module-doc/classExtensible__coll__graph.gif index d92353d92..b109a2213 100644 Binary files a/docs/module-doc/classExtensible__coll__graph.gif and b/docs/module-doc/classExtensible__coll__graph.gif differ diff --git a/docs/module-doc/classExtensible__coll__graph.map b/docs/module-doc/classExtensible__coll__graph.map new file mode 100644 index 000000000..f3b09806a --- /dev/null +++ b/docs/module-doc/classExtensible__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,97 87,124 diff --git a/docs/module-doc/classExtensible__coll__graph.md5 b/docs/module-doc/classExtensible__coll__graph.md5 new file mode 100644 index 000000000..a721606b9 --- /dev/null +++ b/docs/module-doc/classExtensible__coll__graph.md5 @@ -0,0 +1 @@ +4e5783e6b1854663efa1943995dec16d \ No newline at end of file diff --git a/docs/module-doc/classExtensible__inherit__graph.gif b/docs/module-doc/classExtensible__inherit__graph.gif index 14189d24d..cb019563d 100644 Binary files a/docs/module-doc/classExtensible__inherit__graph.gif and b/docs/module-doc/classExtensible__inherit__graph.gif differ diff --git a/docs/module-doc/classExtensible__inherit__graph.map b/docs/module-doc/classExtensible__inherit__graph.map new file mode 100644 index 000000000..2b223b938 --- /dev/null +++ b/docs/module-doc/classExtensible__inherit__graph.map @@ -0,0 +1,6 @@ +base referer +rect $classchanrec.html 7,156 76,183 +rect $classcommand__t.html 100,156 191,183 +rect $classconnection.html 215,156 300,183 +rect $classclassbase.html 106,7 186,33 +rect $classuserrec.html 224,231 291,257 diff --git a/docs/module-doc/classExtensible__inherit__graph.md5 b/docs/module-doc/classExtensible__inherit__graph.md5 new file mode 100644 index 000000000..fe7736291 --- /dev/null +++ b/docs/module-doc/classExtensible__inherit__graph.md5 @@ -0,0 +1 @@ +09c2299ecc297b4760a076747177ec6d \ No newline at end of file diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index 377da9995..c27c1c19d 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -1,25 +1,24 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

FileReader Member List

This is the complete list of members for FileReader, including all inherited members. - - - - - - - - - - - -
ageclassbase
classbase()classbase [inline]
Exists()FileReader
fcFileReader [private]
FileReader()FileReader
FileReader(std::string filename)FileReader
FileSize()FileReader
GetLine(int x)FileReader
LoadFile(std::string filename)FileReader
~classbase()classbase [inline]
~FileReader()FileReader

Generated on Mon May 30 05:17:01 2005 for InspIRCd by + + +

FileReader Member List

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

+ + + + + + + + + + + +
ageclassbase
classbase()classbase [inline]
Exists()FileReader
fcFileReader [private]
FileReader()FileReader
FileReader(std::string filename)FileReader
FileSize()FileReader
GetLine(int x)FileReader
LoadFile(std::string filename)FileReader
~classbase()classbase [inline]
~FileReader()FileReader


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index 3e69fe2d0..6141b3c73 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -1,77 +1,76 @@ - + -InspIRCd: FileReader class Reference +InspIRCd: FileReader Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

FileReader Class Reference

Caches a text file into memory and can be used to retrieve lines from it. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

FileReader Class Reference

Caches a text file into memory and can be used to retrieve lines from it. More...

#include <modules.h>

Inheritance diagram for FileReader:

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

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

Public Member Functions

 FileReader ()

Public Member Functions

 FileReader ()
 Default constructor.

 FileReader (std::string filename)
 Default constructor.
 FileReader (std::string filename)
 Secondary constructor.

 ~FileReader ()
 Secondary constructor.
 ~FileReader ()
 Default destructor.

void LoadFile (std::string filename)
 Default destructor.
void LoadFile (std::string filename)
 Used to load a file.

bool Exists ()
 Used to load a file.
bool Exists ()
 Returns true if the file exists This function will return false if the file could not be opened.

std::string GetLine (int x)
 Returns true if the file exists This function will return false if the file could not be opened.
std::string GetLine (int x)
 Retrieve one line from the file.

int FileSize ()
 Retrieve one line from the file.
int FileSize ()
 Returns the size of the file in lines.


Private Attributes

file_cache fc
 Returns the size of the file in lines.

Private Attributes

file_cache fc

Detailed Description

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. +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.

-Definition at line 1239 of file modules.h.


Constructor & Destructor Documentation

-

- +Definition at line 1210 of file modules.h.

Constructor & Destructor Documentation

+

+

- + -
FileReader::FileReader FileReader::FileReader  ) 
- +
+
  @@ -83,32 +82,31 @@ 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 975 of file modules.cpp. +Definition at line 950 of file modules.cpp.

00951 {
+00952 }
+

-

00976 {
-00977 }
-
-

- +

+

- + - + -
FileReader::FileReader FileReader::FileReader std::string std::string  filename  ) 
- +
+
  @@ -118,38 +116,37 @@ Definition at line 975

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. +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 968 of file modules.cpp. +Definition at line 943 of file modules.cpp.

-References fc, and file_cache. +References fc.

00944 {
+00945         file_cache c;
+00946         readfile(c,filename.c_str());
+00947         this->fc = c;
+00948 }
+

-

00969 {
-00970         file_cache c;
-00971         readfile(c,filename.c_str());
-00972         this->fc = c;
-00973 }
-
-

- +

+

- + -
FileReader::~FileReader FileReader::~FileReader  ) 
- +
+
  @@ -161,32 +158,31 @@ Default destructor.

This deletes the memory allocated to the file.

-Definition at line 987 of file modules.cpp. +Definition at line 962 of file modules.cpp.

00963 {
+00964 }
+

-

00988 {
-00989 }
-


Member Function Documentation

-

- +

+

- + -
bool FileReader::Exists bool FileReader::Exists  ) 
- +
+Definition at line 966 of file modules.cpp. +

+References fc.

00967 {
+00968         if (fc.size() == 0)
+00969         {
+00970                 return(false);
+00971         }
+00972         else
+00973         {
+00974                 return(true);
+00975         }
+00976 }
+
+

+

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

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

-References fc. -

-

00992 {
-00993         if (fc.size() == 0)
-00994         {
-00995                 return(false);
-00996         }
-00997         else
-00998         {
-00999                 return(true);
-01000         }
-01001 }
-
-

- +

+

- + -
int FileReader::FileSize int FileReader::FileSize  ) 
- +
+
  @@ -244,35 +239,34 @@ 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 1010 of file modules.cpp. +Definition at line 985 of file modules.cpp.

-References fc. +References fc.

00986 {
+00987         return fc.size();
+00988 }
+

-

01011 {
-01012         return fc.size();
-01013 }
-
-

- +

+

- + -
std::string FileReader::GetLine std::string FileReader::GetLine int  x  ) 
- +
+
  @@ -284,37 +278,36 @@ 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 1003 of file modules.cpp. +Definition at line 978 of file modules.cpp.

-References fc. +References fc.

00979 {
+00980         if ((x<0) || ((unsigned)x>fc.size()))
+00981                 return "";
+00982         return fc[x];
+00983 }
+

-

01004 {
-01005         if ((x<0) || (x>fc.size()))
-01006                 return "";
-01007         return fc[x];
-01008 }
-
-

- +

+

- + - + -
void FileReader::LoadFile void FileReader::LoadFile std::string std::string  filename  ) 
- +
+
  @@ -324,33 +317,34 @@ References fc.

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

-References fc, and file_cache. +References fc.

00955 {
+00956         file_cache c;
+00957         readfile(c,filename.c_str());
+00958         this->fc = c;
+00959 }
+

-

00980 {
-00981         file_cache c;
-00982         readfile(c,filename.c_str());
-00983         this->fc = c;
-00984 }
-


Member Data Documentation

-

- +

+

- +
file_cache FileReader::fc [private] + file_cache FileReader::fc [private]
- +
+Referenced by Exists(), FileReader(), FileSize(), GetLine(), and LoadFile().
  @@ -360,16 +354,15 @@ References fc, and

-Definition at line 1241 of file modules.h. +Definition at line 1212 of file modules.h.

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


The documentation for this class was generated from the following files: -
Generated on Mon May 30 05:17:01 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classFileReader__coll__graph.gif b/docs/module-doc/classFileReader__coll__graph.gif index 58f782ea6..3e676a53c 100644 Binary files a/docs/module-doc/classFileReader__coll__graph.gif and b/docs/module-doc/classFileReader__coll__graph.gif differ diff --git a/docs/module-doc/classFileReader__coll__graph.map b/docs/module-doc/classFileReader__coll__graph.map new file mode 100644 index 000000000..f3b09806a --- /dev/null +++ b/docs/module-doc/classFileReader__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,97 87,124 diff --git a/docs/module-doc/classFileReader__coll__graph.md5 b/docs/module-doc/classFileReader__coll__graph.md5 new file mode 100644 index 000000000..81d85200b --- /dev/null +++ b/docs/module-doc/classFileReader__coll__graph.md5 @@ -0,0 +1 @@ +525681b5632176b71e156ebd08f4e76a \ No newline at end of file diff --git a/docs/module-doc/classFileReader__inherit__graph.gif b/docs/module-doc/classFileReader__inherit__graph.gif index 71abad63d..20ec69338 100644 Binary files a/docs/module-doc/classFileReader__inherit__graph.gif and b/docs/module-doc/classFileReader__inherit__graph.gif differ diff --git a/docs/module-doc/classFileReader__inherit__graph.map b/docs/module-doc/classFileReader__inherit__graph.map new file mode 100644 index 000000000..cba11264e --- /dev/null +++ b/docs/module-doc/classFileReader__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 11,7 91,34 diff --git a/docs/module-doc/classFileReader__inherit__graph.md5 b/docs/module-doc/classFileReader__inherit__graph.md5 new file mode 100644 index 000000000..afa514f3d --- /dev/null +++ b/docs/module-doc/classFileReader__inherit__graph.md5 @@ -0,0 +1 @@ +4fdde72b2259aedfb4389cc3dcdc2c8b \ No newline at end of file diff --git a/docs/module-doc/classGLine-members.html b/docs/module-doc/classGLine-members.html index 2a6dc8ca5..eca26ed66 100644 --- a/docs/module-doc/classGLine-members.html +++ b/docs/module-doc/classGLine-members.html @@ -1,23 +1,22 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

GLine Member List

This is the complete list of members for GLine, including all inherited members. - - - - - - - - - -
ageclassbase
classbase()classbase [inline]
durationXLine
hostmaskGLine
n_matchesXLine
reasonXLine
set_timeXLine
sourceXLine
~classbase()classbase [inline]

Generated on Mon May 30 05:17:03 2005 for InspIRCd by + + +

GLine Member List

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

+ + + + + + + + + +
ageclassbase
classbase()classbase [inline]
durationXLine
hostmaskGLine
n_matchesXLine
reasonXLine
set_timeXLine
sourceXLine
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index 2fc15a0bd..6d2a46d4d 100644 --- a/docs/module-doc/classGLine.html +++ b/docs/module-doc/classGLine.html @@ -1,31 +1,31 @@ - + -InspIRCd: GLine class Reference +InspIRCd: GLine Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

GLine Class Reference

GLine class. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

GLine Class Reference

GLine class. More...

#include <xline.h>

Inheritance diagram for GLine:

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

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

Public Attributes

char hostmask [200]

Public Attributes

char hostmask [200]
 Hostmask (ident) to match against May contain wildcards.

 Hostmask (ident) to match against May contain wildcards.

Detailed Description

GLine class. @@ -33,18 +33,19 @@ GLine class.

Definition at line 73 of file xline.h.


Member Data Documentation

-

- +

+

- +
char GLine::hostmask[200] + char GLine::hostmask[200]
- +
  @@ -61,9 +62,8 @@ Definition at line 79 of fi


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:17:03 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classGLine__coll__graph.gif b/docs/module-doc/classGLine__coll__graph.gif index 7ca4bc256..0bae72027 100644 Binary files a/docs/module-doc/classGLine__coll__graph.gif and b/docs/module-doc/classGLine__coll__graph.gif differ diff --git a/docs/module-doc/classGLine__coll__graph.map b/docs/module-doc/classGLine__coll__graph.map new file mode 100644 index 000000000..25a1b769a --- /dev/null +++ b/docs/module-doc/classGLine__coll__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classXLine.html 165,204 221,231 +rect $classclassbase.html 7,98 87,124 diff --git a/docs/module-doc/classGLine__coll__graph.md5 b/docs/module-doc/classGLine__coll__graph.md5 new file mode 100644 index 000000000..9c730fc68 --- /dev/null +++ b/docs/module-doc/classGLine__coll__graph.md5 @@ -0,0 +1 @@ +73b6083b7948aa94c2ddb2dcfa75054b \ No newline at end of file diff --git a/docs/module-doc/classGLine__inherit__graph.gif b/docs/module-doc/classGLine__inherit__graph.gif index 307d8677b..c8267bece 100644 Binary files a/docs/module-doc/classGLine__inherit__graph.gif and b/docs/module-doc/classGLine__inherit__graph.gif differ diff --git a/docs/module-doc/classGLine__inherit__graph.map b/docs/module-doc/classGLine__inherit__graph.map new file mode 100644 index 000000000..37695eb4e --- /dev/null +++ b/docs/module-doc/classGLine__inherit__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classXLine.html 19,81 75,108 +rect $classclassbase.html 7,7 87,33 diff --git a/docs/module-doc/classGLine__inherit__graph.md5 b/docs/module-doc/classGLine__inherit__graph.md5 new file mode 100644 index 000000000..9374a453c --- /dev/null +++ b/docs/module-doc/classGLine__inherit__graph.md5 @@ -0,0 +1 @@ +c561272c254fa5d3e2bec1555b57510b \ No newline at end of file diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index dcf02f5bd..6914cbe50 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -1,22 +1,21 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

HostItem Member List

This is the complete list of members for HostItem, including all inherited members. - - - - - - - - -
ageclassbase
classbase()classbase [inline]
dataHostItem
HostItem()HostItem [inline]
set_byHostItem
set_timeHostItem
~classbase()classbase [inline]
~HostItem()HostItem [inline, virtual]

Generated on Mon May 30 05:17:07 2005 for InspIRCd by + + +

HostItem Member List

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

+ + + + + + + + +
ageclassbase
classbase()classbase [inline]
dataHostItem
HostItem()HostItem [inline]
set_byHostItem
set_timeHostItem
~classbase()classbase [inline]
~HostItem()HostItem [inline, virtual]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index 61c4ee368..238f52f13 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -1,67 +1,66 @@ - + -InspIRCd: HostItem class Reference +InspIRCd: HostItem Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

HostItem Class Reference

Holds an entry for a ban list, exemption list, or invite list. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

HostItem Class Reference

Holds an entry for a ban list, exemption list, or invite list. More...

#include <channels.h>

Inheritance diagram for HostItem:

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

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

Public Member Functions

 HostItem ()

Public Member Functions

 HostItem ()
virtual ~HostItem ()
virtual ~HostItem ()

Public Attributes

time_t set_time

Public Attributes

time_t set_time
char set_by [NICKMAX]
char set_by [NICKMAX]
char data [MAXBUF]
char data [MAXBUF]

Detailed Description

Holds an entry for a ban list, exemption list, or invite list.

-This class contains a single element in a channel list, such as a banlist. +This class contains a single element in a channel list, such as a banlist.

Definition at line 36 of file channels.h.


Constructor & Destructor Documentation

-

- +

+

- + -
HostItem::HostItem HostItem::HostItem  )  [inline]
- +
+
  @@ -71,30 +70,29 @@ Definition at line 36 of

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

00043 { /* stub */ }
+

-

00043 { /* stub */ }
-
-

- +

+

- + -
virtual HostItem::~HostItem virtual HostItem::~HostItem  )  [inline, virtual]
- +
+
  @@ -104,25 +102,26 @@ Definition at line 43 of

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

00044 { /* stub */ }
+

-

00044 { /* stub */ }
-


Member Data Documentation

-

- +

+

- +
char HostItem::data[MAXBUF] + char HostItem::data[MAXBUF]
- +
  @@ -135,18 +134,19 @@ Definition at line 44 of Definition at line 41 of file channels.h.
-

- +

+

- +
char HostItem::set_by[NICKMAX] + char HostItem::set_by[NICKMAX]
- +
  @@ -159,18 +159,19 @@ Definition at line 41 of Definition at line 40 of file channels.h.
-

- +

+

- +
time_t HostItem::set_time + time_t HostItem::set_time
- +
  @@ -185,9 +186,8 @@ Definition at line 39 of


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:17:07 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classHostItem__coll__graph.gif b/docs/module-doc/classHostItem__coll__graph.gif index 23cce6b3f..1af3e7c7e 100644 Binary files a/docs/module-doc/classHostItem__coll__graph.gif and b/docs/module-doc/classHostItem__coll__graph.gif differ diff --git a/docs/module-doc/classHostItem__coll__graph.map b/docs/module-doc/classHostItem__coll__graph.map new file mode 100644 index 000000000..64f9b3a84 --- /dev/null +++ b/docs/module-doc/classHostItem__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 107,97 187,124 diff --git a/docs/module-doc/classHostItem__coll__graph.md5 b/docs/module-doc/classHostItem__coll__graph.md5 new file mode 100644 index 000000000..1febcee09 --- /dev/null +++ b/docs/module-doc/classHostItem__coll__graph.md5 @@ -0,0 +1 @@ +78d65e764adb0280a4c5499a21d901f7 \ No newline at end of file diff --git a/docs/module-doc/classHostItem__inherit__graph.gif b/docs/module-doc/classHostItem__inherit__graph.gif index 64e3ad4ee..9743b6432 100644 Binary files a/docs/module-doc/classHostItem__inherit__graph.gif and b/docs/module-doc/classHostItem__inherit__graph.gif differ diff --git a/docs/module-doc/classHostItem__inherit__graph.map b/docs/module-doc/classHostItem__inherit__graph.map new file mode 100644 index 000000000..ad031674c --- /dev/null +++ b/docs/module-doc/classHostItem__inherit__graph.map @@ -0,0 +1,5 @@ +base referer +rect $classBanItem.html 7,156 79,183 +rect $classExemptItem.html 103,156 196,183 +rect $classInviteItem.html 220,156 300,183 +rect $classclassbase.html 110,7 190,33 diff --git a/docs/module-doc/classHostItem__inherit__graph.md5 b/docs/module-doc/classHostItem__inherit__graph.md5 new file mode 100644 index 000000000..e1ee72a99 --- /dev/null +++ b/docs/module-doc/classHostItem__inherit__graph.md5 @@ -0,0 +1 @@ +8f648f4a23ebaee7a9ac924b7832541e \ No newline at end of file diff --git a/docs/module-doc/classInspSocket-members.html b/docs/module-doc/classInspSocket-members.html new file mode 100644 index 000000000..360dde71c --- /dev/null +++ b/docs/module-doc/classInspSocket-members.html @@ -0,0 +1,43 @@ + + +InspIRCd: Member List + + + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

InspSocket Member List

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

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
addrInspSocket [private]
addyInspSocket [private]
clientInspSocket [private]
Close()InspSocket [virtual]
fdInspSocket [private]
GetState()InspSocket
hostInspSocket [private]
ibufInspSocket [private]
InspSocket()InspSocket
InspSocket(int newfd)InspSocket
InspSocket(std::string host, int port, bool listening, unsigned long maxtime)InspSocket
lengthInspSocket [private]
OnClose()InspSocket [virtual]
OnConnected()InspSocket [virtual]
OnDataReady()InspSocket [virtual]
OnDisconnect()InspSocket [virtual]
OnError(InspSocketError e)InspSocket [virtual]
OnIncomingConnection(int newfd, char *ip)InspSocket [virtual]
OnTimeout()InspSocket [virtual]
Poll()InspSocket
pollsInspSocket [private]
portInspSocket [private]
Read()InspSocket [virtual]
serverInspSocket [private]
SetState(InspSocketState s)InspSocket
stateInspSocket [private]
timeoutInspSocket [private]
timeout_endInspSocket [private]
Write(std::string data)InspSocket [virtual]
~InspSocket()InspSocket [virtual]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/classInspSocket.html b/docs/module-doc/classInspSocket.html new file mode 100644 index 000000000..ba3112cbe --- /dev/null +++ b/docs/module-doc/classInspSocket.html @@ -0,0 +1,1212 @@ + + +InspIRCd: InspSocket Class Reference + + + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

InspSocket Class Reference

#include <socket.h> +

+Collaboration diagram for InspSocket:

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

Public Member Functions

 InspSocket ()
 InspSocket (int newfd)
 InspSocket (std::string host, int port, bool listening, unsigned long maxtime)
virtual bool OnConnected ()
virtual void OnError (InspSocketError e)
virtual int OnDisconnect ()
virtual bool OnDataReady ()
virtual void OnTimeout ()
virtual void OnClose ()
virtual char * Read ()
virtual int Write (std::string data)
virtual int OnIncomingConnection (int newfd, char *ip)
void SetState (InspSocketState s)
InspSocketState GetState ()
bool Poll ()
virtual void Close ()
virtual ~InspSocket ()

Private Attributes

int fd
std::string host
int port
InspSocketState state
sockaddr_in addr
in_addr addy
time_t timeout_end
bool timeout
pollfd polls
char ibuf [1024]
sockaddr_in client
sockaddr_in server
socklen_t length
+

Detailed Description

+ +

+ +

+Definition at line 30 of file socket.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + +
InspSocket::InspSocket  ) 
+
+ + + + + +
+   + + +

+ +

+Definition at line 46 of file socket.cpp. +

+References I_DISCONNECTED, and state.

00047 {
+00048         this->state = I_DISCONNECTED;
+00049 }
+
+

+

+

+ + + + +
+ + + + + + + + + +
InspSocket::InspSocket int  newfd  ) 
+
+ + + + + +
+   + + +

+ +

+Definition at line 51 of file socket.cpp. +

+References fd, I_CONNECTED, and state.

00052 {
+00053         this->fd = newfd;
+00054         this->state = I_CONNECTED;
+00055 }
+
+

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
InspSocket::InspSocket std::string  host,
int  port,
bool  listening,
unsigned long  maxtime
+
+ + + + + +
+   + + +

+ +

+Definition at line 57 of file socket.cpp. +

+References addr, addy, Close(), DEBUG, fd, I_CONNECTING, I_ERR_BIND, I_ERR_CONNECT, I_ERR_SOCKET, I_ERROR, I_LISTENING, OnError(), state, timeout, and timeout_end.

00058 {
+00059         if (listening) {
+00060                 if ((this->fd = OpenTCPSocket()) == ERROR)
+00061                 {
+00062                         this->fd = -1;
+00063                         this->state = I_ERROR;
+00064                         this->OnError(I_ERR_SOCKET);
+00065                         log(DEBUG,"OpenTCPSocket() error");
+00066                         return;
+00067                 }
+00068                 else
+00069                 {
+00070                         if (BindSocket(this->fd,this->client,this->server,port,(char*)host.c_str()) == ERROR)
+00071                         {
+00072                                 this->Close();
+00073                                 this->fd = -1;
+00074                                 this->state = I_ERROR;
+00075                                 this->OnError(I_ERR_BIND);
+00076                                 log(DEBUG,"BindSocket() error %s",strerror(errno));
+00077                                 return;
+00078                         }
+00079                         else
+00080                         {
+00081                                 this->state = I_LISTENING;
+00082                                 log(DEBUG,"New socket now in I_LISTENING state");
+00083                                 return;
+00084                         }
+00085                 }                       
+00086         } else {
+00087                 char* ip;
+00088                 this->host = host;
+00089                 hostent* hoste = gethostbyname(host.c_str());
+00090                 if (!hoste) {
+00091                         ip = (char*)host.c_str();
+00092                 } else {
+00093                         struct in_addr* ia = (in_addr*)hoste->h_addr;
+00094                         ip = inet_ntoa(*ia);
+00095                 }
+00096 
+00097                 timeout_end = time(NULL)+maxtime;
+00098                 timeout = false;
+00099                 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
+00100                 {
+00101                         this->state = I_ERROR;
+00102                         this->OnError(I_ERR_SOCKET);
+00103                         return;
+00104                 }
+00105                 this->port = port;
+00106                 inet_aton(ip,&addy);
+00107                 addr.sin_family = AF_INET;
+00108                 addr.sin_addr = addy;
+00109                 addr.sin_port = htons(this->port);
+00110 
+00111                 int flags;
+00112                 flags = fcntl(this->fd, F_GETFL, 0);
+00113                 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK);
+00114 
+00115                 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1)
+00116                 {
+00117                         if (errno != EINPROGRESS)
+00118                         {
+00119                                 this->Close();
+00120                                 this->OnError(I_ERR_CONNECT);
+00121                                 this->state = I_ERROR;
+00122                                 return;
+00123                         }
+00124                 }
+00125                 this->state = I_CONNECTING;
+00126                 return;
+00127         }
+00128 }
+
+

+

+

+ + + + +
+ + + + + + + + +
InspSocket::~InspSocket  )  [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 246 of file socket.cpp. +

+References Close().

00247 {
+00248         this->Close();
+00249 }
+
+

+

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + +
void InspSocket::Close  )  [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 130 of file socket.cpp. +

+References fd, and OnClose(). +

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

00131 {
+00132         if (this->fd != -1)
+00133         {
+00134                 this->OnClose();
+00135                 shutdown(this->fd,2);
+00136                 close(this->fd);
+00137                 this->fd = -1;
+00138         }
+00139 }
+
+

+

+

+ + + + +
+ + + + + + + + +
InspSocketState InspSocket::GetState  ) 
+
+ + + + + +
+   + + +

+ +

+Definition at line 233 of file socket.cpp. +

+References state.

00234 {
+00235         return this->state;
+00236 }
+
+

+

+

+ + + + +
+ + + + + + + + +
void InspSocket::OnClose  )  [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 244 of file socket.cpp. +

+Referenced by Close().

00244 { return; }
+
+

+

+

+ + + + +
+ + + + + + + + +
bool InspSocket::OnConnected  )  [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 238 of file socket.cpp. +

+Referenced by Poll().

00238 { return true; }
+
+

+

+

+ + + + +
+ + + + + + + + +
bool InspSocket::OnDataReady  )  [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 242 of file socket.cpp. +

+Referenced by Poll().

00242 { return true; }
+
+

+

+

+ + + + +
+ + + + + + + + +
int InspSocket::OnDisconnect  )  [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 240 of file socket.cpp.

00240 { return 0; }
+
+

+

+

+ + + + +
+ + + + + + + + + +
void InspSocket::OnError InspSocketError  e  )  [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 239 of file socket.cpp. +

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

00239 { return; }
+
+

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
int InspSocket::OnIncomingConnection int  newfd,
char *  ip
[virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 241 of file socket.cpp. +

+Referenced by Poll().

00241 { return 0; }
+
+

+

+

+ + + + +
+ + + + + + + + +
void InspSocket::OnTimeout  )  [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 243 of file socket.cpp. +

+Referenced by Poll().

00243 { return; }
+
+

+

+

+ + + + +
+ + + + + + + + +
bool InspSocket::Poll  ) 
+
+ + + + + +
+   + + +

+ +

+Definition at line 183 of file socket.cpp. +

+References client, fd, I_CONNECTED, I_CONNECTING, I_ERR_TIMEOUT, I_ERROR, I_LISTENING, length, OnConnected(), OnDataReady(), OnError(), OnIncomingConnection(), OnTimeout(), polls, SetState(), state, timeout, and timeout_end.

00184 {
+00185         if ((time(NULL) > timeout_end) && (this->state == I_CONNECTING))
+00186         {
+00187                 // for non-listening sockets, the timeout can occur
+00188                 // which causes termination of the connection after
+00189                 // the given number of seconds without a successful
+00190                 // connection.
+00191                 this->OnTimeout();
+00192                 this->OnError(I_ERR_TIMEOUT);
+00193                 timeout = true;
+00194                 this->state = I_ERROR;
+00195                 return false;
+00196         }
+00197         polls.fd = this->fd;
+00198         state == I_CONNECTING ? polls.events = POLLOUT : polls.events = POLLIN;
+00199         int ret = poll(&polls,1,1);
+00200 
+00201         if (ret > 0)
+00202         {
+00203                 int incoming = -1;
+00204                 
+00205                 switch (this->state)
+00206                 {
+00207                         case I_CONNECTING:
+00208                                 this->SetState(I_CONNECTED);
+00209                                 return this->OnConnected();
+00210                         break;
+00211                         case I_LISTENING:
+00212                                 length = sizeof (client);
+00213                                 incoming = accept (this->fd, (sockaddr*)&client,&length);
+00214                                 this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr));
+00215                                 return true;
+00216                         break;
+00217                         case I_CONNECTED:
+00218                                 return this->OnDataReady();
+00219                         break;
+00220                         default:
+00221                         break;
+00222                 }
+00223         }
+00224         return true;
+00225 }
+
+

+

+

+ + + + +
+ + + + + + + + +
char * InspSocket::Read  )  [virtual]
+
+ + + + + +
+   + + +

+ +

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

+References DEBUG, and ibuf.

00142 {
+00143         int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0);
+00144         if (n > 0)
+00145         {
+00146                 ibuf[n] = 0;
+00147                 return ibuf;
+00148         }
+00149         else
+00150         {
+00151                 log(DEBUG,"EOF or error on socket");
+00152                 return NULL;
+00153         }
+00154 }
+
+

+

+

+ + + + +
+ + + + + + + + + +
void InspSocket::SetState InspSocketState  s  ) 
+
+ + + + + +
+   + + +

+ +

+Definition at line 227 of file socket.cpp. +

+References DEBUG, and state. +

+Referenced by Poll().

00228 {
+00229         log(DEBUG,"Socket state change");
+00230         this->state = s;
+00231 }
+
+

+

+

+ + + + +
+ + + + + + + + + +
int InspSocket::Write std::string  data  )  [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 160 of file socket.cpp.

00161 {
+00162         char* d = (char*)data.c_str();
+00163         unsigned int written = 0;
+00164         int n = 0;
+00165         int s = data.length();
+00166         while ((written < data.length()) && (n >= 0))
+00167         {
+00168                 n = send(this->fd,d,s,0);
+00169                 if (n > 0)
+00170                 {
+00171                         // If we didnt write everything, advance
+00172                         // the pointers so that when we retry
+00173                         // the next time around the loop, we try
+00174                         // to write what we failed to write before.
+00175                         written += n;
+00176                         s -= n;
+00177                         d += n;
+00178                 }
+00179         }
+00180         return written;
+00181 }
+
+

+

+


Member Data Documentation

+

+ + + + +
+ + + + +
sockaddr_in InspSocket::addr [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 37 of file socket.h. +

+Referenced by InspSocket().

+

+ + + + +
+ + + + +
in_addr InspSocket::addy [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 38 of file socket.h. +

+Referenced by InspSocket().

+

+ + + + +
+ + + + +
sockaddr_in InspSocket::client [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 43 of file socket.h. +

+Referenced by Poll().

+

+ + + + +
+ + + + +
int InspSocket::fd [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 33 of file socket.h. +

+Referenced by Close(), InspSocket(), and Poll().

+

+ + + + +
+ + + + +
std::string InspSocket::host [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 34 of file socket.h.

+

+ + + + +
+ + + + +
char InspSocket::ibuf[1024] [private]
+
+ + + + + +
+   + + +

+ +

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

+Referenced by Read().

+

+ + + + +
+ + + + +
socklen_t InspSocket::length [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 45 of file socket.h. +

+Referenced by Poll().

+

+ + + + +
+ + + + +
pollfd InspSocket::polls [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 41 of file socket.h. +

+Referenced by Poll().

+

+ + + + +
+ + + + +
int InspSocket::port [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 35 of file socket.h.

+

+ + + + +
+ + + + +
sockaddr_in InspSocket::server [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 44 of file socket.h.

+

+ + + + +
+ + + + +
InspSocketState InspSocket::state [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 36 of file socket.h. +

+Referenced by GetState(), InspSocket(), Poll(), and SetState().

+

+ + + + +
+ + + + +
bool InspSocket::timeout [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 40 of file socket.h. +

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

+

+ + + + +
+ + + + +
time_t InspSocket::timeout_end [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 39 of file socket.h. +

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

+


The documentation for this class was generated from the following files: +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/classInspSocket__coll__graph.gif b/docs/module-doc/classInspSocket__coll__graph.gif new file mode 100644 index 000000000..d86379c9e Binary files /dev/null and b/docs/module-doc/classInspSocket__coll__graph.gif differ diff --git a/docs/module-doc/classInspSocket__coll__graph.map b/docs/module-doc/classInspSocket__coll__graph.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/classInspSocket__coll__graph.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/classInspSocket__coll__graph.md5 b/docs/module-doc/classInspSocket__coll__graph.md5 new file mode 100644 index 000000000..f725ccf80 --- /dev/null +++ b/docs/module-doc/classInspSocket__coll__graph.md5 @@ -0,0 +1 @@ +54ad555a6ea1c60b284e46323c9c0329 \ No newline at end of file diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index 5a11ce16f..716504d80 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -1,22 +1,21 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

InviteItem Member List

This is the complete list of members for InviteItem, including all inherited members. - - - - - - - - -
ageclassbase
classbase()classbase [inline]
dataHostItem
HostItem()HostItem [inline]
set_byHostItem
set_timeHostItem
~classbase()classbase [inline]
~HostItem()HostItem [inline, virtual]

Generated on Mon May 30 05:17:12 2005 for InspIRCd by + + +

InviteItem Member List

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

+ + + + + + + + +
ageclassbase
classbase()classbase [inline]
dataHostItem
HostItem()HostItem [inline]
set_byHostItem
set_timeHostItem
~classbase()classbase [inline]
~HostItem()HostItem [inline, virtual]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 36fbb00c2..0cce8bbce 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -1,26 +1,26 @@ - + -InspIRCd: InviteItem class Reference +InspIRCd: InviteItem Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

InviteItem Class Reference

A subclass of HostItem designed to hold channel invites (+I). + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

InviteItem Class Reference

A subclass of HostItem designed to hold channel invites (+I). More...

#include <channels.h>

Inheritance diagram for InviteItem:

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

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

Detailed Description

@@ -30,9 +30,8 @@ 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 May 30 05:17:12 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classInviteItem__coll__graph.gif b/docs/module-doc/classInviteItem__coll__graph.gif index abbd65cc7..9b4a16b1b 100644 Binary files a/docs/module-doc/classInviteItem__coll__graph.gif and b/docs/module-doc/classInviteItem__coll__graph.gif differ diff --git a/docs/module-doc/classInviteItem__coll__graph.map b/docs/module-doc/classInviteItem__coll__graph.map new file mode 100644 index 000000000..84658baf1 --- /dev/null +++ b/docs/module-doc/classInviteItem__coll__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classHostItem.html 109,204 184,231 +rect $classclassbase.html 107,98 187,124 diff --git a/docs/module-doc/classInviteItem__coll__graph.md5 b/docs/module-doc/classInviteItem__coll__graph.md5 new file mode 100644 index 000000000..78e3d5cb3 --- /dev/null +++ b/docs/module-doc/classInviteItem__coll__graph.md5 @@ -0,0 +1 @@ +0e7c9a802bcb31edadf15c0c416fbf00 \ No newline at end of file diff --git a/docs/module-doc/classInviteItem__inherit__graph.gif b/docs/module-doc/classInviteItem__inherit__graph.gif index 48588c3c2..aca6cb998 100644 Binary files a/docs/module-doc/classInviteItem__inherit__graph.gif and b/docs/module-doc/classInviteItem__inherit__graph.gif differ diff --git a/docs/module-doc/classInviteItem__inherit__graph.map b/docs/module-doc/classInviteItem__inherit__graph.map new file mode 100644 index 000000000..6bc1ce88e --- /dev/null +++ b/docs/module-doc/classInviteItem__inherit__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classHostItem.html 9,81 84,108 +rect $classclassbase.html 7,7 87,33 diff --git a/docs/module-doc/classInviteItem__inherit__graph.md5 b/docs/module-doc/classInviteItem__inherit__graph.md5 new file mode 100644 index 000000000..1637f9a3d --- /dev/null +++ b/docs/module-doc/classInviteItem__inherit__graph.md5 @@ -0,0 +1 @@ +845b1cfd9fe0eacedda5d0694f8309ad \ No newline at end of file diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index c392fc408..1170cf069 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -1,18 +1,17 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

Invited Member List

This is the complete list of members for Invited, including all inherited members. - - - - -
ageclassbase
channelInvited
classbase()classbase [inline]
~classbase()classbase [inline]

Generated on Mon May 30 05:17:09 2005 for InspIRCd by + + +

Invited Member List

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

+ + + + +
ageclassbase
channelInvited
classbase()classbase [inline]
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index eebe80fee..37365beb0 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -1,27 +1,27 @@ - + -InspIRCd: Invited class Reference +InspIRCd: Invited Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

Invited Class Reference

Holds a channel name to which a user has been invited. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

Invited Class Reference

Holds a channel name to which a user has been invited. More...

#include <users.h>

Inheritance diagram for Invited:

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

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

Public Attributes

char channel [CHANMAX]

Public Attributes

char channel [CHANMAX]

Detailed Description

@@ -30,18 +30,19 @@ Holds a channel name to which a user has been invited.

Definition at line 36 of file users.h.


Member Data Documentation

-

- +

+

- +
char Invited::channel[CHANMAX] + char Invited::channel[CHANMAX]
- +
+Referenced by userrec::InviteTo().
  @@ -53,14 +54,13 @@ Definition at line 36 of fi

Definition at line 39 of file users.h.

-Referenced by userrec::InviteTo().


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:17:09 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classInvited__coll__graph.gif b/docs/module-doc/classInvited__coll__graph.gif index 90905b077..0f62e84d5 100644 Binary files a/docs/module-doc/classInvited__coll__graph.gif and b/docs/module-doc/classInvited__coll__graph.gif differ diff --git a/docs/module-doc/classInvited__coll__graph.map b/docs/module-doc/classInvited__coll__graph.map new file mode 100644 index 000000000..f3b09806a --- /dev/null +++ b/docs/module-doc/classInvited__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,97 87,124 diff --git a/docs/module-doc/classInvited__coll__graph.md5 b/docs/module-doc/classInvited__coll__graph.md5 new file mode 100644 index 000000000..1ffe72a60 --- /dev/null +++ b/docs/module-doc/classInvited__coll__graph.md5 @@ -0,0 +1 @@ +7fbf1811875f3b2d0f9e2d08f95517bf \ No newline at end of file diff --git a/docs/module-doc/classInvited__inherit__graph.gif b/docs/module-doc/classInvited__inherit__graph.gif index 05330c18c..b099abe99 100644 Binary files a/docs/module-doc/classInvited__inherit__graph.gif and b/docs/module-doc/classInvited__inherit__graph.gif differ diff --git a/docs/module-doc/classInvited__inherit__graph.map b/docs/module-doc/classInvited__inherit__graph.map new file mode 100644 index 000000000..8b1d85be3 --- /dev/null +++ b/docs/module-doc/classInvited__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,7 87,34 diff --git a/docs/module-doc/classInvited__inherit__graph.md5 b/docs/module-doc/classInvited__inherit__graph.md5 new file mode 100644 index 000000000..8bd110dab --- /dev/null +++ b/docs/module-doc/classInvited__inherit__graph.md5 @@ -0,0 +1 @@ +69f699d6bf71b6885ae31ce5e4dff391 \ No newline at end of file diff --git a/docs/module-doc/classKLine-members.html b/docs/module-doc/classKLine-members.html index 9d056eff9..4ace61462 100644 --- a/docs/module-doc/classKLine-members.html +++ b/docs/module-doc/classKLine-members.html @@ -1,23 +1,22 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

KLine Member List

This is the complete list of members for KLine, including all inherited members. - - - - - - - - - -
ageclassbase
classbase()classbase [inline]
durationXLine
hostmaskKLine
n_matchesXLine
reasonXLine
set_timeXLine
sourceXLine
~classbase()classbase [inline]

Generated on Mon May 30 05:17:20 2005 for InspIRCd by + + +

KLine Member List

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

+ + + + + + + + + +
ageclassbase
classbase()classbase [inline]
durationXLine
hostmaskKLine
n_matchesXLine
reasonXLine
set_timeXLine
sourceXLine
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index 88b799a87..6fe7cc184 100644 --- a/docs/module-doc/classKLine.html +++ b/docs/module-doc/classKLine.html @@ -1,31 +1,31 @@ - + -InspIRCd: KLine class Reference +InspIRCd: KLine Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

KLine Class Reference

KLine class. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

KLine Class Reference

KLine class. More...

#include <xline.h>

Inheritance diagram for KLine:

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

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

Public Attributes

char hostmask [200]

Public Attributes

char hostmask [200]
 Hostmask (ident) to match against May contain wildcards.

 Hostmask (ident) to match against May contain wildcards.

Detailed Description

KLine class. @@ -33,18 +33,19 @@ KLine class.

Definition at line 62 of file xline.h.


Member Data Documentation

-

- +

+

- +
char KLine::hostmask[200] + char KLine::hostmask[200]
- +
  @@ -61,9 +62,8 @@ Definition at line 68 of fi


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:17:20 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classKLine__coll__graph.gif b/docs/module-doc/classKLine__coll__graph.gif index 4a5972817..a67d4f0fa 100644 Binary files a/docs/module-doc/classKLine__coll__graph.gif and b/docs/module-doc/classKLine__coll__graph.gif differ diff --git a/docs/module-doc/classKLine__coll__graph.map b/docs/module-doc/classKLine__coll__graph.map new file mode 100644 index 000000000..25a1b769a --- /dev/null +++ b/docs/module-doc/classKLine__coll__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classXLine.html 165,204 221,231 +rect $classclassbase.html 7,98 87,124 diff --git a/docs/module-doc/classKLine__coll__graph.md5 b/docs/module-doc/classKLine__coll__graph.md5 new file mode 100644 index 000000000..fea8aba9c --- /dev/null +++ b/docs/module-doc/classKLine__coll__graph.md5 @@ -0,0 +1 @@ +81c2c774112a4711078a8057d08806b5 \ No newline at end of file diff --git a/docs/module-doc/classKLine__inherit__graph.gif b/docs/module-doc/classKLine__inherit__graph.gif index ff91267e9..2085f41fe 100644 Binary files a/docs/module-doc/classKLine__inherit__graph.gif and b/docs/module-doc/classKLine__inherit__graph.gif differ diff --git a/docs/module-doc/classKLine__inherit__graph.map b/docs/module-doc/classKLine__inherit__graph.map new file mode 100644 index 000000000..37695eb4e --- /dev/null +++ b/docs/module-doc/classKLine__inherit__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classXLine.html 19,81 75,108 +rect $classclassbase.html 7,7 87,33 diff --git a/docs/module-doc/classKLine__inherit__graph.md5 b/docs/module-doc/classKLine__inherit__graph.md5 new file mode 100644 index 000000000..cf3a8de14 --- /dev/null +++ b/docs/module-doc/classKLine__inherit__graph.md5 @@ -0,0 +1 @@ +b2ae56c0712c9e2b50e2ab3573543b74 \ No newline at end of file diff --git a/docs/module-doc/classModeParameter-members.html b/docs/module-doc/classModeParameter-members.html index 41ce56aed..71145bb65 100644 --- a/docs/module-doc/classModeParameter-members.html +++ b/docs/module-doc/classModeParameter-members.html @@ -1,20 +1,19 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

ModeParameter Member List

This is the complete list of members for ModeParameter, including all inherited members. - - - - - - -
ageclassbase
channelModeParameter
classbase()classbase [inline]
modeModeParameter
parameterModeParameter
~classbase()classbase [inline]

Generated on Mon May 30 05:17:21 2005 for InspIRCd by + + +

ModeParameter Member List

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

+ + + + + + +
ageclassbase
channelModeParameter
classbase()classbase [inline]
modeModeParameter
parameterModeParameter
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index 94e160da6..23fafdc0a 100644 --- a/docs/module-doc/classModeParameter.html +++ b/docs/module-doc/classModeParameter.html @@ -1,11 +1,11 @@ - + -InspIRCd: ModeParameter class Reference +InspIRCd: ModeParameter Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

ModeParameter Class Reference

Holds a custom parameter to a module-defined channel mode e.g. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

ModeParameter Class Reference

Holds a custom parameter to a module-defined channel mode e.g. More...

#include <channels.h> @@ -16,38 +16,39 @@ Inheritance diagram for ModeParameter:

[legend]
Collaboration diagram for ModeParameter:

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

Public Attributes

char mode

Public Attributes

char mode
char parameter [MAXBUF]
char parameter [MAXBUF]
char channel [CHANMAX]
char channel [CHANMAX]

Detailed Description

Holds a custom parameter to a module-defined channel mode e.g.

-for +L this would hold the channel name. +for +L this would hold the channel name.

Definition at line 77 of file channels.h.


Member Data Documentation

-

- +

+

- +
char ModeParameter::channel[CHANMAX] + char ModeParameter::channel[CHANMAX]
- +
+Referenced by chanrec::SetCustomModeParam().
  @@ -59,21 +60,22 @@ Definition at line 77 of

Definition at line 82 of file channels.h.

-Referenced by chanrec::SetCustomModeParam().

-

- +

+

- +
char ModeParameter::mode + char ModeParameter::mode
- +
+Referenced by chanrec::SetCustomModeParam().
  @@ -85,21 +87,22 @@ Referenced by chanrec::Set

Definition at line 80 of file channels.h.

-Referenced by chanrec::SetCustomModeParam().

-

- +

+

- +
char ModeParameter::parameter[MAXBUF] + char ModeParameter::parameter[MAXBUF]
- +
+Referenced by chanrec::SetCustomModeParam().
  @@ -111,14 +114,13 @@ Referenced by chanrec::Set

Definition at line 81 of file channels.h.

-Referenced by chanrec::SetCustomModeParam().


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:17:21 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModeParameter__coll__graph.gif b/docs/module-doc/classModeParameter__coll__graph.gif index 10b4bc010..ae0ede4e0 100644 Binary files a/docs/module-doc/classModeParameter__coll__graph.gif and b/docs/module-doc/classModeParameter__coll__graph.gif differ diff --git a/docs/module-doc/classModeParameter__coll__graph.map b/docs/module-doc/classModeParameter__coll__graph.map new file mode 100644 index 000000000..f3b09806a --- /dev/null +++ b/docs/module-doc/classModeParameter__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,97 87,124 diff --git a/docs/module-doc/classModeParameter__coll__graph.md5 b/docs/module-doc/classModeParameter__coll__graph.md5 new file mode 100644 index 000000000..f32442a8e --- /dev/null +++ b/docs/module-doc/classModeParameter__coll__graph.md5 @@ -0,0 +1 @@ +32a9027f3a7ddd405d66343245c392f9 \ No newline at end of file diff --git a/docs/module-doc/classModeParameter__inherit__graph.gif b/docs/module-doc/classModeParameter__inherit__graph.gif index ab6a20528..0a8009b82 100644 Binary files a/docs/module-doc/classModeParameter__inherit__graph.gif and b/docs/module-doc/classModeParameter__inherit__graph.gif differ diff --git a/docs/module-doc/classModeParameter__inherit__graph.map b/docs/module-doc/classModeParameter__inherit__graph.map new file mode 100644 index 000000000..152ac9587 --- /dev/null +++ b/docs/module-doc/classModeParameter__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 26,7 106,34 diff --git a/docs/module-doc/classModeParameter__inherit__graph.md5 b/docs/module-doc/classModeParameter__inherit__graph.md5 new file mode 100644 index 000000000..9a26aff0b --- /dev/null +++ b/docs/module-doc/classModeParameter__inherit__graph.md5 @@ -0,0 +1 @@ +163da5ee51dd2aa809803557093d11a0 \ No newline at end of file diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index 05928e607..ae7b0320c 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -1,73 +1,72 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

Module Member List

This is the complete list of members for Module, including all inherited members. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ageclassbase
classbase()classbase [inline]
GetVersion()Module [virtual]
Module()Module
On005Numeric(std::string &output)Module [virtual]
OnAccessCheck(userrec *source, userrec *dest, chanrec *channel, int access_type)Module [virtual]
OnAddBan(userrec *source, chanrec *channel, std::string banmask)Module [virtual]
OnBackgroundTimer(time_t curtime)Module [virtual]
OnChangeLocalUserGECOS(userrec *user, std::string newhost)Module [virtual]
OnChangeLocalUserHost(userrec *user, std::string newhost)Module [virtual]
OnChannelSync(chanrec *chan)Module [virtual]
OnCheckBan(userrec *user, chanrec *chan)Module [virtual]
OnCheckInvite(userrec *user, chanrec *chan)Module [virtual]
OnCheckKey(userrec *user, chanrec *chan, std::string keygiven)Module [virtual]
OnCheckLimit(userrec *user, chanrec *chan)Module [virtual]
OnCheckReady(userrec *user)Module [virtual]
OnDelBan(userrec *source, chanrec *channel, std::string banmask)Module [virtual]
OnEvent(Event *event)Module [virtual]
OnExtendedMode(userrec *user, void *target, char modechar, int type, bool mode_on, string_list &params)Module [virtual]
OnGlobalConnect(userrec *user)Module [virtual]
OnGlobalOper(userrec *user)Module [virtual]
OnInfo(userrec *user)Module [virtual]
OnKill(userrec *source, userrec *dest, std::string reason)Module [virtual]
OnLoadModule(Module *mod, std::string name)Module [virtual]
OnLocalTopicChange(userrec *user, chanrec *chan, std::string topic)Module [virtual]
OnMeshToken(char token, string_list params, serverrec *source, serverrec *reply, std::string tcp_host, std::string ipaddr, int port)Module [virtual]
OnOper(userrec *user)Module [virtual]
OnOperCompare(std::string password, std::string input)Module [virtual]
OnPacketReceive(std::string &data, std::string serv)Module [virtual]
OnPacketTransmit(std::string &data, std::string serv)Module [virtual]
OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user)Module [virtual]
OnRawMode(userrec *user, chanrec *chan, char mode, std::string param, bool adding, int pcnt)Module [virtual]
OnRawSocketAccept(int fd, std::string ip, int localport)Module [virtual]
OnRawSocketClose(int fd)Module [virtual]
OnRawSocketRead(int fd, char *buffer, unsigned int count, int &readresult)Module [virtual]
OnRawSocketWrite(int fd, char *buffer, int count)Module [virtual]
OnRehash()Module [virtual]
OnRequest(Request *request)Module [virtual]
OnSendList(userrec *user, chanrec *channel, char mode)Module [virtual]
OnServerRaw(std::string &raw, bool inbound, userrec *user)Module [virtual]
OnStats(char symbol)Module [virtual]
OnUserConnect(userrec *user)Module [virtual]
OnUserDisconnect(userrec *user)Module [virtual]
OnUserJoin(userrec *user, chanrec *channel)Module [virtual]
OnUserKick(userrec *source, userrec *user, chanrec *chan, std::string reason)Module [virtual]
OnUserPart(userrec *user, chanrec *channel)Module [virtual]
OnUserPostNick(userrec *user, std::string oldnick)Module [virtual]
OnUserPreInvite(userrec *source, userrec *dest, chanrec *channel)Module [virtual]
OnUserPreJoin(userrec *user, chanrec *chan, const char *cname)Module [virtual]
OnUserPreKick(userrec *source, userrec *user, chanrec *chan, std::string reason)Module [virtual]
OnUserPreMessage(userrec *user, void *dest, int target_type, std::string &text)Module [virtual]
OnUserPreNick(userrec *user, std::string newnick)Module [virtual]
OnUserPreNotice(userrec *user, void *dest, int target_type, std::string &text)Module [virtual]
OnUserQuit(userrec *user)Module [virtual]
OnUserRegister(userrec *user)Module [virtual]
OnUserSync(userrec *user)Module [virtual]
OnWhois(userrec *source, userrec *dest)Module [virtual]
~classbase()classbase [inline]
~Module()Module [virtual]

Generated on Mon May 30 05:17:24 2005 for InspIRCd by + + +

Module Member List

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

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ageclassbase
classbase()classbase [inline]
GetVersion()Module [virtual]
Module()Module
On005Numeric(std::string &output)Module [virtual]
OnAccessCheck(userrec *source, userrec *dest, chanrec *channel, int access_type)Module [virtual]
OnAddBan(userrec *source, chanrec *channel, std::string banmask)Module [virtual]
OnBackgroundTimer(time_t curtime)Module [virtual]
OnChangeLocalUserGECOS(userrec *user, std::string newhost)Module [virtual]
OnChangeLocalUserHost(userrec *user, std::string newhost)Module [virtual]
OnChannelSync(chanrec *chan)Module [virtual]
OnCheckBan(userrec *user, chanrec *chan)Module [virtual]
OnCheckInvite(userrec *user, chanrec *chan)Module [virtual]
OnCheckKey(userrec *user, chanrec *chan, std::string keygiven)Module [virtual]
OnCheckLimit(userrec *user, chanrec *chan)Module [virtual]
OnCheckReady(userrec *user)Module [virtual]
OnDelBan(userrec *source, chanrec *channel, std::string banmask)Module [virtual]
OnEvent(Event *event)Module [virtual]
OnExtendedMode(userrec *user, void *target, char modechar, int type, bool mode_on, string_list &params)Module [virtual]
OnGlobalConnect(userrec *user)Module [virtual]
OnGlobalOper(userrec *user)Module [virtual]
OnInfo(userrec *user)Module [virtual]
OnKill(userrec *source, userrec *dest, std::string reason)Module [virtual]
OnLoadModule(Module *mod, std::string name)Module [virtual]
OnLocalTopicChange(userrec *user, chanrec *chan, std::string topic)Module [virtual]
OnOper(userrec *user)Module [virtual]
OnOperCompare(std::string password, std::string input)Module [virtual]
OnPacketReceive(std::string &data, std::string serv)Module [virtual]
OnPacketTransmit(std::string &data, std::string serv)Module [virtual]
OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user)Module [virtual]
OnRawMode(userrec *user, chanrec *chan, char mode, std::string param, bool adding, int pcnt)Module [virtual]
OnRawSocketAccept(int fd, std::string ip, int localport)Module [virtual]
OnRawSocketClose(int fd)Module [virtual]
OnRawSocketRead(int fd, char *buffer, unsigned int count, int &readresult)Module [virtual]
OnRawSocketWrite(int fd, char *buffer, int count)Module [virtual]
OnRehash()Module [virtual]
OnRequest(Request *request)Module [virtual]
OnSendList(userrec *user, chanrec *channel, char mode)Module [virtual]
OnServerRaw(std::string &raw, bool inbound, userrec *user)Module [virtual]
OnStats(char symbol)Module [virtual]
OnUnloadModule(Module *mod, std::string name)Module [virtual]
OnUserConnect(userrec *user)Module [virtual]
OnUserDisconnect(userrec *user)Module [virtual]
OnUserJoin(userrec *user, chanrec *channel)Module [virtual]
OnUserKick(userrec *source, userrec *user, chanrec *chan, std::string reason)Module [virtual]
OnUserPart(userrec *user, chanrec *channel)Module [virtual]
OnUserPostNick(userrec *user, std::string oldnick)Module [virtual]
OnUserPreInvite(userrec *source, userrec *dest, chanrec *channel)Module [virtual]
OnUserPreJoin(userrec *user, chanrec *chan, const char *cname)Module [virtual]
OnUserPreKick(userrec *source, userrec *user, chanrec *chan, std::string reason)Module [virtual]
OnUserPreMessage(userrec *user, void *dest, int target_type, std::string &text)Module [virtual]
OnUserPreNick(userrec *user, std::string newnick)Module [virtual]
OnUserPreNotice(userrec *user, void *dest, int target_type, std::string &text)Module [virtual]
OnUserQuit(userrec *user)Module [virtual]
OnUserRegister(userrec *user)Module [virtual]
OnUserSync(userrec *user)Module [virtual]
OnWhois(userrec *source, userrec *dest)Module [virtual]
~classbase()classbase [inline]
~Module()Module [virtual]


Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index 4c034d0d2..a97d7c059 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -1,221 +1,220 @@ - + -InspIRCd: Module class Reference +InspIRCd: Module Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

Module Class Reference

Base class for all InspIRCd modules This class is the base class for InspIRCd modules. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

Module Class Reference

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

#include <modules.h>

Inheritance diagram for Module:

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

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

Public Member Functions

 Module ()

Public Member Functions

 Module ()
 Default constructor creates a module class.

virtual ~Module ()
 Default constructor creates a module class.
virtual ~Module ()
 Default destructor destroys a module class.

virtual Version GetVersion ()
 Default destructor destroys a module class.
virtual Version GetVersion ()
 Returns the version number of a Module.

virtual void OnUserConnect (userrec *user)
 Returns the version number of a Module.
virtual void OnUserConnect (userrec *user)
 Called when a user connects.

virtual void OnUserQuit (userrec *user)
 Called when a user connects.
virtual void OnUserQuit (userrec *user)
 Called when a user quits.

virtual void OnUserDisconnect (userrec *user)
 Called when a user quits.
virtual void OnUserDisconnect (userrec *user)
 Called whenever a user's socket is closed.

virtual void OnUserJoin (userrec *user, chanrec *channel)
 Called whenever a user's socket is closed.
virtual void OnUserJoin (userrec *user, chanrec *channel)
 Called when a user joins a channel.

virtual void OnUserPart (userrec *user, chanrec *channel)
 Called when a user joins a channel.
virtual void OnUserPart (userrec *user, chanrec *channel)
 Called when a user parts a channel.

virtual void OnPacketTransmit (std::string &data, std::string serv)
 Called when a user parts a channel.
virtual void OnPacketTransmit (std::string &data, std::string serv)
 Called before a packet is transmitted across the irc network between two irc servers.

virtual void OnPacketReceive (std::string &data, std::string serv)
 Called before a packet is transmitted across the irc network between two irc servers.
virtual void OnPacketReceive (std::string &data, std::string serv)
 Called after a packet is received from another irc server.

virtual void OnRehash ()
 Called after a packet is received from another irc server.
virtual void OnRehash ()
 Called on rehash.

virtual void OnServerRaw (std::string &raw, bool inbound, userrec *user)
 Called on rehash.
virtual void OnServerRaw (std::string &raw, bool inbound, userrec *user)
 Called when a raw command is transmitted or received.

virtual int OnExtendedMode (userrec *user, void *target, char modechar, int type, bool mode_on, string_list &params)
 Called when a raw command is transmitted or received.
virtual int OnExtendedMode (userrec *user, void *target, char modechar, int type, bool mode_on, string_list &params)
 Called whenever an extended mode is to be processed.

virtual int OnUserPreJoin (userrec *user, chanrec *chan, const char *cname)
 Called whenever an extended mode is to be processed.
virtual int OnUserPreJoin (userrec *user, chanrec *chan, const char *cname)
 Called whenever a user is about to join a channel, before any processing is done.

virtual int OnUserPreKick (userrec *source, userrec *user, chanrec *chan, std::string reason)
 Called whenever a user is about to join a channel, before any processing is done.
virtual int OnUserPreKick (userrec *source, userrec *user, chanrec *chan, std::string reason)
 Called whenever a user is about to be kicked.

virtual void OnUserKick (userrec *source, userrec *user, chanrec *chan, std::string reason)
 Called whenever a user is about to be kicked.
virtual void OnUserKick (userrec *source, userrec *user, chanrec *chan, std::string reason)
 Called whenever a user is kicked.

virtual void OnOper (userrec *user)
 Called whenever a user is kicked.
virtual void OnOper (userrec *user)
 Called whenever a user opers locally.

virtual void OnInfo (userrec *user)
 Called whenever a user opers locally.
virtual void OnInfo (userrec *user)
 Called whenever a user types /INFO.

virtual void OnWhois (userrec *source, userrec *dest)
 Called whenever a user types /INFO.
virtual void OnWhois (userrec *source, userrec *dest)
 Called whenever a /WHOIS is performed on a local user.

virtual int OnUserPreInvite (userrec *source, userrec *dest, chanrec *channel)
 Called whenever a /WHOIS is performed on a local user.
virtual int OnUserPreInvite (userrec *source, userrec *dest, chanrec *channel)
 Called whenever a user is about to invite another user into a channel, before any processing is done.

virtual int OnUserPreMessage (userrec *user, void *dest, int target_type, std::string &text)
 Called whenever a user is about to invite another user into a channel, before any processing is done.
virtual int OnUserPreMessage (userrec *user, void *dest, int target_type, std::string &text)
 Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done.

virtual int OnUserPreNotice (userrec *user, void *dest, int target_type, std::string &text)
 Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done.
virtual int OnUserPreNotice (userrec *user, void *dest, int target_type, std::string &text)
 Called whenever a user is about to NOTICE A user or a channel, before any processing is done.

virtual int OnUserPreNick (userrec *user, std::string newnick)
 Called whenever a user is about to NOTICE A user or a channel, before any processing is done.
virtual int OnUserPreNick (userrec *user, std::string newnick)
 Called before any nickchange, local or remote.

virtual void OnUserPostNick (userrec *user, std::string oldnick)
 Called before any nickchange, local or remote.
virtual void OnUserPostNick (userrec *user, std::string oldnick)
 Called after any nickchange, local or remote.

virtual int OnAccessCheck (userrec *source, userrec *dest, chanrec *channel, int access_type)
 Called after any nickchange, local or remote.
virtual int OnAccessCheck (userrec *source, userrec *dest, chanrec *channel, int access_type)
 Called before an action which requires a channel privilage check.

virtual string_list OnUserSync (userrec *user)
 Called before an action which requires a channel privilage check.
virtual string_list OnUserSync (userrec *user)
 Called during a netburst to sync user data.

virtual string_list OnChannelSync (chanrec *chan)
 Called during a netburst to sync user data.
virtual string_list OnChannelSync (chanrec *chan)
 Called during a netburst to sync channel data.

virtual void On005Numeric (std::string &output)
 Called during a netburst to sync channel data.
virtual void On005Numeric (std::string &output)
 Called when a 005 numeric is about to be output.

virtual int OnKill (userrec *source, userrec *dest, std::string reason)
 Called when a 005 numeric is about to be output.
virtual int OnKill (userrec *source, userrec *dest, std::string reason)
 Called when a client is disconnected by KILL.

virtual void OnLoadModule (Module *mod, std::string name)
 Called when a client is disconnected by KILL.
virtual void OnLoadModule (Module *mod, std::string name)
 Called whenever a module is loaded.

virtual void OnBackgroundTimer (time_t curtime)
 Called whenever a module is loaded.
virtual void OnUnloadModule (Module *mod, std::string name)
 Called once every five seconds for background processing.

virtual void OnSendList (userrec *user, chanrec *channel, char mode)
 Called whenever a module is unloaded.
virtual void OnBackgroundTimer (time_t curtime)
 Called whenever a list is needed for a listmode.

virtual int OnPreCommand (std::string command, char **parameters, int pcnt, userrec *user)
 Called once every five seconds for background processing.
virtual void OnSendList (userrec *user, chanrec *channel, char mode)
 Called whenever any command is about to be executed.

virtual bool OnCheckReady (userrec *user)
 Called whenever a list is needed for a listmode.
virtual int OnPreCommand (std::string command, char **parameters, int pcnt, userrec *user)
 Called to check if a user who is connecting can now be allowed to register If any modules return false for this function, the user is held in the waiting state until all modules return true.

virtual void OnUserRegister (userrec *user)
 Called whenever any command is about to be executed.
virtual bool OnCheckReady (userrec *user)
 Called whenever a user is about to register their connection (e.g.

virtual int OnRawMode (userrec *user, chanrec *chan, char mode, std::string param, bool adding, int pcnt)
 Called to check if a user who is connecting can now be allowed to register If any modules return false for this function, the user is held in the waiting state until all modules return true.
virtual void OnUserRegister (userrec *user)
 Called whenever a mode character is processed.

virtual int OnCheckInvite (userrec *user, chanrec *chan)
 Called whenever a user is about to register their connection (e.g.
virtual int OnRawMode (userrec *user, chanrec *chan, char mode, std::string param, bool adding, int pcnt)
 Called whenever a user joins a channel, to determine if invite checks should go ahead or not.

virtual int OnCheckKey (userrec *user, chanrec *chan, std::string keygiven)
 Called whenever a mode character is processed.
virtual int OnCheckInvite (userrec *user, chanrec *chan)
 Called whenever a user joins a channel, to determine if key checks should go ahead or not.

virtual int OnCheckLimit (userrec *user, chanrec *chan)
 Called whenever a user joins a channel, to determine if invite checks should go ahead or not.
virtual int OnCheckKey (userrec *user, chanrec *chan, std::string keygiven)
 Called whenever a user joins a channel, to determine if channel limit checks should go ahead or not.

virtual int OnCheckBan (userrec *user, chanrec *chan)
 Called whenever a user joins a channel, to determine if key checks should go ahead or not.
virtual int OnCheckLimit (userrec *user, chanrec *chan)
 Called whenever a user joins a channel, to determine if banlist checks should go ahead or not.

virtual void OnStats (char symbol)
 Called whenever a user joins a channel, to determine if channel limit checks should go ahead or not.
virtual int OnCheckBan (userrec *user, chanrec *chan)
 Called on all /STATS commands This method is triggered for all /STATS use, including stats symbols handled by the core.

virtual int OnChangeLocalUserHost (userrec *user, std::string newhost)
 Called whenever a user joins a channel, to determine if banlist checks should go ahead or not.
virtual void OnStats (char symbol)
 Called whenever a change of a local users displayed host is attempted.

virtual int OnChangeLocalUserGECOS (userrec *user, std::string newhost)
 Called on all /STATS commands This method is triggered for all /STATS use, including stats symbols handled by the core.
virtual int OnChangeLocalUserHost (userrec *user, std::string newhost)
 Called whenever a change of a local users GECOS (fullname field) is attempted.

virtual int OnLocalTopicChange (userrec *user, chanrec *chan, std::string topic)
 Called whenever a change of a local users displayed host is attempted.
virtual int OnChangeLocalUserGECOS (userrec *user, std::string newhost)
 Called whenever a topic is changed by a local user.

virtual int OnMeshToken (char token, string_list params, serverrec *source, serverrec *reply, std::string tcp_host, std::string ipaddr, int port)
 Called whenever a change of a local users GECOS (fullname field) is attempted.
virtual int OnLocalTopicChange (userrec *user, chanrec *chan, std::string topic)
 Called whenever an unknown token is received in a server to server link.

virtual void OnEvent (Event *event)
 Called whenever a topic is changed by a local user.
virtual void OnEvent (Event *event)
 Called whenever an Event class is sent to all module by another module.

virtual char * OnRequest (Request *request)
 Called whenever an Event class is sent to all module by another module.
virtual char * OnRequest (Request *request)
 Called whenever a Request class is sent to your module by another module.

virtual int OnOperCompare (std::string password, std::string input)
 Called whenever a Request class is sent to your module by another module.
virtual int OnOperCompare (std::string password, std::string input)
 Called whenever an oper password is to be compared to what a user has input.

virtual void OnGlobalOper (userrec *user)
 Called whenever an oper password is to be compared to what a user has input.
virtual void OnGlobalOper (userrec *user)
 Called whenever a user is given usermode +o, anywhere on the network.

virtual void OnGlobalConnect (userrec *user)
 Called whenever a user is given usermode +o, anywhere on the network.
virtual void OnGlobalConnect (userrec *user)
 Called whenever a user connects, anywhere on the network.

virtual int OnAddBan (userrec *source, chanrec *channel, std::string banmask)
 Called whenever a user connects, anywhere on the network.
virtual int OnAddBan (userrec *source, chanrec *channel, std::string banmask)
 Called whenever a ban is added to a channel's list.

virtual int OnDelBan (userrec *source, chanrec *channel, std::string banmask)
 Called whenever a ban is added to a channel's list.
virtual int OnDelBan (userrec *source, chanrec *channel, std::string banmask)
 Called whenever a ban is removed from a channel's list.

virtual void OnRawSocketAccept (int fd, std::string ip, int localport)
 Called whenever a ban is removed from a channel's list.
virtual void OnRawSocketAccept (int fd, std::string ip, int localport)
 Called immediately after any connection is accepted.

virtual int OnRawSocketWrite (int fd, char *buffer, int count)
 Called immediately after any connection is accepted.
virtual int OnRawSocketWrite (int fd, char *buffer, int count)
 Called immediately before any write() operation on a user's socket in the core.

virtual void OnRawSocketClose (int fd)
 Called immediately before any write() operation on a user's socket in the core.
virtual void OnRawSocketClose (int fd)
 Called immediately before any socket is closed.

virtual int OnRawSocketRead (int fd, char *buffer, unsigned int count, int &readresult)
 Called immediately before any socket is closed.
virtual int OnRawSocketRead (int fd, char *buffer, unsigned int count, int &readresult)
 Called immediately before any read() operation on a client socket in the core.

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

Detailed Description

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

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

-Definition at line 236 of file modules.h.


Constructor & Destructor Documentation

-

- +Definition at line 238 of file modules.h.

Constructor & Destructor Documentation

+

+

- + -
Module::Module Module::Module  ) 
- +
+
  @@ -227,30 +226,29 @@ Default constructor creates a module class.

-Definition at line 305 of file modules.cpp. +Definition at line 306 of file modules.cpp.

00306 { }
+

-

00305 { }
-
-

- +

+

- + -
Module::~Module Module::~Module  )  [virtual]
- +
+
  @@ -262,31 +260,30 @@ Default destructor destroys a module class.

-Definition at line 306 of file modules.cpp. +Definition at line 307 of file modules.cpp.

00307 { }
+

-

00306 { }
-


Member Function Documentation

-

- +

+

- + -
Version Module::GetVersion Version Module::GetVersion  )  [virtual]
- +
+
  @@ -296,35 +293,34 @@ Definition at line 306

Returns the version number of a Module.

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

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

-References VF_VENDOR. +References VF_VENDOR.

00319 { return Version(1,0,0,0,VF_VENDOR); }
+

-

00318 { return Version(1,0,0,0,VF_VENDOR); }
-
-

- +

+

- + - + -
void Module::On005Numeric void Module::On005Numeric std::string & std::string output  )  [virtual]
- +
+
  @@ -336,52 +332,51 @@ Called when a 005 numeric is about to be output.

The module should modify the 005 numeric if needed to indicate its features.

-Definition at line 330 of file modules.cpp. +Definition at line 331 of file modules.cpp.

00331 { };
+

-

00330 { };
-
-

- +

+

- + - - + + - - + + - - + + - + -
int Module::OnAccessCheck int Module::OnAccessCheck userrec source,
userrec dest,
chanrec channel,
int  access_type
[virtual]
- +
+
  @@ -401,52 +396,50 @@ This function is called before many functions which check a users status on a ch AC_HALFOP (5) - a user is being halfopped
AC_DEHALFOP (6) - a user is being dehalfopped
AC_INVITE (7) - a user is being invited
- AC_GENERAL_MODE (8) - a user channel mode is being changed
-
+ AC_GENERAL_MODE (8) - a user channel mode is being changed<br>
Upon returning from your function you must return either ACR_DEFAULT, to indicate the module wishes to do nothing, or ACR_DENY where approprate to deny the action, and ACR_ALLOW where appropriate to allow the action. Please note that in the case of some access checks (such as AC_GENERAL_MODE) access may be denied 'upstream' causing other checks such as AC_DEOP to not be reached. Be very careful with use of the AC_GENERAL_MODE type, as it may inadvertently override the behaviour of other modules. When the access_type is AC_GENERAL_MODE, the destination of the mode will be NULL (as it has not yet been determined).

-Definition at line 327 of file modules.cpp. +Definition at line 328 of file modules.cpp.

-References ACR_DEFAULT. +References ACR_DEFAULT.

00328 { return ACR_DEFAULT; };
+

-

00327 { return ACR_DEFAULT; };
-
-

- +

+

- + - - + + - - - + + + - + -
int Module::OnAddBan int Module::OnAddBan userrec source,
chanrec channel,
std::string std::string  banmask
[virtual]
- +
+
  @@ -458,31 +451,30 @@ Called whenever a ban is added to a channel's list.

Return a non-zero value to 'eat' the mode change and prevent the ban from being added.

-Definition at line 355 of file modules.cpp. +Definition at line 356 of file modules.cpp.

00356 { return 0; };
+

-

00355 { return 0; };
-
-

- +

+

- + -
void Module::OnBackgroundTimer void Module::OnBackgroundTimer time_t  curtime  )  [virtual]
- +
+
  @@ -494,40 +486,39 @@ Called once every five seconds for background processing.

This timer can be used to control timed features. Its period is not accurate enough to be used as a clock, but it is gauranteed to be called at least once in any five second period, directly from the main loop of the server.

-Definition at line 333 of file modules.cpp. +Definition at line 335 of file modules.cpp.

00335 { };
+

-

00333 { };
-
-

- +

+

- + - - - + + + - + -
int Module::OnChangeLocalUserGECOS int Module::OnChangeLocalUserGECOS userrec user,
std::string std::string  newhost
[virtual]
- +
+
  @@ -539,40 +530,39 @@ Called whenever a change of a local users GECOS (fullname field) is attempted.

return 1 to deny the name change, or 0 to allow it.

-Definition at line 347 of file modules.cpp. +Definition at line 349 of file modules.cpp.

00349 { return 0; };
+

-

00347 { return 0; };
-
-

- +

+

- + - - - + + + - + -
int Module::OnChangeLocalUserHost int Module::OnChangeLocalUserHost userrec user,
std::string std::string  newhost
[virtual]
- +
+
  @@ -584,31 +574,30 @@ Called whenever a change of a local users displayed host is attempted.

Return 1 to deny the host change, or 0 to allow it.

-Definition at line 346 of file modules.cpp. +Definition at line 348 of file modules.cpp.

00348 { return 0; };
+

-

00346 { return 0; };
-
-

- +

+

- + -
string_list Module::OnChannelSync string_list Module::OnChannelSync chanrec chan  )  [virtual]
- +
+
  @@ -620,42 +609,39 @@ Called during a netburst to sync channel data.

This is called during the netburst on a per-channel basis. You should use this call to up any special channel-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.

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

-References string_list. +Definition at line 330 of file modules.cpp.

00330 { string_list empty; return empty; }
+

-

00329 { string_list empty; return empty; }
-
-

- +

+

- + - - + + - + -
int Module::OnCheckBan int Module::OnCheckBan userrec user,
chanrec chan
[virtual]
- +
+
  @@ -665,42 +651,41 @@ References string_list.

Called whenever a user joins a channel, to determine if banlist checks should go ahead or not.

-This method will always be called for each join, wether or not the user actually matches a channel ban, and determines the outcome of an if statement around the whole section of ban checking code. return 1 to explicitly allow the join to go ahead or 0 to ignore the event. +This method will always be called for each join, wether or not the user actually matches a channel ban, and determines the outcome of an if statement around the whole section of ban checking code. return 1 to explicitly allow the join to go ahead or 0 to ignore the event.

-Definition at line 344 of file modules.cpp. +Definition at line 346 of file modules.cpp.

00346 { return 0; };
+

-

00344 { return 0; };
-
-

- +

+

- + - - + + - + -
int Module::OnCheckInvite int Module::OnCheckInvite userrec user,
chanrec chan
[virtual]
- +
+
  @@ -712,46 +697,45 @@ Called whenever a user joins a channel, to determine if invite checks should go

This method will always be called for each join, wether or not the channel is actually +i, and determines the outcome of an if statement around the whole section of invite checking code. return 1 to explicitly allow the join to go ahead or 0 to ignore the event.

-Definition at line 341 of file modules.cpp. +Definition at line 343 of file modules.cpp.

00343 { return 0; };
+

-

00341 { return 0; };
-
-

- +

+

- + - - + + - - - + + + - + -
int Module::OnCheckKey int Module::OnCheckKey userrec user,
chanrec chan,
std::string std::string  keygiven
[virtual]
- +
+
  @@ -761,42 +745,41 @@ Definition at line 341

Called whenever a user joins a channel, to determine if key checks should go ahead or not.

-This method will always be called for each join, wether or not the channel is actually +k, and determines the outcome of an if statement around the whole section of key checking code. if the user specified no key, the keygiven string will be a valid but empty value. return 1 to explicitly allow the join to go ahead or 0 to ignore the event. +This method will always be called for each join, wether or not the channel is actually +k, and determines the outcome of an if statement around the whole section of key checking code. if the user specified no key, the keygiven string will be a valid but empty value. return 1 to explicitly allow the join to go ahead or 0 to ignore the event.

-Definition at line 342 of file modules.cpp. +Definition at line 344 of file modules.cpp.

00344 { return 0; };
+

-

00342 { return 0; };
-
-

- +

+

- + - - + + - + -
int Module::OnCheckLimit int Module::OnCheckLimit userrec user,
chanrec chan
[virtual]
- +
+
  @@ -806,33 +789,32 @@ Definition at line 342

Called whenever a user joins a channel, to determine if channel limit checks should go ahead or not.

-This method will always be called for each join, wether or not the channel is actually +l, and determines the outcome of an if statement around the whole section of channel limit checking code. return 1 to explicitly allow the join to go ahead or 0 to ignore the event. +This method will always be called for each join, wether or not the channel is actually +l, and determines the outcome of an if statement around the whole section of channel limit checking code. return 1 to explicitly allow the join to go ahead or 0 to ignore the event.

-Definition at line 343 of file modules.cpp. +Definition at line 345 of file modules.cpp.

00345 { return 0; };
+

-

00343 { return 0; };
-
-

- +

+

- + -
bool Module::OnCheckReady bool Module::OnCheckReady userrec user  )  [virtual]
- +
+
  @@ -844,46 +826,45 @@ Called to check if a user who is connecting can now be allowed to register If an

For example a module which implements ident lookups will continue to return false for a user until their ident lookup is completed. Note that the registration timeout for a user overrides these checks, if the registration timeout is reached, the user is disconnected even if modules report that the user is not ready to connect.

-Definition at line 336 of file modules.cpp. +Definition at line 338 of file modules.cpp.

00338 { return true; };
+

-

00336 { return true; };
-
-

- +

+

- + - - + + - - - + + + - + -
int Module::OnDelBan int Module::OnDelBan userrec source,
chanrec channel,
std::string std::string  banmask
[virtual]
- +
+
  @@ -895,31 +876,30 @@ Called whenever a ban is removed from a channel's list.

Return a non-zero value to 'eat' the mode change and prevent the ban from being removed.

-Definition at line 356 of file modules.cpp. +Definition at line 357 of file modules.cpp.

00357 { return 0; };
+

-

00356 { return 0; };
-
-

- +

+

- + -
void Module::OnEvent void Module::OnEvent Event event  )  [virtual]
- +
+
  @@ -929,66 +909,65 @@ Definition at line 356

Called whenever an Event class is sent to all module by another module.

-Please see the documentation of Event::Send() for further information. The Event sent can always be assumed to be non-NULL, you should *always* check the value of Event::GetEventID() before doing anything to the event data, and you should *not* change the event data in any way! +Please see the documentation of Event::Send() for further information. The Event sent can always be assumed to be non-NULL, you should *always* check the value of Event::GetEventID() before doing anything to the event data, and you should *not* change the event data in any way!

-Definition at line 350 of file modules.cpp. +Definition at line 351 of file modules.cpp.

00351 { return; };
+

-

00350 { return; };
-
-

- +

+

- + - - + + - - + + - - + + - - + + - - - + + + - + -
int Module::OnExtendedMode int Module::OnExtendedMode userrec user,
void *  target,
char  modechar,
int  type,
bool  mode_on,
string_liststring_list params
[virtual]
- +
+
  @@ -998,33 +977,32 @@ Definition at line 350

Called whenever an extended mode is to be processed.

-The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the mode is being changed. mode_on is set when the mode is being set, in which case params contains a list of parameters for the mode as strings. If mode_on is false, the mode is being removed, and parameters may contain the parameters for the mode, dependent on wether they were defined when a mode handler was set up with Server::AddExtendedMode If the mode is a channel mode, target is a chanrec*, and if it is a user mode, target is a userrec*. You must cast this value yourself to make use of it. +The type parameter is MT_SERVER, MT_CLIENT or MT_CHANNEL, dependent on where the mode is being changed. mode_on is set when the mode is being set, in which case params contains a list of parameters for the mode as strings. If mode_on is false, the mode is being removed, and parameters may contain the parameters for the mode, dependent on wether they were defined when a mode handler was set up with Server::AddExtendedMode If the mode is a channel mode, target is a chanrec*, and if it is a user mode, target is a userrec*. You must cast this value yourself to make use of it.

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

00318 { return false; }
+

-

00317 { return false; }
-
-

- +

+

- + -
void Module::OnGlobalConnect void Module::OnGlobalConnect userrec user  )  [virtual]
- +
+
  @@ -1036,31 +1014,30 @@ Called whenever a user connects, anywhere on the network.

This event is informational only. You should not change any user information in this event. To do so, use the OnUserConnect method to change the state of local users.

-Definition at line 354 of file modules.cpp. +Definition at line 355 of file modules.cpp.

00355 { };
+

-

00354 { };
-
-

- +

+

- + -
void Module::OnGlobalOper void Module::OnGlobalOper userrec user  )  [virtual]
- +
+
  @@ -1072,31 +1049,30 @@ Called whenever a user is given usermode +o, anywhere on the network.

You cannot override this and prevent it from happening as it is already happened and such a task must be performed by another server. You can however bounce modes by sending servermodes out to reverse mode changes.

-Definition at line 353 of file modules.cpp. +Definition at line 354 of file modules.cpp.

00354 { };
+

-

00353 { };
-
-

- +

+

- + -
void Module::OnInfo void Module::OnInfo userrec user  )  [virtual]
- +
+
  @@ -1109,46 +1085,45 @@ Called whenever a user types /INFO. The userrec will contain the information of the user who typed the command. Modules may use this method to output their own credits in /INFO (which is the ircd's version of an about box). It is purposefully not possible to modify any info that has already been output, or halt the list. You must write a 371 numeric to the user, containing your info in the following format:

<nick> :information here

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

00321 { };
+

-

00320 { };
-
-

- +

+

- + - - + + - - - + + + - + -
int Module::OnKill int Module::OnKill userrec source,
userrec dest,
std::string std::string  reason
[virtual]
- +
+
  @@ -1160,40 +1135,39 @@ Called when a client is disconnected by KILL.

If a client is killed by a server, e.g. a nickname collision or protocol error, source is NULL. Return 1 from this function to prevent the kill, and 0 from this function to allow it as normal. If you prevent the kill no output will be sent to the client, it is down to your module to generate this information. NOTE: It is NOT advisable to stop kills which originate from servers. If you do so youre risking race conditions, desyncs and worse!

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

00332 { return 0; };
+

-

00331 { return 0; };
-
-

- +

+

- + - - - + + + - + -
void Module::OnLoadModule void Module::OnLoadModule Module mod,
std::string std::string  name
[virtual]
- +
+
  @@ -1205,46 +1179,45 @@ Called whenever a module is loaded.

mod will contain a pointer to the module, and string will contain its name, for example m_widgets.so. This function is primary for dependency checking, your module may decide to enable some extra features if it sees that you have for example loaded "m_killwidgets.so" with "m_makewidgets.so". It is highly recommended that modules do *NOT* bail if they cannot satisfy dependencies, but instead operate under reduced functionality, unless the dependency is absolutely neccessary (e.g. a module that extends the features of another module).

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

00333 { };
+

-

00332 { };
-
-

- +

+

- + - - + + - - - + + + - + -
int Module::OnLocalTopicChange int Module::OnLocalTopicChange userrec user,
chanrec chan,
std::string std::string  topic
[virtual]
- +
- -
  @@ -1256,106 +1229,30 @@ Called whenever a topic is changed by a local user.

Return 1 to deny the topic change, or 0 to allow it.

-Definition at line 348 of file modules.cpp. +Definition at line 350 of file modules.cpp.

00350 { return 0; };
+

-

00348 { return 0; };
-
-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
int Module::OnMeshToken char  token,
string_list  params,
serverrec source,
serverrec reply,
std::string  tcp_host,
std::string  ipaddr,
int  port
[virtual]
-
- - - -
-   - -

-Called whenever an unknown token is received in a server to server link. -

-The token value is the unknown token -- please check that no other modules are using the token that you use. Returning 1 supresses the 'unknown token type' error which is usually sent to all opers with +s. The params list is a list of parameters, and if any parameters start with a colon (:) it is treated as the whole of the last parameter, identical to how RFC messages are handled. source is the sender of the message, and reply is what should be replied to for a unicast message. Note that there are not many messages in the mesh protocol which require unicast messaging. tcp_host is the server name as a string, ipaddr is its ip address in dotted decimal notation and port is the port number it is using. -

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

-

00349 { return 0; };
-
-

- +

+

- + -
void Module::OnOper void Module::OnOper userrec user  )  [virtual]
- +
+
  @@ -1367,40 +1264,39 @@ Called whenever a user opers locally.

The userrec will contain the oper mode 'o' as this function is called after any modifications are made to the user's structure by the core.

-Definition at line 319 of file modules.cpp. +Definition at line 320 of file modules.cpp.

00320 { };
+

-

00319 { };
-
-

- +

+

- + - + - - - + + + - + -
int Module::OnOperCompare int Module::OnOperCompare std::string std::string  password,
std::string std::string  input
[virtual]
- +
+
  @@ -1412,40 +1308,39 @@ Called whenever an oper password is to be compared to what a user has input.

The password field (from the config file) is in 'password' and is to be compared against 'input'. This method allows for encryption of oper passwords and much more besides. You should return a nonzero value if you want to allow the comparison or zero if you wish to do nothing.

-Definition at line 352 of file modules.cpp. +Definition at line 353 of file modules.cpp.

00353 { return 0; };
+

-

00352 { return 0; };
-
-

- +

+

- + - + - - - + + + - + -
void Module::OnPacketReceive void Module::OnPacketReceive std::string & std::string data,
std::string std::string  serv
[virtual]
- +
+
  @@ -1457,40 +1352,39 @@ Called after a packet is received from another irc server.

This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called immediately after the packet is received but before any other operations with the core of the ircd.

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

00314 { }
+

-

00313 { }
-
-

- +

+

- + - + - - - + + + - + -
void Module::OnPacketTransmit void Module::OnPacketTransmit std::string & std::string data,
std::string std::string  serv
[virtual]
- +
+
  @@ -1502,52 +1396,51 @@ Called before a packet is transmitted across the irc network between two irc ser

This allows you to easily represent it in the correct ways to implement encryption, compression, digital signatures and anything else you may want to add. This should be regarded as a pre-processor and will be called before ANY other operations within the ircd core program.

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

00313 { }
+

-

00312 { }
-
-

- +

+

- + - + - - + + - - + + - - + + - + -
int Module::OnPreCommand int Module::OnPreCommand std::string std::string  command,
char **  parameters,
int  pcnt,
userrec user
[virtual]
- +
+
  @@ -1557,66 +1450,65 @@ Definition at line 312

Called whenever any command is about to be executed.

-This event occurs for all registered commands, wether they are registered in the core, or another module, but it will not occur for invalid commands (e.g. ones which do not exist within the command table). By returning 1 from this method you may prevent the command being executed. If you do this, no output is created by the core, and it is down to your module to produce any output neccessary. Note that unless you return 1, you should not destroy any structures (e.g. by using Server::QuitUser) otherwise when the command's handler function executes after your method returns, it will be passed an invalid pointer to the user object and crash!) +This event occurs for all registered commands, wether they are registered in the core, or another module, but it will not occur for invalid commands (e.g. ones which do not exist within the command table). By returning 1 from this method you may prevent the command being executed. If you do this, no output is created by the core, and it is down to your module to produce any output neccessary. Note that unless you return 1, you should not destroy any structures (e.g. by using Server::QuitUser) otherwise when the command's handler function executes after your method returns, it will be passed an invalid pointer to the user object and crash!)

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

00337 { return 0; };
+

-

00335 { return 0; };
-
-

- +

+

- + - - + + - - + + - - - + + + - - + + - - + + - + -
int Module::OnRawMode int Module::OnRawMode userrec user,
chanrec chan,
char  mode,
std::string std::string  param,
bool  adding,
int  pcnt
[virtual]
- +
+
  @@ -1628,46 +1520,45 @@ Called whenever a mode character is processed.

Return 1 from this function to block the mode character from being processed entirely, so that you may perform your own code instead. Note that this method allows you to override modes defined by other modes, but this is NOT RECOMMENDED!

-Definition at line 340 of file modules.cpp. +Definition at line 342 of file modules.cpp.

00342 { return 0; };
+

-

00340 { return 0; };
-
-

- +

+

- + - - - + + + - - + + - + -
void Module::OnRawSocketAccept void Module::OnRawSocketAccept int  fd,
std::string std::string  ip,
int  localport
[virtual]
- +
+
  @@ -1679,31 +1570,30 @@ Called immediately after any connection is accepted.

This is intended for raw socket processing (e.g. modules which wrap the tcp connection within another library) and provides no information relating to a user record as the connection has not been assigned yet. There are no return values from this call as all modules get an opportunity if required to process the connection.

-Definition at line 357 of file modules.cpp. +Definition at line 358 of file modules.cpp.

00358 { };
+

-

00357 { };
-
-

- +

+

- + -
void Module::OnRawSocketClose void Module::OnRawSocketClose int  fd  )  [virtual]
- +
+
  @@ -1715,52 +1605,51 @@ Called immediately before any socket is closed.

When this event is called, shutdown() has not yet been called on the socket.

-Definition at line 359 of file modules.cpp. +Definition at line 360 of file modules.cpp.

00360 { };
+

-

00359 { };
-
-

- +

+

- + - - + + - - + + - - + + - + -
int Module::OnRawSocketRead int Module::OnRawSocketRead int  fd,
char *  buffer,
unsigned int  count,
int &  readresult
[virtual]
- +
+
  @@ -1772,46 +1661,45 @@ Called immediately before any read() operation on a client socket in the core.

This occurs AFTER the select() or poll() so there is always data waiting to be read when this event occurs. Your event should return 1 if it has handled the reading itself, which prevents the core just using read(). You should place any data read into buffer, up to but NOT GREATER THAN the value of count. The value of readresult must be identical to an actual result that might be returned from the read() system call, for example, number of bytes read upon success, 0 upon EOF or closed socket, and -1 for error. If your function returns a nonzero value, you MUST set readresult.

-Definition at line 360 of file modules.cpp. +Definition at line 361 of file modules.cpp.

00361 { return 0; };
+

-

00360 { return 0; };
-
-

- +

+

- + - - + + - - + + - + -
int Module::OnRawSocketWrite int Module::OnRawSocketWrite int  fd,
char *  buffer,
int  count
[virtual]
- +
+
  @@ -1823,30 +1711,29 @@ Called immediately before any write() operation on a user's socket in the core.

Because this event is a low level event no user information is associated with it. It is intended for use by modules which may wrap connections within another API such as SSL for example. return a non-zero result if you have handled the write operation, in which case the core will not call write().

-Definition at line 358 of file modules.cpp. +Definition at line 359 of file modules.cpp.

00359 { return 0; };
+

-

00358 { return 0; };
-
-

- +

+

- + -
void Module::OnRehash void Module::OnRehash  )  [virtual]
- +
+
  @@ -1858,31 +1745,30 @@ Called on rehash.

This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application.

-Definition at line 314 of file modules.cpp. +Definition at line 315 of file modules.cpp.

00315 { }
+

-

00314 { }
-
-

- +

+

- + -
char * Module::OnRequest char * Module::OnRequest Request request  )  [virtual]
- +
+
  @@ -1892,50 +1778,49 @@ Definition at line 314

Called whenever a Request class is sent to your module by another module.

-Please see the documentation of Request::Send() for further information. The Request sent can always be assumed to be non-NULL, you should not change the request object or its data. Your method may return arbitary data in the char* result which the requesting module may be able to use for pre-determined purposes (e.g. the results of an SQL query, etc). +Please see the documentation of Request::Send() for further information. The Request sent can always be assumed to be non-NULL, you should not change the request object or its data. Your method may return arbitary data in the char* result which the requesting module may be able to use for pre-determined purposes (e.g. the results of an SQL query, etc).

-Definition at line 351 of file modules.cpp. +Definition at line 352 of file modules.cpp.

-Referenced by Request::Send(). +Referenced by Request::Send().

00352 { return NULL; };
+

-

00351 { return NULL; };
-
-

- +

+

- + - - + + - - + + - + -
void Module::OnSendList void Module::OnSendList userrec user,
chanrec channel,
char  mode
[virtual]
- +
+
  @@ -1945,48 +1830,47 @@ Referenced by Request::Send

Called whenever a list is needed for a listmode.

-For example, when a /MODE #channel +b (without any other parameters) is called, if a module was handling +b this function would be called. The function can then output any lists it wishes to. Please note that all modules will see all mode characters to provide the ability to extend each other, so please only output a list if the mode character given matches the one(s) you want to handle. +For example, when a /MODE channel +b (without any other parameters) is called, if a module was handling +b this function would be called. The function can then output any lists it wishes to. Please note that all modules will see all mode characters to provide the ability to extend each other, so please only output a list if the mode character given matches the one(s) you want to handle.

-Definition at line 334 of file modules.cpp. +Definition at line 336 of file modules.cpp.

00336 { };
+

-

00334 { };
-
-

- +

+

- + - + - - + + - - + + - + -
void Module::OnServerRaw void Module::OnServerRaw std::string & std::string raw,
bool  inbound,
userrec user
[virtual]
- +
+
  @@ -1998,31 +1882,30 @@ Called when a raw command is transmitted or received.

This method is the lowest level of handler available to a module. It will be called with raw data which is passing through a connected socket. If you wish, you may munge this data by changing the string parameter "raw". If you do this, after your function exits it will immediately be cut down to 510 characters plus a carriage return and linefeed. For INBOUND messages only (where inbound is set to true) the value of user will be the userrec of the connection sending the data. This is not possible for outbound data because the data may be being routed to multiple targets.

-Definition at line 315 of file modules.cpp. +Definition at line 316 of file modules.cpp.

00316 { }
+

-

00315 { }
-
-

- +

+

- + -
void Module::OnStats void Module::OnStats char  symbol  )  [virtual]
- +
+ +
  @@ -2034,31 +1917,74 @@ Called on all /STATS commands This method is triggered for all /STATS use, inclu

-Definition at line 345 of file modules.cpp. +Definition at line 347 of file modules.cpp.

00347 { };
+
+

+

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
void Module::OnUnloadModule Module mod,
std::string  name
[virtual]
+
+ + + + +
+   + + +

+Called whenever a module is unloaded. +

+mod will contain a pointer to the module, and string will contain its name, for example m_widgets.so. This function is primary for dependency checking, your module may decide to enable some extra features if it sees that you have for example loaded "m_killwidgets.so" with "m_makewidgets.so". It is highly recommended that modules do *NOT* bail if they cannot satisfy dependencies, but instead operate under reduced functionality, unless the dependency is absolutely neccessary (e.g. a module that extends the features of another module). +

+Definition at line 334 of file modules.cpp.

00334 { };
+

-

00345 { };
-
-

- +

+

- + -
void Module::OnUserConnect void Module::OnUserConnect userrec user  )  [virtual]
- +
+
  @@ -2070,31 +1996,30 @@ Called when a user connects.

The details of the connecting user are available to you in the parameter userrec *user

-Definition at line 307 of file modules.cpp. +Definition at line 308 of file modules.cpp.

00308 { }
+

-

00307 { }
-
-

- +

+

- + -
void Module::OnUserDisconnect void Module::OnUserDisconnect userrec user  )  [virtual]
- +
+
  @@ -2106,40 +2031,39 @@ Called whenever a user's socket is closed.

The details of the exiting user are available to you in the parameter userrec *user This event is called for all users, registered or not, as a cleanup method for modules which might assign resources to user, such as dns lookups, objects and sockets.

-Definition at line 309 of file modules.cpp. +Definition at line 310 of file modules.cpp.

00310 { }
+

-

00309 { }
-
-

- +

+

- + - - + + - + -
void Module::OnUserJoin void Module::OnUserJoin userrec user,
chanrec channel
[virtual]
- +
+
  @@ -2151,52 +2075,51 @@ Called when a user joins a channel.

The details of the joining user are available to you in the parameter userrec *user, and the details of the channel they have joined is available in the variable chanrec *channel

-Definition at line 310 of file modules.cpp. +Definition at line 311 of file modules.cpp.

00311 { }
+

-

00310 { }
-
-

- +

+

- + - - + + - - + + - - - + + + - + -
void Module::OnUserKick void Module::OnUserKick userrec source,
userrec user,
chanrec chan,
std::string std::string  reason
[virtual]
- +
+
  @@ -2206,42 +2129,41 @@ Definition at line 310

Called whenever a user is kicked.

-If this method is called, the kick is already underway and cannot be prevented, so to prevent a kick, please use Module::OnUserPreKick instead of this method. +If this method is called, the kick is already underway and cannot be prevented, so to prevent a kick, please use Module::OnUserPreKick instead of this method.

-Definition at line 339 of file modules.cpp. +Definition at line 341 of file modules.cpp.

00341 { };
+

-

00339 { };
-
-

- +

+

- + - - + + - + -
void Module::OnUserPart void Module::OnUserPart userrec user,
chanrec channel
[virtual]
- +
+
  @@ -2253,40 +2175,39 @@ Called when a user parts a channel.

The details of the leaving user are available to you in the parameter userrec *user, and the details of the channel they have left is available in the variable chanrec *channel

-Definition at line 311 of file modules.cpp. +Definition at line 312 of file modules.cpp.

00312 { }
+

-

00311 { }
-
-

- +

+

- + - - - + + + - + -
void Module::OnUserPostNick void Module::OnUserPostNick userrec user,
std::string std::string  oldnick
[virtual]
- +
+
  @@ -2296,48 +2217,47 @@ Definition at line 311

Called after any nickchange, local or remote.

-This can be used to track users after nickchanges have been applied. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). Because this method is called after the nickchange is taken place, no return values are possible to indicate forbidding of the nick change. Use OnUserPreNick for this. +This can be used to track users after nickchanges have been applied. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). Because this method is called after the nickchange is taken place, no return values are possible to indicate forbidding of the nick change. Use OnUserPreNick for this.

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

00327 { };
+

-

00326 { };
-
-

- +

+

- + - - + + - - + + - + -
int Module::OnUserPreInvite int Module::OnUserPreInvite userrec source,
userrec dest,
chanrec channel
[virtual]
- +
+
  @@ -2349,46 +2269,45 @@ Called whenever a user is about to invite another user into a channel, before an

Returning 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter invites to channels.

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

00323 { return 0; };
+

-

00322 { return 0; };
-
-

- +

+

- + - - + + - - + + - + -
int Module::OnUserPreJoin int Module::OnUserPreJoin userrec user,
chanrec chan,
const char *  cname
[virtual]
- +
+
  @@ -2402,52 +2321,51 @@ Returning a value of 1 from this function stops the process immediately, causing IMPORTANT NOTE!

If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be called BEFORE the channel record is created. This will cause chanrec* chan to be NULL. There is very little you can do in form of processing on the actual channel record at this point, however the channel NAME will still be passed in char* cname, so that you could for example implement a channel blacklist or whitelist, etc.

-Definition at line 316 of file modules.cpp. +Definition at line 317 of file modules.cpp.

00317 { return 0; }
+

-

00316 { return 0; }
-
-

- +

+

- + - - + + - - + + - - - + + + - + -
int Module::OnUserPreKick int Module::OnUserPreKick userrec source,
userrec user,
chanrec chan,
std::string std::string  reason
[virtual]
- +
+
  @@ -2457,54 +2375,53 @@ Definition at line 316

Called whenever a user is about to be kicked.

-Returning a value of 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. +Returning a value of 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc.

-Definition at line 338 of file modules.cpp. +Definition at line 340 of file modules.cpp.

00340 { return 0; };
+

-

00338 { return 0; };
-
-

- +

+

- + - - + + - - + + - - - + + + - + -
int Module::OnUserPreMessage int Module::OnUserPreMessage userrec user,
void *  dest,
int  target_type,
std::string & std::string text
[virtual]
- +
+
  @@ -2516,40 +2433,39 @@ Called whenever a user is about to PRIVMSG A user or a channel, before any proce

Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent.

-Definition at line 323 of file modules.cpp. +Definition at line 324 of file modules.cpp.

00324 { return 0; };
+

-

00323 { return 0; };
-
-

- +

+

- + - - - + + + - + -
int Module::OnUserPreNick int Module::OnUserPreNick userrec user,
std::string std::string  newnick
[virtual]
- +
+
  @@ -2561,52 +2477,51 @@ Called before any nickchange, local or remote.

This can be used to implement Q-lines etc. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). If your method returns nonzero, the nickchange is silently forbidden, and it is down to your module to generate some meaninful output.

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

00326 { return 0; };
+

-

00325 { return 0; };
-
-

- +

+

- + - - + + - - + + - - - + + + - + -
int Module::OnUserPreNotice int Module::OnUserPreNotice userrec user,
void *  dest,
int  target_type,
std::string & std::string text
[virtual]
- +
+
  @@ -2618,31 +2533,30 @@ Called whenever a user is about to NOTICE A user or a channel, before any proces

Returning any nonzero value from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to filter or redirect messages. target_type can be one of TYPE_USER or TYPE_CHANNEL. If the target_type value is a user, you must cast dest to a userrec* otherwise you must cast it to a chanrec*, this is the details of where the message is destined to be sent. You may alter the message text as you wish before relinquishing control to the next module in the chain, and if no other modules block the text this altered form of the text will be sent out to the user and possibly to other servers.

-Definition at line 324 of file modules.cpp. +Definition at line 325 of file modules.cpp.

00325 { return 0; };
+

-

00324 { return 0; };
-
-

- +

+

- + -
void Module::OnUserQuit void Module::OnUserQuit userrec user  )  [virtual]
- +
+
  @@ -2654,31 +2568,30 @@ Called when a user quits.

The details of the exiting user are available to you in the parameter userrec *user This event is only called when the user is fully registered when they quit. To catch raw disconnections, use the OnUserDisconnect method.

-Definition at line 308 of file modules.cpp. +Definition at line 309 of file modules.cpp.

00309 { }
+

-

00308 { }
-
-

- +

+

- + -
void Module::OnUserRegister void Module::OnUserRegister userrec user  )  [virtual]
- +
+
  @@ -2690,31 +2603,30 @@ Called whenever a user is about to register their connection (e.g.

before the user is sent the MOTD etc). Modules can use this method if they are performing a function which must be done before the actual connection is completed (e.g. ident lookups, dnsbl lookups, etc). Note that you should NOT delete the user record here by causing a disconnection! Use OnUserConnect for that instead.

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

00339 { };
+

-

00337 { };
-
-

- +

+

- + -
string_list Module::OnUserSync string_list Module::OnUserSync userrec user  )  [virtual]
- +
+
  @@ -2726,42 +2638,39 @@ Called during a netburst to sync user data.

This is called during the netburst on a per-user basis. You should use this call to up any special user-related things which are implemented by your module, e.g. sending listmodes. You may return multiple commands in the string_list.

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

-References string_list. +Definition at line 329 of file modules.cpp.

00329 { string_list empty; return empty; }
+

-

00328 { string_list empty; return empty; }
-
-

- +

+

- + - - + + - + -
void Module::OnWhois void Module::OnWhois userrec source,
userrec dest
[virtual]
- +
+
  @@ -2773,17 +2682,16 @@ Called whenever a /WHOIS is performed on a local user.

The source parameter contains the details of the user who issued the WHOIS command, and the dest parameter contains the information of the user they are whoising.

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

00322 { };
+

-

00321 { };
-


The documentation for this class was generated from the following files: -
Generated on Mon May 30 05:17:24 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index c9066625b..b73bcb781 100644 --- a/docs/module-doc/classModuleFactory-members.html +++ b/docs/module-doc/classModuleFactory-members.html @@ -1,20 +1,19 @@ - + InspIRCd: Member List - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

ModuleFactory Member List

This is the complete list of members for ModuleFactory, including all inherited members. - - - - - - -
ageclassbase
classbase()classbase [inline]
CreateModule()=0ModuleFactory [pure virtual]
ModuleFactory()ModuleFactory [inline]
~classbase()classbase [inline]
~ModuleFactory()ModuleFactory [inline, virtual]

Generated on Mon May 30 05:17:25 2005 for InspIRCd by + + +

ModuleFactory Member List

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

+ + + + + + +
ageclassbase
classbase()classbase [inline]
CreateModule()=0ModuleFactory [pure virtual]
ModuleFactory()ModuleFactory [inline]
~classbase()classbase [inline]
~ModuleFactory()ModuleFactory [inline, virtual]


Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index 5696482fb..7c1a7c248 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -1,11 +1,11 @@ - + -InspIRCd: ModuleFactory class Reference +InspIRCd: ModuleFactory Class Reference - -
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members
-

ModuleFactory Class Reference

Instantiates classes inherited from Module This class creates a class inherited from type Module, using new. + +
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members
+

ModuleFactory Class Reference

Instantiates classes inherited from Module This class creates a class inherited from type Module, using new. More...

#include <modules.h> @@ -16,45 +16,44 @@ Inheritance diagram for ModuleFactory:

[legend]
Collaboration diagram for ModuleFactory:

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

Public Member Functions

 ModuleFactory ()

Public Member Functions

 ModuleFactory ()
virtual ~ModuleFactory ()
virtual ~ModuleFactory ()
virtual ModuleCreateModule ()=0
virtual ModuleCreateModule ()=0
 Creates a new module.

 Creates a new module.

Detailed Description

Instantiates classes inherited from Module This class creates a class inherited from type Module, using new.

-This is to allow for modules to create many different variants of Module, dependent on architecture, configuration, etc. In most cases, the simple class shown in the example module m_foobar.so will suffice for most modules. +This is to allow for modules to create many different variants of Module, dependent on architecture, configuration, etc. In most cases, the simple class shown in the example module m_foobar.so will suffice for most modules.

-Definition at line 1294 of file modules.h.


Constructor & Destructor Documentation

-

- +Definition at line 1265 of file modules.h.

Constructor & Destructor Documentation

+

+

- + -
ModuleFactory::ModuleFactory ModuleFactory::ModuleFactory  )  [inline]
- +
+
  @@ -64,30 +63,29 @@ Definition at line 1294 o

-Definition at line 1297 of file modules.h. +Definition at line 1268 of file modules.h.

01268 { }
+

-

01297 { }
-
-

- +

+

- + -
virtual ModuleFactory::~ModuleFactory virtual ModuleFactory::~ModuleFactory  )  [inline, virtual]
- +
+
  @@ -97,31 +95,30 @@ Definition at line 1297 o

-Definition at line 1298 of file modules.h. +Definition at line 1269 of file modules.h.

01269 { }
+

-

01298 { }
-


Member Function Documentation

-

- +

+

- + -
virtual Module* ModuleFactory::CreateModule virtual Module* ModuleFactory::CreateModule  )  [pure virtual]
- +
  @@ -136,9 +133,8 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h -
Generated on Mon May 30 05:17:25 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModuleFactory__coll__graph.gif b/docs/module-doc/classModuleFactory__coll__graph.gif index 40387e7f3..1cb0fe5f1 100644 Binary files a/docs/module-doc/classModuleFactory__coll__graph.gif and b/docs/module-doc/classModuleFactory__coll__graph.gif differ diff --git a/docs/module-doc/classModuleFactory__coll__graph.map b/docs/module-doc/classModuleFactory__coll__graph.map new file mode 100644 index 000000000..9eb3655c2 --- /dev/null +++ b/docs/module-doc/classModuleFactory__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 22,97 102,124 diff --git a/docs/module-doc/classModuleFactory__coll__graph.md5 b/docs/module-doc/classModuleFactory__coll__graph.md5 new file mode 100644 index 000000000..fc323e944 --- /dev/null +++ b/docs/module-doc/classModuleFactory__coll__graph.md5 @@ -0,0 +1 @@ +9dcff27f0b2b6c10f56cb9bd64ee6b74 \ No newline at end of file diff --git a/docs/module-doc/classModuleFactory__inherit__graph.gif b/docs/module-doc/classModuleFactory__inherit__graph.gif index 238a4927c..75ee256c7 100644 Binary files a/docs/module-doc/classModuleFactory__inherit__graph.gif and b/docs/module-doc/classModuleFactory__inherit__graph.gif differ diff --git a/docs/module-doc/classModuleFactory__inherit__graph.map b/docs/module-doc/classModuleFactory__inherit__graph.map new file mode 100644 index 000000000..72a2ad2d2 --- /dev/null +++ b/docs/module-doc/classModuleFactory__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 22,7 102,34 diff --git a/docs/module-doc/classModuleFactory__inherit__graph.md5 b/docs/module-doc/classModuleFactory__inherit__graph.md5 new file mode 100644 index 000000000..00d312373 --- /dev/null +++ b/docs/module-doc/classModuleFactory__inherit__graph.md5 @@ -0,0 +1 @@ +39255dae702fdbc6009033a563f97830 \ No newline at end of file diff --git a/docs/module-doc/classModuleMessage-members.html b/docs/module-doc/classModuleMessage-members.html index 4249074f2..b632b3a31 100644 --- a/docs/module-doc/classModuleMessage-members.html +++ b/docs/module-doc/classModuleMessage-members.html @@ -1,18 +1,18 @@ - + InspIRCd: Member List - - -

ModuleMessage Member List

This is the complete list of members for ModuleMessage, including all inherited members. - - - - -
ageclassbase
classbase()classbase [inline]
Send()=0ModuleMessage [pure virtual]
~classbase()classbase [inline]

Generated on Mon May 30 05:17:27 2005 for InspIRCd by + + +

ModuleMessage Member List

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

+ + + + + +
ageclassbase
classbase()classbase [inline]
Send()=0ModuleMessage [pure virtual]
~classbase()classbase [inline]
~ModuleMessage()ModuleMessage [inline, virtual]


Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModuleMessage.html b/docs/module-doc/classModuleMessage.html index d194e7af9..4c1211a7b 100644 --- a/docs/module-doc/classModuleMessage.html +++ b/docs/module-doc/classModuleMessage.html @@ -1,56 +1,90 @@ - + -InspIRCd: ModuleMessage class Reference +InspIRCd: ModuleMessage Class Reference - - -

ModuleMessage Class Reference

The ModuleMessage class is the base class of Request and Event This class is used to represent a basic data structure which is passed between modules for safe inter-module communications. + + +

ModuleMessage Class Reference

The ModuleMessage class is the base class of Request and Event This class is used to represent a basic data structure which is passed between modules for safe inter-module communications. More...

#include <modules.h>

Inheritance diagram for ModuleMessage:

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

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

Public Member Functions

virtual char * Send ()=0

Public Member Functions

virtual char * Send ()=0
 This class is pure virtual and must be inherited.
virtual ~ModuleMessage ()
 This class is pure virtual and must be inherited.


Detailed Description

The ModuleMessage class is the base class of Request and Event This class is used to represent a basic data structure which is passed between modules for safe inter-module communications.

-Definition at line 141 of file modules.h.


Member Function Documentation

-

- +Definition at line 142 of file modules.h.

Constructor & Destructor Documentation

+

+

+ +
- + - + +
virtual char* ModuleMessage::Send virtual ModuleMessage::~ModuleMessage  )  [pure virtual] [inline, virtual]
+
+ + + + + +
+   + +

+ +

+Definition at line 148 of file modules.h.

00148 {};
+
+

+

+


Member Function Documentation

+

+ + +
+ + + + + + + +
virtual char* ModuleMessage::Send  )  [pure virtual]
- +
+Implemented in Request, and Event.
  @@ -62,14 +96,13 @@ This class is pure virtual and must be inherited.

-Implemented in Request, and Event.


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:17:27 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classModuleMessage__coll__graph.gif b/docs/module-doc/classModuleMessage__coll__graph.gif index fd42f3522..4ebbb17f9 100644 Binary files a/docs/module-doc/classModuleMessage__coll__graph.gif and b/docs/module-doc/classModuleMessage__coll__graph.gif differ diff --git a/docs/module-doc/classModuleMessage__coll__graph.map b/docs/module-doc/classModuleMessage__coll__graph.map new file mode 100644 index 000000000..bad1a1f99 --- /dev/null +++ b/docs/module-doc/classModuleMessage__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 27,97 107,124 diff --git a/docs/module-doc/classModuleMessage__coll__graph.md5 b/docs/module-doc/classModuleMessage__coll__graph.md5 new file mode 100644 index 000000000..aa6a07c97 --- /dev/null +++ b/docs/module-doc/classModuleMessage__coll__graph.md5 @@ -0,0 +1 @@ +5c42f12f5b426d989c7e75ac013ed369 \ No newline at end of file diff --git a/docs/module-doc/classModuleMessage__inherit__graph.gif b/docs/module-doc/classModuleMessage__inherit__graph.gif index 2c9bc3e21..42588ac6b 100644 Binary files a/docs/module-doc/classModuleMessage__inherit__graph.gif and b/docs/module-doc/classModuleMessage__inherit__graph.gif differ diff --git a/docs/module-doc/classModuleMessage__inherit__graph.map b/docs/module-doc/classModuleMessage__inherit__graph.map new file mode 100644 index 000000000..b8be28a28 --- /dev/null +++ b/docs/module-doc/classModuleMessage__inherit__graph.map @@ -0,0 +1,4 @@ +base referer +rect $classEvent.html 7,156 63,183 +rect $classRequest.html 87,156 159,183 +rect $classclassbase.html 39,7 119,33 diff --git a/docs/module-doc/classModuleMessage__inherit__graph.md5 b/docs/module-doc/classModuleMessage__inherit__graph.md5 new file mode 100644 index 000000000..f911f90ca --- /dev/null +++ b/docs/module-doc/classModuleMessage__inherit__graph.md5 @@ -0,0 +1 @@ +da616c73965dd83233223320178e1259 \ No newline at end of file diff --git a/docs/module-doc/classModule__coll__graph.gif b/docs/module-doc/classModule__coll__graph.gif index 88bc140ca..677aae159 100644 Binary files a/docs/module-doc/classModule__coll__graph.gif and b/docs/module-doc/classModule__coll__graph.gif differ diff --git a/docs/module-doc/classModule__coll__graph.map b/docs/module-doc/classModule__coll__graph.map new file mode 100644 index 000000000..f3b09806a --- /dev/null +++ b/docs/module-doc/classModule__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,97 87,124 diff --git a/docs/module-doc/classModule__coll__graph.md5 b/docs/module-doc/classModule__coll__graph.md5 new file mode 100644 index 000000000..734a15309 --- /dev/null +++ b/docs/module-doc/classModule__coll__graph.md5 @@ -0,0 +1 @@ +60bd8f55ffe57aff1fdd74400fc04a9c \ No newline at end of file diff --git a/docs/module-doc/classModule__inherit__graph.gif b/docs/module-doc/classModule__inherit__graph.gif index ef0aef6e2..77c059c20 100644 Binary files a/docs/module-doc/classModule__inherit__graph.gif and b/docs/module-doc/classModule__inherit__graph.gif differ diff --git a/docs/module-doc/classModule__inherit__graph.map b/docs/module-doc/classModule__inherit__graph.map new file mode 100644 index 000000000..8b1d85be3 --- /dev/null +++ b/docs/module-doc/classModule__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,7 87,34 diff --git a/docs/module-doc/classModule__inherit__graph.md5 b/docs/module-doc/classModule__inherit__graph.md5 new file mode 100644 index 000000000..36433ad9c --- /dev/null +++ b/docs/module-doc/classModule__inherit__graph.md5 @@ -0,0 +1 @@ +1a9b43f472b611b45110c0c43a496d3b \ No newline at end of file diff --git a/docs/module-doc/classQLine-members.html b/docs/module-doc/classQLine-members.html index a03e71840..e1497bcbe 100644 --- a/docs/module-doc/classQLine-members.html +++ b/docs/module-doc/classQLine-members.html @@ -1,24 +1,23 @@ - + InspIRCd: Member List - - -

QLine Member List

This is the complete list of members for QLine, including all inherited members. - - - - - - - - - - -
ageclassbase
classbase()classbase [inline]
durationXLine
is_globalQLine
n_matchesXLine
nickQLine
reasonXLine
set_timeXLine
sourceXLine
~classbase()classbase [inline]

Generated on Mon May 30 05:17:28 2005 for InspIRCd by + + +

QLine Member List

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

+ + + + + + + + + + +
ageclassbase
classbase()classbase [inline]
durationXLine
is_globalQLine
n_matchesXLine
nickQLine
reasonXLine
set_timeXLine
sourceXLine
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index a6cf3b6fa..589abe351 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -1,34 +1,34 @@ - + -InspIRCd: QLine class Reference +InspIRCd: QLine Class Reference - - -

QLine Class Reference

QLine class. + + +

QLine Class Reference

QLine class. More...

#include <xline.h>

Inheritance diagram for QLine:

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

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

Public Attributes

char nick [64]

Public Attributes

char nick [64]
 Nickname to match against.

bool is_global
 Nickname to match against.
bool is_global
 Set if this is a global Z:line (e.g.

 Set if this is a global Z:line (e.g.

Detailed Description

QLine class. @@ -36,18 +36,19 @@ QLine class.

Definition at line 108 of file xline.h.


Member Data Documentation

-

- +

+

- +
bool QLine::is_global + bool QLine::is_global
- +
  @@ -62,18 +63,19 @@ it came from another server) Definition at line 118 of file xline.h.
-

- +

+

- +
char QLine::nick[64] + char QLine::nick[64]
- +
  @@ -90,9 +92,8 @@ Definition at line 114 of f


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:17:28 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classQLine__coll__graph.gif b/docs/module-doc/classQLine__coll__graph.gif index 767cb03f4..cd509e2d4 100644 Binary files a/docs/module-doc/classQLine__coll__graph.gif and b/docs/module-doc/classQLine__coll__graph.gif differ diff --git a/docs/module-doc/classQLine__coll__graph.map b/docs/module-doc/classQLine__coll__graph.map new file mode 100644 index 000000000..028f82a6e --- /dev/null +++ b/docs/module-doc/classQLine__coll__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classXLine.html 108,204 164,231 +rect $classclassbase.html 79,97 159,124 diff --git a/docs/module-doc/classQLine__coll__graph.md5 b/docs/module-doc/classQLine__coll__graph.md5 new file mode 100644 index 000000000..524d350e8 --- /dev/null +++ b/docs/module-doc/classQLine__coll__graph.md5 @@ -0,0 +1 @@ +ceaac849094845256faf8b33ad6f197e \ No newline at end of file diff --git a/docs/module-doc/classQLine__inherit__graph.gif b/docs/module-doc/classQLine__inherit__graph.gif index ebb68b47e..7129de9a4 100644 Binary files a/docs/module-doc/classQLine__inherit__graph.gif and b/docs/module-doc/classQLine__inherit__graph.gif differ diff --git a/docs/module-doc/classQLine__inherit__graph.map b/docs/module-doc/classQLine__inherit__graph.map new file mode 100644 index 000000000..37695eb4e --- /dev/null +++ b/docs/module-doc/classQLine__inherit__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classXLine.html 19,81 75,108 +rect $classclassbase.html 7,7 87,33 diff --git a/docs/module-doc/classQLine__inherit__graph.md5 b/docs/module-doc/classQLine__inherit__graph.md5 new file mode 100644 index 000000000..f8ab20af2 --- /dev/null +++ b/docs/module-doc/classQLine__inherit__graph.md5 @@ -0,0 +1 @@ +1e1892777c1af1702ebc41518c8faf00 \ No newline at end of file diff --git a/docs/module-doc/classRequest-members.html b/docs/module-doc/classRequest-members.html index bad7f7120..05f160ddc 100644 --- a/docs/module-doc/classRequest-members.html +++ b/docs/module-doc/classRequest-members.html @@ -1,25 +1,25 @@ - + InspIRCd: Member List - - -

Request Member List

This is the complete list of members for Request, including all inherited members. - - - - - - - - - - - -
ageclassbase
classbase()classbase [inline]
dataRequest [protected]
destRequest [protected]
GetData()Request
GetDest()Request
GetSource()Request
Request(char *anydata, Module *src, Module *dst)Request
Send()Request [virtual]
sourceRequest [protected]
~classbase()classbase [inline]

Generated on Mon May 30 05:17:30 2005 for InspIRCd by + + +

Request Member List

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

+ + + + + + + + + + + + +
ageclassbase
classbase()classbase [inline]
dataRequest [protected]
destRequest [protected]
GetData()Request
GetDest()Request
GetSource()Request
Request(char *anydata, Module *src, Module *dst)Request
Send()Request [virtual]
sourceRequest [protected]
~classbase()classbase [inline]
~ModuleMessage()ModuleMessage [inline, virtual]


Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classRequest.html b/docs/module-doc/classRequest.html index be396252c..a65615678 100644 --- a/docs/module-doc/classRequest.html +++ b/docs/module-doc/classRequest.html @@ -1,97 +1,96 @@ - + -InspIRCd: Request class Reference +InspIRCd: Request Class Reference - - -

Request Class Reference

The Request class is a unicast message directed at a given module. + + +

Request Class Reference

The Request class is a unicast message directed at a given module. More...

#include <modules.h>

Inheritance diagram for Request:

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

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

Public Member Functions

 Request (char *anydata, Module *src, Module *dst)

Public Member Functions

 Request (char *anydata, Module *src, Module *dst)
 Create a new Request.

char * GetData ()
 Create a new Request.
char * GetData ()
 Fetch the Request data.

ModuleGetSource ()
 Fetch the Request data.
ModuleGetSource ()
 Fetch the request source.

ModuleGetDest ()
 Fetch the request source.
ModuleGetDest ()
 Fetch the request destination (should be 'this' in the receiving module).

char * Send ()
 Fetch the request destination (should be 'this' in the receiving module).
char * Send ()
 Send the Request.


Protected Attributes

char * data
 Send the Request.

Protected Attributes

char * data
 This member holds a pointer to arbitary data set by the emitter of the message.

Modulesource
 This member holds a pointer to arbitary data set by the emitter of the message.
Modulesource
 This is a pointer to the sender of the message, which can be used to directly trigger events, or to create a reply.

Moduledest
 This is a pointer to the sender of the message, which can be used to directly trigger events, or to create a reply.
Moduledest
 The single destination of the Request.

 The single destination of the Request.

Detailed Description

The Request class is a unicast message directed at a given module.

-When this class is properly instantiated it may be sent to a module using the Send() method, which will call the given module's OnRequest method with this class as its parameter. +When this class is properly instantiated it may be sent to a module using the Send() method, which will call the given module's OnRequest method with this class as its parameter.

-Definition at line 154 of file modules.h.


Constructor & Destructor Documentation

-

- +Definition at line 156 of file modules.h.

Constructor & Destructor Documentation

+

+

- + - - + + - - + + - + -
Request::Request Request::Request char *  anydata,
Module src,
Module dst
- +
+
  @@ -103,31 +102,30 @@ Create a new Request.

-Definition at line 251 of file modules.cpp. +Definition at line 252 of file modules.cpp.

00252 : data(anydata), source(src), dest(dst) { };
+

-

00251 : data(anydata), source(src), dest(dst) { };
-


Member Function Documentation

-

- +

+

- + -
char * Request::GetData char * Request::GetData  ) 
- +
+
  @@ -139,34 +137,33 @@ Fetch the Request data.

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

-References data. +References data.

00255 {
+00256         return this->data;
+00257 }
+

-

00254 {
-00255         return this->data;
-00256 }
-
-

- +

+

- + -
Module * Request::GetDest Module * Request::GetDest  ) 
- +
+
  @@ -178,34 +175,33 @@ Fetch the request destination (should be 'this' in the receiving module).

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

-References dest. +References dest.

00265 {
+00266         return this->dest;
+00267 }
+

-

00264 {
-00265         return this->dest;
-00266 }
-
-

- +

+

- + -
Module * Request::GetSource Module * Request::GetSource  ) 
- +
+
  @@ -217,34 +213,33 @@ Fetch the request source.

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

-References source. +References source.

00260 {
+00261         return this->source;
+00262 }
+

-

00259 {
-00260         return this->source;
-00261 }
-
-

- +

+

- + -
char * Request::Send char * Request::Send  )  [virtual]
- +
+
  @@ -254,40 +249,41 @@ References source.

Send the Request.

-Upon returning the result will be arbitary data returned by the module you sent the request to. It is up to your module to know what this data is and how to deal with it. +Upon returning the result will be arbitary data returned by the module you sent the request to. It is up to your module to know what this data is and how to deal with it.

-Implements ModuleMessage. +Implements ModuleMessage.

-Definition at line 268 of file modules.cpp. +Definition at line 269 of file modules.cpp.

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

00270 {
+00271         if (this->dest)
+00272         {
+00273                 return dest->OnRequest(this);
+00274         }
+00275         else
+00276         {
+00277                 return NULL;
+00278         }
+00279 }
+

-

00269 {
-00270         if (this->dest)
-00271         {
-00272                 return dest->OnRequest(this);
-00273         }
-00274         else
-00275         {
-00276                 return NULL;
-00277         }
-00278 }
-


Member Data Documentation

-

- +

+

- +
char* Request::data [protected] + char* Request::data [protected]
- +
+Referenced by GetData().
  @@ -299,23 +295,24 @@ This member holds a pointer to arbitary data set by the emitter of the message.

-Definition at line 159 of file modules.h. +Definition at line 161 of file modules.h.

-Referenced by GetData().

-

- +

+

- +
Module* Request::dest [protected] + Module* Request::dest [protected]
- +
+Referenced by GetDest(), and Send().
  @@ -327,23 +324,24 @@ The single destination of the Request.

-Definition at line 166 of file modules.h. +Definition at line 168 of file modules.h.

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

-

- +

+

- +
Module* Request::source [protected] + Module* Request::source [protected]
- +
+Referenced by GetSource().
  @@ -355,16 +353,15 @@ This is a pointer to the sender of the message, which can be used to directly tr

-Definition at line 163 of file modules.h. +Definition at line 165 of file modules.h.

-Referenced by GetSource().


The documentation for this class was generated from the following files: -
Generated on Mon May 30 05:17:30 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classRequest__coll__graph.gif b/docs/module-doc/classRequest__coll__graph.gif index 293dd03e1..75f00e3de 100644 Binary files a/docs/module-doc/classRequest__coll__graph.gif and b/docs/module-doc/classRequest__coll__graph.gif differ diff --git a/docs/module-doc/classRequest__coll__graph.map b/docs/module-doc/classRequest__coll__graph.map new file mode 100644 index 000000000..1b4799fbe --- /dev/null +++ b/docs/module-doc/classRequest__coll__graph.map @@ -0,0 +1,4 @@ +base referer +rect $classModuleMessage.html 7,175 127,202 +rect $classclassbase.html 95,98 175,124 +rect $classModule.html 151,175 217,202 diff --git a/docs/module-doc/classRequest__coll__graph.md5 b/docs/module-doc/classRequest__coll__graph.md5 new file mode 100644 index 000000000..c0a60fb28 --- /dev/null +++ b/docs/module-doc/classRequest__coll__graph.md5 @@ -0,0 +1 @@ +5510328010b7765dbe242836ad9f7846 \ No newline at end of file diff --git a/docs/module-doc/classRequest__inherit__graph.gif b/docs/module-doc/classRequest__inherit__graph.gif index 4ebc85250..792e0e65e 100644 Binary files a/docs/module-doc/classRequest__inherit__graph.gif and b/docs/module-doc/classRequest__inherit__graph.gif differ diff --git a/docs/module-doc/classRequest__inherit__graph.map b/docs/module-doc/classRequest__inherit__graph.map new file mode 100644 index 000000000..f3f281b15 --- /dev/null +++ b/docs/module-doc/classRequest__inherit__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classModuleMessage.html 7,81 127,108 +rect $classclassbase.html 27,7 107,33 diff --git a/docs/module-doc/classRequest__inherit__graph.md5 b/docs/module-doc/classRequest__inherit__graph.md5 new file mode 100644 index 000000000..704aab881 --- /dev/null +++ b/docs/module-doc/classRequest__inherit__graph.md5 @@ -0,0 +1 @@ +23bf4b24d7a45be28b312c0ac827a9d3 \ No newline at end of file diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index 3556406cd..f620cf802 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -1,78 +1,72 @@ - + InspIRCd: Member List - - -

Server Member List

This is the complete list of members for Server, including all inherited members. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AddCommand(char *cmd, handlerfunc f, char flags, int minparams, char *source)Server [virtual]
AddELine(long duration, std::string source, std::string reason, std::string hostmask)Server [virtual]
AddExtendedListMode(char modechar)Server [virtual]
AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)Server [virtual]
AddGLine(long duration, std::string source, std::string reason, std::string hostmask)Server [virtual]
AddKLine(long duration, std::string source, std::string reason, std::string hostmask)Server [virtual]
AddQLine(long duration, std::string source, std::string reason, std::string nickname)Server [virtual]
AddZLine(long duration, std::string source, std::string reason, std::string ipaddr)Server [virtual]
ageclassbase
CalcDuration(std::string duration)Server [virtual]
CallCommandHandler(std::string commandname, char **parameters, int pcnt, userrec *user)Server [virtual]
ChangeGECOS(userrec *user, std::string gecos)Server [virtual]
ChangeHost(userrec *user, std::string host)Server [virtual]
ChangeUserNick(userrec *user, std::string nickname)Server [virtual]
ChanMode(userrec *User, chanrec *Chan)Server [virtual]
classbase()classbase [inline]
CommonChannels(userrec *u1, userrec *u2)Server [virtual]
CountUsers(chanrec *c)Server [virtual]
DelELine(std::string hostmask)Server [virtual]
DelGLine(std::string hostmask)Server [virtual]
DelKLine(std::string hostmask)Server [virtual]
DelQLine(std::string nickname)Server [virtual]
DelZLine(std::string ipaddr)Server [virtual]
FindChannel(std::string channel)Server [virtual]
FindDescriptor(int socket)Server [virtual]
FindModule(std::string name)Server [virtual]
FindNick(std::string nick)Server [virtual]
GetAdmin()Server [virtual]
GetNetworkName()Server [virtual]
GetServerDescription()Server [virtual]
GetServerName()Server [virtual]
GetUsers(chanrec *chan)Server [virtual]
IsNick(std::string nick)Server [virtual]
IsOnChannel(userrec *User, chanrec *Chan)Server [virtual]
IsUlined(std::string server)Server [virtual]
IsValidMask(std::string mask)Server [virtual]
JoinUserToChannel(userrec *user, std::string cname, std::string key)Server [virtual]
Log(int level, std::string s)Server [virtual]
MatchText(std::string sliteral, std::string spattern)Server [virtual]
MeshCheckChan(chanrec *c, std::string servername)Server [virtual]
MeshCheckCommon(userrec *u, std::string servername)Server [virtual]
MeshSendAll(std::string text)Server [virtual]
MeshSendAllAlive(std::string text)Server [virtual]
MeshSendAllExcept(std::string target, std::string text)Server [virtual]
MeshSendCommon(userrec *user, std::string text)Server [virtual]
MeshSendUnicast(std::string destination, std::string text)Server [virtual]
PartUserFromChannel(userrec *user, std::string cname, std::string reason)Server [virtual]
PseudoToUser(userrec *alive, userrec *zombie, std::string message)Server [virtual]
QuitUser(userrec *user, std::string reason)Server [virtual]
Send(int Socket, std::string s)Server [virtual]
SendChannel(userrec *User, chanrec *Channel, std::string s, bool IncludeSender)Server [virtual]
SendChannelServerNotice(std::string ServName, chanrec *Channel, std::string text)Server [virtual]
SendCommon(userrec *User, std::string text, bool IncludeSender)Server [virtual]
SendFrom(int Socket, userrec *User, std::string s)Server [virtual]
SendMode(char **parameters, int pcnt, userrec *user)Server [virtual]
SendOpers(std::string s)Server [virtual]
SendServ(int Socket, std::string s)Server [virtual]
SendTo(userrec *Source, userrec *Dest, std::string s)Server [virtual]
SendToModeMask(std::string modes, int flags, std::string text)Server [virtual]
SendWallops(userrec *User, std::string text)Server [virtual]
Server()Server
UserToPseudo(userrec *user, std::string message)Server [virtual]
~classbase()classbase [inline]
~Server()Server [virtual]

Generated on Mon May 30 05:17:33 2005 for InspIRCd by + + +

Server Member List

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

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddCommand(char *cmd, handlerfunc f, char flags, int minparams, char *source)Server [virtual]
AddELine(long duration, std::string source, std::string reason, std::string hostmask)Server [virtual]
AddExtendedListMode(char modechar)Server [virtual]
AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)Server [virtual]
AddGLine(long duration, std::string source, std::string reason, std::string hostmask)Server [virtual]
AddKLine(long duration, std::string source, std::string reason, std::string hostmask)Server [virtual]
AddQLine(long duration, std::string source, std::string reason, std::string nickname)Server [virtual]
AddSocket(InspSocket *sock)Server [virtual]
AddZLine(long duration, std::string source, std::string reason, std::string ipaddr)Server [virtual]
ageclassbase
CalcDuration(std::string duration)Server [virtual]
CallCommandHandler(std::string commandname, char **parameters, int pcnt, userrec *user)Server [virtual]
ChangeGECOS(userrec *user, std::string gecos)Server [virtual]
ChangeHost(userrec *user, std::string host)Server [virtual]
ChangeUserNick(userrec *user, std::string nickname)Server [virtual]
ChanMode(userrec *User, chanrec *Chan)Server [virtual]
classbase()classbase [inline]
CommonChannels(userrec *u1, userrec *u2)Server [virtual]
CountUsers(chanrec *c)Server [virtual]
DelELine(std::string hostmask)Server [virtual]
DelGLine(std::string hostmask)Server [virtual]
DelKLine(std::string hostmask)Server [virtual]
DelQLine(std::string nickname)Server [virtual]
DelSocket(InspSocket *sock)Server [virtual]
DelZLine(std::string ipaddr)Server [virtual]
FindChannel(std::string channel)Server [virtual]
FindDescriptor(int socket)Server [virtual]
FindModule(std::string name)Server [virtual]
FindNick(std::string nick)Server [virtual]
GetAdmin()Server [virtual]
GetNetworkName()Server [virtual]
GetServerDescription()Server [virtual]
GetServerName()Server [virtual]
GetUsers(chanrec *chan)Server [virtual]
IsNick(std::string nick)Server [virtual]
IsOnChannel(userrec *User, chanrec *Chan)Server [virtual]
IsUlined(std::string server)Server [virtual]
IsValidMask(std::string mask)Server [virtual]
JoinUserToChannel(userrec *user, std::string cname, std::string key)Server [virtual]
Log(int level, std::string s)Server [virtual]
MatchText(std::string sliteral, std::string spattern)Server [virtual]
PartUserFromChannel(userrec *user, std::string cname, std::string reason)Server [virtual]
PseudoToUser(userrec *alive, userrec *zombie, std::string message)Server [virtual]
QuitUser(userrec *user, std::string reason)Server [virtual]
Send(int Socket, std::string s)Server [virtual]
SendChannel(userrec *User, chanrec *Channel, std::string s, bool IncludeSender)Server [virtual]
SendChannelServerNotice(std::string ServName, chanrec *Channel, std::string text)Server [virtual]
SendCommon(userrec *User, std::string text, bool IncludeSender)Server [virtual]
SendFrom(int Socket, userrec *User, std::string s)Server [virtual]
SendMode(char **parameters, int pcnt, userrec *user)Server [virtual]
SendOpers(std::string s)Server [virtual]
SendServ(int Socket, std::string s)Server [virtual]
SendTo(userrec *Source, userrec *Dest, std::string s)Server [virtual]
SendToModeMask(std::string modes, int flags, std::string text)Server [virtual]
SendWallops(userrec *User, std::string text)Server [virtual]
Server()Server
UserToPseudo(userrec *user, std::string message)Server [virtual]
~classbase()classbase [inline]
~Server()Server [virtual]


Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index b53879f8d..8285fb2d6 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -1,236 +1,220 @@ - + -InspIRCd: Server class Reference +InspIRCd: Server Class Reference - - -

Server Class Reference

Allows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers. + + +

Server Class Reference

Allows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers. More...

#include <modules.h>

Inheritance diagram for Server:

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

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

Public Member Functions

 Server ()

Public Member Functions

 Server ()
 Default constructor.

virtual ~Server ()
 Default constructor.
virtual ~Server ()
 Default destructor.

virtual void SendOpers (std::string s)
 Default destructor.
virtual void SendOpers (std::string s)
 Sends text to all opers.

virtual void Log (int level, std::string s)
 Sends text to all opers.
virtual void Log (int level, std::string s)
 Writes a log string.

virtual void Send (int Socket, std::string s)
 Writes a log string.
virtual void Send (int Socket, std::string s)
 Sends a line of text down a TCP/IP socket.

virtual void SendServ (int Socket, std::string s)
 Sends a line of text down a TCP/IP socket.
virtual void SendServ (int Socket, std::string s)
 Sends text from the server to a socket.

virtual void SendChannelServerNotice (std::string ServName, chanrec *Channel, std::string text)
 Sends text from the server to a socket.
virtual void SendChannelServerNotice (std::string ServName, chanrec *Channel, std::string text)
 Writes text to a channel, but from a server, including all.

virtual void SendFrom (int Socket, userrec *User, std::string s)
 Writes text to a channel, but from a server, including all.
virtual void SendFrom (int Socket, userrec *User, std::string s)
 Sends text from a user to a socket.

virtual void SendTo (userrec *Source, userrec *Dest, std::string s)
 Sends text from a user to a socket.
virtual void SendTo (userrec *Source, userrec *Dest, std::string s)
 Sends text from a user to another user.

virtual void SendChannel (userrec *User, chanrec *Channel, std::string s, bool IncludeSender)
 Sends text from a user to another user.
virtual void SendChannel (userrec *User, chanrec *Channel, std::string s, bool IncludeSender)
 Sends text from a user to a channel (mulicast).

virtual bool CommonChannels (userrec *u1, userrec *u2)
 Sends text from a user to a channel (mulicast).
virtual bool CommonChannels (userrec *u1, userrec *u2)
 Returns true if two users share a common channel.

virtual void SendCommon (userrec *User, std::string text, bool IncludeSender)
 Returns true if two users share a common channel.
virtual void SendCommon (userrec *User, std::string text, bool IncludeSender)
 Sends text from a user to one or more channels (mulicast).

virtual void SendWallops (userrec *User, std::string text)
 Sends text from a user to one or more channels (mulicast).
virtual void SendWallops (userrec *User, std::string text)
 Sends a WALLOPS message.

virtual bool IsNick (std::string nick)
 Sends a WALLOPS message.
virtual bool IsNick (std::string nick)
 Returns true if a nick is valid.

virtual int CountUsers (chanrec *c)
 Returns true if a nick is valid.
virtual int CountUsers (chanrec *c)
 Returns a count of the number of users on a channel.

virtual userrecFindNick (std::string nick)
 Returns a count of the number of users on a channel.
virtual userrecFindNick (std::string nick)
 Attempts to look up a nick and return a pointer to it.

virtual userrecFindDescriptor (int socket)
 Attempts to look up a nick and return a pointer to it.
virtual userrecFindDescriptor (int socket)
 Attempts to look up a nick using the file descriptor associated with that nick.

virtual chanrecFindChannel (std::string channel)
 Attempts to look up a nick using the file descriptor associated with that nick.
virtual chanrecFindChannel (std::string channel)
 Attempts to look up a channel and return a pointer to it.

virtual std::string ChanMode (userrec *User, chanrec *Chan)
 Attempts to look up a channel and return a pointer to it.
virtual std::string ChanMode (userrec *User, chanrec *Chan)
 Attempts to look up a user's privilages on a channel.

virtual bool IsOnChannel (userrec *User, chanrec *Chan)
 Attempts to look up a user's privilages on a channel.
virtual bool IsOnChannel (userrec *User, chanrec *Chan)
 Checks if a user is on a channel.

virtual std::string GetServerName ()
 Checks if a user is on a channel.
virtual std::string GetServerName ()
 Returns the server name of the server where the module is loaded.

virtual std::string GetNetworkName ()
 Returns the server name of the server where the module is loaded.
virtual std::string GetNetworkName ()
 Returns the network name, global to all linked servers.

virtual std::string GetServerDescription ()
 Returns the network name, global to all linked servers.
virtual std::string GetServerDescription ()
 Returns the server description string of the local server.

virtual Admin GetAdmin ()
 Returns the server description string of the local server.
virtual Admin GetAdmin ()
 Returns the information of the server as returned by the /ADMIN command.

virtual bool AddExtendedMode (char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)
 Returns the information of the server as returned by the /ADMIN command.
virtual bool AddExtendedMode (char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)
 Adds an extended mode letter which is parsed by a module.

virtual bool AddExtendedListMode (char modechar)
 Adds an extended mode letter which is parsed by a module.
virtual bool AddExtendedListMode (char modechar)
 Adds an extended mode letter which is parsed by a module and handled in a list fashion.

virtual void AddCommand (char *cmd, handlerfunc f, char flags, int minparams, char *source)
 Adds an extended mode letter which is parsed by a module and handled in a list fashion.
virtual void AddCommand (char *cmd, handlerfunc f, char flags, int minparams, char *source)
 Adds a command to the command table.

virtual void SendMode (char **parameters, int pcnt, userrec *user)
 Adds a command to the command table.
virtual void SendMode (char **parameters, int pcnt, userrec *user)
 Sends a servermode.

virtual void SendToModeMask (std::string modes, int flags, std::string text)
 Sends a servermode.
virtual void SendToModeMask (std::string modes, int flags, std::string text)
 Sends to all users matching a mode mask You must specify one or more usermodes as the first parameter.

virtual chanrecJoinUserToChannel (userrec *user, std::string cname, std::string key)
 Sends to all users matching a mode mask You must specify one or more usermodes as the first parameter.
virtual chanrecJoinUserToChannel (userrec *user, std::string cname, std::string key)
 Forces a user to join a channel.

virtual chanrecPartUserFromChannel (userrec *user, std::string cname, std::string reason)
 Forces a user to join a channel.
virtual chanrecPartUserFromChannel (userrec *user, std::string cname, std::string reason)
 Forces a user to part a channel.

virtual void ChangeUserNick (userrec *user, std::string nickname)
 Forces a user to part a channel.
virtual void ChangeUserNick (userrec *user, std::string nickname)
 Forces a user nickchange.

virtual void QuitUser (userrec *user, std::string reason)
 Forces a user nickchange.
virtual void QuitUser (userrec *user, std::string reason)
 Forces a user to quit with the specified reason.

virtual bool MatchText (std::string sliteral, std::string spattern)
 Forces a user to quit with the specified reason.
virtual bool MatchText (std::string sliteral, std::string spattern)
 Matches text against a glob pattern.

virtual void CallCommandHandler (std::string commandname, char **parameters, int pcnt, userrec *user)
 Matches text against a glob pattern.
virtual void CallCommandHandler (std::string commandname, char **parameters, int pcnt, userrec *user)
 Calls the handler for a command, either implemented by the core or by another module.

virtual void ChangeHost (userrec *user, std::string host)
 Calls the handler for a command, either implemented by the core or by another module.
virtual void ChangeHost (userrec *user, std::string host)
 Change displayed hostname of a user.

virtual void ChangeGECOS (userrec *user, std::string gecos)
 Change displayed hostname of a user.
virtual void ChangeGECOS (userrec *user, std::string gecos)
 Change GECOS (fullname) of a user.

virtual bool IsUlined (std::string server)
 Change GECOS (fullname) of a user.
virtual bool IsUlined (std::string server)
 Returns true if the servername you give is ulined.

virtual chanuserlist GetUsers (chanrec *chan)
 Returns true if the servername you give is ulined.
virtual chanuserlist GetUsers (chanrec *chan)
 Fetches the userlist of a channel.

virtual bool UserToPseudo (userrec *user, std::string message)
 Fetches the userlist of a channel.
virtual bool UserToPseudo (userrec *user, std::string message)
 Remove a user's connection to the irc server, but leave their client in existence in the user hash.

virtual bool PseudoToUser (userrec *alive, userrec *zombie, std::string message)
 Remove a user's connection to the irc server, but leave their client in existence in the user hash.
virtual bool PseudoToUser (userrec *alive, userrec *zombie, std::string message)
 This user takes one user, and switches their file descriptor with another user, so that one user "becomes" the other.

virtual void AddGLine (long duration, std::string source, std::string reason, std::string hostmask)
 This user takes one user, and switches their file descriptor with another user, so that one user "becomes" the other.
virtual void AddGLine (long duration, std::string source, std::string reason, std::string hostmask)
 Adds a G-line The G-line is propogated to all of the servers in the mesh and enforced as soon as it is added.

virtual void AddQLine (long duration, std::string source, std::string reason, std::string nickname)
 Adds a G-line The G-line is propogated to all of the servers in the mesh and enforced as soon as it is added.
virtual void AddQLine (long duration, std::string source, std::string reason, std::string nickname)
 Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enforced as soon as it is added.

virtual void AddZLine (long duration, std::string source, std::string reason, std::string ipaddr)
 Adds a Q-line The Q-line is propogated to all of the servers in the mesh and enforced as soon as it is added.
virtual void AddZLine (long duration, std::string source, std::string reason, std::string ipaddr)
 Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enforced as soon as it is added.

virtual void AddKLine (long duration, std::string source, std::string reason, std::string hostmask)
 Adds a Z-line The Z-line is propogated to all of the servers in the mesh and enforced as soon as it is added.
virtual void AddKLine (long duration, std::string source, std::string reason, std::string hostmask)
 Adds a K-line The K-line is enforced as soon as it is added.

virtual void AddELine (long duration, std::string source, std::string reason, std::string hostmask)
 Adds a K-line The K-line is enforced as soon as it is added.
virtual void AddELine (long duration, std::string source, std::string reason, std::string hostmask)
 Adds a E-line The E-line is enforced as soon as it is added.

virtual bool DelGLine (std::string hostmask)
 Adds a E-line The E-line is enforced as soon as it is added.
virtual bool DelGLine (std::string hostmask)
 Deletes a G-Line from all servers on the mesh.

virtual bool DelQLine (std::string nickname)
 Deletes a G-Line from all servers on the mesh.
virtual bool DelQLine (std::string nickname)
 Deletes a Q-Line from all servers on the mesh.

virtual bool DelZLine (std::string ipaddr)
 Deletes a Q-Line from all servers on the mesh.
virtual bool DelZLine (std::string ipaddr)
 Deletes a Z-Line from all servers on the mesh.

virtual bool DelKLine (std::string hostmask)
 Deletes a Z-Line from all servers on the mesh.
virtual bool DelKLine (std::string hostmask)
 Deletes a local K-Line.

virtual bool DelELine (std::string hostmask)
 Deletes a local K-Line.
virtual bool DelELine (std::string hostmask)
 Deletes a local E-Line.

virtual long CalcDuration (std::string duration)
 Deletes a local E-Line.
virtual long CalcDuration (std::string duration)
 Calculates a duration This method will take a string containing a formatted duration (e.g.

virtual bool IsValidMask (std::string mask)
 Calculates a duration This method will take a string containing a formatted duration (e.g.
virtual bool IsValidMask (std::string mask)
 Returns true if a nick!ident string is correctly formatted, false if otherwise.

virtual void MeshSendAll (std::string text)
 Returns true if a nick!ident string is correctly formatted, false if otherwise.
virtual ModuleFindModule (std::string name)
 Sends a line of text to all connected servers.

virtual void MeshSendCommon (userrec *user, std::string text)
 This function finds a module by name.
virtual void AddSocket (InspSocket *sock)
 This method sends a line of text to all servers who have users which share common channels with the user you provide.

virtual void MeshSendAllAlive (std::string text)
 Adds a class derived from InspSocket to the server's socket engine.
virtual void DelSocket (InspSocket *sock)
 This function is equivalent to Server::MeshSendToAll except it will only route to servers which are directly routable.

virtual void MeshSendUnicast (std::string destination, std::string text)
 This function sends a line of text directly to a server.

virtual void MeshSendAllExcept (std::string target, std::string text)
 This function sends to all servers EXCEPT the one you specify.

virtual bool MeshCheckChan (chanrec *c, std::string servername)
 This function is used to check if any users on channel c are on server servername.

virtual bool MeshCheckCommon (userrec *u, std::string servername)
 This function is used to check if user u has any channels in common with users on servername.

virtual ModuleFindModule (std::string name)
 This function finds a module by name.

 Deletes a class derived from InspSocket from the server's socket engine.

Detailed Description

Allows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers.

-All modules should instantiate at least one copy of this class, and use its member functions to perform their tasks. +All modules should instantiate at least one copy of this class, and use its member functions to perform their tasks.

-Definition at line 694 of file modules.h.


Constructor & Destructor Documentation

-

- +Definition at line 696 of file modules.h.

Constructor & Destructor Documentation

+

+

- + -
Server::Server Server::Server  ) 
- +
+
  @@ -242,31 +226,30 @@ Default constructor.

Creates a Server object.

-Definition at line 366 of file modules.cpp. +Definition at line 367 of file modules.cpp.

00368 {
+00369 }
+

-

00367 {
-00368 }
-
-

- +

+

- + -
Server::~Server Server::~Server  )  [virtual]
- +
+
  @@ -278,60 +261,59 @@ Default destructor.

Destroys a Server object.

-Definition at line 370 of file modules.cpp. +Definition at line 371 of file modules.cpp.

00372 {
+00373 }
+

-

00371 {
-00372 }
-


Member Function Documentation

-

- +

+

- + - - + + - - + + - - + + - - + + - + -
void Server::AddCommand void Server::AddCommand char *  cmd,
handlerfunc  f,
char  flags,
int  minparams,
char *  source
[virtual]
- +
+
  @@ -342,59 +324,58 @@ Definition at line 370 Adds a command to the command table.

This allows modules to add extra commands into the command table. You must place a function within your module which is is of type handlerfunc:

-typedef void (handlerfunc) (char**, int, userrec*); ... void handle_kill(char **parameters, int pcnt, userrec *user)

+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 439 of file modules.cpp. +Definition at line 457 of file modules.cpp.

-References createcommand(). +References createcommand().

00458 {
+00459         createcommand(cmd,f,flags,minparams,source);
+00460 }
+

-

00440 {
-00441         createcommand(cmd,f,flags,minparams,source);
-00442 }
-
-

- +

+

- + - - - + + + - - - + + + - - - + + + - + -
void Server::AddELine void Server::AddELine long  duration,
std::string std::string  source,
std::string std::string  reason,
std::string std::string  hostmask
[virtual]
- +
+
  @@ -404,37 +385,36 @@ References createcommand().

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. +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 701 of file modules.cpp. +Definition at line 720 of file modules.cpp.

-References add_eline(), and duration(). +References add_eline().

00721 {
+00722         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00723 }
+

-

00702 {
-00703         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
-00704 }
-
-

- +

+

- + -
bool Server::AddExtendedListMode bool Server::AddExtendedListMode char  modechar  )  [virtual]
- +
+
  @@ -451,65 +431,64 @@ 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 607 of file modules.cpp. +Definition at line 625 of file modules.cpp.

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

00626 {
+00627         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
+00628         if (res)
+00629                 ModeMakeList(modechar);
+00630         return res;
+00631 }
+

-

00608 {
-00609         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
-00610         if (res)
-00611                 ModeMakeList(modechar);
-00612         return res;
-00613 }
-
-

- +

+

- + - - + + - - + + - - + + - - + + - + -
bool Server::AddExtendedMode bool Server::AddExtendedMode char  modechar,
int  type,
bool  requires_oper,
int  params_when_on,
int  params_when_off
[virtual]
- +
- -
  @@ -521,79 +500,78 @@ 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 579 of file modules.cpp. -

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

-

00580 {
-00581         if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z')))
-00582         {
-00583                 if (type == MT_SERVER)
-00584                 {
-00585                         log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
-00586                         return false;
-00587                 }
-00588                 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
-00589                 {
-00590                         log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
-00591                         return false;
-00592                 }
-00593                 if ((params_when_on>1) || (params_when_off>1))
-00594                 {
-00595                         log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
-00596                         return false;
-00597                 }
-00598                 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
-00599         }
-00600         else
-00601         {
-00602                 log(DEBUG,"*** API ERROR *** Muppet modechar detected.");
-00603         }
-00604         return false;
-00605 }
-
-

- +Definition at line 597 of file modules.cpp. +

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

00598 {
+00599         if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z')))
+00600         {
+00601                 if (type == MT_SERVER)
+00602                 {
+00603                         log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
+00604                         return false;
+00605                 }
+00606                 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
+00607                 {
+00608                         log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
+00609                         return false;
+00610                 }
+00611                 if ((params_when_on>1) || (params_when_off>1))
+00612                 {
+00613                         log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
+00614                         return false;
+00615                 }
+00616                 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
+00617         }
+00618         else
+00619         {
+00620                 log(DEBUG,"*** API ERROR *** Muppet modechar detected.");
+00621         }
+00622         return false;
+00623 }
+
+

+ + +

+

+
- + - - - + + + - - - + + + - - - + + + - + -
void Server::AddGLine void Server::AddGLine long  duration,
std::string std::string  source,
std::string std::string  reason,
std::string std::string  hostmask
[virtual]
- +
+
  @@ -603,58 +581,57 @@ References DEBUG, Adds a G-line The G-line is propogated to all of the servers in the mesh and 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. +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 681 of file modules.cpp. +Definition at line 700 of file modules.cpp.

-References add_gline(), and duration(). +References add_gline().

00701 {
+00702         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00703 }
+

-

00682 {
-00683         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
-00684 }
-
-

- +

+

- + - - - + + + - - - + + + - - - + + + - + -
void Server::AddKLine void Server::AddKLine long  duration,
std::string std::string  source,
std::string std::string  reason,
std::string std::string  hostmask
[virtual]
- +
+
  @@ -664,58 +641,57 @@ References add_gline(), and 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. +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 696 of file modules.cpp. +Definition at line 715 of file modules.cpp.

-References add_kline(), and duration(). +References add_kline().

00716 {
+00717         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
+00718 }
+

-

00697 {
-00698         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
-00699 }
-
-

- +

+

- + - - - + + + - - - + + + - - - + + + - + -
void Server::AddQLine void Server::AddQLine long  duration,
std::string std::string  source,
std::string std::string  reason,
std::string std::string  nickname
[virtual]
- +
+ +
  @@ -725,58 +701,96 @@ References add_kline(), and 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. +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 705 of file modules.cpp. +

+References add_qline().

00706 {
+00707         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
+00708 }
+
+

+

+

+ + + + +
+ + + + + + + + + +
void Server::AddSocket InspSocket sock  )  [virtual]
+
+ + + + +
+   + + +

+Adds a class derived from InspSocket to the server's socket engine.

-Definition at line 686 of file modules.cpp. + +

+Definition at line 375 of file modules.cpp.

-References add_qline(), and duration(). +References module_sockets.

00376 {
+00377         module_sockets.push_back(sock);
+00378 }
+

-

00687 {
-00688         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
-00689 }
-
-

- +

+

- + - - - + + + - - - + + + - - - + + + - + -
void Server::AddZLine void Server::AddZLine long  duration,
std::string std::string  source,
std::string std::string  reason,
std::string std::string  ipaddr
[virtual]
- +
+
  @@ -786,37 +800,36 @@ References add_qline(), and 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. +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 691 of file modules.cpp. +Definition at line 710 of file modules.cpp.

-References add_zline(), and duration(). +References add_zline().

00711 {
+00712         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
+00713 }
+

-

00692 {
-00693         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
-00694 }
-
-

- +

+

- + - + -
long Server::CalcDuration long Server::CalcDuration std::string std::string  duration  )  [virtual]
- +
+
  @@ -828,56 +841,55 @@ 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 731 of file modules.cpp. +Definition at line 750 of file modules.cpp.

-References duration(). +References duration().

00751 {
+00752         return duration(delta.c_str());
+00753 }
+

-

00732 {
-00733         return duration(delta.c_str());
-00734 }
-
-

- +

+

- + - + - - + + - - + + - - + + - + -
void Server::CallCommandHandler void Server::CallCommandHandler std::string std::string  commandname,
char **  parameters,
int  pcnt,
userrec user
[virtual]
- +
+
  @@ -888,44 +900,43 @@ References duration(). Calls the handler for a command, either implemented by the core or by another module.

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. +) 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 429 of file modules.cpp. +Definition at line 447 of file modules.cpp.

00448 {
+00449         call_handler(commandname.c_str(),parameters,pcnt,user);
+00450 }
+

-

00430 {
-00431         call_handler(commandname.c_str(),parameters,pcnt,user);
-00432 }
-
-

- +

+

- + - - - + + + - + -
void Server::ChangeGECOS void Server::ChangeGECOS userrec user,
std::string std::string  gecos
[virtual]
- +
+
  @@ -937,44 +948,43 @@ 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 522 of file modules.cpp. +Definition at line 540 of file modules.cpp.

-References ChangeName(). +References ChangeName().

00541 {
+00542         ChangeName(user,gecos.c_str());
+00543 }
+

-

00523 {
-00524         ChangeName(user,gecos.c_str());
-00525 }
-
-

- +

+

- + - - - + + + - + -
void Server::ChangeHost void Server::ChangeHost userrec user,
std::string std::string  host
[virtual]
- +
+
  @@ -986,44 +996,43 @@ 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 517 of file modules.cpp. +Definition at line 535 of file modules.cpp.

-References ChangeDisplayedHost(). +References ChangeDisplayedHost().

00536 {
+00537         ChangeDisplayedHost(user,host.c_str());
+00538 }
+

-

00518 {
-00519         ChangeDisplayedHost(user,host.c_str());
-00520 }
-
-

- +

+

- + - - - + + + - + -
void Server::ChangeUserNick void Server::ChangeUserNick userrec user,
std::string std::string  nickname
[virtual]
- +
+
  @@ -1035,42 +1044,41 @@ 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 414 of file modules.cpp. +Definition at line 432 of file modules.cpp.

00433 {
+00434         force_nickchange(user,nickname.c_str());
+00435 }
+

-

00415 {
-00416         force_nickchange(user,nickname.c_str());
-00417 }
-
-

- +

+

- + - - + + - + -
std::string Server::ChanMode std::string Server::ChanMode userrec User,
chanrec Chan
[virtual]
- +
+
  @@ -1080,46 +1088,45 @@ Definition at line 414

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. +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 547 of file modules.cpp. +Definition at line 565 of file modules.cpp.

-References cmode(). +References cmode().

00566 {
+00567         return cmode(User,Chan);
+00568 }
+

-

00548 {
-00549         return cmode(User,Chan);
-00550 }
-
-

- +

+

- + - - + + - + -
bool Server::CommonChannels bool Server::CommonChannels userrec u1,
userrec u2
[virtual]
- +
+
  @@ -1129,37 +1136,36 @@ References cmode().

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. +This method is used internally by the NICK and QUIT commands, and the Server::SendCommon method.

-Definition at line 495 of file modules.cpp. +Definition at line 513 of file modules.cpp.

-References common_channels(). +References common_channels().

00514 {
+00515         return (common_channels(u1,u2) != 0);
+00516 }
+

-

00496 {
-00497         return (common_channels(u1,u2) != 0);
-00498 }
-
-

- +

+

- + -
int Server::CountUsers int Server::CountUsers chanrec c  )  [virtual]
- +
+
  @@ -1171,33 +1177,32 @@ 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 615 of file modules.cpp. +Definition at line 633 of file modules.cpp.

00634 {
+00635         return usercount(c);
+00636 }
+

-

00616 {
-00617         return usercount(c);
-00618 }
-
-

- +

+

- + - + -
bool Server::DelELine bool Server::DelELine std::string std::string  hostmask  )  [virtual]
- +
+
  @@ -1209,35 +1214,34 @@ Deletes a local E-Line.

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

-References del_eline(). +References del_eline().

00746 {
+00747         return del_eline(hostmask.c_str());
+00748 }
+

-

00727 {
-00728         del_eline(hostmask.c_str());
-00729 }
-
-

- +

+

- + - + -
bool Server::DelGLine bool Server::DelGLine std::string std::string  hostmask  )  [virtual]
- +
+
  @@ -1249,35 +1253,34 @@ Deletes a G-Line from all servers on the mesh.

-Definition at line 706 of file modules.cpp. +Definition at line 725 of file modules.cpp.

-References del_gline(). +References del_gline().

00726 {
+00727         return del_gline(hostmask.c_str());
+00728 }
+

-

00707 {
-00708         del_gline(hostmask.c_str());
-00709 }
-
-

- +

+

- + - + -
bool Server::DelKLine bool Server::DelKLine std::string std::string  hostmask  )  [virtual]
- +
+
  @@ -1289,35 +1292,34 @@ Deletes a local K-Line.

-Definition at line 721 of file modules.cpp. +Definition at line 740 of file modules.cpp.

-References del_kline(). +References del_kline().

00741 {
+00742         return del_kline(hostmask.c_str());
+00743 }
+

-

00722 {
-00723         del_kline(hostmask.c_str());
-00724 }
-
-

- +

+

- + - + -
bool Server::DelQLine bool Server::DelQLine std::string std::string  nickname  )  [virtual]
- +
+
  @@ -1329,35 +1331,80 @@ Deletes a Q-Line from all servers on the mesh.

-Definition at line 711 of file modules.cpp. +Definition at line 730 of file modules.cpp.

-References del_qline(). +References del_qline().

00731 {
+00732         return del_qline(nickname.c_str());
+00733 }
+

-

00712 {
-00713         del_qline(nickname.c_str());
-00714 }
-
-

- +

+

+ +
- + - - + + +
bool Server::DelZLine void Server::DelSocket std::string  ipaddr InspSocket sock  )  [virtual]
+
+ + + + + +
+   + +

+Deletes a class derived from InspSocket from the server's socket engine. +

+ +

+Definition at line 380 of file modules.cpp. +

+References module_sockets.

00381 {
+00382         for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++)
+00383         {
+00384                 if (*a == sock)
+00385                 {
+00386                         module_sockets.erase(a);
+00387                         return;
+00388                 }
+00389         }
+00390 }
+
+

+

+

+ + +
+ + + + + + + + +
bool Server::DelZLine std::string  ipaddr  )  [virtual]
- +
+
  @@ -1369,35 +1416,34 @@ Deletes a Z-Line from all servers on the mesh.

-Definition at line 716 of file modules.cpp. +Definition at line 735 of file modules.cpp.

-References del_zline(). +References del_zline().

00736 {
+00737         return del_zline(ipaddr.c_str());
+00738 }
+

-

00717 {
-00718         del_zline(ipaddr.c_str());
-00719 }
-
-

- +

+

- + - + -
chanrec * Server::FindChannel chanrec * Server::FindChannel std::string std::string  channel  )  [virtual]
- +
+
  @@ -1409,33 +1455,32 @@ 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 542 of file modules.cpp. +Definition at line 560 of file modules.cpp.

00561 {
+00562         return FindChan(channel.c_str());
+00563 }
+

-

00543 {
-00544         return FindChan(channel.c_str());
-00545 }
-
-

- +

+

- + -
userrec * Server::FindDescriptor userrec * Server::FindDescriptor int  socket  )  [virtual]
- +
+
  @@ -1447,35 +1492,32 @@ 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 537 of file modules.cpp. +Definition at line 555 of file modules.cpp.

00556 {
+00557         return (socket < 65536 ? fd_ref_table[socket] : NULL);
+00558 }
+

-References fd_ref_table. -

-

00538 {
-00539         return (socket < 65536 ? fd_ref_table[socket] : NULL);
-00540 }
-
-

- +

+

- + - + -
Module * Server::FindModule Module * Server::FindModule std::string std::string  name  )  [virtual]
- +
+
  @@ -1487,42 +1529,41 @@ 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 809 of file modules.cpp. +Definition at line 784 of file modules.cpp.

-References MODCOUNT, module_names, and modules. +References MODCOUNT, module_names, and modules.

00785 {
+00786         for (int i = 0; i <= MODCOUNT; i++)
+00787         {
+00788                 if (module_names[i] == name)
+00789                 {
+00790                         return modules[i];
+00791                 }
+00792         }
+00793         return NULL;
+00794 }
+

-

00810 {
-00811         for (int i = 0; i <= MODCOUNT; i++)
-00812         {
-00813                 if (module_names[i] == name)
-00814                 {
-00815                         return modules[i];
-00816                 }
-00817         }
-00818         return NULL;
-00819 }
-
-

- +

+

- + - + -
userrec * Server::FindNick userrec * Server::FindNick std::string std::string  nick  )  [virtual]
- +
+
  @@ -1534,32 +1575,31 @@ 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 532 of file modules.cpp. +Definition at line 550 of file modules.cpp.

00551 {
+00552         return Find(nick);
+00553 }
+

-

00533 {
-00534         return Find(nick);
-00535 }
-
-

- +

+

- + -
Admin Server::GetAdmin Admin Server::GetAdmin  )  [virtual]
- +
+
  @@ -1569,34 +1609,33 @@ Definition at line 532

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. +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 572 of file modules.cpp. +Definition at line 590 of file modules.cpp.

00591 {
+00592         return Admin(getadminname(),getadminemail(),getadminnick());
+00593 }
+

-

00573 {
-00574         return Admin(getadminname(),getadminemail(),getadminnick());
-00575 }
-
-

- +

+

- + -
std::string Server::GetNetworkName std::string Server::GetNetworkName  )  [virtual]
- +
+
  @@ -1608,32 +1647,31 @@ Returns the network name, global to all linked servers.

-Definition at line 562 of file modules.cpp. +Definition at line 580 of file modules.cpp.

00581 {
+00582         return getnetworkname();
+00583 }
+

-

00563 {
-00564         return getnetworkname();
-00565 }
-
-

- +

+

- + -
std::string Server::GetServerDescription std::string Server::GetServerDescription  )  [virtual]
- +
+
  @@ -1645,32 +1683,31 @@ Returns the server description string of the local server.

-Definition at line 567 of file modules.cpp. +Definition at line 585 of file modules.cpp.

00586 {
+00587         return getserverdesc();
+00588 }
+

-

00568 {
-00569         return getserverdesc();
-00570 }
-
-

- +

+

- + -
std::string Server::GetServerName std::string Server::GetServerName  )  [virtual]
- +
+
  @@ -1682,33 +1719,32 @@ Returns the server name of the server where the module is loaded.

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

00576 {
+00577         return getservername();
+00578 }
+

-

00558 {
-00559         return getservername();
-00560 }
-
-

- +

+

- + -
chanuserlist Server::GetUsers chanuserlist Server::GetUsers chanrec chan  )  [virtual]
- +
+
  @@ -1720,43 +1756,42 @@ 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 402 of file modules.cpp. +Definition at line 420 of file modules.cpp.

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

00421 {
+00422         chanuserlist userl;
+00423         userl.clear();
+00424         std::vector<char*> *list = chan->GetUsers();
+00425         for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++)
+00426         {
+00427                 char* o = *i;
+00428                 userl.push_back((userrec*)o);
+00429         }
+00430         return userl;
+00431 }
+

-

00403 {
-00404         chanuserlist userl;
-00405         userl.clear();
-00406         std::vector<char*> *list = chan->GetUsers();
-00407         for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++)
-00408         {
-00409                 char* o = *i;
-00410                 userl.push_back((userrec*)o);
-00411         }
-00412         return userl;
-00413 }
-
-

- +

+

- + - + -
bool Server::IsNick bool Server::IsNick std::string std::string  nick  )  [virtual]
- +
+
  @@ -1768,44 +1803,43 @@ Returns true if a nick is valid.

Nicks for unregistered connections will return false.

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

-References isnick(). +References isnick().

00546 {
+00547         return (isnick(nick.c_str()) != 0);
+00548 }
+

-

00528 {
-00529         return (isnick(nick.c_str()) != 0);
-00530 }
-
-

- +

+

- + - - + + - + -
bool Server::IsOnChannel bool Server::IsOnChannel userrec User,
chanrec Chan
[virtual]
- +
+
  @@ -1817,35 +1851,34 @@ 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 552 of file modules.cpp. +Definition at line 570 of file modules.cpp.

-References has_channel(). +References has_channel().

00571 {
+00572         return has_channel(User,Chan);
+00573 }
+

-

00553 {
-00554         return has_channel(User,Chan);
-00555 }
-
-

- +

+

- + - + -
bool Server::IsUlined bool Server::IsUlined std::string std::string  server  )  [virtual]
- +
+
  @@ -1857,35 +1890,34 @@ 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 424 of file modules.cpp. +Definition at line 442 of file modules.cpp.

-References is_uline(). +References is_uline().

00443 {
+00444         return is_uline(server.c_str());
+00445 }
+

-

00425 {
-00426         return is_uline(server.c_str());
-00427 }
-
-

- +

+

- + - + -
bool Server::IsValidMask bool Server::IsValidMask std::string std::string  mask  )  [virtual]
- +
- -
  @@ -1897,72 +1929,71 @@ Returns true if a nick!ident string is correctly formatted, false if otherwise.

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

-

00737 {
-00738         const char* dest = mask.c_str();
-00739         if (strchr(dest,'!')==0)
-00740                 return false;
-00741         if (strchr(dest,'@')==0)
-00742                 return false;
-00743         for (int i = 0; i < strlen(dest); i++)
-00744                 if (dest[i] < 32)
-00745                         return false;
-00746         for (int i = 0; i < strlen(dest); i++)
-00747                 if (dest[i] > 126)
-00748                         return false;
-00749         int c = 0;
-00750         for (int i = 0; i < strlen(dest); i++)
-00751                 if (dest[i] == '!')
-00752                         c++;
-00753         if (c>1)
-00754                 return false;
-00755         c = 0;
-00756         for (int i = 0; i < strlen(dest); i++)
-00757                 if (dest[i] == '@')
-00758                         c++;
-00759         if (c>1)
-00760                 return false;
-00761 
-00762         return true;
-00763 }
-
-

- +Definition at line 755 of file modules.cpp.
00756 {
+00757         const char* dest = mask.c_str();
+00758         if (strchr(dest,'!')==0)
+00759                 return false;
+00760         if (strchr(dest,'@')==0)
+00761                 return false;
+00762         for (unsigned int i = 0; i < strlen(dest); i++)
+00763                 if (dest[i] < 32)
+00764                         return false;
+00765         for (unsigned int i = 0; i < strlen(dest); i++)
+00766                 if (dest[i] > 126)
+00767                         return false;
+00768         unsigned int c = 0;
+00769         for (unsigned int i = 0; i < strlen(dest); i++)
+00770                 if (dest[i] == '!')
+00771                         c++;
+00772         if (c>1)
+00773                 return false;
+00774         c = 0;
+00775         for (unsigned int i = 0; i < strlen(dest); i++)
+00776                 if (dest[i] == '@')
+00777                         c++;
+00778         if (c>1)
+00779                 return false;
+00780 
+00781         return true;
+00782 }
+
+

+ + +

+

+
- + - - - + + + - - - + + + - + -
chanrec * Server::JoinUserToChannel chanrec * Server::JoinUserToChannel userrec user,
std::string std::string  cname,
std::string std::string  key
[virtual]
- +
+
  @@ -1974,42 +2005,41 @@ 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 392 of file modules.cpp. +Definition at line 410 of file modules.cpp.

00411 {
+00412         return add_channel(user,cname.c_str(),key.c_str(),false);
+00413 }
+

-

00393 {
-00394         return add_channel(user,cname.c_str(),key.c_str(),false);
-00395 }
-
-

- +

+

- + - - - + + + - + -
void Server::Log void Server::Log int  level,
std::string std::string  s
[virtual]
- +
+
  @@ -2021,42 +2051,41 @@ 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 434 of file modules.cpp. +Definition at line 452 of file modules.cpp.

00453 {
+00454         log(level,"%s",s.c_str());
+00455 }
+

-

00435 {
-00436         log(level,"%s",s.c_str());
-00437 }
-
-

- +

+

- + - + - - - + + + - + -
bool Server::MatchText bool Server::MatchText std::string std::string  sliteral,
std::string std::string  spattern
[virtual]
- +
- -
  @@ -2068,371 +2097,50 @@ 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 379 of file modules.cpp. +Definition at line 397 of file modules.cpp.

00398 {
+00399         char literal[MAXBUF],pattern[MAXBUF];
+00400         strlcpy(literal,sliteral.c_str(),MAXBUF);
+00401         strlcpy(pattern,spattern.c_str(),MAXBUF);
+00402         return match(literal,pattern);
+00403 }
+

-

00380 {
-00381         char literal[MAXBUF],pattern[MAXBUF];
-00382         strlcpy(literal,sliteral.c_str(),MAXBUF);
-00383         strlcpy(pattern,spattern.c_str(),MAXBUF);
-00384         return match(literal,pattern);
-00385 }
-
-

- - -
- - - - - - - - - - - - - - - - - - - -
bool Server::MeshCheckChan chanrec c,
std::string  servername
[virtual]
- - - - - -
-   - - -

-This function is used to check if any users on channel c are on server servername. -

-This is used internally by PRIVMSG etc. You should not need to use it. -

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

-

00792 {
-00793         if (c)
-00794         {
-00795                 return ChanAnyOnThisServer(c,(char*)servername.c_str());
-00796         }
-00797         else return false;
-00798 }
-
-

- +

+

- -
- - - - - - - - - - - - - - - - - -
bool Server::MeshCheckCommon userrec u,
std::string  servername
[virtual]
-
- - - - - -
-   - - -

-This function is used to check if user u has any channels in common with users on servername. -

-This is used internally by Server::MeshSendCommon. You should very rarely need to use it. -

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

-

00801 {
-00802         if (u)
-00803         {
-00804                 return CommonOnThisServer(u,(char*)servername.c_str());
-00805         }
-00806         else return false;
-00807 }
-
-

- - - - -
- - - - - - - - - - -
void Server::MeshSendAll std::string  text  )  [virtual]
-
- - - - - -
-   - - -

-Sends a line of text to all connected servers. -

-If a server is not directly reachable, the core deals with routing the message, and will also deal with failures transparently. -

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

-

00766 {
-00767         NetSendToAll((char*)text.c_str());
-00768 }
-
-

- - - - -
- - - - - - - - - - -
void Server::MeshSendAllAlive std::string  text  )  [virtual]
-
- - - - - -
-   - - -

-This function is equivalent to Server::MeshSendToAll except it will only route to servers which are directly routable. -

- -

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

-

00777 {
-00778         NetSendToAllAlive((char*)text.c_str());
-00779 }
-
-

- - - - -
- - - - - - - - - - - - - - - - - - - -
void Server::MeshSendAllExcept std::string  target,
std::string  text
[virtual]
-
- - - - - -
-   - - -

-This function sends to all servers EXCEPT the one you specify. -

-You should usually use this function to send messages, specifying the SENDER of your message as 'target'. This will prevent message loops. -

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

-

00787 {
-00788         NetSendToAllExcept(target.c_str(),(char*)text.c_str());
-00789 }
-
-

- - - - -
- - - + - - - - - - - - - - - -
void Server::MeshSendCommon chanrec * Server::PartUserFromChannel userrec user,
std::string  text
[virtual]
-
- - - - - -
-   - - -

-This method sends a line of text to all servers who have users which share common channels with the user you provide. -

-For example, if user A is on server A, and they are on channels #one and #two, and user B is on server B, and also on channel #one, but user C is on server C and on neither #one or #two, this function will cause the text to only be sent to server B. However, if server B is only reachable via C, it will route it to C (you do not have to worry about this routing, it is done transparently, but its good to know how things work!) -

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

-

00771 {
-00772         if (user)
-00773                 NetSendToCommon(user,(char*)text.c_str());
-00774 }
-
-

- - - - -
- - - - - - - - - - - - - - - - - - - -
void Server::MeshSendUnicast std::string  destination,
std::string  text
[virtual]
-
- - - - - -
-   - - -

-This function sends a line of text directly to a server. -

-If the server is not directly routable at this time, the server attempts to route text through the mesh. -

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

-

00782 {
-00783         NetSendToOne((char*)destination.c_str(),(char*)text.c_str());
-00784 }
-
-

- - -
- - - - - - - - - - - + + + - - - + + + - + -
chanrec * Server::PartUserFromChannel userrec user,
std::string std::string  cname,
std::string std::string  reason
[virtual]
- +
+
  @@ -2444,48 +2152,47 @@ 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 397 of file modules.cpp. +Definition at line 415 of file modules.cpp.

00416 {
+00417         return del_channel(user,cname.c_str(),reason.c_str(),false);
+00418 }
+

-

00398 {
-00399         return del_channel(user,cname.c_str(),reason.c_str(),false);
-00400 }
-
-

- +

+

- + - - + + - - - + + + - + -
bool Server::PseudoToUser bool Server::PseudoToUser userrec alive,
userrec zombie,
std::string std::string  message
[virtual]
- +
- -
  @@ -2497,69 +2204,68 @@ 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 651 of file modules.cpp. -

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

-

00652 {
-00653         zombie->fd = alive->fd;
-00654         alive->fd = FD_MAGIC_NUMBER;
-00655         alive->ClearBuffer();
-00656         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
-00657         kill_link(alive,message.c_str());
-00658         fd_ref_table[zombie->fd] = zombie;
-00659         for (int i = 0; i != MAXCHANS; i++)
-00660         {
-00661                 if (zombie->chans[i].channel != NULL)
-00662                 {
-00663                         if (zombie->chans[i].channel->name)
-00664                         {
-00665                                 chanrec* Ptr = zombie->chans[i].channel;
-00666                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
-00667                                 if (Ptr->topicset)
-00668                                 {
-00669                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
-00670                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
-00671                                 }
-00672                                 userlist(zombie,Ptr);
-00673                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
-00674 
-00675                         }
-00676                 }
-00677         }
-00678 
-00679 }
-
-

- +Definition at line 670 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.

00671 {
+00672         zombie->fd = alive->fd;
+00673         alive->fd = FD_MAGIC_NUMBER;
+00674         alive->ClearBuffer();
+00675         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
+00676         kill_link(alive,message.c_str());
+00677         fd_ref_table[zombie->fd] = zombie;
+00678         for (int i = 0; i != MAXCHANS; i++)
+00679         {
+00680                 if (zombie->chans[i].channel != NULL)
+00681                 {
+00682                         if (zombie->chans[i].channel->name)
+00683                         {
+00684                                 chanrec* Ptr = zombie->chans[i].channel;
+00685                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
+00686                                 if (Ptr->topicset)
+00687                                 {
+00688                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
+00689                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
+00690                                 }
+00691                                 userlist(zombie,Ptr);
+00692                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
+00693 
+00694                         }
+00695                 }
+00696         }
+00697         return true;
+00698 }
+
+

+ + +

+

+
- + - - - + + + - + -
void Server::QuitUser void Server::QuitUser userrec user,
std::string std::string  reason
[virtual]
- +
+
  @@ -2573,42 +2279,41 @@ 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 419 of file modules.cpp. +Definition at line 437 of file modules.cpp.

00438 {
+00439         kill_link(user,reason.c_str());
+00440 }
+

-

00420 {
-00421         kill_link(user,reason.c_str());
-00422 }
-
-

- +

+

- + - - - + + + - + -
void Server::Send void Server::Send int  Socket,
std::string std::string  s
[virtual]
- +
+
  @@ -2620,54 +2325,53 @@ 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 449 of file modules.cpp. +Definition at line 467 of file modules.cpp.

00468 {
+00469         Write(Socket,"%s",s.c_str());
+00470 }
+

-

00450 {
-00451         Write(Socket,"%s",s.c_str());
-00452 }
-
-

- +

+

- + - - + + - - - + + + - - + + - + -
void Server::SendChannel void Server::SendChannel userrec User,
chanrec Channel,
std::string std::string  s,
bool  IncludeSender
[virtual]
- +
+
  @@ -2679,55 +2383,54 @@ 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 483 of file modules.cpp. +Definition at line 501 of file modules.cpp.

00502 {
+00503         if (IncludeSender)
+00504         {
+00505                 WriteChannel(Channel,User,"%s",s.c_str());
+00506         }
+00507         else
+00508         {
+00509                 ChanExceptSender(Channel,User,"%s",s.c_str());
+00510         }
+00511 }
+

-

00484 {
-00485         if (IncludeSender)
-00486         {
-00487                 WriteChannel(Channel,User,"%s",s.c_str());
-00488         }
-00489         else
-00490         {
-00491                 ChanExceptSender(Channel,User,"%s",s.c_str());
-00492         }
-00493 }
-
-

- +

+

- + - + - - + + - - - + + + - + -
void Server::SendChannelServerNotice void Server::SendChannelServerNotice std::string std::string  ServName,
chanrec Channel,
std::string std::string  text
[virtual]
- +
+
  @@ -2739,48 +2442,47 @@ 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 478 of file modules.cpp. +Definition at line 496 of file modules.cpp.

00497 {
+00498         WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str());
+00499 }
+

-

00479 {
-00480         WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str());
-00481 }
-
-

- +

+

- + - - - + + + - - + + - + -
void Server::SendCommon void Server::SendCommon userrec User,
std::string std::string  text,
bool  IncludeSender
[virtual]
- +
+
  @@ -2792,55 +2494,54 @@ 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 500 of file modules.cpp. +Definition at line 518 of file modules.cpp.

00519 {
+00520         if (IncludeSender)
+00521         {
+00522                 WriteCommon(User,"%s",text.c_str());
+00523         }
+00524         else
+00525         {
+00526                 WriteCommonExcept(User,"%s",text.c_str());
+00527         }
+00528 }
+

-

00501 {
-00502         if (IncludeSender)
-00503         {
-00504                 WriteCommon(User,"%s",text.c_str());
-00505         }
-00506         else
-00507         {
-00508                 WriteCommonExcept(User,"%s",text.c_str());
-00509         }
-00510 }
-
-

- +

+

- + - - + + - - - + + + - + -
void Server::SendFrom void Server::SendFrom int  Socket,
userrec User,
std::string std::string  s
[virtual]
- +
+
  @@ -2852,48 +2553,47 @@ 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 459 of file modules.cpp. +Definition at line 477 of file modules.cpp.

00478 {
+00479         WriteFrom(Socket,User,"%s",s.c_str());
+00480 }
+

-

00460 {
-00461         WriteFrom(Socket,User,"%s",s.c_str());
-00462 }
-
-

- +

+

- + - - + + - - + + - + -
void Server::SendMode void Server::SendMode char **  parameters,
int  pcnt,
userrec user
[virtual]
- +
+
  @@ -2912,35 +2612,34 @@ 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 444 of file modules.cpp. +Definition at line 462 of file modules.cpp.

-References server_mode(). +References server_mode().

00463 {
+00464         server_mode(parameters,pcnt,user);
+00465 }
+

-

00445 {
-00446         server_mode(parameters,pcnt,user);
-00447 }
-
-

- +

+

- + - + -
void Server::SendOpers void Server::SendOpers std::string std::string  s  )  [virtual]
- +
+
  @@ -2952,42 +2651,41 @@ Sends text to all opers.

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

-Definition at line 374 of file modules.cpp. +Definition at line 392 of file modules.cpp.

00393 {
+00394         WriteOpers("%s",s.c_str());
+00395 }
+

-

00375 {
-00376         WriteOpers("%s",s.c_str());
-00377 }
-
-

- +

+

- + - - - + + + - + -
void Server::SendServ void Server::SendServ int  Socket,
std::string std::string  s
[virtual]
- +
+
  @@ -2999,48 +2697,47 @@ 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 454 of file modules.cpp. +Definition at line 472 of file modules.cpp.

00473 {
+00474         WriteServ(Socket,"%s",s.c_str());
+00475 }
+

-

00455 {
-00456         WriteServ(Socket,"%s",s.c_str());
-00457 }
-
-

- +

+

- + - - + + - - - + + + - + -
void Server::SendTo void Server::SendTo userrec Source,
userrec Dest,
std::string std::string  s
[virtual]
- +
+
  @@ -3056,59 +2753,58 @@ The format will become:

:localserver TEXT

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

-Definition at line 464 of file modules.cpp. +Definition at line 482 of file modules.cpp.

-References connection::fd. +References connection::fd.

00483 {
+00484         if (!Source)
+00485         {
+00486                 // if source is NULL, then the message originates from the local server
+00487                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
+00488         }
+00489         else
+00490         {
+00491                 // otherwise it comes from the user specified
+00492                 WriteTo(Source,Dest,"%s",s.c_str());
+00493         }
+00494 }
+

-

00465 {
-00466         if (!Source)
-00467         {
-00468                 // if source is NULL, then the message originates from the local server
-00469                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
-00470         }
-00471         else
-00472         {
-00473                 // otherwise it comes from the user specified
-00474                 WriteTo(Source,Dest,"%s",s.c_str());
-00475         }
-00476 }
-
-

- +

+

- + - + - - + + - - - + + + - + -
void Server::SendToModeMask void Server::SendToModeMask std::string std::string  modes,
int  flags,
std::string std::string  text
[virtual]
- +
+
  @@ -3122,42 +2818,41 @@ 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 387 of file modules.cpp. +Definition at line 405 of file modules.cpp.

00406 {
+00407         WriteMode(modes.c_str(),flags,"%s",text.c_str());
+00408 }
+

-

00388 {
-00389         WriteMode(modes.c_str(),flags,"%s",text.c_str());
-00390 }
-
-

- +

+

- + - - - + + + - + -
void Server::SendWallops void Server::SendWallops userrec User,
std::string std::string  text
[virtual]
- +
+
  @@ -3169,42 +2864,41 @@ 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 512 of file modules.cpp. +Definition at line 530 of file modules.cpp.

00531 {
+00532         WriteWallOps(User,false,"%s",text.c_str());
+00533 }
+

-

00513 {
-00514         WriteWallOps(User,false,"%s",text.c_str());
-00515 }
-
-

- +

+

- + - - - + + + - + -
bool Server::UserToPseudo bool Server::UserToPseudo userrec user,
std::string std::string  message
[virtual]
- +
+Definition at line 639 of file modules.cpp. +

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

00640 {
+00641         unsigned int old_fd = user->fd;
+00642         user->fd = FD_MAGIC_NUMBER;
+00643         user->ClearBuffer();
+00644         Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str());
+00645 #ifdef USE_KQUEUE
+00646         struct kevent ke;
+00647         EV_SET(&ke, old_fd, EVFILT_READ, EV_DELETE, 0, 0, NULL);
+00648         int i = kevent(kq, &ke, 1, 0, 0, NULL);
+00649         if (i == -1)
+00650         {
+00651                 log(DEBUG,"kqueue: Failed to remove user from queue!");
+00652         }
+00653 #endif
+00654 #ifdef USE_EPOLL
+00655         struct epoll_event ev;
+00656         ev.events = EPOLLIN | EPOLLET;
+00657         ev.data.fd = old_fd;
+00658         int i = epoll_ctl(ep, EPOLL_CTL_DEL, old_fd, &ev);
+00659         if (i < 0)
+00660         {
+00661                 log(DEBUG,"epoll: List deletion failure!");
+00662         }
+00663 #endif
+00664 
+00665         shutdown(old_fd,2);
+00666         close(old_fd);
+00667         return true;
+00668 }
+
+

+

  @@ -3216,46 +2910,46 @@ 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 621 of file modules.cpp. -

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

-

00622 {
-00623         unsigned int old_fd = user->fd;
-00624         user->fd = FD_MAGIC_NUMBER;
-00625         user->ClearBuffer();
-00626         Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str());
-00627 #ifdef USE_KQUEUE
-00628         struct kevent ke;
-00629         EV_SET(&ke, old_fd, EVFILT_READ, EV_DELETE, 0, 0, NULL);
-00630         int i = kevent(kq, &ke, 1, 0, 0, NULL);
-00631         if (i == -1)
-00632         {
-00633                 log(DEBUG,"kqueue: Failed to remove user from queue!");
-00634         }
-00635 #endif
-00636 #ifdef USE_EPOLL
-00637         struct epoll_event ev;
-00638         ev.events = EPOLLIN | EPOLLET;
-00639         ev.data.fd = old_fd;
-00640         int i = epoll_ctl(ep, EPOLL_CTL_DEL, old_fd, &ev);
-00641         if (i < 0)
-00642         {
-00643                 log(DEBUG,"epoll: List deletion failure!");
-00644         }
-00645 #endif
-00646 
-00647         shutdown(old_fd,2);
-00648         close(old_fd);
-00649 }
-


The documentation for this class was generated from the following files: -
Generated on Mon May 30 05:17:32 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classServer__coll__graph.gif b/docs/module-doc/classServer__coll__graph.gif index b33352f63..82a02230d 100644 Binary files a/docs/module-doc/classServer__coll__graph.gif and b/docs/module-doc/classServer__coll__graph.gif differ diff --git a/docs/module-doc/classServer__coll__graph.map b/docs/module-doc/classServer__coll__graph.map new file mode 100644 index 000000000..f3b09806a --- /dev/null +++ b/docs/module-doc/classServer__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,97 87,124 diff --git a/docs/module-doc/classServer__coll__graph.md5 b/docs/module-doc/classServer__coll__graph.md5 new file mode 100644 index 000000000..b3a85952f --- /dev/null +++ b/docs/module-doc/classServer__coll__graph.md5 @@ -0,0 +1 @@ +d7b2c974d98c31619189da65cb01c6a4 \ No newline at end of file diff --git a/docs/module-doc/classServer__inherit__graph.gif b/docs/module-doc/classServer__inherit__graph.gif index b86b4b57e..f88c80980 100644 Binary files a/docs/module-doc/classServer__inherit__graph.gif and b/docs/module-doc/classServer__inherit__graph.gif differ diff --git a/docs/module-doc/classServer__inherit__graph.map b/docs/module-doc/classServer__inherit__graph.map new file mode 100644 index 000000000..8b1d85be3 --- /dev/null +++ b/docs/module-doc/classServer__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,7 87,34 diff --git a/docs/module-doc/classServer__inherit__graph.md5 b/docs/module-doc/classServer__inherit__graph.md5 new file mode 100644 index 000000000..76fb1d5ca --- /dev/null +++ b/docs/module-doc/classServer__inherit__graph.md5 @@ -0,0 +1 @@ +5ce04eb90ca9c0c01335daa7c092c0f0 \ No newline at end of file diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index e4a6ab61b..641098da6 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -1,23 +1,22 @@ - + InspIRCd: Member List - - -

Version Member List

This is the complete list of members for Version, including all inherited members. - - - - - - - - - -
ageclassbase
BuildVersion
classbase()classbase [inline]
FlagsVersion
MajorVersion
MinorVersion
RevisionVersion
Version(int major, int minor, int revision, int build, int flags)Version
~classbase()classbase [inline]

Generated on Mon May 30 05:17:45 2005 for InspIRCd by + + +

Version Member List

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

+ + + + + + + + + +
ageclassbase
BuildVersion
classbase()classbase [inline]
FlagsVersion
MajorVersion
MinorVersion
RevisionVersion
Version(int major, int minor, int revision, int build, int flags)Version
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index 712ebc942..c2caf8f31 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -1,94 +1,93 @@ - + -InspIRCd: Version class Reference +InspIRCd: Version Class Reference - - -

Version Class Reference

Holds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module. + + +

Version Class Reference

Holds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module. More...

#include <modules.h>

Inheritance diagram for Version:

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

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

Public Member Functions

 Version (int major, int minor, int revision, int build, int flags)

Public Member Functions

 Version (int major, int minor, int revision, int build, int flags)

Public Attributes

const int Major

Public Attributes

const int Major
const int Minor
const int Minor
const int Revision
const int Revision
const int Build
const int Build
const int Flags
const int Flags

Detailed Description

Holds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module.

-A class of type Version is returned by the GetVersion method of the Module class. +A class of type Version is returned by the GetVersion method of the Module class.

-Definition at line 111 of file modules.h.


Constructor & Destructor Documentation

-

- +Definition at line 112 of file modules.h.

Constructor & Destructor Documentation

+

+

- + - - + + - - + + - - + + - - + + - + -
Version::Version Version::Version int  major,
int  minor,
int  revision,
int  build,
int  flags
- +
+
  @@ -98,25 +97,26 @@ Definition at line 111 of

-Definition at line 245 of file modules.cpp. +Definition at line 246 of file modules.cpp.

00246 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { };
+

-

00245 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { };
-


Member Data Documentation

-

- +

+

- +
const int Version::Build + const int Version::Build
- +
+Definition at line 115 of file modules.h.
  @@ -126,21 +126,22 @@ Definition at line 245

-Definition at line 114 of file modules.h.

-

- +

+

- +
const int Version::Flags + const int Version::Flags
- +
+Definition at line 115 of file modules.h.
  @@ -150,21 +151,22 @@ Definition at line 114 of

-Definition at line 114 of file modules.h.

-

- +

+

- +
const int Version::Major + const int Version::Major
- +
+Definition at line 115 of file modules.h.
  @@ -174,21 +176,22 @@ Definition at line 114 of

-Definition at line 114 of file modules.h.

-

- +

+

- +
const int Version::Minor + const int Version::Minor
- +
+Definition at line 115 of file modules.h.
  @@ -198,21 +201,22 @@ Definition at line 114 of

-Definition at line 114 of file modules.h.

-

- +

+

- +
const int Version::Revision + const int Version::Revision
- +
+Definition at line 115 of file modules.h.
  @@ -222,14 +226,13 @@ Definition at line 114 of

-Definition at line 114 of file modules.h.


The documentation for this class was generated from the following files: -
Generated on Mon May 30 05:17:45 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classVersion__coll__graph.gif b/docs/module-doc/classVersion__coll__graph.gif index f5f25b493..50ee9702d 100644 Binary files a/docs/module-doc/classVersion__coll__graph.gif and b/docs/module-doc/classVersion__coll__graph.gif differ diff --git a/docs/module-doc/classVersion__coll__graph.map b/docs/module-doc/classVersion__coll__graph.map new file mode 100644 index 000000000..f3b09806a --- /dev/null +++ b/docs/module-doc/classVersion__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,97 87,124 diff --git a/docs/module-doc/classVersion__coll__graph.md5 b/docs/module-doc/classVersion__coll__graph.md5 new file mode 100644 index 000000000..0adad4c34 --- /dev/null +++ b/docs/module-doc/classVersion__coll__graph.md5 @@ -0,0 +1 @@ +fefba61fe52901a468a48889da2a441a \ No newline at end of file diff --git a/docs/module-doc/classVersion__inherit__graph.gif b/docs/module-doc/classVersion__inherit__graph.gif index ccf9ff1f7..319126975 100644 Binary files a/docs/module-doc/classVersion__inherit__graph.gif and b/docs/module-doc/classVersion__inherit__graph.gif differ diff --git a/docs/module-doc/classVersion__inherit__graph.map b/docs/module-doc/classVersion__inherit__graph.map new file mode 100644 index 000000000..8b1d85be3 --- /dev/null +++ b/docs/module-doc/classVersion__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,7 87,34 diff --git a/docs/module-doc/classVersion__inherit__graph.md5 b/docs/module-doc/classVersion__inherit__graph.md5 new file mode 100644 index 000000000..01df9c106 --- /dev/null +++ b/docs/module-doc/classVersion__inherit__graph.md5 @@ -0,0 +1 @@ +5251e2652b8ea61fa066d57081a1dee5 \ No newline at end of file diff --git a/docs/module-doc/classWhoWasUser-members.html b/docs/module-doc/classWhoWasUser-members.html index 59188e399..7708132ee 100644 --- a/docs/module-doc/classWhoWasUser-members.html +++ b/docs/module-doc/classWhoWasUser-members.html @@ -1,21 +1,20 @@ - + InspIRCd: Member List - - -

WhoWasUser Member List

This is the complete list of members for WhoWasUser, including all inherited members. - - - - - - - -
dhostWhoWasUser
fullnameWhoWasUser
hostWhoWasUser
identWhoWasUser
nickWhoWasUser
serverWhoWasUser
signonWhoWasUser

Generated on Mon May 30 05:17:45 2005 for InspIRCd by + + +

WhoWasUser Member List

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

+ + + + + + + +
dhostWhoWasUser
fullnameWhoWasUser
hostWhoWasUser
identWhoWasUser
nickWhoWasUser
serverWhoWasUser
signonWhoWasUser


Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classWhoWasUser.html b/docs/module-doc/classWhoWasUser.html index 726707548..aa182b7a0 100644 --- a/docs/module-doc/classWhoWasUser.html +++ b/docs/module-doc/classWhoWasUser.html @@ -1,32 +1,32 @@ - + -InspIRCd: WhoWasUser class Reference +InspIRCd: WhoWasUser Class Reference - - -

WhoWasUser Class Reference

A lightweight userrec used by WHOWAS. + + +

WhoWasUser Class Reference

A lightweight userrec used by WHOWAS. More...

#include <users.h>

Collaboration diagram for WhoWasUser:

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

Public Attributes

char nick [NICKMAX]

Public Attributes

char nick [NICKMAX]
char ident [IDENTMAX+1]
char ident [IDENTMAX+1]
char dhost [160]
char dhost [160]
char host [160]
char host [160]
char fullname [MAXGECOS+1]
char fullname [MAXGECOS+1]
char server [256]
char server [256]
time_t signon
time_t signon

Detailed Description

@@ -35,18 +35,19 @@ A lightweight userrec used by WHOWAS.

Definition at line 325 of file users.h.


Member Data Documentation

-

- +

+

- +
char WhoWasUser::dhost[160] + char WhoWasUser::dhost[160]
- +
  @@ -59,18 +60,19 @@ Definition at line 325 of f Definition at line 330 of file users.h.
-

- +

+

- +
char WhoWasUser::fullname[MAXGECOS+1] + char WhoWasUser::fullname[MAXGECOS+1]
- +
  @@ -83,18 +85,19 @@ Definition at line 330 of f Definition at line 332 of file users.h.
-

- +

+

- +
char WhoWasUser::host[160] + char WhoWasUser::host[160]
- +
  @@ -107,18 +110,19 @@ Definition at line 332 of f Definition at line 331 of file users.h.
-

- +

+

- +
char WhoWasUser::ident[IDENTMAX+1] + char WhoWasUser::ident[IDENTMAX+1]
- +
  @@ -131,18 +135,19 @@ Definition at line 331 of f Definition at line 329 of file users.h.
-

- +

+

- +
char WhoWasUser::nick[NICKMAX] + char WhoWasUser::nick[NICKMAX]
- +
  @@ -155,18 +160,19 @@ Definition at line 329 of f Definition at line 328 of file users.h.
-

- +

+

- +
char WhoWasUser::server[256] + char WhoWasUser::server[256]
- +
  @@ -179,18 +185,19 @@ Definition at line 328 of f Definition at line 333 of file users.h.
-

- +

+

- +
time_t WhoWasUser::signon + time_t WhoWasUser::signon
- +
  @@ -205,9 +212,8 @@ Definition at line 334 of f


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:17:45 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classWhoWasUser__coll__graph.gif b/docs/module-doc/classWhoWasUser__coll__graph.gif index 75bc7196c..1322c5865 100644 Binary files a/docs/module-doc/classWhoWasUser__coll__graph.gif and b/docs/module-doc/classWhoWasUser__coll__graph.gif differ diff --git a/docs/module-doc/classWhoWasUser__coll__graph.map b/docs/module-doc/classWhoWasUser__coll__graph.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/classWhoWasUser__coll__graph.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/classWhoWasUser__coll__graph.md5 b/docs/module-doc/classWhoWasUser__coll__graph.md5 new file mode 100644 index 000000000..68ba38fc7 --- /dev/null +++ b/docs/module-doc/classWhoWasUser__coll__graph.md5 @@ -0,0 +1 @@ +5ef57f5c0e57327876d095482c1729ea \ No newline at end of file diff --git a/docs/module-doc/classXLine-members.html b/docs/module-doc/classXLine-members.html index 159aeda02..5bef18732 100644 --- a/docs/module-doc/classXLine-members.html +++ b/docs/module-doc/classXLine-members.html @@ -1,22 +1,21 @@ - + InspIRCd: Member List - - -

XLine Member List

This is the complete list of members for XLine, including all inherited members. - - - - - - - - -
ageclassbase
classbase()classbase [inline]
durationXLine
n_matchesXLine
reasonXLine
set_timeXLine
sourceXLine
~classbase()classbase [inline]

Generated on Mon May 30 05:17:47 2005 for InspIRCd by + + +

XLine Member List

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

+ + + + + + + + +
ageclassbase
classbase()classbase [inline]
durationXLine
n_matchesXLine
reasonXLine
set_timeXLine
sourceXLine
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index 2c470752c..45d896e8c 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -1,46 +1,46 @@ - + -InspIRCd: XLine class Reference +InspIRCd: XLine Class Reference - - -

XLine Class Reference

XLine is the base class for ban lines such as G lines and K lines. + + +

XLine Class Reference

XLine is the base class for ban lines such as G lines and K lines. More...

#include <xline.h>

Inheritance diagram for XLine:

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

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

Public Attributes

time_t set_time

Public Attributes

time_t set_time
 The time the line was added.

long duration
 The time the line was added.
long duration
 The duration of the ban, or 0 if permenant.

char source [256]
 The duration of the ban, or 0 if permenant.
char source [256]
 Source of the ban.

char reason [MAXBUF]
 Source of the ban.
char reason [MAXBUF]
 Reason for the ban.

long n_matches
 Reason for the ban.
long n_matches
 Number of times the core matches the ban, for statistics.

 Number of times the core matches the ban, for statistics.

Detailed Description

XLine is the base class for ban lines such as G lines and K lines. @@ -48,18 +48,19 @@ 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

-

- +

+

- +
long XLine::duration + long XLine::duration
- +
  @@ -74,18 +75,19 @@ The duration of the ban, or 0 if permenant. Definition at line 44 of file xline.h.
-

- +

+

- +
long XLine::n_matches + long XLine::n_matches
- +
  @@ -100,18 +102,19 @@ Number of times the core matches the ban, for statistics. Definition at line 56 of file xline.h.
-

- +

+

- +
char XLine::reason[MAXBUF] + char XLine::reason[MAXBUF]
- +
  @@ -126,18 +129,19 @@ Reason for the ban. Definition at line 52 of file xline.h.
-

- +

+

- +
time_t XLine::set_time + time_t XLine::set_time
- +
  @@ -152,18 +156,19 @@ The time the line was added. Definition at line 40 of file xline.h.
-

- +

+

- +
char XLine::source[256] + char XLine::source[256]
- +
  @@ -180,9 +185,8 @@ Definition at line 48 of fi


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:17:47 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classXLine__coll__graph.gif b/docs/module-doc/classXLine__coll__graph.gif index c8915d9cf..1c7669eb4 100644 Binary files a/docs/module-doc/classXLine__coll__graph.gif and b/docs/module-doc/classXLine__coll__graph.gif differ diff --git a/docs/module-doc/classXLine__coll__graph.map b/docs/module-doc/classXLine__coll__graph.map new file mode 100644 index 000000000..64f9b3a84 --- /dev/null +++ b/docs/module-doc/classXLine__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 107,97 187,124 diff --git a/docs/module-doc/classXLine__coll__graph.md5 b/docs/module-doc/classXLine__coll__graph.md5 new file mode 100644 index 000000000..51fbebe96 --- /dev/null +++ b/docs/module-doc/classXLine__coll__graph.md5 @@ -0,0 +1 @@ +82db31fd0088117dc738aeaae0cdb2c0 \ No newline at end of file diff --git a/docs/module-doc/classXLine__inherit__graph.gif b/docs/module-doc/classXLine__inherit__graph.gif index 8889992a8..ae65b5000 100644 Binary files a/docs/module-doc/classXLine__inherit__graph.gif and b/docs/module-doc/classXLine__inherit__graph.gif differ diff --git a/docs/module-doc/classXLine__inherit__graph.map b/docs/module-doc/classXLine__inherit__graph.map new file mode 100644 index 000000000..7a144f968 --- /dev/null +++ b/docs/module-doc/classXLine__inherit__graph.map @@ -0,0 +1,7 @@ +base referer +rect $classELine.html 7,156 63,183 +rect $classGLine.html 87,156 146,183 +rect $classKLine.html 170,156 226,183 +rect $classQLine.html 250,156 308,183 +rect $classZLine.html 332,156 388,183 +rect $classclassbase.html 158,7 238,33 diff --git a/docs/module-doc/classXLine__inherit__graph.md5 b/docs/module-doc/classXLine__inherit__graph.md5 new file mode 100644 index 000000000..2219ff62f --- /dev/null +++ b/docs/module-doc/classXLine__inherit__graph.md5 @@ -0,0 +1 @@ +cddf36af1a2c6a2fd34d1894fa3811da \ No newline at end of file diff --git a/docs/module-doc/classZLine-members.html b/docs/module-doc/classZLine-members.html index 9718d503f..25b5a6b34 100644 --- a/docs/module-doc/classZLine-members.html +++ b/docs/module-doc/classZLine-members.html @@ -1,24 +1,23 @@ - + InspIRCd: Member List - - -

ZLine Member List

This is the complete list of members for ZLine, including all inherited members. - - - - - - - - - - -
ageclassbase
classbase()classbase [inline]
durationXLine
ipaddrZLine
is_globalZLine
n_matchesXLine
reasonXLine
set_timeXLine
sourceXLine
~classbase()classbase [inline]

Generated on Mon May 30 05:17:49 2005 for InspIRCd by + + +

ZLine Member List

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

+ + + + + + + + + + +
ageclassbase
classbase()classbase [inline]
durationXLine
ipaddrZLine
is_globalZLine
n_matchesXLine
reasonXLine
set_timeXLine
sourceXLine
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index c30da86a9..af5bdfbe5 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -1,34 +1,34 @@ - + -InspIRCd: ZLine class Reference +InspIRCd: ZLine Class Reference - - -

ZLine Class Reference

ZLine class. + + +

ZLine Class Reference

ZLine class. More...

#include <xline.h>

Inheritance diagram for ZLine:

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

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

Public Attributes

char ipaddr [40]

Public Attributes

char ipaddr [40]
 IP Address (xx.yy.zz.aa) to match against May contain wildcards.

bool is_global
 IP Address (xx.yy.zz.aa) to match against May contain wildcards.
bool is_global
 Set if this is a global Z:line (e.g.

 Set if this is a global Z:line (e.g.

Detailed Description

ZLine class. @@ -36,18 +36,19 @@ ZLine class.

Definition at line 93 of file xline.h.


Member Data Documentation

-

- +

+

- +
char ZLine::ipaddr[40] + char ZLine::ipaddr[40]
- +
  @@ -62,18 +63,19 @@ IP Address (xx.yy.zz.aa) to match against May contain wildcards. Definition at line 99 of file xline.h.
-

- +

+

- +
bool ZLine::is_global + bool ZLine::is_global
- +
  @@ -90,9 +92,8 @@ Definition at line 103 of f


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:17:49 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classZLine__coll__graph.gif b/docs/module-doc/classZLine__coll__graph.gif index 65c12625a..943e7c896 100644 Binary files a/docs/module-doc/classZLine__coll__graph.gif and b/docs/module-doc/classZLine__coll__graph.gif differ diff --git a/docs/module-doc/classZLine__coll__graph.map b/docs/module-doc/classZLine__coll__graph.map new file mode 100644 index 000000000..028f82a6e --- /dev/null +++ b/docs/module-doc/classZLine__coll__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classXLine.html 108,204 164,231 +rect $classclassbase.html 79,97 159,124 diff --git a/docs/module-doc/classZLine__coll__graph.md5 b/docs/module-doc/classZLine__coll__graph.md5 new file mode 100644 index 000000000..43b1d4a38 --- /dev/null +++ b/docs/module-doc/classZLine__coll__graph.md5 @@ -0,0 +1 @@ +af58e7a846694641fbe05011643006a9 \ No newline at end of file diff --git a/docs/module-doc/classZLine__inherit__graph.gif b/docs/module-doc/classZLine__inherit__graph.gif index 3f69fa320..411796d74 100644 Binary files a/docs/module-doc/classZLine__inherit__graph.gif and b/docs/module-doc/classZLine__inherit__graph.gif differ diff --git a/docs/module-doc/classZLine__inherit__graph.map b/docs/module-doc/classZLine__inherit__graph.map new file mode 100644 index 000000000..37695eb4e --- /dev/null +++ b/docs/module-doc/classZLine__inherit__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classXLine.html 19,81 75,108 +rect $classclassbase.html 7,7 87,33 diff --git a/docs/module-doc/classZLine__inherit__graph.md5 b/docs/module-doc/classZLine__inherit__graph.md5 new file mode 100644 index 000000000..565dfc233 --- /dev/null +++ b/docs/module-doc/classZLine__inherit__graph.md5 @@ -0,0 +1 @@ +2100aaebeee27bb7ee02f038fdd48ad5 \ No newline at end of file diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index 2e2a013ca..3e93502dc 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -1,41 +1,40 @@ - + InspIRCd: Member List - - -

chanrec Member List

This is the complete list of members for chanrec, including all inherited members. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AddUser(char *castuser)chanrec
ageclassbase
banschanrec
binarymodeschanrec
chanrec()chanrec
classbase()classbase [inline]
createdchanrec
custom_modeschanrec
DelUser(char *castuser)chanrec
Extend(std::string key, char *p)Extensible
GetExt(std::string key)Extensible
GetModeParameter(char mode)chanrec
GetUserCounter()chanrec
GetUsers()chanrec
internal_userlistchanrec
IsCustomModeSet(char mode)chanrec
keychanrec
limitchanrec
namechanrec
setbychanrec
SetCustomMode(char mode, bool mode_on)chanrec
SetCustomModeParam(char mode, char *parameter, bool mode_on)chanrec
Shrink(std::string key)Extensible
topicchanrec
topicsetchanrec
~chanrec()chanrec [inline, virtual]
~classbase()classbase [inline]

Generated on Mon May 30 05:16:32 2005 for InspIRCd by + + +

chanrec Member List

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

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddUser(char *castuser)chanrec
ageclassbase
banschanrec
binarymodeschanrec
chanrec()chanrec
classbase()classbase [inline]
createdchanrec
custom_modeschanrec
DelUser(char *castuser)chanrec
Extend(std::string key, char *p)Extensible
GetExt(std::string key)Extensible
GetModeParameter(char mode)chanrec
GetUserCounter()chanrec
GetUsers()chanrec
internal_userlistchanrec
IsCustomModeSet(char mode)chanrec
keychanrec
limitchanrec
namechanrec
setbychanrec
SetCustomMode(char mode, bool mode_on)chanrec
SetCustomModeParam(char mode, char *parameter, bool mode_on)chanrec
Shrink(std::string key)Extensible
topicchanrec
topicsetchanrec
~chanrec()chanrec [inline, virtual]
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index 610a0043e..f332e4510 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -1,118 +1,117 @@ - + -InspIRCd: chanrec class Reference +InspIRCd: chanrec Class Reference - - -

chanrec Class Reference

Holds all relevent information for a channel. + + +

chanrec Class Reference

Holds all relevent information for a channel. More...

#include <channels.h>

Inheritance diagram for chanrec:

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

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

Public Member Functions

void SetCustomMode (char mode, bool mode_on)

Public Member Functions

void SetCustomMode (char mode, bool mode_on)
 Sets or unsets a custom mode in the channels info.

void SetCustomModeParam (char mode, char *parameter, bool mode_on)
 Sets or unsets a custom mode in the channels info.
void SetCustomModeParam (char mode, char *parameter, bool mode_on)
 Sets or unsets the parameters for a custom mode in a channels info.

bool IsCustomModeSet (char mode)
 Sets or unsets the parameters for a custom mode in a channels info.
bool IsCustomModeSet (char mode)
 Returns true if a custom mode is set on a channel.

std::string GetModeParameter (char mode)
 Returns true if a custom mode is set on a channel.
std::string GetModeParameter (char mode)
 Returns the parameter for a custom mode on a channel.

long GetUserCounter ()
 Returns the parameter for a custom mode on a channel.
long GetUserCounter ()
 Obtain the channel "user counter" This returns the channel reference counter, which is initialized to 0 when the channel is created and incremented/decremented upon joins, parts quits and kicks.

void AddUser (char *castuser)
 Obtain the channel "user counter" This returns the channel reference counter, which is initialized to 0 when the channel is created and incremented/decremented upon joins, parts quits and kicks.
void AddUser (char *castuser)
 Add a user pointer to the internal reference list.

void DelUser (char *castuser)
 Add a user pointer to the internal reference list.
void DelUser (char *castuser)
 Delete a user pointer to the internal reference list.

std::vector< char * > * GetUsers ()
 Delete a user pointer to the internal reference list.
std::vector< char * > * GetUsers ()
 Obrain the internal reference list The internal reference list contains a list of userrec* cast to char*.

 chanrec ()
 Obrain the internal reference list The internal reference list contains a list of userrec* cast to char*.
 chanrec ()
 Creates a channel record and initialises it with default values.

virtual ~chanrec ()
 Creates a channel record and initialises it with default values.
virtual ~chanrec ()

Public Attributes

char name [CHANMAX]

Public Attributes

char name [CHANMAX]
 The channels name.

char custom_modes [MAXMODES]
 The channels name.
char custom_modes [MAXMODES]
 Custom modes for the channel.

std::vector< char * > internal_userlist
 Custom modes for the channel.
std::vector< char * > internal_userlist
 User list (casted to char*'s to stop forward declaration stuff) (chicken and egg scenario!).

char topic [MAXBUF]
 User list (casted to char*'s to stop forward declaration stuff) (chicken and egg scenario!).
char topic [MAXBUF]
 Channel topic.

time_t created
 Channel topic.
time_t created
 Creation time.

time_t topicset
 Creation time.
time_t topicset
 Time topic was set.

char setby [NICKMAX]
 Time topic was set.
char setby [NICKMAX]
 The last user to set the topic.

short int limit
 The last user to set the topic.
short int limit
 Contains the channel user limit.

char key [32]
 Contains the channel user limit.
char key [32]
 Contains the channel key.

char binarymodes
 Contains the channel key.
char binarymodes
 Contains a bitmask of the CM_* builtin (RFC) binary mode symbols.

BanList bans
 Contains a bitmask of the CM_* builtin (RFC) binary mode symbols.
BanList bans
 The list of all bans set on the channel.

 The list of all bans set on the channel.

Detailed Description

Holds all relevent information for a channel.

-This class represents a channel, and contains its name, modes, time created, topic, topic set time, etc, and an instance of the BanList type. +This class represents a channel, and contains its name, modes, time created, topic, topic set time, etc, and an instance of the BanList type.

Definition at line 101 of file channels.h.


Constructor & Destructor Documentation

-

- +

+

- + -
chanrec::chanrec chanrec::chanrec  ) 
- +
+
  @@ -124,41 +123,40 @@ Creates a channel record and initialises it with default values.

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

-References binarymodes, created, custom_modes, internal_userlist, key, limit, name, setby, topic, and topicset. +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 }
+

-

00108 {
-00109         strcpy(name,"");
-00110         strcpy(custom_modes,"");
-00111         strcpy(topic,"");
-00112         strcpy(setby,"");
-00113         strcpy(key,"");
-00114         created = topicset = limit = 0;
-00115         binarymodes = 0;
-00116         internal_userlist.clear();
-00117 }
-
-

- +

+

- + -
virtual chanrec::~chanrec virtual chanrec::~chanrec  )  [inline, virtual]
- +
+
  @@ -168,32 +166,31 @@ References binarymodes,

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

00224 { /* stub */ }
+

-

00224 { /* stub */ }
-


Member Function Documentation

-

- +

+

- + -
void chanrec::AddUser void chanrec::AddUser char *  castuser  ) 
- +
+
  @@ -205,41 +202,40 @@ Add a user pointer to the internal reference list.

Parameters:
- +
castuser This should be a pointer to a userrec, casted to char*
castuser This should be a pointer to a userrec, casted to char*
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 201 of file channels.cpp. +Definition at line 195 of file channels.cpp.

-References DEBUG, and internal_userlist. +References DEBUG, and internal_userlist.

00196 {
+00197         internal_userlist.push_back(castuser);
+00198         log(DEBUG,"Added casted user to channel's internal list");
+00199 }
+

-

00202 {
-00203         internal_userlist.push_back(castuser);
-00204         log(DEBUG,"Added casted user to channel's internal list");
-00205 }
-
-

- +

+

- + -
void chanrec::DelUser void chanrec::DelUser char *  castuser  ) 
- +
+
  @@ -251,49 +247,48 @@ Delete a user pointer to the internal reference list.

Parameters:
- +
castuser This should be a pointer to a userrec, casted to char*
castuser This should be a pointer to a userrec, casted to char*
-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. +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 207 of file channels.cpp. +Definition at line 201 of file channels.cpp.

-References DEBUG, internal_userlist, and name. +References DEBUG, internal_userlist, and name.

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

-

00208 {
-00209         for (std::vector<char*>::iterator a = internal_userlist.begin(); a < internal_userlist.end(); a++)
-00210         {
-00211                 if (*a == castuser)
-00212                 {
-00213                         log(DEBUG,"Removed casted user from channel's internal list");
-00214                         internal_userlist.erase(a);
-00215                         return;
-00216                 }
-00217         }
-00218         log(DEBUG,"BUG BUG BUG! Attempt to remove an uncasted user from the internal list of %s!",name);
-00219 }
-
-

- +

+

- + -
std::string chanrec::GetModeParameter std::string chanrec::GetModeParameter char  mode  ) 
- +
+
  @@ -305,51 +300,50 @@ Returns the parameter for a custom mode on a channel.

Parameters:
- +
mode The mode character you wish to query
mode The mode character you wish to query
-For example if "+L #foo" is set, and you pass this method 'L', it will return '#foo'. If the mode is not set on the channel, or the mode has no parameters associated with it, it will return an empty string.

+For example if "+L #foo" is set, and you pass this method 'L', it will return 'foo'. If the mode is not set on the channel, or the mode has no parameters associated with it, it will return an empty string.

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

-Definition at line 181 of file channels.cpp. +Definition at line 175 of file channels.cpp.

-References custom_mode_params. +References custom_mode_params.

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

-

00182 {
-00183         if (custom_mode_params.size())
-00184         {
-00185                 for (vector<ModeParameter>::iterator i = custom_mode_params.begin(); i < custom_mode_params.end(); i++)
-00186                 {
-00187                         if ((i->mode == mode) && (!strcasecmp(this->name,i->channel)))
-00188                         {
-00189                                 return i->parameter;
-00190                         }
-00191                 }
-00192         }
-00193         return "";
-00194 }
-
-

- +

+

- + -
long chanrec::GetUserCounter long chanrec::GetUserCounter  ) 
- +
+
  @@ -362,34 +356,31 @@ Obtain the channel "user counter" This returns the channel reference counter, wh
Returns:
The number of users on this channel

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

-References internal_userlist. +Definition at line 190 of file channels.cpp.

00191 {
+00192         return (this->internal_userlist.size());
+00193 }
+

-

00197 {
-00198         return (this->internal_userlist.size());
-00199 }
-
-

- +

+

- + -
std::vector< char * > * chanrec::GetUsers std::vector< char * > * chanrec::GetUsers  ) 
- +
+
  @@ -403,37 +394,36 @@ 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 221 of file channels.cpp. +Definition at line 215 of file channels.cpp.

References internal_userlist.

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

00216 {
+00217         return &internal_userlist;
+00218 }
+

-

00222 {
-00223         return &internal_userlist;
-00224 }
-
-

- +

+

- + -
bool chanrec::IsCustomModeSet bool chanrec::IsCustomModeSet char  mode  ) 
- +
+
  @@ -445,51 +435,50 @@ Returns true if a custom mode is set on a channel.

Parameters:
- +
mode The mode character you wish to query
mode The mode character you wish to query
Returns:
True if the custom mode is set, false if otherwise

-Definition at line 175 of file channels.cpp. +Definition at line 169 of file channels.cpp.

-References DEBUG. +References DEBUG.

00170 {
+00171         log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes);
+00172         return (strchr(this->custom_modes,mode) != 0);
+00173 }
+

-

00176 {
-00177         log(DEBUG,"Checking ISCustomModeSet: %c %s",mode,this->custom_modes);
-00178         return (strchr(this->custom_modes,mode) != 0);
-00179 }
-
-

- +

+

- + - - + + - + -
void chanrec::SetCustomMode void chanrec::SetCustomMode char  mode,
bool  mode_on
- +
- -
  @@ -501,75 +490,74 @@ Sets or unsets a custom mode in the channels info.

Parameters:
- - + +
mode The mode character to set or unset
mode_on True if you want to set the mode or false if you want to remove it
mode The mode character to set or unset
mode_on True if you want to set the mode or false if you want to remove it

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

-References custom_modes, DEBUG, and SetCustomModeParam(). -

-

00120 {
-00121         if (mode_on) {
-00122                 static char m[3];
-00123                 m[0] = mode;
-00124                 m[1] = '\0';
-00125                 if (!strchr(this->custom_modes,mode))
-00126                 {
-00127                         strlcat(custom_modes,m,MAXMODES);
-00128                 }
-00129                 log(DEBUG,"Custom mode %c set",mode);
-00130         }
-00131         else {
-00132 
-00133                 std::string a = this->custom_modes;
-00134                 int pos = a.find(mode);
-00135                 a.erase(pos,1);
-00136                 strncpy(this->custom_modes,a.c_str(),MAXMODES);
-00137 
-00138                 log(DEBUG,"Custom mode %c removed: modelist='%s'",mode,this->custom_modes);
-00139                 this->SetCustomModeParam(mode,"",false);
-00140         }
-00141 }
-
-

- +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 }
+
+

+ + +

+

+
- + - - + + - - + + - + -
void chanrec::SetCustomModeParam void chanrec::SetCustomModeParam char  mode,
char *  parameter,
bool  mode_on
- +
+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 }
+
+

+

  @@ -581,64 +569,65 @@ Sets or unsets the parameters for a custom mode in a channels info.

Parameters:
- - - + + +
mode The mode character to set or unset
parameter The parameter string to associate with this mode character
mode_on True if you want to set the mode or false if you want to remove it
mode The mode character to set or unset
parameter The parameter string to associate with this mode character
mode_on True if you want to set the mode or false if you want to remove it

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

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

-Referenced by SetCustomMode(). -

-

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


Member Data Documentation

-

- +

+

- +
BanList chanrec::bans + BanList chanrec::bans
- +
  @@ -653,18 +642,19 @@ The list of all bans set on the channel. Definition at line 149 of file channels.h.
-

- +

+

- +
char chanrec::binarymodes + char chanrec::binarymodes
- +
+Referenced by chanrec().
  @@ -678,21 +668,22 @@ Contains a bitmask of the CM_* builtin (RFC) binary mode symbols.

Definition at line 145 of file channels.h.

-Referenced by chanrec().

-

- +

+

- +
time_t chanrec::created + time_t chanrec::created
- +
+Referenced by chanrec().
  @@ -706,21 +697,22 @@ Creation time.

Definition at line 123 of file channels.h.

-Referenced by chanrec().

-

- +

+

- +
char chanrec::custom_modes[MAXMODES] + char chanrec::custom_modes[MAXMODES]
- +
+Referenced by chanrec(), and SetCustomMode().
  @@ -734,21 +726,22 @@ Plugins may use this field in any way they see fit.

Definition at line 110 of file channels.h.

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

-

- +

+

- +
std::vector<char*> chanrec::internal_userlist + std::vector<char*> chanrec::internal_userlist
- +
+Referenced by AddUser(), chanrec(), DelUser(), and GetUsers().
  @@ -762,21 +755,22 @@ 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(), GetUserCounter(), and GetUsers().

-

- +

+

- +
char chanrec::key[32] + char chanrec::key[32]
- +
+Referenced by chanrec().
  @@ -790,21 +784,22 @@ 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().

-

- +

+

- +
short int chanrec::limit + short int chanrec::limit
- +
+Referenced by chanrec().
  @@ -818,21 +813,22 @@ If this value is zero, there is no limit in place.

Definition at line 136 of file channels.h.

-Referenced by chanrec().

-

- +

+

- +
char chanrec::name[CHANMAX] + char chanrec::name[CHANMAX]
- +
+Referenced by chanrec(), DelUser(), and Server::PseudoToUser().
  @@ -846,21 +842,22 @@ The channels name.

Definition at line 106 of file channels.h.

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

-

- +

+

- +
char chanrec::setby[NICKMAX] + char chanrec::setby[NICKMAX]
- +
+Referenced by chanrec(), and Server::PseudoToUser().
  @@ -874,21 +871,22 @@ 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().

-

- +

+

- +
char chanrec::topic[MAXBUF] + char chanrec::topic[MAXBUF]
- +
+Referenced by chanrec(), and Server::PseudoToUser().
  @@ -902,21 +900,22 @@ 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().

-

- +

+

- +
time_t chanrec::topicset + time_t chanrec::topicset
- +
+Referenced by chanrec(), and Server::PseudoToUser().
  @@ -926,18 +925,17 @@ Referenced by chanrec() Time topic was set.

-If no topic was ever set, this will be equal to chanrec::created +If no topic was ever set, this will be equal to chanrec::created

Definition at line 127 of file channels.h.

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


The documentation for this class was generated from the following files: -
Generated on Mon May 30 05:16:32 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classchanrec__coll__graph.gif b/docs/module-doc/classchanrec__coll__graph.gif index 46f5ef538..906eb0a7b 100644 Binary files a/docs/module-doc/classchanrec__coll__graph.gif and b/docs/module-doc/classchanrec__coll__graph.gif differ diff --git a/docs/module-doc/classchanrec__coll__graph.map b/docs/module-doc/classchanrec__coll__graph.map new file mode 100644 index 000000000..de880759f --- /dev/null +++ b/docs/module-doc/classchanrec__coll__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classExtensible.html 68,204 151,231 +rect $classclassbase.html 68,97 148,124 diff --git a/docs/module-doc/classchanrec__coll__graph.md5 b/docs/module-doc/classchanrec__coll__graph.md5 new file mode 100644 index 000000000..39918d0c9 --- /dev/null +++ b/docs/module-doc/classchanrec__coll__graph.md5 @@ -0,0 +1 @@ +c0e1d49d19e3941fdfebb1c3d1c52727 \ No newline at end of file diff --git a/docs/module-doc/classchanrec__inherit__graph.gif b/docs/module-doc/classchanrec__inherit__graph.gif index 312418ade..47c60cec1 100644 Binary files a/docs/module-doc/classchanrec__inherit__graph.gif and b/docs/module-doc/classchanrec__inherit__graph.gif differ diff --git a/docs/module-doc/classchanrec__inherit__graph.map b/docs/module-doc/classchanrec__inherit__graph.map new file mode 100644 index 000000000..f8823aa1b --- /dev/null +++ b/docs/module-doc/classchanrec__inherit__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classExtensible.html 7,81 89,108 +rect $classclassbase.html 8,7 88,33 diff --git a/docs/module-doc/classchanrec__inherit__graph.md5 b/docs/module-doc/classchanrec__inherit__graph.md5 new file mode 100644 index 000000000..49b9ccc27 --- /dev/null +++ b/docs/module-doc/classchanrec__inherit__graph.md5 @@ -0,0 +1 @@ +9b119318df1cf9f708f4d7e96dbb9083 \ No newline at end of file diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index 0b2f5cf09..3cc34fdbc 100644 --- a/docs/module-doc/classclassbase-members.html +++ b/docs/module-doc/classclassbase-members.html @@ -1,17 +1,16 @@ - + InspIRCd: Member List - - -

classbase Member List

This is the complete list of members for classbase, including all inherited members. - - - -
ageclassbase
classbase()classbase [inline]
~classbase()classbase [inline]

Generated on Mon May 30 05:16:37 2005 for InspIRCd by + + +

classbase Member List

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

+ + + +
ageclassbase
classbase()classbase [inline]
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index ab2130a72..4f065424f 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -1,47 +1,47 @@ - + -InspIRCd: classbase class Reference +InspIRCd: classbase Class Reference - - -

classbase Class Reference

The base class for all inspircd classes. + + +

classbase Class Reference

The base class for all inspircd classes. More...

#include <base.h>

Inheritance diagram for classbase:

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

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

Public Member Functions

 classbase ()

Public Member Functions

 classbase ()
 Constructor, Sets the object's time.

 ~classbase ()
 Constructor, Sets the object's time.
 ~classbase ()

Public Attributes

time_t age

Public Attributes

time_t age
 Time that the object was instantiated (used for TS calculation etc).

 Time that the object was instantiated (used for TS calculation etc).

Detailed Description

The base class for all inspircd classes. @@ -49,24 +49,23 @@ The base class for all inspircd classes.

Definition at line 29 of file base.h.


Constructor & Destructor Documentation

-

- +

+

- + -
classbase::classbase classbase::classbase  )  [inline]
- +
+
  @@ -80,30 +79,29 @@ Constructor, Sets the object's time.

Definition at line 39 of file base.h.

-References age. +References age.

00039 { age = time(NULL); }
+

-

00039 { age = time(NULL); }
-
-

- +

+

- + -
classbase::~classbase classbase::~classbase  )  [inline]
- +
+
  @@ -113,25 +111,26 @@ References age.

-Definition at line 40 of file base.h. +Definition at line 40 of file base.h.

00040 { }
+

-

00040 { }
-


Member Data Documentation

-

- +

+

- +
time_t classbase::age + time_t classbase::age
- +
  @@ -150,9 +149,8 @@ Referenced by classbase().


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:16:37 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classclassbase__coll__graph.gif b/docs/module-doc/classclassbase__coll__graph.gif index e3d9a4976..b0d8ed452 100644 Binary files a/docs/module-doc/classclassbase__coll__graph.gif and b/docs/module-doc/classclassbase__coll__graph.gif differ diff --git a/docs/module-doc/classclassbase__coll__graph.map b/docs/module-doc/classclassbase__coll__graph.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/classclassbase__coll__graph.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/classclassbase__coll__graph.md5 b/docs/module-doc/classclassbase__coll__graph.md5 new file mode 100644 index 000000000..b4f319b22 --- /dev/null +++ b/docs/module-doc/classclassbase__coll__graph.md5 @@ -0,0 +1 @@ +619a64a1115cc48fd790f5e46cad7ebd \ No newline at end of file diff --git a/docs/module-doc/classclassbase__inherit__graph.gif b/docs/module-doc/classclassbase__inherit__graph.gif index 233ffb57c..f31018bb8 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 new file mode 100644 index 000000000..60738fc27 --- /dev/null +++ b/docs/module-doc/classclassbase__inherit__graph.map @@ -0,0 +1,17 @@ +base referer +rect $classAdmin.html 167,7 228,33 +rect $classConfigReader.html 145,57 249,84 +rect $classConnectClass.html 145,108 249,135 +rect $classExtensible.html 156,159 239,185 +rect $classExtMode.html 160,209 235,236 +rect $classFileReader.html 153,260 241,287 +rect $classHostItem.html 160,311 235,337 +rect $classInvited.html 167,361 228,388 +rect $classModeParameter.html 139,412 256,439 +rect $classModule.html 164,463 231,489 +rect $classModuleFactory.html 143,513 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 diff --git a/docs/module-doc/classclassbase__inherit__graph.md5 b/docs/module-doc/classclassbase__inherit__graph.md5 new file mode 100644 index 000000000..6f7c9a558 --- /dev/null +++ b/docs/module-doc/classclassbase__inherit__graph.md5 @@ -0,0 +1 @@ +9ba08cccc68a6425b7a7fee87f20249b \ 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 8fe5098a1..947d15e3a 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -1,27 +1,26 @@ - + InspIRCd: Member List - - -

command_t Member List

This is the complete list of members for command_t, including all inherited members. - - - - - - - - - - - - - -
ageclassbase
classbase()classbase [inline]
commandcommand_t
Extend(std::string key, char *p)Extensible
flags_neededcommand_t
GetExt(std::string key)Extensible
handler_functioncommand_t
min_paramscommand_t
Shrink(std::string key)Extensible
sourcecommand_t
total_bytescommand_t
use_countcommand_t
~classbase()classbase [inline]

Generated on Mon May 30 05:16:40 2005 for InspIRCd by + + +

command_t Member List

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

+ + + + + + + + + + + + + +
ageclassbase
classbase()classbase [inline]
commandcommand_t
Extend(std::string key, char *p)Extensible
flags_neededcommand_t
GetExt(std::string key)Extensible
handler_functioncommand_t
min_paramscommand_t
Shrink(std::string key)Extensible
sourcecommand_t
total_bytescommand_t
use_countcommand_t
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index 81278b3ca..ce2282e17 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -1,49 +1,49 @@ - + -InspIRCd: command_t class Reference +InspIRCd: command_t Class Reference - - -

command_t Class Reference

A structure that defines a command. + + +

command_t Class Reference

A structure that defines a command. More...

#include <ctables.h>

Inheritance diagram for command_t:

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

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

Public Attributes

char command [MAXBUF]

Public Attributes

char command [MAXBUF]
 Command name.

handlerfunc * handler_function
 Command name.
handlerfunc * handler_function
 Handler function as in typedef.

char flags_needed
 Handler function as in typedef.
char flags_needed
 User flags needed to execute the command or 0.

int min_params
 User flags needed to execute the command or 0.
int min_params
 Minimum number of parameters command takes.

long use_count
 Minimum number of parameters command takes.
long use_count
 used by /stats m

long total_bytes
 used by /stats m
long total_bytes
 used by /stats m

char source [MAXBUF]
 used by /stats m
char source [MAXBUF]
 used for resource tracking between modules

 used for resource tracking between modules

Detailed Description

A structure that defines a command. @@ -51,18 +51,19 @@ A structure that defines a command.

Definition at line 26 of file ctables.h.


Member Data Documentation

-

- +

+

- +
char command_t::command[MAXBUF] + char command_t::command[MAXBUF]
- +
  @@ -77,18 +78,19 @@ Command name. Definition at line 31 of file ctables.h.
-

- +

+

- +
char command_t::flags_needed + char command_t::flags_needed
- +
  @@ -103,18 +105,19 @@ User flags needed to execute the command or 0. Definition at line 37 of file ctables.h.
-

- +

+

- +
handlerfunc* command_t::handler_function + handlerfunc* command_t::handler_function
- +
  @@ -129,18 +132,19 @@ Handler function as in typedef. Definition at line 34 of file ctables.h.
-

- +

+

- +
int command_t::min_params + int command_t::min_params
- +
  @@ -155,18 +159,19 @@ Minimum number of parameters command takes. Definition at line 40 of file ctables.h.
-

- +

+

- +
char command_t::source[MAXBUF] + char command_t::source[MAXBUF]
- +
  @@ -181,18 +186,19 @@ used for resource tracking between modules Definition at line 49 of file ctables.h.
-

- +

+

- +
long command_t::total_bytes + long command_t::total_bytes
- +
  @@ -207,18 +213,19 @@ used by /stats m Definition at line 46 of file ctables.h.
-

- +

+

- +
long command_t::use_count + long command_t::use_count
- +
  @@ -235,9 +242,8 @@ Definition at line 43 of


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:16:39 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classcommand__t__coll__graph.gif b/docs/module-doc/classcommand__t__coll__graph.gif index 47887a43c..24aec3470 100644 Binary files a/docs/module-doc/classcommand__t__coll__graph.gif and b/docs/module-doc/classcommand__t__coll__graph.gif differ diff --git a/docs/module-doc/classcommand__t__coll__graph.map b/docs/module-doc/classcommand__t__coll__graph.map new file mode 100644 index 000000000..cc88b53ff --- /dev/null +++ b/docs/module-doc/classcommand__t__coll__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classExtensible.html 80,97 163,124 +rect $classclassbase.html 7,7 87,33 diff --git a/docs/module-doc/classcommand__t__coll__graph.md5 b/docs/module-doc/classcommand__t__coll__graph.md5 new file mode 100644 index 000000000..312c9417b --- /dev/null +++ b/docs/module-doc/classcommand__t__coll__graph.md5 @@ -0,0 +1 @@ +c1351289da2fb0e69df5517d601b50d5 \ No newline at end of file diff --git a/docs/module-doc/classcommand__t__inherit__graph.gif b/docs/module-doc/classcommand__t__inherit__graph.gif index c4ae06751..c5945effd 100644 Binary files a/docs/module-doc/classcommand__t__inherit__graph.gif and b/docs/module-doc/classcommand__t__inherit__graph.gif differ diff --git a/docs/module-doc/classcommand__t__inherit__graph.map b/docs/module-doc/classcommand__t__inherit__graph.map new file mode 100644 index 000000000..f7ab96c5d --- /dev/null +++ b/docs/module-doc/classcommand__t__inherit__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classExtensible.html 11,81 93,108 +rect $classclassbase.html 12,7 92,33 diff --git a/docs/module-doc/classcommand__t__inherit__graph.md5 b/docs/module-doc/classcommand__t__inherit__graph.md5 new file mode 100644 index 000000000..9c538143f --- /dev/null +++ b/docs/module-doc/classcommand__t__inherit__graph.md5 @@ -0,0 +1 @@ +f184248fba7e0bab49a632a5b1d29a64 \ No newline at end of file diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index 1ff85057d..6dbe2d41d 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -1,35 +1,34 @@ - + InspIRCd: Member List - - -

connection Member List

This is the complete list of members for connection, including all inherited members. - - - - - - - - - - - - - - - - - - - - - -
ageclassbase
bytes_inconnection
bytes_outconnection
classbase()classbase [inline]
cmds_inconnection
cmds_outconnection
connection()connection
Extend(std::string key, char *p)Extensible
fdconnection
GetExt(std::string key)Extensible
haspassedconnection
hostconnection
idle_lastmsgconnection
ipconnection
lastpingconnection
npingconnection
portconnection
registeredconnection
Shrink(std::string key)Extensible
signonconnection
~classbase()classbase [inline]

Generated on Mon May 30 05:16:47 2005 for InspIRCd by + + +

connection Member List

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

+ + + + + + + + + + + + + + + + + + + + + +
ageclassbase
bytes_inconnection
bytes_outconnection
classbase()classbase [inline]
cmds_inconnection
cmds_outconnection
connection()connection [inline]
Extend(std::string key, char *p)Extensible
fdconnection
GetExt(std::string key)Extensible
haspassedconnection
hostconnection
idle_lastmsgconnection
ipconnection
lastpingconnection
npingconnection
portconnection
registeredconnection
Shrink(std::string key)Extensible
signonconnection
~classbase()classbase [inline]


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index 36140e975..76ef16db8 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -1,101 +1,99 @@ - + -InspIRCd: connection class Reference +InspIRCd: connection Class Reference - - -

connection Class Reference

Please note: classes serverrec and userrec both inherit from class connection. + + +

connection Class Reference

Please note: classes serverrec and userrec both inherit from class connection. More...

#include <connection.h>

Inheritance diagram for connection:

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

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

Public Member Functions

 connection ()

Public Member Functions

 connection ()
 Default constructor.


Public Attributes

int fd
 Default constructor.

Public Attributes

int fd
 File descriptor of the connection.

char host [160]
 File descriptor of the connection.
char host [160]
 Hostname of connection.

char ip [16]
 Hostname of connection.
char ip [16]
 IP of connection.

int bytes_in
 IP of connection.
int bytes_in
 Stats counter for bytes inbound.

int bytes_out
 Stats counter for bytes inbound.
int bytes_out
 Stats counter for bytes outbound.

int cmds_in
 Stats counter for bytes outbound.
int cmds_in
 Stats counter for commands inbound.

int cmds_out
 Stats counter for commands inbound.
int cmds_out
 Stats counter for commands outbound.

bool haspassed
 Stats counter for commands outbound.
bool haspassed
 True if server/user has authenticated, false if otherwise.

int port
 True if server/user has authenticated, false if otherwise.
int port
 Port number For a userrec, this is the port they connected to the network on.

char registered
 Port number For a userrec, this is the port they connected to the network on.
char registered
 Used by userrec to indicate the registration status of the connection.

time_t lastping
 Used by userrec to indicate the registration status of the connection.
time_t lastping
 Time the connection was last pinged.

time_t signon
 Time the connection was last pinged.
time_t signon
 Time the connection was created, set in the constructor.

time_t idle_lastmsg
 Time the connection was created, set in the constructor.
time_t idle_lastmsg
 Time that the connection last sent data, used to calculate idle time.

time_t nping
 Time that the connection last sent data, used to calculate idle time.
time_t nping
 Used by PING checks with clients.

 Used by PING checks with clients.

Detailed Description

Please note: classes serverrec and userrec both inherit from class connection.

-Definition at line 296 of file connection.h.


Constructor & Destructor Documentation

-

- +Definition at line 37 of file connection.h.

Constructor & Destructor Documentation

+

+

- + - + -
connection::connection connection::connection  )  [inline]
- +
  @@ -104,23 +102,33 @@ Definition at line 296

Default constructor. +

+ +

+Definition at line 100 of file connection.h. +

+References fd.

00101         {
+00102                 this->fd = -1;
+00103         }
+


Member Data Documentation

-

- +

+

- +
int connection::bytes_in + int connection::bytes_in
- +
+Referenced by userrec::userrec().
  @@ -132,23 +140,24 @@ Stats counter for bytes inbound.

-Definition at line 313 of file connection.h. +Definition at line 54 of file connection.h.

-Referenced by userrec::userrec().

-

- +

+

- +
int connection::bytes_out + int connection::bytes_out
- +
+Referenced by userrec::FlushWriteBuf(), and userrec::userrec().
  @@ -160,23 +169,24 @@ Stats counter for bytes outbound.

-Definition at line 317 of file connection.h. +Definition at line 58 of file connection.h.

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

-

- +

+

- +
int connection::cmds_in + int connection::cmds_in
- +
+Referenced by userrec::userrec().
  @@ -188,23 +198,24 @@ Stats counter for commands inbound.

-Definition at line 321 of file connection.h. +Definition at line 62 of file connection.h.

-Referenced by userrec::userrec().

-

- +

+

- +
int connection::cmds_out + int connection::cmds_out
- +
+Referenced by userrec::FlushWriteBuf(), and userrec::userrec().
  @@ -216,23 +227,24 @@ Stats counter for commands outbound.

-Definition at line 325 of file connection.h. +Definition at line 66 of file connection.h.

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

-

- +

+

- +
int connection::fd + int connection::fd
- +
+Referenced by connection(), ConfigReader::DumpErrors(), Server::PseudoToUser(), Server::SendTo(), userrec::userrec(), and Server::UserToPseudo().
  @@ -244,23 +256,24 @@ File descriptor of the connection.

-Definition at line 301 of file connection.h. +Definition at line 42 of file connection.h.

-Referenced by serverrec::BeginLink(), serverrec::CreateListener(), ConfigReader::DumpErrors(), serverrec::MeshCookie(), Server::PseudoToUser(), userrec::ReadData(), Server::SendTo(), serverrec::serverrec(), userrec::userrec(), and Server::UserToPseudo().

-

- +

+

- +
bool connection::haspassed + bool connection::haspassed
- +
+Referenced by userrec::userrec().
  @@ -272,23 +285,24 @@ True if server/user has authenticated, false if otherwise.

-Definition at line 329 of file connection.h. +Definition at line 70 of file connection.h.

-Referenced by userrec::userrec().

-

- +

+

- +
char connection::host[160] + char connection::host[160]
- +
+Referenced by userrec::GetFullRealHost(), Server::PseudoToUser(), userrec::userrec(), and Server::UserToPseudo().
  @@ -300,23 +314,24 @@ Hostname of connection.

Not used if this is a serverrec

-Definition at line 305 of file connection.h. +Definition at line 46 of file connection.h.

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

-

- +

+

- +
time_t connection::idle_lastmsg + time_t connection::idle_lastmsg
- +
+Referenced by userrec::userrec().
  @@ -328,23 +343,24 @@ Time that the connection last sent data, used to calculate idle time.

-Definition at line 351 of file connection.h. +Definition at line 92 of file connection.h.

-Referenced by userrec::userrec().

-

- +

+

- +
char connection::ip[16] + char connection::ip[16]
- +
+Referenced by userrec::userrec().
  @@ -356,23 +372,24 @@ IP of connection.

-Definition at line 309 of file connection.h. +Definition at line 50 of file connection.h.

-Referenced by userrec::userrec().

-

- +

+

- +
time_t connection::lastping + time_t connection::lastping
- +
+Referenced by userrec::userrec().
  @@ -384,23 +401,24 @@ Time the connection was last pinged.

-Definition at line 343 of file connection.h. +Definition at line 84 of file connection.h.

-Referenced by serverrec::serverrec(), and userrec::userrec().

-

- +

+

- +
time_t connection::nping + time_t connection::nping
- +
+Referenced by userrec::userrec().
  @@ -412,23 +430,24 @@ Used by PING checks with clients.

-Definition at line 355 of file connection.h. +Definition at line 96 of file connection.h.

-Referenced by userrec::userrec().

-

- +

+

- +
int connection::port + int connection::port
- +
+Referenced by userrec::userrec().
  @@ -440,23 +459,24 @@ Port number For a userrec, this is the port they connected to the network on.

For a serverrec this is the current listening port of the serverrec object.

-Definition at line 335 of file connection.h. +Definition at line 76 of file connection.h.

-Referenced by serverrec::CreateListener(), and userrec::userrec().

-

- +

+

- +
char connection::registered + char connection::registered
- +
+Referenced by userrec::userrec().
  @@ -468,23 +488,24 @@ Used by userrec to indicate the registration status of the connection.

-Definition at line 339 of file connection.h. +Definition at line 80 of file connection.h.

-Referenced by userrec::userrec().

-

- +

+

- +
time_t connection::signon + time_t connection::signon
- +
+Referenced by userrec::userrec().
  @@ -496,16 +517,15 @@ Time the connection was created, set in the constructor.

-Definition at line 347 of file connection.h. +Definition at line 88 of file connection.h.

-Referenced by serverrec::serverrec(), and userrec::userrec().


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:16:47 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classconnection__coll__graph.gif b/docs/module-doc/classconnection__coll__graph.gif index 12d07f356..a6b5a6bec 100644 Binary files a/docs/module-doc/classconnection__coll__graph.gif and b/docs/module-doc/classconnection__coll__graph.gif differ diff --git a/docs/module-doc/classconnection__coll__graph.map b/docs/module-doc/classconnection__coll__graph.map new file mode 100644 index 000000000..75c36a9e9 --- /dev/null +++ b/docs/module-doc/classconnection__coll__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classExtensible.html 86,236 168,263 +rect $classclassbase.html 68,97 148,124 diff --git a/docs/module-doc/classconnection__coll__graph.md5 b/docs/module-doc/classconnection__coll__graph.md5 new file mode 100644 index 000000000..d87f68626 --- /dev/null +++ b/docs/module-doc/classconnection__coll__graph.md5 @@ -0,0 +1 @@ +f35feb2763df91938dc9b523e5feded3 \ No newline at end of file diff --git a/docs/module-doc/classconnection__inherit__graph.gif b/docs/module-doc/classconnection__inherit__graph.gif index 9d423ffad..846cdf38c 100644 Binary files a/docs/module-doc/classconnection__inherit__graph.gif and b/docs/module-doc/classconnection__inherit__graph.gif differ diff --git a/docs/module-doc/classconnection__inherit__graph.map b/docs/module-doc/classconnection__inherit__graph.map new file mode 100644 index 000000000..0eaacf386 --- /dev/null +++ b/docs/module-doc/classconnection__inherit__graph.map @@ -0,0 +1,4 @@ +base referer +rect $classuserrec.html 16,231 83,257 +rect $classExtensible.html 8,81 91,108 +rect $classclassbase.html 10,7 90,33 diff --git a/docs/module-doc/classconnection__inherit__graph.md5 b/docs/module-doc/classconnection__inherit__graph.md5 new file mode 100644 index 000000000..1234dd82a --- /dev/null +++ b/docs/module-doc/classconnection__inherit__graph.md5 @@ -0,0 +1 @@ +3199229d3dcf3119d7eac4a7ce792577 \ No newline at end of file diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 718291856..1d3d77251 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -1,34 +1,34 @@ - + -InspIRCd: Alphabetical index +InspIRCd: Alphabetical List - - -

InspIRCd Compound Index

-
  A  
-
  D  
-
  H  
-
ModuleFactory   StrHashComp (irc)   
Admin   DNS   HostItem   ModuleMessage   
  U  
-
  B  
-
dns_ip4list   
  I  
-
  N  
-
ucrec   
BanItem   
  E  
-
InAddr_HashComp (irc)   nspace::hash< in_addr > (nspace)   userrec   
BoolSet   ELine   Invited   nspace::hash< string > (nspace)   
  V  
-
  C  
-
Event   InviteItem   
  Q  
-
Version   
chanrec   ExemptItem   irc_char_traits (irc)   QLine   
  W  
-
char_traits (std)   Extensible   ircd_connector   
  R  
-
WhoWasUser   
classbase   ExtMode   
  K  
-
Request   
  X  
-
command_t   
  F  
-
KLine   
  S  
-
XLine   
ConfigReader   FileReader   
  M  
-
Server   
  Z  
-
ConnectClass   
  G  
-
ModeParameter   serverrec   ZLine   
connection   GLine   Module   

Generated on Mon May 30 05:16:22 2005 for InspIRCd by + + +

InspIRCd Class Index

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

+ +
  A  
+
  D  
+
GLine   KLine   StrHashComp (irc)   
Admin   DNS   
  H  
+
  M  
+
  U  
+
  B  
+
dns_ip4list   hash< in_addr > (nspace)   ModeParameter   ucrec   
BanItem   
  E  
+
hash< string > (nspace)   Module   userrec   
BoolSet   ELine   HostItem   ModuleFactory   
  V  
+
  C  
+
Event   
  I  
+
ModuleMessage   Version   
chanrec   ExemptItem   InAddr_HashComp (irc)   
  Q  
+
  W  
+
char_traits (std)   Extensible   InspSocket   QLine   WhoWasUser   
classbase   ExtMode   Invited   
  R  
+
  X  
+
command_t   
  F  
+
InviteItem   Request   XLine   
ConfigReader   FileReader   irc_char_traits (irc)   
  S  
+
  Z  
+
ConnectClass   
  G  
+
  K  
+
Server   ZLine   
connection   

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

+


Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+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 198368101..c91c33065 100644 --- a/docs/module-doc/classstd_1_1char__traits.html +++ b/docs/module-doc/classstd_1_1char__traits.html @@ -1,22 +1,21 @@ - + -InspIRCd: char_traits class Reference +InspIRCd: char_traits Class Reference - - -

char_traits Class Reference

Inheritance diagram for char_traits:

Inheritance graph
+ + +

char_traits Class Reference

Inheritance diagram for char_traits:

Inheritance graph
- + -
[legend]
+
[legend]

The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:16:33 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classstd_1_1char__traits__inherit__graph.gif b/docs/module-doc/classstd_1_1char__traits__inherit__graph.gif index f8ae3419b..5928e8485 100644 Binary files a/docs/module-doc/classstd_1_1char__traits__inherit__graph.gif and b/docs/module-doc/classstd_1_1char__traits__inherit__graph.gif differ diff --git a/docs/module-doc/classstd_1_1char__traits__inherit__graph.map b/docs/module-doc/classstd_1_1char__traits__inherit__graph.map new file mode 100644 index 000000000..4f58100de --- /dev/null +++ b/docs/module-doc/classstd_1_1char__traits__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $structirc_1_1irc__char__traits.html 7,82 185,108 diff --git a/docs/module-doc/classstd_1_1char__traits__inherit__graph.md5 b/docs/module-doc/classstd_1_1char__traits__inherit__graph.md5 new file mode 100644 index 000000000..f839e280c --- /dev/null +++ b/docs/module-doc/classstd_1_1char__traits__inherit__graph.md5 @@ -0,0 +1 @@ +fb053a0129941b003b2a9b44035051d6 \ No newline at end of file diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index 3eb9e08bf..630eeec48 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -1,21 +1,20 @@ - + InspIRCd: Member List - - -

ucrec Member List

This is the complete list of members for ucrec, including all inherited members. - - - - - - - -
ageclassbase
channelucrec
classbase()classbase [inline]
uc_modesucrec
ucrec()ucrec [inline]
~classbase()classbase [inline]
~ucrec()ucrec [inline, virtual]

Generated on Mon May 30 05:17:38 2005 for InspIRCd by + + +

ucrec Member List

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

+ + + + + + + +
ageclassbase
channelucrec
classbase()classbase [inline]
uc_modesucrec
ucrec()ucrec [inline]
~classbase()classbase [inline]
~ucrec()ucrec [inline, virtual]


Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index 000120d15..22589f797 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -1,65 +1,64 @@ - + -InspIRCd: ucrec class Reference +InspIRCd: ucrec Class Reference - - -

ucrec Class Reference

Holds 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. + + +

ucrec Class Reference

Holds 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. More...

#include <channels.h>

Inheritance diagram for ucrec:

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

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

Public Member Functions

 ucrec ()

Public Member Functions

 ucrec ()
virtual ~ucrec ()
virtual ~ucrec ()

Public Attributes

char uc_modes

Public Attributes

char uc_modes
 Contains a bitmask of the UCMODE_OP ...

chanrecchannel
 Contains a bitmask of the UCMODE_OP .
chanrecchannel
 Points to the channel record where the given modes apply.

 Points to the channel record where the given modes apply.

Detailed Description

Holds 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.

-The uc_modes member holds a bitmask of which privilages the user has on the channel, such as op, voice, etc. +The uc_modes member holds a bitmask of which privilages the user has on the channel, such as op, voice, etc.

Definition at line 241 of file channels.h.


Constructor & Destructor Documentation

-

- +

+

- + -
ucrec::ucrec ucrec::ucrec  )  [inline]
- +
+
  @@ -69,30 +68,29 @@ Definition at line 241 o

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

00254 { /* stub */ }
+

-

00254 { /* stub */ }
-
-

- +

+

- + -
virtual ucrec::~ucrec virtual ucrec::~ucrec  )  [inline, virtual]
- +
+
  @@ -102,25 +100,26 @@ Definition at line 254 o

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

00255 { /* stub */ }
+

-

00255 { /* stub */ }
-


Member Data Documentation

-

- +

+

- +
chanrec* ucrec::channel + chanrec* ucrec::channel
- +
+Referenced by Server::PseudoToUser(), and userrec::userrec().
  @@ -134,21 +133,22 @@ 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().

-

- +

+

- +
char ucrec::uc_modes + char ucrec::uc_modes
- +
+Referenced by userrec::userrec().
  @@ -156,20 +156,19 @@ Referenced by Server::Pseud

-Contains a bitmask of the UCMODE_OP ... +Contains a bitmask of the UCMODE_OP .

-UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon the channel. +.. 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().


The documentation for this class was generated from the following file: -
Generated on Mon May 30 05:17:38 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classucrec__coll__graph.gif b/docs/module-doc/classucrec__coll__graph.gif index 31b8c384d..e932389b2 100644 Binary files a/docs/module-doc/classucrec__coll__graph.gif and b/docs/module-doc/classucrec__coll__graph.gif differ diff --git a/docs/module-doc/classucrec__coll__graph.map b/docs/module-doc/classucrec__coll__graph.map new file mode 100644 index 000000000..af737e7f3 --- /dev/null +++ b/docs/module-doc/classucrec__coll__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classclassbase.html 7,177 87,204 +rect $classchanrec.html 221,177 291,204 diff --git a/docs/module-doc/classucrec__coll__graph.md5 b/docs/module-doc/classucrec__coll__graph.md5 new file mode 100644 index 000000000..7e9e941c2 --- /dev/null +++ b/docs/module-doc/classucrec__coll__graph.md5 @@ -0,0 +1 @@ +706c63fd96074c4a0518e46eb7b6b76a \ No newline at end of file diff --git a/docs/module-doc/classucrec__inherit__graph.gif b/docs/module-doc/classucrec__inherit__graph.gif index 601b61b45..8cafd8f8a 100644 Binary files a/docs/module-doc/classucrec__inherit__graph.gif and b/docs/module-doc/classucrec__inherit__graph.gif differ diff --git a/docs/module-doc/classucrec__inherit__graph.map b/docs/module-doc/classucrec__inherit__graph.map new file mode 100644 index 000000000..8b1d85be3 --- /dev/null +++ b/docs/module-doc/classucrec__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classclassbase.html 7,7 87,34 diff --git a/docs/module-doc/classucrec__inherit__graph.md5 b/docs/module-doc/classucrec__inherit__graph.md5 new file mode 100644 index 000000000..6e04d789d --- /dev/null +++ b/docs/module-doc/classucrec__inherit__graph.md5 @@ -0,0 +1 @@ +2b8403e912c911fe8172382e6f43f2ea \ No newline at end of file diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index 8e2584e0c..03f0cdccd 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -1,77 +1,76 @@ - + InspIRCd: Member List - - -

userrec Member List

This is the complete list of members for userrec, including all inherited members. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AddBuffer(std::string a)userrec
AddWriteBuf(std::string data)userrec
ageclassbase
awaymsguserrec
BufferIsReady()userrec
bytes_inconnection
bytes_outconnection
chansuserrec
classbase()classbase [inline]
ClearBuffer()userrec
CloseSocket()userrec
cmds_inconnection
cmds_outconnection
connection()connection
dhostuserrec
dns_doneuserrec
Extend(std::string key, char *p)Extensible
fdconnection
flooduserrec
FlushWriteBuf()userrec
fullnameuserrec
GetBuffer()userrec
GetExt(std::string key)Extensible
GetFullHost()userrec [virtual]
GetFullRealHost()userrec [virtual]
GetInviteList()userrec
GetWriteError()userrec
haspassedconnection
HasPermission(char *command)userrec
hostconnection
identuserrec
idle_lastmsgconnection
invitesuserrec [private]
InviteTo(char *channel)userrec [virtual]
ipconnection
IsInvited(char *channel)userrec [virtual]
lastpingconnection
lines_inuserrec
modesuserrec
nickuserrec
npingconnection
operuserrec
passworduserrec
pingmaxuserrec
portconnection
ReadData(void *buffer, size_t size)userrec
recvquserrec
recvqmaxuserrec
registeredconnection
RemoveInvite(char *channel)userrec [virtual]
reset_dueuserrec
sendquserrec
sendqmaxuserrec
serveruserrec
SetWriteError(std::string error)userrec
Shrink(std::string key)Extensible
signonconnection
thresholduserrec
timeoutuserrec
userrec()userrec
WriteErroruserrec
~classbase()classbase [inline]
~userrec()userrec [inline, virtual]

Generated on Mon May 30 05:17:43 2005 for InspIRCd by + + +

userrec Member List

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

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddBuffer(std::string a)userrec
AddWriteBuf(std::string data)userrec
ageclassbase
awaymsguserrec
BufferIsReady()userrec
bytes_inconnection
bytes_outconnection
chansuserrec
classbase()classbase [inline]
ClearBuffer()userrec
CloseSocket()userrec
cmds_inconnection
cmds_outconnection
connection()connection [inline]
dhostuserrec
dns_doneuserrec
Extend(std::string key, char *p)Extensible
fdconnection
flooduserrec
FlushWriteBuf()userrec
fullnameuserrec
GetBuffer()userrec
GetExt(std::string key)Extensible
GetFullHost()userrec [virtual]
GetFullRealHost()userrec [virtual]
GetInviteList()userrec
GetWriteError()userrec
haspassedconnection
HasPermission(char *command)userrec
hostconnection
identuserrec
idle_lastmsgconnection
invitesuserrec [private]
InviteTo(char *channel)userrec [virtual]
ipconnection
IsInvited(char *channel)userrec [virtual]
lastpingconnection
lines_inuserrec
modesuserrec
nickuserrec
npingconnection
operuserrec
passworduserrec
pingmaxuserrec
portconnection
ReadData(void *buffer, size_t size)userrec
recvquserrec
recvqmaxuserrec
registeredconnection
RemoveInvite(char *channel)userrec [virtual]
reset_dueuserrec
sendquserrec
sendqmaxuserrec
serveruserrec
SetWriteError(std::string error)userrec
Shrink(std::string key)Extensible
signonconnection
thresholduserrec
timeoutuserrec
userrec()userrec
WriteErroruserrec
~classbase()classbase [inline]
~userrec()userrec [inline, virtual]


Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index c96dc5009..9c47c4518 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -1,178 +1,177 @@ - + -InspIRCd: userrec class Reference +InspIRCd: userrec Class Reference - - -

userrec Class Reference

Holds all information about a user This class stores all information about a user connected to the irc server. + + +

userrec Class Reference

Holds all information about a user This class stores all information about a user connected to the irc server. More...

#include <users.h>

Inheritance diagram for userrec:

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

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

Public Member Functions

 userrec ()

Public Member Functions

 userrec ()
virtual ~userrec ()
virtual ~userrec ()
virtual char * GetFullHost ()
virtual char * GetFullHost ()
 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.

virtual char * GetFullRealHost ()
 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.
virtual char * GetFullRealHost ()
 Returns the full real 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.

virtual bool IsInvited (char *channel)
 Returns the full real 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.
virtual bool IsInvited (char *channel)
 Returns true if a user is invited to a channel.

virtual void InviteTo (char *channel)
 Returns true if a user is invited to a channel.
virtual void InviteTo (char *channel)
 Adds a channel to a users invite list (invites them to a channel).

virtual void RemoveInvite (char *channel)
 Adds a channel to a users invite list (invites them to a channel).
virtual void RemoveInvite (char *channel)
 Removes a channel from a users invite list.

bool HasPermission (char *command)
 Removes a channel from a users invite list.
bool HasPermission (char *command)
 Returns true or false for if a user can execute a privilaged oper command.

int ReadData (void *buffer, size_t size)
 Returns true or false for if a user can execute a privilaged oper command.
int ReadData (void *buffer, size_t size)
 Calls read() to read some data for this user using their fd.

bool AddBuffer (std::string a)
 Calls read() to read some data for this user using their fd.
bool AddBuffer (std::string a)
 This method adds data to the buffer of the user.

bool BufferIsReady ()
 This method adds data to the buffer of the user.
bool BufferIsReady ()
 This method returns true if the buffer contains at least one carriage return character (e.g.

void ClearBuffer ()
 This method returns true if the buffer contains at least one carriage return character (e.g.
void ClearBuffer ()
 This function clears the entire buffer by setting it to an empty string.

std::string GetBuffer ()
 This function clears the entire buffer by setting it to an empty string.
std::string GetBuffer ()
 This method returns the first available string at the tail end of the buffer and advances the tail end of the buffer past the string.

void SetWriteError (std::string error)
 This method returns the first available string at the tail end of the buffer and advances the tail end of the buffer past the string.
void SetWriteError (std::string error)
 Sets the write error for a connection.

std::string GetWriteError ()
 Sets the write error for a connection.
std::string GetWriteError ()
 Returns the write error which last occured on this connection or an empty string if none occured.

void AddWriteBuf (std::string data)
 Returns the write error which last occured on this connection or an empty string if none occured.
void AddWriteBuf (std::string data)
 Adds to the user's write buffer.

void FlushWriteBuf ()
 Adds to the user's write buffer.
void FlushWriteBuf ()
 Flushes as much of the user's buffer to the file descriptor as possible.

InvitedListGetInviteList ()
 Flushes as much of the user's buffer to the file descriptor as possible.
InvitedListGetInviteList ()
 Returns the list of channels this user has been invited to but has not yet joined.

void CloseSocket ()
 Returns the list of channels this user has been invited to but has not yet joined.
void CloseSocket ()
 Shuts down and closes the user's socket.


Public Attributes

char nick [NICKMAX]
 Shuts down and closes the user's socket.

Public Attributes

char nick [NICKMAX]
 The users nickname.

char ident [IDENTMAX+2]
 The users nickname.
char ident [IDENTMAX+2]
 The users ident reply.

char dhost [160]
 The users ident reply.
char dhost [160]
 The host displayed to non-opers (used for cloaking etc).

char fullname [MAXGECOS+1]
 The host displayed to non-opers (used for cloaking etc).
char fullname [MAXGECOS+1]
 The users full name.

char modes [54]
 The users full name.
char modes [54]
 The user's mode string.

ucrec chans [MAXCHANS]
 The user's mode string.
ucrec chans [MAXCHANS]
char * server
char * server
 The server the user is connected to.

char awaymsg [MAXAWAY+1]
 The server the user is connected to.
char awaymsg [MAXAWAY+1]
 The user's away message.

int flood
 The user's away message.
int flood
 Number of lines the user can place into the buffer (up to the global NetBufferSize bytes) before they are disconnected for excess flood.

unsigned int timeout
 Number of lines the user can place into the buffer (up to the global NetBufferSize bytes) before they are disconnected for excess flood.
unsigned int timeout
 Number of seconds this user is given to send USER/NICK If they do not send their details in this time limit they will be disconnected.

char oper [NICKMAX]
 Number of seconds this user is given to send USER/NICK If they do not send their details in this time limit they will be disconnected.
char oper [NICKMAX]
 The oper type they logged in as, if they are an oper.

bool dns_done
 The oper type they logged in as, if they are an oper.
bool dns_done
 True when DNS lookups are completed.

unsigned int pingmax
 True when DNS lookups are completed.
unsigned int pingmax
 Number of seconds between PINGs for this user (set from <connect:allow> tag.

char password [MAXBUF]
 Number of seconds between PINGs for this user (set from <connect:allow> tag.
char password [MAXBUF]
 Password specified by the user when they registered.

std::string recvq
 Password specified by the user when they registered.
std::string recvq
 User's receive queue.

std::string sendq
 User's receive queue.
std::string sendq
 User's send queue.

int lines_in
 User's send queue.
int lines_in
 Flood counters.

time_t reset_due
 Flood counters.
time_t reset_due
long threshold
long threshold
std::string WriteError
std::string WriteError
long sendqmax
long sendqmax
 Maximum size this user's sendq can become.

long recvqmax
 Maximum size this user's sendq can become.
long recvqmax
 Maximum size this user's recvq can become.


Private Attributes

InvitedList invites
 Maximum size this user's recvq can become.

Private Attributes

InvitedList invites
 A list of channels the user has a pending invite to.

 A list of channels the user has a pending invite to.

Detailed Description

Holds all information about a user This class stores all information about a user connected to the irc server.

-Everything about a connection is stored here primarily, from the user's socket ID (file descriptor) through to the user's nickname and hostname. Use the Find method of the server class to locate a specific user by nickname. +Everything about a connection is stored here primarily, from the user's socket ID (file descriptor) through to the user's nickname and hostname. Use the Find method of the server class to locate a specific user by nickname.

Definition at line 108 of file users.h.


Constructor & Destructor Documentation

-

- +

+

- + -
userrec::userrec userrec::userrec  ) 
- +
+
  @@ -182,59 +181,58 @@ Definition at line 108 of f

-Definition at line 32 of file users.cpp. +Definition at line 33 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. +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.

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

-

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

- +

+

- + -
virtual userrec::~userrec virtual userrec::~userrec  )  [inline, virtual]
- +
+
  @@ -244,32 +242,31 @@ References awaymsg,

-Definition at line 221 of file users.h. +Definition at line 221 of file users.h.

00221 {  }
+

-

00221 {  }
-


Member Function Documentation

-

- +

+

- + - + -
bool userrec::AddBuffer bool userrec::AddBuffer std::string std::string  a  ) 
- +
- -
  @@ -279,58 +276,57 @@ Definition at line 221 of f

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 192 of file users.cpp. -

-References recvq, recvqmax, and SetWriteError(). -

-

00193 {
-00194         std::string b = "";
-00195         for (int i = 0; i < a.length(); i++)
-00196                 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7))
-00197                         b = b + a[i];
-00198         std::stringstream stream(recvq);
-00199         stream << b;
-00200         recvq = stream.str();
-00201         int i = 0;
-00202         // count the size of the first line in the buffer.
-00203         while (i < recvq.length())
-00204         {
-00205                 if (recvq[i++] == '\n')
-00206                         break;
-00207         }
-00208         if (recvq.length() > this->recvqmax)
-00209         {
-00210                 this->SetWriteError("RecvQ exceeded");
-00211                 WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax);
-00212         }
-00213         // return false if we've had more than 600 characters WITHOUT
-00214         // a carriage return (this is BAD, drop the socket)
-00215         return (i < 600);
-00216 }
-
-

- +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 194 of file users.cpp. +

+References recvq, recvqmax, and SetWriteError().

00195 {
+00196         std::string b = "";
+00197         for (unsigned int i = 0; i < a.length(); i++)
+00198                 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7))
+00199                         b = b + a[i];
+00200         std::stringstream stream(recvq);
+00201         stream << b;
+00202         recvq = stream.str();
+00203         unsigned int i = 0;
+00204         // count the size of the first line in the buffer.
+00205         while (i < recvq.length())
+00206         {
+00207                 if (recvq[i++] == '\n')
+00208                         break;
+00209         }
+00210         if (recvq.length() > (unsigned)this->recvqmax)
+00211         {
+00212                 this->SetWriteError("RecvQ exceeded");
+00213                 WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax);
+00214         }
+00215         // return false if we've had more than 600 characters WITHOUT
+00216         // a carriage return (this is BAD, drop the socket)
+00217         return (i < 600);
+00218 }
+
+

+ + +

+

+
- + - + -
void userrec::AddWriteBuf void userrec::AddWriteBuf std::string std::string  data  ) 
- +
+
  @@ -340,46 +336,45 @@ References recvq, 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. +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 248 of file users.cpp. +Definition at line 250 of file users.cpp.

-References GetWriteError(), sendq, sendqmax, and SetWriteError(). +References sendq, sendqmax, and SetWriteError().

00251 {
+00252         if (this->GetWriteError() != "")
+00253                 return;
+00254         if (sendq.length() + data.length() > (unsigned)this->sendqmax)
+00255         {
+00256                 WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax);
+00257                 this->SetWriteError("SendQ exceeded");
+00258                 return;
+00259         }
+00260         std::stringstream stream;
+00261         stream << sendq << data;
+00262         sendq = stream.str();
+00263 }
+

-

00249 {
-00250         if (this->GetWriteError() != "")
-00251                 return;
-00252         if (sendq.length() + data.length() > this->sendqmax)
-00253         {
-00254                 WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax);
-00255                 this->SetWriteError("SendQ exceeded");
-00256                 return;
-00257         }
-00258         std::stringstream stream;
-00259         stream << sendq << data;
-00260         sendq = stream.str();
-00261 }
-
-

- +

+

- + -
bool userrec::BufferIsReady bool userrec::BufferIsReady  ) 
- +
+
  @@ -391,37 +386,36 @@ This method returns true if the buffer contains at least one carriage return cha

one complete line may be read)

-Definition at line 218 of file users.cpp. +Definition at line 220 of file users.cpp.

-References recvq. +References recvq.

00221 {
+00222         for (unsigned int i = 0; i < recvq.length(); i++)
+00223                 if (recvq[i] == '\n')
+00224                         return true;
+00225         return false;
+00226 }
+

-

00219 {
-00220         for (int i = 0; i < recvq.length(); i++)
-00221                 if (recvq[i] == '\n')
-00222                         return true;
-00223         return false;
-00224 }
-
-

- +

+

- + -
void userrec::ClearBuffer void userrec::ClearBuffer  ) 
- +
+
  @@ -433,36 +427,35 @@ This function clears the entire buffer by setting it to an empty string.

-Definition at line 226 of file users.cpp. +Definition at line 228 of file users.cpp.

References recvq.

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

00229 {
+00230         recvq = "";
+00231 }
+

-

00227 {
-00228         recvq = "";
-00229 }
-
-

- +

+

- + -
void userrec::CloseSocket void userrec::CloseSocket  ) 
- +
+
  @@ -474,33 +467,32 @@ Shuts down and closes the user's socket.

-Definition at line 62 of file users.cpp. +Definition at line 63 of file users.cpp.

00064 {
+00065         shutdown(this->fd,2);
+00066         close(this->fd);
+00067 }
+

-

00063 {
-00064         shutdown(this->fd,2);
-00065         close(this->fd);
-00066 }
-
-

- +

+

- + -
void userrec::FlushWriteBuf void userrec::FlushWriteBuf  ) 
- +
- -
  @@ -512,51 +504,50 @@ 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 264 of file users.cpp. -

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

-

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

- +Definition at line 266 of file users.cpp. +

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

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

+ + +

+

+
- + -
std::string userrec::GetBuffer std::string userrec::GetBuffer  ) 
- +
- -
  @@ -566,48 +557,47 @@ References connection::byt

This method returns the first available string at the tail end of the buffer and advances the tail end of the buffer past the string.

-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(). +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 231 of file users.cpp. +Definition at line 233 of file users.cpp.

-References recvq. +References recvq.

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

-

00232 {
-00233         if (recvq == "")
-00234                 return "";
-00235         char* line = (char*)recvq.c_str();
-00236         std::string ret = "";
-00237         while ((*line != '\n') && (strlen(line)))
-00238         {
-00239                 ret = ret + *line;
-00240                 line++;
-00241         }
-00242         if ((*line == '\n') || (*line == '\r'))
-00243                 line++;
-00244         recvq = line;
-00245         return ret;
-00246 }
-
-

- + + +
+

+
- + -
char * userrec::GetFullHost char * userrec::GetFullHost  )  [virtual]
- +
+
  @@ -619,36 +609,35 @@ Returns the full displayed host of the user This member function returns the hos

-Definition at line 68 of file users.cpp. +Definition at line 69 of file users.cpp.

-References dhost, ident, and nick. +References dhost, ident, and nick.

00070 {
+00071         static char result[MAXBUF];
+00072         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost);
+00073         return result;
+00074 }
+

-

00069 {
-00070         static char result[MAXBUF];
-00071         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost);
-00072         return result;
-00073 }
-
-

- +

+

- + -
char * userrec::GetFullRealHost char * userrec::GetFullRealHost  )  [virtual]
- +
+
  @@ -660,36 +649,35 @@ 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 85 of file users.cpp. +Definition at line 87 of file users.cpp.

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

00088 {
+00089         static char fresult[MAXBUF];
+00090         snprintf(fresult,MAXBUF,"%s!%s@%s",nick,ident,host);
+00091         return fresult;
+00092 }
+

-

00086 {
-00087         static char fresult[MAXBUF];
-00088         snprintf(fresult,MAXBUF,"%s!%s@%s",nick,ident,host);
-00089         return fresult;
-00090 }
-
-

- +

+

- + -
InvitedList * userrec::GetInviteList InvitedList * userrec::GetInviteList  ) 
- +
+
  @@ -701,34 +689,33 @@ Returns the list of channels this user has been invited to but has not yet joine

-Definition at line 106 of file users.cpp. +Definition at line 108 of file users.cpp.

-References InvitedList, and invites. +References invites.

00109 {
+00110         return &invites;
+00111 }
+

-

00107 {
-00108         return &invites;
-00109 }
-
-

- +

+

- + -
std::string userrec::GetWriteError std::string userrec::GetWriteError  ) 
- +
+
  @@ -740,37 +727,34 @@ Returns the write error which last occured on this connection or an empty string

-Definition at line 294 of file users.cpp. +Definition at line 296 of file users.cpp.

-References WriteError. +References WriteError.

00297 {
+00298         return this->WriteError;
+00299 }
+

-Referenced by AddWriteBuf(). -

-

00295 {
-00296         return this->WriteError;
-00297 }
-
-

- +

+

- + -
bool userrec::HasPermission bool userrec::HasPermission char *  command  ) 
- +
- -
  @@ -780,83 +764,82 @@ Referenced by AddWriteBuf() 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 140 of file users.cpp. -

-References config_f, and DEBUG. -

-

00141 {
-00142         char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
-00143         char* mycmd;
-00144         char* savept;
-00145         char* savept2;
-00146         
-00147         // are they even an oper at all?
-00148         if (strchr(this->modes,'o'))
-00149         {
-00150                 log(DEBUG,"*** HasPermission: %s is an oper",this->nick);
-00151                 for (int j =0; j < ConfValueEnum("type",&config_f); j++)
-00152                 {
-00153                         ConfValue("type","name",j,TypeName,&config_f);
-00154                         if (!strcmp(TypeName,this->oper))
-00155                         {
-00156                                 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper);
-00157                                 ConfValue("type","classes",j,Classes,&config_f);
-00158                                 char* myclass = strtok_r(Classes," ",&savept);
-00159                                 while (myclass)
-00160                                 {
-00161                                         log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass);
-00162                                         for (int k =0; k < ConfValueEnum("class",&config_f); k++)
-00163                                         {
-00164                                                 ConfValue("class","name",k,ClassName,&config_f);
-00165                                                 if (!strcmp(ClassName,myclass))
-00166                                                 {
-00167                                                         ConfValue("class","commands",k,CommandList,&config_f);
-00168                                                         log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList);
-00169                                                         
-00170                                                         
-00171                                                         mycmd = strtok_r(CommandList," ",&savept2);
-00172                                                         while (mycmd)
-00173                                                         {
-00174                                                                 if (!strcasecmp(mycmd,command))
-00175                                                                 {
-00176                                                                         log(DEBUG,"*** Command %s found, returning true",command);
-00177                                                                         return true;
-00178                                                                 }
-00179                                                                 mycmd = strtok_r(NULL," ",&savept2);
-00180                                                         }
-00181                                                 }
-00182                                         }
-00183                                         myclass = strtok_r(NULL," ",&savept);
-00184                                 }
-00185                         }
-00186                 }
-00187         }
-00188         return false;
-00189 }
-
-

- +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 142 of file users.cpp. +

+References config_f, and DEBUG.

00143 {
+00144         char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
+00145         char* mycmd;
+00146         char* savept;
+00147         char* savept2;
+00148         
+00149         // are they even an oper at all?
+00150         if (strchr(this->modes,'o'))
+00151         {
+00152                 log(DEBUG,"*** HasPermission: %s is an oper",this->nick);
+00153                 for (int j =0; j < ConfValueEnum("type",&config_f); j++)
+00154                 {
+00155                         ConfValue("type","name",j,TypeName,&config_f);
+00156                         if (!strcmp(TypeName,this->oper))
+00157                         {
+00158                                 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper);
+00159                                 ConfValue("type","classes",j,Classes,&config_f);
+00160                                 char* myclass = strtok_r(Classes," ",&savept);
+00161                                 while (myclass)
+00162                                 {
+00163                                         log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass);
+00164                                         for (int k =0; k < ConfValueEnum("class",&config_f); k++)
+00165                                         {
+00166                                                 ConfValue("class","name",k,ClassName,&config_f);
+00167                                                 if (!strcmp(ClassName,myclass))
+00168                                                 {
+00169                                                         ConfValue("class","commands",k,CommandList,&config_f);
+00170                                                         log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList);
+00171                                                         
+00172                                                         
+00173                                                         mycmd = strtok_r(CommandList," ",&savept2);
+00174                                                         while (mycmd)
+00175                                                         {
+00176                                                                 if (!strcasecmp(mycmd,command))
+00177                                                                 {
+00178                                                                         log(DEBUG,"*** Command %s found, returning true",command);
+00179                                                                         return true;
+00180                                                                 }
+00181                                                                 mycmd = strtok_r(NULL," ",&savept2);
+00182                                                         }
+00183                                                 }
+00184                                         }
+00185                                         myclass = strtok_r(NULL," ",&savept);
+00186                                 }
+00187                         }
+00188                 }
+00189         }
+00190         return false;
+00191 }
+
+

+ + +

+

+
- + -
void userrec::InviteTo void userrec::InviteTo char *  channel  )  [virtual]
- +
+
  @@ -868,37 +851,36 @@ Adds a channel to a users invite list (invites them to a channel).

-Definition at line 111 of file users.cpp. +Definition at line 113 of file users.cpp.

-References Invited::channel, and invites. +References Invited::channel, and invites.

00114 {
+00115         Invited i;
+00116         strlcpy(i.channel,channel,CHANMAX);
+00117         invites.push_back(i);
+00118 }
+

-

00112 {
-00113         Invited i;
-00114         strlcpy(i.channel,channel,CHANMAX);
-00115         invites.push_back(i);
-00116 }
-
-

- +

+

- + -
bool userrec::IsInvited bool userrec::IsInvited char *  channel  )  [virtual]
- +
+
  @@ -910,53 +892,52 @@ Returns true if a user is invited to a channel.

-Definition at line 92 of file users.cpp. +Definition at line 94 of file users.cpp.

-References invites. +References invites.

00095 {
+00096         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
+00097         {
+00098                 if (i->channel) {
+00099                         if (!strcasecmp(i->channel,channel))
+00100                         {
+00101                                 return true;
+00102                         }
+00103                 }
+00104         }
+00105         return false;
+00106 }
+

-

00093 {
-00094         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
-00095         {
-00096                 if (i->channel) {
-00097                         if (!strcasecmp(i->channel,channel))
-00098                         {
-00099                                 return true;
-00100                         }
-00101                 }
-00102         }
-00103         return false;
-00104 }
-
-

- +

+

- + - - + + - + -
int userrec::ReadData int userrec::ReadData void *  buffer,
size_t  size
- +
+
  @@ -968,39 +949,39 @@ Calls read() to read some data for this user using their fd.

-Definition at line 75 of file users.cpp. +Definition at line 76 of file users.cpp.

-References connection::fd. +References DEBUG.

00077 {
+00078         if (this->fd > -1)
+00079         {
+00080                 log(DEBUG,"userrec::ReadData on fd %d",this->fd);
+00081                 return read(this->fd, buffer, size);
+00082         }
+00083         else return 0;
+00084 }
+

-

00076 {
-00077         if (this->fd > -1)
-00078         {
-00079                 return read(this->fd, buffer, size);
-00080         }
-00081         else return 0;
-00082 }
-
-

- +

+

- + -
void userrec::RemoveInvite void userrec::RemoveInvite char *  channel  )  [virtual]
- +
- -
  @@ -1012,52 +993,51 @@ 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 118 of file users.cpp. -

-References DEBUG, and invites. -

-

00119 {
-00120         log(DEBUG,"Removing invites");
-00121         if (channel)
-00122         {
-00123                 if (invites.size())
-00124                 {
-00125                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
-00126                         {
-00127                                 if (i->channel)
-00128                                 {
-00129                                         if (!strcasecmp(i->channel,channel))
-00130                                         {
-00131                                                 invites.erase(i);
-00132                                                 return;
-00133                                         }
-00134                                 }
-00135                         }
-00136                 }
-00137         }
-00138 }
-
-

- +Definition at line 120 of file users.cpp. +

+References DEBUG, and invites.

00121 {
+00122         log(DEBUG,"Removing invites");
+00123         if (channel)
+00124         {
+00125                 if (invites.size())
+00126                 {
+00127                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
+00128                         {
+00129                                 if (i->channel)
+00130                                 {
+00131                                         if (!strcasecmp(i->channel,channel))
+00132                                         {
+00133                                                 invites.erase(i);
+00134                                                 return;
+00135                                         }
+00136                                 }
+00137                         }
+00138                 }
+00139         }
+00140 }
+
+

+ + +

+

+
- + - + -
void userrec::SetWriteError void userrec::SetWriteError std::string std::string  error  ) 
- +
+
  @@ -1069,34 +1049,35 @@ 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 286 of file users.cpp. +Definition at line 288 of file users.cpp.

References DEBUG, and WriteError.

-Referenced by AddBuffer(), AddWriteBuf(), and FlushWriteBuf(). +Referenced by AddBuffer(), AddWriteBuf(), and FlushWriteBuf().

00289 {
+00290         log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str());
+00291         // don't try to set the error twice, its already set take the first string.
+00292         if (this->WriteError == "")
+00293                 this->WriteError = error;
+00294 }
+

-

00287 {
-00288         log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str());
-00289         // don't try to set the error twice, its already set take the first string.
-00290         if (this->WriteError == "")
-00291                 this->WriteError = error;
-00292 }
-


Member Data Documentation

-

- +

+

- +
char userrec::awaymsg[MAXAWAY+1] + char userrec::awaymsg[MAXAWAY+1]
- +
+Referenced by userrec().
  @@ -1110,21 +1091,22 @@ If this string is empty, the user is not marked as away.

Definition at line 155 of file users.h.

-Referenced by userrec().

-

- +

+

- +
ucrec userrec::chans[MAXCHANS] + ucrec userrec::chans[MAXCHANS]
- +
+Referenced by Server::PseudoToUser(), and userrec().
  @@ -1136,21 +1118,22 @@ Referenced by userrec().

Definition at line 146 of file users.h.

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

-

- +

+

- +
char userrec::dhost[160] + char userrec::dhost[160]
- +
+Referenced by GetFullHost(), and userrec().
  @@ -1160,25 +1143,26 @@ Referenced by Server::Pseud

The host displayed to non-opers (used for cloaking etc).

-This usually matches the value of userrec::host. +This usually matches the value of userrec::host.

Definition at line 131 of file users.h.

-Referenced by GetFullHost(), and userrec().

-

- +

+

- +
bool userrec::dns_done + bool userrec::dns_done
- +
+Referenced by userrec().
  @@ -1192,21 +1176,22 @@ True when DNS lookups are completed.

Definition at line 178 of file users.h.

-Referenced by userrec().

-

- +

+

- +
int userrec::flood + int userrec::flood
- +
+Referenced by userrec().
  @@ -1220,21 +1205,22 @@ Number of lines the user can place into the buffer (up to the global NetBufferSi

Definition at line 161 of file users.h.

-Referenced by userrec().

-

- +

+

- +
char userrec::fullname[MAXGECOS+1] + char userrec::fullname[MAXGECOS+1]
- +
+Referenced by userrec().
  @@ -1248,21 +1234,22 @@ The users full name.

Definition at line 135 of file users.h.

-Referenced by userrec().

-

- +

+

- +
char userrec::ident[IDENTMAX+2] + char userrec::ident[IDENTMAX+2]
- +
+Referenced by GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), userrec(), and Server::UserToPseudo().
  @@ -1276,21 +1263,22 @@ Two characters are added to the user-defined limit to compensate for the tilde e

Definition at line 126 of file users.h.

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

-

- +

+

- +
InvitedList userrec::invites [private] + InvitedList userrec::invites [private]
- +
+Referenced by GetInviteList(), InviteTo(), IsInvited(), RemoveInvite(), and userrec().
  @@ -1304,21 +1292,22 @@ A list of channels the user has a pending invite to.

Definition at line 114 of file users.h.

-Referenced by GetInviteList(), InviteTo(), IsInvited(), RemoveInvite(), and userrec().

-

- +

+

- +
int userrec::lines_in + int userrec::lines_in
- +
+Referenced by userrec().
  @@ -1332,21 +1321,22 @@ Flood counters.

Definition at line 203 of file users.h.

-Referenced by userrec().

-

- +

+

- +
char userrec::modes[54] + char userrec::modes[54]
- +
+Referenced by userrec().
  @@ -1360,21 +1350,22 @@ This may contain any of the following RFC characters: o, w, s, i Your module may

Definition at line 144 of file users.h.

-Referenced by userrec().

-

- +

+

- +
char userrec::nick[NICKMAX] + char userrec::nick[NICKMAX]
- +
+Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), and userrec().
  @@ -1388,21 +1379,22 @@ An invalid nickname indicates an unregistered connection prior to the NICK comma

Definition at line 121 of file users.h.

-Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), and userrec().

-

- +

+

- +
char userrec::oper[NICKMAX] + char userrec::oper[NICKMAX]
- +
+Referenced by userrec().
  @@ -1416,21 +1408,22 @@ This is used to check permissions in operclasses, so that we can say 'yay' or 'n

Definition at line 174 of file users.h.

-Referenced by userrec().

-

- +

+

- +
char userrec::password[MAXBUF] + char userrec::password[MAXBUF]
- +
  @@ -1440,23 +1433,24 @@ Referenced by userrec().

Password specified by the user when they registered.

-This is stored even if the block doesnt need a password, so that modules may check it. +This is stored even if the <connect> block doesnt need a password, so that modules may check it.

Definition at line 188 of file users.h.

-

- +

+

- +
unsigned int userrec::pingmax + unsigned int userrec::pingmax
- +
  @@ -1471,18 +1465,19 @@ Number of seconds between PINGs for this user (set from <connect:allow> ta Definition at line 182 of file users.h.
-

- +

+

- +
std::string userrec::recvq + std::string userrec::recvq
- +
+Referenced by AddBuffer(), BufferIsReady(), ClearBuffer(), GetBuffer(), and userrec().
  @@ -1496,21 +1491,22 @@ Lines from the IRCd awaiting processing are stored here. Upgraded april 2005, ol

Definition at line 194 of file users.h.

-Referenced by AddBuffer(), BufferIsReady(), ClearBuffer(), GetBuffer(), and userrec().

-

- +

+

- +
long userrec::recvqmax + long userrec::recvqmax
- +
+Referenced by AddBuffer().
  @@ -1524,21 +1520,22 @@ Maximum size this user's recvq can become.

Definition at line 217 of file users.h.

-Referenced by AddBuffer().

-

- +

+

- +
time_t userrec::reset_due + time_t userrec::reset_due
- +
+Referenced by userrec().
  @@ -1550,21 +1547,22 @@ Referenced by AddBuffer()

Definition at line 204 of file users.h.

-Referenced by userrec().

-

- +

+

- +
std::string userrec::sendq + std::string userrec::sendq
- +
+Referenced by AddWriteBuf(), FlushWriteBuf(), and userrec().
  @@ -1578,21 +1576,22 @@ Lines waiting to be sent are stored here until their buffer is flushed.

Definition at line 199 of file users.h.

-Referenced by AddWriteBuf(), FlushWriteBuf(), and userrec().

-

- +

+

- +
long userrec::sendqmax + long userrec::sendqmax
- +
+Referenced by AddWriteBuf().
  @@ -1606,21 +1605,22 @@ Maximum size this user's sendq can become.

Definition at line 213 of file users.h.

-Referenced by AddWriteBuf().

-

- +

+

- +
char* userrec::server + char* userrec::server
- +
+Referenced by userrec().
  @@ -1634,21 +1634,22 @@ The server the user is connected to.

Definition at line 150 of file users.h.

-Referenced by userrec().

-

- +

+

- +
long userrec::threshold + long userrec::threshold
- +
  @@ -1661,18 +1662,19 @@ Referenced by userrec(). Definition at line 205 of file users.h.
-

- +

+

- +
unsigned int userrec::timeout + unsigned int userrec::timeout
- +
+Referenced by userrec().
  @@ -1686,21 +1688,22 @@ Number of seconds this user is given to send USER/NICK If they do not send their

Definition at line 167 of file users.h.

-Referenced by userrec().

-

- +

+

- +
std::string userrec::WriteError + std::string userrec::WriteError
- +
+Referenced by GetWriteError(), and SetWriteError().
  @@ -1712,14 +1715,13 @@ Referenced by userrec().

Definition at line 209 of file users.h.

-Referenced by GetWriteError(), and SetWriteError().


The documentation for this class was generated from the following files: -
Generated on Mon May 30 05:17:43 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/classuserrec__coll__graph.gif b/docs/module-doc/classuserrec__coll__graph.gif index 0ad5e4f3c..c04b77ecc 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 new file mode 100644 index 000000000..0c1aa906e --- /dev/null +++ b/docs/module-doc/classuserrec__coll__graph.map @@ -0,0 +1,3 @@ +base referer +rect $classconnection.html 199,429 284,456 +rect $classucrec.html 215,7 268,33 diff --git a/docs/module-doc/classuserrec__coll__graph.md5 b/docs/module-doc/classuserrec__coll__graph.md5 new file mode 100644 index 000000000..4ad527f15 --- /dev/null +++ b/docs/module-doc/classuserrec__coll__graph.md5 @@ -0,0 +1 @@ +e23f71aec70c162678f86988d6926812 \ No newline at end of file diff --git a/docs/module-doc/classuserrec__inherit__graph.gif b/docs/module-doc/classuserrec__inherit__graph.gif index 132a8778a..a1cc1a0a8 100644 Binary files a/docs/module-doc/classuserrec__inherit__graph.gif and b/docs/module-doc/classuserrec__inherit__graph.gif differ diff --git a/docs/module-doc/classuserrec__inherit__graph.map b/docs/module-doc/classuserrec__inherit__graph.map new file mode 100644 index 000000000..7b98b616f --- /dev/null +++ b/docs/module-doc/classuserrec__inherit__graph.map @@ -0,0 +1,4 @@ +base referer +rect $classconnection.html 7,156 92,183 +rect $classExtensible.html 8,81 91,108 +rect $classclassbase.html 10,7 90,33 diff --git a/docs/module-doc/classuserrec__inherit__graph.md5 b/docs/module-doc/classuserrec__inherit__graph.md5 new file mode 100644 index 000000000..e45c258a7 --- /dev/null +++ b/docs/module-doc/classuserrec__inherit__graph.md5 @@ -0,0 +1 @@ +48134c77983f0184ab60e531fb8c80f4 \ 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 13f8808b6..3d62e89c4 100644 --- a/docs/module-doc/commands_8h-source.html +++ b/docs/module-doc/commands_8h-source.html @@ -1,129 +1,102 @@ - + InspIRCd: commands.h Source File - - -

commands.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 __COMMANDS_H
-00018 #define __COMMANDS_H
-00019 
-00020 // include the common header files
-00021 
-00022 #include <typeinfo>
-00023 #include <iostream>
-00024 #include <string>
-00025 #include <deque>
-00026 #include <sstream>
-00027 #include <vector>
-00028 #include "users.h"
-00029 #include "channels.h"
-00030 
-00031 
-00034 void handle_join(char **parameters, int pcnt, userrec *user);
-00035 void handle_part(char **parameters, int pcnt, userrec *user);
-00036 void handle_kick(char **parameters, int pcnt, userrec *user);
-00037 void handle_die(char **parameters, int pcnt, userrec *user);
-00038 void handle_restart(char **parameters, int pcnt, userrec *user);
-00039 void handle_kill(char **parameters, int pcnt, userrec *user);
-00040 void handle_summon(char **parameters, int pcnt, userrec *user);
-00041 void handle_users(char **parameters, int pcnt, userrec *user);
-00042 void handle_pass(char **parameters, int pcnt, userrec *user);
-00043 void handle_invite(char **parameters, int pcnt, userrec *user);
-00044 void handle_topic(char **parameters, int pcnt, userrec *user);
-00045 void handle_names(char **parameters, int pcnt, userrec *user);
-00046 void handle_privmsg(char **parameters, int pcnt, userrec *user);
-00047 void handle_notice(char **parameters, int pcnt, userrec *user);
-00048 void handle_info(char **parameters, int pcnt, userrec *user);
-00049 void handle_time(char **parameters, int pcnt, userrec *user);
-00050 void handle_whois(char **parameters, int pcnt, userrec *user);
-00051 void handle_quit(char **parameters, int pcnt, userrec *user);
-00052 void handle_who(char **parameters, int pcnt, userrec *user);
-00053 void handle_wallops(char **parameters, int pcnt, userrec *user);
-00054 void handle_list(char **parameters, int pcnt, userrec *user);
-00055 void handle_rehash(char **parameters, int pcnt, userrec *user);
-00056 void handle_lusers(char **parameters, int pcnt, userrec *user);
-00057 void handle_admin(char **parameters, int pcnt, userrec *user);
-00058 void handle_ping(char **parameters, int pcnt, userrec *user);
-00059 void handle_pong(char **parameters, int pcnt, userrec *user);
-00060 void handle_motd(char **parameters, int pcnt, userrec *user);
-00061 void handle_rules(char **parameters, int pcnt, userrec *user);
-00062 void handle_user(char **parameters, int pcnt, userrec *user);
-00063 void handle_userhost(char **parameters, int pcnt, userrec *user);
-00064 void handle_ison(char **parameters, int pcnt, userrec *user);
-00065 void handle_away(char **parameters, int pcnt, userrec *user);
-00066 void handle_whowas(char **parameters, int pcnt, userrec *user);
-00067 void handle_trace(char **parameters, int pcnt, userrec *user);
-00068 void handle_modules(char **parameters, int pcnt, userrec *user);
-00069 void handle_stats(char **parameters, int pcnt, userrec *user);
-00070 void handle_connect(char **parameters, int pcnt, userrec *user);
-00071 void handle_squit(char **parameters, int pcnt, userrec *user);
-00072 void handle_links(char **parameters, int pcnt, userrec *user);
-00073 void handle_map(char **parameters, int pcnt, userrec *user);
-00074 void handle_oper(char **parameters, int pcnt, userrec *user);
-00075 void handle_nick(char **parameters, int pcnt, userrec *user);
-00076 void handle_kline(char **parameters, int pcnt, userrec *user);
-00077 void handle_gline(char **parameters, int pcnt, userrec *user);
-00078 void handle_zline(char **parameters, int pcnt, userrec *user);
-00079 void handle_qline(char **parameters, int pcnt, userrec *user);
-00080 void handle_eline(char **parameters, int pcnt, userrec *user);
-00081 void handle_server(char **parameters, int pcnt, userrec *user);
-00082 void handle_loadmodule(char **parameters, int pcnt, userrec *user);
-00083 void handle_unloadmodule(char **parameters, int pcnt, userrec *user);
-00084 void handle_commands(char **parameters, int pcnt, userrec *user);
-00085 
-00088 void handle_link_packet(char* tcp_msg, char* tcp_host, serverrec *serv, char* tcp_sum);
-00089 void process_restricted_commands(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host,char* ipaddr,int port, char* tcp_sum);
-00090 
-00093 void handle_amp(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00094 void handle_dollar(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00095 void handle_J(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00096 void handle_R(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00097 void handle_plus(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00098 void handle_b(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00099 void handle_a(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00100 void handle_F(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00101 void handle_N(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00102 void handle_AT(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00103 void handle_k(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00104 void handle_n(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00105 void handle_Q(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00106 void handle_K(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00107 void handle_L(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00108 void handle_m(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00109 void handle_M(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00110 void handle_T(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00111 void handle_t(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00112 void handle_i(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00113 void handle_P(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00114 void handle_V(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host, char* tcp_sum);
-00115 
-00118 bool is_uline(const char* server);
-00119 
-00122 long duration(const char* str);
-00123 
-00126 void ConnectServer(char* servermask, userrec* user);
-00127 
-00128 #endif
-

Generated on Mon May 30 05:15:19 2005 for InspIRCd by + + + +

commands.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 __COMMANDS_H
+00018 #define __COMMANDS_H
+00019 
+00020 // include the common header files
+00021 
+00022 #include <typeinfo>
+00023 #include <iostream>
+00024 #include <string>
+00025 #include <deque>
+00026 #include <sstream>
+00027 #include <vector>
+00028 #include "users.h"
+00029 #include "channels.h"
+00030 
+00031 
+00034 void handle_join(char **parameters, int pcnt, userrec *user);
+00035 void handle_part(char **parameters, int pcnt, userrec *user);
+00036 void handle_kick(char **parameters, int pcnt, userrec *user);
+00037 void handle_die(char **parameters, int pcnt, userrec *user);
+00038 void handle_restart(char **parameters, int pcnt, userrec *user);
+00039 void handle_kill(char **parameters, int pcnt, userrec *user);
+00040 void handle_summon(char **parameters, int pcnt, userrec *user);
+00041 void handle_users(char **parameters, int pcnt, userrec *user);
+00042 void handle_pass(char **parameters, int pcnt, userrec *user);
+00043 void handle_invite(char **parameters, int pcnt, userrec *user);
+00044 void handle_topic(char **parameters, int pcnt, userrec *user);
+00045 void handle_names(char **parameters, int pcnt, userrec *user);
+00046 void handle_privmsg(char **parameters, int pcnt, userrec *user);
+00047 void handle_notice(char **parameters, int pcnt, userrec *user);
+00048 void handle_info(char **parameters, int pcnt, userrec *user);
+00049 void handle_time(char **parameters, int pcnt, userrec *user);
+00050 void handle_whois(char **parameters, int pcnt, userrec *user);
+00051 void handle_quit(char **parameters, int pcnt, userrec *user);
+00052 void handle_who(char **parameters, int pcnt, userrec *user);
+00053 void handle_wallops(char **parameters, int pcnt, userrec *user);
+00054 void handle_list(char **parameters, int pcnt, userrec *user);
+00055 void handle_rehash(char **parameters, int pcnt, userrec *user);
+00056 void handle_lusers(char **parameters, int pcnt, userrec *user);
+00057 void handle_admin(char **parameters, int pcnt, userrec *user);
+00058 void handle_ping(char **parameters, int pcnt, userrec *user);
+00059 void handle_pong(char **parameters, int pcnt, userrec *user);
+00060 void handle_motd(char **parameters, int pcnt, userrec *user);
+00061 void handle_rules(char **parameters, int pcnt, userrec *user);
+00062 void handle_user(char **parameters, int pcnt, userrec *user);
+00063 void handle_userhost(char **parameters, int pcnt, userrec *user);
+00064 void handle_ison(char **parameters, int pcnt, userrec *user);
+00065 void handle_away(char **parameters, int pcnt, userrec *user);
+00066 void handle_whowas(char **parameters, int pcnt, userrec *user);
+00067 void handle_trace(char **parameters, int pcnt, userrec *user);
+00068 void handle_modules(char **parameters, int pcnt, userrec *user);
+00069 void handle_stats(char **parameters, int pcnt, userrec *user);
+00070 void handle_connect(char **parameters, int pcnt, userrec *user);
+00071 void handle_squit(char **parameters, int pcnt, userrec *user);
+00072 void handle_links(char **parameters, int pcnt, userrec *user);
+00073 void handle_map(char **parameters, int pcnt, userrec *user);
+00074 void handle_oper(char **parameters, int pcnt, userrec *user);
+00075 void handle_nick(char **parameters, int pcnt, userrec *user);
+00076 void handle_kline(char **parameters, int pcnt, userrec *user);
+00077 void handle_gline(char **parameters, int pcnt, userrec *user);
+00078 void handle_zline(char **parameters, int pcnt, userrec *user);
+00079 void handle_qline(char **parameters, int pcnt, userrec *user);
+00080 void handle_eline(char **parameters, int pcnt, userrec *user);
+00081 void handle_server(char **parameters, int pcnt, userrec *user);
+00082 void handle_loadmodule(char **parameters, int pcnt, userrec *user);
+00083 void handle_unloadmodule(char **parameters, int pcnt, userrec *user);
+00084 void handle_commands(char **parameters, int pcnt, userrec *user);
+00085 
+00088 bool is_uline(const char* server);
+00089 
+00092 long duration(const char* str);
+00093 
+00094 #endif
+

Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/commands_8h.html b/docs/module-doc/commands_8h.html index 4b0bab91c..191152837 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -1,1459 +1,168 @@ - + InspIRCd: commands.h File Reference - - + + +

commands.h File Reference

#include <typeinfo>
#include <iostream>
#include <string>
#include <deque>
#include <sstream>
#include <vector>
-#include "users.h"
-#include "channels.h"
+#include "users.h"
+#include "channels.h"

-Include dependency graph for commands.h:

Include dependency graph
+Include dependency graph for commands.h:

- - + + +

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

Included by dependency graph
+This graph shows which files directly or indirectly include this file:

- +

-Go to the source code of this file. +Go to the source code of this file.
- - + + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +

Functions

void handle_join (char **parameters, int pcnt, userrec *user)

Functions

void handle_join (char **parameters, int pcnt, userrec *user)
 These are the handlers for user commands.

void handle_part (char **parameters, int pcnt, userrec *user)
 These are the handlers for user commands.
void handle_part (char **parameters, int pcnt, userrec *user)
void handle_kick (char **parameters, int pcnt, userrec *user)
void handle_kick (char **parameters, int pcnt, userrec *user)
void handle_die (char **parameters, int pcnt, userrec *user)
void handle_die (char **parameters, int pcnt, userrec *user)
void handle_restart (char **parameters, int pcnt, userrec *user)
void handle_restart (char **parameters, int pcnt, userrec *user)
void handle_kill (char **parameters, int pcnt, userrec *user)
void handle_kill (char **parameters, int pcnt, userrec *user)
void handle_summon (char **parameters, int pcnt, userrec *user)
void handle_summon (char **parameters, int pcnt, userrec *user)
void handle_users (char **parameters, int pcnt, userrec *user)
void handle_users (char **parameters, int pcnt, userrec *user)
void handle_pass (char **parameters, int pcnt, userrec *user)
void handle_pass (char **parameters, int pcnt, userrec *user)
void handle_invite (char **parameters, int pcnt, userrec *user)
void handle_invite (char **parameters, int pcnt, userrec *user)
void handle_topic (char **parameters, int pcnt, userrec *user)
void handle_topic (char **parameters, int pcnt, userrec *user)
void handle_names (char **parameters, int pcnt, userrec *user)
void handle_names (char **parameters, int pcnt, userrec *user)
void handle_privmsg (char **parameters, int pcnt, userrec *user)
void handle_privmsg (char **parameters, int pcnt, userrec *user)
void handle_notice (char **parameters, int pcnt, userrec *user)
void handle_notice (char **parameters, int pcnt, userrec *user)
void handle_info (char **parameters, int pcnt, userrec *user)
void handle_info (char **parameters, int pcnt, userrec *user)
void handle_time (char **parameters, int pcnt, userrec *user)
void handle_time (char **parameters, int pcnt, userrec *user)
void handle_whois (char **parameters, int pcnt, userrec *user)
void handle_whois (char **parameters, int pcnt, userrec *user)
void handle_quit (char **parameters, int pcnt, userrec *user)
void handle_quit (char **parameters, int pcnt, userrec *user)
void handle_who (char **parameters, int pcnt, userrec *user)
void handle_who (char **parameters, int pcnt, userrec *user)
void handle_wallops (char **parameters, int pcnt, userrec *user)
void handle_wallops (char **parameters, int pcnt, userrec *user)
void handle_list (char **parameters, int pcnt, userrec *user)
void handle_list (char **parameters, int pcnt, userrec *user)
void handle_rehash (char **parameters, int pcnt, userrec *user)
void handle_rehash (char **parameters, int pcnt, userrec *user)
void handle_lusers (char **parameters, int pcnt, userrec *user)
void handle_lusers (char **parameters, int pcnt, userrec *user)
void handle_admin (char **parameters, int pcnt, userrec *user)
void handle_admin (char **parameters, int pcnt, userrec *user)
void handle_ping (char **parameters, int pcnt, userrec *user)
void handle_ping (char **parameters, int pcnt, userrec *user)
void handle_pong (char **parameters, int pcnt, userrec *user)
void handle_pong (char **parameters, int pcnt, userrec *user)
void handle_motd (char **parameters, int pcnt, userrec *user)
void handle_motd (char **parameters, int pcnt, userrec *user)
void handle_rules (char **parameters, int pcnt, userrec *user)
void handle_rules (char **parameters, int pcnt, userrec *user)
void handle_user (char **parameters, int pcnt, userrec *user)
void handle_user (char **parameters, int pcnt, userrec *user)
void handle_userhost (char **parameters, int pcnt, userrec *user)
void handle_userhost (char **parameters, int pcnt, userrec *user)
void handle_ison (char **parameters, int pcnt, userrec *user)
void handle_ison (char **parameters, int pcnt, userrec *user)
void handle_away (char **parameters, int pcnt, userrec *user)
void handle_away (char **parameters, int pcnt, userrec *user)
void handle_whowas (char **parameters, int pcnt, userrec *user)
void handle_whowas (char **parameters, int pcnt, userrec *user)
void handle_trace (char **parameters, int pcnt, userrec *user)
void handle_trace (char **parameters, int pcnt, userrec *user)
void handle_modules (char **parameters, int pcnt, userrec *user)
void handle_modules (char **parameters, int pcnt, userrec *user)
void handle_stats (char **parameters, int pcnt, userrec *user)
void handle_stats (char **parameters, int pcnt, userrec *user)
void handle_connect (char **parameters, int pcnt, userrec *user)
void handle_connect (char **parameters, int pcnt, userrec *user)
void handle_squit (char **parameters, int pcnt, userrec *user)
void handle_squit (char **parameters, int pcnt, userrec *user)
void handle_links (char **parameters, int pcnt, userrec *user)
void handle_links (char **parameters, int pcnt, userrec *user)
void handle_map (char **parameters, int pcnt, userrec *user)
void handle_map (char **parameters, int pcnt, userrec *user)
void handle_oper (char **parameters, int pcnt, userrec *user)
void handle_oper (char **parameters, int pcnt, userrec *user)
void handle_nick (char **parameters, int pcnt, userrec *user)
void handle_nick (char **parameters, int pcnt, userrec *user)
void handle_kline (char **parameters, int pcnt, userrec *user)
void handle_kline (char **parameters, int pcnt, userrec *user)
void handle_gline (char **parameters, int pcnt, userrec *user)
void handle_gline (char **parameters, int pcnt, userrec *user)
void handle_zline (char **parameters, int pcnt, userrec *user)
void handle_zline (char **parameters, int pcnt, userrec *user)
void handle_qline (char **parameters, int pcnt, userrec *user)
void handle_qline (char **parameters, int pcnt, userrec *user)
void handle_eline (char **parameters, int pcnt, userrec *user)
void handle_eline (char **parameters, int pcnt, userrec *user)
void handle_server (char **parameters, int pcnt, userrec *user)
void handle_server (char **parameters, int pcnt, userrec *user)
void handle_loadmodule (char **parameters, int pcnt, userrec *user)
void handle_loadmodule (char **parameters, int pcnt, userrec *user)
void handle_unloadmodule (char **parameters, int pcnt, userrec *user)
void handle_unloadmodule (char **parameters, int pcnt, userrec *user)
void handle_commands (char **parameters, int pcnt, userrec *user)
void handle_commands (char **parameters, int pcnt, userrec *user)
void handle_link_packet (char *tcp_msg, char *tcp_host, serverrec *serv, char *tcp_sum)
bool is_uline (const char *server)
 Special functions for processing server to server traffic.

void process_restricted_commands (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *ipaddr, int port, char *tcp_sum)
 Functions for u:lined servers.
long duration (const char *str)
void handle_amp (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
 These are the handlers for server commands (tokens).

void handle_dollar (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_J (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_R (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_plus (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_b (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_a (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_F (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_N (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_AT (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_k (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_n (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_Q (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_K (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_L (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_m (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_M (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_T (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_t (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_i (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_P (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
void handle_V (char token, char *params, serverrec *source, serverrec *reply, char *tcp_host, char *tcp_sum)
bool is_uline (const char *server)
 Functions for u:lined servers.

long duration (const char *str)
 Other useful functions.

void ConnectServer (char *servermask, userrec *user)
 Server connect creation.

 Other useful functions.


Function Documentation

-

- - - - -
- - - - - - - - - - - - - - - - - - - -
void ConnectServer char *  servermask,
userrec user
-
- - - - - -
-   - - -

-Server connect creation. -

-

-

- +

+

- -
- + - - - - - -
long duration long duration const char *  str  ) 
-
- - - - - -
-   - - -

-Other useful functions. -

- -

-Referenced by Server::AddELine(), Server::AddGLine(), Server::AddKLine(), Server::AddQLine(), Server::AddZLine(), and Server::CalcDuration().

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_a char  token,
char *  params,
serverrec source,
serverrec reply,
char *  tcp_host,
char *  tcp_sum
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_admin char **  parameters,
int  pcnt,
userrec user
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_amp char  token,
char *  params,
serverrec source,
serverrec reply,
char *  tcp_host,
char *  tcp_sum
-
- - - - - -
-   - - -

-These are the handlers for server commands (tokens). -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_AT char  token,
char *  params,
serverrec source,
serverrec reply,
char *  tcp_host,
char *  tcp_sum
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_away char **  parameters,
int  pcnt,
userrec user
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_b char  token,
char *  params,
serverrec source,
serverrec reply,
char *  tcp_host,
char *  tcp_sum
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_commands char **  parameters,
int  pcnt,
userrec user
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_connect char **  parameters,
int  pcnt,
userrec user
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_die char **  parameters,
int  pcnt,
userrec user
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_dollar char  token,
char *  params,
serverrec source,
serverrec reply,
char *  tcp_host,
char *  tcp_sum
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_eline char **  parameters,
int  pcnt,
userrec user
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_F char  token,
char *  params,
serverrec source,
serverrec reply,
char *  tcp_host,
char *  tcp_sum
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_gline char **  parameters,
int  pcnt,
userrec user
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_i char  token,
char *  params,
serverrec source,
serverrec reply,
char *  tcp_host,
char *  tcp_sum
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_info char **  parameters,
int  pcnt,
userrec user
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_invite char **  parameters,
int  pcnt,
userrec user
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_ison char **  parameters,
int  pcnt,
userrec user
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_J char  token,
char *  params,
serverrec source,
serverrec reply,
char *  tcp_host,
char *  tcp_sum
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_join char **  parameters,
int  pcnt,
userrec user
-
- - - - - -
-   - - -

-These are the handlers for user commands. -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_K char  token,
char *  params,
serverrec source,
serverrec reply,
char *  tcp_host,
char *  tcp_sum
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_k char  token,
char *  params,
serverrec source,
serverrec reply,
char *  tcp_host,
char *  tcp_sum
-
- - - - - -
-   - - -

-

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
void handle_kick char **  parameters,
int  pcnt,
userrec user
-
- - - - - -
-   - - -

-

-

- - -
- - - - - - - - - - - - - - - - - - - - - - - + + + -
void handle_kill char **  parameters,
int  pcnt,
userrec user
str  ) 
- +
+Other useful functions. +

+ +

+Referenced by Server::CalcDuration().

  @@ -1461,43 +170,46 @@ These are the handlers for user commands.

-

-

- +

+

- + - - + + - - + + - + -
void handle_kline void handle_admin char **  parameters,
int  pcnt,
userrec user
- +
  @@ -1508,58 +220,39 @@ These are the handlers for user commands.
-

- +

+

- + - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + - - - - + + + + - + -
void handle_L void handle_away char  token,
char *  params,
serverrec source,
serverrec reply, char **  parameters,
char *  tcp_host, int  pcnt,
char *  tcp_sumuserrec user
- +
  @@ -1570,92 +263,82 @@ These are the handlers for user commands.
-

- +

+

- + - - - - - - - - + + - - - - + + + + - - - - + + + + - + -
void handle_link_packet void handle_commands char *  tcp_msg,
char *  tcp_host, char **  parameters,
serverrec serv, int  pcnt,
char *  tcp_sumuserrec user
- +
  -

-Special functions for processing server to server traffic.

-

- +

+

- + - - + + - - + + - + -
void handle_links void handle_connect char **  parameters,
int  pcnt,
userrec user
- +
  @@ -1666,40 +349,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_list void handle_die char **  parameters,
int  pcnt,
userrec user
- +
  @@ -1710,40 +392,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_loadmodule void handle_eline char **  parameters,
int  pcnt,
userrec user
- +
  @@ -1754,40 +435,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_lusers void handle_gline char **  parameters,
int  pcnt,
userrec user
- +
  @@ -1798,58 +478,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + - - - - + + + + - + -
void handle_M void handle_info char  token,
char *  params,
serverrec source,
serverrec reply, char **  parameters,
char *  tcp_host, int  pcnt,
char *  tcp_sumuserrec user
- +
  @@ -1860,58 +521,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + - - - - + + + + - + -
void handle_m void handle_invite char  token,
char *  params,
serverrec source,
serverrec reply, char **  parameters,
char *  tcp_host, int  pcnt,
char *  tcp_sumuserrec user
- +
  @@ -1922,40 +564,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_map void handle_ison char **  parameters,
int  pcnt,
userrec user
- +
  @@ -1966,84 +607,84 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_modules void handle_join char **  parameters,
int  pcnt,
userrec user
- +
  +

+These are the handlers for user commands.

-

- +

+

- + - - + + - - + + - + -
void handle_motd void handle_kick char **  parameters,
int  pcnt,
userrec user
- +
  @@ -2054,58 +695,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + - - - - + + + + - + -
void handle_n void handle_kill char  token,
char *  params,
serverrec source,
serverrec reply, char **  parameters,
char *  tcp_host, int  pcnt,
char *  tcp_sumuserrec user
- +
  @@ -2116,58 +738,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + - - - - + + + + - + -
void handle_N void handle_kline char  token,
char *  params,
serverrec source,
serverrec reply, char **  parameters,
char *  tcp_host, int  pcnt,
char *  tcp_sumuserrec user
- +
  @@ -2178,40 +781,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_names void handle_links char **  parameters,
int  pcnt,
userrec user
- +
  @@ -2222,40 +824,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_nick void handle_list char **  parameters,
int  pcnt,
userrec user
- +
  @@ -2266,40 +867,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_notice void handle_loadmodule char **  parameters,
int  pcnt,
userrec user
- +
  @@ -2310,40 +910,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_oper void handle_lusers char **  parameters,
int  pcnt,
userrec user
- +
  @@ -2354,58 +953,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + - - - - + + + + - + -
void handle_P void handle_map char  token,
char *  params,
serverrec source,
serverrec reply, char **  parameters,
char *  tcp_host, int  pcnt,
char *  tcp_sumuserrec user
- +
  @@ -2416,40 +996,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_part void handle_modules char **  parameters,
int  pcnt,
userrec user
- +
  @@ -2460,40 +1039,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_pass void handle_motd char **  parameters,
int  pcnt,
userrec user
- +
  @@ -2504,40 +1082,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_ping void handle_names char **  parameters,
int  pcnt,
userrec user
- +
  @@ -2548,58 +1125,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + - - - - + + + + - + -
void handle_plus void handle_nick char  token,
char *  params,
serverrec source,
serverrec reply, char **  parameters,
char *  tcp_host, int  pcnt,
char *  tcp_sumuserrec user
- +
  @@ -2610,40 +1168,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_pong void handle_notice char **  parameters,
int  pcnt,
userrec user
- +
  @@ -2654,40 +1211,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_privmsg void handle_oper char **  parameters,
int  pcnt,
userrec user
- +
  @@ -2698,58 +1254,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + - - - - + + + + - + -
void handle_Q void handle_part char  token,
char *  params,
serverrec source,
serverrec reply, char **  parameters,
char *  tcp_host, int  pcnt,
char *  tcp_sumuserrec user
- +
  @@ -2760,40 +1297,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_qline void handle_pass char **  parameters,
int  pcnt,
userrec user
- +
  @@ -2804,40 +1340,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_quit void handle_ping char **  parameters,
int  pcnt,
userrec user
- +
  @@ -2848,58 +1383,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + - - - - + + + + - + -
void handle_R void handle_pong char  token,
char *  params,
serverrec source,
serverrec reply, char **  parameters,
char *  tcp_host, int  pcnt,
char *  tcp_sumuserrec user
- +
  @@ -2910,40 +1426,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_rehash void handle_privmsg char **  parameters,
int  pcnt,
userrec user
- +
  @@ -2954,40 +1469,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_restart void handle_qline char **  parameters,
int  pcnt,
userrec user
- +
  @@ -2998,40 +1512,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_rules void handle_quit char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3042,40 +1555,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_server void handle_rehash char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3086,40 +1598,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_squit void handle_restart char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3130,40 +1641,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_stats void handle_rules char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3174,40 +1684,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_summon void handle_server char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3218,58 +1727,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + - - - - + + + + - + -
void handle_t void handle_squit char  token,
char *  params,
serverrec source,
serverrec reply, char **  parameters,
char *  tcp_host, int  pcnt,
char *  tcp_sumuserrec user
- +
  @@ -3280,58 +1770,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + - - - - + + + + - + -
void handle_T void handle_stats char  token,
char *  params,
serverrec source,
serverrec reply, char **  parameters,
char *  tcp_host, int  pcnt,
char *  tcp_sumuserrec user
- +
  @@ -3342,40 +1813,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_time void handle_summon char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3386,40 +1856,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_topic void handle_time char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3430,40 +1899,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_trace void handle_topic char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3474,40 +1942,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_unloadmodule void handle_trace char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3518,40 +1985,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_user void handle_unloadmodule char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3562,40 +2028,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_userhost void handle_user char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3606,40 +2071,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_users void handle_userhost char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3650,58 +2114,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - - - - - - - - - - - - - - - - - - - + + - - - - + + + + - - - - + + + + - + -
void handle_V void handle_users char  token,
char *  params,
serverrec source,
serverrec reply, char **  parameters,
char *  tcp_host, int  pcnt,
char *  tcp_sumuserrec user
- +
  @@ -3712,40 +2157,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_wallops void handle_wallops char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3756,40 +2200,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_who void handle_who char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3800,40 +2243,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_whois void handle_whois char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3844,40 +2286,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_whowas void handle_whowas char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3888,40 +2329,39 @@ Special functions for processing server to server traffic.
-

- +

+

- + - - + + - - + + - + -
void handle_zline void handle_zline char **  parameters,
int  pcnt,
userrec user
- +
  @@ -3932,25 +2372,24 @@ Special functions for processing server to server traffic.
-

- +

+

- + -
bool is_uline bool is_uline const char *  server  ) 
- +
- -
  @@ -3962,86 +2401,11 @@ Functions for u:lined servers.

-Referenced by Server::IsUlined().

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void process_restricted_commands char  token,
char *  params,
serverrec source,
serverrec reply,
char *  tcp_host,
char *  ipaddr,
int  port,
char *  tcp_sum
-
- - - - +Referenced by Server::IsUlined().
-   - - -

-

-


Generated on Mon May 30 05:15:41 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/commands_8h__dep__incl.gif b/docs/module-doc/commands_8h__dep__incl.gif index 0c7886f3b..f3081d264 100644 Binary files a/docs/module-doc/commands_8h__dep__incl.gif and b/docs/module-doc/commands_8h__dep__incl.gif differ diff --git a/docs/module-doc/commands_8h__dep__incl.map b/docs/module-doc/commands_8h__dep__incl.map new file mode 100644 index 000000000..4ed4b1367 --- /dev/null +++ b/docs/module-doc/commands_8h__dep__incl.map @@ -0,0 +1,2 @@ +base referer +rect $modules_8cpp-source.html 154,7 252,33 diff --git a/docs/module-doc/commands_8h__dep__incl.md5 b/docs/module-doc/commands_8h__dep__incl.md5 new file mode 100644 index 000000000..f0e06b5f7 --- /dev/null +++ b/docs/module-doc/commands_8h__dep__incl.md5 @@ -0,0 +1 @@ +cf68098e63b4748ba0865f2bc30af732 \ No newline at end of file diff --git a/docs/module-doc/commands_8h__incl.gif b/docs/module-doc/commands_8h__incl.gif index f0d3931d7..195c5a2af 100644 Binary files a/docs/module-doc/commands_8h__incl.gif and b/docs/module-doc/commands_8h__incl.gif differ diff --git a/docs/module-doc/commands_8h__incl.map b/docs/module-doc/commands_8h__incl.map new file mode 100644 index 000000000..c90c37759 --- /dev/null +++ b/docs/module-doc/commands_8h__incl.map @@ -0,0 +1,4 @@ +base referer +rect $users_8h-source.html 159,260 223,287 +rect $channels_8h-source.html 283,210 368,236 +rect $connection_8h-source.html 276,362 375,388 diff --git a/docs/module-doc/commands_8h__incl.md5 b/docs/module-doc/commands_8h__incl.md5 new file mode 100644 index 000000000..451a89aa0 --- /dev/null +++ b/docs/module-doc/commands_8h__incl.md5 @@ -0,0 +1 @@ +c2b443ef5e1ee3a3ee4ac49b793d39a5 \ No newline at end of file diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index 5cdf3e511..8570e44d5 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -1,186 +1,89 @@ - + InspIRCd: connection.h Source File - - -

connection.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 #include "inspircd_config.h"
-00018 #include "base.h"
-00019 #include <string>
-00020 #include <map>
-00021 #include <sys/types.h>
-00022 #include <sys/socket.h>
-00023 #include <netdb.h>
-00024 #include <netinet/in.h>
-00025 #include <unistd.h>
-00026 #include <errno.h>
-00027 #include <time.h>
-00028 #include <vector>
-00029 #include <deque>
-00030 #include <sstream>
-00031 
-00032 #ifndef __CONNECTION_H__
-00033 #define __CONNECTION_H__
-00034 
-00035 #define STATE_DISCONNECTED      0
-00036 #define STATE_CONNECTED         1
-00037 #define STATE_SYNC              2
-00038 #define STATE_NOAUTH_INBOUND    3
-00039 #define STATE_NOAUTH_OUTBOUND   4
-00040 #define STATE_SERVICES          5
-00041 
-00042 std::string CreateSum();
-00043 
-00056 class ircd_connector : public Extensible
-00057 {
-00058  private:
-00061         sockaddr_in addr;
-00062         
-00065         int fd;
-00066         
-00069         std::string servername;
-00070         
-00073         std::string description;
-00074         
-00078         char state;
-00079         
-00082         bool SetHostAddress(char* host, int port);
-00083 
-00086         std::string version;
-00087 
-00090         std::string sendq;
-00091 
-00094         std::string WriteError;
-00095 
-00098         time_t nextping;
-00099 
-00102         bool replied;
-00103 
-00104  public:
-00105 
-00110         std::string ircdbuffer;
-00111 
-00112  
-00117         char host[MAXBUF];
-00118 
-00123         int port;
-00124         
-00129         std::vector<std::string> routes;
-00130 
-00133         ircd_connector();       
-00134 
-00137         bool MakeOutboundConnection(char* newhost, int newport);
-00138         
-00141         std::string GetServerName();
-00142         
-00146         void SetServerName(std::string serv);
-00147         
-00151         int GetDescriptor();
-00152         
-00156         void SetDescriptor(int fd);
-00157         
-00161         int GetState();
-00162         
-00166         void SetState(int state);
-00167         
-00171         char* GetServerIP();
-00172         
-00176         std::string GetDescription();
-00177         
-00181         void SetDescription(std::string desc);
-00182         
-00190         int GetServerPort();
-00191         
-00195         void SetServerPort(int p);
-00196         
-00202         bool SetHostAndPort(char* newhost, int newport);
-00203         
-00207         void CloseConnection();
-00208 
-00217         bool AddBuffer(std::string a);
-00218 
-00225         bool BufferIsComplete();
-00226 
-00229         void ClearBuffer();
-00230 
-00237         std::string GetBuffer();
-00238 
-00242         void SetVersionString(std::string newversion);
-00243 
-00249         std::string GetVersionString();
-00250 
-00258         bool AddWriteBuf(std::string data);
-00259 
-00265         bool FlushWriteBuf();
-00266 
-00270         void SetWriteError(std::string error);
-00271 
-00275         std::string GetWriteError();
-00276 
-00280         bool HasBufferedOutput();
-00281 
-00286         bool CheckPing();
-00287 
-00290         void ResetPing();
-00291 };
-00292 
-00293 
-00296 class connection : public Extensible
-00297 {
-00298  public:
-00301         int fd;
-00302         
-00305         char host[160];
-00306         
-00309         char ip[16];
-00310         
-00313         int bytes_in;
-00314 
-00317         int bytes_out;
-00318 
-00321         int cmds_in;
-00322 
-00325         int cmds_out;
-00326 
-00329         bool haspassed;
-00330 
-00335         int port;
-00336         
-00339         char registered;
-00340         
-00343         time_t lastping;
-00344         
-00347         time_t signon;
-00348         
-00351         time_t idle_lastmsg;
-00352         
-00355         time_t nping;
-00356         
-00359         connection();
-00360 };
-00361 
-00362 
-00363 #endif
-

Generated on Mon May 30 05:15:19 2005 for InspIRCd by + + + +

connection.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 #include "inspircd_config.h"
+00018 #include "base.h"
+00019 #include <string>
+00020 #include <map>
+00021 #include <sys/types.h>
+00022 #include <sys/socket.h>
+00023 #include <netdb.h>
+00024 #include <netinet/in.h>
+00025 #include <unistd.h>
+00026 #include <errno.h>
+00027 #include <time.h>
+00028 #include <vector>
+00029 #include <deque>
+00030 #include <sstream>
+00031 
+00032 #ifndef __CONNECTION_H__
+00033 #define __CONNECTION_H__
+00034 
+00037 class connection : public Extensible
+00038 {
+00039  public:
+00042         int fd;
+00043         
+00046         char host[160];
+00047         
+00050         char ip[16];
+00051         
+00054         int bytes_in;
+00055 
+00058         int bytes_out;
+00059 
+00062         int cmds_in;
+00063 
+00066         int cmds_out;
+00067 
+00070         bool haspassed;
+00071 
+00076         int port;
+00077         
+00080         char registered;
+00081         
+00084         time_t lastping;
+00085         
+00088         time_t signon;
+00089         
+00092         time_t idle_lastmsg;
+00093         
+00096         time_t nping;
+00097         
+00100         connection()
+00101         {
+00102                 this->fd = -1;
+00103         }
+00104 };
+00105 
+00106 
+00107 #endif
+00108 
+00109 
+

Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index e1be7b23c..302c0902a 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -1,12 +1,14 @@ - + InspIRCd: connection.h File Reference - - -

connection.h File Reference

#include "inspircd_config.h"
-#include "base.h"
+ + + +

connection.h File Reference

#include "inspircd_config.h"
+#include "base.h"
#include <string>
#include <map>
#include <sys/types.h>
@@ -21,231 +23,34 @@ #include <sstream>

-Include dependency graph for connection.h:

Include dependency graph
+Include dependency graph for connection.h:

- +

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

Included by dependency graph
+This graph shows which files directly or indirectly include this file:

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

-Go to the source code of this file. +Go to the source code of this file.
- - + + - - - - - - - - - - - - - - - - - - - - -

Compounds

class  connection

Classes

class  connection
 Please note: classes serverrec and userrec both inherit from class connection. More...

class  ircd_connector
 Each connection has one or more of these each represents ONE outbound connection to another ircd so each inbound has multiple outbounds. More...


Defines

#define STATE_DISCONNECTED   0
#define STATE_CONNECTED   1
#define STATE_SYNC   2
#define STATE_NOAUTH_INBOUND   3
#define STATE_NOAUTH_OUTBOUND   4
#define STATE_SERVICES   5

Functions

std::string CreateSum ()
-


Define Documentation

-

- - - - -
- - -
#define STATE_CONNECTED   1 -
-
- - - - - -
-   - - -

- -

-Definition at line 36 of file connection.h.

-

- - - - -
- - -
#define STATE_DISCONNECTED   0 -
-
- - - - - -
-   - - -

- -

-Definition at line 35 of file connection.h. -

-Referenced by serverrec::BeginLink(), serverrec::FlushWriteBuffers(), IsRoutable(), serverrec::MeshCookie(), serverrec::RecvPacket(), and serverrec::SendPacket().

-

- - - - -
- - -
#define STATE_NOAUTH_INBOUND   3 -
-
- - - - - -
-   - - -

- -

-Definition at line 38 of file connection.h. -

-Referenced by serverrec::AddIncoming(), and serverrec::FlushWriteBuffers().

-

- - - - -
- - -
#define STATE_NOAUTH_OUTBOUND   4 -
-
- - - - - -
-   - - -

- -

-Definition at line 39 of file connection.h. -

-Referenced by serverrec::BeginLink(), serverrec::FlushWriteBuffers(), and serverrec::MeshCookie().

-

- - - - -
- - -
#define STATE_SERVICES   5 -
-
- - - - - -
-   - - -

- -

-Definition at line 40 of file connection.h.

-

- - - - -
- - -
#define STATE_SYNC   2 -
-
- - - - - -
-   - - -

- -

-Definition at line 37 of file connection.h.

-


Function Documentation

-

- - - - -
- - - - - - - - - -
std::string CreateSum  ) 
-
- - - - - +
-   - - -

-

 Please note: classes serverrec and userrec both inherit from class connection. More...
-


Generated on Mon May 30 05:15:44 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+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 2df9e0a05..b424df146 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 new file mode 100644 index 000000000..03b0bcf03 --- /dev/null +++ b/docs/module-doc/connection_8h__dep__incl.map @@ -0,0 +1,9 @@ +base referer +rect $users_8cpp-source.html 278,7 358,33 +rect $users_8h-source.html 155,133 219,160 +rect $channels_8cpp-source.html 416,133 515,160 +rect $modules_8cpp-source.html 416,209 515,236 +rect $commands_8h-source.html 268,311 367,337 +rect $message_8h-source.html 275,108 360,135 +rect $mode_8h-source.html 284,159 351,185 +rect $xline_8h-source.html 287,209 348,236 diff --git a/docs/module-doc/connection_8h__dep__incl.md5 b/docs/module-doc/connection_8h__dep__incl.md5 new file mode 100644 index 000000000..c1c7e633a --- /dev/null +++ b/docs/module-doc/connection_8h__dep__incl.md5 @@ -0,0 +1 @@ +c7cecb14291ff4131ebac40acf61d502 \ No newline at end of file diff --git a/docs/module-doc/connection_8h__incl.gif b/docs/module-doc/connection_8h__incl.gif index a9510a042..61336dc8b 100644 Binary files a/docs/module-doc/connection_8h__incl.gif and b/docs/module-doc/connection_8h__incl.gif differ diff --git a/docs/module-doc/connection_8h__incl.map b/docs/module-doc/connection_8h__incl.map new file mode 100644 index 000000000..18d7625a2 --- /dev/null +++ b/docs/module-doc/connection_8h__incl.map @@ -0,0 +1,2 @@ +base referer +rect $base_8h-source.html 171,108 232,135 diff --git a/docs/module-doc/connection_8h__incl.md5 b/docs/module-doc/connection_8h__incl.md5 new file mode 100644 index 000000000..be4f35580 --- /dev/null +++ b/docs/module-doc/connection_8h__incl.md5 @@ -0,0 +1 @@ +7566ac0f626ba6a537eabdae6c98a2d9 \ 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 bee8c71b5..0241f3c68 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -1,50 +1,51 @@ - + InspIRCd: ctables.h Source File - - -

ctables.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 __CTABLES_H__
-00018 #define __CTABLES_H__
-00019 
-00020 #include "inspircd_config.h"
-00021 #include "inspircd.h"
-00022 #include "base.h"
-00023 
+
+
+
+

ctables.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 __CTABLES_H__
+00018 #define __CTABLES_H__
+00019 
+00020 #include "inspircd_config.h"
+00021 #include "inspircd.h"
+00022 #include "base.h"
+00023 
 00026 class command_t : public Extensible
-00027 {
-00028  public:
-00031         char command[MAXBUF];
-00034         handlerfunc *handler_function; 
-00037         char flags_needed;
-00040         int min_params;
-00043         long use_count;
-00046         long total_bytes;
-00049         char source[MAXBUF];
-00050 };
-00051 
-00052 #endif
-00053 
-

Generated on Mon May 30 05:15:19 2005 for InspIRCd by +00027 { +00028 public: +00031 char command[MAXBUF]; +00034 handlerfunc *handler_function; +00037 char flags_needed; +00040 int min_params; +00043 long use_count; +00046 long total_bytes; +00049 char source[MAXBUF]; +00050 }; +00051 +00052 #endif +00053 +

Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815 diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index 595e4ab7b..674d3b7f9 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -1,39 +1,40 @@ - + InspIRCd: ctables.h File Reference - - -

ctables.h File Reference

#include "inspircd_config.h"
-#include "inspircd.h"
-#include "base.h"
+ + + +

ctables.h File Reference

#include "inspircd_config.h"
+#include "inspircd.h"
+#include "base.h"

-Include dependency graph for ctables.h:

Include dependency graph
+Include dependency graph for ctables.h:

- +

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

Included by dependency graph
+This graph shows which files directly or indirectly include this file:

- - - + + +

-Go to the source code of this file. +Go to the source code of this file.
- - + + - +

Compounds

class  command_t

Classes

class  command_t
 A structure that defines a command. More...

 A structure that defines a command. More...
-


Generated on Mon May 30 05:15:46 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+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 c422b46a7..f94b83651 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 new file mode 100644 index 000000000..ed00ae9d1 --- /dev/null +++ b/docs/module-doc/ctables_8h__dep__incl.map @@ -0,0 +1,4 @@ +base referer +rect $channels_8cpp-source.html 267,32 365,59 +rect $modules_8cpp-source.html 267,95 365,121 +rect $modules_8h-source.html 133,57 216,84 diff --git a/docs/module-doc/ctables_8h__dep__incl.md5 b/docs/module-doc/ctables_8h__dep__incl.md5 new file mode 100644 index 000000000..7b340a242 --- /dev/null +++ b/docs/module-doc/ctables_8h__dep__incl.md5 @@ -0,0 +1 @@ +80b5bb648ec2e7f34f52355a033ea5d8 \ No newline at end of file diff --git a/docs/module-doc/ctables_8h__incl.gif b/docs/module-doc/ctables_8h__incl.gif index 071f19deb..1d6aea743 100644 Binary files a/docs/module-doc/ctables_8h__incl.gif and b/docs/module-doc/ctables_8h__incl.gif differ diff --git a/docs/module-doc/ctables_8h__incl.map b/docs/module-doc/ctables_8h__incl.map new file mode 100644 index 000000000..bfaa35cac --- /dev/null +++ b/docs/module-doc/ctables_8h__incl.map @@ -0,0 +1,2 @@ +base referer +rect $base_8h-source.html 141,108 203,135 diff --git a/docs/module-doc/ctables_8h__incl.md5 b/docs/module-doc/ctables_8h__incl.md5 new file mode 100644 index 000000000..21bcd8b04 --- /dev/null +++ b/docs/module-doc/ctables_8h__incl.md5 @@ -0,0 +1 @@ +ce4287d2f1f82e62ab357a4a90b21185 \ No newline at end of file diff --git a/docs/module-doc/dir_000000.html b/docs/module-doc/dir_000000.html new file mode 100644 index 000000000..433d50e93 --- /dev/null +++ b/docs/module-doc/dir_000000.html @@ -0,0 +1,27 @@ + + +InspIRCd: /home/ Directory Reference + + + + + +

home Directory Reference

+

+

/home/
+ + + + + + + + + +

Directories

directory  brain
+
Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/dir_000000_dep.gif b/docs/module-doc/dir_000000_dep.gif new file mode 100644 index 000000000..f2c3bcd44 Binary files /dev/null and b/docs/module-doc/dir_000000_dep.gif differ diff --git a/docs/module-doc/dir_000000_dep.map b/docs/module-doc/dir_000000_dep.map new file mode 100644 index 000000000..a77bf1144 --- /dev/null +++ b/docs/module-doc/dir_000000_dep.map @@ -0,0 +1,3 @@ +base referer +rect dir_000001.html 28,39 100,87 +rect dir_000000.html 17,17 207,97 diff --git a/docs/module-doc/dir_000001.html b/docs/module-doc/dir_000001.html new file mode 100644 index 000000000..e50eadacb --- /dev/null +++ b/docs/module-doc/dir_000001.html @@ -0,0 +1,28 @@ + + +InspIRCd: /home/brain/ Directory Reference + + + + + +

brain Directory Reference

+

+

/home/brain/
+ + + + + + + + + + +

Directories

directory  inspircd-cvs
+
Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/dir_000001_dep.gif b/docs/module-doc/dir_000001_dep.gif new file mode 100644 index 000000000..a2748fee9 Binary files /dev/null and b/docs/module-doc/dir_000001_dep.gif differ diff --git a/docs/module-doc/dir_000001_dep.map b/docs/module-doc/dir_000001_dep.map new file mode 100644 index 000000000..88e9d2230 --- /dev/null +++ b/docs/module-doc/dir_000001_dep.map @@ -0,0 +1,4 @@ +base referer +rect dir_000002.html 39,76 132,124 +rect dir_000001.html 28,55 239,135 +rect dir_000000.html 18,17 250,145 diff --git a/docs/module-doc/dir_000002.html b/docs/module-doc/dir_000002.html new file mode 100644 index 000000000..09debb034 --- /dev/null +++ b/docs/module-doc/dir_000002.html @@ -0,0 +1,28 @@ + + +InspIRCd: /home/brain/inspircd-cvs/ Directory Reference + + + + + +

inspircd-cvs Directory Reference

+

+

/home/brain/inspircd-cvs/
+ + + + + + + + + + +

Directories

directory  inspircd
+
Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/dir_000002_dep.gif b/docs/module-doc/dir_000002_dep.gif new file mode 100644 index 000000000..fb9a6f64a Binary files /dev/null and b/docs/module-doc/dir_000002_dep.gif differ diff --git a/docs/module-doc/dir_000002_dep.map b/docs/module-doc/dir_000002_dep.map new file mode 100644 index 000000000..43c7f8647 --- /dev/null +++ b/docs/module-doc/dir_000002_dep.map @@ -0,0 +1,4 @@ +base referer +rect dir_000003.html 39,76 111,124 +rect dir_000002.html 28,55 239,135 +rect dir_000001.html 18,17 250,145 diff --git a/docs/module-doc/dir_000003.html b/docs/module-doc/dir_000003.html new file mode 100644 index 000000000..caf075056 --- /dev/null +++ b/docs/module-doc/dir_000003.html @@ -0,0 +1,33 @@ + + +InspIRCd: /home/brain/inspircd-cvs/inspircd/ Directory Reference + + + + + +

inspircd Directory Reference

+

+

/home/brain/inspircd-cvs/inspircd/
+ + + + + + + + + + + + + + + +

Directories

directory  include
directory  src
+
Generated on Sun Nov 27 01:43:26 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 new file mode 100644 index 000000000..970c00d1e Binary files /dev/null and b/docs/module-doc/dir_000003_dep.gif differ diff --git a/docs/module-doc/dir_000003_dep.map b/docs/module-doc/dir_000003_dep.map new file mode 100644 index 000000000..da683e754 --- /dev/null +++ b/docs/module-doc/dir_000003_dep.map @@ -0,0 +1,7 @@ +base referer +rect dir_000004.html 39,172 111,220 +rect dir_000005.html 39,76 111,124 +rect dir_000005_000004.html 75,147 90,160 +rect dir_000005_000004.html 71,168 79,176 +rect dir_000003.html 28,55 217,231 +rect dir_000002.html 17,17 228,241 diff --git a/docs/module-doc/dir_000004.html b/docs/module-doc/dir_000004.html new file mode 100644 index 000000000..5a3041753 --- /dev/null +++ b/docs/module-doc/dir_000004.html @@ -0,0 +1,51 @@ + + +InspIRCd: /home/brain/inspircd-cvs/inspircd/include/ Directory Reference + + + + + +

include Directory Reference

+

+

/home/brain/inspircd-cvs/inspircd/include/
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Files

file  base.h [code]
file  channels.h [code]
file  commands.h [code]
file  connection.h [code]
file  ctables.h [code]
file  dns.h [code]
file  hashcomp.h [code]
file  message.h [code]
file  mode.h [code]
file  modules.h [code]
file  socket.h [code]
file  users.h [code]
file  xline.h [code]
+
Generated on Sun Nov 27 01:43:26 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/dir_000004_dep.gif b/docs/module-doc/dir_000004_dep.gif new file mode 100644 index 000000000..069d80062 Binary files /dev/null and b/docs/module-doc/dir_000004_dep.gif differ diff --git a/docs/module-doc/dir_000004_dep.map b/docs/module-doc/dir_000004_dep.map new file mode 100644 index 000000000..308579c47 --- /dev/null +++ b/docs/module-doc/dir_000004_dep.map @@ -0,0 +1,3 @@ +base referer +rect dir_000004.html 28,55 100,103 +rect dir_000003.html 17,17 111,113 diff --git a/docs/module-doc/dir_000005.html b/docs/module-doc/dir_000005.html new file mode 100644 index 000000000..24d94f27e --- /dev/null +++ b/docs/module-doc/dir_000005.html @@ -0,0 +1,36 @@ + + +InspIRCd: /home/brain/inspircd-cvs/inspircd/src/ Directory Reference + + + + + +

src Directory Reference

+

+

/home/brain/inspircd-cvs/inspircd/src/
+ + + + + + + + + + + + + + + + + + +

Files

file  channels.cpp [code]
file  modules.cpp [code]
file  socket.cpp [code]
file  users.cpp [code]
+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..65c355384 --- /dev/null +++ b/docs/module-doc/dir_000005_000004.html @@ -0,0 +1,14 @@ + + +InspIRCd: /home/brain/inspircd-cvs/inspircd/src/ -> include Relation + + + + + +

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.cppusers.h
modules.cppxline.h
socket.cppsocket.h
users.cppchannels.h
users.cppconnection.h
users.cppusers.h

Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..68bfaa13b Binary files /dev/null and b/docs/module-doc/dir_000005_dep.gif differ diff --git a/docs/module-doc/dir_000005_dep.map b/docs/module-doc/dir_000005_dep.map new file mode 100644 index 000000000..230315694 --- /dev/null +++ b/docs/module-doc/dir_000005_dep.map @@ -0,0 +1,6 @@ +base referer +rect dir_000005.html 28,55 100,103 +rect dir_000004.html 28,151 100,199 +rect dir_000005_000004.html 65,125 79,139 +rect dir_000005_000004.html 60,147 68,155 +rect dir_000003.html 17,17 111,113 diff --git a/docs/module-doc/dirs.html b/docs/module-doc/dirs.html new file mode 100644 index 000000000..4a3493811 --- /dev/null +++ b/docs/module-doc/dirs.html @@ -0,0 +1,28 @@ + + +InspIRCd: Directory Hierarchy + + + + +

InspIRCd Directories

This directory hierarchy is sorted roughly, but not completely, alphabetically: +
Generated on Sun Nov 27 01:43:27 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 345e37b57..6b7deaef2 100644 --- a/docs/module-doc/dns_8h-source.html +++ b/docs/module-doc/dns_8h-source.html @@ -1,78 +1,79 @@ - + InspIRCd: dns.h Source File - - -

dns.h

Go to the documentation of this file.
00001 /*
-00002 dns.h - dns library declarations based on firedns Copyright (C) 2002 Ian Gulliver
-00003 
-00004 This program is free software; you can redistribute it and/or modify
-00005 it under the terms of version 2 of the GNU General Public License as
-00006 published by the Free Software Foundation.
-00007 
-00008 This program is distributed in the hope that it will be useful,
-00009 but WITHOUT ANY WARRANTY; without even the implied warranty of
-00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-00011 GNU General Public License for more details.
-00012 
-00013 You should have received a copy of the GNU General Public License
-00014 along with this program; if not, write to the Free Software
-00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-00016 */
-00017 
-00018 #ifndef _DNS_H
-00019 #define _DNS_H
-00020 
-00021 #include <sys/types.h>
-00022 #include <sys/socket.h>
-00023 #include <netinet/in.h>
-00024 #include <string>
-00025 
+
+
+
+

dns.h

Go to the documentation of this file.
00001 /*
+00002 dns.h - dns library declarations based on firedns Copyright (C) 2002 Ian Gulliver
+00003 
+00004 This program is free software; you can redistribute it and/or modify
+00005 it under the terms of version 2 of the GNU General Public License as
+00006 published by the Free Software Foundation.
+00007 
+00008 This program is distributed in the hope that it will be useful,
+00009 but WITHOUT ANY WARRANTY; without even the implied warranty of
+00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+00011 GNU General Public License for more details.
+00012 
+00013 You should have received a copy of the GNU General Public License
+00014 along with this program; if not, write to the Free Software
+00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+00016 */
+00017 
+00018 #ifndef _DNS_H
+00019 #define _DNS_H
+00020 
+00021 #include <sys/types.h>
+00022 #include <sys/socket.h>
+00023 #include <netinet/in.h>
+00024 #include <string>
+00025 
 00026 struct dns_ip4list {
-00027         in_addr ip;
-00028         dns_ip4list *next;
-00029 };
-00030 
-00031 
+00027         in_addr ip;
+00028         dns_ip4list *next;
+00029 };
+00030 
+00031 
 00035 class DNS
-00036 {
-00037 private:
-00038         in_addr *binip;
-00039         char* result;
-00040         int t;
-00041         void dns_init();
-00042         unsigned int fd;
-00043         void dns_init_2(const char* dnsserver);
-00044         in_addr *dns_aton4(const char * const ipstring);
-00045         char *dns_ntoa4(const in_addr * const ip);
-00046         int dns_getip4(const char * const name);
-00047         int dns_getip4list(const char * const name);
-00048         int dns_getname4(const in_addr * const ip);
-00049         char *dns_getresult(const int fd);
-00050         in_addr *dns_aton4_s(const char * const ipstring, in_addr * const ip);
-00051         char *dns_ntoa4_s(const in_addr * const ip, char * const result);
-00052         char *dns_getresult_s(const int fd, char * const result);
-00053         in_addr *dns_aton4_r(const char * const ipstring);
-00054         char *dns_ntoa4_r(const in_addr * const ip);
-00055         char *dns_getresult_r(const int fd);
-00056 public:
-00063         DNS();
-00067         DNS(std::string dnsserver);
-00070         ~DNS();
-00075         bool ReverseLookup(std::string ip);
-00079         bool ForwardLookup(std::string host);
-00083         bool HasResult();
-00087         std::string GetResult();
-00091         int GetFD();
-00092         void SetNS(std::string dnsserver);
-00093 };
-00094 
-00095 #endif
-

Generated on Mon May 30 05:15:19 2005 for InspIRCd by +00036 { +00037 private: +00038 in_addr *binip; +00039 char* result; +00040 int t; +00041 void dns_init(); +00042 int fd; +00043 void dns_init_2(const char* dnsserver); +00044 in_addr *dns_aton4(const char * const ipstring); +00045 char *dns_ntoa4(const in_addr * const ip); +00046 int dns_getip4(const char * const name); +00047 int dns_getip4list(const char * const name); +00048 int dns_getname4(const in_addr * const ip); +00049 char *dns_getresult(const int fd); +00050 in_addr *dns_aton4_s(const char * const ipstring, in_addr * const ip); +00051 char *dns_ntoa4_s(const in_addr * const ip, char * const result); +00052 char *dns_getresult_s(const int fd, char * const result); +00053 in_addr *dns_aton4_r(const char * const ipstring); +00054 char *dns_ntoa4_r(const in_addr * const ip); +00055 char *dns_getresult_r(const int fd); +00056 public: +00063 DNS(); +00067 DNS(std::string dnsserver); +00070 ~DNS(); +00075 bool ReverseLookup(std::string ip); +00079 bool ForwardLookup(std::string host); +00083 bool HasResult(); +00087 std::string GetResult(); +00091 int GetFD(); +00092 void SetNS(std::string dnsserver); +00093 }; +00094 +00095 #endif +

Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815 diff --git a/docs/module-doc/dns_8h.html b/docs/module-doc/dns_8h.html index 5a8a4b150..6819e0dd3 100644 --- a/docs/module-doc/dns_8h.html +++ b/docs/module-doc/dns_8h.html @@ -1,31 +1,32 @@ - + InspIRCd: dns.h File Reference - - + + +

dns.h File Reference

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <string>

-Include dependency graph for dns.h:

Include dependency graph
+Include dependency graph for dns.h:

-Go to the source code of this file. +Go to the source code of this file.
- - + + - - + +

Compounds

class  DNS

Classes

struct  dns_ip4list
 The DNS class allows fast nonblocking resolution of hostnames and ip addresses. More...

struct  dns_ip4list
class  DNS
 The DNS class allows fast nonblocking resolution of hostnames and ip addresses. More...
-


Generated on Mon May 30 05:15:47 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/dns_8h__incl.gif b/docs/module-doc/dns_8h__incl.gif index dd4147faa..fbd894395 100644 Binary files a/docs/module-doc/dns_8h__incl.gif and b/docs/module-doc/dns_8h__incl.gif differ diff --git a/docs/module-doc/dns_8h__incl.map b/docs/module-doc/dns_8h__incl.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/dns_8h__incl.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/dns_8h__incl.md5 b/docs/module-doc/dns_8h__incl.md5 new file mode 100644 index 000000000..e01598ff2 --- /dev/null +++ b/docs/module-doc/dns_8h__incl.md5 @@ -0,0 +1 @@ +9ab4e88ae0e10757c336478c1ab496c5 \ No newline at end of file diff --git a/docs/module-doc/doxygen.png b/docs/module-doc/doxygen.png index 5bb475e23..936b7805c 100644 Binary files a/docs/module-doc/doxygen.png and b/docs/module-doc/doxygen.png differ diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index b3b6ba61c..09fc04473 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -1,10 +1,10 @@ - + InspIRCd: File Index - - + +

InspIRCd File List

Here is a list of all files with brief descriptions: @@ -18,15 +18,14 @@ - - + +
base.h [code]
channels.cpp [code]
mode.h [code]
modules.cpp [code]
modules.h [code]
servers.cpp [code]
servers.h [code]
socket.cpp [code]
socket.h [code]
users.cpp [code]
users.h [code]
xline.h [code]
-
Generated on Mon May 30 05:15:18 2005 for InspIRCd by +
Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 09463bc62..1dd122f9d 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -1,460 +1,37 @@ - + -InspIRCd: Compound Member Index +InspIRCd: Class Members - - + + -
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~

- +Here is a list of all class members with links to the classes they belong to:

-Here is a list of all class members with links to the classes they belong to:

- a - -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/functions_0x62.html b/docs/module-doc/functions_0x62.html new file mode 100644 index 000000000..ab2a16dbb --- /dev/null +++ b/docs/module-doc/functions_0x62.html @@ -0,0 +1,29 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- b -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x63.html b/docs/module-doc/functions_0x63.html new file mode 100644 index 000000000..ca7c29e1c --- /dev/null +++ b/docs/module-doc/functions_0x63.html @@ -0,0 +1,47 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- c -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x64.html b/docs/module-doc/functions_0x64.html new file mode 100644 index 000000000..071c3b8bc --- /dev/null +++ b/docs/module-doc/functions_0x64.html @@ -0,0 +1,48 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- d -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x65.html b/docs/module-doc/functions_0x65.html new file mode 100644 index 000000000..d540c93d3 --- /dev/null +++ b/docs/module-doc/functions_0x65.html @@ -0,0 +1,31 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- e -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x66.html b/docs/module-doc/functions_0x66.html new file mode 100644 index 000000000..0e5eef2ff --- /dev/null +++ b/docs/module-doc/functions_0x66.html @@ -0,0 +1,35 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- f -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x67.html b/docs/module-doc/functions_0x67.html new file mode 100644 index 000000000..7fd17e32d --- /dev/null +++ b/docs/module-doc/functions_0x67.html @@ -0,0 +1,44 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- g -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x68.html b/docs/module-doc/functions_0x68.html new file mode 100644 index 000000000..b7afccad2 --- /dev/null +++ b/docs/module-doc/functions_0x68.html @@ -0,0 +1,27 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- h -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x69.html b/docs/module-doc/functions_0x69.html new file mode 100644 index 000000000..0bad44b82 --- /dev/null +++ b/docs/module-doc/functions_0x69.html @@ -0,0 +1,38 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- i -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x6a.html b/docs/module-doc/functions_0x6a.html new file mode 100644 index 000000000..23e73892a --- /dev/null +++ b/docs/module-doc/functions_0x6a.html @@ -0,0 +1,21 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- j -

    +
  • JoinUserToChannel() +: Server
+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x6b.html b/docs/module-doc/functions_0x6b.html new file mode 100644 index 000000000..dbcd49338 --- /dev/null +++ b/docs/module-doc/functions_0x6b.html @@ -0,0 +1,21 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- k -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x6c.html b/docs/module-doc/functions_0x6c.html new file mode 100644 index 000000000..580c62484 --- /dev/null +++ b/docs/module-doc/functions_0x6c.html @@ -0,0 +1,28 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- l -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x6d.html b/docs/module-doc/functions_0x6d.html new file mode 100644 index 000000000..552da6fae --- /dev/null +++ b/docs/module-doc/functions_0x6d.html @@ -0,0 +1,29 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- m -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x6e.html b/docs/module-doc/functions_0x6e.html new file mode 100644 index 000000000..2e6491b87 --- /dev/null +++ b/docs/module-doc/functions_0x6e.html @@ -0,0 +1,29 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- n -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x6f.html b/docs/module-doc/functions_0x6f.html new file mode 100644 index 000000000..0826fbacf --- /dev/null +++ b/docs/module-doc/functions_0x6f.html @@ -0,0 +1,86 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- o -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x70.html b/docs/module-doc/functions_0x70.html new file mode 100644 index 000000000..c3d5b19e8 --- /dev/null +++ b/docs/module-doc/functions_0x70.html @@ -0,0 +1,32 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- p -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x71.html b/docs/module-doc/functions_0x71.html new file mode 100644 index 000000000..d5388a7f5 --- /dev/null +++ b/docs/module-doc/functions_0x71.html @@ -0,0 +1,21 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- q -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x72.html b/docs/module-doc/functions_0x72.html new file mode 100644 index 000000000..e8fe68c40 --- /dev/null +++ b/docs/module-doc/functions_0x72.html @@ -0,0 +1,37 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- r -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x73.html b/docs/module-doc/functions_0x73.html new file mode 100644 index 000000000..366b74dcc --- /dev/null +++ b/docs/module-doc/functions_0x73.html @@ -0,0 +1,48 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- s -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x74.html b/docs/module-doc/functions_0x74.html new file mode 100644 index 000000000..81e4483db --- /dev/null +++ b/docs/module-doc/functions_0x74.html @@ -0,0 +1,28 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- t -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x75.html b/docs/module-doc/functions_0x75.html new file mode 100644 index 000000000..1d65fb77c --- /dev/null +++ b/docs/module-doc/functions_0x75.html @@ -0,0 +1,26 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- u -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x76.html b/docs/module-doc/functions_0x76.html new file mode 100644 index 000000000..87321f331 --- /dev/null +++ b/docs/module-doc/functions_0x76.html @@ -0,0 +1,22 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- v -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x77.html b/docs/module-doc/functions_0x77.html new file mode 100644 index 000000000..2c7265b11 --- /dev/null +++ b/docs/module-doc/functions_0x77.html @@ -0,0 +1,22 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- w -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_0x7e.html b/docs/module-doc/functions_0x7e.html new file mode 100644 index 000000000..26f7b4e9f --- /dev/null +++ b/docs/module-doc/functions_0x7e.html @@ -0,0 +1,33 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | ~
+ +

+Here is a list of all class members with links to the classes they belong to: +

+

- ~ -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func.html b/docs/module-doc/functions_func.html index e50d53891..88e17c2e6 100644 --- a/docs/module-doc/functions_func.html +++ b/docs/module-doc/functions_func.html @@ -1,338 +1,33 @@ - + -InspIRCd: Compound Member Index +InspIRCd: Class Members - Functions - - + + -
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | t | u | v | ~
+
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~

-

- a - -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/functions_func_0x62.html b/docs/module-doc/functions_func_0x62.html new file mode 100644 index 000000000..19e45c200 --- /dev/null +++ b/docs/module-doc/functions_func_0x62.html @@ -0,0 +1,22 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- b -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x63.html b/docs/module-doc/functions_func_0x63.html new file mode 100644 index 000000000..d547274d7 --- /dev/null +++ b/docs/module-doc/functions_func_0x63.html @@ -0,0 +1,38 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- c -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x64.html b/docs/module-doc/functions_func_0x64.html new file mode 100644 index 000000000..af6d79643 --- /dev/null +++ b/docs/module-doc/functions_func_0x64.html @@ -0,0 +1,43 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- d -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x65.html b/docs/module-doc/functions_func_0x65.html new file mode 100644 index 000000000..121adfbae --- /dev/null +++ b/docs/module-doc/functions_func_0x65.html @@ -0,0 +1,27 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- e -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x66.html b/docs/module-doc/functions_func_0x66.html new file mode 100644 index 000000000..36983c5b4 --- /dev/null +++ b/docs/module-doc/functions_func_0x66.html @@ -0,0 +1,29 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- f -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x67.html b/docs/module-doc/functions_func_0x67.html new file mode 100644 index 000000000..de898f1e8 --- /dev/null +++ b/docs/module-doc/functions_func_0x67.html @@ -0,0 +1,44 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- g -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x68.html b/docs/module-doc/functions_func_0x68.html new file mode 100644 index 000000000..3565777cb --- /dev/null +++ b/docs/module-doc/functions_func_0x68.html @@ -0,0 +1,23 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- h -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x69.html b/docs/module-doc/functions_func_0x69.html new file mode 100644 index 000000000..5b8edf709 --- /dev/null +++ b/docs/module-doc/functions_func_0x69.html @@ -0,0 +1,29 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- i -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x6a.html b/docs/module-doc/functions_func_0x6a.html new file mode 100644 index 000000000..c49dde6f6 --- /dev/null +++ b/docs/module-doc/functions_func_0x6a.html @@ -0,0 +1,21 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- j -

    +
  • JoinUserToChannel() +: Server
+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x6c.html b/docs/module-doc/functions_func_0x6c.html new file mode 100644 index 000000000..7ac05c2f0 --- /dev/null +++ b/docs/module-doc/functions_func_0x6c.html @@ -0,0 +1,23 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- l -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x6d.html b/docs/module-doc/functions_func_0x6d.html new file mode 100644 index 000000000..f40bb565c --- /dev/null +++ b/docs/module-doc/functions_func_0x6d.html @@ -0,0 +1,23 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- m -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x6e.html b/docs/module-doc/functions_func_0x6e.html new file mode 100644 index 000000000..197fe5030 --- /dev/null +++ b/docs/module-doc/functions_func_0x6e.html @@ -0,0 +1,21 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- n -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x6f.html b/docs/module-doc/functions_func_0x6f.html new file mode 100644 index 000000000..630c59b4f --- /dev/null +++ b/docs/module-doc/functions_func_0x6f.html @@ -0,0 +1,85 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- o -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x70.html b/docs/module-doc/functions_func_0x70.html new file mode 100644 index 000000000..aaaea6e6b --- /dev/null +++ b/docs/module-doc/functions_func_0x70.html @@ -0,0 +1,23 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- p -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x71.html b/docs/module-doc/functions_func_0x71.html new file mode 100644 index 000000000..474f5cd1b --- /dev/null +++ b/docs/module-doc/functions_func_0x71.html @@ -0,0 +1,21 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- q -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x72.html b/docs/module-doc/functions_func_0x72.html new file mode 100644 index 000000000..2ae4d4f6e --- /dev/null +++ b/docs/module-doc/functions_func_0x72.html @@ -0,0 +1,28 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- r -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x73.html b/docs/module-doc/functions_func_0x73.html new file mode 100644 index 000000000..69f1e7fe9 --- /dev/null +++ b/docs/module-doc/functions_func_0x73.html @@ -0,0 +1,39 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- s -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x75.html b/docs/module-doc/functions_func_0x75.html new file mode 100644 index 000000000..d61b10e31 --- /dev/null +++ b/docs/module-doc/functions_func_0x75.html @@ -0,0 +1,24 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- u -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x76.html b/docs/module-doc/functions_func_0x76.html new file mode 100644 index 000000000..b427c35b2 --- /dev/null +++ b/docs/module-doc/functions_func_0x76.html @@ -0,0 +1,22 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- v -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x77.html b/docs/module-doc/functions_func_0x77.html new file mode 100644 index 000000000..56f4c17de --- /dev/null +++ b/docs/module-doc/functions_func_0x77.html @@ -0,0 +1,21 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- w -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_func_0x7e.html b/docs/module-doc/functions_func_0x7e.html new file mode 100644 index 000000000..78afe00e9 --- /dev/null +++ b/docs/module-doc/functions_func_0x7e.html @@ -0,0 +1,33 @@ + + +InspIRCd: Class Members - Functions + + + + + +
a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | q | r | s | u | v | w | ~
+ +

+ +

+

- ~ -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
+ + diff --git a/docs/module-doc/functions_vars.html b/docs/module-doc/functions_vars.html index ab822c58f..e3cde11f2 100644 --- a/docs/module-doc/functions_vars.html +++ b/docs/module-doc/functions_vars.html @@ -1,198 +1,163 @@ - + -InspIRCd: Compound Member Index +InspIRCd: Class Members - Variables - - + + -
a | b | c | d | e | f | h | i | j | k | l | m | n | o | p | r | s | t | u | v | w
+
a | b | c | d | e | f | h | i | k | l | m | n | o | p | r | s | t | u | w

-

- a - -

+
Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index f0bafa43d..631ba7f5e 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -1,362 +1,44 @@ - + -InspIRCd: File Member Index +InspIRCd: Class Members - - - -
a | b | c | d | e | f | g | h | i | l | m | n | p | q | r | s | t | u | v | w | x | z
+ + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z

- +Here is a list of all file members with links to the files they belong to:

-Here is a list of all file members with links to the files they belong to:

- a - -

+
Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/globals_0x62.html b/docs/module-doc/globals_0x62.html new file mode 100644 index 000000000..c57abb546 --- /dev/null +++ b/docs/module-doc/globals_0x62.html @@ -0,0 +1,23 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- b -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..33492944f --- /dev/null +++ b/docs/module-doc/globals_0x63.html @@ -0,0 +1,51 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- c -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..a0abb5768 --- /dev/null +++ b/docs/module-doc/globals_0x64.html @@ -0,0 +1,33 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- d -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..40bb97edf --- /dev/null +++ b/docs/module-doc/globals_0x65.html @@ -0,0 +1,25 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- e -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..a1dfbb62f --- /dev/null +++ b/docs/module-doc/globals_0x66.html @@ -0,0 +1,26 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- f -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..4a00d5018 --- /dev/null +++ b/docs/module-doc/globals_0x67.html @@ -0,0 +1,24 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- g -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..ccd41a737 --- /dev/null +++ b/docs/module-doc/globals_0x68.html @@ -0,0 +1,74 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- h -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..37b3d6b09 --- /dev/null +++ b/docs/module-doc/globals_0x69.html @@ -0,0 +1,39 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- i -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..858c1e9cc --- /dev/null +++ b/docs/module-doc/globals_0x6c.html @@ -0,0 +1,23 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- l -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..9434213aa --- /dev/null +++ b/docs/module-doc/globals_0x6d.html @@ -0,0 +1,44 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- m -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..aa4f67ff8 --- /dev/null +++ b/docs/module-doc/globals_0x6e.html @@ -0,0 +1,26 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- n -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..d450c3ce9 --- /dev/null +++ b/docs/module-doc/globals_0x6f.html @@ -0,0 +1,21 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- o -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..2f656d73e --- /dev/null +++ b/docs/module-doc/globals_0x70.html @@ -0,0 +1,25 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- p -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..fc28db687 --- /dev/null +++ b/docs/module-doc/globals_0x71.html @@ -0,0 +1,22 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- q -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..84db1d420 --- /dev/null +++ b/docs/module-doc/globals_0x72.html @@ -0,0 +1,24 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- r -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..2617e4d18 --- /dev/null +++ b/docs/module-doc/globals_0x73.html @@ -0,0 +1,37 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- s -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..000121a3d --- /dev/null +++ b/docs/module-doc/globals_0x74.html @@ -0,0 +1,27 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- t -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..2aabe539a --- /dev/null +++ b/docs/module-doc/globals_0x75.html @@ -0,0 +1,27 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- u -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..f4a101507 --- /dev/null +++ b/docs/module-doc/globals_0x76.html @@ -0,0 +1,26 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- v -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..fbb81cb57 --- /dev/null +++ b/docs/module-doc/globals_0x77.html @@ -0,0 +1,24 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- w -

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..8876f165f --- /dev/null +++ b/docs/module-doc/globals_0x7a.html @@ -0,0 +1,22 @@ + + +InspIRCd: Class Members + + + + + +
a | b | c | d | e | f | g | h | i | l | m | n | o | p | q | r | s | t | u | v | w | z
+ +

+Here is a list of all file members with links to the files they belong to: +

+

- z -

+
Generated on Sun Nov 27 01:43:27 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 8d0992220..b155d0221 100644 --- a/docs/module-doc/globals_defs.html +++ b/docs/module-doc/globals_defs.html @@ -1,106 +1,85 @@ - + -InspIRCd: File Member Index +InspIRCd: Class Members - - - -
a | c | d | f | l | m | n | s | u | v
+ + + +
a | c | d | f | m | n | s | u | v

-

- a - -

+
Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/globals_enum.html b/docs/module-doc/globals_enum.html new file mode 100644 index 000000000..da898985a --- /dev/null +++ b/docs/module-doc/globals_enum.html @@ -0,0 +1,19 @@ + + +InspIRCd: Class Members + + + + + + +

+

+
Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..e8080ff9f --- /dev/null +++ b/docs/module-doc/globals_eval.html @@ -0,0 +1,26 @@ + + +InspIRCd: Class Members + + + + + + +

+

+
Generated on Sun Nov 27 01:43:27 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 981d5daed..df42b69fa 100644 --- a/docs/module-doc/globals_func.html +++ b/docs/module-doc/globals_func.html @@ -1,223 +1,176 @@ - + -InspIRCd: File Member Index +InspIRCd: Class Members - - - + + +
a | b | c | d | e | f | g | h | i | m | n | p | q | r | s | t | z

-

- a - -

+
Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
+doxygen 1.4.4-20050815
diff --git a/docs/module-doc/globals_type.html b/docs/module-doc/globals_type.html index df2fab38b..f1f712149 100644 --- a/docs/module-doc/globals_type.html +++ b/docs/module-doc/globals_type.html @@ -1,35 +1,35 @@ - + -InspIRCd: File Member Index +InspIRCd: Class Members - - - + + +

-
Generated on Mon May 30 05:17:51 2005 for InspIRCd by +: modules.cpp
  • BanList +: channels.h
  • chan_hash +: modules.cpp
  • chanuserlist +: modules.h
  • ClassVector +: users.h
  • command_table +: modules.cpp
  • ExemptList +: channels.h
  • ExtModeList +: modules.cpp
  • ExtModeListIter +: modules.cpp
  • file_cache +: modules.h
  • InvitedList +: users.h
  • InviteList +: channels.h
  • ircd_module +: modules.h
  • string +: hashcomp.h
  • string_list +: modules.h
  • user_hash +: modules.cpp
  • VoidPointer +: base.h
  • whowas_hash +: modules.cpp +
    Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
  • diff --git a/docs/module-doc/globals_vars.html b/docs/module-doc/globals_vars.html index a9d64c70a..6bf40a4ac 100644 --- a/docs/module-doc/globals_vars.html +++ b/docs/module-doc/globals_vars.html @@ -1,122 +1,99 @@ - + -InspIRCd: File Member Index +InspIRCd: Class Members - - - -
    a | b | c | d | e | f | h | i | l | m | n | p | r | s | t | w | x
    + + + +
    a | b | c | d | e | f | i | l | m | n | o | p | r | s | t | u | w

    -

    - a - -

    +
    Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/graph_legend.gif b/docs/module-doc/graph_legend.gif index 14496b59d..f3adc6e30 100644 Binary files a/docs/module-doc/graph_legend.gif and b/docs/module-doc/graph_legend.gif differ diff --git a/docs/module-doc/graph_legend.html b/docs/module-doc/graph_legend.html index c8f5acbd1..90c2454ce 100644 --- a/docs/module-doc/graph_legend.html +++ b/docs/module-doc/graph_legend.html @@ -1,12 +1,12 @@ - + InspIRCd: Graph Legend - - + +

    Graph Legend

    This page explains how to interpret the graphs that are generated by doxygen.

    -Consider the following example:

    /*! Invisible class because of truncation */
    +Consider the following example: 
    /*! Invisible class because of truncation */
     class Invisible { };
     
     /*! Truncated class, inheritance relation is hidden */
    @@ -40,7 +40,7 @@ Consider the following example: 
    private:
         Used *m_usedClass;
     };
    -
    If the MAX_DOT_GRAPH_HEIGHT tag in the configuration file is set to 240 this will result in the following graph:

    +

    If the MAX_DOT_GRAPH_HEIGHT tag in the configuration file is set to 240 this will result in the following graph:

    graph_legend.gif
    @@ -67,9 +67,8 @@ 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 May 30 05:17:51 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/hashcomp_8h-source.html b/docs/module-doc/hashcomp_8h-source.html index 84f243c94..d93e2359d 100644 --- a/docs/module-doc/hashcomp_8h-source.html +++ b/docs/module-doc/hashcomp_8h-source.html @@ -1,115 +1,116 @@ - + InspIRCd: hashcomp.h Source File - - -

    hashcomp.h

    Go to the documentation of this file.
    00001 /*       +------------------------------------+
    -00002  *       | Inspire Internet Relay Chat Daemon |
    -00003  *       +------------------------------------+
    -00004  *
    -00005  *  Inspire is copyright (C) 2002-2005 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 _HASHCOMP_H_
    -00018 #define _HASHCOMP_H_
    -00019 
    -00020 #include "inspircd_config.h"
    -00021 
    -00022 /*******************************************************
    -00023  * This file contains classes and templates that deal
    -00024  * with the comparison and hashing of 'irc strings'.
    -00025  * An 'irc string' is a string which compares in a
    -00026  * case insensitive manner, and as per RFC 1459 will
    -00027  * treat [ identical to {, ] identical to }, and \
    -00028  * as identical to |.
    -00029  *
    -00030  * Our hashing functions are designed  to accept
    -00031  * std::string and compare/hash them as type irc::string
    -00032  * by converting them internally. This makes them
    -00033  * backwards compatible with other code which is not
    -00034  * aware of irc::string.
    -00035  *******************************************************/
    -00036 
    -00037 #ifdef GCC3
    -00038 #include <ext/hash_map>
    -00039 #else
    -00040 #include <hash_map>
    -00041 #endif
    -00042 
    -00043 #ifdef GCC3
    -00044 #define nspace __gnu_cxx
    -00045 #else
    -00046 #define nspace std
    -00047 #endif
    -00048 
    -00049 using namespace std;
    -00050 
    -00051 namespace nspace
    -00052 {
    -00053 #ifdef GCC34
    -00054         template<> struct hash<in_addr>
    -00055 #else
    -00056         template<> struct nspace::hash<in_addr>
    -00057 #endif
    -00058         {
    -00059                 size_t operator()(const struct in_addr &a) const;
    -00060         };
    -00061 #ifdef GCC34
    -00062         template<> struct hash<string>
    -00063 #else
    -00064         template<> struct nspace::hash<string>
    -00065 #endif
    -00066         {
    -00067                 size_t operator()(const string &s) const;
    -00068         };
    -00069 }
    -00070 
    +
    +
    +
    +

    hashcomp.h

    Go to the documentation of this file.
    00001 /*       +------------------------------------+
    +00002  *       | Inspire Internet Relay Chat Daemon |
    +00003  *       +------------------------------------+
    +00004  *
    +00005  *  Inspire is copyright (C) 2002-2005 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 _HASHCOMP_H_
    +00018 #define _HASHCOMP_H_
    +00019 
    +00020 #include "inspircd_config.h"
    +00021 
    +00022 /*******************************************************
    +00023  * This file contains classes and templates that deal
    +00024  * with the comparison and hashing of 'irc strings'.
    +00025  * An 'irc string' is a string which compares in a
    +00026  * case insensitive manner, and as per RFC 1459 will
    +00027  * treat [ identical to {, ] identical to }, and \
    +00028  * as identical to |.
    +00029  *
    +00030  * Our hashing functions are designed  to accept
    +00031  * std::string and compare/hash them as type irc::string
    +00032  * by converting them internally. This makes them
    +00033  * backwards compatible with other code which is not
    +00034  * aware of irc::string.
    +00035  *******************************************************/
    +00036 
    +00037 #ifdef GCC3
    +00038 #include <ext/hash_map>
    +00039 #else
    +00040 #include <hash_map>
    +00041 #endif
    +00042 
    +00043 #ifdef GCC3
    +00044 #define nspace __gnu_cxx
    +00045 #else
    +00046 #define nspace std
    +00047 #endif
    +00048 
    +00049 using namespace std;
    +00050 
    +00051 namespace nspace
    +00052 {
    +00053 #ifdef GCC34
    +00054         template<> struct hash<in_addr>
    +00055 #else
    +00056         template<> struct nspace::hash<in_addr>
    +00057 #endif
    +00058         {
    +00059                 size_t operator()(const struct in_addr &a) const;
    +00060         };
    +00061 #ifdef GCC34
    +00062         template<> struct hash<string>
    +00063 #else
    +00064         template<> struct nspace::hash<string>
    +00065 #endif
    +00066         {
    +00067                 size_t operator()(const string &s) const;
    +00068         };
    +00069 }
    +00070 
     00073 namespace irc
    -00074 {
    -00075 
    +00074 {
    +00075 
     00080         struct StrHashComp
    -00081         {
    -00084                 bool operator()(const std::string& s1, const std::string& s2) const;
    -00085         };
    -00086 
    -00087 
    +00081         {
    +00084                 bool operator()(const std::string& s1, const std::string& s2) const;
    +00085         };
    +00086 
    +00087 
     00092         struct InAddr_HashComp
    -00093         {
    -00096                 bool operator()(const in_addr &s1, const in_addr &s2) const;
    -00097         };
    -00098 
    -00099 
    -00104         struct irc_char_traits : std::char_traits<char> {
    -00105 
    -00108                 static bool eq(char c1st, char c2nd);
    -00109 
    -00112                 static bool ne(char c1st, char c2nd);
    -00113 
    -00116                 static bool lt(char c1st, char c2nd);
    -00117 
    -00120                 static int compare(const char* str1, const char* str2, size_t n);
    -00121 
    -00124                 static const char* find(const char* s1, int  n, char c);
    -00125         };
    -00126 
    -00129         typedef basic_string<char, irc_char_traits, allocator<char> > string;
    -00130 }
    -00131 
    -00132 #endif
    -

    Generated on Mon May 30 05:15:19 2005 for InspIRCd by +00093 { +00096 bool operator()(const in_addr &s1, const in_addr &s2) const; +00097 }; +00098 +00099 +00104 struct irc_char_traits : std::char_traits<char> { +00105 +00108 static bool eq(char c1st, char c2nd); +00109 +00112 static bool ne(char c1st, char c2nd); +00113 +00116 static bool lt(char c1st, char c2nd); +00117 +00120 static int compare(const char* str1, const char* str2, size_t n); +00121 +00124 static const char* find(const char* s1, int n, char c); +00125 }; +00126 +00129 typedef basic_string<char, irc_char_traits, allocator<char> > string; +00130 } +00131 +00132 #endif +

    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815 diff --git a/docs/module-doc/hashcomp_8h.html b/docs/module-doc/hashcomp_8h.html index 37cefd163..094ec14a6 100644 --- a/docs/module-doc/hashcomp_8h.html +++ b/docs/module-doc/hashcomp_8h.html @@ -1,47 +1,70 @@ - + InspIRCd: hashcomp.h File Reference - - -

    hashcomp.h File Reference

    #include "inspircd_config.h"
    + + + +

    hashcomp.h File Reference

    #include "inspircd_config.h"
    #include <ext/hash_map>

    -Include dependency graph for hashcomp.h:

    Include dependency graph
    +Include dependency graph for hashcomp.h:

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

    Included by dependency graph
    +This graph shows which files directly or indirectly include this file:

    - +

    -Go to the source code of this file. +Go to the source code of this file.
    - - + + - + - - + + + + + + + + + + + + + + + + + + + +

    Namespaces

    namespace  irc

    Namespaces

    namespace  nspace
    namespace  nspace
    namespace  irc

    Defines

    #define nspace   __gnu_cxx

    Classes

    struct  nspace::hash< in_addr >
    struct  nspace::hash< string >
    struct  irc::StrHashComp
     This class returns true if two strings match. More...
    struct  irc::InAddr_HashComp
     This class returns true if two in_addr structs match. More...
    struct  irc::irc_char_traits
     The irc_char_traits class is used for RFC-style comparison of strings. More...

    Defines

    #define nspace   __gnu_cxx

    Typedefs

    typedef basic_string< char,
    + irc_char_traits, allocator<
    + char > > 
    irc::string
     This typedef declares irc::string based upon irc_char_traits.


    Define Documentation

    -

    - +

    +

    - +
    #define nspace   __gnu_cxx + #define nspace   __gnu_cxx
    - +
      @@ -54,9 +77,8 @@ This graph shows which files directly or indirectly include this file:

    44 of file hashcomp.h.
    -


    Generated on Mon May 30 05:15:48 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +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 5595a48da..ba92d59f7 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 new file mode 100644 index 000000000..d4d87c8b6 --- /dev/null +++ b/docs/module-doc/hashcomp_8h__dep__incl.map @@ -0,0 +1,2 @@ +base referer +rect $modules_8cpp-source.html 151,7 249,33 diff --git a/docs/module-doc/hashcomp_8h__dep__incl.md5 b/docs/module-doc/hashcomp_8h__dep__incl.md5 new file mode 100644 index 000000000..13ab4aa0c --- /dev/null +++ b/docs/module-doc/hashcomp_8h__dep__incl.md5 @@ -0,0 +1 @@ +18f1cb2dbb2c368f942055809c28a9a3 \ No newline at end of file diff --git a/docs/module-doc/hashcomp_8h__incl.gif b/docs/module-doc/hashcomp_8h__incl.gif index be85b903e..a742a4c23 100644 Binary files a/docs/module-doc/hashcomp_8h__incl.gif and b/docs/module-doc/hashcomp_8h__incl.gif differ diff --git a/docs/module-doc/hashcomp_8h__incl.map b/docs/module-doc/hashcomp_8h__incl.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/hashcomp_8h__incl.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/hashcomp_8h__incl.md5 b/docs/module-doc/hashcomp_8h__incl.md5 new file mode 100644 index 000000000..fcd8e0e15 --- /dev/null +++ b/docs/module-doc/hashcomp_8h__incl.md5 @@ -0,0 +1 @@ +fa613372646e958b5b158cf4f689f921 \ No newline at end of file diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index c40919099..6b1822b2c 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -1,10 +1,10 @@ - + InspIRCd: Hierarchical Index - - + +

    InspIRCd Class Hierarchy

    Go to the graphical class hierarchy

    This inheritance list is sorted roughly, but not completely, alphabetically:

    -
    Generated on Mon May 30 05:16:22 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/inherit__graph__0.gif b/docs/module-doc/inherit__graph__0.gif index 2e31b9795..f06371899 100644 Binary files a/docs/module-doc/inherit__graph__0.gif and b/docs/module-doc/inherit__graph__0.gif differ diff --git a/docs/module-doc/inherit__graph__0.map b/docs/module-doc/inherit__graph__0.map new file mode 100644 index 000000000..09d914fed --- /dev/null +++ b/docs/module-doc/inherit__graph__0.map @@ -0,0 +1,2 @@ +base referer +rect $classBoolSet.html 7,7 76,33 diff --git a/docs/module-doc/inherit__graph__0.md5 b/docs/module-doc/inherit__graph__0.md5 new file mode 100644 index 000000000..0d55dc8ff --- /dev/null +++ b/docs/module-doc/inherit__graph__0.md5 @@ -0,0 +1 @@ +93d9e4fbc2d3cddda9a76d7441754f2b \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__1.gif b/docs/module-doc/inherit__graph__1.gif index 397bfc922..10261dc21 100644 Binary files a/docs/module-doc/inherit__graph__1.gif and b/docs/module-doc/inherit__graph__1.gif differ diff --git a/docs/module-doc/inherit__graph__1.map b/docs/module-doc/inherit__graph__1.map new file mode 100644 index 000000000..2fef6e5ed --- /dev/null +++ b/docs/module-doc/inherit__graph__1.map @@ -0,0 +1,3 @@ +base referer +rect $classstd_1_1char__traits.html 8,7 91,33 +rect $structirc_1_1irc__char__traits.html 140,7 268,33 diff --git a/docs/module-doc/inherit__graph__1.md5 b/docs/module-doc/inherit__graph__1.md5 new file mode 100644 index 000000000..9dc9f695d --- /dev/null +++ b/docs/module-doc/inherit__graph__1.md5 @@ -0,0 +1 @@ +9b6f095874e1ac542b37f925a223adb0 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__10.gif b/docs/module-doc/inherit__graph__10.gif new file mode 100644 index 000000000..e79f9b374 Binary files /dev/null and b/docs/module-doc/inherit__graph__10.gif differ diff --git a/docs/module-doc/inherit__graph__10.map b/docs/module-doc/inherit__graph__10.map new file mode 100644 index 000000000..f4dc152fc --- /dev/null +++ b/docs/module-doc/inherit__graph__10.map @@ -0,0 +1,2 @@ +base referer +rect $classWhoWasUser.html 8,7 112,33 diff --git a/docs/module-doc/inherit__graph__10.md5 b/docs/module-doc/inherit__graph__10.md5 new file mode 100644 index 000000000..49ded545f --- /dev/null +++ b/docs/module-doc/inherit__graph__10.md5 @@ -0,0 +1 @@ +5bff511d62c6faa81cdb63b1f78f6cd8 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__2.gif b/docs/module-doc/inherit__graph__2.gif index a434ea0a7..e9fb3711f 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 new file mode 100644 index 000000000..3d1b2b163 --- /dev/null +++ b/docs/module-doc/inherit__graph__2.map @@ -0,0 +1,32 @@ +base referer +rect $classclassbase.html 8,387 88,413 +rect $classAdmin.html 167,7 228,33 +rect $classConfigReader.html 146,57 250,84 +rect $classConnectClass.html 146,108 250,135 +rect $classExtensible.html 156,159 239,185 +rect $classExtMode.html 160,209 235,236 +rect $classFileReader.html 154,260 242,287 +rect $classHostItem.html 160,311 235,337 +rect $classInvited.html 167,361 228,388 +rect $classModeParameter.html 139,412 256,439 +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 $classchanrec.html 319,108 388,135 +rect $classcommand__t.html 308,159 399,185 +rect $classconnection.html 311,209 396,236 +rect $classuserrec.html 450,209 516,236 +rect $classBanItem.html 318,260 390,287 +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 diff --git a/docs/module-doc/inherit__graph__2.md5 b/docs/module-doc/inherit__graph__2.md5 new file mode 100644 index 000000000..f9ee5de24 --- /dev/null +++ b/docs/module-doc/inherit__graph__2.md5 @@ -0,0 +1 @@ +5245feb0cb84245dfc703490db270136 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__3.gif b/docs/module-doc/inherit__graph__3.gif index 992d6ed85..1d3c8d177 100644 Binary files a/docs/module-doc/inherit__graph__3.gif and b/docs/module-doc/inherit__graph__3.gif differ diff --git a/docs/module-doc/inherit__graph__3.map b/docs/module-doc/inherit__graph__3.map new file mode 100644 index 000000000..56a3b7703 --- /dev/null +++ b/docs/module-doc/inherit__graph__3.map @@ -0,0 +1,2 @@ +base referer +rect $classDNS.html 7,7 57,33 diff --git a/docs/module-doc/inherit__graph__3.md5 b/docs/module-doc/inherit__graph__3.md5 new file mode 100644 index 000000000..3644e817a --- /dev/null +++ b/docs/module-doc/inherit__graph__3.md5 @@ -0,0 +1 @@ +d39d1604b95cefdfc240566a784bc1e0 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__4.gif b/docs/module-doc/inherit__graph__4.gif index 224232736..8c7af2d72 100644 Binary files a/docs/module-doc/inherit__graph__4.gif and b/docs/module-doc/inherit__graph__4.gif differ diff --git a/docs/module-doc/inherit__graph__4.map b/docs/module-doc/inherit__graph__4.map new file mode 100644 index 000000000..37bcc6048 --- /dev/null +++ b/docs/module-doc/inherit__graph__4.map @@ -0,0 +1,2 @@ +base referer +rect $structdns__ip4list.html 7,7 92,33 diff --git a/docs/module-doc/inherit__graph__4.md5 b/docs/module-doc/inherit__graph__4.md5 new file mode 100644 index 000000000..a570a57e1 --- /dev/null +++ b/docs/module-doc/inherit__graph__4.md5 @@ -0,0 +1 @@ +f91f9b746cbe9764b077e0f96e3d53c0 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__5.gif b/docs/module-doc/inherit__graph__5.gif index 3ae3517db..f657b86ad 100644 Binary files a/docs/module-doc/inherit__graph__5.gif and b/docs/module-doc/inherit__graph__5.gif differ diff --git a/docs/module-doc/inherit__graph__5.map b/docs/module-doc/inherit__graph__5.map new file mode 100644 index 000000000..9f8c7b021 --- /dev/null +++ b/docs/module-doc/inherit__graph__5.map @@ -0,0 +1,2 @@ +base referer +rect $classInspSocket.html 7,7 95,33 diff --git a/docs/module-doc/inherit__graph__5.md5 b/docs/module-doc/inherit__graph__5.md5 new file mode 100644 index 000000000..d2ac3e742 --- /dev/null +++ b/docs/module-doc/inherit__graph__5.md5 @@ -0,0 +1 @@ +866431d87448beeff03effa477cb0785 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__6.gif b/docs/module-doc/inherit__graph__6.gif index 8ad8a7b50..0f004ad81 100644 Binary files a/docs/module-doc/inherit__graph__6.gif and b/docs/module-doc/inherit__graph__6.gif differ diff --git a/docs/module-doc/inherit__graph__6.map b/docs/module-doc/inherit__graph__6.map new file mode 100644 index 000000000..dad9d9fcd --- /dev/null +++ b/docs/module-doc/inherit__graph__6.map @@ -0,0 +1,2 @@ +base referer +rect $structirc_1_1InAddr__HashComp.html 7,7 164,33 diff --git a/docs/module-doc/inherit__graph__6.md5 b/docs/module-doc/inherit__graph__6.md5 new file mode 100644 index 000000000..9496775c7 --- /dev/null +++ b/docs/module-doc/inherit__graph__6.md5 @@ -0,0 +1 @@ +3c2c67e0c9a15d3aaf7860ffcd39768e \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__7.gif b/docs/module-doc/inherit__graph__7.gif index d85abdb1b..b68f09f13 100644 Binary files a/docs/module-doc/inherit__graph__7.gif and b/docs/module-doc/inherit__graph__7.gif differ diff --git a/docs/module-doc/inherit__graph__7.map b/docs/module-doc/inherit__graph__7.map new file mode 100644 index 000000000..8c67f4a72 --- /dev/null +++ b/docs/module-doc/inherit__graph__7.map @@ -0,0 +1,2 @@ +base referer +rect $structirc_1_1StrHashComp.html 7,7 135,33 diff --git a/docs/module-doc/inherit__graph__7.md5 b/docs/module-doc/inherit__graph__7.md5 new file mode 100644 index 000000000..b62920d1d --- /dev/null +++ b/docs/module-doc/inherit__graph__7.md5 @@ -0,0 +1 @@ +d94ccc9245ee31c76282e2c8ed0c0bb2 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__8.gif b/docs/module-doc/inherit__graph__8.gif index 516567cb0..2c759987a 100644 Binary files a/docs/module-doc/inherit__graph__8.gif and b/docs/module-doc/inherit__graph__8.gif differ diff --git a/docs/module-doc/inherit__graph__8.map b/docs/module-doc/inherit__graph__8.map new file mode 100644 index 000000000..e91564620 --- /dev/null +++ b/docs/module-doc/inherit__graph__8.map @@ -0,0 +1,2 @@ +base referer +rect $structnspace_1_1hash_3_01in__addr_01_4.html 8,7 176,33 diff --git a/docs/module-doc/inherit__graph__8.md5 b/docs/module-doc/inherit__graph__8.md5 new file mode 100644 index 000000000..9c5f939fc --- /dev/null +++ b/docs/module-doc/inherit__graph__8.md5 @@ -0,0 +1 @@ +40e92872c26375b92021bb12d46d2211 \ No newline at end of file diff --git a/docs/module-doc/inherit__graph__9.gif b/docs/module-doc/inherit__graph__9.gif index a7d4324c4..ead171060 100644 Binary files a/docs/module-doc/inherit__graph__9.gif and b/docs/module-doc/inherit__graph__9.gif differ diff --git a/docs/module-doc/inherit__graph__9.map b/docs/module-doc/inherit__graph__9.map new file mode 100644 index 000000000..cf6c39bc6 --- /dev/null +++ b/docs/module-doc/inherit__graph__9.map @@ -0,0 +1,2 @@ +base referer +rect $structnspace_1_1hash_3_01string_01_4.html 7,7 164,33 diff --git a/docs/module-doc/inherit__graph__9.md5 b/docs/module-doc/inherit__graph__9.md5 new file mode 100644 index 000000000..354478843 --- /dev/null +++ b/docs/module-doc/inherit__graph__9.md5 @@ -0,0 +1 @@ +317e8030ba500855ca30d38cc6449d34 \ No newline at end of file diff --git a/docs/module-doc/inherits.html b/docs/module-doc/inherits.html index 7ab174b01..67a43a23d 100644 --- a/docs/module-doc/inherits.html +++ b/docs/module-doc/inherits.html @@ -1,90 +1,91 @@ - + InspIRCd: Graphical Class Hierarchy - - + +

    InspIRCd Graphical Class Hierarchy

    Go to the textual class hierarchy

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


    Generated on Mon May 30 05:17:55 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index 20bf96001..fd5a79646 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -1,15 +1,14 @@ - + InspIRCd: Main Page - - + +

    InspIRCd Documentation

    -

    1.0Betareleases


    Generated on Mon May 30 05:15:18 2005 for InspIRCd by +

    1.0Betareleases


    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/message_8h-source.html b/docs/module-doc/message_8h-source.html index 9f7777694..7d56671ff 100644 --- a/docs/module-doc/message_8h-source.html +++ b/docs/module-doc/message_8h-source.html @@ -1,63 +1,64 @@ - + InspIRCd: message.h Source File - - -

    message.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 __MESSAGE_H
    -00018 #define __MESSAGE_H
    -00019 
    -00020 // include the common header files
    -00021 
    -00022 #include <typeinfo>
    -00023 #include <iostream>
    -00024 #include <string>
    -00025 #include <deque>
    -00026 #include <sstream>
    -00027 #include <vector>
    -00028 #include "users.h"
    -00029 #include "channels.h"
    -00030 
    -00031 int common_channels(userrec *u, userrec *u2);
    -00032 void chop(char* str);
    -00033 void tidystring(char* str);
    -00034 void Blocking(int s);
    -00035 void NonBlocking(int s);
    -00036 int CleanAndResolve (char *resolvedHost, const char *unresolvedHost);
    -00037 int c_count(userrec* u);
    -00038 bool hasumode(userrec* user, char mode);
    -00039 void ChangeName(userrec* user, const char* gecos);
    -00040 void ChangeDisplayedHost(userrec* user, const char* host);
    -00041 int isident(const char* n);
    -00042 int isnick(const char* n);
    -00043 char* cmode(userrec *user, chanrec *chan);
    -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);
    -00048 void send_network_quit(const char* nick, const char* reason);
    -00049 
    -00050 #endif
    -

    Generated on Mon May 30 05:15:19 2005 for InspIRCd by + + + +

    message.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 __MESSAGE_H
    +00018 #define __MESSAGE_H
    +00019 
    +00020 // include the common header files
    +00021 
    +00022 #include <typeinfo>
    +00023 #include <iostream>
    +00024 #include <string>
    +00025 #include <deque>
    +00026 #include <sstream>
    +00027 #include <vector>
    +00028 #include "users.h"
    +00029 #include "channels.h"
    +00030 
    +00031 int common_channels(userrec *u, userrec *u2);
    +00032 void chop(char* str);
    +00033 void tidystring(char* str);
    +00034 void Blocking(int s);
    +00035 void NonBlocking(int s);
    +00036 int CleanAndResolve (char *resolvedHost, const char *unresolvedHost);
    +00037 int c_count(userrec* u);
    +00038 bool hasumode(userrec* user, char mode);
    +00039 void ChangeName(userrec* user, const char* gecos);
    +00040 void ChangeDisplayedHost(userrec* user, const char* host);
    +00041 int isident(const char* n);
    +00042 int isnick(const char* n);
    +00043 char* cmode(userrec *user, chanrec *chan);
    +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);
    +00048 void send_network_quit(const char* nick, const char* reason);
    +00049 
    +00050 #endif
    +

    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/message_8h.html b/docs/module-doc/message_8h.html index 4b37ebd9b..baa3188b9 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -1,94 +1,96 @@ - + InspIRCd: message.h File Reference - - + + +

    message.h File Reference

    #include <typeinfo>
    #include <iostream>
    #include <string>
    #include <deque>
    #include <sstream>
    #include <vector>
    -#include "users.h"
    -#include "channels.h"
    +#include "users.h"
    +#include "channels.h"

    -Include dependency graph for message.h:

    Include dependency graph
    +Include dependency graph for message.h:

    - - + + +

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

    Included by dependency graph
    +This graph shows which files directly or indirectly include this file:

    - - + +

    -Go to the source code of this file. +Go to the source code of this file.
    - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +

    Functions

    int common_channels (userrec *u, userrec *u2)

    Functions

    int common_channels (userrec *u, userrec *u2)
    void chop (char *str)
    void chop (char *str)
    void tidystring (char *str)
    void tidystring (char *str)
    void Blocking (int s)
    void Blocking (int s)
    void NonBlocking (int s)
    void NonBlocking (int s)
    int CleanAndResolve (char *resolvedHost, const char *unresolvedHost)
    int CleanAndResolve (char *resolvedHost, const char *unresolvedHost)
    int c_count (userrec *u)
    int c_count (userrec *u)
    bool hasumode (userrec *user, char mode)
    bool hasumode (userrec *user, char mode)
    void ChangeName (userrec *user, const char *gecos)
    void ChangeName (userrec *user, const char *gecos)
    void ChangeDisplayedHost (userrec *user, const char *host)
    void ChangeDisplayedHost (userrec *user, const char *host)
    int isident (const char *n)
    int isident (const char *n)
    int isnick (const char *n)
    int isnick (const char *n)
    char * cmode (userrec *user, chanrec *chan)
    char * cmode (userrec *user, chanrec *chan)
    int cstatus (userrec *user, chanrec *chan)
    int cstatus (userrec *user, chanrec *chan)
    int has_channel (userrec *u, chanrec *c)
    int has_channel (userrec *u, chanrec *c)
    void TidyBan (char *ban)
    void TidyBan (char *ban)
    char * chlist (userrec *user, userrec *source)
    char * chlist (userrec *user, userrec *source)
    void send_network_quit (const char *nick, const char *reason)
    void send_network_quit (const char *nick, const char *reason)


    Function Documentation

    -

    - +

    +

    - + -
    void Blocking void Blocking int  s  ) 
    - +
      @@ -99,25 +101,24 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + -
    int c_count int c_count userrec u  ) 
    - +
      @@ -128,34 +129,33 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + - - + + - + -
    void ChangeDisplayedHost void ChangeDisplayedHost userrec user,
    const char *  host
    - +
    +Referenced by Server::ChangeHost().
      @@ -165,37 +165,36 @@ This graph shows which files directly or indirectly include this file:

    -Referenced by Server::ChangeHost().

    -

    - +

    +

    - + - - + + - + -
    void ChangeName void ChangeName userrec user,
    const char *  gecos
    - +
    +Referenced by Server::ChangeGECOS().
      @@ -205,37 +204,36 @@ Referenced by Server::Chang

    -Referenced by Server::ChangeGECOS().

    -

    - +

    +

    - + - - + + - + -
    char* chlist char* chlist userrec user,
    userrec source
    - +
      @@ -246,25 +244,24 @@ Referenced by Server::Chang
    -

    - +

    +

    - + -
    void chop void chop char *  str  ) 
    - +
      @@ -275,34 +272,33 @@ Referenced by Server::Chang
    -

    - +

    +

    - + - - + + - + -
    int CleanAndResolve int CleanAndResolve char *  resolvedHost,
    const char *  unresolvedHost
    - +
      @@ -313,34 +309,33 @@ Referenced by Server::Chang
    -

    - +

    +

    - + - - + + - + -
    char* cmode char* cmode userrec user,
    chanrec chan
    - +
    +Referenced by Server::ChanMode().
      @@ -350,37 +345,36 @@ Referenced by Server::Chang

    -Referenced by Server::ChanMode().

    -

    - +

    +

    - + - - + + - + -
    int common_channels int common_channels userrec u,
    userrec u2
    - +
    +Referenced by Server::CommonChannels().
      @@ -390,37 +384,36 @@ Referenced by Server::ChanM

    -Referenced by Server::CommonChannels().

    -

    - +

    +

    - + - - + + - + -
    int cstatus int cstatus userrec user,
    chanrec chan
    - +
      @@ -431,34 +424,33 @@ Referenced by Server::Commo
    -

    - +

    +

    - + - - + + - + -
    int has_channel int has_channel userrec u,
    chanrec c
    - +
    +Referenced by Server::IsOnChannel().
      @@ -468,37 +460,36 @@ Referenced by Server::Commo

    -Referenced by Server::IsOnChannel().

    -

    - +

    +

    - + - - + + - + -
    bool hasumode bool hasumode userrec user,
    char  mode
    - +
      @@ -509,25 +500,24 @@ Referenced by Server::IsOnC
    -

    - +

    +

    - + -
    int isident int isident const char *  n  ) 
    - +
      @@ -538,25 +528,24 @@ Referenced by Server::IsOnC
    -

    - +

    +

    - + -
    int isnick int isnick const char *  n  ) 
    - +
    +Referenced by Server::IsNick().
      @@ -566,28 +555,27 @@ Referenced by Server::IsOnC

    -Referenced by Server::IsNick().

    -

    - +

    +

    - + -
    void NonBlocking void NonBlocking int  s  ) 
    - +
      @@ -598,34 +586,33 @@ Referenced by Server::IsNic
    -

    - +

    +

    - + - - + + - + -
    void send_network_quit void send_network_quit const char *  nick,
    const char *  reason
    - +
      @@ -636,25 +623,24 @@ Referenced by Server::IsNic
    -

    - +

    +

    - + -
    void TidyBan void TidyBan char *  ban  ) 
    - +
      @@ -665,25 +651,24 @@ Referenced by Server::IsNic
    -

    - +

    +

    - + -
    void tidystring void tidystring char *  str  ) 
    - +
      @@ -694,9 +679,8 @@ Referenced by Server::IsNic
    -


    Generated on Mon May 30 05:15:51 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/message_8h__dep__incl.gif b/docs/module-doc/message_8h__dep__incl.gif index 090bc0307..af40a91ec 100644 Binary files a/docs/module-doc/message_8h__dep__incl.gif and b/docs/module-doc/message_8h__dep__incl.gif differ diff --git a/docs/module-doc/message_8h__dep__incl.map b/docs/module-doc/message_8h__dep__incl.map new file mode 100644 index 000000000..e26cc9746 --- /dev/null +++ b/docs/module-doc/message_8h__dep__incl.map @@ -0,0 +1,3 @@ +base referer +rect $channels_8cpp-source.html 144,7 243,34 +rect $modules_8cpp-source.html 144,58 243,84 diff --git a/docs/module-doc/message_8h__dep__incl.md5 b/docs/module-doc/message_8h__dep__incl.md5 new file mode 100644 index 000000000..ea427afd1 --- /dev/null +++ b/docs/module-doc/message_8h__dep__incl.md5 @@ -0,0 +1 @@ +5798528055639d3c9fa4c0dd420993b1 \ No newline at end of file diff --git a/docs/module-doc/message_8h__incl.gif b/docs/module-doc/message_8h__incl.gif index c60428fab..288c5cf3f 100644 Binary files a/docs/module-doc/message_8h__incl.gif and b/docs/module-doc/message_8h__incl.gif differ diff --git a/docs/module-doc/message_8h__incl.map b/docs/module-doc/message_8h__incl.map new file mode 100644 index 000000000..384780910 --- /dev/null +++ b/docs/module-doc/message_8h__incl.map @@ -0,0 +1,4 @@ +base referer +rect $users_8h-source.html 148,260 212,287 +rect $channels_8h-source.html 272,210 357,236 +rect $connection_8h-source.html 265,362 364,388 diff --git a/docs/module-doc/message_8h__incl.md5 b/docs/module-doc/message_8h__incl.md5 new file mode 100644 index 000000000..2224be875 --- /dev/null +++ b/docs/module-doc/message_8h__incl.md5 @@ -0,0 +1 @@ +7aeb3a1884c55b8e203a25501370a382 \ No newline at end of file diff --git a/docs/module-doc/mode_8h-source.html b/docs/module-doc/mode_8h-source.html index 7c422c413..2d980d16b 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -1,61 +1,62 @@ - + InspIRCd: mode.h Source File - - -

    mode.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 __MODE_H
    -00018 #define __MODE_H
    -00019 
    -00020 // include the common header files
    -00021 
    -00022 #include <typeinfo>
    -00023 #include <iostream>
    -00024 #include <string>
    -00025 #include <deque>
    -00026 #include <sstream>
    -00027 #include <vector>
    -00028 #include "users.h"
    -00029 #include "channels.h"
    -00030 
    -00031 char* give_ops(userrec *user,char *dest,chanrec *chan,int status);
    -00032 char* give_hops(userrec *user,char *dest,chanrec *chan,int status);
    -00033 char* give_voice(userrec *user,char *dest,chanrec *chan,int status);
    -00034 char* take_ops(userrec *user,char *dest,chanrec *chan,int status);
    -00035 char* take_hops(userrec *user,char *dest,chanrec *chan,int status);
    -00036 char* take_voice(userrec *user,char *dest,chanrec *chan,int status);
    -00037 char* add_ban(userrec *user,char *dest,chanrec *chan,int status);
    -00038 char* take_ban(userrec *user,char *dest,chanrec *chan,int status);
    -00039 void process_modes(char **parameters,userrec* user,chanrec *chan,int status, int pcnt, bool servermode, bool silent, bool local);
    -00040 bool allowed_umode(char umode, char* sourcemodes,bool adding);
    -00041 bool process_module_umode(char umode, userrec* source, void* dest, bool adding);
    -00042 void handle_mode(char **parameters, int pcnt, userrec *user);
    -00043 void server_mode(char **parameters, int pcnt, userrec *user);
    -00044 void merge_mode(char **parameters, int pcnt);
    -00045 void merge_mode2(char **parameters, int pcnt, userrec* user);
    -00046 
    -00047 
    -00048 #endif
    -

    Generated on Mon May 30 05:15:19 2005 for InspIRCd by + + + +

    mode.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 __MODE_H
    +00018 #define __MODE_H
    +00019 
    +00020 // include the common header files
    +00021 
    +00022 #include <typeinfo>
    +00023 #include <iostream>
    +00024 #include <string>
    +00025 #include <deque>
    +00026 #include <sstream>
    +00027 #include <vector>
    +00028 #include "users.h"
    +00029 #include "channels.h"
    +00030 
    +00031 char* give_ops(userrec *user,char *dest,chanrec *chan,int status);
    +00032 char* give_hops(userrec *user,char *dest,chanrec *chan,int status);
    +00033 char* give_voice(userrec *user,char *dest,chanrec *chan,int status);
    +00034 char* take_ops(userrec *user,char *dest,chanrec *chan,int status);
    +00035 char* take_hops(userrec *user,char *dest,chanrec *chan,int status);
    +00036 char* take_voice(userrec *user,char *dest,chanrec *chan,int status);
    +00037 char* add_ban(userrec *user,char *dest,chanrec *chan,int status);
    +00038 char* take_ban(userrec *user,char *dest,chanrec *chan,int status);
    +00039 void process_modes(char **parameters,userrec* user,chanrec *chan,int status, int pcnt, bool servermode, bool silent, bool local);
    +00040 bool allowed_umode(char umode, char* sourcemodes,bool adding);
    +00041 bool process_module_umode(char umode, userrec* source, void* dest, bool adding);
    +00042 void handle_mode(char **parameters, int pcnt, userrec *user);
    +00043 void server_mode(char **parameters, int pcnt, userrec *user);
    +00044 void merge_mode(char **parameters, int pcnt);
    +00045 void merge_mode2(char **parameters, int pcnt, userrec* user);
    +00046 
    +00047 
    +00048 #endif
    +

    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/mode_8h.html b/docs/module-doc/mode_8h.html index d8d40dfdf..5d453ab00 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -1,109 +1,111 @@ - + InspIRCd: mode.h File Reference - - + + +

    mode.h File Reference

    #include <typeinfo>
    #include <iostream>
    #include <string>
    #include <deque>
    #include <sstream>
    #include <vector>
    -#include "users.h"
    -#include "channels.h"
    +#include "users.h"
    +#include "channels.h"

    -Include dependency graph for mode.h:

    Include dependency graph
    +Include dependency graph for mode.h:

    - - + + +

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

    Included by dependency graph
    +This graph shows which files directly or indirectly include this file:

    - - + +

    -Go to the source code of this file. +Go to the source code of this file.
    - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - +

    Functions

    char * give_ops (userrec *user, char *dest, chanrec *chan, int status)

    Functions

    char * give_ops (userrec *user, char *dest, chanrec *chan, int status)
    char * give_hops (userrec *user, char *dest, chanrec *chan, int status)
    char * give_hops (userrec *user, char *dest, chanrec *chan, int status)
    char * give_voice (userrec *user, char *dest, chanrec *chan, int status)
    char * give_voice (userrec *user, char *dest, chanrec *chan, int status)
    char * take_ops (userrec *user, char *dest, chanrec *chan, int status)
    char * take_ops (userrec *user, char *dest, chanrec *chan, int status)
    char * take_hops (userrec *user, char *dest, chanrec *chan, int status)
    char * take_hops (userrec *user, char *dest, chanrec *chan, int status)
    char * take_voice (userrec *user, char *dest, chanrec *chan, int status)
    char * take_voice (userrec *user, char *dest, chanrec *chan, int status)
    char * add_ban (userrec *user, char *dest, chanrec *chan, int status)
    char * add_ban (userrec *user, char *dest, chanrec *chan, int status)
    char * take_ban (userrec *user, char *dest, chanrec *chan, int status)
    char * take_ban (userrec *user, char *dest, chanrec *chan, int status)
    void process_modes (char **parameters, userrec *user, chanrec *chan, int status, int pcnt, bool servermode, bool silent, bool local)
    void process_modes (char **parameters, userrec *user, chanrec *chan, int status, int pcnt, bool servermode, bool silent, bool local)
    bool allowed_umode (char umode, char *sourcemodes, bool adding)
    bool allowed_umode (char umode, char *sourcemodes, bool adding)
    bool process_module_umode (char umode, userrec *source, void *dest, bool adding)
    bool process_module_umode (char umode, userrec *source, void *dest, bool adding)
    void handle_mode (char **parameters, int pcnt, userrec *user)
    void handle_mode (char **parameters, int pcnt, userrec *user)
    void server_mode (char **parameters, int pcnt, userrec *user)
    void server_mode (char **parameters, int pcnt, userrec *user)
    void merge_mode (char **parameters, int pcnt)
    void merge_mode (char **parameters, int pcnt)
    void merge_mode2 (char **parameters, int pcnt, userrec *user)
    void merge_mode2 (char **parameters, int pcnt, userrec *user)


    Function Documentation

    -

    - +

    +

    - + - - + + - - + + - - + + - + -
    char* add_ban char* add_ban userrec user,
    char *  dest,
    chanrec chan,
    int  status
    - +
      @@ -114,40 +116,39 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + - - + + - - + + - + -
    bool allowed_umode bool allowed_umode char  umode,
    char *  sourcemodes,
    bool  adding
    - +
      @@ -158,46 +159,45 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + - - + + - - + + - - + + - + -
    char* give_hops char* give_hops userrec user,
    char *  dest,
    chanrec chan,
    int  status
    - +
      @@ -208,46 +208,45 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + - - + + - - + + - - + + - + -
    char* give_ops char* give_ops userrec user,
    char *  dest,
    chanrec chan,
    int  status
    - +
      @@ -258,46 +257,45 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + - - + + - - + + - - + + - + -
    char* give_voice char* give_voice userrec user,
    char *  dest,
    chanrec chan,
    int  status
    - +
      @@ -308,40 +306,39 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + - - + + - - + + - + -
    void handle_mode void handle_mode char **  parameters,
    int  pcnt,
    userrec user
    - +
      @@ -352,34 +349,33 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + - - + + - + -
    void merge_mode void merge_mode char **  parameters,
    int  pcnt
    - +
      @@ -390,40 +386,39 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + - - + + - - + + - + -
    void merge_mode2 void merge_mode2 char **  parameters,
    int  pcnt,
    userrec user
    - +
      @@ -434,70 +429,69 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + -
    void process_modes void process_modes char **  parameters,
    userrec user,
    chanrec chan,
    int  status,
    int  pcnt,
    bool  servermode,
    bool  silent,
    bool  local
    - +
      @@ -508,46 +502,45 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + - - + + - - + + - - + + - + -
    bool process_module_umode bool process_module_umode char  umode,
    userrec source,
    void *  dest,
    bool  adding
    - +
      @@ -558,40 +551,39 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + - - + + - - + + - + -
    void server_mode void server_mode char **  parameters,
    int  pcnt,
    userrec user
    - +
    + +

    +Referenced by Server::SendMode().

      @@ -599,49 +591,50 @@ This graph shows which files directly or indirectly include this file:

    -

    -

    - +

    +

    - + - - + + - - + + - - + + - + -
    char* take_ban char* take_ban userrec user,
    char *  dest,
    chanrec chan,
    int  status
    - +
      @@ -652,46 +645,45 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + - - + + - - + + - - + + - + -
    char* take_hops char* take_hops userrec user,
    char *  dest,
    chanrec chan,
    int  status
    - +
      @@ -702,46 +694,45 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + - - + + - - + + - - + + - + -
    char* take_ops char* take_ops userrec user,
    char *  dest,
    chanrec chan,
    int  status
    - +
      @@ -752,46 +743,45 @@ This graph shows which files directly or indirectly include this file:

    -

    - +

    +

    - + - - + + - - + + - - + + - + -
    char* take_voice char* take_voice userrec user,
    char *  dest,
    chanrec chan,
    int  status
    - +
      @@ -802,9 +792,8 @@ This graph shows which files directly or indirectly include this file:

    -


    Generated on Mon May 30 05:15:53 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/mode_8h__dep__incl.gif b/docs/module-doc/mode_8h__dep__incl.gif index 9f13f2495..c6b18b5cb 100644 Binary files a/docs/module-doc/mode_8h__dep__incl.gif and b/docs/module-doc/mode_8h__dep__incl.gif differ diff --git a/docs/module-doc/mode_8h__dep__incl.map b/docs/module-doc/mode_8h__dep__incl.map new file mode 100644 index 000000000..5d61f5f98 --- /dev/null +++ b/docs/module-doc/mode_8h__dep__incl.map @@ -0,0 +1,3 @@ +base referer +rect $channels_8cpp-source.html 123,7 221,34 +rect $modules_8cpp-source.html 123,58 221,84 diff --git a/docs/module-doc/mode_8h__dep__incl.md5 b/docs/module-doc/mode_8h__dep__incl.md5 new file mode 100644 index 000000000..e98ddad91 --- /dev/null +++ b/docs/module-doc/mode_8h__dep__incl.md5 @@ -0,0 +1 @@ +fd59f64e403f74c533d4d585052df75c \ No newline at end of file diff --git a/docs/module-doc/mode_8h__incl.gif b/docs/module-doc/mode_8h__incl.gif index 8fb54ecf1..e9c7fb03a 100644 Binary files a/docs/module-doc/mode_8h__incl.gif and b/docs/module-doc/mode_8h__incl.gif differ diff --git a/docs/module-doc/mode_8h__incl.map b/docs/module-doc/mode_8h__incl.map new file mode 100644 index 000000000..c4bd501fa --- /dev/null +++ b/docs/module-doc/mode_8h__incl.map @@ -0,0 +1,4 @@ +base referer +rect $users_8h-source.html 127,260 191,287 +rect $channels_8h-source.html 251,210 336,236 +rect $connection_8h-source.html 244,362 343,388 diff --git a/docs/module-doc/mode_8h__incl.md5 b/docs/module-doc/mode_8h__incl.md5 new file mode 100644 index 000000000..a5d5a9523 --- /dev/null +++ b/docs/module-doc/mode_8h__incl.md5 @@ -0,0 +1 @@ +e60a56359f355b23ad1b5e5f66fd3fe7 \ No newline at end of file diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index 51b7ddda5..bfedc2754 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -1,1034 +1,1010 @@ - + InspIRCd: modules.cpp Source File - - -

    modules.cpp

    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 using namespace std;
    -00018 
    -00019 #include "inspircd_config.h"
    -00020 #include "inspircd.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 "connection.h"
    -00048 #include "users.h"
    -00049 #include "servers.h"
    -00050 #include "ctables.h"
    -00051 #include "globals.h"
    -00052 #include "modules.h"
    -00053 #include "dynamic.h"
    -00054 #include "wildcard.h"
    -00055 #include "message.h"
    -00056 #include "mode.h"
    -00057 #include "xline.h"
    -00058 #include "commands.h"
    -00059 #include "inspstring.h"
    -00060 #include "helperfuncs.h"
    -00061 #include "hashcomp.h"
    -00062 
    -00063 #ifdef USE_KQUEUE
    -00064 extern int kq;
    -00065 #endif
    -00066 
    -00067 #ifdef USE_EPOLL
    -00068 int ep;
    -00069 #endif
    -00070 
    -00071 extern int MODCOUNT;
    -00072 extern std::vector<Module*> modules;
    -00073 extern std::vector<ircd_module*> factory;
    -00074 
    -00075 extern std::vector<std::string> include_stack;
    -00076 
    -00077 extern time_t TIME;
    -00078 
    -00079 extern int LogLevel;
    -00080 extern char ServerName[MAXBUF];
    -00081 extern char Network[MAXBUF];
    -00082 extern char ServerDesc[MAXBUF];
    -00083 extern char AdminName[MAXBUF];
    -00084 extern char AdminEmail[MAXBUF];
    -00085 extern char AdminNick[MAXBUF];
    -00086 extern char diepass[MAXBUF];
    -00087 extern char restartpass[MAXBUF];
    -00088 extern char motd[MAXBUF];
    -00089 extern char rules[MAXBUF];
    -00090 extern char list[MAXBUF];
    -00091 extern char PrefixQuit[MAXBUF];
    -00092 extern char DieValue[MAXBUF];
    -00093 
    -00094 extern int debugging;
    -00095 extern int WHOWAS_STALE;
    -00096 extern int WHOWAS_MAX;
    -00097 extern int DieDelay;
    -00098 extern time_t startup_time;
    -00099 extern int NetBufferSize;
    -00100 extern int MaxWhoResults;
    -00101 extern time_t nb_start;
    -00102 
    -00103 extern std::vector<std::string> module_names;
    -00104 
    -00105 extern int boundPortCount;
    -00106 extern int portCount;
    -00107 extern int SERVERportCount;
    -00108 extern int ports[MAXSOCKS];
    -00109 extern int defaultRoute;
    -00110 
    -00111 extern std::vector<long> auth_cookies;
    -00112 extern std::stringstream config_f;
    -00113 
    -00114 extern serverrec* me[32];
    -00115 
    -00116 extern FILE *log_file;
    -00117 
    -00118 extern userrec* fd_ref_table[65536];
    -00119 
    -00120 typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash;
    -00121 typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash;
    -00122 typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache;
    -00123 typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash;
    -00124 typedef std::deque<command_t> command_table;
    -00125 
    -00126 
    -00127 extern user_hash clientlist;
    -00128 extern chan_hash chanlist;
    -00129 extern whowas_hash whowas;
    -00130 extern command_table cmdlist;
    -00131 extern file_cache MOTD;
    -00132 extern file_cache RULES;
    -00133 extern address_cache IP;
    -00134 
    -00135 
    -00136 // class type for holding an extended mode character - internal to core
    -00137 
    -00138 class ExtMode : public classbase
    -00139 {
    -00140 public:
    -00141         char modechar;
    -00142         int type;
    -00143         int params_when_on;
    -00144         int params_when_off;
    -00145         bool needsoper;
    -00146         bool list;
    -00147         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) { };
    -00148 };                                     
    -00149 
    -00150 typedef std::vector<ExtMode> ExtModeList;
    -00151 typedef ExtModeList::iterator ExtModeListIter;
    -00152 
    -00153 
    -00154 ExtModeList EMode;
    -00155 
    -00156 // returns true if an extended mode character is in use
    -00157 bool ModeDefined(char modechar, int type)
    -00158 {
    -00159         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00160         {
    -00161                 if ((i->modechar == modechar) && (i->type == type))
    -00162                 {
    -00163                         return true;
    -00164                 }
    -00165         }
    -00166         return false;
    -00167 }
    -00168 
    -00169 bool ModeIsListMode(char modechar, int type)
    -00170 {
    -00171         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00172         {
    -00173                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
    -00174                 {
    -00175                         return true;
    -00176                 }
    -00177         }
    -00178         return false;
    -00179 }
    -00180 
    -00181 bool ModeDefinedOper(char modechar, int type)
    -00182 {
    -00183         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00184         {
    -00185                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    -00186                 {
    -00187                         return true;
    -00188                 }
    -00189         }
    -00190         return false;
    -00191 }
    -00192 
    -00193 // returns number of parameters for a custom mode when it is switched on
    -00194 int ModeDefinedOn(char modechar, int type)
    -00195 {
    -00196         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00197         {
    -00198                 if ((i->modechar == modechar) && (i->type == type))
    -00199                 {
    -00200                         return i->params_when_on;
    -00201                 }
    -00202         }
    -00203         return 0;
    -00204 }
    -00205 
    -00206 // returns number of parameters for a custom mode when it is switched on
    -00207 int ModeDefinedOff(char modechar, int type)
    -00208 {
    -00209         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00210         {
    -00211                 if ((i->modechar == modechar) && (i->type == type))
    -00212                 {
    -00213                         return i->params_when_off;
    -00214                 }
    -00215         }
    -00216         return 0;
    -00217 }
    -00218 
    -00219 // returns true if an extended mode character is in use
    -00220 bool DoAddExtendedMode(char modechar, int type, bool requires_oper, int params_on, int params_off)
    -00221 {
    -00222         if (ModeDefined(modechar,type)) {
    -00223                 return false;
    -00224         }
    -00225         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    -00226         return true;
    -00227 }
    -00228 
    -00229 // turns a mode into a listmode
    -00230 void ModeMakeList(char modechar)
    -00231 {
    -00232         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00233         {
    -00234                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    -00235                 {
    -00236                         i->list = true;
    -00237                         return;
    -00238                 }
    -00239         }
    -00240         return;
    -00241 }
    -00242 
    -00243 // version is a simple class for holding a modules version number
    -00244 
    -00245 Version::Version(int major, int minor, int revision, int build, int flags) : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { };
    -00246 
    -00247 // admin is a simple class for holding a server's administrative info
    -00248 
    -00249 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { };
    -00250 
    -00251 Request::Request(char* anydata, Module* src, Module* dst) : data(anydata), source(src), dest(dst) { };
    -00252 
    -00253 char* Request::GetData()
    -00254 {
    -00255         return this->data;
    -00256 }
    -00257 
    -00258 Module* Request::GetSource()
    -00259 {
    -00260         return this->source;
    -00261 }
    -00262 
    -00263 Module* Request::GetDest()
    -00264 {
    -00265         return this->dest;
    -00266 }
    -00267 
    -00268 char* Request::Send()
    -00269 {
    -00270         if (this->dest)
    -00271         {
    -00272                 return dest->OnRequest(this);
    -00273         }
    -00274         else
    -00275         {
    -00276                 return NULL;
    -00277         }
    -00278 }
    -00279 
    -00280 Event::Event(char* anydata, Module* src, std::string eventid) : data(anydata), source(src), id(eventid) { };
    -00281 
    -00282 char* Event::GetData()
    -00283 {
    -00284         return this->data;
    -00285 }
    -00286 
    -00287 Module* Event::GetSource()
    -00288 {
    -00289         return this->source;
    -00290 }
    -00291 
    -00292 char* Event::Send()
    -00293 {
    -00294         FOREACH_MOD OnEvent(this);
    -00295         return NULL;
    -00296 }
    -00297 
    -00298 std::string Event::GetEventID()
    -00299 {
    -00300         return this->id;
    -00301 }
    -00302 
    -00303 
    -00304 // These declarations define the behavours of the base class Module (which does nothing at all)
    -00305                 Module::Module() { }
    -00306                 Module::~Module() { }
    -00307 void            Module::OnUserConnect(userrec* user) { }
    -00308 void            Module::OnUserQuit(userrec* user) { }
    -00309 void            Module::OnUserDisconnect(userrec* user) { }
    -00310 void            Module::OnUserJoin(userrec* user, chanrec* channel) { }
    -00311 void            Module::OnUserPart(userrec* user, chanrec* channel) { }
    -00312 void            Module::OnPacketTransmit(std::string &data, std::string serv) { }
    -00313 void            Module::OnPacketReceive(std::string &data, std::string serv) { }
    -00314 void            Module::OnRehash() { }
    -00315 void            Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { }
    -00316 int             Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; }
    -00317 int             Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; }
    -00318 Version         Module::GetVersion() { return Version(1,0,0,0,VF_VENDOR); }
    -00319 void            Module::OnOper(userrec* user) { };
    -00320 void            Module::OnInfo(userrec* user) { };
    -00321 void            Module::OnWhois(userrec* source, userrec* dest) { };
    -00322 int             Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; };
    -00323 int             Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; };
    -00324 int             Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; };
    -00325 int             Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; };
    -00326 void            Module::OnUserPostNick(userrec* user, std::string oldnick) { };
    -00327 int             Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; };
    -00328 string_list     Module::OnUserSync(userrec* user) { string_list empty; return empty; }
    -00329 string_list     Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; }
    -00330 void            Module::On005Numeric(std::string &output) { };
    -00331 int             Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; };
    -00332 void            Module::OnLoadModule(Module* mod,std::string name) { };
    -00333 void            Module::OnBackgroundTimer(time_t curtime) { };
    -00334 void            Module::OnSendList(userrec* user, chanrec* channel, char mode) { };
    -00335 int             Module::OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user) { return 0; };
    -00336 bool            Module::OnCheckReady(userrec* user) { return true; };
    -00337 void            Module::OnUserRegister(userrec* user) { };
    -00338 int             Module::OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { return 0; };
    -00339 void            Module::OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { };
    -00340 int             Module::OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt) { return 0; };
    -00341 int             Module::OnCheckInvite(userrec* user, chanrec* chan) { return 0; };
    -00342 int             Module::OnCheckKey(userrec* user, chanrec* chan, std::string keygiven) { return 0; };
    -00343 int             Module::OnCheckLimit(userrec* user, chanrec* chan) { return 0; };
    -00344 int             Module::OnCheckBan(userrec* user, chanrec* chan) { return 0; };
    -00345 void            Module::OnStats(char symbol) { };
    -00346 int             Module::OnChangeLocalUserHost(userrec* user, std::string newhost) { return 0; };
    -00347 int             Module::OnChangeLocalUserGECOS(userrec* user, std::string newhost) { return 0; };
    -00348 int             Module::OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { return 0; };
    -00349 int             Module::OnMeshToken(char token,string_list params,serverrec* source,serverrec* reply, std::string tcp_host,std::string ipaddr,int port) { return 0; };
    -00350 void            Module::OnEvent(Event* event) { return; };
    -00351 char*           Module::OnRequest(Request* request) { return NULL; };
    -00352 int             Module::OnOperCompare(std::string password, std::string input) { return 0; };
    -00353 void            Module::OnGlobalOper(userrec* user) { };
    -00354 void            Module::OnGlobalConnect(userrec* user) { };
    -00355 int             Module::OnAddBan(userrec* source, chanrec* channel,std::string banmask) { return 0; };
    -00356 int             Module::OnDelBan(userrec* source, chanrec* channel,std::string banmask) { return 0; };
    -00357 void            Module::OnRawSocketAccept(int fd, std::string ip, int localport) { };
    -00358 int             Module::OnRawSocketWrite(int fd, char* buffer, int count) { return 0; };
    -00359 void            Module::OnRawSocketClose(int fd) { };
    -00360 int             Module::OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult) { return 0; };
    -00361 
    -00362 // server is a wrapper class that provides methods to all of the C-style
    -00363 // exports in the core
    -00364 //
    -00365 
    -00366 Server::Server()
    -00367 {
    -00368 }
    -00369 
    -00370 Server::~Server()
    -00371 {
    -00372 }
    -00373 
    -00374 void Server::SendOpers(std::string s)
    -00375 {
    -00376         WriteOpers("%s",s.c_str());
    -00377 }
    -00378 
    -00379 bool Server::MatchText(std::string sliteral, std::string spattern)
    -00380 {
    -00381         char literal[MAXBUF],pattern[MAXBUF];
    -00382         strlcpy(literal,sliteral.c_str(),MAXBUF);
    -00383         strlcpy(pattern,spattern.c_str(),MAXBUF);
    -00384         return match(literal,pattern);
    -00385 }
    -00386 
    -00387 void Server::SendToModeMask(std::string modes, int flags, std::string text)
    -00388 {
    -00389         WriteMode(modes.c_str(),flags,"%s",text.c_str());
    -00390 }
    -00391 
    -00392 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key)
    -00393 {
    -00394         return add_channel(user,cname.c_str(),key.c_str(),false);
    -00395 }
    -00396 
    -00397 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason)
    -00398 {
    -00399         return del_channel(user,cname.c_str(),reason.c_str(),false);
    -00400 }
    -00401 
    -00402 chanuserlist Server::GetUsers(chanrec* chan)
    -00403 {
    -00404         chanuserlist userl;
    -00405         userl.clear();
    -00406         std::vector<char*> *list = chan->GetUsers();
    -00407         for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++)
    -00408         {
    -00409                 char* o = *i;
    -00410                 userl.push_back((userrec*)o);
    -00411         }
    -00412         return userl;
    -00413 }
    -00414 void Server::ChangeUserNick(userrec* user, std::string nickname)
    -00415 {
    -00416         force_nickchange(user,nickname.c_str());
    -00417 }
    -00418 
    -00419 void Server::QuitUser(userrec* user, std::string reason)
    -00420 {
    -00421         kill_link(user,reason.c_str());
    -00422 }
    -00423 
    -00424 bool Server::IsUlined(std::string server)
    -00425 {
    -00426         return is_uline(server.c_str());
    -00427 }
    -00428 
    -00429 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user)
    -00430 {
    -00431         call_handler(commandname.c_str(),parameters,pcnt,user);
    -00432 }
    -00433 
    -00434 void Server::Log(int level, std::string s)
    -00435 {
    -00436         log(level,"%s",s.c_str());
    -00437 }
    -00438 
    -00439 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source)
    -00440 {
    -00441         createcommand(cmd,f,flags,minparams,source);
    -00442 }
    -00443 
    -00444 void Server::SendMode(char **parameters, int pcnt, userrec *user)
    -00445 {
    -00446         server_mode(parameters,pcnt,user);
    -00447 }
    -00448 
    -00449 void Server::Send(int Socket, std::string s)
    -00450 {
    -00451         Write(Socket,"%s",s.c_str());
    -00452 }
    -00453 
    -00454 void Server::SendServ(int Socket, std::string s)
    -00455 {
    -00456         WriteServ(Socket,"%s",s.c_str());
    -00457 }
    -00458 
    -00459 void Server::SendFrom(int Socket, userrec* User, std::string s)
    -00460 {
    -00461         WriteFrom(Socket,User,"%s",s.c_str());
    -00462 }
    -00463 
    -00464 void Server::SendTo(userrec* Source, userrec* Dest, std::string s)
    -00465 {
    -00466         if (!Source)
    -00467         {
    -00468                 // if source is NULL, then the message originates from the local server
    -00469                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
    -00470         }
    -00471         else
    -00472         {
    -00473                 // otherwise it comes from the user specified
    -00474                 WriteTo(Source,Dest,"%s",s.c_str());
    -00475         }
    -00476 }
    -00477 
    -00478 void Server::SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text)
    -00479 {
    -00480         WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str());
    -00481 }
    -00482 
    -00483 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender)
    -00484 {
    -00485         if (IncludeSender)
    -00486         {
    -00487                 WriteChannel(Channel,User,"%s",s.c_str());
    -00488         }
    -00489         else
    -00490         {
    -00491                 ChanExceptSender(Channel,User,"%s",s.c_str());
    -00492         }
    -00493 }
    -00494 
    -00495 bool Server::CommonChannels(userrec* u1, userrec* u2)
    -00496 {
    -00497         return (common_channels(u1,u2) != 0);
    -00498 }
    -00499 
    -00500 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender)
    -00501 {
    -00502         if (IncludeSender)
    -00503         {
    -00504                 WriteCommon(User,"%s",text.c_str());
    -00505         }
    -00506         else
    -00507         {
    -00508                 WriteCommonExcept(User,"%s",text.c_str());
    -00509         }
    -00510 }
    -00511 
    -00512 void Server::SendWallops(userrec* User, std::string text)
    -00513 {
    -00514         WriteWallOps(User,false,"%s",text.c_str());
    -00515 }
    -00516 
    -00517 void Server::ChangeHost(userrec* user, std::string host)
    -00518 {
    -00519         ChangeDisplayedHost(user,host.c_str());
    -00520 }
    -00521 
    -00522 void Server::ChangeGECOS(userrec* user, std::string gecos)
    -00523 {
    -00524         ChangeName(user,gecos.c_str());
    -00525 }
    -00526 
    -00527 bool Server::IsNick(std::string nick)
    -00528 {
    -00529         return (isnick(nick.c_str()) != 0);
    -00530 }
    -00531 
    -00532 userrec* Server::FindNick(std::string nick)
    -00533 {
    -00534         return Find(nick);
    -00535 }
    -00536 
    -00537 userrec* Server::FindDescriptor(int socket)
    -00538 {
    -00539         return (socket < 65536 ? fd_ref_table[socket] : NULL);
    -00540 }
    -00541 
    -00542 chanrec* Server::FindChannel(std::string channel)
    -00543 {
    -00544         return FindChan(channel.c_str());
    -00545 }
    -00546 
    -00547 std::string Server::ChanMode(userrec* User, chanrec* Chan)
    -00548 {
    -00549         return cmode(User,Chan);
    -00550 }
    -00551 
    -00552 bool Server::IsOnChannel(userrec* User, chanrec* Chan)
    -00553 {
    -00554         return has_channel(User,Chan);
    -00555 }
    -00556 
    -00557 std::string Server::GetServerName()
    -00558 {
    -00559         return getservername();
    -00560 }
    -00561 
    -00562 std::string Server::GetNetworkName()
    -00563 {
    -00564         return getnetworkname();
    -00565 }
    -00566 
    -00567 std::string Server::GetServerDescription()
    -00568 {
    -00569         return getserverdesc();
    -00570 }
    -00571 
    -00572 Admin Server::GetAdmin()
    -00573 {
    -00574         return Admin(getadminname(),getadminemail(),getadminnick());
    -00575 }
    -00576 
    -00577 
    -00578 
    -00579 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)
    -00580 {
    -00581         if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z')))
    -00582         {
    -00583                 if (type == MT_SERVER)
    -00584                 {
    -00585                         log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
    -00586                         return false;
    -00587                 }
    -00588                 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
    -00589                 {
    -00590                         log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
    -00591                         return false;
    -00592                 }
    -00593                 if ((params_when_on>1) || (params_when_off>1))
    -00594                 {
    -00595                         log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
    -00596                         return false;
    -00597                 }
    -00598                 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
    -00599         }
    -00600         else
    -00601         {
    -00602                 log(DEBUG,"*** API ERROR *** Muppet modechar detected.");
    -00603         }
    -00604         return false;
    -00605 }
    -00606 
    -00607 bool Server::AddExtendedListMode(char modechar)
    -00608 {
    -00609         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
    -00610         if (res)
    -00611                 ModeMakeList(modechar);
    -00612         return res;
    -00613 }
    -00614 
    -00615 int Server::CountUsers(chanrec* c)
    -00616 {
    -00617         return usercount(c);
    -00618 }
    -00619 
    -00620 
    -00621 bool Server::UserToPseudo(userrec* user,std::string message)
    -00622 {
    -00623         unsigned int old_fd = user->fd;
    -00624         user->fd = FD_MAGIC_NUMBER;
    -00625         user->ClearBuffer();
    -00626         Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str());
    -00627 #ifdef USE_KQUEUE
    -00628         struct kevent ke;
    -00629         EV_SET(&ke, old_fd, EVFILT_READ, EV_DELETE, 0, 0, NULL);
    -00630         int i = kevent(kq, &ke, 1, 0, 0, NULL);
    -00631         if (i == -1)
    -00632         {
    -00633                 log(DEBUG,"kqueue: Failed to remove user from queue!");
    -00634         }
    -00635 #endif
    -00636 #ifdef USE_EPOLL
    -00637         struct epoll_event ev;
    -00638         ev.events = EPOLLIN | EPOLLET;
    -00639         ev.data.fd = old_fd;
    -00640         int i = epoll_ctl(ep, EPOLL_CTL_DEL, old_fd, &ev);
    -00641         if (i < 0)
    -00642         {
    -00643                 log(DEBUG,"epoll: List deletion failure!");
    -00644         }
    -00645 #endif
    -00646 
    -00647         shutdown(old_fd,2);
    -00648         close(old_fd);
    -00649 }
    -00650 
    -00651 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message)
    -00652 {
    -00653         zombie->fd = alive->fd;
    -00654         alive->fd = FD_MAGIC_NUMBER;
    -00655         alive->ClearBuffer();
    -00656         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
    -00657         kill_link(alive,message.c_str());
    -00658         fd_ref_table[zombie->fd] = zombie;
    -00659         for (int i = 0; i != MAXCHANS; i++)
    -00660         {
    -00661                 if (zombie->chans[i].channel != NULL)
    -00662                 {
    -00663                         if (zombie->chans[i].channel->name)
    -00664                         {
    -00665                                 chanrec* Ptr = zombie->chans[i].channel;
    -00666                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
    -00667                                 if (Ptr->topicset)
    -00668                                 {
    -00669                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
    -00670                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
    -00671                                 }
    -00672                                 userlist(zombie,Ptr);
    -00673                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
    -00674 
    -00675                         }
    -00676                 }
    -00677         }
    -00678 
    -00679 }
    -00680 
    -00681 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask)
    -00682 {
    -00683         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
    -00684 }
    -00685 
    -00686 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname)
    -00687 {
    -00688         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
    -00689 }
    -00690 
    -00691 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr)
    -00692 {
    -00693         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
    -00694 }
    -00695 
    -00696 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask)
    -00697 {
    -00698         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
    -00699 }
    -00700 
    -00701 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask)
    -00702 {
    -00703         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
    -00704 }
    -00705 
    -00706 bool Server::DelGLine(std::string hostmask)
    -00707 {
    -00708         del_gline(hostmask.c_str());
    -00709 }
    -00710 
    -00711 bool Server::DelQLine(std::string nickname)
    -00712 {
    -00713         del_qline(nickname.c_str());
    -00714 }
    -00715 
    -00716 bool Server::DelZLine(std::string ipaddr)
    -00717 {
    -00718         del_zline(ipaddr.c_str());
    -00719 }
    -00720 
    -00721 bool Server::DelKLine(std::string hostmask)
    -00722 {
    -00723         del_kline(hostmask.c_str());
    -00724 }
    -00725 
    -00726 bool Server::DelELine(std::string hostmask)
    -00727 {
    -00728         del_eline(hostmask.c_str());
    -00729 }
    -00730 
    -00731 long Server::CalcDuration(std::string delta)
    -00732 {
    -00733         return duration(delta.c_str());
    -00734 }
    -00735 
    -00736 bool Server::IsValidMask(std::string mask)
    -00737 {
    -00738         const char* dest = mask.c_str();
    -00739         if (strchr(dest,'!')==0)
    -00740                 return false;
    -00741         if (strchr(dest,'@')==0)
    -00742                 return false;
    -00743         for (int i = 0; i < strlen(dest); i++)
    -00744                 if (dest[i] < 32)
    -00745                         return false;
    -00746         for (int i = 0; i < strlen(dest); i++)
    -00747                 if (dest[i] > 126)
    -00748                         return false;
    -00749         int c = 0;
    -00750         for (int i = 0; i < strlen(dest); i++)
    -00751                 if (dest[i] == '!')
    -00752                         c++;
    -00753         if (c>1)
    -00754                 return false;
    -00755         c = 0;
    -00756         for (int i = 0; i < strlen(dest); i++)
    -00757                 if (dest[i] == '@')
    -00758                         c++;
    -00759         if (c>1)
    -00760                 return false;
    -00761 
    -00762         return true;
    -00763 }
    -00764 
    -00765 void Server::MeshSendAll(std::string text)
    -00766 {
    -00767         NetSendToAll((char*)text.c_str());
    -00768 }
    -00769 
    -00770 void Server::MeshSendCommon(userrec* user, std::string text)
    -00771 {
    -00772         if (user)
    -00773                 NetSendToCommon(user,(char*)text.c_str());
    -00774 }
    -00775 
    -00776 void Server::MeshSendAllAlive(std::string text)
    -00777 {
    -00778         NetSendToAllAlive((char*)text.c_str());
    -00779 }
    -00780 
    -00781 void Server::MeshSendUnicast(std::string destination, std::string text)
    -00782 {
    -00783         NetSendToOne((char*)destination.c_str(),(char*)text.c_str());
    -00784 }
    -00785 
    -00786 void Server::MeshSendAllExcept(std::string target, std::string text)
    -00787 {
    -00788         NetSendToAllExcept(target.c_str(),(char*)text.c_str());
    -00789 }
    -00790 
    -00791 bool Server::MeshCheckChan(chanrec *c,std::string servername)
    -00792 {
    -00793         if (c)
    -00794         {
    -00795                 return ChanAnyOnThisServer(c,(char*)servername.c_str());
    -00796         }
    -00797         else return false;
    -00798 }
    -00799 
    -00800 bool Server::MeshCheckCommon(userrec* u,std::string servername)
    -00801 {
    -00802         if (u)
    -00803         {
    -00804                 return CommonOnThisServer(u,(char*)servername.c_str());
    -00805         }
    -00806         else return false;
    -00807 }
    -00808 
    -00809 Module* Server::FindModule(std::string name)
    -00810 {
    -00811         for (int i = 0; i <= MODCOUNT; i++)
    -00812         {
    -00813                 if (module_names[i] == name)
    -00814                 {
    -00815                         return modules[i];
    -00816                 }
    -00817         }
    -00818         return NULL;
    -00819 }
    -00820 
    -00821 ConfigReader::ConfigReader()
    -00822 {
    -00823         include_stack.clear();
    -00824         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
    -00825         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
    -00826         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
    -00827         if (!this->readerror)
    -00828                 this->error = CONF_FILE_NOT_FOUND;
    -00829 }
    -00830 
    -00831 
    -00832 ConfigReader::~ConfigReader()
    -00833 {
    -00834         if (this->cache)
    -00835                 delete this->cache;
    -00836         if (this->errorlog)
    -00837                 delete this->errorlog;
    -00838 }
    -00839 
    -00840 
    -00841 ConfigReader::ConfigReader(std::string filename)
    -00842 {
    -00843         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
    -00844         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
    -00845         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
    -00846         if (!this->readerror)
    -00847                 this->error = CONF_FILE_NOT_FOUND;
    -00848 };
    -00849 
    -00850 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index)
    -00851 {
    -00852         char val[MAXBUF];
    -00853         char t[MAXBUF];
    -00854         char n[MAXBUF];
    -00855         strlcpy(t,tag.c_str(),MAXBUF);
    -00856         strlcpy(n,name.c_str(),MAXBUF);
    -00857         int res = ReadConf(cache,t,n,index,val);
    -00858         if (!res)
    -00859         {
    -00860                 this->error = CONF_VALUE_NOT_FOUND;
    -00861                 return "";
    -00862         }
    -00863         return val;
    -00864 }
    -00865 
    -00866 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index)
    -00867 {
    -00868         char val[MAXBUF];
    -00869         char t[MAXBUF];
    -00870         char n[MAXBUF];
    -00871         strlcpy(t,tag.c_str(),MAXBUF);
    -00872         strlcpy(n,name.c_str(),MAXBUF);
    -00873         int res = ReadConf(cache,t,n,index,val);
    -00874         if (!res)
    -00875         {
    -00876                 this->error = CONF_VALUE_NOT_FOUND;
    -00877                 return false;
    -00878         }
    -00879         std::string s = val;
    -00880         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
    -00881 }
    -00882 
    -00883 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned)
    -00884 {
    -00885         char val[MAXBUF];
    -00886         char t[MAXBUF];
    -00887         char n[MAXBUF];
    -00888         strlcpy(t,tag.c_str(),MAXBUF);
    -00889         strlcpy(n,name.c_str(),MAXBUF);
    -00890         int res = ReadConf(cache,t,n,index,val);
    -00891         if (!res)
    -00892         {
    -00893                 this->error = CONF_VALUE_NOT_FOUND;
    -00894                 return 0;
    -00895         }
    -00896         for (int i = 0; i < strlen(val); i++)
    -00897         {
    -00898                 if (!isdigit(val[i]))
    -00899                 {
    -00900                         this->error = CONF_NOT_A_NUMBER;
    -00901                         return 0;
    -00902                 }
    -00903         }
    -00904         if ((needs_unsigned) && (atoi(val)<0))
    -00905         {
    -00906                 this->error = CONF_NOT_UNSIGNED;
    -00907                 return 0;
    -00908         }
    -00909         return atoi(val);
    -00910 }
    -00911 
    -00912 long ConfigReader::GetError()
    -00913 {
    -00914         long olderr = this->error;
    -00915         this->error = 0;
    -00916         return olderr;
    -00917 }
    -00918 
    -00919 void ConfigReader::DumpErrors(bool bail, userrec* user)
    -00920 {
    -00921         if (bail)
    -00922         {
    -00923                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
    -00924                 exit(0);
    -00925         }
    -00926         else
    -00927         {
    -00928                 char dataline[1024];
    -00929                 if (user)
    -00930                 {
    -00931                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
    -00932                         while (!errorlog->eof())
    -00933                         {
    -00934                                 errorlog->getline(dataline,1024);
    -00935                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
    -00936                         }
    -00937                 }
    -00938                 else
    -00939                 {
    -00940                         WriteOpers("There were errors in the configuration file:",user->nick);
    -00941                         while (!errorlog->eof())
    -00942                         {
    -00943                                 errorlog->getline(dataline,1024);
    -00944                                 WriteOpers(dataline);
    -00945                         }
    -00946                 }
    -00947                 return;
    -00948         }
    -00949 }
    -00950 
    -00951 
    -00952 int ConfigReader::Enumerate(std::string tag)
    -00953 {
    -00954         return EnumConf(cache,tag.c_str());
    -00955 }
    -00956 
    -00957 int ConfigReader::EnumerateValues(std::string tag, int index)
    -00958 {
    -00959         return EnumValues(cache, tag.c_str(), index);
    -00960 }
    -00961 
    -00962 bool ConfigReader::Verify()
    -00963 {
    -00964         return this->readerror;
    -00965 }
    -00966 
    -00967 
    -00968 FileReader::FileReader(std::string filename)
    -00969 {
    -00970         file_cache c;
    -00971         readfile(c,filename.c_str());
    -00972         this->fc = c;
    -00973 }
    -00974 
    -00975 FileReader::FileReader()
    -00976 {
    -00977 }
    -00978 
    -00979 void FileReader::LoadFile(std::string filename)
    -00980 {
    -00981         file_cache c;
    -00982         readfile(c,filename.c_str());
    -00983         this->fc = c;
    -00984 }
    -00985 
    -00986 
    -00987 FileReader::~FileReader()
    -00988 {
    -00989 }
    -00990 
    -00991 bool FileReader::Exists()
    -00992 {
    -00993         if (fc.size() == 0)
    -00994         {
    -00995                 return(false);
    -00996         }
    -00997         else
    -00998         {
    -00999                 return(true);
    -01000         }
    -01001 }
    -01002 
    -01003 std::string FileReader::GetLine(int x)
    -01004 {
    -01005         if ((x<0) || (x>fc.size()))
    -01006                 return "";
    -01007         return fc[x];
    -01008 }
    -01009 
    -01010 int FileReader::FileSize()
    -01011 {
    -01012         return fc.size();
    -01013 }
    -01014 
    -01015 
    -01016 std::vector<Module*> modules(255);
    -01017 std::vector<ircd_module*> factory(255);
    -01018 
    -01019 int MODCOUNT  = -1;
    -01020 
    -01021 
    -

    Generated on Mon May 30 05:15:20 2005 for InspIRCd by + + + +

    modules.cpp

    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 using namespace std;
    +00018 
    +00019 #include "inspircd_config.h"
    +00020 #include "inspircd.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 
    +00062 #ifdef USE_KQUEUE
    +00063 extern int kq;
    +00064 #endif
    +00065 
    +00066 #ifdef USE_EPOLL
    +00067 int ep;
    +00068 #endif
    +00069 
    +00070 extern int MODCOUNT;
    +00071 extern std::vector<Module*> modules;
    +00072 extern std::vector<ircd_module*> factory;
    +00073 
    +00074 extern std::vector<std::string> include_stack;
    +00075 
    +00076 extern std::vector<InspSocket*> module_sockets;
    +00077 
    +00078 extern time_t TIME;
    +00079 
    +00080 extern int LogLevel;
    +00081 extern char ServerName[MAXBUF];
    +00082 extern char Network[MAXBUF];
    +00083 extern char ServerDesc[MAXBUF];
    +00084 extern char AdminName[MAXBUF];
    +00085 extern char AdminEmail[MAXBUF];
    +00086 extern char AdminNick[MAXBUF];
    +00087 extern char diepass[MAXBUF];
    +00088 extern char restartpass[MAXBUF];
    +00089 extern char motd[MAXBUF];
    +00090 extern char rules[MAXBUF];
    +00091 extern char list[MAXBUF];
    +00092 extern char PrefixQuit[MAXBUF];
    +00093 extern char DieValue[MAXBUF];
    +00094 
    +00095 extern int debugging;
    +00096 extern int WHOWAS_STALE;
    +00097 extern int WHOWAS_MAX;
    +00098 extern int DieDelay;
    +00099 extern time_t startup_time;
    +00100 extern int NetBufferSize;
    +00101 extern int MaxWhoResults;
    +00102 extern time_t nb_start;
    +00103 
    +00104 extern std::vector<std::string> module_names;
    +00105 
    +00106 extern int boundPortCount;
    +00107 extern int portCount;
    +00108 
    +00109 extern int ports[MAXSOCKS];
    +00110 
    +00111 
    +00112 
    +00113 extern std::stringstream config_f;
    +00114 
    +00115 
    +00116 
    +00117 extern FILE *log_file;
    +00118 
    +00119 extern userrec* fd_ref_table[65536];
    +00120 
    +00121 typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash;
    +00122 typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash;
    +00123 typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache;
    +00124 typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash;
    +00125 typedef std::deque<command_t> command_table;
    +00126 
    +00127 
    +00128 extern user_hash clientlist;
    +00129 extern chan_hash chanlist;
    +00130 extern whowas_hash whowas;
    +00131 extern command_table cmdlist;
    +00132 extern file_cache MOTD;
    +00133 extern file_cache RULES;
    +00134 extern address_cache IP;
    +00135 
    +00136 
    +00137 // class type for holding an extended mode character - internal to core
    +00138 
    +00139 class ExtMode : public classbase
    +00140 {
    +00141 public:
    +00142         char modechar;
    +00143         int type;
    +00144         bool needsoper;
    +00145         int params_when_on;
    +00146         int params_when_off;
    +00147         bool list;
    +00148         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) { };
    +00149 };                                     
    +00150 
    +00151 typedef std::vector<ExtMode> ExtModeList;
    +00152 typedef ExtModeList::iterator ExtModeListIter;
    +00153 
    +00154 
    +00155 ExtModeList EMode;
    +00156 
    +00157 // returns true if an extended mode character is in use
    +00158 bool ModeDefined(char modechar, int type)
    +00159 {
    +00160         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00161         {
    +00162                 if ((i->modechar == modechar) && (i->type == type))
    +00163                 {
    +00164                         return true;
    +00165                 }
    +00166         }
    +00167         return false;
    +00168 }
    +00169 
    +00170 bool ModeIsListMode(char modechar, int type)
    +00171 {
    +00172         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00173         {
    +00174                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
    +00175                 {
    +00176                         return true;
    +00177                 }
    +00178         }
    +00179         return false;
    +00180 }
    +00181 
    +00182 bool ModeDefinedOper(char modechar, int type)
    +00183 {
    +00184         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00185         {
    +00186                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    +00187                 {
    +00188                         return true;
    +00189                 }
    +00190         }
    +00191         return false;
    +00192 }
    +00193 
    +00194 // returns number of parameters for a custom mode when it is switched on
    +00195 int ModeDefinedOn(char modechar, int type)
    +00196 {
    +00197         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00198         {
    +00199                 if ((i->modechar == modechar) && (i->type == type))
    +00200                 {
    +00201                         return i->params_when_on;
    +00202                 }
    +00203         }
    +00204         return 0;
    +00205 }
    +00206 
    +00207 // returns number of parameters for a custom mode when it is switched on
    +00208 int ModeDefinedOff(char modechar, int type)
    +00209 {
    +00210         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00211         {
    +00212                 if ((i->modechar == modechar) && (i->type == type))
    +00213                 {
    +00214                         return i->params_when_off;
    +00215                 }
    +00216         }
    +00217         return 0;
    +00218 }
    +00219 
    +00220 // returns true if an extended mode character is in use
    +00221 bool DoAddExtendedMode(char modechar, int type, bool requires_oper, int params_on, int params_off)
    +00222 {
    +00223         if (ModeDefined(modechar,type)) {
    +00224                 return false;
    +00225         }
    +00226         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    +00227         return true;
    +00228 }
    +00229 
    +00230 // turns a mode into a listmode
    +00231 void ModeMakeList(char modechar)
    +00232 {
    +00233         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00234         {
    +00235                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    +00236                 {
    +00237                         i->list = true;
    +00238                         return;
    +00239                 }
    +00240         }
    +00241         return;
    +00242 }
    +00243 
    +00244 // version is a simple class for holding a modules version number
    +00245 
    +00246 Version::Version(int major, int minor, int revision, int build, int flags) : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags) { };
    +00247 
    +00248 // admin is a simple class for holding a server's administrative info
    +00249 
    +00250 Admin::Admin(std::string name, std::string email, std::string nick) : Name(name), Email(email), Nick(nick) { };
    +00251 
    +00252 Request::Request(char* anydata, Module* src, Module* dst) : data(anydata), source(src), dest(dst) { };
    +00253 
    +00254 char* Request::GetData()
    +00255 {
    +00256         return this->data;
    +00257 }
    +00258 
    +00259 Module* Request::GetSource()
    +00260 {
    +00261         return this->source;
    +00262 }
    +00263 
    +00264 Module* Request::GetDest()
    +00265 {
    +00266         return this->dest;
    +00267 }
    +00268 
    +00269 char* Request::Send()
    +00270 {
    +00271         if (this->dest)
    +00272         {
    +00273                 return dest->OnRequest(this);
    +00274         }
    +00275         else
    +00276         {
    +00277                 return NULL;
    +00278         }
    +00279 }
    +00280 
    +00281 Event::Event(char* anydata, Module* src, std::string eventid) : data(anydata), source(src), id(eventid) { };
    +00282 
    +00283 char* Event::GetData()
    +00284 {
    +00285         return this->data;
    +00286 }
    +00287 
    +00288 Module* Event::GetSource()
    +00289 {
    +00290         return this->source;
    +00291 }
    +00292 
    +00293 char* Event::Send()
    +00294 {
    +00295         FOREACH_MOD OnEvent(this);
    +00296         return NULL;
    +00297 }
    +00298 
    +00299 std::string Event::GetEventID()
    +00300 {
    +00301         return this->id;
    +00302 }
    +00303 
    +00304 
    +00305 // These declarations define the behavours of the base class Module (which does nothing at all)
    +00306                 Module::Module() { }
    +00307                 Module::~Module() { }
    +00308 void            Module::OnUserConnect(userrec* user) { }
    +00309 void            Module::OnUserQuit(userrec* user) { }
    +00310 void            Module::OnUserDisconnect(userrec* user) { }
    +00311 void            Module::OnUserJoin(userrec* user, chanrec* channel) { }
    +00312 void            Module::OnUserPart(userrec* user, chanrec* channel) { }
    +00313 void            Module::OnPacketTransmit(std::string &data, std::string serv) { }
    +00314 void            Module::OnPacketReceive(std::string &data, std::string serv) { }
    +00315 void            Module::OnRehash() { }
    +00316 void            Module::OnServerRaw(std::string &raw, bool inbound, userrec* user) { }
    +00317 int             Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; }
    +00318 int             Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; }
    +00319 Version         Module::GetVersion() { return Version(1,0,0,0,VF_VENDOR); }
    +00320 void            Module::OnOper(userrec* user) { };
    +00321 void            Module::OnInfo(userrec* user) { };
    +00322 void            Module::OnWhois(userrec* source, userrec* dest) { };
    +00323 int             Module::OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel) { return 0; };
    +00324 int             Module::OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text) { return 0; };
    +00325 int             Module::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text) { return 0; };
    +00326 int             Module::OnUserPreNick(userrec* user, std::string newnick) { return 0; };
    +00327 void            Module::OnUserPostNick(userrec* user, std::string oldnick) { };
    +00328 int             Module::OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type) { return ACR_DEFAULT; };
    +00329 string_list     Module::OnUserSync(userrec* user) { string_list empty; return empty; }
    +00330 string_list     Module::OnChannelSync(chanrec* chan) { string_list empty; return empty; }
    +00331 void            Module::On005Numeric(std::string &output) { };
    +00332 int             Module::OnKill(userrec* source, userrec* dest, std::string reason) { return 0; };
    +00333 void            Module::OnLoadModule(Module* mod,std::string name) { };
    +00334 void            Module::OnUnloadModule(Module* mod,std::string name) { };
    +00335 void            Module::OnBackgroundTimer(time_t curtime) { };
    +00336 void            Module::OnSendList(userrec* user, chanrec* channel, char mode) { };
    +00337 int             Module::OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user) { return 0; };
    +00338 bool            Module::OnCheckReady(userrec* user) { return true; };
    +00339 void            Module::OnUserRegister(userrec* user) { };
    +00340 int             Module::OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { return 0; };
    +00341 void            Module::OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason) { };
    +00342 int             Module::OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt) { return 0; };
    +00343 int             Module::OnCheckInvite(userrec* user, chanrec* chan) { return 0; };
    +00344 int             Module::OnCheckKey(userrec* user, chanrec* chan, std::string keygiven) { return 0; };
    +00345 int             Module::OnCheckLimit(userrec* user, chanrec* chan) { return 0; };
    +00346 int             Module::OnCheckBan(userrec* user, chanrec* chan) { return 0; };
    +00347 void            Module::OnStats(char symbol) { };
    +00348 int             Module::OnChangeLocalUserHost(userrec* user, std::string newhost) { return 0; };
    +00349 int             Module::OnChangeLocalUserGECOS(userrec* user, std::string newhost) { return 0; };
    +00350 int             Module::OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic) { return 0; };
    +00351 void            Module::OnEvent(Event* event) { return; };
    +00352 char*           Module::OnRequest(Request* request) { return NULL; };
    +00353 int             Module::OnOperCompare(std::string password, std::string input) { return 0; };
    +00354 void            Module::OnGlobalOper(userrec* user) { };
    +00355 void            Module::OnGlobalConnect(userrec* user) { };
    +00356 int             Module::OnAddBan(userrec* source, chanrec* channel,std::string banmask) { return 0; };
    +00357 int             Module::OnDelBan(userrec* source, chanrec* channel,std::string banmask) { return 0; };
    +00358 void            Module::OnRawSocketAccept(int fd, std::string ip, int localport) { };
    +00359 int             Module::OnRawSocketWrite(int fd, char* buffer, int count) { return 0; };
    +00360 void            Module::OnRawSocketClose(int fd) { };
    +00361 int             Module::OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult) { return 0; };
    +00362 
    +00363 // server is a wrapper class that provides methods to all of the C-style
    +00364 // exports in the core
    +00365 //
    +00366 
    +00367 Server::Server()
    +00368 {
    +00369 }
    +00370 
    +00371 Server::~Server()
    +00372 {
    +00373 }
    +00374 
    +00375 void Server::AddSocket(InspSocket* sock)
    +00376 {
    +00377         module_sockets.push_back(sock);
    +00378 }
    +00379 
    +00380 void Server::DelSocket(InspSocket* sock)
    +00381 {
    +00382         for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++)
    +00383         {
    +00384                 if (*a == sock)
    +00385                 {
    +00386                         module_sockets.erase(a);
    +00387                         return;
    +00388                 }
    +00389         }
    +00390 }
    +00391 
    +00392 void Server::SendOpers(std::string s)
    +00393 {
    +00394         WriteOpers("%s",s.c_str());
    +00395 }
    +00396 
    +00397 bool Server::MatchText(std::string sliteral, std::string spattern)
    +00398 {
    +00399         char literal[MAXBUF],pattern[MAXBUF];
    +00400         strlcpy(literal,sliteral.c_str(),MAXBUF);
    +00401         strlcpy(pattern,spattern.c_str(),MAXBUF);
    +00402         return match(literal,pattern);
    +00403 }
    +00404 
    +00405 void Server::SendToModeMask(std::string modes, int flags, std::string text)
    +00406 {
    +00407         WriteMode(modes.c_str(),flags,"%s",text.c_str());
    +00408 }
    +00409 
    +00410 chanrec* Server::JoinUserToChannel(userrec* user, std::string cname, std::string key)
    +00411 {
    +00412         return add_channel(user,cname.c_str(),key.c_str(),false);
    +00413 }
    +00414 
    +00415 chanrec* Server::PartUserFromChannel(userrec* user, std::string cname, std::string reason)
    +00416 {
    +00417         return del_channel(user,cname.c_str(),reason.c_str(),false);
    +00418 }
    +00419 
    +00420 chanuserlist Server::GetUsers(chanrec* chan)
    +00421 {
    +00422         chanuserlist userl;
    +00423         userl.clear();
    +00424         std::vector<char*> *list = chan->GetUsers();
    +00425         for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++)
    +00426         {
    +00427                 char* o = *i;
    +00428                 userl.push_back((userrec*)o);
    +00429         }
    +00430         return userl;
    +00431 }
    +00432 void Server::ChangeUserNick(userrec* user, std::string nickname)
    +00433 {
    +00434         force_nickchange(user,nickname.c_str());
    +00435 }
    +00436 
    +00437 void Server::QuitUser(userrec* user, std::string reason)
    +00438 {
    +00439         kill_link(user,reason.c_str());
    +00440 }
    +00441 
    +00442 bool Server::IsUlined(std::string server)
    +00443 {
    +00444         return is_uline(server.c_str());
    +00445 }
    +00446 
    +00447 void Server::CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user)
    +00448 {
    +00449         call_handler(commandname.c_str(),parameters,pcnt,user);
    +00450 }
    +00451 
    +00452 void Server::Log(int level, std::string s)
    +00453 {
    +00454         log(level,"%s",s.c_str());
    +00455 }
    +00456 
    +00457 void Server::AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source)
    +00458 {
    +00459         createcommand(cmd,f,flags,minparams,source);
    +00460 }
    +00461 
    +00462 void Server::SendMode(char **parameters, int pcnt, userrec *user)
    +00463 {
    +00464         server_mode(parameters,pcnt,user);
    +00465 }
    +00466 
    +00467 void Server::Send(int Socket, std::string s)
    +00468 {
    +00469         Write(Socket,"%s",s.c_str());
    +00470 }
    +00471 
    +00472 void Server::SendServ(int Socket, std::string s)
    +00473 {
    +00474         WriteServ(Socket,"%s",s.c_str());
    +00475 }
    +00476 
    +00477 void Server::SendFrom(int Socket, userrec* User, std::string s)
    +00478 {
    +00479         WriteFrom(Socket,User,"%s",s.c_str());
    +00480 }
    +00481 
    +00482 void Server::SendTo(userrec* Source, userrec* Dest, std::string s)
    +00483 {
    +00484         if (!Source)
    +00485         {
    +00486                 // if source is NULL, then the message originates from the local server
    +00487                 Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
    +00488         }
    +00489         else
    +00490         {
    +00491                 // otherwise it comes from the user specified
    +00492                 WriteTo(Source,Dest,"%s",s.c_str());
    +00493         }
    +00494 }
    +00495 
    +00496 void Server::SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text)
    +00497 {
    +00498         WriteChannelWithServ((char*)ServName.c_str(), Channel, "%s", text.c_str());
    +00499 }
    +00500 
    +00501 void Server::SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender)
    +00502 {
    +00503         if (IncludeSender)
    +00504         {
    +00505                 WriteChannel(Channel,User,"%s",s.c_str());
    +00506         }
    +00507         else
    +00508         {
    +00509                 ChanExceptSender(Channel,User,"%s",s.c_str());
    +00510         }
    +00511 }
    +00512 
    +00513 bool Server::CommonChannels(userrec* u1, userrec* u2)
    +00514 {
    +00515         return (common_channels(u1,u2) != 0);
    +00516 }
    +00517 
    +00518 void Server::SendCommon(userrec* User, std::string text,bool IncludeSender)
    +00519 {
    +00520         if (IncludeSender)
    +00521         {
    +00522                 WriteCommon(User,"%s",text.c_str());
    +00523         }
    +00524         else
    +00525         {
    +00526                 WriteCommonExcept(User,"%s",text.c_str());
    +00527         }
    +00528 }
    +00529 
    +00530 void Server::SendWallops(userrec* User, std::string text)
    +00531 {
    +00532         WriteWallOps(User,false,"%s",text.c_str());
    +00533 }
    +00534 
    +00535 void Server::ChangeHost(userrec* user, std::string host)
    +00536 {
    +00537         ChangeDisplayedHost(user,host.c_str());
    +00538 }
    +00539 
    +00540 void Server::ChangeGECOS(userrec* user, std::string gecos)
    +00541 {
    +00542         ChangeName(user,gecos.c_str());
    +00543 }
    +00544 
    +00545 bool Server::IsNick(std::string nick)
    +00546 {
    +00547         return (isnick(nick.c_str()) != 0);
    +00548 }
    +00549 
    +00550 userrec* Server::FindNick(std::string nick)
    +00551 {
    +00552         return Find(nick);
    +00553 }
    +00554 
    +00555 userrec* Server::FindDescriptor(int socket)
    +00556 {
    +00557         return (socket < 65536 ? fd_ref_table[socket] : NULL);
    +00558 }
    +00559 
    +00560 chanrec* Server::FindChannel(std::string channel)
    +00561 {
    +00562         return FindChan(channel.c_str());
    +00563 }
    +00564 
    +00565 std::string Server::ChanMode(userrec* User, chanrec* Chan)
    +00566 {
    +00567         return cmode(User,Chan);
    +00568 }
    +00569 
    +00570 bool Server::IsOnChannel(userrec* User, chanrec* Chan)
    +00571 {
    +00572         return has_channel(User,Chan);
    +00573 }
    +00574 
    +00575 std::string Server::GetServerName()
    +00576 {
    +00577         return getservername();
    +00578 }
    +00579 
    +00580 std::string Server::GetNetworkName()
    +00581 {
    +00582         return getnetworkname();
    +00583 }
    +00584 
    +00585 std::string Server::GetServerDescription()
    +00586 {
    +00587         return getserverdesc();
    +00588 }
    +00589 
    +00590 Admin Server::GetAdmin()
    +00591 {
    +00592         return Admin(getadminname(),getadminemail(),getadminnick());
    +00593 }
    +00594 
    +00595 
    +00596 
    +00597 bool Server::AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off)
    +00598 {
    +00599         if (((modechar >= 'A') && (modechar <= 'Z')) || ((modechar >= 'a') && (modechar <= 'z')))
    +00600         {
    +00601                 if (type == MT_SERVER)
    +00602                 {
    +00603                         log(DEBUG,"*** API ERROR *** Modes of type MT_SERVER are reserved for future expansion");
    +00604                         return false;
    +00605                 }
    +00606                 if (((params_when_on>0) || (params_when_off>0)) && (type == MT_CLIENT))
    +00607                 {
    +00608                         log(DEBUG,"*** API ERROR *** Parameters on MT_CLIENT modes are not supported");
    +00609                         return false;
    +00610                 }
    +00611                 if ((params_when_on>1) || (params_when_off>1))
    +00612                 {
    +00613                         log(DEBUG,"*** API ERROR *** More than one parameter for an MT_CHANNEL mode is not yet supported");
    +00614                         return false;
    +00615                 }
    +00616                 return DoAddExtendedMode(modechar,type,requires_oper,params_when_on,params_when_off);
    +00617         }
    +00618         else
    +00619         {
    +00620                 log(DEBUG,"*** API ERROR *** Muppet modechar detected.");
    +00621         }
    +00622         return false;
    +00623 }
    +00624 
    +00625 bool Server::AddExtendedListMode(char modechar)
    +00626 {
    +00627         bool res = DoAddExtendedMode(modechar,MT_CHANNEL,false,1,1);
    +00628         if (res)
    +00629                 ModeMakeList(modechar);
    +00630         return res;
    +00631 }
    +00632 
    +00633 int Server::CountUsers(chanrec* c)
    +00634 {
    +00635         return usercount(c);
    +00636 }
    +00637 
    +00638 
    +00639 bool Server::UserToPseudo(userrec* user,std::string message)
    +00640 {
    +00641         unsigned int old_fd = user->fd;
    +00642         user->fd = FD_MAGIC_NUMBER;
    +00643         user->ClearBuffer();
    +00644         Write(old_fd,"ERROR :Closing link (%s@%s) [%s]",user->ident,user->host,message.c_str());
    +00645 #ifdef USE_KQUEUE
    +00646         struct kevent ke;
    +00647         EV_SET(&ke, old_fd, EVFILT_READ, EV_DELETE, 0, 0, NULL);
    +00648         int i = kevent(kq, &ke, 1, 0, 0, NULL);
    +00649         if (i == -1)
    +00650         {
    +00651                 log(DEBUG,"kqueue: Failed to remove user from queue!");
    +00652         }
    +00653 #endif
    +00654 #ifdef USE_EPOLL
    +00655         struct epoll_event ev;
    +00656         ev.events = EPOLLIN | EPOLLET;
    +00657         ev.data.fd = old_fd;
    +00658         int i = epoll_ctl(ep, EPOLL_CTL_DEL, old_fd, &ev);
    +00659         if (i < 0)
    +00660         {
    +00661                 log(DEBUG,"epoll: List deletion failure!");
    +00662         }
    +00663 #endif
    +00664 
    +00665         shutdown(old_fd,2);
    +00666         close(old_fd);
    +00667         return true;
    +00668 }
    +00669 
    +00670 bool Server::PseudoToUser(userrec* alive,userrec* zombie,std::string message)
    +00671 {
    +00672         zombie->fd = alive->fd;
    +00673         alive->fd = FD_MAGIC_NUMBER;
    +00674         alive->ClearBuffer();
    +00675         Write(zombie->fd,":%s!%s@%s NICK %s",alive->nick,alive->ident,alive->host,zombie->nick);
    +00676         kill_link(alive,message.c_str());
    +00677         fd_ref_table[zombie->fd] = zombie;
    +00678         for (int i = 0; i != MAXCHANS; i++)
    +00679         {
    +00680                 if (zombie->chans[i].channel != NULL)
    +00681                 {
    +00682                         if (zombie->chans[i].channel->name)
    +00683                         {
    +00684                                 chanrec* Ptr = zombie->chans[i].channel;
    +00685                                 WriteFrom(zombie->fd,zombie,"JOIN %s",Ptr->name);
    +00686                                 if (Ptr->topicset)
    +00687                                 {
    +00688                                         WriteServ(zombie->fd,"332 %s %s :%s", zombie->nick, Ptr->name, Ptr->topic);
    +00689                                         WriteServ(zombie->fd,"333 %s %s %s %d", zombie->nick, Ptr->name, Ptr->setby, Ptr->topicset);
    +00690                                 }
    +00691                                 userlist(zombie,Ptr);
    +00692                                 WriteServ(zombie->fd,"366 %s %s :End of /NAMES list.", zombie->nick, Ptr->name);
    +00693 
    +00694                         }
    +00695                 }
    +00696         }
    +00697         return true;
    +00698 }
    +00699 
    +00700 void Server::AddGLine(long duration, std::string source, std::string reason, std::string hostmask)
    +00701 {
    +00702         add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
    +00703 }
    +00704 
    +00705 void Server::AddQLine(long duration, std::string source, std::string reason, std::string nickname)
    +00706 {
    +00707         add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str());
    +00708 }
    +00709 
    +00710 void Server::AddZLine(long duration, std::string source, std::string reason, std::string ipaddr)
    +00711 {
    +00712         add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str());
    +00713 }
    +00714 
    +00715 void Server::AddKLine(long duration, std::string source, std::string reason, std::string hostmask)
    +00716 {
    +00717         add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
    +00718 }
    +00719 
    +00720 void Server::AddELine(long duration, std::string source, std::string reason, std::string hostmask)
    +00721 {
    +00722         add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str());
    +00723 }
    +00724 
    +00725 bool Server::DelGLine(std::string hostmask)
    +00726 {
    +00727         return del_gline(hostmask.c_str());
    +00728 }
    +00729 
    +00730 bool Server::DelQLine(std::string nickname)
    +00731 {
    +00732         return del_qline(nickname.c_str());
    +00733 }
    +00734 
    +00735 bool Server::DelZLine(std::string ipaddr)
    +00736 {
    +00737         return del_zline(ipaddr.c_str());
    +00738 }
    +00739 
    +00740 bool Server::DelKLine(std::string hostmask)
    +00741 {
    +00742         return del_kline(hostmask.c_str());
    +00743 }
    +00744 
    +00745 bool Server::DelELine(std::string hostmask)
    +00746 {
    +00747         return del_eline(hostmask.c_str());
    +00748 }
    +00749 
    +00750 long Server::CalcDuration(std::string delta)
    +00751 {
    +00752         return duration(delta.c_str());
    +00753 }
    +00754 
    +00755 bool Server::IsValidMask(std::string mask)
    +00756 {
    +00757         const char* dest = mask.c_str();
    +00758         if (strchr(dest,'!')==0)
    +00759                 return false;
    +00760         if (strchr(dest,'@')==0)
    +00761                 return false;
    +00762         for (unsigned int i = 0; i < strlen(dest); i++)
    +00763                 if (dest[i] < 32)
    +00764                         return false;
    +00765         for (unsigned int i = 0; i < strlen(dest); i++)
    +00766                 if (dest[i] > 126)
    +00767                         return false;
    +00768         unsigned int c = 0;
    +00769         for (unsigned int i = 0; i < strlen(dest); i++)
    +00770                 if (dest[i] == '!')
    +00771                         c++;
    +00772         if (c>1)
    +00773                 return false;
    +00774         c = 0;
    +00775         for (unsigned int i = 0; i < strlen(dest); i++)
    +00776                 if (dest[i] == '@')
    +00777                         c++;
    +00778         if (c>1)
    +00779                 return false;
    +00780 
    +00781         return true;
    +00782 }
    +00783 
    +00784 Module* Server::FindModule(std::string name)
    +00785 {
    +00786         for (int i = 0; i <= MODCOUNT; i++)
    +00787         {
    +00788                 if (module_names[i] == name)
    +00789                 {
    +00790                         return modules[i];
    +00791                 }
    +00792         }
    +00793         return NULL;
    +00794 }
    +00795 
    +00796 ConfigReader::ConfigReader()
    +00797 {
    +00798         include_stack.clear();
    +00799         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
    +00800         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
    +00801         this->readerror = LoadConf(CONFIG_FILE,this->cache,this->errorlog);
    +00802         if (!this->readerror)
    +00803                 this->error = CONF_FILE_NOT_FOUND;
    +00804 }
    +00805 
    +00806 
    +00807 ConfigReader::~ConfigReader()
    +00808 {
    +00809         if (this->cache)
    +00810                 delete this->cache;
    +00811         if (this->errorlog)
    +00812                 delete this->errorlog;
    +00813 }
    +00814 
    +00815 
    +00816 ConfigReader::ConfigReader(std::string filename)
    +00817 {
    +00818         this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
    +00819         this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
    +00820         this->readerror = LoadConf(filename.c_str(),this->cache,this->errorlog);
    +00821         if (!this->readerror)
    +00822                 this->error = CONF_FILE_NOT_FOUND;
    +00823 };
    +00824 
    +00825 std::string ConfigReader::ReadValue(std::string tag, std::string name, int index)
    +00826 {
    +00827         char val[MAXBUF];
    +00828         char t[MAXBUF];
    +00829         char n[MAXBUF];
    +00830         strlcpy(t,tag.c_str(),MAXBUF);
    +00831         strlcpy(n,name.c_str(),MAXBUF);
    +00832         int res = ReadConf(cache,t,n,index,val);
    +00833         if (!res)
    +00834         {
    +00835                 this->error = CONF_VALUE_NOT_FOUND;
    +00836                 return "";
    +00837         }
    +00838         return val;
    +00839 }
    +00840 
    +00841 bool ConfigReader::ReadFlag(std::string tag, std::string name, int index)
    +00842 {
    +00843         char val[MAXBUF];
    +00844         char t[MAXBUF];
    +00845         char n[MAXBUF];
    +00846         strlcpy(t,tag.c_str(),MAXBUF);
    +00847         strlcpy(n,name.c_str(),MAXBUF);
    +00848         int res = ReadConf(cache,t,n,index,val);
    +00849         if (!res)
    +00850         {
    +00851                 this->error = CONF_VALUE_NOT_FOUND;
    +00852                 return false;
    +00853         }
    +00854         std::string s = val;
    +00855         return ((s == "yes") || (s == "YES") || (s == "true") || (s == "TRUE") || (s == "1"));
    +00856 }
    +00857 
    +00858 long ConfigReader::ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned)
    +00859 {
    +00860         char val[MAXBUF];
    +00861         char t[MAXBUF];
    +00862         char n[MAXBUF];
    +00863         strlcpy(t,tag.c_str(),MAXBUF);
    +00864         strlcpy(n,name.c_str(),MAXBUF);
    +00865         int res = ReadConf(cache,t,n,index,val);
    +00866         if (!res)
    +00867         {
    +00868                 this->error = CONF_VALUE_NOT_FOUND;
    +00869                 return 0;
    +00870         }
    +00871         for (unsigned int i = 0; i < strlen(val); i++)
    +00872         {
    +00873                 if (!isdigit(val[i]))
    +00874                 {
    +00875                         this->error = CONF_NOT_A_NUMBER;
    +00876                         return 0;
    +00877                 }
    +00878         }
    +00879         if ((needs_unsigned) && (atoi(val)<0))
    +00880         {
    +00881                 this->error = CONF_NOT_UNSIGNED;
    +00882                 return 0;
    +00883         }
    +00884         return atoi(val);
    +00885 }
    +00886 
    +00887 long ConfigReader::GetError()
    +00888 {
    +00889         long olderr = this->error;
    +00890         this->error = 0;
    +00891         return olderr;
    +00892 }
    +00893 
    +00894 void ConfigReader::DumpErrors(bool bail, userrec* user)
    +00895 {
    +00896         if (bail)
    +00897         {
    +00898                 printf("There were errors in your configuration:\n%s",errorlog->str().c_str());
    +00899                 exit(0);
    +00900         }
    +00901         else
    +00902         {
    +00903                 char dataline[1024];
    +00904                 if (user)
    +00905                 {
    +00906                         WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick);
    +00907                         while (!errorlog->eof())
    +00908                         {
    +00909                                 errorlog->getline(dataline,1024);
    +00910                                 WriteServ(user->fd,"NOTICE %s :%s",user->nick,dataline);
    +00911                         }
    +00912                 }
    +00913                 else
    +00914                 {
    +00915                         WriteOpers("There were errors in the configuration file:",user->nick);
    +00916                         while (!errorlog->eof())
    +00917                         {
    +00918                                 errorlog->getline(dataline,1024);
    +00919                                 WriteOpers(dataline);
    +00920                         }
    +00921                 }
    +00922                 return;
    +00923         }
    +00924 }
    +00925 
    +00926 
    +00927 int ConfigReader::Enumerate(std::string tag)
    +00928 {
    +00929         return EnumConf(cache,tag.c_str());
    +00930 }
    +00931 
    +00932 int ConfigReader::EnumerateValues(std::string tag, int index)
    +00933 {
    +00934         return EnumValues(cache, tag.c_str(), index);
    +00935 }
    +00936 
    +00937 bool ConfigReader::Verify()
    +00938 {
    +00939         return this->readerror;
    +00940 }
    +00941 
    +00942 
    +00943 FileReader::FileReader(std::string filename)
    +00944 {
    +00945         file_cache c;
    +00946         readfile(c,filename.c_str());
    +00947         this->fc = c;
    +00948 }
    +00949 
    +00950 FileReader::FileReader()
    +00951 {
    +00952 }
    +00953 
    +00954 void FileReader::LoadFile(std::string filename)
    +00955 {
    +00956         file_cache c;
    +00957         readfile(c,filename.c_str());
    +00958         this->fc = c;
    +00959 }
    +00960 
    +00961 
    +00962 FileReader::~FileReader()
    +00963 {
    +00964 }
    +00965 
    +00966 bool FileReader::Exists()
    +00967 {
    +00968         if (fc.size() == 0)
    +00969         {
    +00970                 return(false);
    +00971         }
    +00972         else
    +00973         {
    +00974                 return(true);
    +00975         }
    +00976 }
    +00977 
    +00978 std::string FileReader::GetLine(int x)
    +00979 {
    +00980         if ((x<0) || ((unsigned)x>fc.size()))
    +00981                 return "";
    +00982         return fc[x];
    +00983 }
    +00984 
    +00985 int FileReader::FileSize()
    +00986 {
    +00987         return fc.size();
    +00988 }
    +00989 
    +00990 
    +00991 std::vector<Module*> modules(255);
    +00992 std::vector<ircd_module*> factory(255);
    +00993 
    +00994 int MODCOUNT  = -1;
    +00995 
    +00996 
    +

    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index 97b101a7f..a7853803c 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -1,14 +1,16 @@ - + InspIRCd: modules.cpp File Reference - - -

    modules.cpp File Reference

    #include "inspircd_config.h"
    -#include "inspircd.h"
    -#include "inspircd_io.h"
    -#include "inspircd_util.h"
    + + + +

    modules.cpp File Reference

    #include "inspircd_config.h"
    +#include "inspircd.h"
    +#include "inspircd_io.h"
    +#include "inspircd_util.h"
    #include <unistd.h>
    #include <sys/errno.h>
    #include <time.h>
    @@ -18,192 +20,185 @@ #include <sstream>
    #include <vector>
    #include <deque>
    -#include "connection.h"
    -#include "users.h"
    -#include "servers.h"
    -#include "ctables.h"
    -#include "globals.h"
    -#include "modules.h"
    -#include "dynamic.h"
    -#include "wildcard.h"
    -#include "message.h"
    -#include "mode.h"
    -#include "xline.h"
    -#include "commands.h"
    -#include "inspstring.h"
    -#include "helperfuncs.h"
    -#include "hashcomp.h"
    - -

    -Include dependency graph for modules.cpp:

    Include dependency graph
    +#include "users.h"
    +#include "ctables.h"
    +#include "globals.h"
    +#include "modules.h"
    +#include "dynamic.h"
    +#include "wildcard.h"
    +#include "message.h"
    +#include "mode.h"
    +#include "xline.h"
    +#include "commands.h"
    +#include "inspstring.h"
    +#include "helperfuncs.h"
    +#include "hashcomp.h"
    +#include "socket.h"
    + +

    +Include dependency graph for modules.cpp:

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

    -Go to the source code of this file. +Go to the source code of this file.
    - - + + - - + + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - +

    Compounds

    class  ExtMode

    Classes

    class  ExtMode

    Typedefs

    typedef nspace::hash_map<
    - std::string, userrec *, nspace::hash<
    - string >, irc::StrHashComp
    user_hash

    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<
    + 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<
    + 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 nspace::hash_map<
    + std::string, WhoWasUser *,
    + nspace::hash< string >, irc::StrHashComp
    whowas_hash
    typedef std::deque< command_tcommand_table
    typedef std::deque< command_tcommand_table
    typedef std::vector< ExtModeExtModeList
    typedef std::vector< ExtModeExtModeList
    typedef ExtModeList::iterator ExtModeListIter
    typedef ExtModeList::iterator ExtModeListIter

    Functions

    bool ModeDefined (char modechar, int type)

    Functions

    bool ModeDefined (char modechar, int type)
    bool ModeIsListMode (char modechar, int type)
    bool ModeIsListMode (char modechar, int type)
    bool ModeDefinedOper (char modechar, int type)
    bool ModeDefinedOper (char modechar, int type)
    int ModeDefinedOn (char modechar, int type)
    int ModeDefinedOn (char modechar, int type)
    int ModeDefinedOff (char modechar, int type)
    int ModeDefinedOff (char modechar, int type)
    bool DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off)
    bool DoAddExtendedMode (char modechar, int type, bool requires_oper, int params_on, int params_off)
    void ModeMakeList (char modechar)
    void ModeMakeList (char modechar)
    std::vector< Module * > modules (255)
    std::vector< Module * > modules (255)
    std::vector< ircd_module * > factory (255)
    std::vector< ircd_module * > factory (255)

    Variables

    int MODCOUNT = -1

    Variables

    int MODCOUNT = -1
    std::vector< Module * > modules
    std::vector< Module * > modules
    std::vector< ircd_module * > factory
    std::vector< ircd_module * > factory
    std::vector< std::string > include_stack
    std::vector< std::stringinclude_stack
    time_t TIME
    std::vector< InspSocket * > module_sockets
    int LogLevel
    time_t TIME
    char ServerName [MAXBUF]
    int LogLevel
    char Network [MAXBUF]
    char ServerName [MAXBUF]
    char ServerDesc [MAXBUF]
    char Network [MAXBUF]
    char AdminName [MAXBUF]
    char ServerDesc [MAXBUF]
    char AdminEmail [MAXBUF]
    char AdminName [MAXBUF]
    char AdminNick [MAXBUF]
    char AdminEmail [MAXBUF]
    char diepass [MAXBUF]
    char AdminNick [MAXBUF]
    char restartpass [MAXBUF]
    char diepass [MAXBUF]
    char motd [MAXBUF]
    char restartpass [MAXBUF]
    char rules [MAXBUF]
    char motd [MAXBUF]
    char list [MAXBUF]
    char rules [MAXBUF]
    char PrefixQuit [MAXBUF]
    char list [MAXBUF]
    char DieValue [MAXBUF]
    char PrefixQuit [MAXBUF]
    int debugging
    char DieValue [MAXBUF]
    int WHOWAS_STALE
    int debugging
    int WHOWAS_MAX
    int WHOWAS_STALE
    int DieDelay
    int WHOWAS_MAX
    time_t startup_time
    int DieDelay
    int NetBufferSize
    time_t startup_time
    int MaxWhoResults
    int NetBufferSize
    time_t nb_start
    int MaxWhoResults
    std::vector< std::string > module_names
    time_t nb_start
    int boundPortCount
    std::vector< std::stringmodule_names
    int portCount
    int boundPortCount
    int SERVERportCount
    int portCount
    int ports [MAXSOCKS]
    int ports [MAXSOCKS]
    int defaultRoute
    std::stringstream config_f
    std::vector< long > auth_cookies
    FILE * log_file
    std::stringstream config_f
    userrecfd_ref_table [65536]
    serverrecme [32]
    user_hash clientlist
    FILE * log_file
    chan_hash chanlist
    userrecfd_ref_table [65536]
    whowas_hash whowas
    user_hash clientlist
    command_table cmdlist
    chan_hash chanlist
    file_cache MOTD
    whowas_hash whowas
    file_cache RULES
    command_table cmdlist
    address_cache IP
    file_cache MOTD
    file_cache RULES
    address_cache IP
    ExtModeList EMode
    ExtModeList EMode


    Typedef Documentation

    -

    - +

    +

    - +
    typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache + typedef nspace::hash_map<in_addr,string*, nspace::hash<in_addr>, irc::InAddr_HashComp> address_cache
    - +
    +Definition at line 123 of file modules.cpp.
      @@ -213,21 +208,22 @@ Include dependency graph for modules.cpp:

    122 of file modules.cpp.
    -

    - +

    +

    - +
    typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash + typedef nspace::hash_map<std::string, chanrec*, nspace::hash<string>, irc::StrHashComp> chan_hash
    - +
    +Definition at line 122 of file modules.cpp.
      @@ -237,21 +233,22 @@ Definition at line 122

    -Definition at line 121 of file modules.cpp.

    -

    - +

    +

    - +
    typedef std::deque<command_t> command_table + typedef std::deque<command_t> command_table
    - +
    +Definition at line 125 of file modules.cpp.
      @@ -261,21 +258,22 @@ Definition at line 121

    -Definition at line 124 of file modules.cpp.

    -

    - +

    +

    - +
    typedef std::vector<ExtMode> ExtModeList + typedef std::vector<ExtMode> ExtModeList
    - +
    +Definition at line 151 of file modules.cpp.
      @@ -285,21 +283,22 @@ Definition at line 124

    -Definition at line 150 of file modules.cpp.

    -

    - +

    +

    - +
    typedef ExtModeList::iterator ExtModeListIter + typedef ExtModeList::iterator ExtModeListIter
    - +
    +Definition at line 152 of file modules.cpp.
      @@ -309,23 +308,22 @@ Definition at line 150

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

    -Referenced by ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList().

    -

    - +

    +

    - +
    typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash + typedef nspace::hash_map<std::string, userrec*, nspace::hash<string>, irc::StrHashComp> user_hash
    - +
    +Definition at line 121 of file modules.cpp.
      @@ -335,21 +333,22 @@ Referenced by ModeDefined()

    -Definition at line 120 of file modules.cpp.

    -

    - +

    +

    - +
    typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash + typedef nspace::hash_map<std::string, WhoWasUser*, nspace::hash<string>, irc::StrHashComp> whowas_hash
    - +
    +Definition at line 124 of file modules.cpp.
      @@ -359,56 +358,55 @@ Definition at line 120

    -Definition at line 123 of file modules.cpp.


    Function Documentation

    -

    - +

    +

    - + - - + + - - + + - - + + - - + + - + -
    bool DoAddExtendedMode bool DoAddExtendedMode char  modechar,
    int  type,
    bool  requires_oper,
    int  params_on,
    int  params_off
    - +
    +
      @@ -418,41 +416,40 @@ Definition at line 123

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

    -References EMode, and ModeDefined(). +References EMode, and ModeDefined().

    -Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode(). +Referenced by Server::AddExtendedListMode(), and Server::AddExtendedMode().

    00222 {
    +00223         if (ModeDefined(modechar,type)) {
    +00224                 return false;
    +00225         }
    +00226         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    +00227         return true;
    +00228 }
    +

    -

    00221 {
    -00222         if (ModeDefined(modechar,type)) {
    -00223                 return false;
    -00224         }
    -00225         EMode.push_back(ExtMode(modechar,type,requires_oper,params_on,params_off));
    -00226         return true;
    -00227 }
    -
    -

    - +

    +

    - + -
    std::vector<ircd_module*> factory std::vector<ircd_module*> factory 255   ) 
    - +
      @@ -463,34 +460,33 @@ Referenced by Server::AddEx
    -

    - +

    +

    - + - - + + - + -
    bool ModeDefined bool ModeDefined char  modechar,
    int  type
    - +
    +
      @@ -500,53 +496,52 @@ Referenced by Server::AddEx

    -Definition at line 157 of file modules.cpp. +Definition at line 158 of file modules.cpp.

    -References EMode, and ExtModeListIter. +References EMode.

    -Referenced by DoAddExtendedMode(). +Referenced by DoAddExtendedMode().

    00159 {
    +00160         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00161         {
    +00162                 if ((i->modechar == modechar) && (i->type == type))
    +00163                 {
    +00164                         return true;
    +00165                 }
    +00166         }
    +00167         return false;
    +00168 }
    +

    -

    00158 {
    -00159         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00160         {
    -00161                 if ((i->modechar == modechar) && (i->type == type))
    -00162                 {
    -00163                         return true;
    -00164                 }
    -00165         }
    -00166         return false;
    -00167 }
    -
    -

    - +

    +

    - + - - + + - + -
    int ModeDefinedOff int ModeDefinedOff char  modechar,
    int  type
    - +
    +
      @@ -556,51 +551,50 @@ Referenced by DoAddExtended

    -Definition at line 207 of file modules.cpp. +Definition at line 208 of file modules.cpp.

    -References EMode, and ExtModeListIter. +References EMode.

    00209 {
    +00210         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00211         {
    +00212                 if ((i->modechar == modechar) && (i->type == type))
    +00213                 {
    +00214                         return i->params_when_off;
    +00215                 }
    +00216         }
    +00217         return 0;
    +00218 }
    +

    -

    00208 {
    -00209         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00210         {
    -00211                 if ((i->modechar == modechar) && (i->type == type))
    -00212                 {
    -00213                         return i->params_when_off;
    -00214                 }
    -00215         }
    -00216         return 0;
    -00217 }
    -
    -

    - +

    +

    - + - - + + - + -
    int ModeDefinedOn int ModeDefinedOn char  modechar,
    int  type
    - +
    +
      @@ -610,51 +604,50 @@ References EMode, and <

    -Definition at line 194 of file modules.cpp. +Definition at line 195 of file modules.cpp.

    -References EMode, and ExtModeListIter. +References EMode.

    00196 {
    +00197         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00198         {
    +00199                 if ((i->modechar == modechar) && (i->type == type))
    +00200                 {
    +00201                         return i->params_when_on;
    +00202                 }
    +00203         }
    +00204         return 0;
    +00205 }
    +

    -

    00195 {
    -00196         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00197         {
    -00198                 if ((i->modechar == modechar) && (i->type == type))
    -00199                 {
    -00200                         return i->params_when_on;
    -00201                 }
    -00202         }
    -00203         return 0;
    -00204 }
    -
    -

    - +

    +

    - + - - + + - + -
    bool ModeDefinedOper bool ModeDefinedOper char  modechar,
    int  type
    - +
    +
      @@ -664,51 +657,50 @@ References EMode, and <

    -Definition at line 181 of file modules.cpp. +Definition at line 182 of file modules.cpp.

    -References EMode, and ExtModeListIter. +References EMode.

    00183 {
    +00184         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00185         {
    +00186                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    +00187                 {
    +00188                         return true;
    +00189                 }
    +00190         }
    +00191         return false;
    +00192 }
    +

    -

    00182 {
    -00183         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00184         {
    -00185                 if ((i->modechar == modechar) && (i->type == type) && (i->needsoper == true))
    -00186                 {
    -00187                         return true;
    -00188                 }
    -00189         }
    -00190         return false;
    -00191 }
    -
    -

    - +

    +

    - + - - + + - + -
    bool ModeIsListMode bool ModeIsListMode char  modechar,
    int  type
    - +
    +
      @@ -718,42 +710,41 @@ References EMode, and <

    -Definition at line 169 of file modules.cpp. +Definition at line 170 of file modules.cpp.

    -References EMode, and ExtModeListIter. +References EMode.

    00171 {
    +00172         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00173         {
    +00174                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
    +00175                 {
    +00176                         return true;
    +00177                 }
    +00178         }
    +00179         return false;
    +00180 }
    +

    -

    00170 {
    -00171         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00172         {
    -00173                 if ((i->modechar == modechar) && (i->type == type) && (i->list == true))
    -00174                 {
    -00175                         return true;
    -00176                 }
    -00177         }
    -00178         return false;
    -00179 }
    -
    -

    - +

    +

    - + -
    void ModeMakeList void ModeMakeList char  modechar  ) 
    - +
    +
      @@ -763,45 +754,44 @@ References EMode, and <

    -Definition at line 230 of file modules.cpp. +Definition at line 231 of file modules.cpp.

    -References EMode, ExtModeListIter, and MT_CHANNEL. +References EMode, and MT_CHANNEL.

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

    00232 {
    +00233         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    +00234         {
    +00235                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    +00236                 {
    +00237                         i->list = true;
    +00238                         return;
    +00239                 }
    +00240         }
    +00241         return;
    +00242 }
    +

    -

    00231 {
    -00232         for (ExtModeListIter i = EMode.begin(); i < EMode.end(); i++)
    -00233         {
    -00234                 if ((i->modechar == modechar) && (i->type == MT_CHANNEL))
    -00235                 {
    -00236                         i->list = true;
    -00237                         return;
    -00238                 }
    -00239         }
    -00240         return;
    -00241 }
    -
    -

    - +

    +

    - + -
    std::vector<Module*> modules std::vector<Module*> modules 255   ) 
    - +
      @@ -813,18 +803,19 @@ Referenced by Server::AddEx


    Variable Documentation

    -

    - +

    +

    - +
    char AdminEmail[MAXBUF] + char AdminEmail[MAXBUF]
    - +
    - -
      @@ -832,47 +823,22 @@ Referenced by Server::AddEx

    - -

    -Definition at line 84 of file modules.cpp.

    -

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

    - -

    -Definition at line 83 of file modules.cpp.

    -

    - +

    +

    - +
    char AdminNick[MAXBUF] + char AdminName[MAXBUF]
    - +
    - -
      @@ -880,47 +846,22 @@ Definition at line 83 o

    - -

    -Definition at line 85 of file modules.cpp.

    -

    - - - - -
    - - -
    std::vector<long> auth_cookies -
    -
    - - - -
    -   - -

    - -

    -Definition at line 111 of file modules.cpp.

    -

    - +

    +

    - +
    int boundPortCount + char AdminNick[MAXBUF]
    - +
    +
      @@ -928,23 +869,22 @@ Definition at line 111

    - -

    -Definition at line 105 of file modules.cpp.

    -

    - +

    +

    - +
    chan_hash chanlist + int boundPortCount
    - +
    +
      @@ -952,23 +892,22 @@ Definition at line 105

    - -

    -Definition at line 128 of file modules.cpp.

    -

    - +

    +

    - +
    user_hash clientlist + chan_hash chanlist
    - +
    +
      @@ -976,23 +915,22 @@ Definition at line 128

    - -

    -Definition at line 127 of file modules.cpp.

    -

    - +

    +

    - +
    command_table cmdlist + user_hash clientlist
    - +
    +
      @@ -1000,23 +938,22 @@ Definition at line 127

    - -

    -Definition at line 130 of file modules.cpp.

    -

    - +

    +

    - +
    std::stringstream config_f + command_table cmdlist
    - +
    +
      @@ -1024,23 +961,22 @@ Definition at line 130

    - -

    -Definition at line 112 of file modules.cpp.

    -

    - +

    +

    - +
    int debugging + std::stringstream config_f
    - +
    +
      @@ -1048,23 +984,22 @@ Definition at line 112

    - -

    -Definition at line 94 of file modules.cpp.

    -

    - +

    +

    - +
    int defaultRoute + int debugging
    - +
    +
      @@ -1072,23 +1007,22 @@ Definition at line 94 o

    - -

    -Definition at line 109 of file modules.cpp.

    -

    - +

    +

    - +
    int DieDelay + int DieDelay
    - +
    +
      @@ -1096,23 +1030,22 @@ Definition at line 109

    - -

    -Definition at line 97 of file modules.cpp.

    -

    - +

    +

    - +
    char diepass[MAXBUF] + char diepass[MAXBUF]
    - +
    +
      @@ -1120,23 +1053,22 @@ Definition at line 97 o

    - -

    -Definition at line 86 of file modules.cpp.

    -

    - +

    +

    - +
    char DieValue[MAXBUF] + char DieValue[MAXBUF]
    - +
    +
      @@ -1144,23 +1076,22 @@ Definition at line 86 o

    - -

    -Definition at line 92 of file modules.cpp.

    -

    - +

    +

    - +
    ExtModeList EMode + ExtModeList EMode
    - +
    +Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList().
      @@ -1170,23 +1101,24 @@ Definition at line 92 o

    -Definition at line 154 of file modules.cpp. +Definition at line 155 of file modules.cpp.

    -Referenced by DoAddExtendedMode(), ModeDefined(), ModeDefinedOff(), ModeDefinedOn(), ModeDefinedOper(), ModeIsListMode(), and ModeMakeList().

    -

    - +

    +

    - +
    std::vector<ircd_module*> factory + std::vector<ircd_module*> factory
    - +
    - -
      @@ -1194,49 +1126,22 @@ Referenced by DoAddExtended

    - -

    -Definition at line 73 of file modules.cpp.

    -

    - - -
    - - -
    userrec* fd_ref_table[65536] -
    - - - - - -
    -   - - -

    - -

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

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

    -

    - +

    +

    - +
    std::vector<std::string> include_stack + userrec* fd_ref_table[65536]
    - +
    +
      @@ -1244,25 +1149,22 @@ Referenced by Server::FindD

    - -

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

    -Referenced by ConfigReader::ConfigReader().

    -

    - +

    +

    - +
    address_cache IP + std::vector<std::string> include_stack
    - +
    +Referenced by ConfigReader::ConfigReader().
      @@ -1272,21 +1174,22 @@ Referenced by ConfigReader:

    -Definition at line 133 of file modules.cpp.

    -

    - +

    +

    - +
    char list[MAXBUF] + address_cache IP
    - +
    +
      @@ -1294,23 +1197,22 @@ Definition at line 133

    - -

    -Definition at line 90 of file modules.cpp.

    -

    - +

    +

    - +
    FILE* log_file + char list[MAXBUF]
    - +
    +
      @@ -1318,23 +1220,22 @@ Definition at line 90 o

    - -

    -Definition at line 116 of file modules.cpp.

    -

    - +

    +

    - +
    int LogLevel + FILE* log_file
    - +
    +
      @@ -1342,23 +1243,22 @@ Definition at line 116

    - -

    -Definition at line 79 of file modules.cpp.

    -

    - +

    +

    - +
    int MaxWhoResults + int LogLevel
    - +
    +
      @@ -1366,23 +1266,22 @@ Definition at line 79 o

    - -

    -Definition at line 100 of file modules.cpp.

    -

    - +

    +

    - +
    serverrec* me[32] + int MaxWhoResults
    - +
    +Definition at line 81 of file channels.cpp.
      @@ -1392,21 +1291,22 @@ Definition at line 100

    -Definition at line 114 of file modules.cpp.

    -

    - +

    +

    - +
    int MODCOUNT = -1 + int MODCOUNT = -1
    - +
    +Definition at line 994 of file modules.cpp.
      @@ -1416,21 +1316,22 @@ Definition at line 114

    -Definition at line 1019 of file modules.cpp.

    -

    - +

    +

    - +
    std::vector<std::string> module_names + std::vector<std::string> module_names
    - +
    +
      @@ -1438,23 +1339,22 @@ Definition at line 1019

    - -

    -Definition at line 103 of file modules.cpp.

    -

    - +

    +

    - +
    std::vector<Module*> modules + std::vector<InspSocket*> module_sockets
    - +
    +Referenced by Server::AddSocket(), and Server::DelSocket().
      @@ -1464,21 +1364,22 @@ Definition at line 103

    -Definition at line 72 of file modules.cpp.

    -

    - +

    +

    - +
    file_cache MOTD + std::vector<Module*> modules
    - +
    +
      @@ -1486,23 +1387,22 @@ Definition at line 72 o

    - -

    -Definition at line 131 of file modules.cpp.

    -

    - +

    +

    - +
    char motd[MAXBUF] + file_cache MOTD
    - +
    +
      @@ -1510,23 +1410,22 @@ Definition at line 131

    - -

    -Definition at line 88 of file modules.cpp.

    -

    - +

    +

    - +
    time_t nb_start + char motd[MAXBUF]
    - +
    +
      @@ -1534,23 +1433,22 @@ Definition at line 88 o

    - -

    -Definition at line 101 of file modules.cpp.

    -

    - +

    +

    - +
    int NetBufferSize + time_t nb_start
    - +
    +
      @@ -1558,23 +1456,22 @@ Definition at line 101

    - -

    -Definition at line 99 of file modules.cpp.

    -

    - +

    +

    - +
    char Network[MAXBUF] + int NetBufferSize
    - +
    +
      @@ -1582,23 +1479,22 @@ Definition at line 99 o

    - -

    -Definition at line 81 of file modules.cpp.

    -

    - +

    +

    - +
    int portCount + char Network[MAXBUF]
    - +
    +
      @@ -1606,23 +1502,22 @@ Definition at line 81 o

    - -

    -Definition at line 106 of file modules.cpp.

    -

    - +

    +

    - +
    int ports[MAXSOCKS] + int portCount
    - +
    +
      @@ -1630,23 +1525,22 @@ Definition at line 106

    - -

    -Definition at line 108 of file modules.cpp.

    -

    - +

    +

    - +
    char PrefixQuit[MAXBUF] + int ports[MAXSOCKS]
    - +
    +
      @@ -1654,23 +1548,22 @@ Definition at line 108

    - -

    -Definition at line 91 of file modules.cpp.

    -

    - +

    +

    - +
    char restartpass[MAXBUF] + char PrefixQuit[MAXBUF]
    - +
    +
      @@ -1678,23 +1571,22 @@ Definition at line 91 o

    - -

    -Definition at line 87 of file modules.cpp.

    -

    - +

    +

    - +
    file_cache RULES + char restartpass[MAXBUF]
    - +
    +
      @@ -1702,23 +1594,22 @@ Definition at line 87 o

    - -

    -Definition at line 132 of file modules.cpp.

    -

    - +

    +

    - +
    char rules[MAXBUF] + file_cache RULES
    - +
    +
      @@ -1726,23 +1617,22 @@ Definition at line 132

    - -

    -Definition at line 89 of file modules.cpp.

    -

    - +

    +

    - +
    char ServerDesc[MAXBUF] + char rules[MAXBUF]
    - +
    +
      @@ -1750,23 +1640,22 @@ Definition at line 89 o

    - -

    -Definition at line 82 of file modules.cpp.

    -

    - +

    +

    - +
    char ServerName[MAXBUF] + char ServerDesc[MAXBUF]
    - +
    +
      @@ -1774,23 +1663,22 @@ Definition at line 82 o

    - -

    -Definition at line 80 of file modules.cpp.

    -

    - +

    +

    - +
    int SERVERportCount + char ServerName[MAXBUF]
    - +
    +
      @@ -1798,23 +1686,22 @@ Definition at line 80 o

    - -

    -Definition at line 107 of file modules.cpp.

    -

    - +

    +

    - +
    time_t startup_time + time_t startup_time
    - +
    +
      @@ -1822,23 +1709,22 @@ Definition at line 107

    - -

    -Definition at line 98 of file modules.cpp.

    -

    - +

    +

    - +
    time_t TIME + time_t TIME
    - +
    +
      @@ -1846,23 +1732,22 @@ Definition at line 98 o

    - -

    -Definition at line 77 of file modules.cpp.

    -

    - +

    +

    - +
    whowas_hash whowas + whowas_hash whowas
    - +
    +
      @@ -1870,23 +1755,22 @@ Definition at line 77 o

    - -

    -Definition at line 129 of file modules.cpp.

    -

    - +

    +

    - +
    int WHOWAS_MAX + int WHOWAS_MAX
    - +
    +
      @@ -1894,23 +1778,22 @@ Definition at line 129

    - -

    -Definition at line 96 of file modules.cpp.

    -

    - +

    +

    - +
    int WHOWAS_STALE + int WHOWAS_STALE
    - +
    +
      @@ -1918,14 +1801,11 @@ Definition at line 96 o

    - -

    -Definition at line 95 of file modules.cpp.

    -


    Generated on Mon May 30 05:16:04 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/modules_8cpp__incl.gif b/docs/module-doc/modules_8cpp__incl.gif index f603ade24..19414b0cf 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 new file mode 100644 index 000000000..af1895853 --- /dev/null +++ b/docs/module-doc/modules_8cpp__incl.map @@ -0,0 +1,10 @@ +base referer +rect $users_8h-source.html 322,738 386,764 +rect $ctables_8h-source.html 316,180 391,207 +rect $modules_8h-source.html 164,383 247,410 +rect $socket_8h-source.html 318,383 390,410 +rect $message_8h-source.html 163,839 248,866 +rect $mode_8h-source.html 172,586 239,612 +rect $xline_8h-source.html 175,788 236,815 +rect $commands_8h-source.html 156,687 255,714 +rect $hashcomp_8h-source.html 307,79 400,106 diff --git a/docs/module-doc/modules_8cpp__incl.md5 b/docs/module-doc/modules_8cpp__incl.md5 new file mode 100644 index 000000000..075b4d32d --- /dev/null +++ b/docs/module-doc/modules_8cpp__incl.md5 @@ -0,0 +1 @@ +ef223cbef13898617d55573e4017c641 \ 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 9e01f90aa..a66aa14b1 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -1,458 +1,451 @@ - + InspIRCd: modules.h Source File - - -

    modules.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 
    -00018 #ifndef __PLUGIN_H
    -00019 #define __PLUGIN_H
    -00020 
    -00021 // log levels
    -00022 
    -00023 #define DEBUG 10
    -00024 #define VERBOSE 20
    -00025 #define DEFAULT 30
    -00026 #define SPARSE 40
    -00027 #define NONE 50
    -00028 
    -00029 // used with OnExtendedMode() method of modules
    -00030 
    -00031 #define MT_CHANNEL 1
    -00032 #define MT_CLIENT 2
    -00033 #define MT_SERVER 3
    -00034 
    -00035 // used with OnAccessCheck() method of modules
    -00036 
    -00037 #define ACR_DEFAULT 0           // Do default action (act as if the module isnt even loaded)
    -00038 #define ACR_DENY 1              // deny the action
    -00039 #define ACR_ALLOW 2             // allow the action
    -00040 
    -00041 #define AC_KICK 0               // a user is being kicked
    -00042 #define AC_DEOP 1               // a user is being deopped
    -00043 #define AC_OP 2                 // a user is being opped
    -00044 #define AC_VOICE 3              // a user is being voiced
    -00045 #define AC_DEVOICE 4            // a user is being devoiced
    -00046 #define AC_HALFOP 5             // a user is being halfopped
    -00047 #define AC_DEHALFOP 6           // a user is being dehalfopped
    -00048 #define AC_INVITE 7             // a user is being invited
    -00049 #define AC_GENERAL_MODE 8       // a user channel mode is being changed
    -00050 
    -00051 // used to define a set of behavior bits for a module
    -00052 
    -00053 #define VF_STATIC               1       // module is static, cannot be /unloadmodule'd
    -00054 #define VF_VENDOR               2       // module is a vendor module (came in the original tarball, not 3rd party)
    -00055 #define VF_SERVICEPROVIDER      4       // module provides a service to other modules (can be a dependency)
    -00056 #define VF_COMMON               8       // module needs to be common on all servers in a mesh to link
    -00057 
    -00058 #include "dynamic.h"
    -00059 #include "base.h"
    -00060 #include "ctables.h"
    -00061 #include <string>
    -00062 #include <deque>
    -00063 #include <sstream>
    -00064 
    -00067 typedef std::deque<std::string> file_cache;
    -00068 typedef file_cache string_list;
    -00069 
    -00072 typedef std::deque<userrec*> chanuserlist;
    -00073 
    -00074 
    -00075 // This #define allows us to call a method in all
    -00076 // loaded modules in a readable simple way, e.g.:
    -00077 // 'FOREACH_MOD OnConnect(user);'
    -00078 
    -00079 #define FOREACH_MOD for (int _i = 0; _i <= MODCOUNT; _i++) modules[_i]->
    -00080 
    -00081 // This define is similar to the one above but returns a result in MOD_RESULT.
    -00082 // The first module to return a nonzero result is the value to be accepted,
    -00083 // and any modules after are ignored.
    -00084 
    -00085 // *********************************************************************************************
    -00086 
    -00087 #define FOREACH_RESULT(x) { MOD_RESULT = 0; \
    -00088                         for (int _i = 0; _i <= MODCOUNT; _i++) { \
    -00089                         int res = modules[_i]->x ; \
    -00090                         if (res != 0) { \
    -00091                                 MOD_RESULT = res; \
    -00092                                 break; \
    -00093                         } \
    -00094                 } \
    -00095         } 
    -00096    
    -00097 // *********************************************************************************************
    -00098 
    -00099 #define FD_MAGIC_NUMBER -42
    -00100 
    -00101 extern void createcommand(char* cmd, handlerfunc f, char flags, int minparams, char* source);
    -00102 extern void server_mode(char **parameters, int pcnt, userrec *user);
    -00103 
    -00104 // class Version holds the version information of a Module, returned
    -00105 // by Module::GetVersion (thanks RD)
    -00106 
    -00111 class Version : public classbase
    -00112 {
    -00113  public:
    -00114          const int Major, Minor, Revision, Build, Flags;
    -00115          Version(int major, int minor, int revision, int build, int flags);
    -00116 };
    -00117 
    -00123 class Admin : public classbase
    -00124 {
    -00125  public:
    -00126          const std::string Name, Email, Nick;
    -00127          Admin(std::string name, std::string email, std::string nick);
    -00128 };
    -00129 
    -00130 
    -00131 // Forward-delacare module for ModuleMessage etc
    -00132 class Module;
    -00133 
    -00134 // Thanks to Rob (from anope) for the idea of this message passing API
    -00135 // (its been done before, but this seemed a very neat and tidy way...
    -00136 
    -00141 class ModuleMessage : public classbase
    -00142 {
    -00143  public:
    -00146         virtual char* Send() = 0;
    -00147 };
    -00148 
    -00154 class Request : public ModuleMessage
    -00155 {
    -00156  protected:
    -00159         char* data;
    -00163         Module* source;
    -00166         Module* dest;
    -00167  public:
    -00170         Request(char* anydata, Module* src, Module* dst);
    -00173         char* GetData();
    -00176         Module* GetSource();
    -00179         Module* GetDest();
    -00185         char* Send();
    -00186 };
    -00187 
    -00188 
    -00194 class Event : public ModuleMessage
    -00195 {
    -00196  protected:
    -00199         char* data;
    -00203         Module* source;
    -00208         std::string id;
    -00209  public:
    -00212         Event(char* anydata, Module* src, std::string eventid);
    -00215         char* GetData();
    -00218         Module* GetSource();
    -00222         std::string GetEventID();
    -00227         char* Send();
    -00228 };
    -00229 
    -00230 
    -00236 class Module : public classbase
    -00237 {
    -00238  public:
    -00239 
    -00243         Module();
    -00244 
    -00248         virtual ~Module();
    -00249 
    -00254         virtual Version GetVersion();
    -00255 
    -00259         virtual void OnUserConnect(userrec* user);
    -00260 
    -00266         virtual void OnUserQuit(userrec* user);
    -00267 
    -00273         virtual void OnUserDisconnect(userrec* user);
    -00274 
    -00279         virtual void OnUserJoin(userrec* user, chanrec* channel);
    -00280 
    -00285         virtual void OnUserPart(userrec* user, chanrec* channel);
    -00286 
    -00292         virtual void OnPacketTransmit(std::string &data, std::string serv);
    -00293 
    -00300         virtual void OnPacketReceive(std::string &data, std::string serv);
    -00301 
    -00307         virtual void OnRehash();
    -00308 
    -00317         virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user);
    -00318 
    -00328         virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params);
    -00329         
    -00343         virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname);
    -00344         
    -00350         virtual int OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason);
    -00351 
    -00356         virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason);
    -00357 
    -00362         virtual void OnOper(userrec* user);
    -00363         
    -00372         virtual void OnInfo(userrec* user);
    -00373         
    -00378         virtual void OnWhois(userrec* source, userrec* dest);
    -00379         
    -00385         virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel);
    -00386         
    -00395         virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text);
    -00396 
    -00408         virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text);
    -00409         
    -00417         virtual int OnUserPreNick(userrec* user, std::string newnick);
    -00418         
    -00426         virtual void OnUserPostNick(userrec* user, std::string oldnick);
    -00427 
    -00449         virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type);
    -00450 
    -00456         virtual string_list OnUserSync(userrec* user);
    -00457 
    -00463         virtual string_list OnChannelSync(chanrec* chan);
    -00464 
    -00468         virtual void On005Numeric(std::string &output);
    -00469 
    -00479         virtual int OnKill(userrec* source, userrec* dest, std::string reason);
    -00480 
    -00491         virtual void OnLoadModule(Module* mod,std::string name);
    -00492 
    -00498         virtual void OnBackgroundTimer(time_t curtime);
    -00499 
    -00507         virtual void OnSendList(userrec* user, chanrec* channel, char mode);
    -00508 
    -00519         virtual int OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user);
    -00520 
    -00529         virtual bool OnCheckReady(userrec* user);
    -00530 
    -00538         virtual void OnUserRegister(userrec* user);
    -00539 
    -00545         virtual int OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt);
    -00546 
    -00552         virtual int OnCheckInvite(userrec* user, chanrec* chan);
    -00553 
    -00560         virtual int OnCheckKey(userrec* user, chanrec* chan, std::string keygiven);
    -00561 
    -00567         virtual int OnCheckLimit(userrec* user, chanrec* chan);
    -00568 
    -00574         virtual int OnCheckBan(userrec* user, chanrec* chan);
    -00575 
    -00579         virtual void OnStats(char symbol);
    -00580 
    -00584         virtual int OnChangeLocalUserHost(userrec* user, std::string newhost);
    -00585 
    -00589         virtual int OnChangeLocalUserGECOS(userrec* user, std::string newhost); 
    -00590 
    -00594         virtual int OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic);
    -00595 
    -00606         virtual int OnMeshToken(char token,string_list params,serverrec* source,serverrec* reply, std::string tcp_host,std::string ipaddr,int port);
    -00607 
    -00613         virtual void OnEvent(Event* event);
    -00614 
    -00621         virtual char* OnRequest(Request* request);
    -00622 
    -00629         virtual int OnOperCompare(std::string password, std::string input);
    -00630 
    -00636         virtual void OnGlobalOper(userrec* user);
    -00637 
    -00642         virtual void OnGlobalConnect(userrec* user);
    -00643 
    -00647         virtual int OnAddBan(userrec* source, chanrec* channel,std::string banmask);
    -00648 
    -00652         virtual int OnDelBan(userrec* source, chanrec* channel,std::string banmask);
    -00653 
    -00660         virtual void OnRawSocketAccept(int fd, std::string ip, int localport);
    -00661 
    -00668         virtual int OnRawSocketWrite(int fd, char* buffer, int count);
    -00669 
    -00673         virtual void OnRawSocketClose(int fd);
    -00674 
    -00685         virtual int OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult);
    -00686 };
    -00687 
    -00688 
    -00694 class Server : public classbase
    -00695 {
    -00696  public:
    -00700         Server();
    -00704         virtual ~Server();
    -00705 
    -00709         virtual void SendOpers(std::string s);
    -00714         virtual void Log(int level, std::string s);
    -00719         virtual void Send(int Socket, std::string s);
    -00724         virtual void SendServ(int Socket, std::string s);
    -00728         virtual void SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text);
    -00733         virtual void SendFrom(int Socket, userrec* User, std::string s);
    -00748         virtual void SendTo(userrec* Source, userrec* Dest, std::string s);
    -00755         virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender);
    -00760         virtual bool CommonChannels(userrec* u1, userrec* u2);
    -00768         virtual void SendCommon(userrec* User, std::string text,bool IncludeSender);
    -00773         virtual void SendWallops(userrec* User, std::string text);
    -00774 
    -00778         virtual bool IsNick(std::string nick);
    -00782         virtual int CountUsers(chanrec* c);
    -00786         virtual userrec* FindNick(std::string nick);
    -00790         virtual userrec* FindDescriptor(int socket);
    -00794         virtual chanrec* FindChannel(std::string channel);
    -00799         virtual std::string ChanMode(userrec* User, chanrec* Chan);
    -00803         virtual bool IsOnChannel(userrec* User, chanrec* Chan);
    -00806         virtual std::string GetServerName();
    -00809         virtual std::string GetNetworkName();
    -00812         virtual std::string GetServerDescription();
    -00818         virtual Admin GetAdmin();
    -00837         virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off);
    -00838 
    -00860         virtual bool AddExtendedListMode(char modechar);
    -00861 
    -00879         virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source);
    -00880          
    -00902         virtual void SendMode(char **parameters, int pcnt, userrec *user);
    -00903         
    -00916         virtual void SendToModeMask(std::string modes, int flags, std::string text);
    -00917 
    -00923         virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key);
    -00924         
    -00930         virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason);
    -00931         
    -00937         virtual void ChangeUserNick(userrec* user, std::string nickname);
    -00938         
    -00949         virtual void QuitUser(userrec* user, std::string reason);
    -00950         
    -00955         virtual bool MatchText(std::string sliteral, std::string spattern);
    -00956         
    -00968         virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user);
    -00969         
    -00975         virtual void ChangeHost(userrec* user, std::string host);
    -00976         
    -00982         virtual void ChangeGECOS(userrec* user, std::string gecos);
    -00983         
    -00992         virtual bool IsUlined(std::string server);
    -00993         
    -00997         virtual chanuserlist GetUsers(chanrec* chan);
    -00998 
    -01005         virtual bool UserToPseudo(userrec* user,std::string message);
    -01006 
    -01013         virtual bool PseudoToUser(userrec* alive,userrec* zombie,std::string message);
    -01014 
    -01022         virtual void AddGLine(long duration, std::string source, std::string reason, std::string hostmask);
    -01023 
    -01031         virtual void AddQLine(long duration, std::string source, std::string reason, std::string nickname);
    -01032 
    -01040         virtual void AddZLine(long duration, std::string source, std::string reason, std::string ipaddr);
    -01041 
    -01049         virtual void AddKLine(long duration, std::string source, std::string reason, std::string hostmask);
    -01050 
    -01058         virtual void AddELine(long duration, std::string source, std::string reason, std::string hostmask);
    -01059 
    -01062         virtual bool DelGLine(std::string hostmask);
    -01063 
    -01066         virtual bool DelQLine(std::string nickname);
    -01067 
    -01070         virtual bool DelZLine(std::string ipaddr);
    -01071 
    -01074         virtual bool DelKLine(std::string hostmask);
    -01075 
    -01078         virtual bool DelELine(std::string hostmask);
    -01079 
    -01085         virtual long CalcDuration(std::string duration);
    -01086 
    -01089         virtual bool IsValidMask(std::string mask);
    -01090 
    -01095         virtual void MeshSendAll(std::string text);
    -01096 
    -01103         virtual void MeshSendCommon(userrec* user, std::string text);
    -01104 
    -01107         virtual void MeshSendAllAlive(std::string text);
    -01108 
    -01112         virtual void MeshSendUnicast(std::string destination, std::string text);
    -01113 
    -01118         virtual void MeshSendAllExcept(std::string target, std::string text);
    -01119 
    -01123         virtual bool MeshCheckChan(chanrec *c,std::string servername);
    -01124 
    -01128         virtual bool MeshCheckCommon(userrec* u,std::string servername);
    -01129 
    -01134         virtual Module* FindModule(std::string name);
    -01135 };
    -01136 
    -01137 
    -01138 #define CONF_NOT_A_NUMBER       0x000010
    -01139 #define CONF_NOT_UNSIGNED       0x000080
    -01140 #define CONF_VALUE_NOT_FOUND    0x000100
    -01141 #define CONF_FILE_NOT_FOUND     0x000200
    -01142 
    -01143 
    -01150 class ConfigReader : public classbase
    -01151 {
    -01152   protected:
    -01158         std::stringstream *cache;
    -01159         std::stringstream *errorlog;
    -01162         bool readerror;
    -01163         long error;
    -01164         
    -01165   public:
    -01170         ConfigReader();                 // default constructor reads ircd.conf
    -01174         ConfigReader(std::string filename);     // read a module-specific config
    -01178         ~ConfigReader();
    -01183         std::string ReadValue(std::string tag, std::string name, int index);
    -01189         bool ReadFlag(std::string tag, std::string name, int index);
    -01198         long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned);
    -01203         long GetError();
    -01210         int Enumerate(std::string tag);
    -01215         bool Verify();
    -01222         void DumpErrors(bool bail,userrec* user);
    -01223 
    -01229         int EnumerateValues(std::string tag, int index);
    -01230 };
    -01231 
    -01232 
    -01233 
    -01239 class FileReader : public classbase
    -01240 {
    -01241  file_cache fc;
    -01242  public:
    -01247          FileReader();
    -01248 
    -01254          FileReader(std::string filename);
    -01255 
    -01259          ~FileReader();
    -01260 
    -01266          void LoadFile(std::string filename);
    -01267 
    -01271          bool Exists();
    -01272          
    -01277          std::string GetLine(int x);
    -01278 
    -01284          int FileSize();
    -01285 };
    -01286 
    -01287 
    -01294 class ModuleFactory : public classbase
    -01295 {
    -01296  public:
    -01297         ModuleFactory() { }
    -01298         virtual ~ModuleFactory() { }
    -01303         virtual Module * CreateModule() = 0;
    -01304 };
    -01305 
    -01306 
    -01307 typedef DLLFactory<ModuleFactory> ircd_module;
    -01308 
    -01309 #endif
    -

    Generated on Mon May 30 05:15:20 2005 for InspIRCd by + + + +

    modules.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 
    +00018 #ifndef __PLUGIN_H
    +00019 #define __PLUGIN_H
    +00020 
    +00021 // log levels
    +00022 
    +00023 #define DEBUG 10
    +00024 #define VERBOSE 20
    +00025 #define DEFAULT 30
    +00026 #define SPARSE 40
    +00027 #define NONE 50
    +00028 
    +00029 // used with OnExtendedMode() method of modules
    +00030 
    +00031 #define MT_CHANNEL 1
    +00032 #define MT_CLIENT 2
    +00033 #define MT_SERVER 3
    +00034 
    +00035 // used with OnAccessCheck() method of modules
    +00036 
    +00037 #define ACR_DEFAULT 0           // Do default action (act as if the module isnt even loaded)
    +00038 #define ACR_DENY 1              // deny the action
    +00039 #define ACR_ALLOW 2             // allow the action
    +00040 
    +00041 #define AC_KICK 0               // a user is being kicked
    +00042 #define AC_DEOP 1               // a user is being deopped
    +00043 #define AC_OP 2                 // a user is being opped
    +00044 #define AC_VOICE 3              // a user is being voiced
    +00045 #define AC_DEVOICE 4            // a user is being devoiced
    +00046 #define AC_HALFOP 5             // a user is being halfopped
    +00047 #define AC_DEHALFOP 6           // a user is being dehalfopped
    +00048 #define AC_INVITE 7             // a user is being invited
    +00049 #define AC_GENERAL_MODE 8       // a user channel mode is being changed
    +00050 
    +00051 // used to define a set of behavior bits for a module
    +00052 
    +00053 #define VF_STATIC               1       // module is static, cannot be /unloadmodule'd
    +00054 #define VF_VENDOR               2       // module is a vendor module (came in the original tarball, not 3rd party)
    +00055 #define VF_SERVICEPROVIDER      4       // module provides a service to other modules (can be a dependency)
    +00056 #define VF_COMMON               8       // module needs to be common on all servers in a mesh to link
    +00057 
    +00058 #include "dynamic.h"
    +00059 #include "base.h"
    +00060 #include "ctables.h"
    +00061 #include "socket.h"
    +00062 #include <string>
    +00063 #include <deque>
    +00064 #include <sstream>
    +00065 
    +00068 typedef std::deque<std::string> file_cache;
    +00069 typedef file_cache string_list;
    +00070 
    +00073 typedef std::deque<userrec*> chanuserlist;
    +00074 
    +00075 
    +00076 // This #define allows us to call a method in all
    +00077 // loaded modules in a readable simple way, e.g.:
    +00078 // 'FOREACH_MOD OnConnect(user);'
    +00079 
    +00080 #define FOREACH_MOD for (int _i = 0; _i <= MODCOUNT; _i++) modules[_i]->
    +00081 
    +00082 // This define is similar to the one above but returns a result in MOD_RESULT.
    +00083 // The first module to return a nonzero result is the value to be accepted,
    +00084 // and any modules after are ignored.
    +00085 
    +00086 // *********************************************************************************************
    +00087 
    +00088 #define FOREACH_RESULT(x) { MOD_RESULT = 0; \
    +00089                         for (int _i = 0; _i <= MODCOUNT; _i++) { \
    +00090                         int res = modules[_i]->x ; \
    +00091                         if (res != 0) { \
    +00092                                 MOD_RESULT = res; \
    +00093                                 break; \
    +00094                         } \
    +00095                 } \
    +00096         } 
    +00097    
    +00098 // *********************************************************************************************
    +00099 
    +00100 #define FD_MAGIC_NUMBER -42
    +00101 
    +00102 extern void createcommand(char* cmd, handlerfunc f, char flags, int minparams, char* source);
    +00103 extern void server_mode(char **parameters, int pcnt, userrec *user);
    +00104 
    +00105 // class Version holds the version information of a Module, returned
    +00106 // by Module::GetVersion (thanks RD)
    +00107 
    +00112 class Version : public classbase
    +00113 {
    +00114  public:
    +00115          const int Major, Minor, Revision, Build, Flags;
    +00116          Version(int major, int minor, int revision, int build, int flags);
    +00117 };
    +00118 
    +00124 class Admin : public classbase
    +00125 {
    +00126  public:
    +00127          const std::string Name, Email, Nick;
    +00128          Admin(std::string name, std::string email, std::string nick);
    +00129 };
    +00130 
    +00131 
    +00132 // Forward-delacare module for ModuleMessage etc
    +00133 class Module;
    +00134 
    +00135 // Thanks to Rob (from anope) for the idea of this message passing API
    +00136 // (its been done before, but this seemed a very neat and tidy way...
    +00137 
    +00142 class ModuleMessage : public classbase
    +00143 {
    +00144  public:
    +00147         virtual char* Send() = 0;
    +00148         virtual ~ModuleMessage() {};
    +00149 };
    +00150 
    +00156 class Request : public ModuleMessage
    +00157 {
    +00158  protected:
    +00161         char* data;
    +00165         Module* source;
    +00168         Module* dest;
    +00169  public:
    +00172         Request(char* anydata, Module* src, Module* dst);
    +00175         char* GetData();
    +00178         Module* GetSource();
    +00181         Module* GetDest();
    +00187         char* Send();
    +00188 };
    +00189 
    +00190 
    +00196 class Event : public ModuleMessage
    +00197 {
    +00198  protected:
    +00201         char* data;
    +00205         Module* source;
    +00210         std::string id;
    +00211  public:
    +00214         Event(char* anydata, Module* src, std::string eventid);
    +00217         char* GetData();
    +00220         Module* GetSource();
    +00224         std::string GetEventID();
    +00229         char* Send();
    +00230 };
    +00231 
    +00232 
    +00238 class Module : public classbase
    +00239 {
    +00240  public:
    +00241 
    +00245         Module();
    +00246 
    +00250         virtual ~Module();
    +00251 
    +00256         virtual Version GetVersion();
    +00257 
    +00261         virtual void OnUserConnect(userrec* user);
    +00262 
    +00268         virtual void OnUserQuit(userrec* user);
    +00269 
    +00275         virtual void OnUserDisconnect(userrec* user);
    +00276 
    +00281         virtual void OnUserJoin(userrec* user, chanrec* channel);
    +00282 
    +00287         virtual void OnUserPart(userrec* user, chanrec* channel);
    +00288 
    +00294         virtual void OnPacketTransmit(std::string &data, std::string serv);
    +00295 
    +00302         virtual void OnPacketReceive(std::string &data, std::string serv);
    +00303 
    +00309         virtual void OnRehash();
    +00310 
    +00319         virtual void OnServerRaw(std::string &raw, bool inbound, userrec* user);
    +00320 
    +00330         virtual int OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params);
    +00331         
    +00345         virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname);
    +00346         
    +00352         virtual int OnUserPreKick(userrec* source, userrec* user, chanrec* chan, std::string reason);
    +00353 
    +00358         virtual void OnUserKick(userrec* source, userrec* user, chanrec* chan, std::string reason);
    +00359 
    +00364         virtual void OnOper(userrec* user);
    +00365         
    +00374         virtual void OnInfo(userrec* user);
    +00375         
    +00380         virtual void OnWhois(userrec* source, userrec* dest);
    +00381         
    +00387         virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel);
    +00388         
    +00397         virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text);
    +00398 
    +00410         virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text);
    +00411         
    +00419         virtual int OnUserPreNick(userrec* user, std::string newnick);
    +00420         
    +00428         virtual void OnUserPostNick(userrec* user, std::string oldnick);
    +00429 
    +00451         virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type);
    +00452 
    +00458         virtual string_list OnUserSync(userrec* user);
    +00459 
    +00465         virtual string_list OnChannelSync(chanrec* chan);
    +00466 
    +00470         virtual void On005Numeric(std::string &output);
    +00471 
    +00481         virtual int OnKill(userrec* source, userrec* dest, std::string reason);
    +00482 
    +00493         virtual void OnLoadModule(Module* mod,std::string name);
    +00494 
    +00505         virtual void OnUnloadModule(Module* mod,std::string name);
    +00506 
    +00512         virtual void OnBackgroundTimer(time_t curtime);
    +00513 
    +00521         virtual void OnSendList(userrec* user, chanrec* channel, char mode);
    +00522 
    +00533         virtual int OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user);
    +00534 
    +00543         virtual bool OnCheckReady(userrec* user);
    +00544 
    +00552         virtual void OnUserRegister(userrec* user);
    +00553 
    +00559         virtual int OnRawMode(userrec* user, chanrec* chan, char mode, std::string param, bool adding, int pcnt);
    +00560 
    +00566         virtual int OnCheckInvite(userrec* user, chanrec* chan);
    +00567 
    +00574         virtual int OnCheckKey(userrec* user, chanrec* chan, std::string keygiven);
    +00575 
    +00581         virtual int OnCheckLimit(userrec* user, chanrec* chan);
    +00582 
    +00588         virtual int OnCheckBan(userrec* user, chanrec* chan);
    +00589 
    +00593         virtual void OnStats(char symbol);
    +00594 
    +00598         virtual int OnChangeLocalUserHost(userrec* user, std::string newhost);
    +00599 
    +00603         virtual int OnChangeLocalUserGECOS(userrec* user, std::string newhost); 
    +00604 
    +00608         virtual int OnLocalTopicChange(userrec* user, chanrec* chan, std::string topic);
    +00609 
    +00615         virtual void OnEvent(Event* event);
    +00616 
    +00623         virtual char* OnRequest(Request* request);
    +00624 
    +00631         virtual int OnOperCompare(std::string password, std::string input);
    +00632 
    +00638         virtual void OnGlobalOper(userrec* user);
    +00639 
    +00644         virtual void OnGlobalConnect(userrec* user);
    +00645 
    +00649         virtual int OnAddBan(userrec* source, chanrec* channel,std::string banmask);
    +00650 
    +00654         virtual int OnDelBan(userrec* source, chanrec* channel,std::string banmask);
    +00655 
    +00662         virtual void OnRawSocketAccept(int fd, std::string ip, int localport);
    +00663 
    +00670         virtual int OnRawSocketWrite(int fd, char* buffer, int count);
    +00671 
    +00675         virtual void OnRawSocketClose(int fd);
    +00676 
    +00687         virtual int OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult);
    +00688 };
    +00689 
    +00690 
    +00696 class Server : public classbase
    +00697 {
    +00698  public:
    +00702         Server();
    +00706         virtual ~Server();
    +00707 
    +00711         virtual void SendOpers(std::string s);
    +00716         virtual void Log(int level, std::string s);
    +00721         virtual void Send(int Socket, std::string s);
    +00726         virtual void SendServ(int Socket, std::string s);
    +00730         virtual void SendChannelServerNotice(std::string ServName, chanrec* Channel, std::string text);
    +00735         virtual void SendFrom(int Socket, userrec* User, std::string s);
    +00750         virtual void SendTo(userrec* Source, userrec* Dest, std::string s);
    +00757         virtual void SendChannel(userrec* User, chanrec* Channel, std::string s,bool IncludeSender);
    +00762         virtual bool CommonChannels(userrec* u1, userrec* u2);
    +00770         virtual void SendCommon(userrec* User, std::string text,bool IncludeSender);
    +00775         virtual void SendWallops(userrec* User, std::string text);
    +00776 
    +00780         virtual bool IsNick(std::string nick);
    +00784         virtual int CountUsers(chanrec* c);
    +00788         virtual userrec* FindNick(std::string nick);
    +00792         virtual userrec* FindDescriptor(int socket);
    +00796         virtual chanrec* FindChannel(std::string channel);
    +00801         virtual std::string ChanMode(userrec* User, chanrec* Chan);
    +00805         virtual bool IsOnChannel(userrec* User, chanrec* Chan);
    +00808         virtual std::string GetServerName();
    +00811         virtual std::string GetNetworkName();
    +00814         virtual std::string GetServerDescription();
    +00820         virtual Admin GetAdmin();
    +00839         virtual bool AddExtendedMode(char modechar, int type, bool requires_oper, int params_when_on, int params_when_off);
    +00840 
    +00862         virtual bool AddExtendedListMode(char modechar);
    +00863 
    +00881         virtual void AddCommand(char* cmd, handlerfunc f, char flags, int minparams, char* source);
    +00882          
    +00904         virtual void SendMode(char **parameters, int pcnt, userrec *user);
    +00905         
    +00918         virtual void SendToModeMask(std::string modes, int flags, std::string text);
    +00919 
    +00925         virtual chanrec* JoinUserToChannel(userrec* user, std::string cname, std::string key);
    +00926         
    +00932         virtual chanrec* PartUserFromChannel(userrec* user, std::string cname, std::string reason);
    +00933         
    +00939         virtual void ChangeUserNick(userrec* user, std::string nickname);
    +00940         
    +00951         virtual void QuitUser(userrec* user, std::string reason);
    +00952         
    +00957         virtual bool MatchText(std::string sliteral, std::string spattern);
    +00958         
    +00970         virtual void CallCommandHandler(std::string commandname, char** parameters, int pcnt, userrec* user);
    +00971         
    +00977         virtual void ChangeHost(userrec* user, std::string host);
    +00978         
    +00984         virtual void ChangeGECOS(userrec* user, std::string gecos);
    +00985         
    +00994         virtual bool IsUlined(std::string server);
    +00995         
    +00999         virtual chanuserlist GetUsers(chanrec* chan);
    +01000 
    +01007         virtual bool UserToPseudo(userrec* user,std::string message);
    +01008 
    +01015         virtual bool PseudoToUser(userrec* alive,userrec* zombie,std::string message);
    +01016 
    +01024         virtual void AddGLine(long duration, std::string source, std::string reason, std::string hostmask);
    +01025 
    +01033         virtual void AddQLine(long duration, std::string source, std::string reason, std::string nickname);
    +01034 
    +01042         virtual void AddZLine(long duration, std::string source, std::string reason, std::string ipaddr);
    +01043 
    +01051         virtual void AddKLine(long duration, std::string source, std::string reason, std::string hostmask);
    +01052 
    +01060         virtual void AddELine(long duration, std::string source, std::string reason, std::string hostmask);
    +01061 
    +01064         virtual bool DelGLine(std::string hostmask);
    +01065 
    +01068         virtual bool DelQLine(std::string nickname);
    +01069 
    +01072         virtual bool DelZLine(std::string ipaddr);
    +01073 
    +01076         virtual bool DelKLine(std::string hostmask);
    +01077 
    +01080         virtual bool DelELine(std::string hostmask);
    +01081 
    +01087         virtual long CalcDuration(std::string duration);
    +01088 
    +01091         virtual bool IsValidMask(std::string mask);
    +01092 
    +01097         virtual Module* FindModule(std::string name);
    +01098 
    +01101         virtual void AddSocket(InspSocket* sock);
    +01102 
    +01105         virtual void DelSocket(InspSocket* sock);
    +01106 };
    +01107 
    +01108 
    +01109 #define CONF_NOT_A_NUMBER       0x000010
    +01110 #define CONF_NOT_UNSIGNED       0x000080
    +01111 #define CONF_VALUE_NOT_FOUND    0x000100
    +01112 #define CONF_FILE_NOT_FOUND     0x000200
    +01113 
    +01114 
    +01121 class ConfigReader : public classbase
    +01122 {
    +01123   protected:
    +01129         std::stringstream *cache;
    +01130         std::stringstream *errorlog;
    +01133         bool readerror;
    +01134         long error;
    +01135         
    +01136   public:
    +01141         ConfigReader();                 // default constructor reads ircd.conf
    +01145         ConfigReader(std::string filename);     // read a module-specific config
    +01149         ~ConfigReader();
    +01154         std::string ReadValue(std::string tag, std::string name, int index);
    +01160         bool ReadFlag(std::string tag, std::string name, int index);
    +01169         long ReadInteger(std::string tag, std::string name, int index, bool needs_unsigned);
    +01174         long GetError();
    +01181         int Enumerate(std::string tag);
    +01186         bool Verify();
    +01193         void DumpErrors(bool bail,userrec* user);
    +01194 
    +01200         int EnumerateValues(std::string tag, int index);
    +01201 };
    +01202 
    +01203 
    +01204 
    +01210 class FileReader : public classbase
    +01211 {
    +01212  file_cache fc;
    +01213  public:
    +01218          FileReader();
    +01219 
    +01225          FileReader(std::string filename);
    +01226 
    +01230          ~FileReader();
    +01231 
    +01237          void LoadFile(std::string filename);
    +01238 
    +01242          bool Exists();
    +01243          
    +01248          std::string GetLine(int x);
    +01249 
    +01255          int FileSize();
    +01256 };
    +01257 
    +01258 
    +01265 class ModuleFactory : public classbase
    +01266 {
    +01267  public:
    +01268         ModuleFactory() { }
    +01269         virtual ~ModuleFactory() { }
    +01274         virtual Module * CreateModule() = 0;
    +01275 };
    +01276 
    +01277 
    +01278 typedef DLLFactory<ModuleFactory> ircd_module;
    +01279 
    +01280 #endif
    +

    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index 872327ad6..d6c773aec 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -1,158 +1,163 @@ - + InspIRCd: modules.h File Reference - - -

    modules.h File Reference

    #include "dynamic.h"
    -#include "base.h"
    -#include "ctables.h"
    + + + +

    modules.h File Reference

    #include "dynamic.h"
    +#include "base.h"
    +#include "ctables.h"
    +#include "socket.h"
    #include <string>
    #include <deque>
    #include <sstream>

    -Include dependency graph for modules.h:

    Include dependency graph
    +Include dependency graph for modules.h:

    - - + + +

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

    Included by dependency graph
    +This graph shows which files directly or indirectly include this file:

    - - + +

    -Go to the source code of this file. +Go to the source code of this file.
    - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - - + + - + - - + + - - + + - +

    Compounds

    class  Admin

    Classes

    class  Version
     Holds /ADMIN data This class contains the admin details of the local server. More...

    class  ConfigReader
     Holds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module. More...
    class  Admin
     Allows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file. More...

    class  Event
     Holds /ADMIN data This class contains the admin details of the local server. More...
    class  ModuleMessage
     The Event class is a unicast message directed at all modules. More...

    class  FileReader
     The ModuleMessage class is the base class of Request and Event This class is used to represent a basic data structure which is passed between modules for safe inter-module communications. More...
    class  Request
     Caches a text file into memory and can be used to retrieve lines from it. More...

    class  Module
     The Request class is a unicast message directed at a given module. More...
    class  Event
     Base class for all InspIRCd modules This class is the base class for InspIRCd modules. More...

    class  ModuleFactory
     The Event class is a unicast message directed at all modules. More...
    class  Module
     Instantiates classes inherited from Module This class creates a class inherited from type Module, using new. More...

    class  ModuleMessage
     Base class for all InspIRCd modules This class is the base class for InspIRCd modules. More...
    class  Server
     The ModuleMessage class is the base class of Request and Event This class is used to represent a basic data structure which is passed between modules for safe inter-module communications. More...

    class  Request
     Allows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers. More...
    class  ConfigReader
     The Request class is a unicast message directed at a given module. More...

    class  Server
     Allows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file. More...
    class  FileReader
     Allows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers. More...

    class  Version
     Caches a text file into memory and can be used to retrieve lines from it. More...
    class  ModuleFactory
     Holds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module. More...


    Defines

    #define DEBUG   10
     Instantiates classes inherited from Module This class creates a class inherited from type Module, using new. More...

    Defines

    #define DEBUG   10
    #define VERBOSE   20
    #define VERBOSE   20
    #define DEFAULT   30
    #define DEFAULT   30
    #define SPARSE   40
    #define SPARSE   40
    #define NONE   50
    #define NONE   50
    #define MT_CHANNEL   1
    #define MT_CHANNEL   1
    #define MT_CLIENT   2
    #define MT_CLIENT   2
    #define MT_SERVER   3
    #define MT_SERVER   3
    #define ACR_DEFAULT   0
    #define ACR_DEFAULT   0
    #define ACR_DENY   1
    #define ACR_DENY   1
    #define ACR_ALLOW   2
    #define ACR_ALLOW   2
    #define AC_KICK   0
    #define AC_KICK   0
    #define AC_DEOP   1
    #define AC_DEOP   1
    #define AC_OP   2
    #define AC_OP   2
    #define AC_VOICE   3
    #define AC_VOICE   3
    #define AC_DEVOICE   4
    #define AC_DEVOICE   4
    #define AC_HALFOP   5
    #define AC_HALFOP   5
    #define AC_DEHALFOP   6
    #define AC_DEHALFOP   6
    #define AC_INVITE   7
    #define AC_INVITE   7
    #define AC_GENERAL_MODE   8
    #define AC_GENERAL_MODE   8
    #define VF_STATIC   1
    #define VF_STATIC   1
    #define VF_VENDOR   2
    #define VF_VENDOR   2
    #define VF_SERVICEPROVIDER   4
    #define VF_SERVICEPROVIDER   4
    #define VF_COMMON   8
    #define VF_COMMON   8
    #define FOREACH_MOD   for (int _i = 0; _i <= MODCOUNT; _i++) modules[_i]->
    #define FOREACH_MOD   for (int _i = 0; _i <= MODCOUNT; _i++) modules[_i]->
    #define FOREACH_RESULT(x)
    #define FOREACH_RESULT(x)
    #define FD_MAGIC_NUMBER   -42
    #define FD_MAGIC_NUMBER   -42
    #define CONF_NOT_A_NUMBER   0x000010
    #define CONF_NOT_A_NUMBER   0x000010
    #define CONF_NOT_UNSIGNED   0x000080
    #define CONF_NOT_UNSIGNED   0x000080
    #define CONF_VALUE_NOT_FOUND   0x000100
    #define CONF_VALUE_NOT_FOUND   0x000100
    #define CONF_FILE_NOT_FOUND   0x000200
    #define CONF_FILE_NOT_FOUND   0x000200

    Typedefs

    typedef std::deque< std::string > file_cache

    Typedefs

    typedef std::deque< std::stringfile_cache
     Low level definition of a FileReader classes file cache area.

    typedef file_cache string_list
     Low level definition of a FileReader classes file cache area.
    typedef file_cache string_list
    typedef std::deque< userrec * > chanuserlist
    typedef std::deque< userrec * > chanuserlist
     Holds a list of users in a channel.

    typedef DLLFactory< ModuleFactoryircd_module
     Holds a list of users in a channel.
    typedef DLLFactory< ModuleFactoryircd_module

    Functions

    void createcommand (char *cmd, handlerfunc f, char flags, int minparams, char *source)

    Functions

    void createcommand (char *cmd, handlerfunc f, char flags, int minparams, char *source)
    void server_mode (char **parameters, int pcnt, userrec *user)
    void server_mode (char **parameters, int pcnt, userrec *user)


    Define Documentation

    -

    - +

    +

    - +
    #define AC_DEHALFOP   6 + #define AC_DEHALFOP   6
    - +
      @@ -165,18 +170,19 @@ This graph shows which files directly or indirectly include this file:

    47 of file modules.h.
    -

    - +

    +

    - +
    #define AC_DEOP   1 + #define AC_DEOP   1
    - +
      @@ -189,18 +195,19 @@ Definition at line 47 of Definition at line 42 of file modules.h.
    -

    - +

    +

    - +
    #define AC_DEVOICE   4 + #define AC_DEVOICE   4
    - +
      @@ -213,18 +220,19 @@ Definition at line 42 of Definition at line 45 of file modules.h.
    -

    - +

    +

    - +
    #define AC_GENERAL_MODE   8 + #define AC_GENERAL_MODE   8
    - +
      @@ -237,18 +245,19 @@ Definition at line 45 of Definition at line 49 of file modules.h.
    -

    - +

    +

    - +
    #define AC_HALFOP   5 + #define AC_HALFOP   5
    - +
      @@ -261,18 +270,19 @@ Definition at line 49 of Definition at line 46 of file modules.h.
    -

    - +

    +

    - +
    #define AC_INVITE   7 + #define AC_INVITE   7
    - +
      @@ -285,18 +295,19 @@ Definition at line 46 of Definition at line 48 of file modules.h.
    -

    - +

    +

    - +
    #define AC_KICK   0 + #define AC_KICK   0
    - +
      @@ -309,18 +320,19 @@ Definition at line 48 of Definition at line 41 of file modules.h.
    -

    - +

    +

    - +
    #define AC_OP   2 + #define AC_OP   2
    - +
      @@ -333,18 +345,19 @@ Definition at line 41 of Definition at line 43 of file modules.h.
    -

    - +

    +

    - +
    #define AC_VOICE   3 + #define AC_VOICE   3
    - +
      @@ -357,18 +370,19 @@ Definition at line 43 of Definition at line 44 of file modules.h.
    -

    - +

    +

    - +
    #define ACR_ALLOW   2 + #define ACR_ALLOW   2
    - +
      @@ -381,18 +395,19 @@ Definition at line 44 of Definition at line 39 of file modules.h.
    -

    - +

    +

    - +
    #define ACR_DEFAULT   0 + #define ACR_DEFAULT   0
    - +
    +Referenced by Module::OnAccessCheck().
      @@ -404,21 +419,22 @@ Definition at line 39 of

    Definition at line 37 of file modules.h.

    -Referenced by Module::OnAccessCheck().

    -

    - +

    +

    - +
    #define ACR_DENY   1 + #define ACR_DENY   1
    - +
      @@ -431,18 +447,19 @@ Referenced by Module::OnAcc Definition at line 38 of file modules.h.
    -

    - +

    +

    - +
    #define CONF_FILE_NOT_FOUND   0x000200 + #define CONF_FILE_NOT_FOUND   0x000200
    - +
    +Referenced by ConfigReader::ConfigReader().
      @@ -452,23 +469,24 @@ Definition at line 38 of

    -Definition at line 1141 of file modules.h. +Definition at line 1112 of file modules.h.

    -Referenced by ConfigReader::ConfigReader().

    -

    - +

    +

    - +
    #define CONF_NOT_A_NUMBER   0x000010 + #define CONF_NOT_A_NUMBER   0x000010
    - +
    +Referenced by ConfigReader::ReadInteger().
      @@ -478,23 +496,24 @@ Referenced by ConfigReader:

    -Definition at line 1138 of file modules.h. +Definition at line 1109 of file modules.h.

    -Referenced by ConfigReader::ReadInteger().

    -

    - +

    +

    - +
    #define CONF_NOT_UNSIGNED   0x000080 + #define CONF_NOT_UNSIGNED   0x000080
    - +
    +Referenced by ConfigReader::ReadInteger().
      @@ -504,23 +523,24 @@ Referenced by ConfigReader:

    -Definition at line 1139 of file modules.h. +Definition at line 1110 of file modules.h.

    -Referenced by ConfigReader::ReadInteger().

    -

    - +

    +

    - +
    #define CONF_VALUE_NOT_FOUND   0x000100 + #define CONF_VALUE_NOT_FOUND   0x000100
    - +
    +Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue().
      @@ -530,23 +550,24 @@ Referenced by ConfigReader:

    -Definition at line 1140 of file modules.h. +Definition at line 1111 of file modules.h.

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

    -

    - +

    +

    - +
    #define DEBUG   10 + #define DEBUG   10
    - +
    +Referenced by Server::AddExtendedMode(), chanrec::AddUser(), chanrec::DelUser(), userrec::HasPermission(), InspSocket::InspSocket(), chanrec::IsCustomModeSet(), InspSocket::Read(), userrec::ReadData(), userrec::RemoveInvite(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), InspSocket::SetState(), userrec::SetWriteError(), and Server::UserToPseudo().
      @@ -558,21 +579,22 @@ Referenced by ConfigReader:

    Definition at line 23 of file modules.h.

    -Referenced by Server::AddExtendedMode(), serverrec::AddIncoming(), chanrec::AddUser(), chanrec::DelUser(), userrec::HasPermission(), chanrec::IsCustomModeSet(), serverrec::RecvPacket(), userrec::RemoveInvite(), serverrec::SendPacket(), chanrec::SetCustomMode(), chanrec::SetCustomModeParam(), userrec::SetWriteError(), and Server::UserToPseudo().

    -

    - +

    +

    - +
    #define DEFAULT   30 + #define DEFAULT   30
    - +
      @@ -585,18 +607,19 @@ Referenced by Server::AddEx Definition at line 25 of file modules.h.
    -

    - +

    +

    - +
    #define FD_MAGIC_NUMBER   -42 + #define FD_MAGIC_NUMBER   -42
    - +
    +Referenced by Server::PseudoToUser(), and Server::UserToPseudo().
      @@ -606,23 +629,24 @@ Definition at line 25 of

    -Definition at line 99 of file modules.h. +Definition at line 100 of file modules.h.

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

    -

    - +

    +

    - +
    #define FOREACH_MOD   for (int _i = 0; _i <= MODCOUNT; _i++) modules[_i]-> + #define FOREACH_MOD   for (int _i = 0; _i <= MODCOUNT; _i++) modules[_i]->
    - +
    +Referenced by Event::Send().
      @@ -632,28 +656,29 @@ Referenced by Server::Pseud

    -Definition at line 79 of file modules.h. +Definition at line 80 of file modules.h.

    -Referenced by Event::Send().

    -

    - +

    +

    - + - +
    #define FOREACH_RESULT#define FOREACH_RESULT  )  +
    - +
    +Definition at line 88 of file modules.h.
      @@ -661,9 +686,9 @@ Referenced by Event::Send()

    -Value:

    { MOD_RESULT = 0; \
    -                        for (int _i = 0; _i <= MODCOUNT; _i++) { \
    -                        int res = modules[_i]->x ; \
    +Value:
    { MOD_RESULT = 0; \
    +                        for (int _i = 0; _i <= MODCOUNT; _i++) { \
    +                        int res = modules[_i]->x ; \
                             if (res != 0) { \
                                     MOD_RESULT = res; \
                                     break; \
    @@ -672,21 +697,22 @@ Referenced by Event::Send()
             }
     

    -Definition at line 87 of file modules.h.

    -

    - +

    +

    - +
    #define MT_CHANNEL   1 + #define MT_CHANNEL   1
    - +
    +Referenced by Server::AddExtendedListMode(), and ModeMakeList().
      @@ -698,21 +724,22 @@ Definition at line 87 of

    Definition at line 31 of file modules.h.

    -Referenced by Server::AddExtendedListMode(), and ModeMakeList().

    -

    - +

    +

    - +
    #define MT_CLIENT   2 + #define MT_CLIENT   2
    - +
    +Referenced by Server::AddExtendedMode().
      @@ -724,21 +751,22 @@ Referenced by Server::AddEx

    Definition at line 32 of file modules.h.

    -Referenced by Server::AddExtendedMode().

    -

    - +

    +

    - +
    #define MT_SERVER   3 + #define MT_SERVER   3
    - +
    +Referenced by Server::AddExtendedMode().
      @@ -750,21 +778,22 @@ Referenced by Server::AddEx

    Definition at line 33 of file modules.h.

    -Referenced by Server::AddExtendedMode().

    -

    - +

    +

    - +
    #define NONE   50 + #define NONE   50
    - +
      @@ -777,18 +806,19 @@ Referenced by Server::AddEx Definition at line 27 of file modules.h.
    -

    - +

    +

    - +
    #define SPARSE   40 + #define SPARSE   40
    - +
      @@ -801,18 +831,19 @@ Definition at line 27 of Definition at line 26 of file modules.h.
    -

    - +

    +

    - +
    #define VERBOSE   20 + #define VERBOSE   20
    - +
      @@ -825,18 +856,19 @@ Definition at line 26 of Definition at line 24 of file modules.h.
    -

    - +

    +

    - +
    #define VF_COMMON   8 + #define VF_COMMON   8
    - +
      @@ -849,18 +881,19 @@ Definition at line 24 of Definition at line 56 of file modules.h.
    -

    - +

    +

    - +
    #define VF_SERVICEPROVIDER   4 + #define VF_SERVICEPROVIDER   4
    - +
      @@ -873,18 +906,19 @@ Definition at line 56 of Definition at line 55 of file modules.h.
    -

    - +

    +

    - +
    #define VF_STATIC   1 + #define VF_STATIC   1
    - +
      @@ -897,18 +931,19 @@ Definition at line 55 of Definition at line 53 of file modules.h.
    -

    - +

    +

    - +
    #define VF_VENDOR   2 + #define VF_VENDOR   2
    - +
    +Referenced by Module::GetVersion().
      @@ -920,22 +955,23 @@ Definition at line 53 of

    Definition at line 54 of file modules.h.

    -Referenced by Module::GetVersion().


    Typedef Documentation

    -

    - +

    +

    - +
    typedef std::deque<userrec*> chanuserlist + typedef std::deque<userrec*> chanuserlist
    - +
    +Definition at line 73 of file modules.h.
      @@ -947,23 +983,22 @@ Holds a list of users in a channel.

    -Definition at line 72 of file modules.h. -

    -Referenced by Server::GetUsers().

    -

    - +

    +

    - +
    typedef std::deque<std::string> file_cache + typedef std::deque<std::string> file_cache
    - +
    +Definition at line 68 of file modules.h.
      @@ -975,23 +1010,22 @@ Low level definition of a FileReader

    -Definition at line 67 of file modules.h. -

    -Referenced by FileReader::FileReader(), and FileReader::LoadFile().

    -

    - +

    +

    - +
    typedef DLLFactory<ModuleFactory> ircd_module + typedef DLLFactory<ModuleFactory> ircd_module
    - +
    +Definition at line 1278 of file modules.h.
      @@ -1001,21 +1035,22 @@ Referenced by FileReader::F

    -Definition at line 1307 of file modules.h.

    -

    - +

    +

    - +
    typedef file_cache string_list + typedef file_cache string_list
    - +
    +Definition at line 69 of file modules.h.
      @@ -1025,58 +1060,55 @@ Definition at line 1307 o

    -Definition at line 68 of file modules.h. -

    -Referenced by Module::OnChannelSync(), and Module::OnUserSync().


    Function Documentation

    -

    - +

    +

    - + - - + + - - + + - - + + - - + + - + -
    void createcommand void createcommand char *  cmd,
    handlerfunc  f,
    char  flags,
    int  minparams,
    char *  source
    - +
    +Referenced by Server::AddCommand().
      @@ -1086,43 +1118,42 @@ Referenced by Module::OnCha

    -Referenced by Server::AddCommand().

    -

    - +

    +

    - + - - + + - - + + - + -
    void server_mode void server_mode char **  parameters,
    int  pcnt,
    userrec user
    - +
    +
      @@ -1130,14 +1161,11 @@ Referenced by Server::AddCo

    - -

    -Referenced by Server::SendMode().

    -


    Generated on Mon May 30 05:16:07 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +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 3bef345cf..b2d7f6bac 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 new file mode 100644 index 000000000..d7538d0b6 --- /dev/null +++ b/docs/module-doc/modules_8h__dep__incl.map @@ -0,0 +1,3 @@ +base referer +rect $channels_8cpp-source.html 141,7 240,34 +rect $modules_8cpp-source.html 141,58 240,84 diff --git a/docs/module-doc/modules_8h__dep__incl.md5 b/docs/module-doc/modules_8h__dep__incl.md5 new file mode 100644 index 000000000..60d2fe3bf --- /dev/null +++ b/docs/module-doc/modules_8h__dep__incl.md5 @@ -0,0 +1 @@ +611991712fd0ca861a8e76c0cc7c6347 \ No newline at end of file diff --git a/docs/module-doc/modules_8h__incl.gif b/docs/module-doc/modules_8h__incl.gif index 20b152360..90c81185e 100644 Binary files a/docs/module-doc/modules_8h__incl.gif and b/docs/module-doc/modules_8h__incl.gif differ diff --git a/docs/module-doc/modules_8h__incl.map b/docs/module-doc/modules_8h__incl.map new file mode 100644 index 000000000..2214f2413 --- /dev/null +++ b/docs/module-doc/modules_8h__incl.map @@ -0,0 +1,4 @@ +base referer +rect $base_8h-source.html 291,44 352,71 +rect $ctables_8h-source.html 146,145 220,172 +rect $socket_8h-source.html 147,323 219,349 diff --git a/docs/module-doc/modules_8h__incl.md5 b/docs/module-doc/modules_8h__incl.md5 new file mode 100644 index 000000000..cf971d90c --- /dev/null +++ b/docs/module-doc/modules_8h__incl.md5 @@ -0,0 +1 @@ +5b86268e2f91690fd1ce3d798c0f701b \ No newline at end of file diff --git a/docs/module-doc/namespaceirc.html b/docs/module-doc/namespaceirc.html index 47f0d4f5b..cbdb82a4b 100644 --- a/docs/module-doc/namespaceirc.html +++ b/docs/module-doc/namespaceirc.html @@ -1,46 +1,47 @@ - + InspIRCd: irc Namespace Reference - - + +

    irc Namespace Reference

    The irc namespace contains a number of helper classes. More...

    - +
    - - + + - - + + - - + + - - - + + + char > >  - +

    Compounds

    struct  InAddr_HashComp

    Classes

    struct  StrHashComp
     This class returns true if two in_addr structs match. More...

    struct  irc_char_traits
     This class returns true if two strings match. More...
    struct  InAddr_HashComp
     The irc_char_traits class is used for RFC-style comparison of strings. More...

    struct  StrHashComp
     This class returns true if two in_addr structs match. More...
    struct  irc_char_traits
     This class returns true if two strings match. More...


    Typedefs

    typedef basic_string< char,
    +
     The irc_char_traits class is used for RFC-style comparison of strings. More...

    Typedefs

    typedef basic_string< char,
    irc_char_traits, allocator<
    - char > > 
    string
    string
     This typedef declares irc::string based upon irc_char_traits.

     This typedef declares irc::string based upon irc_char_traits.


    Detailed Description

    The irc namespace contains a number of helper classes.

    Typedef Documentation

    -

    - +

    +

    - +
    typedef basic_string<char, irc_char_traits, allocator<char> > irc::string + typedef basic_string<char, irc_char_traits, allocator<char> > irc::string
    - +
      @@ -48,16 +49,15 @@ The irc namespace contains a number of helper classes.

    Typedef Documenta

    -This typedef declares irc::string based upon irc_char_traits. +This typedef declares irc::string based upon irc_char_traits.

    Definition at line 129 of file hashcomp.h.

    -


    Generated on Mon May 30 05:17:49 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacemembers.html b/docs/module-doc/namespacemembers.html index 6f45cfcc7..e7d8b4e31 100644 --- a/docs/module-doc/namespacemembers.html +++ b/docs/module-doc/namespacemembers.html @@ -1,19 +1,18 @@ - + -InspIRCd: Namespace Member Index +InspIRCd: Class Members - - + + - +Here is a list of all namespace members with links to the namespace documentation for each member:

    -Here is a list of all namespace members with links to the namespace documentation for each member:

      + -
      Generated on Mon May 30 05:17:51 2005 for InspIRCd by +: irc
    +
    Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacemembers_type.html b/docs/module-doc/namespacemembers_type.html index 73b7d247d..ec8cc3b9c 100644 --- a/docs/module-doc/namespacemembers_type.html +++ b/docs/module-doc/namespacemembers_type.html @@ -1,19 +1,18 @@ - + -InspIRCd: Namespace Member Index +InspIRCd: Class Members - - + +

    -
    Generated on Mon May 30 05:17:51 2005 for InspIRCd by +: irc +
    Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacenspace.html b/docs/module-doc/namespacenspace.html index af8ef2b4b..96ae0a3b0 100644 --- a/docs/module-doc/namespacenspace.html +++ b/docs/module-doc/namespacenspace.html @@ -1,23 +1,22 @@ - + InspIRCd: nspace Namespace Reference - - + +

    nspace Namespace Reference

    - +
    - - + + - +

    Compounds

    struct  nspace.hash< in_addr >

    Classes

    struct  hash< in_addr >
    struct  nspace.hash< string >
    struct  hash< string >
    -


    Generated on Mon May 30 05:17:50 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index 3d097df49..650759e44 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -1,18 +1,17 @@ - + InspIRCd: Namespace Index - - + +

    InspIRCd Namespace List

    Here is a list of all namespaces with brief descriptions:
    ircThe irc namespace contains a number of helper classes
    nspace
    std
    -
    Generated on Mon May 30 05:17:49 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index 0224b440b..458862b34 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -1,18 +1,17 @@ - + InspIRCd: std Namespace Reference - - + +

    std Namespace Reference

    - +
    -


    Generated on Mon May 30 05:17:50 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/socket_8cpp-source.html b/docs/module-doc/socket_8cpp-source.html new file mode 100644 index 000000000..b11873f4e --- /dev/null +++ b/docs/module-doc/socket_8cpp-source.html @@ -0,0 +1,268 @@ + + +InspIRCd: socket.cpp Source File + + + + + +

    socket.cpp

    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 using namespace std;
    +00018 
    +00019 #include "inspircd_config.h"
    +00020 #include <sys/time.h>
    +00021 #include <sys/resource.h>
    +00022 #include <sys/types.h>
    +00023 #include <sys/socket.h>
    +00024 #include <netinet/in.h>
    +00025 #include <string>
    +00026 #include <unistd.h>
    +00027 #include <fcntl.h>
    +00028 #include <poll.h>
    +00029 #include <sstream>
    +00030 #include <iostream>
    +00031 #include <fstream>
    +00032 #include "socket.h"
    +00033 #include "inspircd.h"
    +00034 #include "inspircd_io.h"
    +00035 #include "inspircd_util.h"
    +00036 #include "inspstring.h"
    +00037 #include "helperfuncs.h"
    +00038 
    +00039 extern FILE *log_file;
    +00040 extern int boundPortCount;
    +00041 extern int openSockfd[MAXSOCKS];
    +00042 extern time_t TIME;
    +00043 extern bool unlimitcore;
    +00044 extern int MaxConn;
    +00045 
    +00046 InspSocket::InspSocket()
    +00047 {
    +00048         this->state = I_DISCONNECTED;
    +00049 }
    +00050 
    +00051 InspSocket::InspSocket(int newfd)
    +00052 {
    +00053         this->fd = newfd;
    +00054         this->state = I_CONNECTED;
    +00055 }
    +00056 
    +00057 InspSocket::InspSocket(std::string host, int port, bool listening, unsigned long maxtime)
    +00058 {
    +00059         if (listening) {
    +00060                 if ((this->fd = OpenTCPSocket()) == ERROR)
    +00061                 {
    +00062                         this->fd = -1;
    +00063                         this->state = I_ERROR;
    +00064                         this->OnError(I_ERR_SOCKET);
    +00065                         log(DEBUG,"OpenTCPSocket() error");
    +00066                         return;
    +00067                 }
    +00068                 else
    +00069                 {
    +00070                         if (BindSocket(this->fd,this->client,this->server,port,(char*)host.c_str()) == ERROR)
    +00071                         {
    +00072                                 this->Close();
    +00073                                 this->fd = -1;
    +00074                                 this->state = I_ERROR;
    +00075                                 this->OnError(I_ERR_BIND);
    +00076                                 log(DEBUG,"BindSocket() error %s",strerror(errno));
    +00077                                 return;
    +00078                         }
    +00079                         else
    +00080                         {
    +00081                                 this->state = I_LISTENING;
    +00082                                 log(DEBUG,"New socket now in I_LISTENING state");
    +00083                                 return;
    +00084                         }
    +00085                 }                       
    +00086         } else {
    +00087                 char* ip;
    +00088                 this->host = host;
    +00089                 hostent* hoste = gethostbyname(host.c_str());
    +00090                 if (!hoste) {
    +00091                         ip = (char*)host.c_str();
    +00092                 } else {
    +00093                         struct in_addr* ia = (in_addr*)hoste->h_addr;
    +00094                         ip = inet_ntoa(*ia);
    +00095                 }
    +00096 
    +00097                 timeout_end = time(NULL)+maxtime;
    +00098                 timeout = false;
    +00099                 if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
    +00100                 {
    +00101                         this->state = I_ERROR;
    +00102                         this->OnError(I_ERR_SOCKET);
    +00103                         return;
    +00104                 }
    +00105                 this->port = port;
    +00106                 inet_aton(ip,&addy);
    +00107                 addr.sin_family = AF_INET;
    +00108                 addr.sin_addr = addy;
    +00109                 addr.sin_port = htons(this->port);
    +00110 
    +00111                 int flags;
    +00112                 flags = fcntl(this->fd, F_GETFL, 0);
    +00113                 fcntl(this->fd, F_SETFL, flags | O_NONBLOCK);
    +00114 
    +00115                 if(connect(this->fd, (sockaddr*)&this->addr,sizeof(this->addr)) == -1)
    +00116                 {
    +00117                         if (errno != EINPROGRESS)
    +00118                         {
    +00119                                 this->Close();
    +00120                                 this->OnError(I_ERR_CONNECT);
    +00121                                 this->state = I_ERROR;
    +00122                                 return;
    +00123                         }
    +00124                 }
    +00125                 this->state = I_CONNECTING;
    +00126                 return;
    +00127         }
    +00128 }
    +00129 
    +00130 void InspSocket::Close()
    +00131 {
    +00132         if (this->fd != -1)
    +00133         {
    +00134                 this->OnClose();
    +00135                 shutdown(this->fd,2);
    +00136                 close(this->fd);
    +00137                 this->fd = -1;
    +00138         }
    +00139 }
    +00140 
    +00141 char* InspSocket::Read()
    +00142 {
    +00143         int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0);
    +00144         if (n > 0)
    +00145         {
    +00146                 ibuf[n] = 0;
    +00147                 return ibuf;
    +00148         }
    +00149         else
    +00150         {
    +00151                 log(DEBUG,"EOF or error on socket");
    +00152                 return NULL;
    +00153         }
    +00154 }
    +00155 
    +00156 // There are two possible outcomes to this function.
    +00157 // It will either write all of the data, or an undefined amount.
    +00158 // If an undefined amount is written the connection has failed
    +00159 // and should be aborted.
    +00160 int InspSocket::Write(std::string data)
    +00161 {
    +00162         char* d = (char*)data.c_str();
    +00163         unsigned int written = 0;
    +00164         int n = 0;
    +00165         int s = data.length();
    +00166         while ((written < data.length()) && (n >= 0))
    +00167         {
    +00168                 n = send(this->fd,d,s,0);
    +00169                 if (n > 0)
    +00170                 {
    +00171                         // If we didnt write everything, advance
    +00172                         // the pointers so that when we retry
    +00173                         // the next time around the loop, we try
    +00174                         // to write what we failed to write before.
    +00175                         written += n;
    +00176                         s -= n;
    +00177                         d += n;
    +00178                 }
    +00179         }
    +00180         return written;
    +00181 }
    +00182 
    +00183 bool InspSocket::Poll()
    +00184 {
    +00185         if ((time(NULL) > timeout_end) && (this->state == I_CONNECTING))
    +00186         {
    +00187                 // for non-listening sockets, the timeout can occur
    +00188                 // which causes termination of the connection after
    +00189                 // the given number of seconds without a successful
    +00190                 // connection.
    +00191                 this->OnTimeout();
    +00192                 this->OnError(I_ERR_TIMEOUT);
    +00193                 timeout = true;
    +00194                 this->state = I_ERROR;
    +00195                 return false;
    +00196         }
    +00197         polls.fd = this->fd;
    +00198         state == I_CONNECTING ? polls.events = POLLOUT : polls.events = POLLIN;
    +00199         int ret = poll(&polls,1,1);
    +00200 
    +00201         if (ret > 0)
    +00202         {
    +00203                 int incoming = -1;
    +00204                 
    +00205                 switch (this->state)
    +00206                 {
    +00207                         case I_CONNECTING:
    +00208                                 this->SetState(I_CONNECTED);
    +00209                                 return this->OnConnected();
    +00210                         break;
    +00211                         case I_LISTENING:
    +00212                                 length = sizeof (client);
    +00213                                 incoming = accept (this->fd, (sockaddr*)&client,&length);
    +00214                                 this->OnIncomingConnection(incoming,inet_ntoa(client.sin_addr));
    +00215                                 return true;
    +00216                         break;
    +00217                         case I_CONNECTED:
    +00218                                 return this->OnDataReady();
    +00219                         break;
    +00220                         default:
    +00221                         break;
    +00222                 }
    +00223         }
    +00224         return true;
    +00225 }
    +00226 
    +00227 void InspSocket::SetState(InspSocketState s)
    +00228 {
    +00229         log(DEBUG,"Socket state change");
    +00230         this->state = s;
    +00231 }
    +00232 
    +00233 InspSocketState InspSocket::GetState()
    +00234 {
    +00235         return this->state;
    +00236 }
    +00237 
    +00238 bool InspSocket::OnConnected() { return true; }
    +00239 void InspSocket::OnError(InspSocketError e) { return; }
    +00240 int InspSocket::OnDisconnect() { return 0; }
    +00241 int InspSocket::OnIncomingConnection(int newfd, char* ip) { return 0; }
    +00242 bool InspSocket::OnDataReady() { return true; }
    +00243 void InspSocket::OnTimeout() { return; }
    +00244 void InspSocket::OnClose() { return; }
    +00245 
    +00246 InspSocket::~InspSocket()
    +00247 {
    +00248         this->Close();
    +00249 }
    +00250 
    +00251 /*
    +00252 int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr)
    +00253 int OpenTCPSocket (void)
    +00254 */
    +

    Generated on Sun Nov 27 01:43:24 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 new file mode 100644 index 000000000..1c55c0030 --- /dev/null +++ b/docs/module-doc/socket_8cpp.html @@ -0,0 +1,196 @@ + + +InspIRCd: socket.cpp File Reference + + + + + +

    socket.cpp File Reference

    #include "inspircd_config.h"
    +#include <sys/time.h>
    +#include <sys/resource.h>
    +#include <sys/types.h>
    +#include <sys/socket.h>
    +#include <netinet/in.h>
    +#include <string>
    +#include <unistd.h>
    +#include <fcntl.h>
    +#include <poll.h>
    +#include <sstream>
    +#include <iostream>
    +#include <fstream>
    +#include "socket.h"
    +#include "inspircd.h"
    +#include "inspircd_io.h"
    +#include "inspircd_util.h"
    +#include "inspstring.h"
    +#include "helperfuncs.h"
    + +

    +Include dependency graph for socket.cpp:

    + + + + +

    +Go to the source code of this file. + + + + + + + + + + + + + + +

    Variables

    FILE * log_file
    int boundPortCount
    int openSockfd [MAXSOCKS]
    time_t TIME
    bool unlimitcore
    int MaxConn
    +


    Variable Documentation

    +

    + + + + +
    + + + + +
    int boundPortCount
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + +
    FILE* log_file
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + +
    int MaxConn
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + +
    int openSockfd[MAXSOCKS]
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + +
    time_t TIME
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + +
    bool unlimitcore
    +
    + + + + + +
    +   + + +

    +

    +


    Generated on Sun Nov 27 01:43:24 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 new file mode 100644 index 000000000..b2372fe26 Binary files /dev/null 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 new file mode 100644 index 000000000..948e5d95f --- /dev/null +++ b/docs/module-doc/socket_8cpp__incl.map @@ -0,0 +1,2 @@ +base referer +rect $socket_8h-source.html 165,311 237,337 diff --git a/docs/module-doc/socket_8cpp__incl.md5 b/docs/module-doc/socket_8cpp__incl.md5 new file mode 100644 index 000000000..1d1909209 --- /dev/null +++ b/docs/module-doc/socket_8cpp__incl.md5 @@ -0,0 +1 @@ +78dadbc1b7f94f0bf980df9c4743c562 \ No newline at end of file diff --git a/docs/module-doc/socket_8h-source.html b/docs/module-doc/socket_8h-source.html new file mode 100644 index 000000000..402dc31cf --- /dev/null +++ b/docs/module-doc/socket_8h-source.html @@ -0,0 +1,80 @@ + + +InspIRCd: socket.h Source File + + + + + +

    socket.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 __INSP_SOCKET_H__
    +00018 #define __INSP_SOCKET_H__
    +00019 
    +00020 #include <sys/types.h>
    +00021 #include <sys/socket.h>
    +00022 #include <netinet/in.h>
    +00023 #include <poll.h>
    +00024 #include <sstream>
    +00025 #include <string>
    +00026 
    +00027 enum InspSocketState { I_DISCONNECTED, I_CONNECTING, I_CONNECTED, I_LISTENING, I_ERROR };
    +00028 enum InspSocketError { I_ERR_TIMEOUT, I_ERR_SOCKET, I_ERR_CONNECT, I_ERR_BIND };
    +00029 
    +00030 class InspSocket
    +00031 {
    +00032 private:
    +00033         int fd;
    +00034         std::string host;
    +00035         int port;
    +00036         InspSocketState state;
    +00037         sockaddr_in addr;
    +00038         in_addr addy;
    +00039         time_t timeout_end;
    +00040         bool timeout;
    +00041         pollfd polls;
    +00042         char ibuf[1024];
    +00043         sockaddr_in client;
    +00044         sockaddr_in server;
    +00045         socklen_t length;
    +00046 public:
    +00047         InspSocket();
    +00048         InspSocket(int newfd);
    +00049         InspSocket(std::string host, int port, bool listening, unsigned long maxtime);
    +00050         virtual bool OnConnected();
    +00051         virtual void OnError(InspSocketError e);
    +00052         virtual int OnDisconnect();
    +00053         virtual bool OnDataReady();
    +00054         virtual void OnTimeout();
    +00055         virtual void OnClose();
    +00056         virtual char* Read();
    +00057         virtual int Write(std::string data);
    +00058         virtual int OnIncomingConnection(int newfd, char* ip);
    +00059         void SetState(InspSocketState s);
    +00060         InspSocketState GetState();
    +00061         bool Poll();
    +00062         virtual void Close();
    +00063         virtual ~InspSocket();
    +00064 };
    +00065 
    +00066 #endif
    +

    Generated on Sun Nov 27 01:43:24 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 new file mode 100644 index 000000000..b26832053 --- /dev/null +++ b/docs/module-doc/socket_8h.html @@ -0,0 +1,140 @@ + + +InspIRCd: socket.h File Reference + + + + + +

    socket.h File Reference

    #include <sys/types.h>
    +#include <sys/socket.h>
    +#include <netinet/in.h>
    +#include <poll.h>
    +#include <sstream>
    +#include <string>
    + +

    +Include dependency graph for socket.h:

    + +

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

    + + + + + + + +

    +Go to the source code of this file. + + + + + + + + + +

    Classes

    class  InspSocket

    Enumerations

    enum  InspSocketState {
    +  I_DISCONNECTED, +I_CONNECTING, +I_CONNECTED, +I_LISTENING, +
    +  I_ERROR +
    + }
    enum  InspSocketError { I_ERR_TIMEOUT, +I_ERR_SOCKET, +I_ERR_CONNECT, +I_ERR_BIND + }
    +


    Enumeration Type Documentation

    +

    + + + + +
    + + + + +
    enum InspSocketError
    +
    + + + + + +
    +   + + +

    +

    Enumerator:
    + + + + + +
    I_ERR_TIMEOUT  +
    I_ERR_SOCKET  +
    I_ERR_CONNECT  +
    I_ERR_BIND  +
    +
    + +

    +Definition at line 28 of file socket.h.

    +

    +

    +

    + + + + +
    + + + + +
    enum InspSocketState
    +
    + + + + + +
    +   + + +

    +

    Enumerator:
    + + + + + + +
    I_DISCONNECTED  +
    I_CONNECTING  +
    I_CONNECTED  +
    I_LISTENING  +
    I_ERROR  +
    +
    + +

    +Definition at line 27 of file socket.h.

    +

    +

    +


    Generated on Sun Nov 27 01:43:24 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 new file mode 100644 index 000000000..8649832ea Binary files /dev/null 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 new file mode 100644 index 000000000..c89bd0ae5 --- /dev/null +++ b/docs/module-doc/socket_8h__dep__incl.map @@ -0,0 +1,5 @@ +base referer +rect $modules_8cpp-source.html 261,32 360,59 +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 diff --git a/docs/module-doc/socket_8h__dep__incl.md5 b/docs/module-doc/socket_8h__dep__incl.md5 new file mode 100644 index 000000000..bffef7bdc --- /dev/null +++ b/docs/module-doc/socket_8h__dep__incl.md5 @@ -0,0 +1 @@ +0eb028aa994c3569f9be98fd88930f79 \ No newline at end of file diff --git a/docs/module-doc/socket_8h__incl.gif b/docs/module-doc/socket_8h__incl.gif new file mode 100644 index 000000000..661a0fe6c Binary files /dev/null and b/docs/module-doc/socket_8h__incl.gif differ diff --git a/docs/module-doc/socket_8h__incl.map b/docs/module-doc/socket_8h__incl.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/socket_8h__incl.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/socket_8h__incl.md5 b/docs/module-doc/socket_8h__incl.md5 new file mode 100644 index 000000000..a4d4bf2e3 --- /dev/null +++ b/docs/module-doc/socket_8h__incl.md5 @@ -0,0 +1 @@ +2db7fcf2ca3793707f50bad72b88bd96 \ No newline at end of file diff --git a/docs/module-doc/structdns__ip4list-members.html b/docs/module-doc/structdns__ip4list-members.html index 9465068a3..4b2855396 100644 --- a/docs/module-doc/structdns__ip4list-members.html +++ b/docs/module-doc/structdns__ip4list-members.html @@ -1,16 +1,15 @@ - + InspIRCd: Member List - - -

    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 May 30 05:16:48 2005 for InspIRCd by + + +

    dns_ip4list Member List

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

    + + +
    ipdns_ip4list
    nextdns_ip4list


    Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structdns__ip4list.html b/docs/module-doc/structdns__ip4list.html index 2a6f35905..4a6a3e921 100644 --- a/docs/module-doc/structdns__ip4list.html +++ b/docs/module-doc/structdns__ip4list.html @@ -1,34 +1,40 @@ - + -InspIRCd: dns_ip4list struct Reference +InspIRCd: dns_ip4list Struct Reference - - -

    dns_ip4list Struct Reference

    #include <dns.h> + + +

    dns_ip4list Struct Reference

    #include <dns.h>

    Collaboration diagram for dns_ip4list:

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

    Public Attributes

    in_addr ip

    Public Attributes

    in_addr ip
    dns_ip4listnext
    dns_ip4listnext
    -

    Member Data Documentation

    -

    - +

    Detailed Description

    + +

    + +

    +Definition at line 26 of file dns.h.


    Member Data Documentation

    +

    +

    - +
    in_addr dns_ip4list::ip + in_addr dns_ip4list::ip
    - +
      @@ -41,18 +47,19 @@ Collaboration diagram for dns_ip4list:

    27 of file dns.h.
    -

    - +

    +

    - +
    dns_ip4list* dns_ip4list::next + dns_ip4list* dns_ip4list::next
    - +
      @@ -67,9 +74,8 @@ Definition at line 28 of file


    The documentation for this struct was generated from the following file: -
    Generated on Mon May 30 05:16:48 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:25 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structdns__ip4list__coll__graph.gif b/docs/module-doc/structdns__ip4list__coll__graph.gif index 4030a52ae..8ca7d4d91 100644 Binary files a/docs/module-doc/structdns__ip4list__coll__graph.gif and b/docs/module-doc/structdns__ip4list__coll__graph.gif differ diff --git a/docs/module-doc/structdns__ip4list__coll__graph.map b/docs/module-doc/structdns__ip4list__coll__graph.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/docs/module-doc/structdns__ip4list__coll__graph.map @@ -0,0 +1 @@ +base referer diff --git a/docs/module-doc/structdns__ip4list__coll__graph.md5 b/docs/module-doc/structdns__ip4list__coll__graph.md5 new file mode 100644 index 000000000..edc1ae44e --- /dev/null +++ b/docs/module-doc/structdns__ip4list__coll__graph.md5 @@ -0,0 +1 @@ +3cb4501ab4b94d3da075a47d5eeb6ad8 \ No newline at end of file diff --git a/docs/module-doc/structirc_1_1InAddr__HashComp-members.html b/docs/module-doc/structirc_1_1InAddr__HashComp-members.html index d40f6bf76..0198d581e 100644 --- a/docs/module-doc/structirc_1_1InAddr__HashComp-members.html +++ b/docs/module-doc/structirc_1_1InAddr__HashComp-members.html @@ -1,15 +1,14 @@ - + InspIRCd: Member List - - -

    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) constirc::InAddr_HashComp

    Generated on Mon May 30 05:17:49 2005 for InspIRCd by + + +

    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 Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +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 f288df35a..a93b6035c 100644 --- a/docs/module-doc/structirc_1_1InAddr__HashComp.html +++ b/docs/module-doc/structirc_1_1InAddr__HashComp.html @@ -1,21 +1,23 @@ - + -InspIRCd: irc::InAddr_HashComp struct Reference +InspIRCd: irc::InAddr_HashComp Struct Reference - - -

    irc::InAddr_HashComp Struct Reference

    This class returns true if two in_addr structs match. + + + +

    irc::InAddr_HashComp Struct Reference

    This class returns true if two in_addr structs match. More...

    #include <hashcomp.h>

    -List of all members. +List of all members.
    - - + + - +

    Public Member Functions

    bool operator() (const in_addr &s1, const in_addr &s2) const

    Public Member Functions

    bool operator() (const in_addr &s1, const in_addr &s2) const
     The operator () does the actual comparison in hash_map.

     The operator () does the actual comparison in hash_map.


    Detailed Description

    This class returns true if two in_addr structs match. @@ -25,34 +27,33 @@ Checking is done by copying both into a size_t then doing a numeric comparison o

    Definition at line 92 of file hashcomp.h.


    Member Function Documentation

    -

    - +

    +

    - + - - + + - + -
    bool irc::InAddr_HashComp::operator() bool irc::InAddr_HashComp::operator() const in_addr &  s1,
    const in_addr &  s2
    const
    - +
      @@ -67,9 +68,8 @@ The operator () does the actual comparison in hash_map.


    The documentation for this struct was generated from the following file: -
    Generated on Mon May 30 05:17:49 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +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 55f519ec1..6bc0b384a 100644 --- a/docs/module-doc/structirc_1_1StrHashComp-members.html +++ b/docs/module-doc/structirc_1_1StrHashComp-members.html @@ -1,15 +1,14 @@ - + InspIRCd: Member List - - -

    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) constirc::StrHashComp

    Generated on Mon May 30 05:17:50 2005 for InspIRCd by + + +

    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 Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structirc_1_1StrHashComp.html b/docs/module-doc/structirc_1_1StrHashComp.html index f6bedcead..569019152 100644 --- a/docs/module-doc/structirc_1_1StrHashComp.html +++ b/docs/module-doc/structirc_1_1StrHashComp.html @@ -1,21 +1,23 @@ - + -InspIRCd: irc::StrHashComp struct Reference +InspIRCd: irc::StrHashComp Struct Reference - - -

    irc::StrHashComp Struct Reference

    This class returns true if two strings match. + + + +

    irc::StrHashComp Struct Reference

    This class returns true if two strings match. More...

    #include <hashcomp.h>

    -List of all members. +List of all members.
    - - + + - +

    Public Member Functions

    bool operator() (const std::string &s1, const std::string &s2) const

    Public Member Functions

    bool operator() (const std::string &s1, const std::string &s2) const
     The operator () does the actual comparison in hash_map.

     The operator () does the actual comparison in hash_map.


    Detailed Description

    This class returns true if two strings match. @@ -25,34 +27,33 @@ Case sensitivity is ignored, and the RFC 'character set' is adhered to

    Definition at line 80 of file hashcomp.h.


    Member Function Documentation

    -

    - +

    +

    - + - + - - - + + + - + -
    bool irc::StrHashComp::operator() bool irc::StrHashComp::operator() const std::string & const std::string s1,
    const std::string & const std::string s2
    const
    - +
      @@ -67,9 +68,8 @@ The operator () does the actual comparison in hash_map.


    The documentation for this struct was generated from the following file: -
    Generated on Mon May 30 05:17:50 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +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 2d267f7c9..ac56cb2de 100644 --- a/docs/module-doc/structirc_1_1irc__char__traits-members.html +++ b/docs/module-doc/structirc_1_1irc__char__traits-members.html @@ -1,19 +1,18 @@ - + InspIRCd: Member List - - -

    irc::irc_char_traits Member List

    This is the complete list of members for irc::irc_char_traits, including all inherited members. - - - - - -
    compare(const char *str1, const char *str2, size_t n)irc::irc_char_traits [static]
    eq(char c1st, char c2nd)irc::irc_char_traits [static]
    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 May 30 05:17:50 2005 for InspIRCd by + + +

    irc::irc_char_traits Member List

    This is the complete list of members for irc::irc_char_traits, including all inherited members.

    + + + + + +
    compare(const char *str1, const char *str2, size_t n)irc::irc_char_traits [static]
    eq(char c1st, char c2nd)irc::irc_char_traits [static]
    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 Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +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 99c7ad995..dc297bac9 100644 --- a/docs/module-doc/structirc_1_1irc__char__traits.html +++ b/docs/module-doc/structirc_1_1irc__char__traits.html @@ -1,84 +1,85 @@ - + -InspIRCd: irc::irc_char_traits struct Reference +InspIRCd: irc::irc_char_traits Struct Reference - - -

    irc::irc_char_traits Struct Reference

    The irc_char_traits class is used for RFC-style comparison of strings. + + + +

    irc::irc_char_traits Struct Reference

    The irc_char_traits class is used for RFC-style comparison of strings. More...

    #include <hashcomp.h>

    Inheritance diagram for irc::irc_char_traits:

    Inheritance graph
    - +
    [legend]
    Collaboration diagram for irc::irc_char_traits:

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

    Static Public Member Functions

    bool eq (char c1st, char c2nd)

    Static Public Member Functions

    static bool eq (char c1st, char c2nd)
     Check if two chars match.

    bool ne (char c1st, char c2nd)
     Check if two chars match.
    static bool ne (char c1st, char c2nd)
     Check if two chars do NOT match.

    bool lt (char c1st, char c2nd)
     Check if two chars do NOT match.
    static bool lt (char c1st, char c2nd)
     Check if one char is less than another.

    int compare (const char *str1, const char *str2, size_t n)
     Check if one char is less than another.
    static int compare (const char *str1, const char *str2, size_t n)
     Compare two strings of size n.

    const char * find (const char *s1, int n, char c)
     Compare two strings of size n.
    static const char * find (const char *s1, int n, char c)
     Find a char within a string up to position n.

     Find a char within a string up to position n.

    Detailed Description

    The irc_char_traits class is used for RFC-style comparison of strings.

    -This class is used to implement irc::string, a case-insensitive, RFC- comparing string class. +This class is used to implement irc::string, a case-insensitive, RFC- comparing string class.

    Definition at line 104 of file hashcomp.h.


    Member Function Documentation

    -

    - +

    +

    - + - - + + - - + + - + -
    int irc::irc_char_traits::compare static int irc::irc_char_traits::compare const char *  str1,
    const char *  str2,
    size_t  n
    [static]
    - +
      @@ -91,34 +92,33 @@ Compare two strings of size n.
    -

    - +

    +

    - + - - + + - + -
    bool irc::irc_char_traits::eq static bool irc::irc_char_traits::eq char  c1st,
    char  c2nd
    [static]
    - +
      @@ -131,40 +131,39 @@ Check if two chars match.
    -

    - +

    +

    - + - - + + - - + + - + -
    const char* irc::irc_char_traits::find static const char* irc::irc_char_traits::find const char *  s1,
    int  n,
    char  c
    [static]
    - +
      @@ -177,34 +176,33 @@ Find a char within a string up to position n.
    -

    - +

    +

    - + - - + + - + -
    bool irc::irc_char_traits::lt static bool irc::irc_char_traits::lt char  c1st,
    char  c2nd
    [static]
    - +
      @@ -217,34 +215,33 @@ Check if one char is less than another.
    -

    - +

    +

    - + - - + + - + -
    bool irc::irc_char_traits::ne static bool irc::irc_char_traits::ne char  c1st,
    char  c2nd
    [static]
    - +
      @@ -259,9 +256,8 @@ Check if two chars do NOT match.


    The documentation for this struct was generated from the following file: -
    Generated on Mon May 30 05:17:50 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/structirc_1_1irc__char__traits__coll__graph.gif b/docs/module-doc/structirc_1_1irc__char__traits__coll__graph.gif index 514f37993..76951b859 100644 Binary files a/docs/module-doc/structirc_1_1irc__char__traits__coll__graph.gif and b/docs/module-doc/structirc_1_1irc__char__traits__coll__graph.gif differ diff --git a/docs/module-doc/structirc_1_1irc__char__traits__coll__graph.map b/docs/module-doc/structirc_1_1irc__char__traits__coll__graph.map new file mode 100644 index 000000000..be3cc4f79 --- /dev/null +++ b/docs/module-doc/structirc_1_1irc__char__traits__coll__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classstd_1_1char__traits.html 7,7 159,34 diff --git a/docs/module-doc/structirc_1_1irc__char__traits__coll__graph.md5 b/docs/module-doc/structirc_1_1irc__char__traits__coll__graph.md5 new file mode 100644 index 000000000..748031b4f --- /dev/null +++ b/docs/module-doc/structirc_1_1irc__char__traits__coll__graph.md5 @@ -0,0 +1 @@ +7ee2a692b6c22ce46dde4bd8f592bb51 \ No newline at end of file diff --git a/docs/module-doc/structirc_1_1irc__char__traits__inherit__graph.gif b/docs/module-doc/structirc_1_1irc__char__traits__inherit__graph.gif index 514f37993..76951b859 100644 Binary files a/docs/module-doc/structirc_1_1irc__char__traits__inherit__graph.gif and b/docs/module-doc/structirc_1_1irc__char__traits__inherit__graph.gif differ diff --git a/docs/module-doc/structirc_1_1irc__char__traits__inherit__graph.map b/docs/module-doc/structirc_1_1irc__char__traits__inherit__graph.map new file mode 100644 index 000000000..be3cc4f79 --- /dev/null +++ b/docs/module-doc/structirc_1_1irc__char__traits__inherit__graph.map @@ -0,0 +1,2 @@ +base referer +rect $classstd_1_1char__traits.html 7,7 159,34 diff --git a/docs/module-doc/structirc_1_1irc__char__traits__inherit__graph.md5 b/docs/module-doc/structirc_1_1irc__char__traits__inherit__graph.md5 new file mode 100644 index 000000000..748031b4f --- /dev/null +++ b/docs/module-doc/structirc_1_1irc__char__traits__inherit__graph.md5 @@ -0,0 +1 @@ +7ee2a692b6c22ce46dde4bd8f592bb51 \ No newline at end of file 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 new file mode 100644 index 000000000..0401fd8c5 --- /dev/null +++ b/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4-members.html @@ -0,0 +1,14 @@ + + +InspIRCd: Member List + + + + +

    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 Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..1556a6eaa --- /dev/null +++ b/docs/module-doc/structnspace_1_1hash_3_01in__addr_01_4.html @@ -0,0 +1,61 @@ + + +InspIRCd: nspace::hash< in_addr > Struct Template Reference + + + + + +

    nspace::hash< in_addr > Struct Template Reference

    #include <hashcomp.h> +

    +List of all members. + + + + +

    Public Member Functions

    size_t operator() (const struct in_addr &a) const
    +


    Detailed Description

    +

    template<>
    + struct nspace::hash< in_addr >

    + + +

    + +

    +Definition at line 54 of file hashcomp.h.


    Member Function Documentation

    +

    + + + + +
    + + + + + + + + + +
    size_t nspace::hash< in_addr >::operator() const struct in_addr &  a  )  const
    +
    + + + + + +
    +   + + +

    +

    +


    The documentation for this struct was generated from the following file: +
    Generated on Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..55cf95fd1 --- /dev/null +++ b/docs/module-doc/structnspace_1_1hash_3_01string_01_4-members.html @@ -0,0 +1,14 @@ + + +InspIRCd: Member List + + + + +

    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 Sun Nov 27 01:43:27 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 new file mode 100644 index 000000000..9b48cfc45 --- /dev/null +++ b/docs/module-doc/structnspace_1_1hash_3_01string_01_4.html @@ -0,0 +1,61 @@ + + +InspIRCd: nspace::hash< string > Struct Template Reference + + + + + +

    nspace::hash< string > Struct Template Reference

    #include <hashcomp.h> +

    +List of all members. + + + + +

    Public Member Functions

    size_t operator() (const string &s) const
    +


    Detailed Description

    +

    template<>
    + struct nspace::hash< string >

    + + +

    + +

    +Definition at line 62 of file hashcomp.h.


    Member Function Documentation

    +

    + + + + +
    + + + + + + + + + +
    size_t nspace::hash< string >::operator() const string s  )  const
    +
    + + + + + +
    +   + + +

    +

    +


    The documentation for this struct was generated from the following file: +
    Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  + +doxygen 1.4.4-20050815
    + + diff --git a/docs/module-doc/tree.html b/docs/module-doc/tree.html index cab4f4129..e05db0113 100644 --- a/docs/module-doc/tree.html +++ b/docs/module-doc/tree.html @@ -1,6 +1,6 @@ - + @@ -17,54 +17,23 @@ - +

    InspIRCd

    -

    o*Main Page

    o+File List

    -

    o+Compound List

    +

    o+Class List

    |o*DNS

    |o*dns_ip4list

    +

    |o*nspace::hash< in_addr >

    +

    |o*nspace::hash< string >

    |o*irc::InAddr_HashComp

    -

    |o*nspace::hash< in_addr >

    -

    |o*nspace::hash< string >

    +

    |o*InspSocket

    |o*irc::StrHashComp

    |\*WhoWasUser

    -

    o*Compound Members

    +

    o*Class Members

    o+Namespace List

    +

    o+Directories

    +
    +

    |\+home

    +
    +

    | \+brain

    +
    +

    |  \+inspircd-cvs

    +
    +

    |   \+inspircd

    +
    +

    |    o+include

    +
    +
    +

    |    \+src

    +
    +
    +
    +
    +
    +
    +

    o*File Members

    o*Namespace Members

    \*Graphical Class Hierarchy

    diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 95ca9e0b8..78de98822 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -1,310 +1,313 @@ - + InspIRCd: users.cpp Source File - - -

    users.cpp

    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 using namespace std;
    -00018 
    -00019 #include "inspircd_config.h" 
    -00020 #include "channels.h"
    -00021 #include "users.h"
    -00022 #include "inspircd.h"
    -00023 #include <stdio.h>
    -00024 #include "inspstring.h"
    -00025 #include "helperfuncs.h"
    -00026 
    -00027 extern std::stringstream config_f;
    -00028 extern char ServerName[MAXBUF];
    -00029 
    -00030 extern time_t TIME;
    -00031 
    -00032 userrec::userrec()
    -00033 {
    -00034         // the PROPER way to do it, AVOID bzero at *ALL* costs
    -00035         strcpy(nick,"");
    -00036         strcpy(ip,"127.0.0.1");
    -00037         timeout = 0;
    -00038         strcpy(ident,"");
    -00039         strcpy(host,"");
    -00040         strcpy(dhost,"");
    -00041         strcpy(fullname,"");
    -00042         strcpy(modes,"");
    -00043         server = (char*)FindServerNamePtr(ServerName);
    -00044         strcpy(awaymsg,"");
    -00045         strcpy(oper,"");
    -00046         reset_due = TIME;
    -00047         lines_in = 0;
    -00048         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
    -00049         flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
    -00050         haspassed = false;
    -00051         dns_done = false;
    -00052         recvq = "";
    -00053         sendq = "";
    -00054         for (int i = 0; i < MAXCHANS; i++)
    -00055         {
    -00056                 this->chans[i].channel = NULL;
    -00057                 this->chans[i].uc_modes = 0;
    -00058         }
    -00059         invites.clear();
    -00060 }
    -00061 
    -00062 void userrec::CloseSocket()
    -00063 {
    -00064         shutdown(this->fd,2);
    -00065         close(this->fd);
    -00066 }
    -00067  
    -00068 char* userrec::GetFullHost()
    -00069 {
    -00070         static char result[MAXBUF];
    -00071         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost);
    -00072         return result;
    -00073 }
    -00074 
    -00075 int userrec::ReadData(void* buffer, size_t size)
    -00076 {
    -00077         if (this->fd > -1)
    -00078         {
    -00079                 return read(this->fd, buffer, size);
    -00080         }
    -00081         else return 0;
    -00082 }
    -00083 
    -00084 
    -00085 char* userrec::GetFullRealHost()
    -00086 {
    -00087         static char fresult[MAXBUF];
    -00088         snprintf(fresult,MAXBUF,"%s!%s@%s",nick,ident,host);
    -00089         return fresult;
    -00090 }
    -00091 
    -00092 bool userrec::IsInvited(char* channel)
    -00093 {
    -00094         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
    -00095         {
    -00096                 if (i->channel) {
    -00097                         if (!strcasecmp(i->channel,channel))
    -00098                         {
    -00099                                 return true;
    -00100                         }
    -00101                 }
    -00102         }
    -00103         return false;
    -00104 }
    -00105 
    -00106 InvitedList* userrec::GetInviteList()
    -00107 {
    -00108         return &invites;
    -00109 }
    -00110 
    -00111 void userrec::InviteTo(char* channel)
    -00112 {
    -00113         Invited i;
    -00114         strlcpy(i.channel,channel,CHANMAX);
    -00115         invites.push_back(i);
    -00116 }
    -00117 
    -00118 void userrec::RemoveInvite(char* channel)
    -00119 {
    -00120         log(DEBUG,"Removing invites");
    -00121         if (channel)
    -00122         {
    -00123                 if (invites.size())
    -00124                 {
    -00125                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
    -00126                         {
    -00127                                 if (i->channel)
    -00128                                 {
    -00129                                         if (!strcasecmp(i->channel,channel))
    -00130                                         {
    -00131                                                 invites.erase(i);
    -00132                                                 return;
    -00133                                         }
    -00134                                 }
    -00135                         }
    -00136                 }
    -00137         }
    -00138 }
    -00139 
    -00140 bool userrec::HasPermission(char* command)
    -00141 {
    -00142         char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
    -00143         char* mycmd;
    -00144         char* savept;
    -00145         char* savept2;
    -00146         
    -00147         // are they even an oper at all?
    -00148         if (strchr(this->modes,'o'))
    -00149         {
    -00150                 log(DEBUG,"*** HasPermission: %s is an oper",this->nick);
    -00151                 for (int j =0; j < ConfValueEnum("type",&config_f); j++)
    -00152                 {
    -00153                         ConfValue("type","name",j,TypeName,&config_f);
    -00154                         if (!strcmp(TypeName,this->oper))
    -00155                         {
    -00156                                 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper);
    -00157                                 ConfValue("type","classes",j,Classes,&config_f);
    -00158                                 char* myclass = strtok_r(Classes," ",&savept);
    -00159                                 while (myclass)
    -00160                                 {
    -00161                                         log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass);
    -00162                                         for (int k =0; k < ConfValueEnum("class",&config_f); k++)
    -00163                                         {
    -00164                                                 ConfValue("class","name",k,ClassName,&config_f);
    -00165                                                 if (!strcmp(ClassName,myclass))
    -00166                                                 {
    -00167                                                         ConfValue("class","commands",k,CommandList,&config_f);
    -00168                                                         log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList);
    -00169                                                         
    -00170                                                         
    -00171                                                         mycmd = strtok_r(CommandList," ",&savept2);
    -00172                                                         while (mycmd)
    -00173                                                         {
    -00174                                                                 if (!strcasecmp(mycmd,command))
    -00175                                                                 {
    -00176                                                                         log(DEBUG,"*** Command %s found, returning true",command);
    -00177                                                                         return true;
    -00178                                                                 }
    -00179                                                                 mycmd = strtok_r(NULL," ",&savept2);
    -00180                                                         }
    -00181                                                 }
    -00182                                         }
    -00183                                         myclass = strtok_r(NULL," ",&savept);
    -00184                                 }
    -00185                         }
    -00186                 }
    -00187         }
    -00188         return false;
    -00189 }
    -00190 
    -00191 
    -00192 bool userrec::AddBuffer(std::string a)
    -00193 {
    -00194         std::string b = "";
    -00195         for (int i = 0; i < a.length(); i++)
    -00196                 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7))
    -00197                         b = b + a[i];
    -00198         std::stringstream stream(recvq);
    -00199         stream << b;
    -00200         recvq = stream.str();
    -00201         int i = 0;
    -00202         // count the size of the first line in the buffer.
    -00203         while (i < recvq.length())
    -00204         {
    -00205                 if (recvq[i++] == '\n')
    -00206                         break;
    -00207         }
    -00208         if (recvq.length() > this->recvqmax)
    -00209         {
    -00210                 this->SetWriteError("RecvQ exceeded");
    -00211                 WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax);
    -00212         }
    -00213         // return false if we've had more than 600 characters WITHOUT
    -00214         // a carriage return (this is BAD, drop the socket)
    -00215         return (i < 600);
    -00216 }
    -00217 
    -00218 bool userrec::BufferIsReady()
    -00219 {
    -00220         for (int i = 0; i < recvq.length(); i++)
    -00221                 if (recvq[i] == '\n')
    -00222                         return true;
    -00223         return false;
    -00224 }
    -00225 
    -00226 void userrec::ClearBuffer()
    -00227 {
    -00228         recvq = "";
    -00229 }
    -00230 
    -00231 std::string userrec::GetBuffer()
    -00232 {
    -00233         if (recvq == "")
    -00234                 return "";
    -00235         char* line = (char*)recvq.c_str();
    -00236         std::string ret = "";
    -00237         while ((*line != '\n') && (strlen(line)))
    -00238         {
    -00239                 ret = ret + *line;
    -00240                 line++;
    -00241         }
    -00242         if ((*line == '\n') || (*line == '\r'))
    -00243                 line++;
    -00244         recvq = line;
    -00245         return ret;
    -00246 }
    -00247 
    -00248 void userrec::AddWriteBuf(std::string data)
    -00249 {
    -00250         if (this->GetWriteError() != "")
    -00251                 return;
    -00252         if (sendq.length() + data.length() > this->sendqmax)
    -00253         {
    -00254                 WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax);
    -00255                 this->SetWriteError("SendQ exceeded");
    -00256                 return;
    -00257         }
    -00258         std::stringstream stream;
    -00259         stream << sendq << data;
    -00260         sendq = stream.str();
    -00261 }
    -00262 
    -00263 // send AS MUCH OF THE USERS SENDQ as we are able to (might not be all of it)
    -00264 void userrec::FlushWriteBuf()
    -00265 {
    -00266         if (sendq.length())
    -00267         {
    -00268                 char* tb = (char*)this->sendq.c_str();
    -00269                 int n_sent = write(this->fd,tb,this->sendq.length());
    -00270                 if (n_sent == -1)
    -00271                 {
    -00272                         this->SetWriteError(strerror(errno));
    -00273                 }
    -00274                 else
    -00275                 {
    -00276                         // advance the queue
    -00277                         tb += n_sent;
    -00278                         this->sendq = tb;
    -00279                         // update the user's stats counters
    -00280                         this->bytes_out += n_sent;
    -00281                         this->cmds_out++;
    -00282                 }
    -00283         }
    -00284 }
    -00285 
    -00286 void userrec::SetWriteError(std::string error)
    -00287 {
    -00288         log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str());
    -00289         // don't try to set the error twice, its already set take the first string.
    -00290         if (this->WriteError == "")
    -00291                 this->WriteError = error;
    -00292 }
    -00293 
    -00294 std::string userrec::GetWriteError()
    -00295 {
    -00296         return this->WriteError;
    -00297 }
    -

    Generated on Mon May 30 05:15:21 2005 for InspIRCd by + + + +

    users.cpp

    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 using namespace std;
    +00018 
    +00019 #include "inspircd_config.h" 
    +00020 #include "channels.h"
    +00021 #include "connection.h"
    +00022 #include "users.h"
    +00023 #include "inspircd.h"
    +00024 #include <stdio.h>
    +00025 #include "inspstring.h"
    +00026 #include "helperfuncs.h"
    +00027 
    +00028 extern std::stringstream config_f;
    +00029 extern char ServerName[MAXBUF];
    +00030 
    +00031 extern time_t TIME;
    +00032 
    +00033 userrec::userrec()
    +00034 {
    +00035         // the PROPER way to do it, AVOID bzero at *ALL* costs
    +00036         strcpy(nick,"");
    +00037         strcpy(ip,"127.0.0.1");
    +00038         timeout = 0;
    +00039         strcpy(ident,"");
    +00040         strcpy(host,"");
    +00041         strcpy(dhost,"");
    +00042         strcpy(fullname,"");
    +00043         strcpy(modes,"");
    +00044         server = (char*)FindServerNamePtr(ServerName);
    +00045         strcpy(awaymsg,"");
    +00046         strcpy(oper,"");
    +00047         reset_due = TIME;
    +00048         lines_in = 0;
    +00049         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
    +00050         flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
    +00051         haspassed = false;
    +00052         dns_done = false;
    +00053         recvq = "";
    +00054         sendq = "";
    +00055         for (int i = 0; i < MAXCHANS; i++)
    +00056         {
    +00057                 this->chans[i].channel = NULL;
    +00058                 this->chans[i].uc_modes = 0;
    +00059         }
    +00060         invites.clear();
    +00061 }
    +00062 
    +00063 void userrec::CloseSocket()
    +00064 {
    +00065         shutdown(this->fd,2);
    +00066         close(this->fd);
    +00067 }
    +00068  
    +00069 char* userrec::GetFullHost()
    +00070 {
    +00071         static char result[MAXBUF];
    +00072         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost);
    +00073         return result;
    +00074 }
    +00075 
    +00076 int userrec::ReadData(void* buffer, size_t size)
    +00077 {
    +00078         if (this->fd > -1)
    +00079         {
    +00080                 log(DEBUG,"userrec::ReadData on fd %d",this->fd);
    +00081                 return read(this->fd, buffer, size);
    +00082         }
    +00083         else return 0;
    +00084 }
    +00085 
    +00086 
    +00087 char* userrec::GetFullRealHost()
    +00088 {
    +00089         static char fresult[MAXBUF];
    +00090         snprintf(fresult,MAXBUF,"%s!%s@%s",nick,ident,host);
    +00091         return fresult;
    +00092 }
    +00093 
    +00094 bool userrec::IsInvited(char* channel)
    +00095 {
    +00096         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
    +00097         {
    +00098                 if (i->channel) {
    +00099                         if (!strcasecmp(i->channel,channel))
    +00100                         {
    +00101                                 return true;
    +00102                         }
    +00103                 }
    +00104         }
    +00105         return false;
    +00106 }
    +00107 
    +00108 InvitedList* userrec::GetInviteList()
    +00109 {
    +00110         return &invites;
    +00111 }
    +00112 
    +00113 void userrec::InviteTo(char* channel)
    +00114 {
    +00115         Invited i;
    +00116         strlcpy(i.channel,channel,CHANMAX);
    +00117         invites.push_back(i);
    +00118 }
    +00119 
    +00120 void userrec::RemoveInvite(char* channel)
    +00121 {
    +00122         log(DEBUG,"Removing invites");
    +00123         if (channel)
    +00124         {
    +00125                 if (invites.size())
    +00126                 {
    +00127                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
    +00128                         {
    +00129                                 if (i->channel)
    +00130                                 {
    +00131                                         if (!strcasecmp(i->channel,channel))
    +00132                                         {
    +00133                                                 invites.erase(i);
    +00134                                                 return;
    +00135                                         }
    +00136                                 }
    +00137                         }
    +00138                 }
    +00139         }
    +00140 }
    +00141 
    +00142 bool userrec::HasPermission(char* command)
    +00143 {
    +00144         char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
    +00145         char* mycmd;
    +00146         char* savept;
    +00147         char* savept2;
    +00148         
    +00149         // are they even an oper at all?
    +00150         if (strchr(this->modes,'o'))
    +00151         {
    +00152                 log(DEBUG,"*** HasPermission: %s is an oper",this->nick);
    +00153                 for (int j =0; j < ConfValueEnum("type",&config_f); j++)
    +00154                 {
    +00155                         ConfValue("type","name",j,TypeName,&config_f);
    +00156                         if (!strcmp(TypeName,this->oper))
    +00157                         {
    +00158                                 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper);
    +00159                                 ConfValue("type","classes",j,Classes,&config_f);
    +00160                                 char* myclass = strtok_r(Classes," ",&savept);
    +00161                                 while (myclass)
    +00162                                 {
    +00163                                         log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass);
    +00164                                         for (int k =0; k < ConfValueEnum("class",&config_f); k++)
    +00165                                         {
    +00166                                                 ConfValue("class","name",k,ClassName,&config_f);
    +00167                                                 if (!strcmp(ClassName,myclass))
    +00168                                                 {
    +00169                                                         ConfValue("class","commands",k,CommandList,&config_f);
    +00170                                                         log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList);
    +00171                                                         
    +00172                                                         
    +00173                                                         mycmd = strtok_r(CommandList," ",&savept2);
    +00174                                                         while (mycmd)
    +00175                                                         {
    +00176                                                                 if (!strcasecmp(mycmd,command))
    +00177                                                                 {
    +00178                                                                         log(DEBUG,"*** Command %s found, returning true",command);
    +00179                                                                         return true;
    +00180                                                                 }
    +00181                                                                 mycmd = strtok_r(NULL," ",&savept2);
    +00182                                                         }
    +00183                                                 }
    +00184                                         }
    +00185                                         myclass = strtok_r(NULL," ",&savept);
    +00186                                 }
    +00187                         }
    +00188                 }
    +00189         }
    +00190         return false;
    +00191 }
    +00192 
    +00193 
    +00194 bool userrec::AddBuffer(std::string a)
    +00195 {
    +00196         std::string b = "";
    +00197         for (unsigned int i = 0; i < a.length(); i++)
    +00198                 if ((a[i] != '\r') && (a[i] != '\0') && (a[i] != 7))
    +00199                         b = b + a[i];
    +00200         std::stringstream stream(recvq);
    +00201         stream << b;
    +00202         recvq = stream.str();
    +00203         unsigned int i = 0;
    +00204         // count the size of the first line in the buffer.
    +00205         while (i < recvq.length())
    +00206         {
    +00207                 if (recvq[i++] == '\n')
    +00208                         break;
    +00209         }
    +00210         if (recvq.length() > (unsigned)this->recvqmax)
    +00211         {
    +00212                 this->SetWriteError("RecvQ exceeded");
    +00213                 WriteOpers("*** User %s RecvQ of %d exceeds connect class maximum of %d",this->nick,recvq.length(),this->recvqmax);
    +00214         }
    +00215         // return false if we've had more than 600 characters WITHOUT
    +00216         // a carriage return (this is BAD, drop the socket)
    +00217         return (i < 600);
    +00218 }
    +00219 
    +00220 bool userrec::BufferIsReady()
    +00221 {
    +00222         for (unsigned int i = 0; i < recvq.length(); i++)
    +00223                 if (recvq[i] == '\n')
    +00224                         return true;
    +00225         return false;
    +00226 }
    +00227 
    +00228 void userrec::ClearBuffer()
    +00229 {
    +00230         recvq = "";
    +00231 }
    +00232 
    +00233 std::string userrec::GetBuffer()
    +00234 {
    +00235         if (recvq == "")
    +00236                 return "";
    +00237         char* line = (char*)recvq.c_str();
    +00238         std::string ret = "";
    +00239         while ((*line != '\n') && (strlen(line)))
    +00240         {
    +00241                 ret = ret + *line;
    +00242                 line++;
    +00243         }
    +00244         if ((*line == '\n') || (*line == '\r'))
    +00245                 line++;
    +00246         recvq = line;
    +00247         return ret;
    +00248 }
    +00249 
    +00250 void userrec::AddWriteBuf(std::string data)
    +00251 {
    +00252         if (this->GetWriteError() != "")
    +00253                 return;
    +00254         if (sendq.length() + data.length() > (unsigned)this->sendqmax)
    +00255         {
    +00256                 WriteOpers("*** User %s SendQ of %d exceeds connect class maximum of %d",this->nick,sendq.length() + data.length(),this->sendqmax);
    +00257                 this->SetWriteError("SendQ exceeded");
    +00258                 return;
    +00259         }
    +00260         std::stringstream stream;
    +00261         stream << sendq << data;
    +00262         sendq = stream.str();
    +00263 }
    +00264 
    +00265 // send AS MUCH OF THE USERS SENDQ as we are able to (might not be all of it)
    +00266 void userrec::FlushWriteBuf()
    +00267 {
    +00268         if (sendq.length())
    +00269         {
    +00270                 char* tb = (char*)this->sendq.c_str();
    +00271                 int n_sent = write(this->fd,tb,this->sendq.length());
    +00272                 if (n_sent == -1)
    +00273                 {
    +00274                         this->SetWriteError(strerror(errno));
    +00275                 }
    +00276                 else
    +00277                 {
    +00278                         // advance the queue
    +00279                         tb += n_sent;
    +00280                         this->sendq = tb;
    +00281                         // update the user's stats counters
    +00282                         this->bytes_out += n_sent;
    +00283                         this->cmds_out++;
    +00284                 }
    +00285         }
    +00286 }
    +00287 
    +00288 void userrec::SetWriteError(std::string error)
    +00289 {
    +00290         log(DEBUG,"Setting error string for %s to '%s'",this->nick,error.c_str());
    +00291         // don't try to set the error twice, its already set take the first string.
    +00292         if (this->WriteError == "")
    +00293                 this->WriteError = error;
    +00294 }
    +00295 
    +00296 std::string userrec::GetWriteError()
    +00297 {
    +00298         return this->WriteError;
    +00299 }
    +

    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index d2d1039ad..53e2b3431 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -1,49 +1,54 @@ - + InspIRCd: users.cpp File Reference - - -

    users.cpp File Reference

    #include "inspircd_config.h"
    -#include "channels.h"
    -#include "users.h"
    -#include "inspircd.h"
    + + + +

    users.cpp File Reference

    #include "inspircd_config.h"
    +#include "channels.h"
    +#include "connection.h"
    +#include "users.h"
    +#include "inspircd.h"
    #include <stdio.h>
    -#include "inspstring.h"
    -#include "helperfuncs.h"
    +#include "inspstring.h"
    +#include "helperfuncs.h"

    -Include dependency graph for users.cpp:

    Include dependency graph
    +Include dependency graph for users.cpp:

    - - + + +

    -Go to the source code of this file. +Go to the source code of this file.
    - - + + - + - +

    Variables

    std::stringstream config_f

    Variables

    std::stringstream config_f
    char ServerName [MAXBUF]
    char ServerName [MAXBUF]
    time_t TIME
    time_t TIME


    Variable Documentation

    -

    - +

    +

    - +
    std::stringstream config_f + std::stringstream config_f
    - +
    +
      @@ -51,23 +56,22 @@ Include dependency graph for users.cpp:

    27 of file users.cpp.
    -

    - +

    +

    - +
    char ServerName[MAXBUF] + char ServerName[MAXBUF]
    - +
    +
      @@ -75,23 +79,22 @@ Definition at line 27 of

    - -

    -Definition at line 28 of file users.cpp.

    -

    - +

    +

    - +
    time_t TIME + time_t TIME
    - +
    +
      @@ -99,14 +102,11 @@ Definition at line 28 of

    - -

    -Definition at line 30 of file users.cpp.

    -


    Generated on Mon May 30 05:16:16 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/users_8cpp__incl.gif b/docs/module-doc/users_8cpp__incl.gif index 97c4fd610..0271baf2e 100644 Binary files a/docs/module-doc/users_8cpp__incl.gif and b/docs/module-doc/users_8cpp__incl.gif differ diff --git a/docs/module-doc/users_8cpp__incl.map b/docs/module-doc/users_8cpp__incl.map new file mode 100644 index 000000000..250202e80 --- /dev/null +++ b/docs/module-doc/users_8cpp__incl.map @@ -0,0 +1,4 @@ +base referer +rect $channels_8h-source.html 294,159 379,186 +rect $connection_8h-source.html 287,58 386,84 +rect $users_8h-source.html 155,108 219,135 diff --git a/docs/module-doc/users_8cpp__incl.md5 b/docs/module-doc/users_8cpp__incl.md5 new file mode 100644 index 000000000..45df1e870 --- /dev/null +++ b/docs/module-doc/users_8cpp__incl.md5 @@ -0,0 +1 @@ +58b13cc74add16d3b6bac215c7ef17ab \ No newline at end of file diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index b07c91293..38f9cd109 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -1,191 +1,192 @@ - + InspIRCd: users.h Source File - - -

    users.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 #include "inspircd_config.h" 
    -00018 #include "channels.h"
    -00019 #include "connection.h"
    -00020 #include "inspstring.h"
    -00021 #include <string>
    -00022  
    -00023 #ifndef __USERS_H__ 
    -00024 #define __USERS_H__ 
    -00025  
    -00026 #define STATUS_OP       4
    -00027 #define STATUS_HOP      2
    -00028 #define STATUS_VOICE    1
    -00029 #define STATUS_NORMAL   0
    -00030 
    -00031 #define CC_ALLOW        0
    -00032 #define CC_DENY         1
    -00033 
    +
    +
    +
    +

    users.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 #include "inspircd_config.h" 
    +00018 #include "channels.h"
    +00019 #include "inspstring.h"
    +00020 #include "connection.h"
    +00021 #include <string>
    +00022  
    +00023 #ifndef __USERS_H__ 
    +00024 #define __USERS_H__ 
    +00025  
    +00026 #define STATUS_OP       4
    +00027 #define STATUS_HOP      2
    +00028 #define STATUS_VOICE    1
    +00029 #define STATUS_NORMAL   0
    +00030 
    +00031 #define CC_ALLOW        0
    +00032 #define CC_DENY         1
    +00033 
     00036 class Invited : public classbase
    -00037 {
    -00038  public:
    -00039         char channel[CHANMAX];
    -00040 };
    -00041 
    -00042 
    +00037 {
    +00038  public:
    +00039         char channel[CHANMAX];
    +00040 };
    +00041 
    +00042 
     00045 class ConnectClass : public classbase
    -00046 {
    -00047  public:
    -00050         char type;
    -00053         int registration_timeout;
    -00056         int flood;
    -00059         char host[MAXBUF];
    -00062         int pingtime;
    -00065         char pass[MAXBUF];
    -00066 
    -00069         int threshold;
    -00070 
    -00073         long sendqmax;
    -00074 
    -00077         long recvqmax;
    -00078         
    -00079         ConnectClass()
    -00080         {
    -00081                 registration_timeout = 0;
    -00082                 flood = 0;
    -00083                 pingtime = 0;
    -00084                 threshold = 0;
    -00085                 sendqmax = 0;
    -00086                 recvqmax = 0;
    -00087                 strlcpy(host,"",MAXBUF);
    -00088                 strlcpy(pass,"",MAXBUF);
    -00089         }
    -00090 };
    -00091 
    -00094 typedef std::vector<Invited> InvitedList;
    -00095 
    -00096 
    -00097 
    -00100 typedef std::vector<ConnectClass> ClassVector;
    -00101 
    +00046 {
    +00047  public:
    +00050         char type;
    +00053         int registration_timeout;
    +00056         int flood;
    +00059         char host[MAXBUF];
    +00062         int pingtime;
    +00065         char pass[MAXBUF];
    +00066 
    +00069         int threshold;
    +00070 
    +00073         long sendqmax;
    +00074 
    +00077         long recvqmax;
    +00078         
    +00079         ConnectClass()
    +00080         {
    +00081                 registration_timeout = 0;
    +00082                 flood = 0;
    +00083                 pingtime = 0;
    +00084                 threshold = 0;
    +00085                 sendqmax = 0;
    +00086                 recvqmax = 0;
    +00087                 strlcpy(host,"",MAXBUF);
    +00088                 strlcpy(pass,"",MAXBUF);
    +00089         }
    +00090 };
    +00091 
    +00094 typedef std::vector<Invited> InvitedList;
    +00095 
    +00096 
    +00097 
    +00100 typedef std::vector<ConnectClass> ClassVector;
    +00101 
     00108 class userrec : public connection
    -00109 {
    -00110  private:
    -00111 
    -00114         InvitedList invites;
    -00115  public:
    -00116         
    -00121         char nick[NICKMAX];
    -00122         
    -00126         char ident[IDENTMAX+2];
    -00127 
    -00131         char dhost[160];
    -00132         
    -00135         char fullname[MAXGECOS+1];
    -00136         
    -00144         char modes[54];
    -00145         
    -00146         ucrec chans[MAXCHANS];
    -00147         
    -00150         char* server;
    -00151         
    -00155         char awaymsg[MAXAWAY+1];
    -00156         
    -00161         int flood;
    -00162         
    -00167         unsigned int timeout;
    -00168         
    -00174         char oper[NICKMAX];
    -00175 
    -00178         bool dns_done;
    -00179 
    -00182         unsigned int pingmax;
    -00183 
    -00188         char password[MAXBUF];
    -00189 
    -00194         std::string recvq;
    -00195 
    -00199         std::string sendq;
    -00200 
    -00203         int lines_in;
    -00204         time_t reset_due;
    -00205         long threshold;
    -00206 
    -00207         /* Write error string
    -00208          */
    -00209         std::string WriteError;
    -00210 
    -00213         long sendqmax;
    -00214 
    -00217         long recvqmax;
    -00218 
    -00219         userrec();
    -00220         
    -00221         virtual ~userrec() {  }
    -00222         
    -00227         virtual char* GetFullHost();
    -00228         
    -00234         virtual char* GetFullRealHost();
    -00235         
    -00238         virtual bool IsInvited(char* channel);
    -00239         
    -00242         virtual void InviteTo(char* channel);
    -00243         
    -00248         virtual void RemoveInvite(char* channel);
    -00249         
    -00254         bool HasPermission(char* command);
    -00255 
    -00258         int ReadData(void* buffer, size_t size);
    -00259 
    -00267         bool AddBuffer(std::string a);
    -00268 
    -00272         bool BufferIsReady();
    -00273 
    -00276         void ClearBuffer();
    -00277 
    -00285         std::string GetBuffer();
    -00286 
    -00292         void SetWriteError(std::string error);
    -00293 
    -00297         std::string GetWriteError();
    -00298 
    -00304         void AddWriteBuf(std::string data);
    -00305 
    -00312         void FlushWriteBuf();
    -00313 
    -00316         InvitedList* GetInviteList();
    -00317 
    -00320         void CloseSocket();
    -00321 };
    -00322 
    +00109 {
    +00110  private:
    +00111 
    +00114         InvitedList invites;
    +00115  public:
    +00116         
    +00121         char nick[NICKMAX];
    +00122         
    +00126         char ident[IDENTMAX+2];
    +00127 
    +00131         char dhost[160];
    +00132         
    +00135         char fullname[MAXGECOS+1];
    +00136         
    +00144         char modes[54];
    +00145         
    +00146         ucrec chans[MAXCHANS];
    +00147         
    +00150         char* server;
    +00151         
    +00155         char awaymsg[MAXAWAY+1];
    +00156         
    +00161         int flood;
    +00162         
    +00167         unsigned int timeout;
    +00168         
    +00174         char oper[NICKMAX];
    +00175 
    +00178         bool dns_done;
    +00179 
    +00182         unsigned int pingmax;
    +00183 
    +00188         char password[MAXBUF];
    +00189 
    +00194         std::string recvq;
    +00195 
    +00199         std::string sendq;
    +00200 
    +00203         int lines_in;
    +00204         time_t reset_due;
    +00205         long threshold;
    +00206 
    +00207         /* Write error string
    +00208          */
    +00209         std::string WriteError;
    +00210 
    +00213         long sendqmax;
    +00214 
    +00217         long recvqmax;
    +00218 
    +00219         userrec();
    +00220         
    +00221         virtual ~userrec() {  }
    +00222         
    +00227         virtual char* GetFullHost();
    +00228         
    +00234         virtual char* GetFullRealHost();
    +00235         
    +00238         virtual bool IsInvited(char* channel);
    +00239         
    +00242         virtual void InviteTo(char* channel);
    +00243         
    +00248         virtual void RemoveInvite(char* channel);
    +00249         
    +00254         bool HasPermission(char* command);
    +00255 
    +00258         int ReadData(void* buffer, size_t size);
    +00259 
    +00267         bool AddBuffer(std::string a);
    +00268 
    +00272         bool BufferIsReady();
    +00273 
    +00276         void ClearBuffer();
    +00277 
    +00285         std::string GetBuffer();
    +00286 
    +00292         void SetWriteError(std::string error);
    +00293 
    +00297         std::string GetWriteError();
    +00298 
    +00304         void AddWriteBuf(std::string data);
    +00305 
    +00312         void FlushWriteBuf();
    +00313 
    +00316         InvitedList* GetInviteList();
    +00317 
    +00320         void CloseSocket();
    +00321 };
    +00322 
     00325 class WhoWasUser
    -00326 {
    -00327  public:
    -00328         char nick[NICKMAX];
    -00329         char ident[IDENTMAX+1];
    -00330         char dhost[160];
    -00331         char host[160];
    -00332         char fullname[MAXGECOS+1];
    -00333         char server[256];
    -00334         time_t signon;
    -00335 };
    -00336 
    -00337 #endif
    -

    Generated on Mon May 30 05:15:21 2005 for InspIRCd by +00326 { +00327 public: +00328 char nick[NICKMAX]; +00329 char ident[IDENTMAX+1]; +00330 char dhost[160]; +00331 char host[160]; +00332 char fullname[MAXGECOS+1]; +00333 char server[256]; +00334 time_t signon; +00335 }; +00336 +00337 #endif +

    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815 diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index 5170f4fbb..c26992c15 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -1,85 +1,88 @@ - + InspIRCd: users.h File Reference - - -

    users.h File Reference

    #include "inspircd_config.h"
    -#include "channels.h"
    -#include "connection.h"
    -#include "inspstring.h"
    + + + +

    users.h File Reference

    #include "inspircd_config.h"
    +#include "channels.h"
    +#include "inspstring.h"
    +#include "connection.h"
    #include <string>

    -Include dependency graph for users.h:

    Include dependency graph
    +Include dependency graph for users.h:

    - - + +

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

    Included by dependency graph
    +This graph shows which files directly or indirectly include this file:

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

    -Go to the source code of this file. +Go to the source code of this file.
    - - + + - - + + - - + + - - + + - - - + + + - + - + - + - + - + - - + + - - + + - +

    Compounds

    class  ConnectClass

    Classes

    class  Invited
     Holds information relevent to <connect allow> and <connect deny> tags in the config file. More...

    class  Invited
     Holds a channel name to which a user has been invited. More...
    class  ConnectClass
     Holds a channel name to which a user has been invited. More...

    class  userrec
     Holds information relevent to <connect allow> and <connect deny> tags in the config file. More...
    class  userrec
     Holds all information about a user This class stores all information about a user connected to the irc server. More...

    class  WhoWasUser
     Holds all information about a user This class stores all information about a user connected to the irc server. More...
    class  WhoWasUser
     A lightweight userrec used by WHOWAS. More...


    Defines

    #define STATUS_OP   4
     A lightweight userrec used by WHOWAS. More...

    Defines

    #define STATUS_OP   4
    #define STATUS_HOP   2
    #define STATUS_HOP   2
    #define STATUS_VOICE   1
    #define STATUS_VOICE   1
    #define STATUS_NORMAL   0
    #define STATUS_NORMAL   0
    #define CC_ALLOW   0
    #define CC_ALLOW   0
    #define CC_DENY   1
    #define CC_DENY   1

    Typedefs

    typedef std::vector< InvitedInvitedList

    Typedefs

    typedef std::vector< InvitedInvitedList
     Holds a complete list of all channels to which a user has been invited and has not yet joined.

    typedef std::vector< ConnectClassClassVector
     Holds a complete list of all channels to which a user has been invited and has not yet joined.
    typedef std::vector< ConnectClassClassVector
     Holds a complete list of all allow and deny tags from the configuration file (connection classes).

     Holds a complete list of all allow and deny tags from the configuration file (connection classes).


    Define Documentation

    -

    - +

    +

    - +
    #define CC_ALLOW   0 + #define CC_ALLOW   0
    - +
      @@ -92,18 +95,19 @@ This graph shows which files directly or indirectly include this file:

    31 of file users.h.
    -

    - +

    +

    - +
    #define CC_DENY   1 + #define CC_DENY   1
    - +
      @@ -116,18 +120,19 @@ Definition at line 31 of fi Definition at line 32 of file users.h.
    -

    - +

    +

    - +
    #define STATUS_HOP   2 + #define STATUS_HOP   2
    - +
      @@ -140,18 +145,19 @@ Definition at line 32 of fi Definition at line 27 of file users.h.
    -

    - +

    +

    - +
    #define STATUS_NORMAL   0 + #define STATUS_NORMAL   0
    - +
      @@ -164,18 +170,19 @@ Definition at line 27 of fi Definition at line 29 of file users.h.
    -

    - +

    +

    - +
    #define STATUS_OP   4 + #define STATUS_OP   4
    - +
      @@ -188,18 +195,19 @@ Definition at line 29 of fi Definition at line 26 of file users.h.
    -

    - +

    +

    - +
    #define STATUS_VOICE   1 + #define STATUS_VOICE   1
    - +
      @@ -213,18 +221,19 @@ Definition at line 28 of fi


    Typedef Documentation

    -

    - +

    +

    - +
    typedef std::vector<ConnectClass> ClassVector + typedef std::vector<ConnectClass> ClassVector
    - +
      @@ -239,18 +248,19 @@ Holds a complete list of all allow and deny tags from the configuration file (co Definition at line 100 of file users.h.
    -

    - +

    +

    - +
    typedef std::vector<Invited> InvitedList + typedef std::vector<Invited> InvitedList
    - +
    +Definition at line 94 of file users.h.
      @@ -262,14 +272,11 @@ Holds a complete list of all channels to which a user has been invited and has n

    -Definition at line 94 of file users.h. -

    -Referenced by userrec::GetInviteList().

    -


    Generated on Mon May 30 05:16:19 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +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 2c43da56c..d0e01f1c4 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 new file mode 100644 index 000000000..6ace71bf1 --- /dev/null +++ b/docs/module-doc/users_8h__dep__incl.map @@ -0,0 +1,8 @@ +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 131,311 211,337 +rect $commands_8h-source.html 121,209 220,236 +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 diff --git a/docs/module-doc/users_8h__dep__incl.md5 b/docs/module-doc/users_8h__dep__incl.md5 new file mode 100644 index 000000000..ec176e93b --- /dev/null +++ b/docs/module-doc/users_8h__dep__incl.md5 @@ -0,0 +1 @@ +90f60db6818f380f159c532db95ccc66 \ No newline at end of file diff --git a/docs/module-doc/users_8h__incl.gif b/docs/module-doc/users_8h__incl.gif index 5aae3ba7e..e8c9defe4 100644 Binary files a/docs/module-doc/users_8h__incl.gif and b/docs/module-doc/users_8h__incl.gif differ diff --git a/docs/module-doc/users_8h__incl.map b/docs/module-doc/users_8h__incl.map new file mode 100644 index 000000000..a05768f57 --- /dev/null +++ b/docs/module-doc/users_8h__incl.map @@ -0,0 +1,3 @@ +base referer +rect $channels_8h-source.html 128,108 213,135 +rect $connection_8h-source.html 121,58 220,84 diff --git a/docs/module-doc/users_8h__incl.md5 b/docs/module-doc/users_8h__incl.md5 new file mode 100644 index 000000000..1487e9c1d --- /dev/null +++ b/docs/module-doc/users_8h__incl.md5 @@ -0,0 +1 @@ +7879e2bf7dd2f81aa204448ca88459ab \ 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 1c81a5aed..898ab6283 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -1,131 +1,130 @@ - + InspIRCd: xline.h Source File - - -

    xline.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 __XLINE_H
    -00018 #define __XLINE_H
    -00019 
    -00020 // include the common header files
    -00021 
    -00022 #include <typeinfo>
    -00023 #include <iostream>
    -00024 #include <string>
    -00025 #include <deque>
    -00026 #include <sstream>
    -00027 #include <vector>
    -00028 #include "users.h"
    -00029 #include "channels.h"
    -00030 
    -00031 
    +
    +
    +
    +

    xline.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 __XLINE_H
    +00018 #define __XLINE_H
    +00019 
    +00020 // include the common header files
    +00021 
    +00022 #include <typeinfo>
    +00023 #include <iostream>
    +00024 #include <string>
    +00025 #include <deque>
    +00026 #include <sstream>
    +00027 #include <vector>
    +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 
    +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 
    +00063 {
    +00064   public:
    +00068         char hostmask[200];
    +00069 };
    +00070 
     00073 class GLine : public XLine
    -00074 {
    -00075   public:
    -00079         char hostmask[200];
    -00080 };
    -00081 
    +00074 {
    +00075   public:
    +00079         char hostmask[200];
    +00080 };
    +00081 
     00082 class ELine : public XLine
    -00083 {
    -00084   public:
    -00088         char hostmask[200];
    -00089 };
    -00090 
    +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 
    +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 
    -00154 bool zline_make_global(const char* ipaddr);
    -00155 bool qline_make_global(const char* nickname);
    -00156 
    -00157 void sync_xlines(serverrec* serv, char* tcp_host);
    -00158 
    -00159 #endif
    -

    Generated on Mon May 30 05:15:21 2005 for InspIRCd by +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 +00154 bool zline_make_global(const char* ipaddr); +00155 bool qline_make_global(const char* nickname); +00156 +00157 #endif +

    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815 diff --git a/docs/module-doc/xline_8h.html b/docs/module-doc/xline_8h.html index 30ed335e5..62098d9d5 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -1,155 +1,155 @@ - + InspIRCd: xline.h File Reference - - + + +

    xline.h File Reference

    #include <typeinfo>
    #include <iostream>
    #include <string>
    #include <deque>
    #include <sstream>
    #include <vector>
    -#include "users.h"
    -#include "channels.h"
    +#include "users.h"
    +#include "channels.h"

    -Include dependency graph for xline.h:

    Include dependency graph
    +Include dependency graph for xline.h:

    - - + + +

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

    Included by dependency graph
    +This graph shows which files directly or indirectly include this file:

    - - + +

    -Go to the source code of this file. +Go to the source code of this file.
    - - + + - + + - - + + - - + + - - + - - + + - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - +

    Compounds

    class  ELine

    Classes

    class  XLine
    class  GLine
     XLine is the base class for ban lines such as G lines and K lines. More...
    class  KLine
     GLine class. More...

    class  KLine
     KLine class. More...
    class  GLine
     KLine class. More...

    class  QLine
     GLine class. More...
    class  ELine
     QLine class. More...

    class  XLine
    class  ZLine
     XLine is the base class for ban lines such as G lines and K lines. More...

    class  ZLine
     ZLine class. More...
    class  QLine
     ZLine class. More...


    Functions

    void read_xline_defaults ()
     QLine class. More...

    Functions

    void read_xline_defaults ()
    void add_gline (long duration, const char *source, const char *reason, const char *hostmask)
    void add_gline (long duration, const char *source, const char *reason, const char *hostmask)
    void add_qline (long duration, const char *source, const char *reason, const char *nickname)
    void add_qline (long duration, const char *source, const char *reason, const char *nickname)
    void add_zline (long duration, const char *source, const char *reason, const char *ipaddr)
    void add_zline (long duration, const char *source, const char *reason, const char *ipaddr)
    void add_kline (long duration, const char *source, const char *reason, const char *hostmask)
    void add_kline (long duration, const char *source, const char *reason, const char *hostmask)
    void add_eline (long duration, const char *source, const char *reason, const char *hostmask)
    void add_eline (long duration, const char *source, const char *reason, const char *hostmask)
    bool del_gline (const char *hostmask)
    bool del_gline (const char *hostmask)
    bool del_qline (const char *nickname)
    bool del_qline (const char *nickname)
    bool del_zline (const char *ipaddr)
    bool del_zline (const char *ipaddr)
    bool del_kline (const char *hostmask)
    bool del_kline (const char *hostmask)
    bool del_eline (const char *hostmask)
    bool del_eline (const char *hostmask)
    char * matches_qline (const char *nick)
    char * matches_qline (const char *nick)
    char * matches_gline (const char *host)
    char * matches_gline (const char *host)
    char * matches_zline (const char *ipaddr)
    char * matches_zline (const char *ipaddr)
    char * matches_kline (const char *host)
    char * matches_kline (const char *host)
    char * matches_exception (const char *host)
    char * matches_exception (const char *host)
    void expire_lines ()
    void expire_lines ()
    void apply_lines ()
    void apply_lines ()
    void stats_k (userrec *user)
    void stats_k (userrec *user)
    void stats_g (userrec *user)
    void stats_g (userrec *user)
    void stats_q (userrec *user)
    void stats_q (userrec *user)
    void stats_z (userrec *user)
    void stats_z (userrec *user)
    void stats_e (userrec *user)
    void stats_e (userrec *user)
    void gline_set_creation_time (char *host, time_t create_time)
    void gline_set_creation_time (char *host, time_t create_time)
    void qline_set_creation_time (char *nick, time_t create_time)
    void qline_set_creation_time (char *nick, time_t create_time)
    void zline_set_creation_time (char *ip, time_t create_time)
    void zline_set_creation_time (char *ip, time_t create_time)
    bool zline_make_global (const char *ipaddr)
    bool zline_make_global (const char *ipaddr)
    bool qline_make_global (const char *nickname)
    void sync_xlines (serverrec *serv, char *tcp_host)
    bool qline_make_global (const char *nickname)


    Function Documentation

    -

    - +

    +

    - + - - + + - - + + - - + + - + -
    void add_eline void add_eline long  duration,
    const char *  source,
    const char *  reason,
    const char *  hostmask
    - +
    +Referenced by Server::AddELine().
      @@ -159,49 +159,48 @@ This graph shows which files directly or indirectly include this file:

    -Referenced by Server::AddELine().

    -

    - +

    +

    - + - - + + - - + + - - + + - + -
    void add_gline void add_gline long  duration,
    const char *  source,
    const char *  reason,
    const char *  hostmask
    - +
    +Referenced by Server::AddGLine().
      @@ -211,49 +210,48 @@ Referenced by Server::AddEL

    -Referenced by Server::AddGLine().

    -

    - +

    +

    - + - - + + - - + + - - + + - + -
    void add_kline void add_kline long  duration,
    const char *  source,
    const char *  reason,
    const char *  hostmask
    - +
    +Referenced by Server::AddKLine().
      @@ -263,49 +261,48 @@ Referenced by Server::AddGL

    -Referenced by Server::AddKLine().

    -

    - +

    +

    - + - - + + - - + + - - + + - + -
    void add_qline void add_qline long  duration,
    const char *  source,
    const char *  reason,
    const char *  nickname
    - +
    +Referenced by Server::AddQLine().
      @@ -315,49 +312,48 @@ Referenced by Server::AddKL

    -Referenced by Server::AddQLine().

    -

    - +

    +

    - + - - + + - - + + - - + + - + -
    void add_zline void add_zline long  duration,
    const char *  source,
    const char *  reason,
    const char *  ipaddr
    - +
    +Referenced by Server::AddZLine().
      @@ -367,27 +363,26 @@ Referenced by Server::AddQL

    -Referenced by Server::AddZLine().

    -

    - +

    +

    - + -
    void apply_lines void apply_lines  ) 
    - +
      @@ -398,25 +393,24 @@ Referenced by Server::AddZL
    -

    - +

    +

    - + -
    bool del_eline bool del_eline const char *  hostmask  ) 
    - +
    +Referenced by Server::DelELine().
      @@ -426,28 +420,27 @@ Referenced by Server::AddZL

    -Referenced by Server::DelELine().

    -

    - +

    +

    - + -
    bool del_gline bool del_gline const char *  hostmask  ) 
    - +
    +Referenced by Server::DelGLine().
      @@ -457,28 +450,27 @@ Referenced by Server::DelEL

    -Referenced by Server::DelGLine().

    -

    - +

    +

    - + -
    bool del_kline bool del_kline const char *  hostmask  ) 
    - +
    +Referenced by Server::DelKLine().
      @@ -488,28 +480,27 @@ Referenced by Server::DelGL

    -Referenced by Server::DelKLine().

    -

    - +

    +

    - + -
    bool del_qline bool del_qline const char *  nickname  ) 
    - +
    +Referenced by Server::DelQLine().
      @@ -519,28 +510,27 @@ Referenced by Server::DelKL

    -Referenced by Server::DelQLine().

    -

    - +

    +

    - + -
    bool del_zline bool del_zline const char *  ipaddr  ) 
    - +
    +Referenced by Server::DelZLine().
      @@ -550,27 +540,26 @@ Referenced by Server::DelQL

    -Referenced by Server::DelZLine().

    -

    - +

    +

    - + -
    void expire_lines void expire_lines  ) 
    - +
      @@ -581,34 +570,33 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + - - + + - + -
    void gline_set_creation_time void gline_set_creation_time char *  host,
    time_t  create_time
    - +
      @@ -619,25 +607,24 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + -
    char* matches_exception char* matches_exception const char *  host  ) 
    - +
      @@ -648,25 +635,24 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + -
    char* matches_gline char* matches_gline const char *  host  ) 
    - +
      @@ -677,25 +663,24 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + -
    char* matches_kline char* matches_kline const char *  host  ) 
    - +
      @@ -706,25 +691,24 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + -
    char* matches_qline char* matches_qline const char *  nick  ) 
    - +
      @@ -735,25 +719,24 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + -
    char* matches_zline char* matches_zline const char *  ipaddr  ) 
    - +
      @@ -764,25 +747,24 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + -
    bool qline_make_global bool qline_make_global const char *  nickname  ) 
    - +
      @@ -793,34 +775,33 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + - - + + - + -
    void qline_set_creation_time void qline_set_creation_time char *  nick,
    time_t  create_time
    - +
      @@ -831,24 +812,23 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + -
    void read_xline_defaults void read_xline_defaults  ) 
    - +
      @@ -859,25 +839,24 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + -
    void stats_e void stats_e userrec user  ) 
    - +
      @@ -888,25 +867,24 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + -
    void stats_g void stats_g userrec user  ) 
    - +
      @@ -917,25 +895,24 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + -
    void stats_k void stats_k userrec user  ) 
    - +
      @@ -946,25 +923,24 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + -
    void stats_q void stats_q userrec user  ) 
    - +
      @@ -975,63 +951,24 @@ Referenced by Server::DelZL
    -

    - +

    +

    - -
    - + - -
    void stats_z void stats_z userrec user  ) 
    -
    - - - - - -
    -   - - -

    -

    -

    - - -
    - - - - - - - - - - - - - - - - - - -
    void sync_xlines serverrec serv,
    char *  tcp_host
    - +
      @@ -1042,25 +979,24 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + -
    bool zline_make_global bool zline_make_global const char *  ipaddr  ) 
    - +
      @@ -1071,34 +1007,33 @@ Referenced by Server::DelZL
    -

    - +

    +

    - + - - + + - + -
    void zline_set_creation_time void zline_set_creation_time char *  ip,
    time_t  create_time
    - +
      @@ -1109,9 +1044,8 @@ Referenced by Server::DelZL
    -


    Generated on Mon May 30 05:16:22 2005 for InspIRCd by +
    Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  -doxygen -1.3.3
    +doxygen 1.4.4-20050815
    diff --git a/docs/module-doc/xline_8h__dep__incl.gif b/docs/module-doc/xline_8h__dep__incl.gif index 55cf4dc26..f159c57da 100644 Binary files a/docs/module-doc/xline_8h__dep__incl.gif and b/docs/module-doc/xline_8h__dep__incl.gif differ diff --git a/docs/module-doc/xline_8h__dep__incl.map b/docs/module-doc/xline_8h__dep__incl.map new file mode 100644 index 000000000..f174ea10d --- /dev/null +++ b/docs/module-doc/xline_8h__dep__incl.map @@ -0,0 +1,3 @@ +base referer +rect $channels_8cpp-source.html 120,7 219,34 +rect $modules_8cpp-source.html 120,58 219,84 diff --git a/docs/module-doc/xline_8h__dep__incl.md5 b/docs/module-doc/xline_8h__dep__incl.md5 new file mode 100644 index 000000000..6d471411b --- /dev/null +++ b/docs/module-doc/xline_8h__dep__incl.md5 @@ -0,0 +1 @@ +94b61de8eaa885e874543fc93fa71194 \ No newline at end of file diff --git a/docs/module-doc/xline_8h__incl.gif b/docs/module-doc/xline_8h__incl.gif index bdc390b70..5d89df74b 100644 Binary files a/docs/module-doc/xline_8h__incl.gif and b/docs/module-doc/xline_8h__incl.gif differ diff --git a/docs/module-doc/xline_8h__incl.map b/docs/module-doc/xline_8h__incl.map new file mode 100644 index 000000000..48d749ff5 --- /dev/null +++ b/docs/module-doc/xline_8h__incl.map @@ -0,0 +1,4 @@ +base referer +rect $users_8h-source.html 124,260 188,287 +rect $channels_8h-source.html 248,210 333,236 +rect $connection_8h-source.html 241,362 340,388 diff --git a/docs/module-doc/xline_8h__incl.md5 b/docs/module-doc/xline_8h__incl.md5 new file mode 100644 index 000000000..8b33a634d --- /dev/null +++ b/docs/module-doc/xline_8h__incl.md5 @@ -0,0 +1 @@ +6e8687e6a611b1214ddbdd4f9cecd725 \ No newline at end of file -- cgit v1.2.3