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

Comparing ircd-hybrid/trunk/modules/m_userhost.c (file contents):
Revision 1728 by michael, Thu Jan 3 00:16:51 2013 UTC vs.
Revision 1793 by michael, Sun Mar 31 14:06:08 2013 UTC

# Line 29 | Line 29
29   #include "s_serv.h"
30   #include "send.h"
31   #include "irc_string.h"
32 – #include "sprintf_irc.h"
32   #include "parse.h"
33   #include "modules.h"
34  
# Line 67 | Line 66 | m_userhost(struct Client *client_p, stru
66         */
67        if (MyClient(target_p) && (target_p == source_p))
68        {
69 <        rl = ircsprintf(response, "%s%s=%c%s@%s ",
70 <                        target_p->name,
71 <                        HasUMode(target_p, UMODE_OPER) ? "*" : "",
72 <                        (target_p->away[0]) ? '-' : '+',
73 <                        target_p->username,
74 <                        target_p->sockhost);
69 >        rl = sprintf(response, "%s%s=%c%s@%s ",
70 >                     target_p->name,
71 >                     HasUMode(target_p, UMODE_OPER) ? "*" : "",
72 >                     (target_p->away[0]) ? '-' : '+',
73 >                     target_p->username,
74 >                     target_p->sockhost);
75        }
76        else
77        {
78 <        rl = ircsprintf(response, "%s%s=%c%s@%s ",
79 <                        target_p->name, (HasUMode(target_p, UMODE_OPER) &&
80 <                                         (!HasUMode(target_p, UMODE_HIDDEN) ||
81 <                                           HasUMode(source_p, UMODE_OPER))) ? "*" : "",
82 <                        (target_p->away[0]) ? '-' : '+',
83 <                        target_p->username,
84 <                        target_p->host);
78 >        rl = sprintf(response, "%s%s=%c%s@%s ",
79 >                     target_p->name, (HasUMode(target_p, UMODE_OPER) &&
80 >                                      (!HasUMode(target_p, UMODE_HIDDEN) ||
81 >                                        HasUMode(source_p, UMODE_OPER))) ? "*" : "",
82 >                     (target_p->away[0]) ? '-' : '+',
83 >                     target_p->username,
84 >                     target_p->host);
85        }
86  
87        if ((rl + cur_len) < (IRCD_BUFSIZE - 10))
88        {
89 <        ircsprintf(t, "%s", response);
89 >        sprintf(t, "%s", response);
90          t += rl;
91          cur_len += rl;
92        }

Diff Legend

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