Make remote restart and die actually...work...
This commit is contained in:
parent
658a333d65
commit
5ff039e923
|
@ -104,12 +104,6 @@ me_die(struct Client *client_p __unused, struct Client *source_p, int parc, cons
|
||||||
static int
|
static int
|
||||||
do_die(struct Client *source_p, const char *servername)
|
do_die(struct Client *source_p, const char *servername)
|
||||||
{
|
{
|
||||||
if(irccmp(servername, me.name))
|
|
||||||
{
|
|
||||||
sendto_one_notice(source_p, ":Mismatch on /die %s", me.name);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
ircd_shutdown(get_client_name(source_p, HIDE_IP));
|
ircd_shutdown(get_client_name(source_p, HIDE_IP));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -111,12 +111,6 @@ do_restart(struct Client *source_p, const char *servername)
|
||||||
rb_dlink_node *ptr;
|
rb_dlink_node *ptr;
|
||||||
struct Client *target_p;
|
struct Client *target_p;
|
||||||
|
|
||||||
if(irccmp(servername, me.name))
|
|
||||||
{
|
|
||||||
sendto_one_notice(source_p, ":Mismatch on /restart %s", me.name);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
RB_DLINK_FOREACH(ptr, lclient_list.head)
|
RB_DLINK_FOREACH(ptr, lclient_list.head)
|
||||||
{
|
{
|
||||||
target_p = ptr->data;
|
target_p = ptr->data;
|
||||||
|
|
Loading…
Reference in New Issue