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

Comparing ircd-hybrid-8/modules/core/m_join.c (file contents):
Revision 1229 by michael, Sun Sep 18 09:02:38 2011 UTC vs.
Revision 1230 by michael, Thu Sep 22 19:41:19 2011 UTC

# Line 41 | Line 41
41   #include "modules.h"
42  
43  
44 static void m_join(struct Client *, struct Client *, int, char *[]);
45 static void ms_join(struct Client *, struct Client *, int, char *[]);
44   static void do_join_0(struct Client *, struct Client *);
45  
46   static void set_final_mode(struct Mode *, struct Mode *);
# Line 54 | Line 52 | static char parabuf[MODEBUFLEN];
52   static char sendbuf[MODEBUFLEN];
53   static char *mbuf;
54  
57 struct Message join_msgtab = {
58  "JOIN", 0, 0, 2, MAXPARA, MFLG_SLOW, 0,
59  { m_unregistered, m_join, ms_join, m_ignore, m_join, m_ignore }
60 };
61
62 void
63 _modinit(void)
64 {
65  mod_add_cmd(&join_msgtab);
66 }
67
68 void
69 _moddeinit(void)
70 {
71  mod_del_cmd(&join_msgtab);
72 }
73
74 const char *_version = "$Revision$";
75
55   /* last0() stolen from ircu */
56   static char *
57   last0(struct Client *client_p, struct Client *source_p, char *chanlist)
# Line 680 | Line 659 | remove_a_mode(struct Channel *chptr, str
659                           chptr->chname, lmodebuf, sendbuf);
660    }
661   }
662 +
663 + static struct Message join_msgtab = {
664 +  "JOIN", 0, 0, 2, MAXPARA, MFLG_SLOW, 0,
665 +  { m_unregistered, m_join, ms_join, m_ignore, m_join, m_ignore }
666 + };
667 +
668 + static void
669 + module_init(void)
670 + {
671 +  mod_add_cmd(&join_msgtab);
672 + }
673 +
674 + static void
675 + module_exit(void)
676 + {
677 +  mod_del_cmd(&join_msgtab);
678 + }
679 +
680 + struct module module_entry = {
681 +  .node    = { NULL, NULL, NULL },
682 +  .name    = NULL,
683 +  .version = "$Revision$",
684 +  .handle  = NULL,
685 +  .modinit = module_init,
686 +  .modexit = module_exit,
687 +  .flags   = MODULE_FLAG_CORE
688 + };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines