mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
Use FLAGS_SENTUSER when checking whether to register when ping cookie is received.
This commit is contained in:
parent
1fb3b1e1c4
commit
3102dbdc4f
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ mr_pong(struct Client *client_p, struct Client *source_p, int parc, const char *
|
|||
{
|
||||
if(parc == 2 && !EmptyString(parv[1]))
|
||||
{
|
||||
if(ConfigFileEntry.ping_cookie && source_p->user && source_p->name[0])
|
||||
if(ConfigFileEntry.ping_cookie && source_p->flags & FLAGS_SENTUSER && source_p->name[0])
|
||||
{
|
||||
unsigned long incoming_ping = strtoul(parv[1], NULL, 16);
|
||||
if(incoming_ping)
|
||||
|
|
Loading…
Reference in a new issue