]>
Commit | Line | Data |
---|---|---|
af02354b | 1 | #include "extern.h" |
2 | #include "aClient.h" | |
3 | #include "flags.h" | |
4 | #include "options.h" | |
5 | ||
6 | void do_raw(char *u) | |
7 | { | |
8 | aClient *user; | |
9 | ||
10 | if (!(user = find(u))) | |
11 | { | |
12 | notice(s_GameServ, u, "Error: aClient not found. Contact a <S admin"); | |
13 | log("Error: aClient not found: %s", u); | |
14 | } | |
15 | else if (!isAdmin(user)) | |
16 | { | |
17 | notice(s_GameServ, u, "You must be a <S admin to use this command!"); | |
18 | } | |
19 | else | |
20 | { | |
21 | char *rest = strtok(NULL, ""); | |
22 | raw("%s", rest); | |
23 | } | |
24 | } |