projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated cmd_version information
[NeonServV5.git]
/
src
/
modules
/
global.mod
/
cmd_global_reconnect.c
diff --git
a/src/modules/global.mod/cmd_global_reconnect.c
b/src/modules/global.mod/cmd_global_reconnect.c
index 84eafa3c3b4d23cfeed3fa49f96f01211aa00567..1ac409a160b09218940691dcb87597039f0dbe6b 100644
(file)
--- a/
src/modules/global.mod/cmd_global_reconnect.c
+++ b/
src/modules/global.mod/cmd_global_reconnect.c
@@
-1,4
+1,4
@@
-/* cmd_global_reconnect.c - NeonServ v5.
5
+/* cmd_global_reconnect.c - NeonServ v5.
6
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
@@
-35,13
+35,13
@@
CMD_BIND(global_cmd_reconnect) {
botid = atoi(row[0]);
for(client = getBots(0, NULL); client; client = getBots(0, client)) {
if(client->clientid == botid) {
botid = atoi(row[0]);
for(client = getBots(0, NULL); client; client = getBots(0, client)) {
if(client->clientid == botid) {
-
disconnect
_socket(client);
- c
lient->flags |= SOCKET_FLAG_FAST_JUMP
;
+
close
_socket(client);
+ c
onnect_socket(client)
;
break;
}
}
} else {
break;
}
}
} else {
-
disconnect
_socket(client);
+
close
_socket(client);
connect_socket(client);
}
reply(textclient, user, "NS_RECONNECT_DONE");
connect_socket(client);
}
reply(textclient, user, "NS_RECONNECT_DONE");