From afb51347b493a6ab54fcc8595b4a3f46972ce18f Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 17 Apr 2004 12:33:39 +0000 Subject: Added new documentation to cover ircd_connector git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@629 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/users_8cpp-source.html | 127 +++++++++++++++++---------------- 1 file changed, 66 insertions(+), 61 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 a30869ad5..83057ad04 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -20,7 +20,7 @@ 00012 { 00013 // the PROPER way to do it, AVOID bzero at *ALL* costs 00014 strcpy(nick,""); -00015 ip = 0; +00015 ip = 0; 00016 timeout = 0; 00017 strcpy(ident,""); 00018 strcpy(host,""); @@ -30,71 +30,76 @@ 00022 strcpy(inbuf,""); 00023 strcpy(server,""); 00024 strcpy(awaymsg,""); -00025 fd = lastping = signon = idle_lastmsg = nping = registered = 0; -00026 port = bytes_in = bytes_out = cmds_in = cmds_out = 0; -00027 haspassed = false; +00025 fd = lastping = signon = idle_lastmsg = nping = registered = 0; +00026 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0; +00027 haspassed = false; 00028 strcpy(result,""); 00029 for (int i = 0; i < MAXCHANS; i++) 00030 { -00031 chans[i].channel = NULL; -00032 } -00033 invites.clear(); -00034 } -00035 +00031 this->chans[i].channel = NULL; +00032 this->chans[i].uc_modes = 0; +00033 } +00034 invites.clear(); +00035 } 00036 -00037 -00038 char* userrec::GetFullHost() -00039 { -00040 sprintf(result,"%s!%s@%s",nick,ident,dhost); -00041 return result; -00042 } -00043 +00037 +00038 +00039 char* userrec::GetFullHost() +00040 { +00041 sprintf(result,"%s!%s@%s",nick,ident,dhost); +00042 return result; +00043 } 00044 -00045 char* userrec::GetFullRealHost() -00046 { -00047 sprintf(result,"%s!%s@%s",nick,ident,host); -00048 return result; -00049 } -00050 -00051 bool userrec::IsInvited(char* channel) -00052 { -00053 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -00054 { -00055 if (i->channel) { -00056 if (!strcasecmp(i->channel,channel)) -00057 { -00058 return true; -00059 } -00060 } -00061 } -00062 return false; -00063 } -00064 -00065 void userrec::InviteTo(char* channel) -00066 { -00067 Invited i; -00068 strcpy(i.channel,channel); -00069 invites.push_back(i); -00070 } -00071 -00072 void userrec::RemoveInvite(char* channel) -00073 { -00074 log(DEBUG,"Removing invites"); -00075 if (invites.size()) -00076 { -00077 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -00078 { -00079 if (i->channel) { -00080 if (!strcasecmp(i->channel,channel)) -00081 { -00082 invites.erase(i); -00083 return; -00084 } -00085 } -00086 } -00087 } -00088 } -
Generated on Thu Apr 8 19:12:28 2004 for InspIRCd by +00045 +00046 char* userrec::GetFullRealHost() +00047 { +00048 sprintf(result,"%s!%s@%s",nick,ident,host); +00049 return result; +00050 } +00051 +00052 bool userrec::IsInvited(char* channel) +00053 { +00054 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00055 { +00056 if (i->channel) { +00057 if (!strcasecmp(i->channel,channel)) +00058 { +00059 return true; +00060 } +00061 } +00062 } +00063 return false; +00064 } +00065 +00066 void userrec::InviteTo(char* channel) +00067 { +00068 Invited i; +00069 strcpy(i.channel,channel); +00070 invites.push_back(i); +00071 } +00072 +00073 void userrec::RemoveInvite(char* channel) +00074 { +00075 log(DEBUG,"Removing invites"); +00076 if (channel) +00077 { +00078 if (invites.size()) +00079 { +00080 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00081 { +00082 if (i->channel) +00083 { +00084 if (!strcasecmp(i->channel,channel)) +00085 { +00086 invites.erase(i); +00087 return; +00088 } +00089 } +00090 } +00091 } +00092 } +00093 } +
Generated on Sat Apr 17 13:31:38 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.2.3