PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Request for scripts => Topic started by: Pieter on 22 February, 2009, 16:53:33

Title: Prevent user with pinger nick to stay in hub
Post by: Pieter on 22 February, 2009, 16:53:33
Hi all, some people have found a new way to annoy hubowners.
They login on the hub with the nick of one of the hublist pingers.
When they are in the hublist can't.
Nickban them is no option because you willl also ban the pinger.
Ip ban is not an option because they return soon with another ip.
So i suppose it could be done with a list of nicks that will be disconnected when they stay in the hub for more then a few seconds.

Hope someone can help.

Thanx Pieter.
Title: Re: Prevent user with pinger nick to stay in hub
Post by: CrazyGuy on 22 February, 2009, 23:24:04
Having seen this with a "dchublist" example in PtokaX Admins, it was suggested by Daywalker to check other variables that do not change such as sharesize, tag and email. Set your script to kick on a match on those.
Title: Re: Prevent user with pinger nick to stay in hub
Post by: ATAG on 24 February, 2009, 14:12:01
You can set the pinger nick/password on some hublists (for example: dchublist, openhublist) and reg them on your hub.
Title: Re: Prevent user with pinger nick to stay in hub
Post by: [NL]Daddy-Bear? on 26 February, 2009, 16:04:29
Hello it?s me again


Maybe that this helps, an LUA to tease him.

Link   http://forum.ptokax.org/index.php?topic=8279.0


Respectfully,

[NL]Daddy-Bear?
Title: Re: Prevent user with pinger nick to stay in hub
Post by: sphinx_spb on 04 April, 2009, 08:43:07
This prevent fake pinger even to log in
Code: [Select]
local ifpinger=false
local Bot=SetMan.GetString(21)
local Pinger={["nick1"]=1,["nick2"]=1,} -- pingers' nicks here

BotINFOArrival = function(sUser,sData)
local _,_,desc = sData:sub(1,-2):find("$BotINFO (.+)")
if desc then
if Pinger[sUser.sNick] then
ifpinger=true
end
end
end

UserConnected = function (sUser)
if Pinger[sUser.sNick] then
if ifpinger then
ifpinger=false
else
Core.SendToUser(sUser,"<"..Bot.."> This nick is reserved!")
Core.Disconnect(sUser)
return true
end
end
end
Title: Re: Prevent user with pinger nick to stay in hub
Post by: CrazyGuy on 06 April, 2009, 16:45:59
Actually his script doesn't stop fake pingers from login in, but only regular users from using pinger nicks  :P