| View previous topic :: View next topic |
| Author |
Message |
en_dator
Joined: 02 Apr 2007 Posts: 7
|
Posted: Sat Apr 07, 2007 12:57 pm Post subject: block passive users |
|
|
a small lua you can use if you dont want passive or socks users in your hub.
Registered users are not affected (note: the definition of a registered user is a nick WITH password set so if you want someone that is passive, you will have to set a password for them before they can login)
| Code: | -- short and silly - drops passive users
--
function EventPreLogin(nick)
local hubname = GetConfig("hubname")
local Nick = (nick)
if not UserIsRegistered(nick) then
if not UserIsActive(nick) then
ChatToNick ("", nick,"Welcome "..Nick.." to "..hubname.." Unfortunately we dont allow passive users here.")
return true
end
end
end |
http://endator.googlepages.com/downloads |
|
| Back to top |
|
 |
Lisette

Joined: 28 Jan 2007 Posts: 17 Location: The Netherlands
|
Posted: Mon Apr 30, 2007 4:29 pm Post subject: block search for passive users |
|
|
| Code: | --block search for passive users
--made by en_dator
--changed by Lisette 30 April 2007
function EventSearch(nick)
local Nick = (nick)
if not UserIsRegistered(nick) then
if not UserIsActive(nick) then
PMToNick ("", nick,"Hello "..Nick..". Unfortunately we don't allow passive users to search. \r\n\r\nGetting active: http://www.dslreports.com/faq/6518 for English faq \r\nhttp://www.magmaractive.cjb.net for Dutch/Nederlands or ask an OP")
return true
end
end
end |
|
|
| Back to top |
|
 |
|