/[svn]/ircd-hybrid/branches/8.2.x/modules/m_kline.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/modules/m_kline.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4663 by michael, Sun Sep 21 10:49:44 2014 UTC revision 4664 by michael, Sun Sep 28 12:32:39 2014 UTC
# Line 136  m_kline_add_kline(struct Client *source_ Line 136  m_kline_add_kline(struct Client *source_
136  static int  static int
137  already_placed_kline(struct Client *source_p, const char *luser, const char *lhost, int warn)  already_placed_kline(struct Client *source_p, const char *luser, const char *lhost, int warn)
138  {  {
   const char *reason;  
139    struct irc_ssaddr iphost, *piphost;    struct irc_ssaddr iphost, *piphost;
140    struct MaskItem *conf = NULL;    struct MaskItem *conf = NULL;
141    int t = 0;    int t = 0;
# Line 156  already_placed_kline(struct Client *sour Line 155  already_placed_kline(struct Client *sour
155    if ((conf = find_conf_by_address(lhost, piphost, CONF_KLINE, aftype, luser, NULL, 0)))    if ((conf = find_conf_by_address(lhost, piphost, CONF_KLINE, aftype, luser, NULL, 0)))
156    {    {
157      if (IsClient(source_p) && warn)      if (IsClient(source_p) && warn)
     {  
       reason = conf->reason ? conf->reason : CONF_NOREASON;  
158        sendto_one_notice(source_p, &me, ":[%s@%s] already K-Lined by [%s@%s] - %s",        sendto_one_notice(source_p, &me, ":[%s@%s] already K-Lined by [%s@%s] - %s",
159                          luser, lhost, conf->user, conf->host, reason);                          luser, lhost, conf->user, conf->host, conf->reason);
     }  
   
160      return 1;      return 1;
161    }    }
162    

Legend:
Removed from v.4663  
changed lines
  Added in v.4664

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28