]>
Commit | Line | Data |
---|---|---|
edb26b39 P |
1 | # HG changeset patch |
2 | # Parent 25bee2e34364105115fabfbaf10186a20b56d153 | |
3 | ||
4 | diff -r 25bee2e34364 ircd/m_time.c | |
5 | --- a/ircd/m_time.c Sun Jul 14 17:52:13 2013 +0100 | |
6 | +++ b/ircd/m_time.c Sun Jul 14 17:52:57 2013 +0100 | |
7 | @@ -104,6 +104,16 @@ | |
8 | */ | |
9 | int m_time(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) | |
10 | { | |
11 | + char *target=parv[1]; | |
12 | + | |
13 | + /* Time request with parameter *, send my time info and pass on the request */ | |
14 | + if (parc > 1) { | |
15 | + if (target[0] == '*' && target[1] == '\0' && IsOper(sptr)) { | |
16 | + sendcmdto_serv_butone(sptr, CMD_TIME, cptr, ":%s", target); | |
17 | + send_reply(sptr, RPL_TIME, cli_name(&me), TStime(), TSoffset, date((long)0)); | |
18 | + return 0; | |
19 | + } | |
20 | + } | |
21 | if (hunt_server_cmd(sptr, CMD_TIME, cptr, feature_int(FEAT_HIS_REMOTE), ":%C", | |
22 | 1, parc, parv) | |
23 | != HUNTED_ISME) |