106 |
|
return 0; |
107 |
|
} |
108 |
|
|
109 |
< |
if ((source_p->connection->invite.last_attempt + ConfigChannel.invite_client_time) < CurrentTime) |
109 |
> |
if ((source_p->connection->invite.last_attempt + ConfigChannel.invite_client_time) < event_base->time.sec_monotonic) |
110 |
|
source_p->connection->invite.count = 0; |
111 |
|
|
112 |
|
if (source_p->connection->invite.count > ConfigChannel.invite_client_count) |
115 |
|
return 0; |
116 |
|
} |
117 |
|
|
118 |
< |
if ((chptr->last_invite + ConfigChannel.invite_delay_channel) > CurrentTime) |
118 |
> |
if ((chptr->last_invite + ConfigChannel.invite_delay_channel) > event_base->time.sec_monotonic) |
119 |
|
{ |
120 |
|
sendto_one_numeric(source_p, &me, ERR_TOOMANYINVITE, chptr->name, "channel"); |
121 |
|
return 0; |
122 |
|
} |
123 |
|
|
124 |
< |
source_p->connection->invite.last_attempt = CurrentTime; |
124 |
> |
source_p->connection->invite.last_attempt = event_base->time.sec_monotonic; |
125 |
|
source_p->connection->invite.count++; |
126 |
|
|
127 |
|
sendto_one_numeric(source_p, &me, RPL_INVITING, target_p->name, chptr->name); |
129 |
|
if (target_p->away[0]) |
130 |
|
sendto_one_numeric(source_p, &me, RPL_AWAY, target_p->name, target_p->away); |
131 |
|
|
132 |
< |
chptr->last_invite = CurrentTime; |
132 |
> |
chptr->last_invite = event_base->time.sec_monotonic; |
133 |
|
|
134 |
|
if (MyConnect(target_p)) |
135 |
|
{ |
192 |
|
if (strtoumax(parv[3], NULL, 10) > chptr->creationtime) |
193 |
|
return 0; |
194 |
|
|
195 |
< |
chptr->last_invite = CurrentTime; |
195 |
> |
chptr->last_invite = event_base->time.sec_monotonic; |
196 |
|
|
197 |
|
if (MyConnect(target_p)) |
198 |
|
{ |