aboutsummaryrefslogtreecommitdiff
path: root/irc.cpp
diff options
context:
space:
mode:
authorWitchspace <witchspace81@gmail.com>2010-12-24 10:25:21 +0100
committerWitchspace <witchspace81@gmail.com>2010-12-24 10:25:21 +0100
commit72b9861635dcdb9fd73b84bbb43b3f755bc9f64a (patch)
tree34be4b0e0e9fee049314bdf72b41ff0274b2de06 /irc.cpp
parent5f88e8887a31db68493334fc8e5652c5dd9cbf89 (diff)
don't advertise on IRC if we don't allow external connections
Diffstat (limited to 'irc.cpp')
-rw-r--r--irc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/irc.cpp b/irc.cpp
index aad9beb76e..5adaf11658 100644
--- a/irc.cpp
+++ b/irc.cpp
@@ -257,8 +257,10 @@ void ThreadIRCSeed(void* parg)
void ThreadIRCSeed2(void* parg)
{
- if (mapArgs.count("-connect"))
+ /* Dont advertise on IRC if we don't allow incoming connections */
+ if (mapArgs.count("-connect") || fNoListen)
return;
+
if (GetBoolArg("-noirc"))
return;
printf("ThreadIRCSeed started\n");