X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=docs%2Fmodule-doc%2Fclassuserrec.html;h=0e698ae749dc5e3bba739f7e3a3fc8a1a7e4af70;hb=5a2675d174e661c55843b3795afe2d688e7197f9;hp=3f57a81a6caf0ed72b7b2f89ee9cd9ca812eaf6d;hpb=df2a0e34e2d23028881c8a3f3c9f21346cde4e80;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/docs/module-doc/classuserrec.html b/docs/module-doc/classuserrec.html index 3f57a81a6..0e698ae74 100644 --- a/docs/module-doc/classuserrec.html +++ b/docs/module-doc/classuserrec.html @@ -79,6 +79,9 @@ Inherits connection.
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 @@ -179,9 +182,9 @@ References awaymsg,-Definition at line 172 of file users.h. +Definition at line 178 of file users.h.
-
00172 { } +@@ -257,7 +260,7 @@ If any form of hostname cloaking is in operation, e.g. through a module, then th00178 { }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); @@ -302,54 +305,53 @@ References config_f, a
@@ -553,7 +555,7 @@ Referenced by userrec().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 127 of file users.h.
-Referenced by Server::PseudoToUser(), and userrec(). +Referenced by Server::PseudoToUser(), and userrec().
@@ -693,7 +695,7 @@ The users ident reply.
Definition at line 110 of file users.h.
-Referenced by GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), userrec(), and Server::UserToPseudo(). +Referenced by GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), userrec(), and Server::UserToPseudo().
@@ -777,7 +779,7 @@ An invalid nickname indicates an unregistered connection prior to the NICK comma
Definition at line 106 of file users.h.
-Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), Server::QuitUser(), and userrec(). +Referenced by ConfigReader::DumpErrors(), GetFullHost(), GetFullRealHost(), Server::PseudoToUser(), Server::QuitUser(), and userrec().
@@ -808,6 +810,32 @@ Definition at line 160 of f 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. +
@@ -920,7 +948,7 @@ Referenced by userrec().
The documentation for this class was generated from the following files: -
Generated on Fri Apr 15 14:50:52 2005 for InspIRCd by +
Generated on Tue Apr 26 17:11:52 2005 for InspIRCd by 1.3.3