| 805 |
|
static void |
| 806 |
|
stats_pending_glines(struct Client *source_p) |
| 807 |
|
{ |
| 808 |
– |
#ifdef GLINE_VOTING |
| 808 |
|
const dlink_node *dn_ptr = NULL; |
| 809 |
< |
const struct gp_ptr *glp_ptr = NULL; |
| 809 |
> |
const struct gline_pending *glp_ptr = NULL; |
| 810 |
|
char timebuffer[MAX_DATE_STRING] = { '\0' }; |
| 811 |
|
struct tm *tmptr = NULL; |
| 812 |
|
|
| 834 |
|
glp_ptr->vote_1.oper_server, timebuffer, |
| 835 |
|
glp_ptr->user, glp_ptr->host, glp_ptr->vote_1.reason); |
| 836 |
|
|
| 837 |
< |
if (glp_ptr->oper_nick2[0] != '\0') |
| 837 |
> |
if (glp_ptr->vote_2.oper_nick[0] != '\0') |
| 838 |
|
{ |
| 839 |
|
tmptr = localtime(&glp_ptr->vote_2.time_request); |
| 840 |
|
strftime(timebuffer, MAX_DATE_STRING, "%Y/%m/%d %H:%M:%S", tmptr); |
| 867 |
|
glp_ptr->vote_1.oper_server, timebuffer, |
| 868 |
|
glp_ptr->user, glp_ptr->host, glp_ptr->vote_1.reason); |
| 869 |
|
|
| 870 |
< |
if (glp_ptr->oper_nick2[0] != '\0') |
| 870 |
> |
if (glp_ptr->vote_2.oper_nick[0] != '\0') |
| 871 |
|
{ |
| 872 |
|
tmptr = localtime(&glp_ptr->vote_2.time_request); |
| 873 |
|
strftime(timebuffer, MAX_DATE_STRING, "%Y/%m/%d %H:%M:%S", tmptr); |
| 883 |
|
|
| 884 |
|
sendto_one(source_p, ":%s NOTICE %s :End of Pending UNG-lines", |
| 885 |
|
from, to); |
| 887 |
– |
#else |
| 888 |
– |
sendto_one(source_p, ":%s NOTICE %s :This server does not support G-Line voting", |
| 889 |
– |
from, to); |
| 890 |
– |
#endif /* GLINE VOTING */ |
| 886 |
|
} |
| 887 |
|
|
| 888 |
|
/* stats_glines() |