From 1d994c544474da53159257d9097997c0744a48a5 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 6 Apr 2004 10:43:34 +0000 Subject: Added support for SVS-style Server class methods for modules git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@400 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/users_8cpp-source.html | 143 +++++++++++++++++---------------- 1 file changed, 72 insertions(+), 71 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 307ca5fa1..2a71381c2 100644 --- a/docs/module-doc/users_8cpp-source.html +++ b/docs/module-doc/users_8cpp-source.html @@ -21,78 +21,79 @@ 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 +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 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 +00036 +00037 char* userrec::GetFullHost() +00038 { +00039 sprintf(result,"%s!%s@%s",nick,ident,dhost); +00040 return result; +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 (i->channel) { -00054 if (!strcasecmp(i->channel,channel)) -00055 { -00056 return true; -00057 } -00058 } -00059 } -00060 return false; -00061 } -00062 -00063 void userrec::InviteTo(char* channel) -00064 { -00065 Invited i; -00066 strcpy(i.channel,channel); -00067 invites.push_back(i); -00068 } -00069 -00070 void userrec::RemoveInvite(char* channel) -00071 { -00072 log(DEBUG,"Removing invites"); -00073 if (invites.size()) -00074 { -00075 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) -00076 { -00077 if (i->channel) { -00078 if (!strcasecmp(i->channel,channel)) -00079 { -00080 invites.erase(i); -00081 return; -00082 } -00083 } -00084 } -00085 } -00086 } -
Generated on Mon Apr 5 02:03:52 2004 for InspIRCd by +00043 +00044 char* userrec::GetFullRealHost() +00045 { +00046 sprintf(result,"%s!%s@%s",nick,ident,host); +00047 return result; +00048 } +00049 +00050 bool userrec::IsInvited(char* channel) +00051 { +00052 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00053 { +00054 if (i->channel) { +00055 if (!strcasecmp(i->channel,channel)) +00056 { +00057 return true; +00058 } +00059 } +00060 } +00061 return false; +00062 } +00063 +00064 void userrec::InviteTo(char* channel) +00065 { +00066 Invited i; +00067 strcpy(i.channel,channel); +00068 invites.push_back(i); +00069 } +00070 +00071 void userrec::RemoveInvite(char* channel) +00072 { +00073 log(DEBUG,"Removing invites"); +00074 if (invites.size()) +00075 { +00076 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) +00077 { +00078 if (i->channel) { +00079 if (!strcasecmp(i->channel,channel)) +00080 { +00081 invites.erase(i); +00082 return; +00083 } +00084 } +00085 } +00086 } +00087 } +
Generated on Tue Apr 6 11:42:30 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.3.1-10-gc9f91