]>
jfr.im git - irc/gameservirc.git/blob - gameserv/aClient.cpp
7 aClient::aClient(char *n
)
10 log("aClient created: %s", (n
[0] == '\0' ? "NULL" : n
));
22 aClient::aClient(char *n
, char *rn
)
25 log("aClient created: %s", (n
[0] == '\0' ? "NULL" : n
));
34 aClient::aClient(const aClient
&right
)
37 log("aClient created from another aClient: %s\n", right
.nick
);
55 log("aClient deleted: %s %s %s", nick
, stats
->getName().c_str(), stats
->getPassword().c_str());
63 log("aClient deleted: %s", nick
);
70 bool aClient::operator!=(const aClient
&right
)
72 return !(*this == right
);
75 bool aClient::operator==(const aClient
&right
)
77 if (strcmp(nick
, right
.nick
) == 0 && stats
== right
.stats
)
87 ostream
&operator<<( ostream
&out
, const aClient
&c
)
89 out
<< (c
.nick
[0] == '\0' ? "NULL" : c
.nick
);
93 void aClient::setData(const aClient
*right
)
97 strcpy(nick
, right
->nick
);
99 strcpy(realnick
, right
->realnick
);
106 log("Should be setting data for %s", right
->stats
->getName().c_str());
109 stats
->setData(right
->stats
);
114 long int aClient::setFlags(long int newflags
)
120 long int aClient::addFlag(long int flag
)
126 long int aClient::remFlag(long int flag
)