| 36 |
|
#include "modules.h" |
| 37 |
|
#include "irc_string.h" |
| 38 |
|
|
| 39 |
< |
static void m_admin(struct Client *, struct Client *, int, char **); |
| 40 |
< |
static void mr_admin(struct Client *, struct Client *, int, char **); |
| 41 |
< |
static void ms_admin(struct Client *, struct Client *, int, char **); |
| 39 |
> |
static void m_admin(struct Client *, struct Client *, int, char *[]); |
| 40 |
> |
static void mr_admin(struct Client *, struct Client *, int, char *[]); |
| 41 |
> |
static void ms_admin(struct Client *, struct Client *, int, char *[]); |
| 42 |
|
static void do_admin(struct Client *); |
| 43 |
|
|
| 44 |
|
struct Message admin_msgtab = { |
| 83 |
|
{ |
| 84 |
|
static time_t last_used = 0; |
| 85 |
|
|
| 86 |
+ |
ClearCap(client_p, CAP_TS6); |
| 87 |
+ |
|
| 88 |
|
if ((last_used + ConfigFileEntry.pace_wait_simple) > CurrentTime) |
| 89 |
|
{ |
| 90 |
|
sendto_one(source_p, form_str(RPL_LOAD2HI), |
| 91 |
|
me.name, EmptyString(parv[0]) ? "*" : parv[0]); |
| 92 |
|
return; |
| 93 |
|
} |
| 94 |
< |
else |
| 95 |
< |
last_used = CurrentTime; |
| 94 |
> |
|
| 95 |
> |
last_used = CurrentTime; |
| 96 |
|
|
| 97 |
|
#ifdef STATIC_MODULES |
| 98 |
|
do_admin(client_p); |
| 118 |
|
me.name, source_p->name); |
| 119 |
|
return; |
| 120 |
|
} |
| 121 |
< |
else |
| 122 |
< |
last_used = CurrentTime; |
| 121 |
> |
|
| 122 |
> |
last_used = CurrentTime; |
| 123 |
|
|
| 124 |
|
if (!ConfigFileEntry.disable_remote) |
| 125 |
< |
{ |
| 126 |
< |
if (hunt_server(client_p, source_p, ":%s ADMIN :%s", 1, parc, parv) != HUNTED_ISME) |
| 125 |
> |
if (hunt_server(client_p, source_p, ":%s ADMIN :%s", 1, |
| 126 |
> |
parc, parv) != HUNTED_ISME) |
| 127 |
|
return; |
| 126 |
– |
} |
| 128 |
|
|
| 129 |
|
#ifdef STATIC_MODULES |
| 130 |
|
do_admin(client_p); |
| 142 |
|
ms_admin(struct Client *client_p, struct Client *source_p, |
| 143 |
|
int parc, char *parv[]) |
| 144 |
|
{ |
| 145 |
< |
if (hunt_server(client_p, source_p, ":%s ADMIN :%s", 1, parc, parv) != HUNTED_ISME) |
| 145 |
> |
if (hunt_server(client_p, source_p, ":%s ADMIN :%s", 1, parc, parv) |
| 146 |
> |
!= HUNTED_ISME) |
| 147 |
|
return; |
| 148 |
|
|
| 149 |
|
if (IsClient(source_p)) |