More string migration
FossilOrigin-Name: 245efe8045462b8ece957f5bed9f5543ec761f4506353d571186a7efb469b878
This commit is contained in:
parent
745514762e
commit
7ab817d420
3 changed files with 26 additions and 29 deletions
|
@ -5,7 +5,7 @@
|
|||
extern int clientnum;
|
||||
extern bool c2sinit, senditemstoserver;
|
||||
extern OFString *toservermap;
|
||||
extern string clientpassword;
|
||||
extern OFString *clientpassword;
|
||||
|
||||
void
|
||||
neterr(OFString *s)
|
||||
|
@ -89,11 +89,15 @@ localservertoclient(
|
|||
// map
|
||||
toservermap = getclientmap();
|
||||
sgetstr();
|
||||
if (text[0] && strcmp(text, clientpassword)) {
|
||||
conoutf(@"you need to set the correct password "
|
||||
@"to join this server!");
|
||||
disconnect();
|
||||
return;
|
||||
@autoreleasepool {
|
||||
if (text[0] &&
|
||||
strcmp(text, clientpassword.UTF8String)) {
|
||||
conoutf(@"you need to set the correct "
|
||||
@"password "
|
||||
@"to join this server!");
|
||||
disconnect();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (getint(p) == 1)
|
||||
conoutf(@"server is FULL, disconnecting..");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue