/[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 4671 by michael, Sun Sep 28 12:32:39 2014 UTC revision 4672 by michael, Sun Sep 28 17:26:43 2014 UTC
# Line 218  mo_kline(struct Client *source_p, int pa Line 218  mo_kline(struct Client *source_p, int pa
218    conf->user = xstrdup(user);    conf->user = xstrdup(user);
219    
220    if (tkline_time)    if (tkline_time)
221      snprintf(buffer, sizeof(buffer), "Temporary K-line %d min. - %s (%s)",      snprintf(buffer, sizeof(buffer), "Temporary K-line %d min. - %.*s (%s)",
222               (int)(tkline_time/60), reason, current_date);               (int)(tkline_time/60), REASONLEN, reason, current_date);
223    else    else
224      snprintf(buffer, sizeof(buffer), "%s (%s)", reason, current_date);      snprintf(buffer, sizeof(buffer), "%.*s (%s)", REASONLEN, reason, current_date);
225    
226    conf->reason = xstrdup(buffer);    conf->reason = xstrdup(buffer);
227    m_kline_add_kline(source_p, conf, tkline_time);    m_kline_add_kline(source_p, conf, tkline_time);
# Line 264  me_kline(struct Client *source_p, int pa Line 264  me_kline(struct Client *source_p, int pa
264      conf->user = xstrdup(kuser);      conf->user = xstrdup(kuser);
265    
266      if (tkline_time)      if (tkline_time)
267        snprintf(buffer, sizeof(buffer), "Temporary K-line %u min. - %s (%s)",        snprintf(buffer, sizeof(buffer), "Temporary K-line %u min. - %.*s (%s)",
268                 (unsigned int)(tkline_time/60), kreason, current_date);                 (unsigned int)(tkline_time/60), REASONLEN, kreason, current_date);
269      else      else
270        snprintf(buffer, sizeof(buffer), "%s (%s)", kreason, current_date);        snprintf(buffer, sizeof(buffer), "%.*s (%s)", REASONLEN, kreason, current_date);
271    
272      conf->reason = xstrdup(buffer);      conf->reason = xstrdup(buffer);
273      m_kline_add_kline(source_p, conf, tkline_time);      m_kline_add_kline(source_p, conf, tkline_time);

Legend:
Removed from v.4671  
changed lines
  Added in v.4672

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