ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/user.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/user.c (file contents):
Revision 7113 by michael, Sat Jan 23 20:31:25 2016 UTC vs.
Revision 7304 by michael, Wed Feb 10 10:45:46 2016 UTC

# Line 38 | Line 38
38   #include "motd.h"
39   #include "numeric.h"
40   #include "conf.h"
41 + #include "conf_gecos.h"
42   #include "log.h"
43   #include "server.h"
44   #include "send.h"
# Line 285 | Line 286 | user_welcome(struct Client *source_p)
286   static int
287   check_xline(struct Client *source_p)
288   {
289 <  struct MaskItem *conf = NULL;
289 >  const struct GecosItem *gecos = NULL;
290  
291    if (HasFlag(source_p, FLAGS_EXEMPTXLINE))
292      return 0;
293  
294 <  if ((conf = find_matching_name_conf(CONF_XLINE, source_p->info, NULL, NULL, 0)))
294 >  if ((gecos = gecos_find(source_p->info, match)))
295    {
295    ++conf->count;
296      sendto_realops_flags(UMODE_REJ, L_ALL, SEND_NOTICE,
297                           "X-line Rejecting [%s] [%s], user %s [%s]",
298 <                         source_p->info, conf->reason,
298 >                         source_p->info, gecos->reason,
299                           get_client_name(source_p, HIDE_IP),
300                           source_p->sockhost);
301  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)