From 749c0fdf4e842bf552c4a1c2c86126bc3bc24325 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Mon, 29 Nov 2010 17:11:12 +0200 Subject: [PATCH 1/1] =?utf8?q?=D0=9E=D1=82=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?utf8?q?=D0=BD=D0=BE=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BF=D0=BE=D0=B4=D0=BA?= =?utf8?q?=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=D0=BB?= =?utf8?q?=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8F=20=D0=BF?= =?utf8?q?=D1=80=D0=B8=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?utf8?q?=D0=B8=20=D0=B5=D0=B3=D0=BE=20IP-=D0=B0=D0=B4=D1=80=D0=B5=D1=81?= =?utf8?q?=D0=B0=20=D0=B2=20=D1=81=D0=BB=D1=83=D1=87=D0=B0=D0=B5=20=D0=B5?= =?utf8?q?=D1=81=D0=BB=D0=B8=20=D0=BE=D0=BD=20=D0=BD=D0=B5=20=D0=B1=D1=8B?= =?utf8?q?=D0=BB=20=D0=BF=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD?= =?utf8?q?=20=D0=B8/=D0=B8=D0=BB=D0=B8=20=D0=BD=D0=B5=20=D0=B4=D0=BE=D0=BB?= =?utf8?q?=D0=B6=D0=B5=D0=BD=20=D0=B1=D1=8B=D1=82=D1=8C=20=D0=BF=D0=BE?= =?utf8?q?=D0=B4=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projects/stargazer/user.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/stargazer/user.cpp b/projects/stargazer/user.cpp index 6c328602..2ad1e342 100644 --- a/projects/stargazer/user.cpp +++ b/projects/stargazer/user.cpp @@ -1369,8 +1369,10 @@ void CHG_IP_NOTIFIER::Notify(const uint32_t & from, const uint32_t & to) { 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 (to != 0) - user->Connect(false); + if (user->IsInetable()) + user->Connect(false); } //----------------------------------------------------------------------------- -- 2.44.2