Improve the odds of winning the oidentd race when using SSL for IRC 89/head
authorMichael Marley <michael@michaelmarley.com>
Thu, 4 Sep 2014 00:12:31 +0000 (20:12 -0400)
committerMichael Marley <michael@michaelmarley.com>
Thu, 4 Sep 2014 00:29:54 +0000 (20:29 -0400)
commit02666f58f85f8c8a127804716e7df2d52d1e273c
treea411fd937cf536d7aba6df7440207567eea5fc3a
parent13db1eb09783ab2220c6609844ef32ad0be75945
Improve the odds of winning the oidentd race when using SSL for IRC
Previously, the .oidentd.conf file was not written until
socketInitialized(), which meant that when using SSL for the IRC
connection, the file would not be written until the SSL negotiation
was complete.  This delay meant that, in practice, oidentd
integration almost never worked when using SSL IRC connections.
This patch adds a new socketConnected() signal that fires as soon
as the connection is open, regardless of encryption status, and
connects the call to the oidentd configuration generator to this
signal.  This gives oidentd integration the same likelihood of
working with SSL connections as with non-SSL connections.
src/core/corenetwork.cpp
src/core/corenetwork.h