New question #148819 on ADCH++:
https://answers.launchpad.net/adchpp/+question/148819

So i wrote a small script which blocking multi connect ..so only 1nick = 1 ip

local Exc ={ -- таблица исключений.
 ["[INT]district"] = true,
 ["nick"] = true,
}

function ValidateNickArrival(tUser)
 if not Exc[tUser.sNick] then
  for _,v in pairs(Core.GetOnlineUsers()) do
   if v.sIP==tUser.sIP then
    Core.SendToUser(tUser,"1NICK-1IP")
    Core.Disconnect(tUser)
   end
  end
 end
end
NewUserConnected=ValidateNickArrival
UserConnected=ValidateNickArrival
RegConnected=ValidateNickArrival
OpConnected=ValidateNickArrival

when i open the second dc client... hub all time write me 1NICK-1IP (it's ok) . 
BUT when a close my first client ...the second client not connected ....and 
wrote me 1NICK-1IP ... 1NICK-1IP ...where is my mistake ??? how to enter =)

You received this question notification because you are a member of
Dcplusplus-team, which is an answer contact for ADCH++.

_______________________________________________
Mailing list: https://launchpad.net/~linuxdcpp-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~linuxdcpp-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to