/[svn]/ircd-hybrid-8/modules/m_kline.c
ViewVC logotype

Diff of /ircd-hybrid-8/modules/m_kline.c

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

revision 1232 by michael, Thu Sep 22 19:41:19 2011 UTC revision 1233 by michael, Thu Sep 22 20:53:07 2011 UTC
# Line 134  mo_kline(struct Client *client_p, struct Line 134  mo_kline(struct Client *client_p, struct
134    
135    if (tkline_time != 0)    if (tkline_time != 0)
136    {    {
137      ircsprintf(buffer, "Temporary K-line %d min. - %s (%s)",      snprintf(buffer, sizeof(buffer), "Temporary K-line %d min. - %s (%s)",
138                 (int)(tkline_time/60), reason, current_date);               (int)(tkline_time/60), reason, current_date);
139      DupString(aconf->reason, buffer);      DupString(aconf->reason, buffer);
140    
141      if (oper_reason != NULL)      if (oper_reason != NULL)
# Line 144  mo_kline(struct Client *client_p, struct Line 144  mo_kline(struct Client *client_p, struct
144    }    }
145    else    else
146    {    {
147      ircsprintf(buffer, "%s (%s)", reason, current_date);      snprintf(buffer, sizeof(buffer), "%s (%s)", reason, current_date);
148      DupString(aconf->reason, buffer);      DupString(aconf->reason, buffer);
149    
150      if (oper_reason != NULL)      if (oper_reason != NULL)
# Line 197  me_kline(struct Client *client_p, struct Line 197  me_kline(struct Client *client_p, struct
197    
198      if (tkline_time != 0)      if (tkline_time != 0)
199      {      {
200        ircsprintf(buffer, "Temporary K-line %d min. - %s (%s)",        snprintf(buffer, sizeof(buffer), "Temporary K-line %d min. - %s (%s)",
201                   (int)(tkline_time/60), kreason, current_date);                 (int)(tkline_time/60), kreason, current_date);
202        DupString(aconf->reason, buffer);        DupString(aconf->reason, buffer);
203    
204        if (oper_reason != NULL)        if (oper_reason != NULL)
# Line 207  me_kline(struct Client *client_p, struct Line 207  me_kline(struct Client *client_p, struct
207      }      }
208      else      else
209      {      {
210        ircsprintf(buffer, "%s (%s)", kreason, current_date);        snprintf(buffer, sizeof(buffer), "%s (%s)", kreason, current_date);
211        DupString(aconf->reason, buffer);        DupString(aconf->reason, buffer);
212    
213        if (oper_reason != NULL)        if (oper_reason != NULL)

Legend:
Removed from v.1232  
changed lines
  Added in v.1233

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