5 #include "inspircd_config.h"
13 // the PROPER way to do it, AVOID bzero at *ALL* costs
25 fd = lastping = signon = idle_lastmsg = nping = registered = 0;
26 flood = port = bytes_in = bytes_out = cmds_in = cmds_out = 0;
29 for (int i = 0; i < MAXCHANS; i++)
31 chans[i].channel = NULL;
38 char* userrec::GetFullHost()
40 sprintf(result,"%s!%s@%s",nick,ident,dhost);
45 char* userrec::GetFullRealHost()
47 sprintf(result,"%s!%s@%s",nick,ident,host);
51 bool userrec::IsInvited(char* channel)
53 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
56 if (!strcasecmp(i->channel,channel))
65 void userrec::InviteTo(char* channel)
68 strcpy(i.channel,channel);
72 void userrec::RemoveInvite(char* channel)
74 log(DEBUG,"Removing invites");
79 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
83 if (!strcasecmp(i->channel,channel))