#include "ircd_log.h"
#include "ircd_reply.h"
#include "ircd_string.h"
+#include "jupe.h"
#include "list.h"
#include "match.h"
#include "msg.h"
struct ConfItem* aconf = 0;
struct ConfItem* cconf;
struct ConfItem* lhconf = 0;
+ struct Jupe* ajupe = 0;
int hop;
int ret;
int active_lh_line = 0;
return need_more_params(sptr, "SERVER");
return exit_client(cptr, cptr, &me, "Need more parameters");
}
- ircd_log(L_NOTICE, "SERVER: %s %s[%s]", parv[1], cptr->sockhost, cptr->sock_ip);
host = parv[1];
+
+ if ((ajupe = jupe_find(host)) && JupeIsActive(ajupe))
+ return exit_client_msg(cptr, sptr, &me, "Juped: %s", JupeReason(ajupe));
+
+ ircd_log(L_NOTICE, "SERVER: %s %s[%s]", parv[1], cptr->sockhost, cptr->sock_ip);
+
/*
* Detect protocol
*/
* If my ircd.conf sucks, I can try to connect to myself:
*/
if (acptr == &me)
- return exit_client_msg(cptr, cptr, &me, "nick collision with me (%s)", host);
+ return exit_client_msg(cptr, cptr, &me, "nick collision with me (%s), check server number in M:?", host);
/*
* Detect wrong numeric.
*/
{
if (LHcptr == 0) {
return exit_new_server(cptr, sptr, host, timestamp,
- (active_lh_line == 2) ? "Non-Hub link %s <- %s(%s)" : "Leaf-only link %s <- %s(%s)",
+ (active_lh_line == 2) ? "Non-Hub link %s <- %s(%s), check H:" :
+ "Leaf-only link %s <- %s(%s), check L:",
cptr->name, host,
lhconf ? (lhconf->name ? lhconf->name : "*") : "!");
}
if (active_lh_line < 3)
{
if (exit_client_msg(cptr, LHcptr, &me,
- (active_lh_line == 2) ? "Non-Hub link %s <- %s(%s)" : "Leaf-only link %s <- %s(%s)",
+ (active_lh_line == 2) ? "Non-Hub link %s <- %s(%s), check H:" :
+ "Leaf-only link %s <- %s(%s), check L:",
cptr->name, host,
lhconf ? (lhconf->name ? lhconf->name : "*") : "!") == CPTR_KILLED)
return CPTR_KILLED;
else
{
ServerStats->is_ref++;
- if (exit_client(cptr, LHcptr, &me, "I'm a leaf") == CPTR_KILLED)
+ if (exit_client(cptr, LHcptr, &me, "I'm a leaf, define HUB") == CPTR_KILLED)
return CPTR_KILLED;
}
/*
struct ConfItem* aconf = 0;
struct ConfItem* cconf;
struct ConfItem* lhconf = 0;
+ struct Jupe* ajupe = 0;
int hop;
int ret;
int active_lh_line = 0;
return exit_client(cptr, cptr, &me, "Need more parameters");
}
host = parv[1];
+
+ if ((ajupe = jupe_find(host)) && JupeIsActive(ajupe))
+ jupe_resend(cptr, ajupe);
+
/*
* Detect protocol
*/
*/
if (acptr == &me)
return exit_client_msg(cptr, cptr, &me,
- "nick collision with me (%s)", host);
+ "nick collision with me, check server number in M:? (%s)", host);
/*
* Detect wrong numeric.
*/
struct ConfItem* aconf = 0;
struct ConfItem* cconf;
struct ConfItem* lhconf = 0;
+ struct Jupe* ajupe = 0;
int hop;
int ret;
int active_lh_line = 0;
*/
if (acptr == &me)
return exit_client_msg(cptr, cptr, &me,
- "nick collision with me (%s)", host);
+ "nick collision with me, check server number in M:? (%s)", host);
/*
* Detect wrong numeric.
*/