Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Mon, 20 Nov 2000 21:10:06 +0000 (21:10 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Mon, 20 Nov 2000 21:10:06 +0000 (21:10 +0000)
Log message:

Use client name instead of client numeric; tested

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@311 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/ircd_reply.c

index 22a6ab6e5ab9961fffcced07cdeae5a2e1bbb5b3..1d4b0e61db08a587c8814cb2037be8bf9169eef8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
        * ircd/ircd_reply.c (protocol_violation): rewrite
        protocol_violation so it'll actually work
 
+       oh, yeah, use %s -> cptr->name, instead of %c -> cptr, so we get
+       the client's real name in there.
+
        * ircd/m_motd.c (m_motd): Iso's addition of get_client_class(sptr)
        resulted in core dumps if NODEFAULTMOTD is defined, because m_motd
        gets called from register_user with a NULL sptr.  This is probably
index 6e8cc6b9d153e2b1b95f9f4443cdb1de169b47ff..0e4a2c601b0deb863cce09d68fa8c310f8ada57b 100644 (file)
@@ -50,7 +50,7 @@ int protocol_violation(struct Client* cptr, const char* pattern, ...)
   va_start(vd.vd_args, pattern);
 
   sendcmdto_flag_butone(&me, CMD_DESYNCH, NULL, FLAGS_DEBUG,
-                       ":Protocol Violation from %C: %v", cptr, &vd);
+                       ":Protocol Violation from %s: %v", cptr->name, &vd);
 
   va_end(vd.vd_args);
   return 0;