]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_pong.c
target change: Overwrite the least recently used target with a new one.
[irc/rqf/shadowircd.git] / modules / m_pong.c
index 7cf84d5a7980701f50c20e242c65c692a31f42c8..3d83249b68f976d44f3c92de9a0b6ab07db4a697 100644 (file)
@@ -34,7 +34,7 @@
 #include "s_conf.h"
 #include "send.h"
 #include "channel.h"
-#include "irc_string.h"
+#include "match.h"
 #include "msg.h"
 #include "parse.h"
 #include "hash.h"
@@ -127,7 +127,7 @@ mr_pong(struct Client *client_p, struct Client *source_p, int parc, const char *
 
        }
        else
-               sendto_one(source_p, form_str(ERR_NOORIGIN), me.name, parv[0]);
+               sendto_one(source_p, form_str(ERR_NOORIGIN), me.name, source_p->name);
 
        source_p->flags &= ~FLAGS_PINGSENT;