5 #include "inspircd_config.h"
13 // the PROPER way to do it, AVOID bzero at *ALL* costs
15 strcpy(ip,"127.0.0.1");
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 this->chans[i].channel = NULL;
32 this->chans[i].uc_modes = 0;
39 char* userrec::GetFullHost()
41 sprintf(result,"%s!%s@%s",nick,ident,dhost);
46 char* userrec::GetFullRealHost()
48 sprintf(result,"%s!%s@%s",nick,ident,host);
52 bool userrec::IsInvited(char* channel)
54 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
57 if (!strcasecmp(i->channel,channel))
66 void userrec::InviteTo(char* channel)
69 strcpy(i.channel,channel);
73 void userrec::RemoveInvite(char* channel)
75 log(DEBUG,"Removing invites");
80 for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++)
84 if (!strcasecmp(i->channel,channel))