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.
-Definition at line 89 of file users.h.
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 thDefinition 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
@@ -382,7 +387,7 @@ Adds a channel to a users invite list (invites them to a channel).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 }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 toDefinition 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. +
+
+
++ ++ ++
++ unsigned long userrec::pingmax + +
+ ++ + ++ + ++Number of seconds between PINGs for this user (set from <connect:allow> tag. +
+ +
@@ -828,7 +885,7 @@ Stores the result of the last GetFullHost or GetRealHost call. @@ -856,7 +913,7 @@ The server the user is connected to.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().
-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 by1.3.3