Author Topic: Gatekeeper Support  (Read 2919 times)

0 Members and 1 Guest are viewing this topic.

Offline lavacano201014

  • Jr. Member
  • **
  • Posts: 83
  • Karma: 9
  • Archbishop of Cristina Scabbia worship
Gatekeeper Support
« on: June 05, 2010, 01:20:08 PM »
I don't know how feasible this is in Lua (meaning I don't know if Lua has anything similar to a try-except in Python), but here goes anyway.

I'd like to have in ULX the ability to use Gatekeeper (if it's installed). The simple way to do this try to load gatekeeper at the beginning of ULX initialization, and if it throws an error to the effect of "IT'S NOT THERE Q.Q" then revert to using kickid and banid (as ULX uses now).

Then the kick function would have something to the effect of:

Code: [Select]
if gatekeeper then
   gatekeeper.Drop(userid, kick_message)
else
   -- Current ULX kick code here
end

And ban would just record the ban and call the kick function.

I'm sure a lot of people think the Kicked By Console : Reason Here thing is kind of sloppy, and while 99% of them know it's not your fault, it would still look better from an aesthetic point of view.

I could do it myself (without the check, because I would know gatekeeper's there), but I'm lazy D-:
Circle reasoning works because circle reasoning works because...

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Gatekeeper Support
« Reply #1 on: June 05, 2010, 02:03:47 PM »
How many servers use or have gatekeeper installed?
Experiencing God's grace one day at a time.

Offline DiscoBiscuit

  • Full Member
  • ***
  • Posts: 112
  • Karma: 1
    • DiscoBuild
Re: Gatekeeper Support
« Reply #2 on: June 05, 2010, 04:06:44 PM »
Meee

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Gatekeeper Support
« Reply #3 on: June 06, 2010, 09:17:40 AM »
Added support for gatekeeper as requested in rev 146. (Woo 3 lines of code)
Experiencing God's grace one day at a time.