]>
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(),
56 stats
->getPassword().c_str());
64 log("aClient deleted: %s", nick
);
71 bool aClient::operator!=(const aClient
&right
)
73 return !(*this == right
);
76 bool aClient::operator==(const aClient
&right
)
78 if (strcmp(nick
, right
.nick
) == 0 && stats
== right
.stats
)
88 ostream
&operator<<( ostream
&out
, const aClient
&c
)
90 out
<< (c
.nick
[0] == '\0' ? "NULL" : c
.nick
);
94 void aClient::setData(const aClient
*right
)
98 strcpy(nick
, right
->nick
);
100 strcpy(realnick
, right
->realnick
);
107 log("Should be setting data for %s", right
->stats
->getName().c_str());
110 stats
->setData(right
->stats
);
115 long int aClient::setFlags(long int newflags
)
121 long int aClient::addFlag(long int flag
)
127 long int aClient::remFlag(long int flag
)