X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=docs%2Fmodule-doc%2Fclassuserrec.html;h=0e698ae749dc5e3bba739f7e3a3fc8a1a7e4af70;hb=5a2675d174e661c55843b3795afe2d688e7197f9;hp=849d914eb2030c58e4a39ca5cb06d41868979e23;hpb=755d67224f033aaa9b4ef3d2dd00f46bb8c19dc2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index 849d914eb..0e698ae74 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -76,6 +76,12 @@ Inherits connection. bool dns_done  True when DNS lookups are completed.

+unsigned long pingmax + + Number of seconds between PINGs for this user (set from <connect:allow> tag.


+char password [MAXBUF] + + Password specified by the user when they registered.



Private Attributes

InvitedList invites @@ -88,7 +94,7 @@ Everything about a connection is stored here primarily, from the user's socket I

-Definition at line 89 of file users.h.


Constructor & Destructor Documentation

+Definition at line 93 of file users.h.

Constructor & Destructor Documentation

@@ -118,7 +124,7 @@ Definition at line 89 of fi

Definition at line 28 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, connection::inbuf, invites, connection::ip, connection::lastping, modes, nick, connection::nping, oper, connection::port, connection::registered, result, server, connection::signon, 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, connection::inbuf, invites, connection::ip, connection::lastping, modes, nick, connection::nping, oper, connection::port, connection::registered, result, server, connection::signon, timeout, and ucrec::uc_modes.

00029 {
 00030         // the PROPER way to do it, AVOID bzero at *ALL* costs
@@ -176,9 +182,9 @@ References awaymsg, 
 
 

-Definition at line 164 of file users.h. +Definition at line 178 of file users.h.

-

00164 {  }
+
00178 {  }
 
@@ -214,7 +220,7 @@ Returns the full displayed host of the user This member function returns the hos

Definition at line 58 of file users.cpp.

-References dhost, ident, nick, and result. +References dhost, ident, nick, and result.

00059 {
 00060         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,dhost);
@@ -254,7 +260,7 @@ If any form of hostname cloaking is in operation, e.g. through a module, then th
 

Definition at line 65 of file users.cpp.

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

00066 {
 00067         snprintf(result,MAXBUF,"%s!%s@%s",nick,ident,host);
@@ -299,54 +305,53 @@ References config_f, a
 

00115 {
 00116         char TypeName[MAXBUF],Classes[MAXBUF],ClassName[MAXBUF],CommandList[MAXBUF];
-00117         char* myclass;
-00118         char* mycmd;
-00119         char* savept;
-00120         char* savept2;
-00121         
-00122         // are they even an oper at all?
-00123         if (strchr(this->modes,'o'))
-00124         {
-00125                 log(DEBUG,"*** HasPermission: %s is an oper",this->nick);
-00126                 for (int j =0; j < ConfValueEnum("type",&config_f); j++)
-00127                 {
-00128                         ConfValue("type","name",j,TypeName,&config_f);
-00129                         if (!strcmp(TypeName,this->oper))
-00130                         {
-00131                                 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper);
-00132                                 ConfValue("type","classes",j,Classes,&config_f);
-00133                                 char* myclass = strtok_r(Classes," ",&savept);
-00134                                 while (myclass)
-00135                                 {
-00136                                         log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass);
-00137                                         for (int k =0; k < ConfValueEnum("class",&config_f); k++)
-00138                                         {
-00139                                                 ConfValue("class","name",k,ClassName,&config_f);
-00140                                                 if (!strcmp(ClassName,myclass))
-00141                                                 {
-00142                                                         ConfValue("class","commands",k,CommandList,&config_f);
-00143                                                         log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList);
+00117         char* mycmd;
+00118         char* savept;
+00119         char* savept2;
+00120         
+00121         // are they even an oper at all?
+00122         if (strchr(this->modes,'o'))
+00123         {
+00124                 log(DEBUG,"*** HasPermission: %s is an oper",this->nick);
+00125                 for (int j =0; j < ConfValueEnum("type",&config_f); j++)
+00126                 {
+00127                         ConfValue("type","name",j,TypeName,&config_f);
+00128                         if (!strcmp(TypeName,this->oper))
+00129                         {
+00130                                 log(DEBUG,"*** HasPermission: %s is an oper of type '%s'",this->nick,this->oper);
+00131                                 ConfValue("type","classes",j,Classes,&config_f);
+00132                                 char* myclass = strtok_r(Classes," ",&savept);
+00133                                 while (myclass)
+00134                                 {
+00135                                         log(DEBUG,"*** HasPermission: checking classtype '%s'",myclass);
+00136                                         for (int k =0; k < ConfValueEnum("class",&config_f); k++)
+00137                                         {
+00138                                                 ConfValue("class","name",k,ClassName,&config_f);
+00139                                                 if (!strcmp(ClassName,myclass))
+00140                                                 {
+00141                                                         ConfValue("class","commands",k,CommandList,&config_f);
+00142                                                         log(DEBUG,"*** HasPermission: found class named %s with commands: '%s'",ClassName,CommandList);
+00143                                                         
 00144                                                         
-00145                                                         
-00146                                                         mycmd = strtok_r(CommandList," ",&savept2);
-00147                                                         while (mycmd)
-00148                                                         {
-00149                                                                 if (!strcasecmp(mycmd,command))
-00150                                                                 {
-00151                                                                         log(DEBUG,"*** Command %s found, returning true",command);
-00152                                                                         return true;
-00153                                                                 }
-00154                                                                 mycmd = strtok_r(NULL," ",&savept2);
-00155                                                         }
-00156                                                 }
-00157                                         }
-00158                                         myclass = strtok_r(NULL," ",&savept);
-00159                                 }
-00160                         }
-00161                 }
-00162         }
-00163         return false;
-00164 }
+00145                                                         mycmd = strtok_r(CommandList," ",&savept2);
+00146                                                         while (mycmd)
+00147                                                         {
+00148                                                                 if (!strcasecmp(mycmd,command))
+00149                                                                 {
+00150                                                                         log(DEBUG,"*** Command %s found, returning true",command);
+00151                                                                         return true;
+00152                                                                 }
+00153                                                                 mycmd = strtok_r(NULL," ",&savept2);
+00154                                                         }
+00155                                                 }
+00156                                         }
+00157                                         myclass = strtok_r(NULL," ",&savept);
+00158                                 }
+00159                         }
+00160                 }
+00161         }
+00162         return false;
+00163 }
 
@@ -382,7 +387,7 @@ Adds a channel to a users invite list (invites them to a channel).

Definition at line 85 of file users.cpp.

-References Invited::channel, and invites. +References Invited::channel, and invites.

00086 {
 00087         Invited i;
@@ -424,7 +429,7 @@ Returns true if a user is invited to a channel.
 

Definition at line 71 of file users.cpp.

-References invites. +References invites.

00072 {
 00073         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
@@ -473,7 +478,7 @@ This member function is called on successfully joining an invite only channel to
 

Definition at line 92 of file users.cpp.

-References DEBUG, and invites. +References DEBUG, and invites.

00093 {
 00094         log(DEBUG,"Removing invites");
@@ -522,7 +527,7 @@ The user's away message.
 

If this string is empty, the user is not marked as away.

-Definition at line 132 of file users.h. +Definition at line 136 of file users.h.

Referenced by userrec(). @@ -548,9 +553,9 @@ Referenced by userrec().

-Definition at line 123 of file users.h. +Definition at line 127 of file users.h.

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

@@ -576,7 +581,7 @@ The host displayed to non-opers (used for cloaking etc).

This usually matches the value of userrec::host.

-Definition at line 111 of file users.h. +Definition at line 115 of file users.h.

Referenced by GetFullHost(), and userrec(). @@ -604,7 +609,7 @@ True when DNS lookups are completed.

-Definition at line 160 of file users.h. +Definition at line 164 of file users.h.

Referenced by userrec(). @@ -632,7 +637,7 @@ Number of lines the user can place into the buffer (up to the global NetBufferSi

-Definition at line 143 of file users.h. +Definition at line 147 of file users.h.

Referenced by userrec(). @@ -660,7 +665,7 @@ The users full name.

-Definition at line 115 of file users.h. +Definition at line 119 of file users.h.

Referenced by userrec(). @@ -688,9 +693,9 @@ The users ident reply.

-Definition at line 106 of file users.h. +Definition at line 110 of file users.h.

-Referenced by GetFullHost(), GetFullRealHost(), and userrec(). +Referenced by GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), userrec(), and Server::UserToPseudo().

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

-Definition at line 95 of file users.h. +Definition at line 99 of file users.h.

Referenced by InviteTo(), IsInvited(), RemoveInvite(), and userrec(). @@ -744,7 +749,7 @@ The user's mode string.

This may contain any of the following RFC characters: o, w, s, i Your module may define other mode characters as it sees fit.

-Definition at line 121 of file users.h. +Definition at line 125 of file users.h.

Referenced by userrec(). @@ -772,9 +777,9 @@ The users nickname.

An invalid nickname indicates an unregistered connection prior to the NICK command.

-Definition at line 102 of file users.h. +Definition at line 106 of file users.h.

-Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::QuitUser(), and userrec(). +Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), Server::QuitUser(), and userrec().

@@ -800,11 +805,63 @@ 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 156 of file users.h. +Definition at line 160 of file users.h.

Referenced by userrec(). +

+ + + + +
+ + +
char userrec::password[MAXBUF] +
+
+ + + + + +
+   + + +

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

+Definition at line 174 of file users.h.

+

+ + + + +
+ + +
unsigned long userrec::pingmax +
+
+ + + + + +
+   + + +

+Number of seconds between PINGs for this user (set from <connect:allow> tag. +

+ +

+Definition at line 168 of file users.h.

@@ -828,7 +885,7 @@ Stores the result of the last GetFullHost or GetRealHost call.

You may use this to increase the speed of use of this class.

-Definition at line 137 of file users.h. +Definition at line 141 of file users.h.

Referenced by GetFullHost(), GetFullRealHost(), and userrec().

@@ -856,7 +913,7 @@ The server the user is connected to.

-Definition at line 127 of file users.h. +Definition at line 131 of file users.h.

Referenced by userrec(). @@ -884,14 +941,14 @@ Number of seconds this user is given to send USER/NICK If they do not send their

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

Referenced by userrec().


The documentation for this class was generated from the following files: -
Generated on Thu Apr 7 20:14:27 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:52 2005 for InspIRCd by doxygen 1.3.3