Aquila
Licat volare si super tergum Aquila volat
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

block passive users

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Aquila Forum Index -> Lua Scripts
View previous topic :: View next topic  
Author Message
en_dator



Joined: 02 Apr 2007
Posts: 7

PostPosted: Sat Apr 07, 2007 12:57 pm    Post subject: block passive users Reply with quote

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
View user's profile Send private message
Lisette



Joined: 28 Jan 2007
Posts: 17
Location: The Netherlands

PostPosted: Mon Apr 30, 2007 4:29 pm    Post subject: block search for passive users Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Aquila Forum Index -> Lua Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Views