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: |
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 |
|
|
77 |
|
mod_del_cmd(&motd_msgtab); |
78 |
|
uninstall_hook(motd_cb, do_motd); |
79 |
|
} |
81 |
– |
#endif |
80 |
|
|
81 |
|
/* |
82 |
|
** m_motd |
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 |
|
/* |
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 |
|
} |