From 08e384bb24398224856c44baa51b51977644de9d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 9 Feb 2003 12:49:00 +0000 Subject: Documentation update, 09/02/03 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@167 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/users_8cpp-source.html | 170 +++++++++++++++------------------ 1 file changed, 76 insertions(+), 94 deletions(-) (limited to 'docs/module-doc/users_8cpp-source.html') diff --git a/docs/module-doc/users_8cpp-source.html b/docs/module-doc/users_8cpp-source.html index ea0572d24..96133e230 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -8,100 +8,82 @@ Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

users.cpp

Go to the documentation of this file.
00001 /*
 00002 
-00003 $Log$
-00003 Revision 1.5  2003/01/27 00:28:57  brain
-00003 ...
-00003 
-00004 Revision 1.1.1.1  2003/01/23 19:45:58  brain
-00005 InspIRCd second source tree
-00006 
-00007 Revision 1.3  2003/01/17 13:21:38  brain
-00008 Added CONNECT ALLOW and CONNECT DENY config tags
-00009 Added PASS command
-00010 
-00011 Revision 1.2  2003/01/17 10:37:55  brain
-00012 Added /INVITE command and relevent structures
-00013 
-00014 Revision 1.1  2003/01/16 01:10:04  brain
-00015 forgot to add this
-00016 
-00017 
-00018 */
-00019 
-00020 #include "inspircd_config.h" 
-00021 #include "channels.h"
-00022 #include "users.h"
-00023 #include "inspircd.h"
-00024 #include <stdio.h>
-00025 
-00026 userrec::userrec()
-00027 {
-00028         // the PROPER way to do it, AVOID bzero at *ALL* costs
-00029         strcpy(nick,"");
-00030         ip = 0;
-00031         strcpy(ident,"");
-00032         strcpy(host,"");
-00033         strcpy(dhost,"");
-00034         strcpy(fullname,"");
-00035         strcpy(modes,"");
-00036         strcpy(inbuf,"");
-00037         strcpy(server,"");
-00038         strcpy(awaymsg,"");
-00039         fd = lastping = signon = idle_lastmsg = nping = registered = 0;
-00040         port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
-00041         haspassed = false;
-00042         strcpy(result,"");
-00043         for (int i = 0; i < MAXCHANS; i++)
-00044         {
-00045                 chans[i].channel = NULL;
-00046         }
-00047         invites.clear();
-00048 }
-00049 
-00050  
-00051 char* userrec::GetFullHost()
-00052 {
-00053         sprintf(result,"%s!%s@%s",nick,ident,dhost);
-00054         return result;
-00055 }
-00056 
-00057 
-00058 char* userrec::GetFullRealHost()
-00059 {
-00060         sprintf(result,"%s!%s@%s",nick,ident,host);
-00061         return result;
-00062 }
-00063 
-00064 bool userrec::IsInvited(char* channel)
-00065 {
-00066         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
-00067         {
-00068                 if (!strcasecmp(i->channel,channel))
-00069                 {
-00070                         return true;
-00071                 }
-00072         }
-00073 }
-00074 
-00075 void userrec::InviteTo(char* channel)
-00076 {
-00077         Invited i;
-00078         strcpy(i.channel,channel);
-00079         invites.push_back(i);
-00080 }
-00081 
-00082 void userrec::RemoveInvite(char* channel)
-00083 {
-00084         for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
-00085         {
-00086                 if (!strcasecmp(i->channel,channel))
-00087                 {
-00088                         invites.erase(i);
-00089                         return;
-00090                 }
-00091         }
-00092 }
-

Generated on Mon Jan 27 00:23:11 2003 for InspIRCd by +00003 */ +00004 +00005 #include "inspircd_config.h" +00006 #include "channels.h" +00007 #include "users.h" +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 ip = 0; +00016 strcpy(ident,""); +00017 strcpy(host,""); +00018 strcpy(dhost,""); +00019 strcpy(fullname,""); +00020 strcpy(modes,""); +00021 strcpy(inbuf,""); +00022 strcpy(server,""); +00023 strcpy(awaymsg,""); +00024 fd = lastping = signon = idle_lastmsg = nping = registered = 0; +00025 port = bytes_in = bytes_out = cmds_in = cmds_out = 0; +00026 haspassed = false; +00027 strcpy(result,""); +00028 for (int i = 0; i < MAXCHANS; i++) +00029 { +00030 chans[i].channel = NULL; +00031 } +00032 invites.clear(); +00033 } +00034 +00035 +00036 char* userrec::GetFullHost() +00037 { +00038 sprintf(result,"%s!%s@%s",nick,ident,dhost); +00039 return result; +00040 } +00041 +00042 +00043 char* userrec::GetFullRealHost() +00044 { +00045 sprintf(result,"%s!%s@%s",nick,ident,host); +00046 return result; +00047 } +00048 +00049 bool userrec::IsInvited(char* channel) +00050 { +00051 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00052 { +00053 if (!strcasecmp(i->channel,channel)) +00054 { +00055 return true; +00056 } +00057 } +00058 } +00059 +00060 void userrec::InviteTo(char* channel) +00061 { +00062 Invited i; +00063 strcpy(i.channel,channel); +00064 invites.push_back(i); +00065 } +00066 +00067 void userrec::RemoveInvite(char* channel) +00068 { +00069 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00070 { +00071 if (!strcasecmp(i->channel,channel)) +00072 { +00073 invites.erase(i); +00074 return; +00075 } +00076 } +00077 } +
Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by doxygen1.3-rc2
-- cgit v1.2.3