git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10332
e03df62e-2008-0410-955e-
edbf42e46eb7
void OnEvent(Event* ev)
{
GenericCapHandler(ev, "tls", "tls");
+ if (ev->GetEventID() == "cap_req")
+ {
+ /* GenericCapHandler() Extends("tls") a user if it does
+ * CAP REQ tls. Check if this was done.
+ */
+ CapData *data = (CapData *) ev->GetData();
+ if (data->user->Shrink("tls"))
+ {
+ data->user->io = this;
+ OnRawSocketAccept(data->user->GetFd(), data->user->GetIPString(),
+ data->user->GetPort());
+ }
+ }
}
void Prioritize()