35 |
|
#include "modules.h" |
36 |
|
|
37 |
|
|
38 |
< |
static void |
38 |
> |
static int |
39 |
|
ms_pong(struct Client *client_p, struct Client *source_p, |
40 |
|
int parc, char *parv[]) |
41 |
|
{ |
46 |
|
{ |
47 |
|
sendto_one(source_p, form_str(ERR_NOORIGIN), |
48 |
|
me.name, source_p->name); |
49 |
< |
return; |
49 |
> |
return 0; |
50 |
|
} |
51 |
|
|
52 |
|
origin = parv[1]; |
69 |
|
{ |
70 |
|
sendto_one(source_p, form_str(ERR_NOSUCHSERVER), |
71 |
|
me.name, source_p->name, destination); |
72 |
< |
return; |
72 |
> |
return 0; |
73 |
|
} |
74 |
|
} |
75 |
+ |
|
76 |
+ |
return 0; |
77 |
|
} |
78 |
|
|
79 |
< |
static void |
79 |
> |
static int |
80 |
|
mr_pong(struct Client *client_p, struct Client *source_p, |
81 |
|
int parc, char *parv[]) |
82 |
|
{ |
99 |
|
{ |
100 |
|
sendto_one(source_p, form_str(ERR_WRONGPONG), me.name, |
101 |
|
source_p->name, source_p->localClient->random_ping); |
102 |
< |
return; |
102 |
> |
return 0; |
103 |
|
} |
104 |
|
} |
105 |
|
} |
107 |
|
else |
108 |
|
sendto_one(source_p, form_str(ERR_NOORIGIN), |
109 |
|
me.name, source_p->name); |
110 |
+ |
return 0; |
111 |
|
} |
112 |
|
|
113 |
< |
static struct Message pong_msgtab = { |
113 |
> |
static struct Message pong_msgtab = |
114 |
> |
{ |
115 |
|
"PONG", 0, 0, 1, MAXPARA, MFLG_SLOW, 0, |
116 |
|
{mr_pong, m_ignore, ms_pong, m_ignore, m_ignore, m_ignore} |
117 |
|
}; |
128 |
|
mod_del_cmd(&pong_msgtab); |
129 |
|
} |
130 |
|
|
131 |
< |
struct module module_entry = { |
131 |
> |
struct module module_entry = |
132 |
> |
{ |
133 |
|
.node = { NULL, NULL, NULL }, |
134 |
|
.name = NULL, |
135 |
|
.version = "$Revision$", |