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
* 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
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;