5 #include "inspircd_config.h"
13 // the PROPER way to do it, AVOID bzero at *ALL* costs
24 fd = lastping = signon = idle_lastmsg = nping = registered = 0;
25 port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
28 for (int i = 0; i < MAXCHANS; i++)
30 chans[i].channel = NULL;
36 char* userrec::GetFullHost()
38 sprintf(result,"%s!%s@%s",nick,ident,dhost);
43 char* userrec::GetFullRealHost()
45 sprintf(result,"%s!%s@%s",nick,ident,host);
49 bool userrec::IsInvited(char* channel)
51 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
54 if (!strcasecmp(i->channel,channel))
63 void userrec::InviteTo(char* channel)
66 strcpy(i.channel,channel);
70 void userrec::RemoveInvite(char* channel)
72 log(DEBUG,"Removing invites");
75 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
78 if (!strcasecmp(i->channel,channel))