summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
45eb432)
случае если он не был подключен и/или не должен быть подключен
{
printfd(__FILE__, "Change IP from %s to %s\n", inet_ntostring(from).c_str(), inet_ntostring(to).c_str());
if (from != 0)
{
printfd(__FILE__, "Change IP from %s to %s\n", inet_ntostring(from).c_str(), inet_ntostring(to).c_str());
if (from != 0)
- user->Disconnect(false, "Change IP");
+ if (user->connected)
+ user->Disconnect(false, "Change IP");
+ if (user->IsInetable())
+ user->Connect(false);
}
//-----------------------------------------------------------------------------
}
//-----------------------------------------------------------------------------