#include "ircd_log.h"
#include "ircd_reply.h"
#include "ircd_string.h"
+#include "jupe.h"
#include "match.h"
#include "msg.h"
#include "numeric.h"
const char* crule_name;
struct ConfItem* aconf;
struct Client* acptr;
-
+ struct Jupe* ajupe;
+
assert(0 != cptr);
assert(0 != sptr);
NumServ(&me), NumNick(sptr), crule_name);
return 0;
}
+ /*
+ * Check to see if the server is juped; if it is, disallow the connect
+ */
+ if ((ajupe = jupe_find(aconf->name)) && JupeIsActive(ajupe)) {
+ sendto_one(sptr, "%s NOTICE %s%s :Connect: Server %s is juped: %s",
+ NumServ(&me), NumNick(sptr), JupeServer(ajupe),
+ JupeReason(ajupe));
+ return 0;
+ }
/*
* Get port number from params, port must be non-zero if it comes from a
* server.
const char* crule_name;
struct ConfItem* aconf;
struct Client* acptr;
+ struct Jupe* ajupe;
assert(0 != cptr);
assert(cptr == sptr);
me.name, parv[0], crule_name);
return 0;
}
+ /*
+ * Check to see if the server is juped; if it is, disallow the connect
+ */
+ if ((ajupe = jupe_find(aconf->name)) && JupeIsActive(ajupe)) {
+ sendto_one(sptr, "%s NOTICE %s%s :Connect: Server %s is juped: %s",
+ me.name, NumNick(sptr), JupeServer(ajupe), JupeReason(ajupe));
+ return 0;
+ }
/*
* Get port number from user, if given. If not specified,
* use the default from configuration structure. If missing
struct ConfItem* aconf;
struct ConfItem* cconf;
struct Client* acptr;
+ struct Jupe* ajupe;
if (!IsPrivileged(sptr)) {
sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
}
}
}
+ /*
+ * Check to see if the server is juped; if it is, disallow the connect
+ */
+ if ((ajupe = jupe_find(aconf->name)) && JupeIsActive(ajupe)) {
+ sendto_one(sptr, "%s NOTICE %s%s :Connect: Server %s is juped: %s",
+ NumServ(&me), NumNick(sptr), JupeServer(ajupe),
+ JupeReason(ajupe));
+ return 0;
+ }
/*
* Notify all operators about remote connect requests