blob: 80dbab3273a4a854edcee6de6531f2c28a9d2443 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
// Copyright (c) 2014 - 2015 Evol developers
#include "common/hercules.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common/HPMi.h"
#include "common/memmgr.h"
#include "common/socket.h"
#include "map/map.h"
#include "emap/console.h"
#include "emap/inter.h"
CPCMD(serverExit)
{
int code = 0;
if (!line || !*line || sscanf(line, "%5d", &code) < 1)
{
ShowError("Wrong parameter\n");
return;
}
send_char_exit(code);
map->retval = code;
map->do_shutdown();
}
|