summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-08 18:31:11 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-08 18:31:11 +0000
commit789887821b6734617d086433c5d874e77b8a374d (patch)
treee3b3de1e23662e8146b09d04a624870017479995
parentb5a2c7f70fbbe1e776ac0c9c4cbc0411bc5c6633 (diff)
- EOB is now send to all servers globally
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@1970 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--modules/m_eob.c10
-rw-r--r--src/s_serv.c10
2 files changed, 12 insertions, 8 deletions
diff --git a/modules/m_eob.c b/modules/m_eob.c
index bf3bc14..4e531d3 100644
--- a/modules/m_eob.c
+++ b/modules/m_eob.c
@@ -28,6 +28,7 @@
#include "send.h"
#include "parse.h"
#include "modules.h"
+#include "s_serv.h"
/*
@@ -42,11 +43,12 @@ ms_eob(struct Client *client_p, struct Client *source_p,
assert(IsServer(source_p));
assert(client_p == source_p);
- sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
- "End of burst from %s (%u seconds)",
- source_p->name,
- (unsigned int)(CurrentTime - source_p->localClient->firsttime));
AddFlag(source_p, FLAGS_EOB);
+
+ sendto_server(client_p, CAP_TS6, NOCAPS,
+ ":%s EOB", ID(source_p));
+ sendto_server(client_p, NOCAPS, CAP_TS6,
+ ":%s EOB", source_p->name);
}
static struct Message eob_msgtab = {
diff --git a/src/s_serv.c b/src/s_serv.c
index 7ff94d6..bc89cb0 100644
--- a/src/s_serv.c
+++ b/src/s_serv.c
@@ -893,11 +893,17 @@ server_estab(struct Client *client_p)
sendto_one(client_p, ":%s SERVER %s %d :%s%s",
ID(target_p->servptr), target_p->name, target_p->hopcount+1,
IsHidden(target_p) ? "(H) " : "", target_p->info);
+ if (HasFlag(target_p, FLAGS_EOB))
+ sendto_one(client_p, ":%s EOB", target_p->name);
}
else
+ {
sendto_one(client_p, ":%s SERVER %s %d :%s%s",
target_p->servptr->name, target_p->name, target_p->hopcount+1,
IsHidden(target_p) ? "(H) " : "", target_p->info);
+ if (HasFlag(target_p, FLAGS_EOB))
+ sendto_one(client_p, ":%s EOB", target_p->name);
+ }
}
server_burst(client_p);
@@ -968,10 +974,6 @@ burst_all(struct Client *client_p)
DelFlag(target_p, FLAGS_BURSTED);
}
- /* We send the time we started the burst, and let the remote host determine an EOB time,
- ** as otherwise we end up sending a EOB of 0 Sending here means it gets sent last -- fl
- */
- /* Its simpler to just send EOB and use the time its been connected.. --fl_ */
if (IsCapable(client_p, CAP_EOB))
sendto_one(client_p, ":%s EOB", ID_or_name(&me, client_p));
}