ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/releases/8.1.12/modules/m_eob.c
(Generate patch)

Comparing:
ircd-hybrid/modules/m_eob.c (file contents), Revision 32 by knight, Sun Oct 2 20:41:23 2005 UTC vs.
ircd-hybrid/releases/8.1.12/modules/m_eob.c (file contents), Revision 2710 by michael, Mon Dec 23 00:34:15 2013 UTC

# Line 23 | Line 23
23   */
24  
25   #include "stdinc.h"
26 – #include "handlers.h"
26   #include "client.h"
27   #include "ircd.h"
29 – #include "numeric.h"
30 – #include "s_conf.h"
31 – #include "s_serv.h"
28   #include "send.h"
33 – #include "msg.h"
29   #include "parse.h"
30   #include "modules.h"
31 < #include <stdlib.h>
37 <
38 < static void ms_eob(struct Client*, struct Client*, int, char**);
39 <
40 < struct Message eob_msgtab = {
41 <  "EOB", 0, 0, 0, 0, MFLG_SLOW | MFLG_UNREG, 0,
42 <  {m_unregistered, m_ignore, ms_eob, m_ignore, m_ignore, m_ignore}
43 < };
44 < #ifndef STATIC_MODULES
45 < void
46 < _modinit(void)
47 < {
48 <  mod_add_cmd(&eob_msgtab);
49 < }
50 <
51 < void
52 < _moddeinit(void)
53 < {
54 <  mod_del_cmd(&eob_msgtab);
55 < }
31 > #include "s_serv.h"
32  
57 – const char *_version = "$Revision$";
58 – #endif
33  
34   /*
35   * ms_eob - EOB command handler
# Line 66 | Line 40 | static void
40   ms_eob(struct Client *client_p, struct Client *source_p,
41         int parc, char *parv[])
42   {
43 <   sendto_realops_flags(UMODE_ALL, L_ALL, "End of burst from %s (%u seconds)",
44 <                        source_p->name,
45 <                        (unsigned int)(CurrentTime - source_p->firsttime));
46 <   SetEob(client_p);
43 >  assert(IsServer(source_p));
44 >
45 >  if (client_p == source_p)
46 >    sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
47 >                         "End of burst from %s (%u seconds)",
48 >                         source_p->name,
49 >                         (unsigned int)(CurrentTime - source_p->localClient->firsttime));
50 >
51 >  AddFlag(source_p, FLAGS_EOB);
52 >
53 >  sendto_server(client_p, CAP_TS6, NOCAPS,
54 >                ":%s EOB", ID(source_p));
55 >  sendto_server(client_p, NOCAPS, CAP_TS6,
56 >                ":%s EOB", source_p->name);
57   }
58 +
59 + static struct Message eob_msgtab = {
60 +  "EOB", 0, 0, 0, MAXPARA, MFLG_SLOW, 0,
61 +  {m_unregistered, m_ignore, ms_eob, m_ignore, m_ignore, m_ignore}
62 + };
63 +
64 + static void
65 + module_init(void)
66 + {
67 +  mod_add_cmd(&eob_msgtab);
68 + }
69 +
70 + static void
71 + module_exit(void)
72 + {
73 +  mod_del_cmd(&eob_msgtab);
74 + }
75 +
76 + struct module module_entry = {
77 +  .node    = { NULL, NULL, NULL },
78 +  .name    = NULL,
79 +  .version = "$Revision$",
80 +  .handle  = NULL,
81 +  .modinit = module_init,
82 +  .modexit = module_exit,
83 +  .flags   = 0
84 + };

Comparing:
ircd-hybrid/modules/m_eob.c (property svn:keywords), Revision 32 by knight, Sun Oct 2 20:41:23 2005 UTC vs.
ircd-hybrid/releases/8.1.12/modules/m_eob.c (property svn:keywords), Revision 2710 by michael, Mon Dec 23 00:34:15 2013 UTC

# Line 1 | Line 1
1 < Revision
1 > Id Revision

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)