X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=docs%2Fmodule-doc%2Fchannels_8h-source.html;h=6d1312c539c050f9eb33e9f2582dc79204dbd068;hb=5a2675d174e661c55843b3795afe2d688e7197f9;hp=2d618ec6a040bd3d7a4deb990617f2467fd988d3;hpb=d9b89849e032c9b114136274bdcb8be698e9a71c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/docs/module-doc/channels_8h-source.html b/docs/module-doc/channels_8h-source.html index 2d618ec6a..6d1312c53 100644 --- a/docs/module-doc/channels_8h-source.html +++ b/docs/module-doc/channels_8h-source.html @@ -1,151 +1,163 @@ -channels.h Source File - +InspIRCd: channels.h Source File + - -
-Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  
-

channels.h

Go to the documentation of this file.
00001 /*
-00002 
-00003 $Log$
-00003 Revision 1.4  2003/01/27 00:22:39  brain
-00003 Modified documentation
-00003 
-00004 Revision 1.2  2003/01/26 23:52:59  brain
-00005 Modified documentation for base classes
-00006 Added base classes
-00007 
-00008 Revision 1.1.1.1  2003/01/23 19:45:58  brain
-00009 InspIRCd second source tree
-00010 
-00011 Revision 1.7  2003/01/22 00:44:26  brain
-00012 Added documentation comments
-00013 
-00014 Revision 1.6  2003/01/21 21:11:17  brain
-00015 Added documentation
-00016 
-00017 Revision 1.5  2003/01/16 20:11:55  brain
-00018 fixed some ugly pointer bugs (thanks dblack and a|KK|y!)
-00019 
-00020 Revision 1.4  2003/01/15 22:47:44  brain
-00021 Changed user and channel structs to classes (finally)
-00022 
-00023    
-00024 */
-00025 
-00026 #include "inspircd_config.h"
-00027 #include "base.h"
-00028 #include <time.h>
-00029 #include <vector>
-00030 
-00031 #ifndef __CHANNELS_H__
-00032 #define __CHANNELS_H__
-00033 
-00037 class HostItem : public classbase
-00038 {
-00039  public:
-00040         time_t set_time;
-00041         char set_by[NICKMAX];
-00042         char data[MAXBUF];
-00043 
-00044         HostItem() { /* stub */ }
-00045         virtual ~HostItem() { /* stub */ }
-00046 };
-00047 
-00048 // banlist is inherited from HostList mainly for readability
-00049 // reasons only
+
+
+

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 
+00029 class HostItem : public classbase
+00030 {
+00031  public:
+00032         time_t set_time;
+00033         char set_by[NICKMAX];
+00034         char data[MAXBUF];
+00035 
+00036         HostItem() { /* stub */ }
+00037         virtual ~HostItem() { /* stub */ }
+00038 };
+00039 
+00040 // banlist is inherited from HostList mainly for readability
+00041 // reasons only
+00042 
+00045 class BanItem : public HostItem
+00046 {
+00047 };
+00048 
+00049 // same with this...
 00050 
-00053 class BanItem : public HostItem
+00053 class ExemptItem : public HostItem
 00054 {
 00055 };
 00056 
-00057 // same with this...
+00057 // and this...
 00058 
-00061 class ExemptItem : public HostItem
+00061 class InviteItem : public HostItem
 00062 {
 00063 };
 00064 
-00065 // and this...
-00066 
-00069 class InviteItem : public HostItem
-00070 {
-00071 };
-00072 
-00073 
-00076 typedef vector<BanItem>         BanList;
+00065 
+00070 class ModeParameter : public classbase
+00071 {
+00072  public:
+00073         char mode;
+00074         char parameter[MAXBUF];
+00075         char channel[CHANMAX];
+00076 };
 00077 
-00080 typedef vector<ExemptItem>      ExemptList;
+00080 typedef std::vector<BanItem>    BanList;
 00081 
-00084 typedef vector<InviteItem>      InviteList;
+00084 typedef std::vector<ExemptItem> ExemptList;
 00085 
-00090 class chanrec : public classbase
-00091 {
-00092  public:
-00095         char name[CHANMAX]; /* channel name */
-00099         char custom_modes[MAXMODES];     /* modes handled by modules */
-00103         char topic[MAXBUF];
-00106         time_t created;
-00110         time_t topicset;
-00114         char setby[NICKMAX];
-00115 
-00119         long limit;
-00120         
-00124         char key[32];
-00125         
-00128         short int topiclock;
-00129         
-00132         short int noexternal;
-00133         
-00136         short int inviteonly;
-00137         
-00140         short int moderated;
-00141         
-00145         short int secret;
-00146         
-00150         short int c_private;
+00088 typedef std::vector<InviteItem> InviteList;
+00089 
+00094 class chanrec : public Extensible
+00095 {
+00096  public:
+00099         char name[CHANMAX]; /* channel name */
+00103         char custom_modes[MAXMODES];     /* modes handled by modules */
+00104 
+00107         long users;
+00108 
+00112         std::vector<char*> internal_userlist;
+00113         
+00117         char topic[MAXBUF];
+00120         time_t created;
+00124         time_t topicset;
+00128         char setby[NICKMAX];
+00129 
+00133         long limit;
+00134         
+00138         char key[32];
+00139         
+00142         short int topiclock;
+00143         
+00146         short int noexternal;
+00147         
+00150         short int inviteonly;
 00151         
-00154         BanList bans;
-00155 
-00158         chanrec()
-00159         {
-00160                 strcpy(name,"");
-00161                 strcpy(custom_modes,"");
-00162                 strcpy(topic,"");
-00163                 strcpy(setby,"");
-00164                 strcpy(key,"");
-00165                 created = topicset = limit = 0;
-00166                 topiclock = noexternal = inviteonly = moderated = secret = c_private = false;
-00167         }
-00168 
-00169         virtual ~chanrec() { /* stub */ }
-00170 };
-00171 
-00172 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o
-00173  * needs to come AFTER struct chanrec */
-00174 
-00175 #define UCMODE_OP      1
-00176 #define UCMODE_VOICE   2
-00177 #define UCMODE_HOP     4
-00178 #define UCMODE_PROTECT 8
-00179 #define UCMODE_FOUNDER 16
-00180  
-00186 class ucrec : public classbase
-00187 {
-00188  public:
-00192         long uc_modes;
-00193         
-00197         chanrec *channel;
-00198 
-00199         ucrec() { /* stub */ }
-00200         virtual ~ucrec() { /* stub */ }
-00201 };
-00202 
-00203 #endif
-00204 
-

Generated on Mon Jan 27 00:16:40 2003 for InspIRCd by +00154 short int moderated; +00155 +00159 short int secret; +00160 +00164 short int c_private; +00165 +00168 BanList bans; +00169 +00172 void SetCustomMode(char mode,bool mode_on); +00173 +00176 void SetCustomModeParam(char mode,char* parameter,bool mode_on); +00177 +00180 bool IsCustomModeSet(char mode); +00181 +00188 std::string GetModeParameter(char mode); +00189 +00195 void IncUserCounter(); +00196 +00204 void DecUserCounter(); +00205 +00211 long GetUserCounter(); +00212 +00218 void AddUser(char* castuser); +00219 +00225 void DelUser(char* castuser); +00226 +00234 std::vector<char*> *GetUsers(); +00235 +00238 chanrec(); +00239 +00240 virtual ~chanrec() { /* stub */ } +00241 }; +00242 +00243 /* used to hold a channel and a users modes on that channel, e.g. +v, +h, +o +00244 * needs to come AFTER struct chanrec */ +00245 +00246 #define UCMODE_OP 1 +00247 #define UCMODE_VOICE 2 +00248 #define UCMODE_HOP 4 +00249 #define UCMODE_PROTECT 8 +00250 #define UCMODE_FOUNDER 16 +00251 +00257 class ucrec : public classbase +00258 { +00259 public: +00263 long uc_modes; +00264 +00268 chanrec *channel; +00269 +00270 ucrec() { /* stub */ } +00271 virtual ~ucrec() { /* stub */ } +00272 }; +00273 +00274 #endif +00275 +

Generated on Tue Apr 26 17:11:43 2005 for InspIRCd by -doxygen1.3-rc2
+doxygen +1.3.3