4 Revision 1.1 2003/01/23 19:45:58 brain
7 Revision 1.3 2003/01/17 13:21:38 brain
8 Added CONNECT ALLOW and CONNECT DENY config tags
11 Revision 1.2 2003/01/17 10:37:55 brain
12 Added /INVITE command and relevent structures
14 Revision 1.1 2003/01/16 01:10:04 brain
20 #include "inspircd_config.h"
28 // the PROPER way to do it, AVOID bzero at *ALL* costs
39 fd = lastping = signon = idle_lastmsg = nping = registered = 0;
40 port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
43 for (int i = 0; i < MAXCHANS; i++)
45 chans[i].channel = NULL;
51 char* userrec::GetFullHost()
53 sprintf(result,"%s!%s@%s",nick,ident,dhost);
58 char* userrec::GetFullRealHost()
60 sprintf(result,"%s!%s@%s",nick,ident,host);
64 bool userrec::IsInvited(char* channel)
66 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
68 if (!strcasecmp(i->channel,channel))
75 void userrec::InviteTo(char* channel)
78 strcpy(i.channel,channel);
82 void userrec::RemoveInvite(char* channel)
84 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
86 if (!strcasecmp(i->channel,channel))