From c90c4c1ed31a06b894aae0bb092dabdd7c524a7f Mon Sep 17 00:00:00 2001 From: "Kevin L. Mitchell" Date: Mon, 20 Nov 2000 21:10:06 +0000 Subject: [PATCH] Author: Kev 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 | 3 +++ ircd/ircd_reply.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 22a6ab6..1d4b0e6 100644 --- 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 diff --git a/ircd/ircd_reply.c b/ircd/ircd_reply.c index 6e8cc6b..0e4a2c6 100644 --- a/ircd/ircd_reply.c +++ b/ircd/ircd_reply.c @@ -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; -- 2.20.1