]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Use FLAGS_SENTUSER when checking whether to register when ping cookie is received.
authorJilles Tjoelker <redacted>
Wed, 24 Feb 2010 22:28:27 +0000 (23:28 +0100)
committerJilles Tjoelker <redacted>
Wed, 24 Feb 2010 22:28:27 +0000 (23:28 +0100)
modules/m_pong.c

index 3d83249b68f976d44f3c92de9a0b6ab07db4a697..831f2c864ba214e0aa8024969ec9d3a4409de668 100644 (file)
@@ -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)