Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#80 server blacklist

closed
nobody
Modules (35)
1
2010-08-06
2010-08-06
Efreak
No

A module to blacklist servers. I'm trying to get it done myself, but I'm at the very beginning (based on sample, intercepting the addserver command) and I start school again soon.
I would like to eventually have it do a dns lookup on domains as it connects to make sure its not blacklisted. Is there an event to check the server before it starts to connect? If I only intercept addserver command, someone could add through webadmin.

Discussion

  • Efreak
    Efreak
    2010-08-06

    [11:00pm] <psychon_> Efreak: OnIRCConnecting()
    [11:00pm] <psychon_> Efreak: and/or OnIRCRegistration

    [12:29am] <psychon_> Efreak: OnIRCConnecting() is called before we start trying to connect (no IP known yet), OnIRCRegistration() is called when we start sending PASS, USER, NICK (ip known, but we are already connected and the ssl handshake finished)
    [12:29am] <psychon_> Efreak: if that solves your request, please add a comment to it so I know that I can close it later
    [12:29am] <Efreak> so can I get the hostname of the server we're connecting to from onircconnecting? I can resolve separately if I have to

    [12:31am] <psychon_> and you can get the CServer* from GetUser()->GetCurServer() (or sth like that)
    [12:31am] <psychon_> that one knows the host name

    thanks, psychon.

     
  • Efreak
    Efreak
    2010-08-06

    • priority: 5 --> 1
    • status: open --> closed