From 1899777c6d86544a7775bc96175283957a763326 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 30 Apr 2004 14:47:34 +0000 Subject: Added base.cpp, fixed documentation for userrec::HasPermission git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@757 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/users_8cpp-source.html | 230 +++++++++++++++++++++------------ 1 file changed, 145 insertions(+), 85 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 088c5ffe4..d6aca8a62 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -7,7 +7,7 @@
00001 /* -00002 +00002 Manages userrec objects 00003 */ 00004 00005 #include "inspircd_config.h" @@ -16,90 +16,150 @@ 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 strcpy(ip,"127.0.0.1"); -00016 timeout = 0; -00017 strcpy(ident,""); -00018 strcpy(host,""); -00019 strcpy(dhost,""); -00020 strcpy(fullname,""); -00021 strcpy(modes,""); -00022 strcpy(inbuf,""); -00023 strcpy(server,""); -00024 strcpy(awaymsg,""); -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 this->chans[i].channel = NULL; -00032 this->chans[i].uc_modes = 0; -00033 } -00034 invites.clear(); -00035 } -00036 -00037 -00038 -00039 char* userrec::GetFullHost() -00040 { -00041 sprintf(result,"%s!%s@%s",nick,ident,dhost); -00042 return result; -00043 } -00044 -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 } -
1.3-rc3
--
cgit v1.3.1-10-gc9f91