From 1899777c6d86544a7775bc96175283957a763326 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 30 Apr 2004 14:47:34 +0000 Subject: Added base.cpp, fixed documentation for userrec::HasPermission git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@757 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/annotated.html | 2 +- docs/module-doc/base_8h-source.html | 2 +- docs/module-doc/base_8h.html | 2 +- docs/module-doc/channels_8cpp-source.html | 2 +- docs/module-doc/channels_8cpp.html | 2 +- docs/module-doc/channels_8h-source.html | 2 +- docs/module-doc/channels_8h.html | 2 +- docs/module-doc/classAdmin-members.html | 2 +- docs/module-doc/classAdmin.html | 2 +- docs/module-doc/classBanItem-members.html | 2 +- docs/module-doc/classBanItem.html | 2 +- docs/module-doc/classConfigReader-members.html | 2 +- docs/module-doc/classConfigReader.html | 2 +- docs/module-doc/classConnectClass-members.html | 2 +- docs/module-doc/classConnectClass.html | 2 +- docs/module-doc/classExemptItem-members.html | 2 +- docs/module-doc/classExemptItem.html | 2 +- docs/module-doc/classExtMode-members.html | 2 +- docs/module-doc/classExtMode.html | 2 +- docs/module-doc/classExtensible-members.html | 2 +- docs/module-doc/classExtensible.html | 2 +- docs/module-doc/classFileReader-members.html | 2 +- docs/module-doc/classFileReader.html | 2 +- docs/module-doc/classGLine-members.html | 2 +- docs/module-doc/classGLine.html | 2 +- docs/module-doc/classHostItem-members.html | 2 +- docs/module-doc/classHostItem.html | 2 +- docs/module-doc/classInviteItem-members.html | 2 +- docs/module-doc/classInviteItem.html | 2 +- docs/module-doc/classInvited-members.html | 2 +- docs/module-doc/classInvited.html | 4 +- docs/module-doc/classKLine-members.html | 2 +- docs/module-doc/classKLine.html | 2 +- docs/module-doc/classModeParameter-members.html | 2 +- docs/module-doc/classModeParameter.html | 2 +- docs/module-doc/classModule-members.html | 2 +- docs/module-doc/classModule.html | 2 +- docs/module-doc/classModuleFactory-members.html | 2 +- docs/module-doc/classModuleFactory.html | 2 +- docs/module-doc/classQLine-members.html | 2 +- docs/module-doc/classQLine.html | 2 +- docs/module-doc/classServer-members.html | 2 +- docs/module-doc/classServer.html | 2 +- docs/module-doc/classVersion-members.html | 2 +- docs/module-doc/classVersion.html | 2 +- docs/module-doc/classXLine-members.html | 2 +- docs/module-doc/classXLine.html | 2 +- docs/module-doc/classZLine-members.html | 2 +- docs/module-doc/classZLine.html | 2 +- docs/module-doc/classchanrec-members.html | 2 +- docs/module-doc/classchanrec.html | 2 +- docs/module-doc/classclassbase-members.html | 2 +- docs/module-doc/classclassbase.html | 2 +- docs/module-doc/classcommand__t-members.html | 2 +- docs/module-doc/classcommand__t.html | 2 +- docs/module-doc/classconnection-members.html | 2 +- docs/module-doc/classconnection.html | 26 +- docs/module-doc/classes.html | 2 +- docs/module-doc/classircd__connector-members.html | 2 +- docs/module-doc/classircd__connector.html | 2 +- docs/module-doc/classpacket-members.html | 2 +- docs/module-doc/classpacket.html | 2 +- docs/module-doc/classserverrec-members.html | 2 +- docs/module-doc/classserverrec.html | 2 +- docs/module-doc/classucrec-members.html | 2 +- docs/module-doc/classucrec.html | 6 +- docs/module-doc/classuserrec-members.html | 4 +- docs/module-doc/classuserrec.html | 289 +++++++++++++++------- docs/module-doc/classuserrec__coll__graph.gif | Bin 20352 -> 20685 bytes docs/module-doc/commands_8h-source.html | 2 +- docs/module-doc/commands_8h.html | 2 +- docs/module-doc/connection_8h-source.html | 2 +- docs/module-doc/connection_8h.html | 2 +- docs/module-doc/ctables_8h-source.html | 2 +- docs/module-doc/ctables_8h.html | 2 +- docs/module-doc/files.html | 2 +- docs/module-doc/functions.html | 14 +- docs/module-doc/globals.html | 11 +- docs/module-doc/graph_legend.html | 2 +- docs/module-doc/hierarchy.html | 2 +- docs/module-doc/inherits.html | 2 +- docs/module-doc/main.html | 2 +- docs/module-doc/message_8h-source.html | 2 +- docs/module-doc/message_8h.html | 2 +- docs/module-doc/mode_8h-source.html | 2 +- docs/module-doc/mode_8h.html | 2 +- docs/module-doc/modules_8cpp-source.html | 2 +- docs/module-doc/modules_8cpp.html | 2 +- docs/module-doc/modules_8h-source.html | 2 +- docs/module-doc/modules_8h.html | 2 +- docs/module-doc/namespaces.html | 2 +- docs/module-doc/namespacestd.html | 2 +- docs/module-doc/servers_8cpp-source.html | 2 +- docs/module-doc/servers_8cpp.html | 2 +- docs/module-doc/servers_8h-source.html | 2 +- docs/module-doc/servers_8h.html | 2 +- docs/module-doc/users_8cpp-source.html | 230 ++++++++++------- docs/module-doc/users_8cpp.html | 29 ++- docs/module-doc/users_8h-source.html | 42 ++-- docs/module-doc/users_8h.html | 2 +- docs/module-doc/xline_8h-source.html | 2 +- docs/module-doc/xline_8h.html | 2 +- src/base.cpp | 38 +++ 103 files changed, 564 insertions(+), 311 deletions(-) create mode 100644 src/base.cpp diff --git a/docs/module-doc/annotated.html b/docs/module-doc/annotated.html index 55d7686df..95945ac47 100644 --- a/docs/module-doc/annotated.html +++ b/docs/module-doc/annotated.html @@ -38,7 +38,7 @@ XLineXLine is the base class for ban lines such as G lines and K lines ZLineZLine class -
Generated on Fri Apr 30 13:23:24 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:31 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index 60a2faf6b..6e698c0a5 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -44,7 +44,7 @@ 00067 00068 #endif 00069 -
Generated on Fri Apr 30 13:23:13 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/base_8h.html b/docs/module-doc/base_8h.html index c62b8e765..8cc0bcf2c 100644 --- a/docs/module-doc/base_8h.html +++ b/docs/module-doc/base_8h.html @@ -59,7 +59,7 @@ This graph shows which files directly or indirectly include this file:

13 of file base.h. -
Generated on Fri Apr 30 13:23:15 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:23 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/channels_8cpp-source.html b/docs/module-doc/channels_8cpp-source.html index fd7ff3ef8..e3ae0f437 100644 --- a/docs/module-doc/channels_8cpp-source.html +++ b/docs/module-doc/channels_8cpp-source.html @@ -106,7 +106,7 @@ 00098 } 00099 return std::string(""); 00100 } -
Generated on Fri Apr 30 13:23:13 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/channels_8cpp.html b/docs/module-doc/channels_8cpp.html index 8ada84db8..d5dac0da3 100644 --- a/docs/module-doc/channels_8cpp.html +++ b/docs/module-doc/channels_8cpp.html @@ -55,7 +55,7 @@ Definition at line 10 Referenced by chanrec::GetModeParameter(), and chanrec::SetCustomModeParam(). -
Generated on Fri Apr 30 13:23:16 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:23 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index e6c56cb67..a69f69dfa 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -129,7 +129,7 @@ 00207 00208 #endif 00209 -
Generated on Fri Apr 30 13:23:13 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/channels_8h.html b/docs/module-doc/channels_8h.html index d2185fd98..560b9f7a5 100644 --- a/docs/module-doc/channels_8h.html +++ b/docs/module-doc/channels_8h.html @@ -263,7 +263,7 @@ Holds a complete invite list. Definition at line 77 of file channels.h. -
Generated on Fri Apr 30 13:23:16 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:24 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classAdmin-members.html b/docs/module-doc/classAdmin-members.html index 3ce384d79..deacaca38 100644 --- a/docs/module-doc/classAdmin-members.html +++ b/docs/module-doc/classAdmin-members.html @@ -14,7 +14,7 @@ NameAdmin NickAdmin ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:24 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:32 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classAdmin.html b/docs/module-doc/classAdmin.html index 2af0a9601..6e1d3abb7 100644 --- a/docs/module-doc/classAdmin.html +++ b/docs/module-doc/classAdmin.html @@ -160,7 +160,7 @@ Definition at line 83 of
The documentation for this class was generated from the following files: -
Generated on Fri Apr 30 13:23:24 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:32 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classBanItem-members.html b/docs/module-doc/classBanItem-members.html index 036ff6238..2418b5278 100644 --- a/docs/module-doc/classBanItem-members.html +++ b/docs/module-doc/classBanItem-members.html @@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Fri Apr 30 13:23:25 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:32 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classBanItem.html b/docs/module-doc/classBanItem.html index f26c0538d..a01f2a750 100644 --- a/docs/module-doc/classBanItem.html +++ b/docs/module-doc/classBanItem.html @@ -31,7 +31,7 @@ A subclass of HostItem designed to h

Definition at line 34 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:25 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:32 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classConfigReader-members.html b/docs/module-doc/classConfigReader-members.html index 5ae2ffcdc..52675b464 100644 --- a/docs/module-doc/classConfigReader-members.html +++ b/docs/module-doc/classConfigReader-members.html @@ -19,7 +19,7 @@ Verify()ConfigReader ~classbase()classbase [inline] ~ConfigReader()ConfigReader -
Generated on Fri Apr 30 13:23:28 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:35 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classConfigReader.html b/docs/module-doc/classConfigReader.html index 97a7b933b..0b3e2ad20 100644 --- a/docs/module-doc/classConfigReader.html +++ b/docs/module-doc/classConfigReader.html @@ -414,7 +414,7 @@ Referenced by ConfigReader(
The documentation for this class was generated from the following files:
-
Generated on Fri Apr 30 13:23:28 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:35 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classConnectClass-members.html b/docs/module-doc/classConnectClass-members.html index 5eb3d3793..277cfa703 100644 --- a/docs/module-doc/classConnectClass-members.html +++ b/docs/module-doc/classConnectClass-members.html @@ -16,7 +16,7 @@ registration_timeoutConnectClass typeConnectClass ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:28 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:35 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classConnectClass.html b/docs/module-doc/classConnectClass.html index 18c1658e4..b3fc93555 100644 --- a/docs/module-doc/classConnectClass.html +++ b/docs/module-doc/classConnectClass.html @@ -212,7 +212,7 @@ Definition at line 39 of fi
The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:28 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:35 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classExemptItem-members.html b/docs/module-doc/classExemptItem-members.html index e5154c986..91fb10549 100644 --- a/docs/module-doc/classExemptItem-members.html +++ b/docs/module-doc/classExemptItem-members.html @@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Fri Apr 30 13:23:30 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:37 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classExemptItem.html b/docs/module-doc/classExemptItem.html index 62294d069..fe83ba73f 100644 --- a/docs/module-doc/classExemptItem.html +++ b/docs/module-doc/classExemptItem.html @@ -31,7 +31,7 @@ A subclass of HostItem designed to h

Definition at line 42 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:30 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:37 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classExtMode-members.html b/docs/module-doc/classExtMode-members.html index 68d975c3e..0d1d4a42f 100644 --- a/docs/module-doc/classExtMode-members.html +++ b/docs/module-doc/classExtMode-members.html @@ -16,7 +16,7 @@ params_when_onExtMode typeExtMode ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:31 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:38 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classExtMode.html b/docs/module-doc/classExtMode.html index b60fd93f6..eaf57547f 100644 --- a/docs/module-doc/classExtMode.html +++ b/docs/module-doc/classExtMode.html @@ -210,7 +210,7 @@ Definition at line 25 o
The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:31 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:38 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classExtensible-members.html b/docs/module-doc/classExtensible-members.html index 46a8d944c..fc7408412 100644 --- a/docs/module-doc/classExtensible-members.html +++ b/docs/module-doc/classExtensible-members.html @@ -14,7 +14,7 @@ GetExt(std::string key)Extensible Shrink(std::string key)Extensible ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:31 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:38 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classExtensible.html b/docs/module-doc/classExtensible.html index 61543dbed..ff602dfad 100644 --- a/docs/module-doc/classExtensible.html +++ b/docs/module-doc/classExtensible.html @@ -178,7 +178,7 @@ Definition at line 42 of fil
The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:30 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:38 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classFileReader-members.html b/docs/module-doc/classFileReader-members.html index 2aaf14d95..2c1eb3fb6 100644 --- a/docs/module-doc/classFileReader-members.html +++ b/docs/module-doc/classFileReader-members.html @@ -18,7 +18,7 @@ LoadFile(std::string filename)FileReader ~classbase()classbase [inline] ~FileReader()FileReader -
Generated on Fri Apr 30 13:23:32 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:39 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index 34d5f7cc2..aaabafca3 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -360,7 +360,7 @@ Referenced by Exists(),
The documentation for this class was generated from the following files: -
Generated on Fri Apr 30 13:23:32 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:39 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classGLine-members.html b/docs/module-doc/classGLine-members.html index dd3a1a2f0..17362de37 100644 --- a/docs/module-doc/classGLine-members.html +++ b/docs/module-doc/classGLine-members.html @@ -16,7 +16,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:32 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:39 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classGLine.html b/docs/module-doc/classGLine.html index fc01b77ef..7b2763fa1 100644 --- a/docs/module-doc/classGLine.html +++ b/docs/module-doc/classGLine.html @@ -61,7 +61,7 @@ Definition at line 63 of fi
The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:32 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:39 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classHostItem-members.html b/docs/module-doc/classHostItem-members.html index 27dd3a42d..820dc104d 100644 --- a/docs/module-doc/classHostItem-members.html +++ b/docs/module-doc/classHostItem-members.html @@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Fri Apr 30 13:23:33 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:40 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classHostItem.html b/docs/module-doc/classHostItem.html index dddce7fba..8c0cebbfe 100644 --- a/docs/module-doc/classHostItem.html +++ b/docs/module-doc/classHostItem.html @@ -181,7 +181,7 @@ Definition at line 21 of
The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:33 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:40 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classInviteItem-members.html b/docs/module-doc/classInviteItem-members.html index 90955694d..494fed463 100644 --- a/docs/module-doc/classInviteItem-members.html +++ b/docs/module-doc/classInviteItem-members.html @@ -15,7 +15,7 @@ set_timeHostItem ~classbase()classbase [inline] ~HostItem()HostItem [inline, virtual] -
Generated on Fri Apr 30 13:23:34 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:41 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classInviteItem.html b/docs/module-doc/classInviteItem.html index 2456ec8c7..5618ddffc 100644 --- a/docs/module-doc/classInviteItem.html +++ b/docs/module-doc/classInviteItem.html @@ -31,7 +31,7 @@ A subclass of HostItem designed to h

Definition at line 50 of file channels.h.


The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:34 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:41 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classInvited-members.html b/docs/module-doc/classInvited-members.html index 4ee024d10..68c2ebfae 100644 --- a/docs/module-doc/classInvited-members.html +++ b/docs/module-doc/classInvited-members.html @@ -11,7 +11,7 @@ channelInvited classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:33 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:41 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classInvited.html b/docs/module-doc/classInvited.html index 26a25351d..2d98a2710 100644 --- a/docs/module-doc/classInvited.html +++ b/docs/module-doc/classInvited.html @@ -53,12 +53,12 @@ Definition at line 25 of fi

Definition at line 28 of file users.h.

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


The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:33 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:41 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classKLine-members.html b/docs/module-doc/classKLine-members.html index 6976979b2..7308897e2 100644 --- a/docs/module-doc/classKLine-members.html +++ b/docs/module-doc/classKLine-members.html @@ -16,7 +16,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:35 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:42 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classKLine.html b/docs/module-doc/classKLine.html index 02484b48d..1597d97e0 100644 --- a/docs/module-doc/classKLine.html +++ b/docs/module-doc/classKLine.html @@ -61,7 +61,7 @@ Definition at line 52 of fi
The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:35 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:42 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classModeParameter-members.html b/docs/module-doc/classModeParameter-members.html index 82c547fec..df1b6703c 100644 --- a/docs/module-doc/classModeParameter-members.html +++ b/docs/module-doc/classModeParameter-members.html @@ -13,7 +13,7 @@ modeModeParameter parameterModeParameter ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:36 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:43 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classModeParameter.html b/docs/module-doc/classModeParameter.html index b2f19399c..7b94a7613 100644 --- a/docs/module-doc/classModeParameter.html +++ b/docs/module-doc/classModeParameter.html @@ -114,7 +114,7 @@ Referenced by chanrec::Set
The documentation for this class was generated from the following file:
-
Generated on Fri Apr 30 13:23:36 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:43 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classModule-members.html b/docs/module-doc/classModule-members.html index c4520be10..16eb009b3 100644 --- a/docs/module-doc/classModule-members.html +++ b/docs/module-doc/classModule-members.html @@ -29,7 +29,7 @@ OnWhois(userrec *source, userrec *dest)Module [virtual] ~classbase()classbase [inline] ~Module()Module [virtual] -
Generated on Fri Apr 30 13:23:36 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:44 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classModule.html b/docs/module-doc/classModule.html index 2755812cc..a931bf27e 100644 --- a/docs/module-doc/classModule.html +++ b/docs/module-doc/classModule.html @@ -896,7 +896,7 @@ Definition at line 126
The documentation for this class was generated from the following files: -
Generated on Fri Apr 30 13:23:36 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:44 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classModuleFactory-members.html b/docs/module-doc/classModuleFactory-members.html index f90a6724c..2bc4751f8 100644 --- a/docs/module-doc/classModuleFactory-members.html +++ b/docs/module-doc/classModuleFactory-members.html @@ -13,7 +13,7 @@ ModuleFactory()ModuleFactory [inline] ~classbase()classbase [inline] ~ModuleFactory()ModuleFactory [inline, virtual] -
Generated on Fri Apr 30 13:23:37 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:45 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classModuleFactory.html b/docs/module-doc/classModuleFactory.html index 02b83a9c2..296be3d3c 100644 --- a/docs/module-doc/classModuleFactory.html +++ b/docs/module-doc/classModuleFactory.html @@ -134,7 +134,7 @@ Your inherited class of ModuleFactory must return a pointer to your modules.h -
Generated on Fri Apr 30 13:23:37 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:45 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classQLine-members.html b/docs/module-doc/classQLine-members.html index 6afc67075..477b1346a 100644 --- a/docs/module-doc/classQLine-members.html +++ b/docs/module-doc/classQLine-members.html @@ -17,7 +17,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:38 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:46 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classQLine.html b/docs/module-doc/classQLine.html index 9f9804648..79e409ce1 100644 --- a/docs/module-doc/classQLine.html +++ b/docs/module-doc/classQLine.html @@ -89,7 +89,7 @@ Definition at line 89 of fi
The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:38 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:46 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classServer-members.html b/docs/module-doc/classServer-members.html index 86cb19972..552fe6f2b 100644 --- a/docs/module-doc/classServer-members.html +++ b/docs/module-doc/classServer-members.html @@ -43,7 +43,7 @@ Server()Server ~classbase()classbase [inline] ~Server()Server [virtual] -
Generated on Fri Apr 30 13:23:39 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:47 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classServer.html b/docs/module-doc/classServer.html index 933e00fc0..770d43736 100644 --- a/docs/module-doc/classServer.html +++ b/docs/module-doc/classServer.html @@ -1723,7 +1723,7 @@ Definition at line 265
The documentation for this class was generated from the following files: -
Generated on Fri Apr 30 13:23:39 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:47 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classVersion-members.html b/docs/module-doc/classVersion-members.html index cb96ca18f..687f219ef 100644 --- a/docs/module-doc/classVersion-members.html +++ b/docs/module-doc/classVersion-members.html @@ -15,7 +15,7 @@ RevisionVersion Version(int major, int minor, int revision, int build)Version ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:42 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:49 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classVersion.html b/docs/module-doc/classVersion.html index aad382a6d..113af7d4e 100644 --- a/docs/module-doc/classVersion.html +++ b/docs/module-doc/classVersion.html @@ -191,7 +191,7 @@ Definition at line 71 of
The documentation for this class was generated from the following files: -
Generated on Fri Apr 30 13:23:42 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:49 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classXLine-members.html b/docs/module-doc/classXLine-members.html index 1eeb2ef7b..230d36435 100644 --- a/docs/module-doc/classXLine-members.html +++ b/docs/module-doc/classXLine-members.html @@ -15,7 +15,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:42 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:50 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classXLine.html b/docs/module-doc/classXLine.html index d3652acb0..f14c4a5f7 100644 --- a/docs/module-doc/classXLine.html +++ b/docs/module-doc/classXLine.html @@ -175,7 +175,7 @@ Definition at line 32 of fi
The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:42 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:50 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classZLine-members.html b/docs/module-doc/classZLine-members.html index ec718a52e..167e9462f 100644 --- a/docs/module-doc/classZLine-members.html +++ b/docs/module-doc/classZLine-members.html @@ -17,7 +17,7 @@ set_timeXLine sourceXLine ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:43 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:51 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classZLine.html b/docs/module-doc/classZLine.html index cd9d0b624..c3ecd93f0 100644 --- a/docs/module-doc/classZLine.html +++ b/docs/module-doc/classZLine.html @@ -89,7 +89,7 @@ Definition at line 78 of fi
The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:43 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:51 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classchanrec-members.html b/docs/module-doc/classchanrec-members.html index 58b50ef9c..b9844c177 100644 --- a/docs/module-doc/classchanrec-members.html +++ b/docs/module-doc/classchanrec-members.html @@ -34,7 +34,7 @@ topicsetchanrec ~chanrec()chanrec [inline, virtual] ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:26 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:33 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classchanrec.html b/docs/module-doc/classchanrec.html index 9c258e181..88b1de112 100644 --- a/docs/module-doc/classchanrec.html +++ b/docs/module-doc/classchanrec.html @@ -810,7 +810,7 @@ Referenced by chanrec()
The documentation for this class was generated from the following files: -
Generated on Fri Apr 30 13:23:26 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:33 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classclassbase-members.html b/docs/module-doc/classclassbase-members.html index 4c8d8d3f7..9f6aaef1d 100644 --- a/docs/module-doc/classclassbase-members.html +++ b/docs/module-doc/classclassbase-members.html @@ -10,7 +10,7 @@ ageclassbase classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:26 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:34 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classclassbase.html b/docs/module-doc/classclassbase.html index 6e82fff4d..7e170acad 100644 --- a/docs/module-doc/classclassbase.html +++ b/docs/module-doc/classclassbase.html @@ -143,7 +143,7 @@ Definition at line 22 of fil
The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:26 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:34 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classcommand__t-members.html b/docs/module-doc/classcommand__t-members.html index 05135d27e..e682a5dbb 100644 --- a/docs/module-doc/classcommand__t-members.html +++ b/docs/module-doc/classcommand__t-members.html @@ -19,7 +19,7 @@ total_bytescommand_t use_countcommand_t ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:27 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:34 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classcommand__t.html b/docs/module-doc/classcommand__t.html index 559b91439..62f517d08 100644 --- a/docs/module-doc/classcommand__t.html +++ b/docs/module-doc/classcommand__t.html @@ -200,7 +200,7 @@ Definition at line 42 of
The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:27 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:34 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classconnection-members.html b/docs/module-doc/classconnection-members.html index daaf5b472..5e0b13c2b 100644 --- a/docs/module-doc/classconnection-members.html +++ b/docs/module-doc/classconnection-members.html @@ -42,7 +42,7 @@ stateconnection TerminateLink(char *targethost)connection ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:29 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:36 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classconnection.html b/docs/module-doc/classconnection.html index a6e883c31..721996bee 100644 --- a/docs/module-doc/classconnection.html +++ b/docs/module-doc/classconnection.html @@ -516,7 +516,7 @@ Stats counter for bytes inbound.

Definition at line 182 of file connection.h.

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

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

Definition at line 186 of file connection.h.

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

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

Definition at line 190 of file connection.h.

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

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

Definition at line 194 of file connection.h.

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

@@ -654,7 +654,7 @@ File descriptor of the connection.

Definition at line 166 of file connection.h.

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

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

Definition at line 198 of file connection.h.

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

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

Definition at line 224 of file connection.h.

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

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

Definition at line 216 of file connection.h.

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

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

Definition at line 228 of file connection.h.

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

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

Definition at line 204 of file connection.h.

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

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

Definition at line 208 of file connection.h.

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

@@ -980,7 +980,7 @@ Time the connection was created, set in the constructor.

Definition at line 220 of file connection.h.

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

@@ -1011,7 +1011,7 @@ Definition at line 212


The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:29 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:36 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classes.html b/docs/module-doc/classes.html index 065d005e8..e5661e253 100644 --- a/docs/module-doc/classes.html +++ b/docs/module-doc/classes.html @@ -24,7 +24,7 @@
  M  
Server   
  Z  
ConfigReader   GLine   ModeParameter   serverrec   ZLine   ConnectClass   
  H  
-
Generated on Fri Apr 30 13:23:24 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:31 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classircd__connector-members.html b/docs/module-doc/classircd__connector-members.html index 1878e0dde..b0ec48472 100644 --- a/docs/module-doc/classircd__connector-members.html +++ b/docs/module-doc/classircd__connector-members.html @@ -36,7 +36,7 @@ Shrink(std::string key)Extensible stateircd_connector [private] ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:35 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:42 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classircd__connector.html b/docs/module-doc/classircd__connector.html index 47ea6837b..aa0818e4d 100644 --- a/docs/module-doc/classircd__connector.html +++ b/docs/module-doc/classircd__connector.html @@ -777,7 +777,7 @@ Definition at line 63
The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:34 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:42 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classpacket-members.html b/docs/module-doc/classpacket-members.html index 86d6d09ae..36d9a4cf0 100644 --- a/docs/module-doc/classpacket-members.html +++ b/docs/module-doc/classpacket-members.html @@ -10,7 +10,7 @@ ageclassbase classbase()classbase [inline] ~classbase()classbase [inline] -
Generated on Fri Apr 30 13:23:37 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:45 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classpacket.html b/docs/module-doc/classpacket.html index d2a836912..bbb978dae 100644 --- a/docs/module-doc/classpacket.html +++ b/docs/module-doc/classpacket.html @@ -31,7 +31,7 @@ This declaration is preserved here to maintain documentation only.

Definition at line 155 of file connection.h.


The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:37 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:45 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classserverrec-members.html b/docs/module-doc/classserverrec-members.html index b66b05581..4cd3caba7 100644 --- a/docs/module-doc/classserverrec-members.html +++ b/docs/module-doc/classserverrec-members.html @@ -55,7 +55,7 @@ versionserverrec ~classbase()classbase [inline] ~serverrec()serverrec -
Generated on Fri Apr 30 13:23:40 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:47 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classserverrec.html b/docs/module-doc/classserverrec.html index 6f8c0ccff..347ee98e2 100644 --- a/docs/module-doc/classserverrec.html +++ b/docs/module-doc/classserverrec.html @@ -480,7 +480,7 @@ Referenced by serverrec()
The documentation for this class was generated from the following files:
-
Generated on Fri Apr 30 13:23:39 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:47 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classucrec-members.html b/docs/module-doc/classucrec-members.html index 370eb846b..fa8a99e3e 100644 --- a/docs/module-doc/classucrec-members.html +++ b/docs/module-doc/classucrec-members.html @@ -17,7 +17,7 @@ ucrec()ucrec [inline] ~classbase()classbase [inline] ~ucrec()ucrec [inline, virtual] -
Generated on Fri Apr 30 13:23:40 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:48 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classucrec.html b/docs/module-doc/classucrec.html index 14a58ee43..0d39baa51 100644 --- a/docs/module-doc/classucrec.html +++ b/docs/module-doc/classucrec.html @@ -132,7 +132,7 @@ If the record is not in use, this value will be NULL.

Definition at line 202 of file channels.h.

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

@@ -160,12 +160,12 @@ UCMODE_FOUNDER values. If this value is zero, the user has no privilages upon th

Definition at line 197 of file channels.h.

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


The documentation for this class was generated from the following file: -
Generated on Fri Apr 30 13:23:40 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:48 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classuserrec-members.html b/docs/module-doc/classuserrec-members.html index ddd3adbd3..d09cd94ec 100644 --- a/docs/module-doc/classuserrec-members.html +++ b/docs/module-doc/classuserrec-members.html @@ -31,6 +31,7 @@ GetFullHost()userrec [virtual] GetFullRealHost()userrec [virtual] haspassedconnection + HasPermission(char *command)userrec [virtual] hostconnection identuserrec idle_lastmsgconnection @@ -46,6 +47,7 @@ modesuserrec nickuserrec npingconnection + operuserrec portconnection RecvPacket(std::deque< std::string > &messages, char *host)connection registeredconnection @@ -61,7 +63,7 @@ userrec()userrec ~classbase()classbase [inline] ~userrec()userrec [inline, virtual] -
Generated on Fri Apr 30 13:23:41 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:49 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index 200b14063..023abf77f 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -19,8 +19,8 @@ Inheritance diagram for userrec:

[legend]
Collaboration diagram for userrec:

Collaboration graph
- - + +
[legend]
List of all members. @@ -37,6 +37,8 @@ Inheritance diagram for userrec:



+ + @@ -59,6 +61,8 @@ Inheritance diagram for userrec:



+ + @@ -98,34 +102,34 @@ Definition at line 78 of fi

-Definition at line 11 of file users.cpp. +Definition at line 13 of file users.cpp.

References connection::bytes_in, connection::bytes_out, ucrec::channel, chans, connection::cmds_in, connection::cmds_out, connection::fd, flood, connection::haspassed, connection::idle_lastmsg, invites, connection::lastping, connection::nping, connection::port, connection::registered, connection::signon, timeout, and ucrec::uc_modes.

-

00012 {
-00013         // the PROPER way to do it, AVOID bzero at *ALL* costs
-00014         strcpy(nick,"");
-00015         strcpy(ip,"127.0.0.1");
-00016         timeout = 0;
-00017         strcpy(ident,"");
-00018         strcpy(host,"");
-00019         strcpy(dhost,"");
-00020         strcpy(fullname,"");
-00021         strcpy(modes,"");
-00022         strcpy(inbuf,"");
-00023         strcpy(server,"");
-00024         strcpy(awaymsg,"");
-00025         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
-00026         flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
-00027         haspassed = false;
-00028         strcpy(result,"");
-00029         for (int i = 0; i < MAXCHANS; i++)
-00030         {
-00031                 this->chans[i].channel = NULL;
-00032                 this->chans[i].uc_modes = 0;
-00033         }
-00034         invites.clear();
-00035 }
+
00014 {
+00015         // the PROPER way to do it, AVOID bzero at *ALL* costs
+00016         strcpy(nick,"");
+00017         strcpy(ip,"127.0.0.1");
+00018         timeout = 0;
+00019         strcpy(ident,"");
+00020         strcpy(host,"");
+00021         strcpy(dhost,"");
+00022         strcpy(fullname,"");
+00023         strcpy(modes,"");
+00024         strcpy(inbuf,"");
+00025         strcpy(server,"");
+00026         strcpy(awaymsg,"");
+00027         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
+00028         flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
+00029         haspassed = false;
+00030         strcpy(result,"");
+00031         for (int i = 0; i < MAXCHANS; i++)
+00032         {
+00033                 this->chans[i].channel = NULL;
+00034                 this->chans[i].uc_modes = 0;
+00035         }
+00036         invites.clear();
+00037 }
 
virtual void RemoveInvite (char *channel)
 Removes a channel from a users invite list.

virtual bool HasPermission (char *command)
 Returns true or false for if a user can execute a privilaged oper command.


Public Attributes

char nick [NICKMAX]
 The users nickname.

unsigned long 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]
 The oper type they logged in as, if they are an oper.


Private Attributes

InvitedList invites
 A list of channels the user has a pending invite to.

@@ -156,9 +160,9 @@ References connection::byt

-Definition at line 142 of file users.h. +Definition at line 149 of file users.h.

-

00142 {  }
+
00149 {  }
 
@@ -192,14 +196,14 @@ Returns the full displayed host of the user This member function returns the hos

-Definition at line 39 of file users.cpp. +Definition at line 41 of file users.cpp.

References result.

-

00040 {
-00041         sprintf(result,"%s!%s@%s",nick,ident,dhost);
-00042         return result;
-00043 }
+
00042 {
+00043         sprintf(result,"%s!%s@%s",nick,ident,dhost);
+00044         return result;
+00045 }
 
@@ -232,14 +236,103 @@ 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 46 of file users.cpp. +Definition at line 48 of file users.cpp.

References result.

-

00047 {
-00048         sprintf(result,"%s!%s@%s",nick,ident,host);
-00049         return result;
-00050 }
+
00049 {
+00050         sprintf(result,"%s!%s@%s",nick,ident,host);
+00051         return result;
+00052 }
+
+ + +

+ + + + +
+ + + + + + + + + + +
bool userrec::HasPermission char *   command [virtual]
+
+ + + +
+   + + +

+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 97 of file users.cpp. +

+

00098 {
+00099         char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
+00100         char* myclass;
+00101         char* mycmd;
+00102         char* savept;
+00103         char* savept2;
+00104         
+00105         // are they even an oper at all?
+00106         if (strchr(this->modes,'o'))
+00107         {
+00108                 log(DEBUG,"*** HasPermission: %s is an oper",this->nick);
+00109                 for (int j =0; j < ConfValueEnum("type",&config_f); j++)
+00110                 {
+00111                         ConfValue("type","name",j,TypeName,&config_f);
+00112                         if (!strcmp(TypeName,this->oper))
+00113                         {
+00114                                 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper);
+00115                                 ConfValue("type","classes",j,Classes,&config_f);
+00116                                 char* myclass = strtok_r(Classes," ",&savept);
+00117                                 //myclass = savept;
+00118                                 while (myclass)
+00119                                 {
+00120                                         log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass);
+00121                                         for (int k =0; k < ConfValueEnum("class",&config_f); k++)
+00122                                         {
+00123                                                 ConfValue("class","name",k,ClassName,&config_f);
+00124                                                 if (!strcmp(ClassName,myclass))
+00125                                                 {
+00126                                                         ConfValue("class","commands",k,CommandList,&config_f);
+00127                                                         log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList);
+00128                                                         
+00129                                                         
+00130                                                         mycmd = strtok_r(CommandList," ",&savept2);
+00131                                                         //mycmd = savept2;
+00132                                                         while (mycmd)
+00133                                                         {
+00134                                                                 if (!strcasecmp(mycmd,command))
+00135                                                                 {
+00136                                                                         log(DEBUG,"*** Command %s found, returning true",command);
+00137                                                                         return true;
+00138                                                                 }
+00139                                                                 mycmd = strtok_r(NULL," ",&savept2);
+00140                                                                 //mycmd = savept2;
+00141                                                         }
+00142                                                 }
+00143                                         }
+00144                                         myclass = strtok_r(NULL," ",&savept);
+00145                                         //myclass = savept;
+00146                                 }
+00147                         }
+00148                 }
+00149         }
+00150         return false;
+00151 }
 
@@ -273,15 +366,15 @@ Adds a channel to a users invite list (invites them to a channel).

-Definition at line 66 of file users.cpp. +Definition at line 68 of file users.cpp.

References Invited::channel, and invites.

-

00067 {
-00068         Invited i;
-00069         strcpy(i.channel,channel);
-00070         invites.push_back(i);
-00071 }
+
00069 {
+00070         Invited i;
+00071         strcpy(i.channel,channel);
+00072         invites.push_back(i);
+00073 }
 
@@ -315,22 +408,22 @@ Returns true if a user is invited to a channel.

-Definition at line 52 of file users.cpp. +Definition at line 54 of file users.cpp.

References invites.

-

00053 {
-00054         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
-00055         {
-00056                 if (i->channel) {
-00057                         if (!strcasecmp(i->channel,channel))
-00058                         {
-00059                                 return true;
-00060                         }
-00061                 }
-00062         }
-00063         return false;
-00064 }
+
00055 {
+00056         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
+00057         {
+00058                 if (i->channel) {
+00059                         if (!strcasecmp(i->channel,channel))
+00060                         {
+00061                                 return true;
+00062                         }
+00063                 }
+00064         }
+00065         return false;
+00066 }
 
@@ -364,30 +457,30 @@ 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 73 of file users.cpp. +Definition at line 75 of file users.cpp.

References invites.

-

00074 {
-00075         log(DEBUG,"Removing invites");
-00076         if (channel)
-00077         {
-00078                 if (invites.size())
-00079                 {
-00080                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
-00081                         {
-00082                                 if (i->channel)
-00083                                 {
-00084                                         if (!strcasecmp(i->channel,channel))
-00085                                         {
-00086                                                 invites.erase(i);
-00087                                                 return;
-00088                                         }
-00089                                 }
-00090                         }
-00091                 }
-00092         }
-00093 }
+
00076 {
+00077         log(DEBUG,"Removing invites");
+00078         if (channel)
+00079         {
+00080                 if (invites.size())
+00081                 {
+00082                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
+00083                         {
+00084                                 if (i->channel)
+00085                                 {
+00086                                         if (!strcasecmp(i->channel,channel))
+00087                                         {
+00088                                                 invites.erase(i);
+00089                                                 return;
+00090                                         }
+00091                                 }
+00092                         }
+00093                 }
+00094         }
+00095 }
 
@@ -441,7 +534,7 @@ Definition at line 121 of f

Definition at line 112 of file users.h.

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

@@ -495,7 +588,7 @@ Number of lines the user can place into the buffer (up to the global NetBufferSi

Definition at line 132 of file users.h.

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

@@ -575,7 +668,7 @@ A list of channels the user has a pending invite to.

Definition at line 84 of file users.h.

-Referenced by InviteTo(), IsInvited(), RemoveInvite(), and userrec(). +Referenced by InviteTo(), IsInvited(), RemoveInvite(), and userrec().

@@ -632,6 +725,32 @@ Definition at line 91 of fi Referenced by Server::QuitUser(). +

+ + + + +
+ + +
char userrec::oper[NICKMAX] +
+
+ + + + + +
+   + + +

+The oper type they logged in as, if they are an oper. +

+This is used to check permissions in operclasses, so that we can say 'yay' or 'nay' to any commands they issue. The value of this is the value of a valid 'type name=' tag. +

+Definition at line 145 of file users.h.

@@ -657,7 +776,7 @@ You may use this to increase the speed of use of this class.

Definition at line 126 of file users.h.

-Referenced by GetFullHost(), and GetFullRealHost(). +Referenced by GetFullHost(), and GetFullRealHost().

@@ -711,12 +830,12 @@ Number of seconds this user is given to send USER/NICK If they do not send their

Definition at line 138 of file users.h.

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


The documentation for this class was generated from the following files: -
Generated on Fri Apr 30 13:23:41 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:49 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/classuserrec__coll__graph.gif b/docs/module-doc/classuserrec__coll__graph.gif index fa8995af0..170f625b2 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/commands_8h-source.html b/docs/module-doc/commands_8h-source.html index 8390a27b9..437a19dff 100644 --- a/docs/module-doc/commands_8h-source.html +++ b/docs/module-doc/commands_8h-source.html @@ -98,7 +98,7 @@ 00098 bool is_uline(const char* server); 00099 00100 #endif -

Generated on Fri Apr 30 13:23:13 2004 for InspIRCd by +

Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/commands_8h.html b/docs/module-doc/commands_8h.html index b81c5a259..2bea6fe23 100644 --- a/docs/module-doc/commands_8h.html +++ b/docs/module-doc/commands_8h.html @@ -3517,7 +3517,7 @@ Referenced by Server::IsUli -
Generated on Fri Apr 30 13:23:17 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:25 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index 230a10a39..5676b36fe 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -157,7 +157,7 @@ 00288 00289 #endif 00290 -

Generated on Fri Apr 30 13:23:13 2004 for InspIRCd by +

Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/connection_8h.html b/docs/module-doc/connection_8h.html index f6c78beb6..e2c0fb1fc 100644 --- a/docs/module-doc/connection_8h.html +++ b/docs/module-doc/connection_8h.html @@ -203,7 +203,7 @@ Definition at line 27 Definition at line 24 of file connection.h. -
Generated on Fri Apr 30 13:23:18 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:26 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/ctables_8h-source.html b/docs/module-doc/ctables_8h-source.html index d4dcc4b24..de2de125b 100644 --- a/docs/module-doc/ctables_8h-source.html +++ b/docs/module-doc/ctables_8h-source.html @@ -41,7 +41,7 @@ 00047 00048 #endif 00049 -

Generated on Fri Apr 30 13:23:14 2004 for InspIRCd by +

Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/ctables_8h.html b/docs/module-doc/ctables_8h.html index 609af7ded..dbb8cdb52 100644 --- a/docs/module-doc/ctables_8h.html +++ b/docs/module-doc/ctables_8h.html @@ -30,7 +30,7 @@ This graph shows which files directly or indirectly include this file:

class  command_t  A structure that defines a command. More...

-
Generated on Fri Apr 30 13:23:19 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:26 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/files.html b/docs/module-doc/files.html index 80e3ea782..be56ff88b 100644 --- a/docs/module-doc/files.html +++ b/docs/module-doc/files.html @@ -23,7 +23,7 @@ users.h [code] xline.h [code] -
Generated on Fri Apr 30 13:23:13 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/functions.html b/docs/module-doc/functions.html index 25c15ed12..13b534329 100644 --- a/docs/module-doc/functions.html +++ b/docs/module-doc/functions.html @@ -109,7 +109,8 @@ Here is a list of all class members with links to the classes they belong to:

- p -

    @@ -234,9 +236,9 @@ Here is a list of all class members with links to the classes they belong to:

    Server
  • SendTo() : Server
  • SendToModeMask() : Server
  • SendWallops() -: Server
  • server -: userrec
  • Server() -: Server
  • servername +: Server
  • Server() +: Server
  • server +: userrec
  • servername : ircd_connector
  • serverrec() : serverrec
  • set_by : HostItem
  • set_time @@ -295,7 +297,7 @@ Here is a list of all class members with links to the classes they belong to:

    serverrec
  • ~ucrec() : ucrec
  • ~userrec() : userrec
-
Generated on Fri Apr 30 13:23:24 2004 for InspIRCd by +
Generated on Fri Apr 30 15:46:31 2004 for InspIRCd by doxygen1.3-rc3
diff --git a/docs/module-doc/globals.html b/docs/module-doc/globals.html index 190e8ebe9..e52a8e334 100644 --- a/docs/module-doc/globals.html +++ b/docs/module-doc/globals.html @@ -38,7 +38,8 @@ Here is a list of all file members with links to the files they belong to:

users.h
  • CleanAndResolve() : message.h
  • cmode() : message.h
  • common_channels() -: message.h
  • createcommand() +: message.h
  • config_f +: users.cpp
  • createcommand() : modules.h
  • cstatus() : message.h
  • custom_mode_params : channels.cpp @@ -132,9 +133,9 @@ Here is a list of all file members with links to the files they belong to:

    commands.h
  • handle_squit() : commands.h
  • handle_stats() : commands.h
  • handle_summon() -: commands.h
  • handle_t() -: commands.h
  • handle_T() -: commands.h
  • handle_time() +: commands.h
  • handle_T() +: commands.h
  • handle_t() +: commands.h
  • handle_time() : commands.h
  • handle_topic() : commands.h
  • handle_trace() : commands.h
  • handle_user() @@ -251,7 +252,7 @@ Here is a list of all file members with links to the files they belong to:

    zline_make_global() : xline.h
  • zline_set_creation_time() : xline.h -
    Generated on Fri Apr 30 13:23:43 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:51 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/graph_legend.html b/docs/module-doc/graph_legend.html index bbe6d117a..4ac49f896 100644 --- a/docs/module-doc/graph_legend.html +++ b/docs/module-doc/graph_legend.html @@ -69,7 +69,7 @@ A purple dashed arrow is used if a class is contained or used by another class.
  • A yellow dashed arrow denotes a relation between a template instance and the template class it was instantiated from. The arrow is labeled with the template parameters of the instance.
  • -
    Generated on Fri Apr 30 13:23:43 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:51 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/hierarchy.html b/docs/module-doc/hierarchy.html index 6c855b36d..b8740117d 100644 --- a/docs/module-doc/hierarchy.html +++ b/docs/module-doc/hierarchy.html @@ -50,7 +50,7 @@ This inheritance list is sorted roughly, but not completely, alphabetically:
    -
    Generated on Fri Apr 30 13:23:24 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:31 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/inherits.html b/docs/module-doc/inherits.html index c4babdb1b..9137ea35f 100644 --- a/docs/module-doc/inherits.html +++ b/docs/module-doc/inherits.html @@ -43,7 +43,7 @@ -
    Generated on Fri Apr 30 13:23:43 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:51 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/main.html b/docs/module-doc/main.html index b51da6727..d6aeb50df 100644 --- a/docs/module-doc/main.html +++ b/docs/module-doc/main.html @@ -8,7 +8,7 @@ Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  


  • InspIRCd Documentation

    -


    Generated on Fri Apr 30 13:23:13 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/message_8h-source.html b/docs/module-doc/message_8h-source.html index 11de03afd..385b8c0d8 100644 --- a/docs/module-doc/message_8h-source.html +++ b/docs/module-doc/message_8h-source.html @@ -42,7 +42,7 @@ 00034 void send_network_quit(const char* nick, const char* reason); 00035 00036 #endif -
    Generated on Fri Apr 30 13:23:14 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/message_8h.html b/docs/module-doc/message_8h.html index 61cc54ff3..82047f0e8 100644 --- a/docs/module-doc/message_8h.html +++ b/docs/module-doc/message_8h.html @@ -728,7 +728,7 @@ Referenced by Server::QuitU -
    Generated on Fri Apr 30 13:23:19 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:27 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/mode_8h-source.html b/docs/module-doc/mode_8h-source.html index 500c35b32..d234e9587 100644 --- a/docs/module-doc/mode_8h-source.html +++ b/docs/module-doc/mode_8h-source.html @@ -39,7 +39,7 @@ 00031 00032 00033 #endif -
    Generated on Fri Apr 30 13:23:14 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/mode_8h.html b/docs/module-doc/mode_8h.html index 40197c21b..ad494a3da 100644 --- a/docs/module-doc/mode_8h.html +++ b/docs/module-doc/mode_8h.html @@ -788,7 +788,7 @@ This graph shows which files directly or indirectly include this file:

    -
    Generated on Fri Apr 30 13:23:20 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:27 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index 7bfc0176a..62a3122c0 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -450,7 +450,7 @@ 00442 int MODCOUNT = -1; 00443 00444 -
    Generated on Fri Apr 30 13:23:14 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/modules_8cpp.html b/docs/module-doc/modules_8cpp.html index 10412de99..05504e831 100644 --- a/docs/module-doc/modules_8cpp.html +++ b/docs/module-doc/modules_8cpp.html @@ -501,7 +501,7 @@ Referenced by DoAddExtended Definition at line 442 of file modules.cpp. -
    Generated on Fri Apr 30 13:23:21 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:28 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/modules_8h-source.html b/docs/module-doc/modules_8h-source.html index d957eb0ee..da3ae5bd7 100644 --- a/docs/module-doc/modules_8h-source.html +++ b/docs/module-doc/modules_8h-source.html @@ -229,7 +229,7 @@ 00646 typedef DLLFactory<ModuleFactory> ircd_module; 00647 00648 #endif -
    Generated on Fri Apr 30 13:23:14 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/modules_8h.html b/docs/module-doc/modules_8h.html index 2876810c1..7f2d81d63 100644 --- a/docs/module-doc/modules_8h.html +++ b/docs/module-doc/modules_8h.html @@ -499,7 +499,7 @@ Referenced by Server::AddCo Referenced by Server::SendMode(). -
    Generated on Fri Apr 30 13:23:21 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:29 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/namespaces.html b/docs/module-doc/namespaces.html index 6ea9167ba..d682b327e 100644 --- a/docs/module-doc/namespaces.html +++ b/docs/module-doc/namespaces.html @@ -9,7 +9,7 @@

    InspIRCd Namespace List

    Here is a list of all namespaces with brief descriptions:
    std
    -
    Generated on Fri Apr 30 13:23:43 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:51 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/namespacestd.html b/docs/module-doc/namespacestd.html index 3fff86c31..a042c7dc2 100644 --- a/docs/module-doc/namespacestd.html +++ b/docs/module-doc/namespacestd.html @@ -11,7 +11,7 @@
    -
    Generated on Fri Apr 30 13:23:43 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:51 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/servers_8cpp-source.html b/docs/module-doc/servers_8cpp-source.html index cf9b6be40..979259f7c 100644 --- a/docs/module-doc/servers_8cpp-source.html +++ b/docs/module-doc/servers_8cpp-source.html @@ -48,7 +48,7 @@ 00040 sync_soon = false; 00041 } 00042 -
    Generated on Fri Apr 30 13:23:14 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/servers_8cpp.html b/docs/module-doc/servers_8cpp.html index 3442ceb48..f0da23d7e 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -23,7 +23,7 @@ Include dependency graph for servers.cpp:

    Go to the source code of this file.
    -
    Generated on Fri Apr 30 13:23:22 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:29 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/servers_8h-source.html b/docs/module-doc/servers_8h-source.html index 1dd2ca27b..76c39de77 100644 --- a/docs/module-doc/servers_8h-source.html +++ b/docs/module-doc/servers_8h-source.html @@ -49,7 +49,7 @@ 00067 00068 #endif 00069 -
    Generated on Fri Apr 30 13:23:14 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/servers_8h.html b/docs/module-doc/servers_8h.html index ab90306a4..4924ab54e 100644 --- a/docs/module-doc/servers_8h.html +++ b/docs/module-doc/servers_8h.html @@ -82,7 +82,7 @@ Definition at line 14 of Definition at line 15 of file servers.h. -
    Generated on Fri Apr 30 13:23:22 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:29 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index 088c5ffe4..d6aca8a62 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -7,7 +7,7 @@
    Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

    users.cpp

    Go to the documentation of this file.
    00001 /*
    -00002 
    +00002 Manages userrec objects
     00003 */
     00004 
     00005 #include "inspircd_config.h" 
    @@ -16,90 +16,150 @@
     00008 #include "inspircd.h"
     00009 #include <stdio.h>
     00010 
    -00011 userrec::userrec()
    -00012 {
    -00013         // the PROPER way to do it, AVOID bzero at *ALL* costs
    -00014         strcpy(nick,"");
    -00015         strcpy(ip,"127.0.0.1");
    -00016         timeout = 0;
    -00017         strcpy(ident,"");
    -00018         strcpy(host,"");
    -00019         strcpy(dhost,"");
    -00020         strcpy(fullname,"");
    -00021         strcpy(modes,"");
    -00022         strcpy(inbuf,"");
    -00023         strcpy(server,"");
    -00024         strcpy(awaymsg,"");
    -00025         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
    -00026         flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
    -00027         haspassed = false;
    -00028         strcpy(result,"");
    -00029         for (int i = 0; i < MAXCHANS; i++)
    -00030         {
    -00031                 this->chans[i].channel = NULL;
    -00032                 this->chans[i].uc_modes = 0;
    -00033         }
    -00034         invites.clear();
    -00035 }
    -00036 
    -00037 
    -00038  
    -00039 char* userrec::GetFullHost()
    -00040 {
    -00041         sprintf(result,"%s!%s@%s",nick,ident,dhost);
    -00042         return result;
    -00043 }
    -00044 
    -00045 
    -00046 char* userrec::GetFullRealHost()
    -00047 {
    -00048         sprintf(result,"%s!%s@%s",nick,ident,host);
    -00049         return result;
    -00050 }
    -00051 
    -00052 bool userrec::IsInvited(char* channel)
    -00053 {
    -00054         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
    -00055         {
    -00056                 if (i->channel) {
    -00057                         if (!strcasecmp(i->channel,channel))
    -00058                         {
    -00059                                 return true;
    -00060                         }
    -00061                 }
    -00062         }
    -00063         return false;
    -00064 }
    -00065 
    -00066 void userrec::InviteTo(char* channel)
    -00067 {
    -00068         Invited i;
    -00069         strcpy(i.channel,channel);
    -00070         invites.push_back(i);
    -00071 }
    -00072 
    -00073 void userrec::RemoveInvite(char* channel)
    -00074 {
    -00075         log(DEBUG,"Removing invites");
    -00076         if (channel)
    -00077         {
    -00078                 if (invites.size())
    -00079                 {
    -00080                         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
    -00081                         {
    -00082                                 if (i->channel)
    -00083                                 {
    -00084                                         if (!strcasecmp(i->channel,channel))
    -00085                                         {
    -00086                                                 invites.erase(i);
    -00087                                                 return;
    -00088                                         }
    -00089                                 }
    -00090                         }
    -00091                 }
    -00092         }
    -00093 }
    -

    Generated on Fri Apr 30 13:23:14 2004 for InspIRCd by +00011 extern std::stringstream config_f; +00012 +00013 userrec::userrec() +00014 { +00015 // the PROPER way to do it, AVOID bzero at *ALL* costs +00016 strcpy(nick,""); +00017 strcpy(ip,"127.0.0.1"); +00018 timeout = 0; +00019 strcpy(ident,""); +00020 strcpy(host,""); +00021 strcpy(dhost,""); +00022 strcpy(fullname,""); +00023 strcpy(modes,""); +00024 strcpy(inbuf,""); +00025 strcpy(server,""); +00026 strcpy(awaymsg,""); +00027 fd = lastping = signon = idle_lastmsg = nping = registered = 0; +00028 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; +00029 haspassed = false; +00030 strcpy(result,""); +00031 for (int i = 0; i < MAXCHANS; i++) +00032 { +00033 this->chans[i].channel = NULL; +00034 this->chans[i].uc_modes = 0; +00035 } +00036 invites.clear(); +00037 } +00038 +00039 +00040 +00041 char* userrec::GetFullHost() +00042 { +00043 sprintf(result,"%s!%s@%s",nick,ident,dhost); +00044 return result; +00045 } +00046 +00047 +00048 char* userrec::GetFullRealHost() +00049 { +00050 sprintf(result,"%s!%s@%s",nick,ident,host); +00051 return result; +00052 } +00053 +00054 bool userrec::IsInvited(char* channel) +00055 { +00056 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00057 { +00058 if (i->channel) { +00059 if (!strcasecmp(i->channel,channel)) +00060 { +00061 return true; +00062 } +00063 } +00064 } +00065 return false; +00066 } +00067 +00068 void userrec::InviteTo(char* channel) +00069 { +00070 Invited i; +00071 strcpy(i.channel,channel); +00072 invites.push_back(i); +00073 } +00074 +00075 void userrec::RemoveInvite(char* channel) +00076 { +00077 log(DEBUG,"Removing invites"); +00078 if (channel) +00079 { +00080 if (invites.size()) +00081 { +00082 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00083 { +00084 if (i->channel) +00085 { +00086 if (!strcasecmp(i->channel,channel)) +00087 { +00088 invites.erase(i); +00089 return; +00090 } +00091 } +00092 } +00093 } +00094 } +00095 } +00096 +00097 bool userrec::HasPermission(char* command) +00098 { +00099 char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF]; +00100 char* myclass; +00101 char* mycmd; +00102 char* savept; +00103 char* savept2; +00104 +00105 // are they even an oper at all? +00106 if (strchr(this->modes,'o')) +00107 { +00108 log(DEBUG,"*** HasPermission: %s is an oper",this->nick); +00109 for (int j =0; j < ConfValueEnum("type",&config_f); j++) +00110 { +00111 ConfValue("type","name",j,TypeName,&config_f); +00112 if (!strcmp(TypeName,this->oper)) +00113 { +00114 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper); +00115 ConfValue("type","classes",j,Classes,&config_f); +00116 char* myclass = strtok_r(Classes," ",&savept); +00117 //myclass = savept; +00118 while (myclass) +00119 { +00120 log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass); +00121 for (int k =0; k < ConfValueEnum("class",&config_f); k++) +00122 { +00123 ConfValue("class","name",k,ClassName,&config_f); +00124 if (!strcmp(ClassName,myclass)) +00125 { +00126 ConfValue("class","commands",k,CommandList,&config_f); +00127 log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList); +00128 +00129 +00130 mycmd = strtok_r(CommandList," ",&savept2); +00131 //mycmd = savept2; +00132 while (mycmd) +00133 { +00134 if (!strcasecmp(mycmd,command)) +00135 { +00136 log(DEBUG,"*** Command %s found, returning true",command); +00137 return true; +00138 } +00139 mycmd = strtok_r(NULL," ",&savept2); +00140 //mycmd = savept2; +00141 } +00142 } +00143 } +00144 myclass = strtok_r(NULL," ",&savept); +00145 //myclass = savept; +00146 } +00147 } +00148 } +00149 } +00150 return false; +00151 } +00152 +00153 +
    Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/users_8cpp.html b/docs/module-doc/users_8cpp.html index 8646eb3cf..183860ca4 100644 --- a/docs/module-doc/users_8cpp.html +++ b/docs/module-doc/users_8cpp.html @@ -24,8 +24,35 @@ Include dependency graph for users.cpp:

    Go to the source code of this file. + +

    Variables

    std::stringstream config_f
    -
    Generated on Fri Apr 30 13:23:23 2004 for InspIRCd by +

    Variable Documentation

    +

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

    + +

    +Definition at line 11 of file users.cpp.

    +


    Generated on Fri Apr 30 15:46:30 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index 2216def0c..0b08c62e1 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -87,26 +87,30 @@ 00132 int flood; 00133 00138 unsigned long timeout; -00139 -00140 userrec(); -00141 -00142 virtual ~userrec() { } -00143 -00148 virtual char* GetFullHost(); -00149 -00155 virtual char* GetFullRealHost(); +00139 +00145 char oper[NICKMAX]; +00146 +00147 userrec(); +00148 +00149 virtual ~userrec() { } +00150 +00155 virtual char* GetFullHost(); 00156 -00159 virtual bool IsInvited(char* channel); -00160 -00163 virtual void InviteTo(char* channel); -00164 -00169 virtual void RemoveInvite(char* channel); -00170 -00171 }; -00172 -00173 -00174 #endif -
    Generated on Fri Apr 30 13:23:14 2004 for InspIRCd by +00162 virtual char* GetFullRealHost(); +00163 +00166 virtual bool IsInvited(char* channel); +00167 +00170 virtual void InviteTo(char* channel); +00171 +00176 virtual void RemoveInvite(char* channel); +00177 +00182 virtual bool HasPermission(char* command); +00183 +00184 }; +00185 +00186 +00187 #endif +
    Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/users_8h.html b/docs/module-doc/users_8h.html index b8444f070..ca67b1ba6 100644 --- a/docs/module-doc/users_8h.html +++ b/docs/module-doc/users_8h.html @@ -250,7 +250,7 @@ Holds a complete list of all channels to which a user has been invited and has n Definition at line 64 of file users.h. -
    Generated on Fri Apr 30 13:23:23 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:31 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/xline_8h-source.html b/docs/module-doc/xline_8h-source.html index 26c2792ba..2f140fba9 100644 --- a/docs/module-doc/xline_8h-source.html +++ b/docs/module-doc/xline_8h-source.html @@ -100,7 +100,7 @@ 00130 #endif 00131 00132 -
    Generated on Fri Apr 30 13:23:14 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:22 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/docs/module-doc/xline_8h.html b/docs/module-doc/xline_8h.html index 346e74952..1ff84faa0 100644 --- a/docs/module-doc/xline_8h.html +++ b/docs/module-doc/xline_8h.html @@ -907,7 +907,7 @@ Include dependency graph for xline.h:

    -
    Generated on Fri Apr 30 13:23:24 2004 for InspIRCd by +
    Generated on Fri Apr 30 15:46:31 2004 for InspIRCd by doxygen1.3-rc3
    diff --git a/src/base.cpp b/src/base.cpp new file mode 100644 index 000000000..7e545694b --- /dev/null +++ b/src/base.cpp @@ -0,0 +1,38 @@ +#include "base.h" +#include "inspircd_config.h" +#include +#include +#include + +bool Extensible::Extend(std::string key, VoidPointer p) +{ + // only add an item if it doesnt already exist + if (this->Extension_Items.find(key) == this->Extension_Items.end()) + { + this->Extension_Items[key] == p; + return true; + } + // item already exists, return false + return false; +} + +bool Extensible::Shrink(std::string key) +{ + // only attempt to remove a map item that exists + if (this->Extension_Items.find(key) != this->Extension_Items.end()) + { + this->Extension_Items.erase(this->Extension_Items.find(key)); + return true; + } + return false; +} + +VoidPointer Extensible::GetExt(std::string key) +{ + if (this->Extension_Items.find(key) != this->Extension_Items.end()) + { + return (this->Extension_Items.find(key))->second; + } + return NULL; +} + -- cgit v1.2.3