|
@@ -223,7 +223,7 @@ greet_new_bot(int idx)
|
|
|
dcc[idx].u.bot->sysname[0] = 0;
|
|
dcc[idx].u.bot->sysname[0] = 0;
|
|
|
dcc[idx].u.bot->numver = 0;
|
|
dcc[idx].u.bot->numver = 0;
|
|
|
// Reject -o bots, and if we're a localhub who hasnt linked to hub yet, dont allow links in
|
|
// Reject -o bots, and if we're a localhub who hasnt linked to hub yet, dont allow links in
|
|
|
- if ((conf.bot->hub || conf.bot->localhub) && dcc[idx].user && (!(dcc[idx].user->flags & USER_OP) || (conf.bot->localhub && !have_linked_to_hub))) {
|
|
|
|
|
|
|
+ if ((conf.bot->hub || conf.bot->localhub) && dcc[idx].user && (!(dcc[idx].user->flags & USER_OP) || (conf.bot->localhub && (dcc[idx].status & STAT_UNIXDOMAIN) && !have_linked_to_hub))) {
|
|
|
if (!(dcc[idx].user->flags & USER_OP)) {
|
|
if (!(dcc[idx].user->flags & USER_OP)) {
|
|
|
putlog(LOG_BOTS, "*", "Rejecting link from %s", dcc[idx].nick);
|
|
putlog(LOG_BOTS, "*", "Rejecting link from %s", dcc[idx].nick);
|
|
|
dprintf(idx, "error You are being rejected.\n");
|
|
dprintf(idx, "error You are being rejected.\n");
|