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

Comparing ircd-hybrid-7.3/modules/m_motd.c (file contents):
Revision 1065 by michael, Sun Feb 14 11:36:56 2010 UTC vs.
Revision 1121 by michael, Sun Jan 9 11:03:03 2011 UTC

# Line 37 | Line 37
37   #include "modules.h"
38   #include "s_conf.h"
39  
40 < static void m_motd(struct Client*, struct Client*, int, char *[]);
41 < static void mo_motd(struct Client*, struct Client*, int, char *[]);
40 > static void m_motd(struct Client *, struct Client *, int, char *[]);
41 > static void mo_motd(struct Client *, struct Client *, int, char *[]);
42  
43   /*
44   * note regarding mo_motd being used twice:
# Line 52 | Line 52 | struct Message motd_msgtab = {
52    { m_unregistered, m_motd, mo_motd, m_ignore, mo_motd, m_ignore }
53   };
54  
55 #ifndef STATIC_MODULES
55   const char *_version = "$Revision$";
56   static struct Callback *motd_cb;
57  
# Line 78 | Line 77 | _moddeinit(void)
77    mod_del_cmd(&motd_msgtab);
78    uninstall_hook(motd_cb, do_motd);
79   }
81 #endif
80  
81   /*
82   ** m_motd
# Line 107 | Line 105 | m_motd(struct Client *client_p, struct C
105                      != HUNTED_ISME)
106        return;
107  
110 #ifdef STATIC_MODULES
111  send_message_file(source_p, &ConfigFileEntry.motd);
112 #else
108    execute_callback(motd_cb, source_p, parc, parv);
114 #endif
109   }
110  
111   /*
# Line 129 | Line 123 | mo_motd(struct Client *client_p, struct
123    if (hunt_server(client_p, source_p, ":%s MOTD :%s",1,parc,parv)!=HUNTED_ISME)
124      return;
125  
132 #ifdef STATIC_MODULES
133  send_message_file(source_p, &ConfigFileEntry.motd);
134 #else
126    execute_callback(motd_cb, source_p, parc, parv);
136 #endif
127   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines